Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp424738rdb; Thu, 22 Feb 2024 07:56:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX0sukZsF05E9v+Xh9vTxXxYWfBs/748N/gTbSnubS+QQPmpdsFOkc9JPalVkg8JJFk+im7vw8EpqRi/DOu6SVnQGEET+d4izuAsQHxvA== X-Google-Smtp-Source: AGHT+IFlNnznKC/1GjYy83GFAf9chOmxIpGcvnlnk3YqdCJL8onxMDbGlhOyVqdFHSKZV8bkjzLV X-Received: by 2002:a05:620a:9c7:b0:787:351d:9f01 with SMTP id y7-20020a05620a09c700b00787351d9f01mr3938220qky.12.1708617405060; Thu, 22 Feb 2024 07:56:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708617405; cv=pass; d=google.com; s=arc-20160816; b=rGJhw5uu2tDVxrq2x8tSCYgxR8dA2iV66rvlNxdJVP6F+tydSm1kVVrNbn0XPrqZ7h KJgcHGkNLQdNFJ0zGi9JYw3t9shYVTgMhXiAvvLJknFRadWFJ7jpquxbvlVMe+COKjnC KZJ4+BRghj+hdX+KJdXNq1Pg7WrAq029gjk89HkYwqvw23FBZyetiNGxPJMN7ASCH5zr VB2JUgVqr4MDye+dRluU/sfUl1ZI9WS1xpE9ilk05jSs0NTD943HFCvW0sgLXnkXnhuB fxwvPil/xB5EqSnfyqD58oFV1u+7QmJis4SsxqQCfz74FqsbBgTdJrGuSA4ZbTYBPx/t 29Sg== 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:references:cc:to :from:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=y/3fqyShE16h1P4+I1UlQxe681BbNCFMrZ9zvWuxmnc=; fh=jYeIhVXiXIzE0hwH3zD2XAwiI3ueVdfipOsdJd9/hRI=; b=h58x9QXe3hWNbJZqFf3AXKeGDln5lOPNht13rWJchUshPedZqDpIkqoyBH0v0yohEj iknCESs7J25zl/e5321MFHmmLwaaHkWZx66RuCcNOpAVfxP+4mp8JI0OVb9kA+4bz9Oj L6ZL4zHX+cZBJMJv+mmJCgx36baJ420TdAjF63Tr2+LH9nnqGBvJT8kUSoq9hv1LFgzp b1FaKhg+MxJ7cnVeQeOW3ERTWvoZVdsAfUxNUgJHqn104FExUkH2vcS1GlLhbX0uulK7 2J5YCKrAobnkSRAgwbhYbWfKJiUP4K/hAfEtDze+whef6IcHMYxwX8KR2Kok8zMHX0F9 4Apg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JklXxe5V; 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-76829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76829-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 o20-20020a05620a22d400b00785cb9f7a2esi12907449qki.443.2024.02.22.07.56.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 07:56:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76829-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=JklXxe5V; 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-76829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76829-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 A10221C24DB7 for ; Thu, 22 Feb 2024 15:56:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9699415442D; Thu, 22 Feb 2024 15:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JklXxe5V" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 AED29153BE2 for ; Thu, 22 Feb 2024 15:55:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708617308; cv=none; b=n/UM0mad0yk2z2atUMK1tXjGWCZ8MEW6DRSkhDVmqGlgzdYqThXBYN1nDzOHwZR4/Hu+81fuoEHPZwXGnGdDBdDmjurC8Px8UxOlUF63GtTWM3Cu98tV2iJker4fz+VoxP4mGtHZaxE2+hgHS6R+eqvOXzZ3ZFZ9N6uh+11Eu0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708617308; c=relaxed/simple; bh=KUtc8q6CcpBvImGltJZTUBOEuTBoRPVvVKgGQlQcYuk=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=d0p6SlbOwJxT9EVZwH+AsOV36rk7wsmdifazcxUWLkRdW+QuJU7+iZXA/m7o/1TtVo8Wrf9qX+aJrarlvxiGBMALJp6byqkZoetFxWXPaA8UM8+TeryUHD47cbuu53W2A9GpGVORbd6cGUPu7idl1/oPqf/OPGKuyMMs1kZ4m5c= 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=JklXxe5V; arc=none smtp.client-ip=209.85.208.41 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-f41.google.com with SMTP id 4fb4d7f45d1cf-563f675be29so8192943a12.0 for ; Thu, 22 Feb 2024 07:55:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708617305; x=1709222105; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=y/3fqyShE16h1P4+I1UlQxe681BbNCFMrZ9zvWuxmnc=; b=JklXxe5V2K0ppMtrjQwWB0P1+RB//LhhrWd9tE1tFIOl+CqDDZVsc6znxEE8EPB/XB H2saWOAjN+1MHRHyZ7HOuDYmJ6wCIjzsf6Q0e5cWon+1CY4lcx9KpogFrRgyEObcCm3o ueS47ZE0mtsQLVpTpUiKl5g5XBbxc5OJeo7su3m6Q39QN6+xXLVBjG6sYfYsKmISS88X zTpYGdkkYHaEw4g4GdU+L9RogPmspDRXlA//a6QQe/J0R/yGmie8wHn1LakdNS+N8ZgT u5lAvJiyrKQtV4EbMP4WF0Pf/H3TmneS3LCoaLyzfEDvN0n69mtRXYjCtPdnpkIwYH3F U0iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708617305; x=1709222105; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=y/3fqyShE16h1P4+I1UlQxe681BbNCFMrZ9zvWuxmnc=; b=nU0nTnGNkGKWOe8YxPth6/FOi2uluzy5uqncwlrcjPSWeuj7IWjp5qzqy+c91KJdsA UCL6oGj3YL1c80jnG84+EKEhOiI9hN1KsAJgpgTh7BTgeUqWFhjc/Hjt+J6Osr3B2gnX 2gIKb775HQPFcqxEtGZ4A9uqgJOWVM7BqK9UFmJMqgvucezobmxE641j+fB4qFRuyu4t BieP/peTkntLE6tVkGqaJk2mlSU4RuyvfBXQD2dimz3f/Uioq5lyH9fIN1e73ks+RfhC e6ku5H6nCxnOgn8N/bNXeOGQrJf4ZBRPHDOLeoos7i6g0NLL4oRcY0xlTSvyTXu/xdZ5 /M+g== X-Forwarded-Encrypted: i=1; AJvYcCUXWvP2eafa7SDSeYdZAaFmRgRcw05nzZdavOofks7LdHzyExehuaxbDeQMRXmdjaJPtPRAbtBAOOcHZg7LYOzGJmPg9sdrQWMAAmJT X-Gm-Message-State: AOJu0YzNkI1OatxrXhF3ffKtk6ZMtqbVNLBwsqnTo1sRmii68Z5wGlD3 jDIQCUdswzUhudpjvZO4T6EDfKwydQQCJkI2GdPB8EPJIFVevzZmOBFa1y4J6UY= X-Received: by 2002:a05:6402:5246:b0:565:2183:d296 with SMTP id t6-20020a056402524600b005652183d296mr2863889edd.27.1708617305020; Thu, 22 Feb 2024 07:55:05 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id s1-20020a056402164100b00563f918c76asm5623671edx.52.2024.02.22.07.55.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Feb 2024 07:55:04 -0800 (PST) Message-ID: Date: Thu, 22 Feb 2024 16:55:02 +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 From: Krzysztof Kozlowski 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> <5d67441e-df61-4894-ba52-2bed8a1143d6@linaro.org> 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/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPv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9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <5d67441e-df61-4894-ba52-2bed8a1143d6@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 21/02/2024 09:26, Krzysztof Kozlowski wrote: > 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. With updated dtschema I still see the same warning. Is something else missing? Best regards, Krzysztof