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 A8D84C7618E for ; Wed, 26 Apr 2023 10:31:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 253DA8574D; Wed, 26 Apr 2023 12:31:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="TEh14ruM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 18A7285AEC; Wed, 26 Apr 2023 12:31:55 +0200 (CEST) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D6D7685723 for ; Wed, 26 Apr 2023 12:31:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=n-francis@ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33QAVnQE009746; Wed, 26 Apr 2023 05:31:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682505109; bh=MTZ3ELGoyr+wpQL69z7rSsl5djfFKfnggBSXjffMcMc=; h=Date:Subject:To:References:From:In-Reply-To; b=TEh14ruMEVeYaoojBUSoENLBXCnHP1HoFQD93+LojIeTyLRY0ZV7Yysa07YDfp2t0 Xq+kGHj1EthRblKJajKsqAhak7vEYLe1VOsJVzM3IvVXek4vWz7ftUXnBUIPcT7tA1 3zmo9vKiMcDjow/ChmGBLoUhjFzjLLLIBkmhLmf4= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33QAVnx3079040 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Apr 2023 05:31:49 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 26 Apr 2023 05:31:49 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 26 Apr 2023 05:31:49 -0500 Received: from [10.249.131.16] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33QAVj7p029375; Wed, 26 Apr 2023 05:31:46 -0500 Message-ID: <92bbfb51-a605-27c9-9fd1-65a921532fdb@ti.com> Date: Wed, 26 Apr 2023 16:01:44 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2] arch: arm: mach-k3: Delete tifs node in DT fixup Content-Language: en-US To: "Kumar, Udit" , , , , , , References: <20230419061352.3156023-1-u-kumar1@ti.com> <20230420081128.3617214-1-u-kumar1@ti.com> <217dded4-57ba-515f-dec9-77a63aebc303@ti.com> <77206a56-a0e9-ad4f-2c73-1f3b1109c649@ti.com> From: Neha Malcom Francis In-Reply-To: <77206a56-a0e9-ad4f-2c73-1f3b1109c649@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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.8 at phobos.denx.de X-Virus-Status: Clean Hi Udit, On 26/04/23 15:35, Kumar, Udit wrote: > Hi Neha > > On 4/26/2023 2:56 PM, Neha Malcom Francis wrote: >> Hi Udit >> >> On 20/04/23 13:41, Udit Kumar wrote: >>> This patch deletes tifs DT node as part of fixup. >>> >>> TISCI API reported msmc_size, does not include >>> 64KB reserved size for tifs aka MSMC comms memory. >>> >>> As part of fixup, original code uses TISCI API >>> reported msmc_size as size for sram DT node. >>> >>> tifs node is similar to l3-cache, which should >>> hold address above msms_size, and should be deleted >>> before passing control to OS. >>> >>> Documentation >>> https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/general/core.html?highlight=msmc#tisci-msg-query-msmc >>> >>> Signed-off-by: Udit Kumar >>> --- >>> Changes since v1: >>> https://lore.kernel.org/all/20230419061352.3156023-1-u-kumar1@ti.com/ >>> - moved tifs check above l3 as >>> >>>   arch/arm/mach-k3/common.c | 1 + >>>   1 file changed, 1 insertion(+) >>> >>> diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c >>> index a2adb791f6..33b1f10d58 100644 >>> --- a/arch/arm/mach-k3/common.c >>> +++ b/arch/arm/mach-k3/common.c >>> @@ -351,6 +351,7 @@ int fdt_fixup_msmc_ram(void *blob, char >>> *parent_path, char *node_name) >>>                 subnode, addr, size); >>>           if (addr + size > msmc_size || >>>               !strncmp(fdt_get_name(blob, subnode, &len), "sysfw", 5) || >>> +            !strncmp(fdt_get_name(blob, subnode, &len), "tifs", 4)  || >>>               !strncmp(fdt_get_name(blob, subnode, &len), "l3cache", >>> 7)) { >>>               fdt_del_node(blob, subnode); >>>               debug("%s: deleting subnode %d\n", __func__, subnode); >> >> Reviewed-by: Neha Malcom Francis >> >> I do have a general doubt; why do we have only atf-sram sub-node in >> msmc_sram in all other devices (j721e, j7200 and am65) except j721s2? > > let me know, which source code you are referring to > In U-Boot, for j721e, j7200 and am65; they *only* contain atf-sram? > I could see for j721s2 as well, in uboot[0] and Linux[1] > > [0] > > https://elixir.bootlin.com/linux/latest/source/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi#L16 > > [1] > > https://elixir.bootlin.com/linux/latest/source/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi#L16 > > -- Thanking You Neha Malcom Francis