From patchwork Sat Feb 17 19:02:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13561512 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 5080FC48BC4 for ; Sat, 17 Feb 2024 19:03:10 +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:Cc:To:Message-Id:MIME-Version:Subject: Date: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=rgfL3iK0zJ7ptwFkgh8i8wsfXDucqdp7kYv/SxLi0Co=; b=2zW6XoMwiwaT8c qCEBhyYXR8EjCfG7Lzkerh+kV/yP0m4pzV4RNgv9LYOnIubvggcbWnqe2FKJXpRQmVd7KdeOnP/oH T+AjFWJFEiCik7Jhbb1DUSqGKhveM4PQ8z0g2eFODj9FYV3klIZXBr/348fRydkJg4h/QdTvsmPE0 6D1Hgg67QPuIhCtImVNU1sEpqdKCBXFQggIlGUAO6FxAgTrYGFOFFV1JYGFKkD+91Oij+1/PhhxRe j77YQdSGyXa8axoRoEt7Qm2FnQOOXBj5L44wvUuuuVnzd+IJBcQY0koLOscZrxTwPHtm3pMXcnWQG pyi6EFSGc5iCEPsI9efg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbPxf-00000006Cau-2NAp; Sat, 17 Feb 2024 19:02:55 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbPxd-00000006CaU-0uEm for linux-arm-kernel@lists.infradead.org; Sat, 17 Feb 2024 19:02:54 +0000 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-563e330351dso1953297a12.0 for ; Sat, 17 Feb 2024 11:02:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708196569; x=1708801369; darn=lists.infradead.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=4Lac2picLjLIoJIqmJ3jwHeZk9Y07zDWjhfc+5OdXmQ=; b=fj5dLhHviiS5vkLKJHPMvLFdtNINWF8lxL8dai7iGw2gSMidCOxrkJrMt7SN9CEPVy xHLegD+Okq7Y2kAkW9jOpcAltn6nypy5Gy+YrUN3+3TNI0vCNGEoE2ySU+pJzATF8sov rwO8yxE6kqtaymA0EYujpimnhVG85OuWJbjr7dN6JtpBg7JM9nxVVh4ieO4kebswcJHx RUvbu/eH3plWU8RgryJ9KzXc18UbsNCopjnxJHGKep4Io3pDeaEtiJV8Pbg6YFAZDfpS ie29Gwic+CKJPr7I68jb34ryG9qStmZ0MkXHnf/gwE7akpVcsFAAk3oQWXraMZ8jMerU 0bWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708196569; x=1708801369; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4Lac2picLjLIoJIqmJ3jwHeZk9Y07zDWjhfc+5OdXmQ=; b=Y4N2gHDcyK1fYa9n6QVAMZsNhfChKmZCgxGa2rR1RXuZ36mQqWZfYB77tCBdmsxO0h Bx19OTGCi/dNXmJhZEJ4dDxSNXYJtVff2yixM1mu4KDOvKy2itJUeBvM3YnAP4jIaf0x ex4ufgMwVErOuDT606yeRrMTqJ2hHPD6s49wdrFf+OuBKabWpRZMdDFdxqrt3B85oacV MqN8xEX24CGQGSUDy3tGEMEwIJjPcOgx8c/qGJQCrjI94tJYFhT/91VkLCKRcqoxG5mD zctdcNshU9eWqP3B2QymITmFzQa1tljdplYaBAPSRlOWfsjmQG96v553m/ruWWgy9jzc qk2A== X-Forwarded-Encrypted: i=1; AJvYcCWBesCF/NNU/+KjWHSgx65jsOM7TdNo13uvoiiyRwUwXn10ia4qp/Ny5KzZWZ8dvDGagWUZufX3fo3R3i4LCLafKJeW3Yli+8pgVE3DupADjgLZ/m4= X-Gm-Message-State: AOJu0YxJTPo+Tyae9KlQPTVJ1m+wjereT+ei6yunKM5ZjyLzjBpFgV96 8NGpJvWucxu0PKL4y99SdkndzOljPNLxsyAdGRRPsUjmxOUDZz0D6/Hbqk9P X-Google-Smtp-Source: AGHT+IHUnoow3gnSl7dZKjTAjZ7Dw6aAekHra1nJ9Oj47uNUjo4XtqFr1n7npYF8V87OvInYKn6TWw== X-Received: by 2002:a17:906:d0c8:b0:a3e:3810:9e43 with SMTP id bq8-20020a170906d0c800b00a3e38109e43mr804180ejb.21.1708196569247; Sat, 17 Feb 2024 11:02:49 -0800 (PST) Received: from hex.my.domain (83.8.201.110.ipv4.supernova.orange.pl. [83.8.201.110]) by smtp.gmail.com with ESMTPSA id n26-20020a1709061d1a00b00a3e4ce615dfsm317769ejh.197.2024.02.17.11.02.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 11:02:48 -0800 (PST) From: Artur Weber Date: Sat, 17 Feb 2024 20:02:47 +0100 Subject: [PATCH] ARM: dts: exynos4212-tab3: limit usable memory range MIME-Version: 1.0 Message-Id: <20240217-tab3-limit-usable-memory-range-v1-1-49cc9c86a5cc@gmail.com> X-B4-Tracking: v=1; b=H4sIANYC0WUC/x2N0QpAQBAAf0X7bMudK/Ir8nDcHlsO7SGSf3d5n JpmHogkTBGa7AGhkyOvSwKVZzBMdhkJ2SUGXWhTaFXhbvsSZw684xFtPxMGCqvcKL+tnPLe1m4 wxkGKbEKer3/Qdu/7ARq6LKhwAAAA To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708196568; l=1185; i=aweber.kernel@gmail.com; s=20231030; h=from:subject:message-id; bh=+gahNNXw/Pm22B5Zq6yjilwXg3lroxCbpY8aZXPC0Go=; b=tZNoBo5ZsG/QVrkuKO4TO2NXuvdUYWYw6UF8A7eAE5hPJ1Y/QjjwPuwqKIFnNtAwt2PAeHRPg plW6pTjZszjASx/zTH5uq7Vy023lVkJTaOTCyCzjWrOmFWRxugBbWAH X-Developer-Key: i=aweber.kernel@gmail.com; a=ed25519; pk=RhDBfWbJEHqDibXbhNEBAnc9FMkyznGxX/hwfhL8bv8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240217_110253_295000_BA473DE4 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 stock bootloader on the Samsung Galaxy Tab 3 8.0 provides an incorrect available memory range over ATAG_MEM. Limit the usable memory in the DTS to prevent it from doing so, without having to disable ATAG support. Signed-off-by: Artur Weber Reviewed-by: Henrik Grimler --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) --- base-commit: 0f1dd5e91e2ba3990143645faff2bcce2d99778e change-id: 20240217-tab3-limit-usable-memory-range-1d1ffa8dc44d Best regards, diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index e5254e32aa8f..9bc05961577d 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -45,6 +45,12 @@ chosen { /* Default S-BOOT bootloader loads initramfs here */ linux,initrd-start = <0x42000000>; linux,initrd-end = <0x42800000>; + + /* + * Stock bootloader provides incorrect memory size in ATAG_MEM; + * override it here + */ + linux,usable-memory-range = <0x40000000 0x3fc00000>; }; firmware@204f000 {