Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp987236rdb; Sun, 18 Feb 2024 23:44:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWkoDadr3GpMcBhLh6dWSPdQHZs1Vow0KKz+vp+TmY7sI++6SOU08yjuN4Qbcg7kmxlaXnl8EF34RPzPwcR+/y+YlwMsNq7L8uf1vRe9g== X-Google-Smtp-Source: AGHT+IGxbX6a27+FIxVadM1r/ML4yi5jU1v+Lf781lPj0mCdj855/mDue1UiIFPJ4FRDZFLezVXP X-Received: by 2002:a05:622a:1991:b0:42c:39b2:a7c5 with SMTP id u17-20020a05622a199100b0042c39b2a7c5mr17838486qtc.26.1708328657945; Sun, 18 Feb 2024 23:44:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708328657; cv=pass; d=google.com; s=arc-20160816; b=p60GGbVq9Ca6IkKG+VRRMpmx5DuQotqMfHi7c2t8iv+IEnh1X4gtnvxmyEDgSpq7Ib 163GsUgwSiIkdEcgRpvWZhQSN+YZ3/yIFGAQupsbItLhzLPWQWUCnsxerSzJP6BA4xEN dP34qQBT1Kn+zwlflnCiDJwDuGO94jJcsC63F8HsroRoQOrVm1Pb/5to5rKqQfKoXgM2 NCYg6AWpAZJ4SS0vS4Jiy69Bc6XtVdy0AZL8aDksa5pJ+uq2bS8RshNn+A1NMa3gfEjW wwoo8jYWWPtR6OIjFbmU24RQJsM1qto+UxDTvZHM70aCpCtUtshs/TaFnI4iK/6LXTTF Ec6Q== 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=BmUCMf+Jzxua4LuTLILa/z8mk2QQ1R6z63zWnqrV0v4=; fh=XW7JnsCu45jSwAaXzAli7Oc5zj8VQ+iAmDl5RGoslCc=; b=xvEaMDlepodLJp5q2szf+C7qW0waLougEgAVwuscbBJk6RfN0koaI2A1W36PuVuKfP A+9Mmf4XSy+Zj1DbnQJnLkiREEGY2uh2ShuDxW0spwpEWR6D7fSOFHBhnbSZyiOkHhh6 U7Cb+YCg/MHaIyUz1voAbRboCs10lBui9a4uYD2p6Ft/c2XiGvajDDjgYbAMHSpp29VR cspoNxtuSzppcKzckNVxPykgorM07jMcq56gtYyfFnMKfHic8Of7l3Pz6c8Eo9AUqLC2 MUQYElrw/IeZKeiKMeHNGtV1/AAh52iq2so+5U2N5/Ba3MNe/dHpS7JunCs2CemmR7Bf t+cw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JDO6ltCB; 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-70847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70847-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. [147.75.199.223]) by mx.google.com with ESMTPS id bp16-20020a05622a1b9000b0042c4e74bd72si5775582qtb.462.2024.02.18.23.44.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 23:44:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JDO6ltCB; 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-70847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70847-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 A28221C2111A for ; Mon, 19 Feb 2024 07:44:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C710A20DE1; Mon, 19 Feb 2024 07:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JDO6ltCB" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 2226D20DC1 for ; Mon, 19 Feb 2024 07:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708328648; cv=none; b=mUUVX0KGIpv1Z04yLJb16GDjkmTIggI8n1j8Af3NVUzII5vLSjcStLtQBajlVBVImATfrzD2e2W7NcX4/lnUmPgYj7vD8EqHkFrmzwocgkRp5iQWdAyPLQz4E/huc8vrYtRWvEMVZ0RXSQSz7SXqKJO1HjjLKE2WNSVjLt5hxOw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708328648; c=relaxed/simple; bh=1Ta70GP1nnD439v+4CJVk9YoHvnLjoNFAemUeQfqtTs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=q57CSk5E3ZHTkL9vAQUBiCVViR6P711jpArGYOAKTbw/wAYv4EcB/LpjpxXP02NCzQwLggqXh/aVwVYuS4j/dI/uvkT8Kw0cjNzBmUymO8FmwWVIpdWwhK1SlwoJR7Th+y1RrfGOppSA/PgcjGRi1NgxDPMIyiFG7YKairHzpj4= 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=JDO6ltCB; arc=none smtp.client-ip=209.85.128.52 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-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4125edd1433so11328845e9.3 for ; Sun, 18 Feb 2024 23:44:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708328645; x=1708933445; 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=BmUCMf+Jzxua4LuTLILa/z8mk2QQ1R6z63zWnqrV0v4=; b=JDO6ltCBeqk+5vdA0yIB86wUkZpAlL/vYUWN7BuGI+ox4tn4PNbr42qMSxHdJy+Tsa y61NyHIfiFo59KJcSVSraad7QZhuxA37MLwvzx5onvIat2U6MMT88c8m/+7S040JFc/C YbX5vScIHNa6nxuQ85spAWz1EWjVR7OAk8uv/yKxVbtuKCIbAEdc/ZCYc+fpY8HQ639I AfRgsJV5oa9AI7x3HfG7y8aEHzu2J9vnAMbM+xCTpvjgdZupjAMH3oCdIGKdSvWFf1z8 XqV/9AcWH8BJN+75tvyZBN0XtodzT+zBIIDEmsIzpQi1vmrfJ2RREo6hT173Cvg1f3M0 en+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708328645; x=1708933445; 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=BmUCMf+Jzxua4LuTLILa/z8mk2QQ1R6z63zWnqrV0v4=; b=ATZzVoNeqqMYn/DNS62jG8QP+LbwmOUlSijNzZcKGnFt7+1StxysB7Z6lYSyho8udz +eRzp/TiVKskNEaibfF+1SwlZsB+X+kgzbMbE7mvpMG8+C/UHqJuB+fs/+JdzTLSJsOq Mw7td71GJ+IxKGwFs9sezOpuPRL/kqkVLpfOxtTQSZ1FKty16PGVjMXLI77CHFLD8NHl XqN1FxbojwzvgRnew5cAb7+Xc+rgkI303Oz7RkxLNSRSmDVRVQtJe5VNmaY6YLmTGMTv +qOosiL9URXxiteJJG9sWITF86WGbPrkCZx7dI+ckd640W0Tj9OacVp2J+jQnZu/e1ti +hCA== X-Forwarded-Encrypted: i=1; AJvYcCWGpWG9lOQ/Slsslp8lxa6bPuG9c+4SXDyvSwySaFMMT2d0TvL9QyasImqZdzsrSkSGHjZ5lPFLdtrCfMU5iBwiJe2dZGT4U6q153N6 X-Gm-Message-State: AOJu0YwjkWk30rtJMp3qXLap25kuGMw8qLjKtOoVZD9mu+qXhF6EMU5e EFAFuosmXX6snawnGlbo6yMFp/5mLEdmABM9mVbfkfJuYoP8K1UJmsPPFqz7tg8= X-Received: by 2002:a05:600c:19c7:b0:412:3bff:a813 with SMTP id u7-20020a05600c19c700b004123bffa813mr6107513wmq.10.1708328645575; Sun, 18 Feb 2024 23:44:05 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id h7-20020a05600c314700b004126170a23csm4501357wmo.7.2024.02.18.23.44.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Feb 2024 23:44:05 -0800 (PST) Message-ID: <15ab6aa6-fb30-4970-9c50-546afb933e03@linaro.org> Date: Mon, 19 Feb 2024 08:44:03 +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> 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/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBx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VgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240217-tab3-limit-usable-memory-range-v1-1-49cc9c86a5cc@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 Does not look you tested the bindings. Please observe that we have dedicated subsystem profile since a release: https://www.kernel.org/doc/html/latest/process/maintainers.html#arm-samsung-s3c-s5p-and-exynos-arm-architectures Best regards, Krzysztof