Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4365483ioa; Wed, 27 Apr 2022 02:03:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznqS9BmTl+MfWJ8lP1x1SgzIwL1h2ba3qFwJ07eNzkL2FVqMVbWIHc3JRmuEphSJeHTLrn X-Received: by 2002:a62:d155:0:b0:50d:3c4e:37ec with SMTP id t21-20020a62d155000000b0050d3c4e37ecmr15985615pfl.60.1651050224664; Wed, 27 Apr 2022 02:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651050224; cv=none; d=google.com; s=arc-20160816; b=xmZGmcsB0FD2bpv/96pR6ZeMSberwbIINSKYuUKHcnwwcDM55Au5yhsg2+7OqhHurK 6bVGotPTyvpifJ6ZbT8Oxico4zZcz6Jj0Zwm/ADYfsosyfmVQIBg66cJxbjcYSLPGTIC y6gDl3NnRIJUTNbaMqn3XxtwM0M8HAIRBw1ReurrmeQzsqOw5XCqbnEwOKIEoy4N8Ync 99tNLgs0zTkAAmXWqktWp+/ZXZE1fqhlQ6VuhAToB70PB2AX3lrXvRHDcpGpuRqs/qul MV/BhiuFIgfmB3hwBFybHSA6Q9x4tks6HSX8J2//AzTBdXNxPmy+4ktEoGQAr7cRIoQL s7Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vQDhGfeycbGljvm3FJ7cvr7MDdHRjA6dNt2pYoH4l00=; b=pqkKpD7wkNHk+bp0lznDdXVJf0PyA8SSXOK5DZzXFxeRvFixs185eLs5aU+hAFLIAy NLEgodivr7HIsMIWD8lIENIrgQ1opmed8qD0EQCkXIeD9JqviY4HPrdAcYiVUXTA0JS8 rebZYHDC6sV3/8AiSCK7L9+l5lVGxUnqGCE8xwBQrqQ++z6Yn8wguLxng7SKRs5WDPdp tsblsrgKPc4bvRUBh6Bq/AcD2z75Yhq7/mrN/kjoswQ7jk4YF0qRPlls9meYS3AOIcpE J5a/GfSsQpaFB/z4D6iwgtkZMkllCcoRA7oPv0YlvMAEhQlHN0eXj8Y3gSGNV9+jw8ST yvGw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y185-20020a638ac2000000b003aa30706009si839213pgd.459.2022.04.27.02.03.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 02:03:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D9E271E9302; Wed, 27 Apr 2022 01:58:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353295AbiDZQys (ORCPT + 99 others); Tue, 26 Apr 2022 12:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353056AbiDZQxI (ORCPT ); Tue, 26 Apr 2022 12:53:08 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C32DFAE58 for ; Tue, 26 Apr 2022 09:48:19 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8F739ED1; Tue, 26 Apr 2022 09:48:19 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C06B33F73B; Tue, 26 Apr 2022 09:48:18 -0700 (PDT) Date: Tue, 26 Apr 2022 17:48:16 +0100 From: Cristian Marussi To: Etienne Carriere Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sudeep Holla , Vincent Guittot Subject: Re: [PATCH v3] firmware: arm_scmi: support optee shared memory in optee transport Message-ID: References: <20220425085127.2009-1-etienne.carriere@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220425085127.2009-1-etienne.carriere@linaro.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 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, Cristian