Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp833722ybx; Thu, 7 Nov 2019 03:23:58 -0800 (PST) X-Google-Smtp-Source: APXvYqwYYG5v36gaTcEQF6nMBUpMrXfnozZ3W59pGCtSY3YscPQcsJmzJP8VUuZXsW8RyLGnWXQJ X-Received: by 2002:a50:9a85:: with SMTP id p5mr2852514edb.223.1573125838440; Thu, 07 Nov 2019 03:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573125838; cv=none; d=google.com; s=arc-20160816; b=elJ8rXV+0mRC2bjgjTqFkPrqF+B4ohC22vvdRd/qZuJdxRMuc1kzS4fIk72DFzIQ/W urakwbeCcYpqmFVoZy8qw/HH82Iy0spRBP3K0QvNeKXrrU6MUX08F0KxoYnbaDLKmmSO Y2KTd2mjjbL8EzeAaam6fuA5E6qw62u0pZbAfSiG0Io7oZk7aWjmzGE+ugjGzz9v+tm1 8xAdOohS10d9u3q1009Id7P2MHXwCM0T24Pn6wYOwy5FXbkjIVltTUPvSzUjxyTVhB1D L93AW4U+SEA7Q5kSPcxl+5leW44HbAxX1xhzDRdLVXlVWvBgig4WDp0pV6b5bNif+BGj fxSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=yd27JsxmktbvBnHQR8Spvt5lpz6WCAaZW4+yeodLJ1c=; b=RZkZ2JEsMqgLxqvY273KFDDFMv5J8w5araZaIQh/o2gjLKjz2tKqg0yUl/2ZkHC0KL qmVLwgbx3QRBAbSt7/7RF17hUOdU0z2AKilXKVKSLslAqsZh3bid/U2QfNGTu8CmTtzy 4lcGyJn2ih/r1eRhaeF+3+jBCXsvNftPxPJNMKbzCS6KsDZIqgqZvrGm01jYFmYZ9SCc V/sgKOIghRxI12RnmUjf1psZIacRtrL8I1m3g67P723+oAoS87crEB3YwPBwbJkqzLQn h2cdJpn4cNlmJz0UNRXtwWihR21HEl1OI9aoXukeRsVf44xl6ZJX7ataTwCj9qjX27zA qffQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si1092948edb.234.2019.11.07.03.23.34; Thu, 07 Nov 2019 03:23:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388199AbfKGLUZ (ORCPT + 99 others); Thu, 7 Nov 2019 06:20:25 -0500 Received: from foss.arm.com ([217.140.110.172]:54376 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727707AbfKGLUZ (ORCPT ); Thu, 7 Nov 2019 06:20:25 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4C6D731B; Thu, 7 Nov 2019 03:20:24 -0800 (PST) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.197.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C6DDF3F6C4; Thu, 7 Nov 2019 03:20:22 -0800 (PST) Date: Thu, 7 Nov 2019 11:20:20 +0000 From: Catalin Marinas To: Nicolas Saenz Julienne Cc: linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , Eric Anholt , Stefan Wahren , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 1/2] ARM: dts: bcm2711: force CMA into first GB of memory Message-ID: <20191107112020.GA16965@arrakis.emea.arm.com> References: <20191107095611.18429-1-nsaenzjulienne@suse.de> <20191107095611.18429-2-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191107095611.18429-2-nsaenzjulienne@suse.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, On Thu, Nov 07, 2019 at 10:56:10AM +0100, Nicolas Saenz Julienne wrote: > diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi > index ac83dac2e6ba..667658497898 100644 > --- a/arch/arm/boot/dts/bcm2711.dtsi > +++ b/arch/arm/boot/dts/bcm2711.dtsi > @@ -12,6 +12,26 @@ > > interrupt-parent = <&gicv2>; > > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <1>; > + ranges; > + > + /* > + * arm64 reserves the CMA by default somewhere in ZONE_DMA32, > + * that's not good enough for bcm2711 as some devices can > + * only address the lower 1G of memory (ZONE_DMA). > + */ > + linux,cma { > + compatible = "shared-dma-pool"; > + size = <0x2000000>; /* 32MB */ > + alloc-ranges = <0x0 0x00000000 0x40000000>; > + reusable; > + linux,cma-default; > + }; > + }; > + > + > soc { > /* > * Defined ranges: Sorry, I just realised I can't merge this as it depends on a patch that's only in -next: 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support"). I'll queue the second patch in the series to fix the regression introduces by the ZONE_DMA patches and, AFAICT, the dts update can be queued independently. -- Catalin