From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3A8DC2B9F8 for ; Tue, 25 May 2021 03:47:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 908CE613EC for ; Tue, 25 May 2021 03:47:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 908CE613EC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=U3acu53UN6hF8Bm6yuwLk4MFwvi5z6ndtkTrMl7uauA=; b=gN/c/5bxhJh65t/DvZTCkPotft TnhGFQRJxlWDirs3HnS1GPHgXDFGd4Mp8ajwBfKcKe/vE/tYrB1u7axS+p/q/3VC2llqJ9lWQaVWF 2xPvpyfGJKg2ua/if3f6L57RrL9norMhhUhFEEGg7CWCaAph/VjKLVVpSTaye/rj3sCCT43tGP1B+ Pg9VHJP3z9rWCYqwJozWhWeBbteCARmy/0FGSTUo+9ZkR43HKOUwo+B6himI1/iL/6bPTU+EcPLWr QeLpEmQx9kFIF2kfp4A+SCEN12aSpfiin8dNG4fIpLm9erRFrHvKb7aa4peiJhaD4oyvB6EraceN4 D+pZOTwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1llO0Y-003C4P-Jc; Tue, 25 May 2021 03:45:30 +0000 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1llMgg-002teM-P4 for linux-arm-kernel@lists.infradead.org; Tue, 25 May 2021 02:20:56 +0000 Received: by mail-pj1-x1031.google.com with SMTP id k5so15951352pjj.1 for ; Mon, 24 May 2021 19:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WlxmHn/xu2IsuMaLK2b6KBTeuoToruDs/pi+LCh1UJg=; b=F7CoFXAwPE+Q5jb74pbkaCUYvoyhreuge0xROce3N6Zp0lbI+xFVUt4yocuRuZ2Uif Usb+p+3s0eVpwxPp8B9tp492k1MoYQ7/gViNhFbMidjm4lw85xSvX/vuGOIUy6Fx9rLn +8VoCgtKZ24jCjCCYLMkaIOI57uqqXiZLBPwNG26ZRNxAjdc8E3MG+Hr/Hr93a3qlyJt ePx0aPZ2QqyktYYjNUBDsScIIE/tvELPF2u/Iu/Cjh0Xk7MyErNMzapa7FAIq8XjYDzh 5tgnxVl9YQL769tsfyWjSe82HHKIc6vDAxdy4+ILUFYeeOQfY3hnth6eZ/mZshLof03l kunA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WlxmHn/xu2IsuMaLK2b6KBTeuoToruDs/pi+LCh1UJg=; b=qTOrij9pgp+GY1Ofu6WQHhyXAzWYz5oJCMAVtR+ZNcl9HoqkySctv8oI3eE47ZHxEo W9tsHt/DHDs/UwCOKjiqFfjtyaHCInZiyiybJCTLJ6vMacv3DWN5Ww9dx0cNus9BmsWR 2GqCK5q7aShicjCpkgA7zaYYS076zBGxtynU3dEbboadnXnGir2UBtoRnJZ/FN9MaSwR YHIAgiFWeF5GDZNZ91SBlsmDvcAecWt6yrMS40j2iF1tbhXbfSmCUqAbAX8Hmd9z55MT P1Aw8mS8WGlTWHd9WZcdVSxjKAK3d50MWw/BQlTxYbZ4k8v6ajqe532cwCIybZq2kuir cp/w== X-Gm-Message-State: AOAM531sQEDlYOb/Pn6DUQ61yT9yJTZgbXLse8729qBe+MxEmH+9L+Bj R9KFnes8AKO7aGh0ox0yMzU= X-Google-Smtp-Source: ABdhPJypdJ6+4eRjkQZEO2ax0dnfvadsbY+CO4lFR+mennL1wAuD9dHnEEf6zkaPLqFZyhibqdZWdQ== X-Received: by 2002:a17:90a:a087:: with SMTP id r7mr2370985pjp.84.1621909253976; Mon, 24 May 2021 19:20:53 -0700 (PDT) Received: from [10.230.29.202] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id a26sm11990695pff.149.2021.05.24.19.20.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 19:20:53 -0700 (PDT) Subject: Re: [PATCH 4/4] firmware: arm_scmi: Introduce delegated xfers support To: Cristian Marussi , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, james.quinlan@broadcom.com, Jonathan.Cameron@Huawei.com, etienne.carriere@linaro.org, vincent.guittot@linaro.org, souvik.chakravarty@arm.com References: <20210524231503.34924-1-cristian.marussi@arm.com> <20210524231503.34924-5-cristian.marussi@arm.com> From: Florian Fainelli Message-ID: <659c2f2c-e236-1a70-44be-c5f6871868e7@gmail.com> Date: Mon, 24 May 2021 19:20:45 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210524231503.34924-5-cristian.marussi@arm.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210524_192054_856374_59E5AFC6 X-CRM114-Status: GOOD ( 17.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 5/24/2021 4:15 PM, Cristian Marussi wrote: > Introduce optional support for delegated xfers allocation. > > An SCMI transport can optionally declare to support delegated xfers and > then use a few helper functions exposed by the core SCMI transport layer to > query the core for existing in-flight transfers matching a provided message > header or alternatively and transparently obtain a brand new xfer to handle > a freshly received notification message. > In both cases the obtained xfer is uniquely mapped into a specific xfer > through the means of the message header acting as key. > > In this way such a transport can properly store its own transport specific > payload into the xfer uniquely associated to the message header before > even calling into the core scmi_rx_callback() in the usual way, so that > the transport specific message envelope structures can be freed early > and there is no more need to keep track of their status till the core > fully processes the xfer to completion or times out. > > The scmi_rx_callbak() does not need to be modified to carry additional > transport-specific ancillary data related to such message envelopes since > an unique natural association is established between the xfer and the > related message header. > > Existing transports that do not need anything of the above will continue > to work as before without any change. > > Signed-off-by: Cristian Marussi It would be better to see this in the context of its planned user, but that looked reasonable enough. -- Florian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel