Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1039618ybl; Fri, 6 Dec 2019 10:14:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwaNP06JB2f7yEs+wmien5bpirpk/Hl557Nm8QHHbq1OFtMmbML6VXo680AdT8L91KM4AxL X-Received: by 2002:a9d:53c9:: with SMTP id i9mr12066267oth.172.1575656065842; Fri, 06 Dec 2019 10:14:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575656065; cv=none; d=google.com; s=arc-20160816; b=Ex1w16TACUPxAYDMHYouYmy0gRqse5CCo9413mVt6x0GJG6b3xNLCOmwqaY4/dBrLg gZRSfU4ZGcBeaeZMlhE7vgn/kE6bnjxG06QVrL3dxS/8Z0fajMdU3Py86f+R4vtaqOww ULCvjNKdU5leAIGhENmnqPjorWnIdt4fE/7h7UrTRpUQdoAmUXmUxoT5RK5S/Cs7YdET gMPZG9mnSoM6VqkDVqJnElp0btvhTr439CNQJCnpsS0n1eoTj/lyFhyDLKYwC17MI2Pd M0wlrElT/LLeGoOTjfY7J3Bq2gOlLzQnDHxekNhFsywvPIHGy/0G5e2ePgDPuiibCUlK EYUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=0YNz0hVx6IciSdYIB9m5KDRd3CHnbzuVt5KkF78bs1U=; b=W2rHCmXoEakNWmCV+lbO5aKbTbascHGHGooJYpIjthzF8BIRlX//1AugoyDNw89PXT LenYsvjZacDfLICnE1zbRJDR75jUZCS5Y0clzqulb9QyTBCg2trik7HRxjDMDWkHhdBQ j5mwt0NaO0VXTKXT2mAB4n/uMMaEjdEryo9E71U4JA2//XCHZX/fCRk44DXc9IroR5SO NtGSXdgHbuMxIkasLi/gSKDTEHbUL9gyOEeRTJLOrU1SDAIBxaAeNiwaOjW7jXT8U9Am 4tkMQolaa9yy/0wNlDv0VdLs38FhAu++OUTG1Wp6adh3BvwDy0QzdrsS5SXjDIpsYZKc /ZMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K4h7VIDR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k19si7511834otr.52.2019.12.06.10.14.12; Fri, 06 Dec 2019 10:14:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K4h7VIDR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726352AbfLFSNk (ORCPT + 99 others); Fri, 6 Dec 2019 13:13:40 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34482 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbfLFSNk (ORCPT ); Fri, 6 Dec 2019 13:13:40 -0500 Received: by mail-pl1-f195.google.com with SMTP id h13so3053832plr.1; Fri, 06 Dec 2019 10:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0YNz0hVx6IciSdYIB9m5KDRd3CHnbzuVt5KkF78bs1U=; b=K4h7VIDRCdFGeJCaaTKhor3t4yKEQXQKW1AHLmXT0/IfgG9+BXNCSkuHbIbE+4DTU6 yW7Iktcr9JXHdnYTMqS1vOP7pBj/5OYRYffd5Fv9VQ8xfiGDEPvfRaZE5pnF1dvtdf60 TQt0rwaG12DHy7UYbL3MhLz2s777yJiBTXoyrPy3J9lp/Vn0I0RgNY3lHU8/IB3XKcIa gswbVIvNnxugspu6E4lo+seyPGFU7K2gVA3Xipf4kB7MWRJtcFnek/P7MbGc6yx7PNT9 78uyDdwEYu8hG6vRJv+SbO4CxQSqN8Hc30SZSnSrmSaUSxn4/zy1q3FgnitKRjIO+zVO rHpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=0YNz0hVx6IciSdYIB9m5KDRd3CHnbzuVt5KkF78bs1U=; b=fGDAEN2mjh20tx+A51jHWRzzXuUT4nZQeep6Q0gW8fiECZeC3C9OeG8tIC3wj+aqDB Ut44EgJ6/PUozB0R9g4fqad1mkLRoC8B7/aiONiOJmieUXeVATWc2kvwCX35ROGKC8vN YT6O3Ft/ZsKgv7A8ftoUJNOMVZV41CUiBxaDsL860tLRJG/mxmlUjYrEnvW/HEfXE0yH iVhTsnkSWU7e6ZOMsVqmxTzwlZU0/HCWVEviADAJlinjzU/MnIo0Akp5dO+XW5I7y08P q+W7DH00QA4X0dGpjwd0KbHhkQOjPP4fjsP4lx+TZV/YMj0t9bMvMnixrLHVirgEt/lH ANEA== X-Gm-Message-State: APjAAAW7J2BRx5EZ8xfVXdtB+lDYrTGgox1kobuqtsbeEt3quN90a1BV D2ye6SenfV6a7K2vJd8u2hS7XNaJ X-Received: by 2002:a17:902:9a0b:: with SMTP id v11mr15892495plp.151.1575656019246; Fri, 06 Dec 2019 10:13:39 -0800 (PST) Received: from [10.67.50.53] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id d38sm15365156pgd.59.2019.12.06.10.13.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Dec 2019 10:13:38 -0800 (PST) Subject: Re: [PATCH] ARM: dts: bcm2711: fix soc's node dma-ranges To: Phil Elwell , Florian Fainelli , Nicolas Saenz Julienne , Rob Herring , Mark Rutland , Eric Anholt , Stefan Wahren Cc: mbrugger@suse.com, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20191204125633.27696-1-nsaenzjulienne@suse.de> <711470d3-e683-69d4-8f4e-791a76faab29@gmail.com> From: Florian Fainelli Autocrypt: addr=f.fainelli@gmail.com; prefer-encrypt=mutual; keydata= xsDiBEjPuBIRBACW9MxSJU9fvEOCTnRNqG/13rAGsj+vJqontvoDSNxRgmafP8d3nesnqPyR xGlkaOSDuu09rxuW+69Y2f1TzjFuGpBk4ysWOR85O2Nx8AJ6fYGCoeTbovrNlGT1M9obSFGQ X3IzRnWoqlfudjTO5TKoqkbOgpYqIo5n1QbEjCCwCwCg3DOH/4ug2AUUlcIT9/l3pGvoRJ0E AICDzi3l7pmC5IWn2n1mvP5247urtHFs/uusE827DDj3K8Upn2vYiOFMBhGsxAk6YKV6IP0d ZdWX6fqkJJlu9cSDvWtO1hXeHIfQIE/xcqvlRH783KrihLcsmnBqOiS6rJDO2x1eAgC8meAX SAgsrBhcgGl2Rl5gh/jkeA5ykwbxA/9u1eEuL70Qzt5APJmqVXR+kWvrqdBVPoUNy/tQ8mYc nzJJ63ng3tHhnwHXZOu8hL4nqwlYHRa9eeglXYhBqja4ZvIvCEqSmEukfivk+DlIgVoOAJbh qIWgvr3SIEuR6ayY3f5j0f2ejUMYlYYnKdiHXFlF9uXm1ELrb0YX4GMHz80nRmxvcmlhbiBG YWluZWxsaSA8Zi5mYWluZWxsaUBnbWFpbC5jb20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X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/6/19 2:16 AM, Phil Elwell wrote: > Hi Nicolas, > > On 06/12/2019 00:08, Florian Fainelli wrote: >> On 12/4/19 4:56 AM, Nicolas Saenz Julienne wrote: >>> Raspberry Pi's firmware has a feature to select how much memory to >>> reserve for its GPU called 'gpu_mem'. The possible values go from 16MB >>> to 944MB, with a default of 64MB. This memory resides in the topmost >>> part of the lower 1GB memory area and grows bigger expanding towards the >>> begging of memory. >>> >>> It turns out that with low 'gpu_mem' values (16MB and 32MB) the size of >>> the memory available to the system in the lower 1GB area can outgrow the >>> interconnect's dma-range as its size was selected based on the maximum >>> system memory available given the default gpu_mem configuration. This >>> makes that memory slice unavailable for DMA. And may cause nasty kernel >>> warnings if CMA happens to include it. >>> >>> Change soc's dma-ranges to really reflect it's HW limitation, which is >>> being able to only DMA to the lower 1GB area. >>> >>> Fixes: 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support") >>> Signed-off-by: Nicolas Saenz Julienne >>> --- >>> >>> NOTE: I'd appreciate if someone from the RPi foundation commented on >>> this as it's something that I'll propose to be backported to their tree. > > The 0x3c000000 size was a mistake that arose from c0000000 + 3c000000 = > fc000000, but that is mixing apples and oranges (actually DMA addresses > and host physical addresses). Please correct it as you are proposing. Do you want to add an Acked-by or Reviewed-by tag to make this statement official? -- Florian