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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA27FC4332F for ; Thu, 22 Dec 2022 03:58:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 04FA585236; Thu, 22 Dec 2022 04:58:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1671681487; bh=Dax9TS7YydjkDDlegj79V3aOEI92uHusu0yjZoG7BVs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=s//uXwYVB3Oq2L59GLhYh/JpqzaTQCtAs1oMU2F3KjJUG/poS/H6cSGP1RwiC8tZh kW8zTOspVpNHeHuTliSUBiMmJNIZ+F4J7G26Uu2INmfh6Kqt0UYlu6PDAxUhlNkVmw tEbx1vbqOb0qMsO0pmpepfFXlsnbRosVDhNhfAwamf9g1OzXiu1TXn0vr3AaecPpui AFR5BHC7cYEuhPOTUqM7e7tr5oAsQeDHe59qTdv0SvpVXJU0OZp6MpP10uAYlABb/1 JSPKGG3aRPfkbBD87fKmJU2Zm5xq0BKSRqfMsjes9s4xhJgonNuzRzLuHOlgRYvERA vfI9NmJ+z+FEg== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 1CB2185215; Thu, 22 Dec 2022 04:58:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1671681485; bh=Dax9TS7YydjkDDlegj79V3aOEI92uHusu0yjZoG7BVs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gE574G2mUABGHem5dD5Jb6aj/6siRRszu6o/Yax4hqnlFajdufYGrU/Qp5FdQQX6G 48VtlZRid10A5mk1L8y/7TuRtCdhIFDwVWfFObkhT/h5+6CS0Nztv5kBsdhBt30ZBQ ygBA2oVFEmB3wHGvlo0wjnQEwc5vJoyBxvMSOU+o9hOnPOsRNABnzhxFIHvuwecoTt M642Y+bLWrmp4dx52MvFGDIT9hgaUYZ5TP4j6rWSLwE+BrxFzP7pGWpDFWqMTuZP1K N00RMUalZT+nUqpg72TRiYVIV/eV1vyo58m9CAji+PbQNi3E6uNzQbKBR1Zgz7nyDx oSkhFnUkolJkg== Message-ID: <4cdb0d64-253c-13fc-841e-96cfccd98c69@denx.de> Date: Thu, 22 Dec 2022 04:58:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH 10/10] arm: imx: imx8m: Add basic PSCI provider implementation To: Adam Ford Cc: u-boot@lists.denx.de, Ariel D'Alessandro , "NXP i.MX U-Boot Team" , "Ying-Chun Liu (PaulLiu)" , Andrejs Cainikovs , Fabio Estevam , Manoj Sai , Marcel Ziswiler , Michael Trimarchi , Peng Fan , Ricardo Salveti , Simon Glass , Stefano Babic , Tim Harvey , Ye Li References: <20221222004643.1013095-1-marex@denx.de> <20221222004643.1013095-10-marex@denx.de> Content-Language: en-US From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 12/22/22 04:05, Adam Ford wrote: > On Wed, Dec 21, 2022 at 6:47 PM Marek Vasut wrote: >> >> Implement basic PSCI provider to let OS turn CPU cores off and on, >> power off and restart the system and determine PSCI version. This >> is sufficient to remove the need for the ATF BL31 blob altogether. >> >> To make use of this functionality, active the following Kconfig options: >> # CONFIG_PSCI_RESET is not set >> CONFIG_ARMV8_MULTIENTRY=y >> CONFIG_ARMV8_SET_SMPEN=y >> CONFIG_ARMV8_SPL_EXCEPTION_VECTORS=y >> CONFIG_ARMV8_EA_EL3_FIRST=y >> CONFIG_ARMV8_PSCI=y >> CONFIG_ARMV8_PSCI_CPUS_PER_CLUSTER=4 >> CONFIG_ARMV8_SECURE_BASE=0x970000 > > I am guessing 0x970000 was for the 8MP based on the previous location > of ATF. Is that true? If that's the case, can I assume that this > address would be 0x910000, 0x920000 and 0x960000 for the imx8mq, > imx8mm and imx8mn respectively? It was for MX8MP, but you can pick whichever address you want, since it is U-Boot that installs the SMC handlers, you are no longer forced to somehow try and accommodate custom not well fitting load address picked by some 3rd party binary blob.