Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2224998rdb; Wed, 21 Feb 2024 00:26:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV10wJlcczjxwDIfbapp0G4Tcp3gxyzRr47TcA5j9DZl1z0Ww7AAd5PqJorHjnkfOuJTqTjifFqIl1qNowXA957rNgUwyx35UV0Kmj8iw== X-Google-Smtp-Source: AGHT+IEzP7pwhAH8iYpAze77kiaNFfgBCQsWtXRhRzEJKLuGzQ2xWDH6mdpU/Lu90TbHlOdL93r4 X-Received: by 2002:ac8:7f81:0:b0:42c:56cd:14a2 with SMTP id z1-20020ac87f81000000b0042c56cd14a2mr27529198qtj.6.1708504008287; Wed, 21 Feb 2024 00:26:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708504008; cv=pass; d=google.com; s=arc-20160816; b=Afdgjean5hrRb1u0xpvxyPozDaQG6FJSKJKGf6KRixNy6GWy9b8WmI7izAo5BtVVa4 LmQ7WgQnLXQwobawh5/ghpwPG/uGZttckrq6M4gJ5NCZ9PIXef0tr7U/BvKj0OQie51o QZgO8MiEs+gHfKfj48e8dOOz0Rm5XotRjvUJ4jX9ZVIAOvfMXv46rdhtoFpg57bgpZph +e8JTd0Jcs52ggYJxr4ipCQ8NiZnCv+QB3GsRmZzHLkOvzv5he7Oof4+z+OaheKHWIvt hB34N6ErI1+Knk83nWJdJz4agq83Ckwy73XP8Zk/y2CgBxoKw7uvmZLU5OtF6JeSG/sl tDXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=q/sQIzf7jUG39BwFXjRnU4IN93Y7rOl9mKYuRy+MVuk=; fh=euCEURmX5j6D+Uj+JAxcmZ+f7KCRnU88QVLxcWMgmzU=; b=Ti7kZdbdLUDeWR933G+bttRF0C3hCu96ZCRBnTwPFm2wWkLTxhADNnf6s4roxqGt0A AQuGpwYY0M6Lf+5Ip3Bx/BcngD8HTGu/OkUHAY9o7GDVeZNyRlBjdFkeaE4dFvWrZUHr 665wwcEOAirXOoqojCE7O6teTlZk2IMKjipoi6GIpvbgJ7ZxOFpfbWV0J7dp3qVSmWwi O84DZN0RSBemPsEbD5vuI+FNhADRigmz1oIsL2YgAXi/xTUztfr2+m+7rtgxqI70QKPo I+VcYyakj/a0e7XXlUI/9q+4uLng0xpT8cyAvrx8ChyY9RPePmzvmFWFhOZ6vmYQqbZk sRiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gv8Lv9yG; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-74299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kk9-20020a05622a2c0900b0042c3b7b7908si9813962qtb.350.2024.02.21.00.26.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 00:26:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74299-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=@linaro.org header.s=google header.b=gv8Lv9yG; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-74299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 E40931C230AE for ; Wed, 21 Feb 2024 08:26:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E892C3C068; Wed, 21 Feb 2024 08:26:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gv8Lv9yG" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 332B53A8F5 for ; Wed, 21 Feb 2024 08:26:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708503999; cv=none; b=DvwTjFSo8IPBmtmAZikEq3XK/ikFmyl1XcBDG9vxBvQ46bdK7CFSMJXrYTPeP5uv52ZTg4WRFmkay+UNV6b3lmMdx5MqpL9c6uzJX1St2nuZNGkgcB5que5W3Ge7Zwak32gpr0lKHtohlmKT813Rkbdq2ziZvNYMnXM9aaXLePI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708503999; c=relaxed/simple; bh=I0bo8l/3tnsQkzmqvZYQClIXmZoRUaOHZDADPg+C6z8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mOV0Tx907nNoYuoo1coAtXRWbAhJb7R7uvePlb22gAop3C+KPUVL5tDadDk6Zm+10v4ZfyCSxHPtWHdRUMn0Nx8gUBTv81iNk/NbbyIlilAaEFfdOxXC4sr6GOjm/DoQzLZ2IaUwehaLMz3iZpwgA6+vuJ0msECj43xwCfZvCVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gv8Lv9yG; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-564ffb34c24so405125a12.3 for ; Wed, 21 Feb 2024 00:26:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708503995; x=1709108795; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=q/sQIzf7jUG39BwFXjRnU4IN93Y7rOl9mKYuRy+MVuk=; b=gv8Lv9yGE7MZabaU37aV6fMeKnhcecj6JVejvUZGeVCzcOsBpmWI7RO9J6IuHRzZwY qTJe0hD+6mmU2GPo20qXBTK3RAGa/9X8UhT4FWbiuTUAR/fIxUVX6c8UyD82rgjEMo/Y HhLEtfzfxQEk5hZxWPuEkklKM+qLSPQMZCOBzYyKa1x7ZoZ6yctxpp6uV/WvAjTdEF+M hwMaEsfBe6KNq8JSz8w9Rkf2E3tDBCeYxp4JN/0rJ9mcQHQ7hw+D78XKRhn/lMzLRHS3 ilTZqsprrx2hLF/ZF6ayZKCrq3QfP60nm2oJbnP85iUcUsBcYJl3fnwQOfm29g45Fk9L p/pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708503995; x=1709108795; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=q/sQIzf7jUG39BwFXjRnU4IN93Y7rOl9mKYuRy+MVuk=; b=BJDd1qo6iCDhrs7megsnns0SazUMmgvh/1xJGpd63PWLbctv+uT+/QPWoN0gKjHzyp 5YW8/sxIJRnCp0IIuRclt10MXpbj09iNaXOT8iclJs2OgDfDsrrmKiNumlXXQJ3ctGOd p/ZSTpOnHb6hix089IXOIJbLGsWrJks6pt5T1t8JIQFJUCpUvL+sU0UhDRFyZIXAmkIp Vhc5GB/pt2q8cW4iqKjH8YjdDs1bpz26su0dPudgLbHfocm7NDX61j2bJHrip9Q0V+ko zs1Ar3Gbf1VJcGAAKYMHe9ZGwZs21DnNAsmPr+LRRkNKOOTdQQFrFZDbd3kv6s9z5kwU 8GOw== X-Forwarded-Encrypted: i=1; AJvYcCUOwv0KB6yI9VGBegkLwKmNwXYimOdXuSaFXlq4TGw/9EIyNzHAy7KVIRITC1LiLHBCHgL/YPGppdFlXXe0s+CeT5gr+1aJkigS7F50 X-Gm-Message-State: AOJu0Ywr+XHyCT7FKe8o6SxziZZwdA7im3pLpAHpzZAOrCsCE7eSTqvy sheo58y5t5VdfMXbveEHQR3wvdDYEsL5N0gfA8PYYcZM3ASuSABCR2THTgUssJw= X-Received: by 2002:a05:6402:1814:b0:560:209:c800 with SMTP id g20-20020a056402181400b005600209c800mr14433374edy.18.1708503995437; Wed, 21 Feb 2024 00:26:35 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id fe12-20020a056402390c00b00564fa936b2bsm337395edb.94.2024.02.21.00.26.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Feb 2024 00:26:34 -0800 (PST) Message-ID: <5d67441e-df61-4894-ba52-2bed8a1143d6@linaro.org> Date: Wed, 21 Feb 2024 09:26:33 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ARM: dts: exynos4212-tab3: limit usable memory range Content-Language: en-US To: Artur Weber , 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 References: <20240217-tab3-limit-usable-memory-range-v1-1-49cc9c86a5cc@gmail.com> <15ab6aa6-fb30-4970-9c50-546afb933e03@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zf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F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 19/02/2024 20:49, Artur Weber wrote: > On 19.02.2024 08:44, Krzysztof Kozlowski wrote: >> On 17/02/2024 20:02, Artur Weber wrote: >>> 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>; >> >> Applied and dropped: >> chosen: linux,usable-memory-range:0: [4611686019496935424] is too short > > This seems to be a binding issue; the DT schema expects a 64-bit memory > address and size, and doesn't allow a 32-bit range. I've tested the DTS > on my device and this property seems to be handled fine, so I think this > should allow 32-bit values as well. Regardless where is the issue: please test before sending. > > I've opened a PR[1] against devicetree-org/dt-schema (where the schema > for the chosen node is stored) to try and fix this. If my approach is > incorrect, feel free to comment there as well. According to Rob's comments, the DTS is the issue. Best regards, Krzysztof