Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp4145629pxm; Tue, 1 Mar 2022 12:15:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIO+in6W20EPgMmymX/JPkY+rdZnlao3RUjgXwKW84amPa6soVwhogixh2mlC7p5a6u2lI X-Received: by 2002:a05:6402:4414:b0:408:4dc0:3ee9 with SMTP id y20-20020a056402441400b004084dc03ee9mr26093765eda.203.1646165704708; Tue, 01 Mar 2022 12:15:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646165704; cv=none; d=google.com; s=arc-20160816; b=0deciE6425Ho1qgUMet9s8xPz5HEXtJrU/v5agCeDNQOSukD9R0th/AFiBWR7fT0gk +bo1h3mKZhbV79TJwbSjTdWkPj0qeafl6moUPdTKaKL/pRgZg8yJiL7mwtVJr6vC3TEo /9OOjOo80spNDcesw43Mqbcu4BQ4hPzSOrM+SjXNX2US36aM2vHboBCnb636xPLIkIZs iDZ8Y7PHhj7gZbBM7cDL2t2IFIgsrzci62nnSR43Lcq9rsdzOgi4R7+5l3xux3cT5tz7 YqwnrLOGkLZ1CD/ZgSh39jBLc8Ud0m0NtJKoobHaYnX6UL12VwmevcKPkw/TNoEGCPG6 xubA== 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=C6+foUxDB4R5vAzpMeXDqyFNu8A0mFB514qkbaeqOn8=; b=nGHwCcGZxpc8xYtMIyCK/8nixqlpUlulJsDIHOALnvTdlXU6HdJ+SNNaFQaf59JKxK 4a15QGTtynpC7aFstlHTVbnGf/R5Q5id53HXacNv0SuRYwC61Zw4GjKkr3aGXRrdxoMt RC1zuAmmyqkV+GKYMJ+2qnMU5PI/YsBdlMabjAhHVSllyh8RjmMKCBj8JcUPL5zyrz6r ohp0qjPNgdRnQu9QoHotTu/13CsyreuE2CIUW0tF/afToX6RFdy1KDFD1y7rl9Tfw+bj 6xVCwO++3R0ZC2wP6oEO2PBfeyjIxT6AUmX20yu5yX4xcq9EMcigh7J4HPFID4WLBdh4 1i4g== 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:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a0564020f1000b004128864ae53si9511822eda.524.2022.03.01.12.14.41; Tue, 01 Mar 2022 12:15:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234285AbiCAPNF (ORCPT + 99 others); Tue, 1 Mar 2022 10:13:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232130AbiCAPNE (ORCPT ); Tue, 1 Mar 2022 10:13:04 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0AE48BC2E; Tue, 1 Mar 2022 07:12:23 -0800 (PST) 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 CAA6F1042; Tue, 1 Mar 2022 07:12:22 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A55A3F70D; Tue, 1 Mar 2022 07:12:21 -0800 (PST) Date: Tue, 1 Mar 2022 15:12:19 +0000 From: Sudeep Holla To: Ahmad Fatoum Cc: Etienne Carriere , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sudeep Holla , Cristian Marussi , Vincent Guittot , devicetree@vger.kernel.org, Rob Herring , Pengutronix Kernel Team Subject: Re: [PATCH v8 1/2] dt-bindings: arm: Add OP-TEE transport for SCMI Message-ID: References: <20211028140009.23331-1-etienne.carriere@linaro.org> <58a0e791-9573-99c2-0cc5-3920a1048113@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58a0e791-9573-99c2-0cc5-3920a1048113@pengutronix.de> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Ahmad, On Mon, Feb 28, 2022 at 05:01:39PM +0100, Ahmad Fatoum wrote: > Hello Etienne, > > On 28.10.21 16:00, Etienne Carriere wrote: > > Introduce compatible "linaro,scmi-optee" for SCMI transport channel > > based on an OP-TEE service invocation. The compatible mandates a > > channel ID defined with property "linaro,optee-channel-id". > Not sure if Etienne's reply addressed your queries/concerns correctly. I thought I will add my view anyways. > I just found this thread via the compatible in the STM32MP131 patch set: > https://lore.kernel.org/all/20220225133137.813919-1-gabriel.fernandez@foss.st.com/ > > Linux doesn't care whether PSCI is provided by TF-A, OP-TEE or something > else, so there is just the arm,psci* compatible. > Correct, the interface to the kernel is fixed and hence we must be able to manage with the standard and fixed sole set of bindings for the same. > What's different about SCMI that this is not possible? Why couldn't the > existing binding and driver be used to communicate with OP-TEE as secure > monitor as well? > However with SCMI, the spec concentrates and standardises all the aspects of the protocol used for the communication while it allows the transport used for such a communication to be implementation specific. It does address some standard transports like mailbox and PCC(ACPI). However, because of the flexibility and also depending on the hardware(or VM), different transports have been added to the list. SMC/HVC was the one, followed by the virtio and OPTEE. While I agree SMC/HVC and OPTEE seem to have lot of common and may have avoided separate bindings. However the FIDs for SMC/HVC is vendor defined(the spec doesn't cover this and hence we utilised/exploited DT). Some vendors wanted interrupt support too which got added. OPTEE eliminates the need for FID and can also provide dynamic shared memory info. In short, it does differ in a way that the driver needs to understand the difference and act differently with each of the unique transports defined in the binding. Hope that explains and addresses your concern. -- Regards, Sudeep