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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 76B00C433FE for ; Tue, 22 Nov 2022 17:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kdQPwPkER4X6Hw8FKlUnBOBh82S20t1Xab/ZksmfINc=; b=HZETgoNNeX6CJ4 kA79f5A0PqQ7k14zarkio3aGA3iNF4m8hnYHJ0Au914Kv7zsT6Ng8hhsXleehGY9XSmd7QWLDUMLq z/43z6bE4Kp4EbF7wAYc1Xo6k9E+1VtQsHtLcekT31odVvyjKpG8QFtEndCBIHvlwu1H4A3hXWDLi zKiqhca/sebvV2MASgRpilLyvg3RnjDFEWYu9OmZ8cY2GZqKHykczt+MJomsbVk/WrUtyN7o3/mmh CvKTuPGVqn73xeKGCDwccl9s4IOb0mhHNSnecGO5OOcxFNbzXy2P5bUC+d7b7TxriIeZ1Y6mGPykS 115ZzOPzE8oiRnaREr3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxXNo-00B9aw-DY; Tue, 22 Nov 2022 17:48:32 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxXNk-00B9Y6-At for linux-arm-kernel@lists.infradead.org; Tue, 22 Nov 2022 17:48:30 +0000 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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221122_094828_463147_1D3341D2 X-CRM114-Status: GOOD ( 14.65 ) 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-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Nov 14, 2022 at 01:47:25PM +0000, Ludvig P=E4rsson 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel