From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E415E804; Mon, 26 Aug 2024 10:03:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724666596; cv=none; b=Nvlyn+0hC2w1MPoTZ5qXf5cFe0yvErqSsJBP4lJmWxDMx/FAG7rj5P6p3LZEgPA3x4Kjj3ffjoUYbG0H+799n/MpMFb8Sa/pdSKKt+1p5VHcuThpeulXdDFyxlPsv5BS8uNUO+hUNNe42MYRONtfB7hp8Fs8tBnnP5Y5hnN+ys4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724666596; c=relaxed/simple; bh=kYffuWLIPP8kK+2UdQqvt2hDHMmOIxHdbuL0p71T9/k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PY2IYCiaxzrQZD2v8ITPml51H3Lwstyqnj1ksBQnhuxKfRnSxVh7sgJEhXW08WRZmsdN7JWtD3nZQGDSpDIXeCLwlx4RGMcVpc+jHLN573V0sxYRGkX37h454g2F2KHmiij1hqdtDmLi4ND++nX++D8AIAM3vrzAFUJEOkLxxJc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10508C51407; Mon, 26 Aug 2024 10:03:10 +0000 (UTC) Date: Mon, 26 Aug 2024 13:03:19 +0300 From: Catalin Marinas To: Steven Price Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Suzuki K Poulose , 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 Subject: Re: [PATCH v5 04/19] firmware/psci: Add psci_early_test_conduit() Message-ID: References: <20240819131924.372366-1-steven.price@arm.com> <20240819131924.372366-5-steven.price@arm.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240819131924.372366-5-steven.price@arm.com> 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. -- Catalin