Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp740181ybx; Thu, 7 Nov 2019 01:57:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyyFuZu4Mc0T+q/Xd222R/tvg1FyWRrv75f+h4VF1SFY5S/E0dw+2LFDXscOrnZomWx8fd/ X-Received: by 2002:a05:6402:13cd:: with SMTP id a13mr2512298edx.57.1573120671767; Thu, 07 Nov 2019 01:57:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573120671; cv=none; d=google.com; s=arc-20160816; b=TPHOC76UKMCCVsSd4hqvy2BafXJybCZFGPk2yrxMljHJUAxcI94hl1+Yppqo4iVw+6 jfMXXCvaQ6ENn92N7GC4ezPLuZwB9osoNFk0kTDsfN1GjAtxL8ZsOxgDcm21eHWj1GKz 062EAVNqi4Kmj0ic8iYu0O8oD+gxzRwJJNGPUv6qspRZiDHrfgs/7HYVUhyIW35rwlrO rXyMepuhyr79jpx5JlADujeGKb2fQd9AB8Yf/1zirh7M04oy2faouCOKhcSjj+J+SNLS x+I90TLc+AvPvjoGM4c7mNuRMd6szLgX6d1N1OFwFXbPc+VRKWoYtKLDkQPI26AO+Lr0 et6Q== 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:mime-version :message-id:date:subject:cc:to:from; bh=u9sDY5+UqIqxrbftCtFn5Io+/FhGIjdFhF6L7N70xNI=; b=mRpfAbDB9xRWA9RxLIj0GD6IeKzxDb1VNTioeuOwiuu7ECc7P+6zA+jR41InZPAfOB fI/dBVpeU+GHIZEPO3qdtro+yyXihOLoGtcBZk1q0MpvlqBgmIzR2oXzLc5sE97K6wld PCsBF/j3WwkyrP4GVEXDoQxJP870EP1GcmdA9X1D1rRfuSkLQOkfOIkWhoGwNXXmEu/J p1GcuPvjwtlkwQS0JqNxthXpiqpt7oPnY9xpSz9CPFxsDG7pWwFNetMLU82PvjHD7v7e jSGcfMb+qBMzRqMHg4pFfI6SZQABlgxDYwUGcI6dU0ahEZB155Qlz25MkhMR334yJyIF e1wA== 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 u93si1131732edc.184.2019.11.07.01.57.29; Thu, 07 Nov 2019 01:57:51 -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 S2388000AbfKGJ4U (ORCPT + 99 others); Thu, 7 Nov 2019 04:56:20 -0500 Received: from mx2.suse.de ([195.135.220.15]:40796 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727926AbfKGJ4U (ORCPT ); Thu, 7 Nov 2019 04:56:20 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9FC4DAFA7; Thu, 7 Nov 2019 09:56:18 +0000 (UTC) From: Nicolas Saenz Julienne To: catalin.marinas@arm.com, linux-kernel@vger.kernel.org Cc: Nicolas Saenz Julienne , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 0/2] arm64: Fix CMA/crashkernel reservation Date: Thu, 7 Nov 2019 10:56:09 +0100 Message-Id: <20191107095611.18429-1-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As pointed out by Qian Cai[1] the series enabling ZONE_DMA in arm64 breaks CMA/crashkernel reservations on large devices, as it changed its default placement. After discussing it with Catalin Marinas we're restoring the old behavior. The Raspberry Pi 4, being the only device that needs CMA and crashkernel in ZONE_DMA will explicitly do so trough it's device tree. [1] https://lkml.org/lkml/2019/10/21/725 --- Changes since v1: - Move CMA area registration into bcm2711.dtsi Changes since v1: - s/Raspberry Pi/bcm2711 in bcm2711.dtsi Nicolas Saenz Julienne (2): ARM: dts: bcm2711: force CMA into first GB of memory arm64: mm: reserve CMA and crashkernel in ZONE_DMA32 arch/arm/boot/dts/bcm2711.dtsi | 20 ++++++++++++++++++++ arch/arm64/mm/init.c | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) -- 2.23.0