Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4437154ioa; Wed, 27 Apr 2022 04:00:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBWR5aFLMJjAqvH85xJ/0uFN/xrLV4av6BJ+rmZkQ3g+lEgfVXg02ilud3+BzBxbra89Ur X-Received: by 2002:a63:18f:0:b0:37c:4671:a2ce with SMTP id 137-20020a63018f000000b0037c4671a2cemr23912164pgb.429.1651057219685; Wed, 27 Apr 2022 04:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651057219; cv=none; d=google.com; s=arc-20160816; b=srvC5glo4S0LD5opcdhPRp8ZygAdkjtx3lkDF7awEPgU9Q2mRYClLtA5gyLMO74NaB orZmVvoFuQGqJOx91z22BzAlytxIbf3FO7YDcbLjMpIfG/Wwxm51qxa7Ivf3lBhdcEPc w6AKiLfY4orGkoBy1mKpw0cAIqfeVtbZuV+77c+fL1bGMOiw6BRU9vz1qDx4CVY04TvU o0BcBkRyClQsfN16Wj8ZKeUgvSJrBvKKiMl7Fl4QqKr4KAdWpf9MQJkWDBYmRhKv57cg cJRrVbZknmZmHbnu0LNvTb+P8TpNwsngulfRevhlWApx5G1b/bH5QIeyfgXDdSAjWDaj k3QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=y/b/feWrZ/lTi9jqBScMUn9yWSLttJFz22wgdAWmkVo=; b=NL1hAIXUznq0fo/jjPwZTD0Nw/kkLMtN2x4g07XvAwBHRA63Bdoh4ECtbJDHY39vrI f0zZM7KoJRFULCU8nGpmBFIo7qDV99iMbgnzKHc/LzL3dZpahEjVVYEu61R+6T6Y0Hkr 0u3HJYZtXEounIhHMDDgXulItxhjtQz6ZGnhgbRGwHbZPFzsZAVEJo/9U5jFEPZYSisG QYzhXbENAjtlltkA0te6Q/e7CWNQYiUkuJPDQWmfPyvaeE+acJC59sPWIsN+gSGI7IFe a9ayMKEQ546NaKMkkL/xOOMI6FHIRgcpJYJQsKe8XUpN107TF5sjh5k+8MHba4PUS3CE gWBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T3ufhEUi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q9-20020a170903204900b0015d9e665a81si53690pla.521.2022.04.27.04.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:00:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T3ufhEUi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3678844ED11; Wed, 27 Apr 2022 03:08:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358044AbiD0GUV (ORCPT + 99 others); Wed, 27 Apr 2022 02:20:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358040AbiD0GUU (ORCPT ); Wed, 27 Apr 2022 02:20:20 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59B1B4754E for ; Tue, 26 Apr 2022 23:17:10 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id e4so987681oif.2 for ; Tue, 26 Apr 2022 23:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=y/b/feWrZ/lTi9jqBScMUn9yWSLttJFz22wgdAWmkVo=; b=T3ufhEUiI/VrSttcStmtXSUMMrkgEXKQruCbrDOukOZyTKP/VLNqOzcoWjZFAVBSGp PgbFTviSCvl/G3rN28x8MaN0565EzHJZF698Oyal7seY/NdPtLpvn3wpBZtGxLDolqPr 7ET6DTHGQ5DppnIbZsi2Wd2fm2xUx0p+PDtmPDofzlD4tiN6QO0XyPVzHxSNY29QUGgF cofQK8yabNXR+q5ranpwEaFv5rho/UkopSkgeRqIEeTQtIpzGUvyctU1OTFrQayb0Ynf Qxl1HAo9d2dAvTH+nV3RXQEjb7OUX1F0wMBktTnjTiMXlwiFDhua9xwXqdJMNx/6xnjT L3vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y/b/feWrZ/lTi9jqBScMUn9yWSLttJFz22wgdAWmkVo=; b=gJ3gwcNl1ufhCxdL+NwRSFYHv+2vDvs/PGKAuV78qMPAwmN1JFDCmE3c2TI4q4Vqob 6SMaoiXIM+MzqKkDdtz3IjXTb0IC82go5PCaDmUu57I6P5E1aCv/ekqXQ6PmeffFFVtC el7wMK8cXxJPAlROdcdsIU1ALatf0EN4D8/aVJT6Tn4R1RPknrBx8M33zJtNyxnTYDW/ LiFefTYfIQPyhVqBUPFEHjcURyOex9u8/8hl5o0YgaP/IMefzxd3dD0HnW2iqvGUjqH4 Xog/ReMwN5j2Kxm4xi6BcOz3TSyeEVmLEVJCHGOtd5K54vq7zvvrwsDqk6aBXkZnDgDx EzfA== X-Gm-Message-State: AOAM532JM6eTP+e5TS7a2O2h6WibGdTSbXlZJxBVavO+lXe5Srhw15aq cT37fF06/BpMBXYoCN2KHirwwcGYJJKkJIDFG9SoMgwPRVMmeQ== X-Received: by 2002:a05:6808:1645:b0:325:5182:a9ca with SMTP id az5-20020a056808164500b003255182a9camr4810368oib.104.1651040229679; Tue, 26 Apr 2022 23:17:09 -0700 (PDT) MIME-Version: 1.0 References: <20220425085127.2009-1-etienne.carriere@linaro.org> In-Reply-To: From: Etienne Carriere Date: Wed, 27 Apr 2022 08:16:58 +0200 Message-ID: Subject: Re: [PATCH v3] firmware: arm_scmi: support optee shared memory in optee transport To: Cristian Marussi Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sudeep Holla , Vincent Guittot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Apr 2022 at 18:48, Cristian Marussi wrote: > > On Mon, Apr 25, 2022 at 10:51:27AM +0200, Etienne Carriere wrote: > > Adds support for tee shared memory in optee scmi transport. When using > > tee shared memory, scmi optee transport manages SCMI messages using > > msg protocol (from msg.c) in shared memory, whereas smt (from shmem.c) > > protocol is used with static IOMEM shared buffers. > > > > Signed-off-by: Etienne Carriere > > --- > > Changes since v2: > > - Select configuration switch ARM_SCMI_HAVE_MSG when > > ARM_SCMI_TRANSPORT_OPTEE is enabled. > > - Don't consider tee_shm in invoke_process_smt_channel() since > > this function now assumes TEE shared memory is not used for SMT > > based channel. > > > > Changes since v1: > > - Remove call to scmi_rx_callback() in scmi_optee_send_message(). > > --- > > LGTM > > Reviewed-by: Cristian Marussi > > Thanks, Thanks for the help. br, etienne > Cristian >