From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1D811D86FD; Fri, 13 Sep 2024 13:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726235566; cv=none; b=EaywomaTjEdOcqiEjpBvVzzmW1rlzLd+ESfSp1Vq4JDkkqIGv0N7oQtQZEpZqwoYjj8TCC2M2B5qG9KGD3Rh2GWnwRCmaNdpcN4KJlx2VEWJpotEfyFjMgITkTbR34qGSJSWeK1aLreeKjJFCxyVbKnHqfYW8ykfk2JXpafDynE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726235566; c=relaxed/simple; bh=I+E10dZp9h10g1VxXIbj1/pHLRChuRvZfeT9ZUzKBjc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eyAdvbAzgvCRSwnv2oNweLiwqC+ky/FibQPuV0Vq1Z5RYbZ69grwSJMNNIfFxt7fsApgGB1wWb2rul8wvwW2lq1BYbEmzWb+Ke5wex4QSmhZtr/ssZBkv1fAGsRX9vxivRiha3hr5X5cEqPMSp+UDN5KpgFAPvEQ/CnKOivG6b0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 1106A13D5; Fri, 13 Sep 2024 06:53:13 -0700 (PDT) Received: from [10.1.197.1] (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 16F153F73B; Fri, 13 Sep 2024 06:52:40 -0700 (PDT) Message-ID: <2f9f10cf-7356-458a-bf63-ed6a757df81f@arm.com> Date: Fri, 13 Sep 2024 14:52:39 +0100 Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 04/19] firmware/psci: Add psci_early_test_conduit() To: Catalin Marinas , Steven Price Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , Fuad Tabba , linux-coco@lists.linux.dev, Ganapatrao Kulkarni , Gavin Shan , Shanker Donthineni , Alper Gun , Jean-Philippe Brucker References: <20240819131924.372366-1-steven.price@arm.com> <20240819131924.372366-5-steven.price@arm.com> Content-Language: en-US From: Suzuki K Poulose In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 26/08/2024 11:03, Catalin Marinas wrote: > On Mon, Aug 19, 2024 at 02:19:09PM +0100, Steven Price wrote: >> From: Jean-Philippe Brucker >> >> Add a function to test early if PSCI is present and what conduit it >> uses. Because the PSCI conduit corresponds to the SMCCC one, this will >> let the kernel know whether it can use SMC instructions to discuss with >> the Realm Management Monitor (RMM), early enough to enable RAM and >> serial access when running in a Realm. >> >> Signed-off-by: Jean-Philippe Brucker >> Signed-off-by: Steven Price > > On the code itself: > > Reviewed-by: Catalin Marinas > > However, Will has a point and it would be good if we can avoid this > early setup as much as possible. If it's just the early console used for > debugging, maybe just pass the full IPA address on the command line and > allow those high addresses in fixmap. Not sure about the EFI map. > We could delay the RSI init until we have probed the PSCI conduit. This could be done from setup_arch(), after the psci_{dt,acpi}_init(). This is safe, as the EFI maps are only created later, as an early_initcall(). Kind regards Suzuki