From patchwork Wed Nov 6 09:59:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Saenz Julienne X-Patchwork-Id: 11229915 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F20A8112B for ; Wed, 6 Nov 2019 10:00:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CACBA217F5 for ; Wed, 6 Nov 2019 10:00:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Bx3WdctB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CACBA217F5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uyUqov7cGQmKYBBoAMuIGZAxR9QmByyp2zw2arU0sfk=; b=Bx3WdctB+q8C8s y1ppRAt0FRW37K+cCqk15dapkJ8pUyZ2OK9ynHorJ2Jir7DEXicBxyWLEU2NWURL3rO02kToHVlXO CXsvFLUWZlXZfKrJZddMSoPIDKleUzIufJXAH4zw40iNnUfxGXyBBJDtF6L3Vruh3Ay82+VcYDAkX wyvgF4ecqvKxPh34eqaSbk6ihqMF2E+G8og7jEP8+YEDIhSlGS7LNxVOG6pWw+OLgLcKMmgN8ABPS 9YoaZrviC4RDnHwJ4gW57mXJyMzeyVQj2oy3sO3Prk7z7VKege9mWSRSd1uHzXvYdK4E5ytOkcXvF n6BeXDtOUgGmm5vlp30g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSI6t-0005Ob-Ie; Wed, 06 Nov 2019 10:00:19 +0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSI6e-0003yg-UO; Wed, 06 Nov 2019 10:00:06 +0000 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 42CCAAFE3; Wed, 6 Nov 2019 10:00:01 +0000 (UTC) From: Nicolas Saenz Julienne To: catalin.marinas@arm.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] arm64: Fix CMA/crashkernel reservation Date: Wed, 6 Nov 2019 10:59:43 +0100 Message-Id: <20191106095945.22933-1-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191106_020005_145197_369FDA68 X-CRM114-Status: UNSURE ( 8.35 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [195.135.220.15 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, Nicolas Saenz Julienne Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 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(-)