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 5041CC3DA7A for ; Mon, 2 Jan 2023 23:58:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6BFD1854D0; Tue, 3 Jan 2023 00:58:12 +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=1672703892; bh=QA5MwiH5OkHCZJRi0FsPi5RhntPce8KIdfPGZrd57Rs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Emn3J3zQtW9tGD+9qj7tCO40/mxtZbiRUq6rHQXlgdKp2mq7pj8MDwyoihmD7L10+ ZttvRaDzwpu45CPyfETiFPQGuLsFh/yfsq55eq+Hcx1O94QdA2jG/iQaeMGUNmB+I5 ar9XiP4/vpQF9Acw4GWMbrNEjmUxNOeDPiWHUQ8P6vkzfYUDHrKVY+8nTncbxvSAVT 2Vs5c8j+0ekIeR7rikxNwIyvq1mk8WuoKJIwFf6k0fqMMVwVTQgKJVELI+LCdfILv6 sVd7fxOr6Gum7Onj+dQcFqtIvnskjmQucTdqqdU4c2WZuciySBbfyTDfeTibnjzT5h YdYS8V7PFJLIA== 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 03B2684931; Tue, 3 Jan 2023 00:58:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1672703891; bh=QA5MwiH5OkHCZJRi0FsPi5RhntPce8KIdfPGZrd57Rs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=fi/O63z2oAWI0Vc+d8EVz1kpW9AaDKERfsmpjMqe9yqXUjVVsJDcIxPF2+WxNE8Rr Hl8NYtoHkstsHPmKDH8i8qb+CLYJcRjEUYp3hNg7ONNkKvb6p917ZxXoAt9dKbRM3p zZlfyzQy1y9XhjCrhgNNIrxl89XZ11tXaVGFXP1KKo6TjKo+zoWPy1uMsMspu6Myib jsZjcptBiWbs/AFOyFEhk2JMpvKsTgISNo9WK3cwsvenP9V7JmlCHxeEIQvlYE7DvU k93RzJzkt6hWtT1V4jDdB8MnquieMGDD59qLYR2MuzAsHARL/gdfYpsuMWn6/gbRVD pEf85Ebf3GQbw== Message-ID: Date: Tue, 3 Jan 2023 00:58:09 +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 Content-Language: en-US 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> <4cdb0d64-253c-13fc-841e-96cfccd98c69@denx.de> <637d6da7-5fcc-18ed-546e-914e495a35b3@denx.de> 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 1/3/23 00:47, Adam Ford wrote: > On Mon, Jan 2, 2023 at 5:41 PM Marek Vasut wrote: >> >> On 1/2/23 17:44, Adam Ford wrote: >>> On Wed, Dec 21, 2022 at 9:58 PM Marek Vasut wrote: >>>> >>>> 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. >>> >>> I patched U-Boot's master with this series and I tried it on >>> imx8mn_beacon and imx8mm_beacon without success. I never even saw the >>> SPL message. I tried to focus on the Nano since the boot ROM in that >>> one is more similar to that of the 8mp, but the behaviour was similar >>> to that of the Nano. Are there any dependencies or should I have used >>> a specific starting branch? >> >> Nope . But if you don't even see output from SPL, that's where I would >> start looking. Do you see output from SPL without this series ? Note >> that bulk of this series content applies to U-Boot proper, not SPL so far. > > Without the patch series the generated flash.bin file booted both the > Mini and the Nano just fine. I have a pending 8m plus that I can also > try, since that is what you used. I just wanted to make sure I was > starting from the right place before I went too far with it. Try and drop [PATCH 09/10] arm: imx: imx8m: Program CSU and TZASC if PSCI provider does SPL start then ? I plan to try this on Nano at some point this month too.