Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6217616rwb; Tue, 22 Nov 2022 10:13:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6k0vrfeXlLRWJJn1NhN+rf2AZ3Sc5ulirbPxcICh5BPtQd39cX7HDN6Ihu907lIx96Dh0d X-Received: by 2002:a17:90b:3c11:b0:213:a9e1:eb8a with SMTP id pb17-20020a17090b3c1100b00213a9e1eb8amr9749225pjb.110.1669140808278; Tue, 22 Nov 2022 10:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669140808; cv=none; d=google.com; s=arc-20160816; b=Hb8ncbVHJiGMqIB+mXqjlzC2xK+fRDJ7oL3oHgtqnvLj+GJaHoiayBrb9uWdjN6bl7 s888NCKHv/zXM8z4MROsRhU4lpIkayNxoQ3EpvuWriGn77a4hfokQ8Dscu+yPA5e71tx spEh2NXNZBTuwBAsH8q36DlXsqZl9zmwN0/63BrFHXq0ntcXtaDLxBl83JMXfE7fOsbz 97fJFAwafR0IzesZhm+iui0hLM6+b/wY7aSMmgP8TJhBDzbN7pVpDqI6zwBxAVApkEtV iNL4/LKMJtc2nyTi7dY5NTKS3GUcNI/RHIU2SLw3mdR0B8EXuFSK07kXgWNV4t/R7Ytq VM+w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=X73jD9n6ixef/qVKrbEH+IIXyOBpwbD3wlZWtDltE5M=; b=aOW2Ib48BarstefuXjsoZl1qREqgMPtdXK0Ar5a8RhPJQ+Ta7ZL5yPFaM2p2SPKkuO XAE6+gEdBjPnAnWXgO9NsQrdyev7l7Q9wpwaPy5I4WqKdHj0CIMUdUF9dwimC1m2fPgm sZgBfaV+xvFpwslf4pR4hMknhC8drDX5RQTOTYoFQn40rF8aOzH5EumrIv7EdbjTxbSe F65jUrE2N1KoZ8dcy27Og5YEcQBMsYeH/XP81DnO3zHKZzBd9wOUwFa+OXLCggh0L6ci K0Ta2KRuJiX0shmaCHYRN2ZKC4naEQk8moXCf9vLTXBGje2KACOblxBdJCX65X1W1bat OgOA== 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 mu17-20020a17090b389100b002188bdc874csi13429672pjb.174.2022.11.22.10.13.15; Tue, 22 Nov 2022 10:13:28 -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 S234502AbiKVRxK (ORCPT + 91 others); Tue, 22 Nov 2022 12:53:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234885AbiKVRwg (ORCPT ); Tue, 22 Nov 2022 12:52:36 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 908D2BA5AD for ; Tue, 22 Nov 2022 09:48:46 -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 3E0331FB; Tue, 22 Nov 2022 09:48:27 -0800 (PST) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 944813F73D; Tue, 22 Nov 2022 09:48:19 -0800 (PST) Date: Tue, 22 Nov 2022 17:48:13 +0000 From: Cristian Marussi To: Ludvig =?iso-8859-1?Q?P=E4rsson?= Cc: "etienne.carriere@linaro.org" , "sudeep.holla@arm.com" , "linux-arm-kernel@lists.infradead.org" , "jens.wiklander@linaro.org" , "sumit.garg@linaro.org" , "vincent.guittot@linaro.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] firmware: arm_scmi: Resolve dependency with TEE subsystem Message-ID: References: <20221111095313.2010815-1-sumit.garg@linaro.org> <20221111143800.k7xje6g23ujefnye@bogus> <20221114102650.qwkaxtnstujaiu6u@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 On Mon, Nov 14, 2022 at 01:47:25PM +0000, Ludvig P?rsson wrote: > On Mon, 2022-11-14 at 12:29 +0100, Etienne Carriere wrote: > > Hello all, > > Hi Ludvig, following up on the issues raised by this thread and a few proposals that were flying around (online and offline), in the past days I took the chance to have a go at a substantial rework of the init/probe sequences in the SCMI core to address the issue you faced with SCMI TEE transport while trying to untangle a bit the SCMI core startup sequences (... while also possibly not breaking it all :P...) In a nutshell, building on an idea from an offline chat with Etienne ad Sudeep, now the SCMI bus initialization is split on its own and initialized at subsys_initcall level, while the SCMI core stack, including the the SCMI TEE transport layer, is moved at module_init layer together with the SCMI driver users. This *should* theoretically solve your issue ... (and it seems like all the rest it's still working :P) ... so I was wondering if you can give a go at the following pachset on your setup: https://gitlab.arm.com/linux-arm/linux-cm/-/commits/scmi_rework_stack_init_draft/ ... note that this is just a draft at the moment, which has undergone a reasonable amount of testing on mailbox/virtio transports only in both a SCMI builtin and/or modules scenario, but is no where ready for review. The top three patches are really what you need BUT these are probably tightly bound to that bunch of early fixes you can see in the branch...so in other words better if you pick the whole branch for testing :D Once you've confirmed me that this solves your issues I'll start the final cleanup for posting in the next cycle. Thanks, Cristian