Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp350109rdb; Sat, 17 Feb 2024 11:03:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXfsTUZa/u8CZxMa2YTyfG2Y0Ics+HJnnXKSR7BJKOUOt7Yi+8uorx8HYo6Di6josIv9upTaIbscdcuHsYnqNNqxY7UD8pbb3CaNLhRRQ== X-Google-Smtp-Source: AGHT+IHcnv0PWV3ZOeH61BcXHvLq42VGVV3WD5heLFcJ+iqxlpd1nMjCLYjW/Hx3432m9vCpsuer X-Received: by 2002:a05:6830:10d3:b0:6e2:d888:6502 with SMTP id z19-20020a05683010d300b006e2d8886502mr9860509oto.11.1708196581042; Sat, 17 Feb 2024 11:03:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708196581; cv=pass; d=google.com; s=arc-20160816; b=fSXDeIMF5bYOreuloZigC0CRS2ZxKHIxt7Eu0CB5fg/Qm/J5fSyXHu4aTZ82/V5BYT yZMNiZE1U16GE315GHoEKp+v0SFVc/+Tkm/+SJKOV4Yb3OIOu2cSR/OkOzyJxDy9BwEJ GwOQaKKKXAZG8IiQYYyUvO7TijKWHagdQgRxjHiEe62E7nXl534NcjCwbYiIv9c2ls8F z78nQWsBJ3oWCUbP3gOja9tLh5pZiylYy7Gwxr0OiSgxpGNgd4dz0vTgCBkYyUSeii4R rcKAUjGgN3mEoNNbPGFIbkDZ7fHLUOgnetjbYso0OxXPTqEz/tgS0VUwES69y2sKh9pY rxJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=4Lac2picLjLIoJIqmJ3jwHeZk9Y07zDWjhfc+5OdXmQ=; fh=r5IbzkzXQGy38MblmS6tAkGqqhY9UeUz9yjOTADJfDA=; b=iJHGcQqrIFtrfEBaL7fwS7f2ENY7tNkb/HvornmUrSy1p+YeEOhNTvuleHDv+bqF/V 9IIdy2RadMeMSxXNtS8JBnewYsq8xr4ZiNzmNdnp9rZuwmV1EDsgfNr0oN4Nj10HrkfG j/GecgWeVHXPuPH4KQ+wuLXoxZS7NPQVQ7fxKG7SdFaYTvJatPVaG3RLfiJtuyGY6Trn Yg/suJA4Izs/JBDiq5VjxbKEahqYDguO19hTb+SPMW1PVrEPLPoE0FNVxc49Ry3Jfjgh aJ8dZFpBmN1b4Br5Z/f0eS+EFQ6zDYo8fAraTGbuyAVD5i6wrUjTh2n8ylkKtYomhlaK /Z4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XkdgYNN9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d5-20020ac847c5000000b0042c7bf8c2dasi2562126qtr.315.2024.02.17.11.03.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 11:03:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XkdgYNN9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C68691C22823 for ; Sat, 17 Feb 2024 19:03:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 735BE7E571; Sat, 17 Feb 2024 19:02:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XkdgYNN9" Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 142AF6DCF5; Sat, 17 Feb 2024 19:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708196572; cv=none; b=OVFR4A3RemaiLuUm34SYMiV4I4ot7cGsyWM3RiTC5bcYB2jD71QTcNQvCdACmb5CfKX3FnnqzerFCCky1pdSKWp/pxblDIyYE9UFC3M7lDyzXgnipCcFqhvdm3CyK2slBxNgWThozOFD7rc5HLwcbKbHOKCHm+c+npxDMvHXfa8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708196572; c=relaxed/simple; bh=+gahNNXw/Pm22B5Zq6yjilwXg3lroxCbpY8aZXPC0Go=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=IhRe0AnBR/tCJHk+C/XLB7PwDDyiaZ2Y7hPdTMWMfD1QNiqT+71fuQux5/61wC9iVmOpQsJom5xXmE03QFIg3apo8JkGjNOl89teBJcZUpXdrjF5o9am+ggpU91qd9QMB5Vik7ZdzQ9dbB8J0LbmbRqNmsINOy9TZnN768TS5IM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XkdgYNN9; arc=none smtp.client-ip=209.85.208.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-563fe793e1cso1850319a12.3; 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=vger.kernel.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=XkdgYNN9oirm/pltqghFaJLCsjqh67q+7fB8kSa6US8bBSrDOzgmehcuOq3QT15hlj Ru2MwBmFCnZaQzp2/GGXNDLZhIhUJB+nWUDbEr6+kKMyg+s2rKJh1yjky42QIY2u6a26 3NTRHs40aRa0E8SeHQwPaGmoJrEtBnaxYd2XRyPwwi7BE5kBFqpqj7vqpqyOMk8gF7WO fyQEFLyBH3K8ZF/I7BYQpc6zLdjiCkNL46QcrxlIbIMAY6AI1reHsROvDurO7SFWHPNJ XKOcPoRf0oNvKg/p8vNpne52iqS+W1/dK6KqHA9Z5ggY17P7J6tY3yi6JANGLvTzARZk qyDg== 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=lQfTakS0X29Tgw90tuM/ruKKVwMnLaWYiS5/8NFdKNj+cdW9JLRNozZPKWCfhVSXZy QhJe7pHfN3FfftXSra9ZIwCS+P1BMH1SuvXP384kEHrHy5f33txMK7y5GRtePO6usBq7 YMK7UwR66jjH/ixeC5jxtkkWPVvZdL/pkZHS00hj5vrXZVLYjwz5mHoj9hCcouYNG+zu dxteiczJ2FCgizox47OAu3Mr1hC7QiPVXSgBvzrMEwJGX9RD7vGf+SD418Tz17CBU010 Lud0Qu7IhxIWvSQFnLVKNIS3UCK4GmAiIPMnO3Ekn3xP6T5XOvnEZAHwDvrijj3bt7qT CNEw== X-Forwarded-Encrypted: i=1; AJvYcCU+S0JYXf9xNJA6HDfQDBQhXLgsEf4RhpNUhnOulRlbnY9tiV3sGQd2VnpT/2KjQvkrho83KNVRFMCH3Xu16ypdV+BxmPtaGBuNu9AtwRWTM+rV5ocHloBm2EY7twjJT9kUFIJyatUSdrlVJblVlQU= X-Gm-Message-State: AOJu0Yxjzg1T7kMwlt4LjfAADOpyF9NDnjzhqPCDNIIk0vcEGRkdxwPb F4rOPERmWjymeVbEH/2e9xoWvs9R/I+QAAJ+0LWSEgJttFFVZhBC 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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= 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 --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) 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 { --- base-commit: 0f1dd5e91e2ba3990143645faff2bcce2d99778e change-id: 20240217-tab3-limit-usable-memory-range-1d1ffa8dc44d Best regards, -- Artur Weber