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=-4.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,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 6FF95C4338F for ; Wed, 25 Aug 2021 17:00:56 +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 32E3B60231 for ; Wed, 25 Aug 2021 17:00:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 32E3B60231 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LPD5NSbY1sFu4KBjPbIwKkK/PMhLLv9TzkXgnRdxGuY=; b=otoWCToEmFHGSP ygPiRH3tteSi1Z/moCM9KHVrswddEzEsnQSYdCPtQhsWIsEH4a8pw+AEn/iqvYl9Y3XmlXlWMBRnM eRyPjebEGDkM1u5PTL6heiyw1c73mspfj4qIS9lrVSMTu1M7Kr5H0RkN2Gw+G4nn2lk3i17xB9gHy xPsE2Ln3xxxeig9PBPEk1mPpEIDg8vPbB6VHfEGtIPH+Qr5+MHEJaYAfN01251LrorY8wCWrwxYLd ScxaEgGgAjvap794ZF2Opj14OvFb/N5gPeH07BcymUMN19WQpL1Ogng/loUJW/ctK4YY4tjP+hBdT lCAERaYNMDrhhpf17BBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIwEY-007zmb-T2; Wed, 25 Aug 2021 16:58:39 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIvuy-007qjO-CD for linux-arm-kernel@lists.infradead.org; Wed, 25 Aug 2021 16:38:25 +0000 Received: by mail-pf1-x42a.google.com with SMTP id r9so224839pfh.6 for ; Wed, 25 Aug 2021 09:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=9Wr1+WXUoypE3YQABXETIrsp7QWtSDH3brrFfWMwZas=; b=pcX9nw/wLqZueDexjR4bJD9NMiW7Drxh2rIqEQFNQe4Ek1potnkZTfwy1O7EVoctpd 93qvarZTUbCRht00dTuDJ5Yp4w2UaqsHIowBw0vFDQAZ/Gh8cuUfa7jrs34ItAx+cRjc S0lPeImczmQVYkECB7KUMNhYmHenO0X0rp80hoFrVRmIEwXuEnofxhCK+uqxz6peJ8hY OWzGWT+Gc8nenen16Szd4MZPfhFFSxBgtr1qVG0yyo90TJLbzycr2fqVcGj9Fqd+KsQb UXDmLJtA1jHRJGh937e3YMTZ8Fr5o5U+B7BdeGSWlVVRYg9xtn3n8BD28hT8JLHliP5H dujA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=9Wr1+WXUoypE3YQABXETIrsp7QWtSDH3brrFfWMwZas=; b=RTuaulYrxMLM/iFpatHHOdaragB/GJ1tp7eG5urbvfAQeD43F0Yuow/GjEW6sOnfSd HPJDRexJKoJ6rZJejprTv5YYrvG2KsVrLt5OgAd/IwTEh6eL41E/mEhzjh2PTsXAdfZm cu43Is/4/8TN3+QKGr+XIbs+dNd89BpfwKX0Ileyzq0DOcpLi0rUBFCMXrvj2NxQa2uu YHyykJYXOUED+e1Pzi7ElBZIUWEnepW6wardxTyVNdtz0TCr2PtIdpNxi0Ox/yUIdZfs /u0IW1NOVVBgAgX/SfyG1U3h3WoHWLoFl+uZtR3ckYpbtQ75dHZDpfjHPSAir6eMK0gx aFxw== X-Gm-Message-State: AOAM532B3Y9TCty+f5ZbYEd9jio3j6qiibCxHY5OfVsEdykfxNT4fvcI Hh40JlEB75N0CH68M66BHSg= X-Google-Smtp-Source: ABdhPJxQ3FMfF0LK750YP8PbTk5UP7c89+njt55GomboAUd7/c6VbmsbI71FXUbUz7zVfF1m4GKjXg== X-Received: by 2002:a63:1a65:: with SMTP id a37mr43248868pgm.338.1629909503729; Wed, 25 Aug 2021 09:38:23 -0700 (PDT) Received: from [192.168.1.22] (amarseille-551-1-7-65.w92-145.abo.wanadoo.fr. [92.145.152.65]) by smtp.gmail.com with UTF8SMTPSA id x189sm349491pfx.99.2021.08.25.09.38.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Aug 2021 09:38:23 -0700 (PDT) Message-ID: <7a2f972d-fdd0-d0f7-cac2-1989980ed872@gmail.com> Date: Wed, 25 Aug 2021 18:38:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.0.2 Subject: Re: [PATCH v4 11/12] [RFC] firmware: arm_scmi: Add sync_cmds_atomic_replies transport flag Content-Language: en-US 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: <20210824135941.38656-1-cristian.marussi@arm.com> <20210824135941.38656-12-cristian.marussi@arm.com> From: Florian Fainelli In-Reply-To: <20210824135941.38656-12-cristian.marussi@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210825_093824_474335_05990AA4 X-CRM114-Status: GOOD ( 12.75 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 8/24/2021 3:59 PM, Cristian Marussi wrote: > A flag is added to let the transport signal the core that its handling of > synchronous command messages implies that, after .send_message has returned > successfully, the requested command can be assumed to be fully and > completely executed on SCMI platform side so that any possible response > value is already immediately available to be retrieved by a .fetch_reponse: > in other words the polling phase can be skipped in such a case and the > response values accessed straight away. > > Note that all of the above applies only when polling mode of operation was > selected by the core: if instead a completion IRQ was found to be available > the normal response processing path based on completions will still be > followed. This might actually have to be settable on a per-message basis ideally since we may be transporting short lived SCMI messages for which the completion can be done at SMC time, and long lived SCMI messages (e.g.: involving a voltage change) for which we would prefer a completion interrupt. Jim, what do you think? -- Florian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel