From patchwork Mon Jun 5 06:47:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kumar, Udit" X-Patchwork-Id: 13266968 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F18A7C7EE2A for ; Mon, 5 Jun 2023 06:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=stY290qs/are1l7d/8RIuBuRmJ3Juog7YUGGKx3y43M=; b=2lOsdCsAB6fJZk S9TxJI/kp/C/QEf9RjD5WL5CmbDf5X0+EaKRB7LTt9KuyQiGO+NRGDzi92lSR1Fjiw51njc90trpI 6XCj55ooPWXnbcHK5INpqZI+5c8vgsTiuMc61XTppc/FufLS5+Dwn+OG/nYL2/o9Rzlsm2siWvuS1 bh3T0j/PI/EydS4h3Ndo+vdjNk70ZEWre50rz2d5lbaP890MVCmUTvWjytxMbn80N8o5rhfuunn8K hoaaHOZC/xL495jjsZLhOj3Z45zx3cMOto43Ztb8IYck2tZID0AZxiGi2eiuwN8fgfHPkE7DnEWd+ Hc8EEmDld/K5M2mgDO+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q640D-00EQmx-1M; Mon, 05 Jun 2023 06:47:41 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6407-00EQkS-1D for linux-arm-kernel@lists.infradead.org; Mon, 05 Jun 2023 06:47:39 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3556lUFH068580 for ; Mon, 5 Jun 2023 01:47:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1685947650; bh=bk7vYVX+24hkCNx7eoJVpwXUdrLm0M3f2DHOtsM+gZU=; h=From:To:CC:Subject:Date; b=PvpdUMrTLb1mjFJb7tv+GoEsFqp9R/U6zhn+fBAhfGDjKY3Cg5oJK85v+RbTPJKeB VfqgatJPQA4WJlYOveyaRIrgzmWnm3pxYRbMxAPoU0E1tYtAdT1nVgGMKj9vL/rd1/ 4wifRC9Sqz7AOY6f8djHD9ML+Xd7UNJtR1W7gBVc= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3556lUBe074201 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 5 Jun 2023 01:47:30 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 5 Jun 2023 01:47:30 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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; Mon, 5 Jun 2023 01:47:30 -0500 Received: from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3556lL40018092; Mon, 5 Jun 2023 01:47:22 -0500 From: Udit Kumar To: CC: , Udit Kumar , Manorit Chawdhry , Neha Francis , Vignesh Raghavendra , Nikhil M Jain , Kamlesh Gurudasani Subject: [PATCH 1/2] configs: j721s2_evm_r5_defconfig: Increase malloc pool size in DRAM Date: Mon, 5 Jun 2023 12:17:14 +0530 Message-ID: <20230605064715.2034372-1-u-kumar1@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230604_234735_565930_E721E332 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The malloc capacity in DRAM at R5 SPL is set to 1MB which isn't sufficient to load the new tispl.bin to enable loading of tispl.bin the size is increased by 256KB to 1.25MB. Cc: Manorit Chawdhry Cc: Neha Francis Cc: Vignesh Raghavendra Cc: Nikhil M Jain Cc: Kamlesh Gurudasani Signed-off-by: Udit Kumar --- Uboot was getting stuck at below U-Boot SPL 2023.04-g495e929147 (Jun 03 2023 - 04:02:26 +0000) SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--1-g2249f (Chill Capybara') SPL initial stack usage: 13424 bytes Trying to boot from MMC2 alloc space exhausted spl_load_image_ext: ext4fs mount err - 0 SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ### With patch boot logs: http://serenity.dal.design.ti.com:7777/jidenicozi.yaml configs/j721s2_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j721s2_evm_r5_defconfig b/configs/j721s2_evm_r5_defconfig index c197504eec..6910705d59 100644 --- a/configs/j721s2_evm_r5_defconfig +++ b/configs/j721s2_evm_r5_defconfig @@ -178,3 +178,4 @@ CONFIG_FS_FAT_MAX_CLUSTSIZE=16384 CONFIG_PANIC_HANG=y CONFIG_LIB_RATIONAL=y CONFIG_SPL_LIB_RATIONAL=y +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x140000 From patchwork Mon Jun 5 06:47:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kumar, Udit" X-Patchwork-Id: 13266969 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 439D0C7EE2A for ; Mon, 5 Jun 2023 06:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/IyPVxkRLbPqWmibsLsePu8fszoYowZ6cGb9NWmHlCo=; b=4ldmxzV1PWg4ts scAz0Ih4EJv03t0kC0ZcBMoJGG+2SERVdp+TCkaLoAfoAsheJ3CrLMY1hv1FeBeQKm3EcHJyZV9ex nNSDCXET1hQfoFUyHdV2wWUgAdFQmKbv/+uLWXuUE60iVuux+IwKdaEOou7Z6vuvkunBxFjkn7sIM bWtzqvdSDHpMpXaim2VzKj2anPSEZ8QNXwGoNG9zngCBDFytZ72XN2onDbGrBJE4vu9TCk0cLC8mG Tm46vkrocR22+RGVa9s5GVM7rui5rw/jVkXQD9JAQIw8WI+ID809biv4xqkngRuAHj8qlNQCLyq4J 1f99Hl/lUU7GL6ziStmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q640V-00EQr1-1f; Mon, 05 Jun 2023 06:47:59 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q640R-00EQpt-2X for linux-arm-kernel@lists.infradead.org; Mon, 05 Jun 2023 06:47:57 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3556ltJR068676 for ; Mon, 5 Jun 2023 01:47:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1685947675; bh=JHc4r8l0ayD6PTFiUoMEDoaV+RQSiNkUCsjL2WYs2H0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AGckDWWYKv9YYOCL1bVlPYd2cEoGVAcrK0AVbuyAp8rqsRT/jm8XuQdE3L41GsyxR ZpFJ5oI7MC59ezNOe8QBjNoMvCGVDRfCuNv2DngzJJHQQe8RL5rZKmXykrhVWWhCyO FTCwEGDsexNLDH+yLOUObuD+XDvh/gDEg8TMtNCQ= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3556ltrN061282 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 5 Jun 2023 01:47:55 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 5 Jun 2023 01:47:55 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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; Mon, 5 Jun 2023 01:47:54 -0500 Received: from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3556lL41018092; Mon, 5 Jun 2023 01:47:31 -0500 From: Udit Kumar To: CC: , Udit Kumar , Apurva Nandan , Neha Francis , Vignesh Raghavendra , Nikhil M Jain , Kamlesh Gurudasani Subject: [PATCH 2/2] configs: j784s4_evm_r5_defconfig: Increase malloc pool size in DRAM Date: Mon, 5 Jun 2023 12:17:15 +0530 Message-ID: <20230605064715.2034372-2-u-kumar1@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230605064715.2034372-1-u-kumar1@ti.com> References: <20230605064715.2034372-1-u-kumar1@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230604_234755_905811_6BCDD449 X-CRM114-Status: GOOD ( 10.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The malloc capacity in DRAM at R5 SPL is set to 1MB which isn't sufficient to load the new tispl.bin to enable loading of tispl.bin the size is increased by 256KB to 1.25MB. Cc: Apurva Nandan Cc: Neha Francis Cc: Vignesh Raghavendra Cc: Nikhil M Jain Cc: Kamlesh Gurudasani Signed-off-by: Udit Kumar --- uboot was getting stuck at U-Boot SPL 2023.04-g495e929147 (Jun 03 2023 - 04:02:26 +0000) SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--1-g2249f (Chill Capybara') SPL initial stack usage: 13424 bytes Trying to boot from MMC2 alloc space exhausted spl_load_image_ext: ext4fs mount err - 0 SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ### Boot logs with patch http://serenity.dal.design.ti.com:7777/sifosahowi.yaml configs/j784s4_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j784s4_evm_r5_defconfig b/configs/j784s4_evm_r5_defconfig index d121671ef5..7f1baebe3e 100644 --- a/configs/j784s4_evm_r5_defconfig +++ b/configs/j784s4_evm_r5_defconfig @@ -178,3 +178,4 @@ CONFIG_FS_FAT_MAX_CLUSTSIZE=16384 CONFIG_PANIC_HANG=y CONFIG_LIB_RATIONAL=y CONFIG_SPL_LIB_RATIONAL=y +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x140000