From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AD42CA9ECE for ; Thu, 31 Oct 2019 15:48:09 +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 408CA217F9 for ; Thu, 31 Oct 2019 15:48:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tX5M1clC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 408CA217F9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.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:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=frvIeJCX9JRkldo2dbDcxVNt5OMfQkf7+CC4RwT2kng=; b=tX5M1clC3npTAH qKsYhyNLGeaYdXAQN01mjUmYF1LqDEg+eSXIlBeb2Qt6zUaT3/yT1TGSXqH59sjUQzV12fQt6C4Jv 1Q6BCpy6Od+Q6tDwRpSVDRzRvOurGdz1caqpIqcqaq7q137mcADstiQqMKW9vpDqqL354aJHbXkXt fS/ciUi0eiY5Ks/RXFC7Mj9yksyaLUoHOBn2vBRAhQulLKXaW6yLePncyH5armqarDFrhYn+eMbOX X5PC68NpQqI15mdvwonlPtR3BZZGj0gCXBZI2jeiK4YRAP/04YXbviFNfUMxhvqIgBTw07YsZZrXb w/ImhAaOKuHR8NLnQk1w==; 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 1iQCgC-00074v-S1; Thu, 31 Oct 2019 15:48:08 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQCgA-00074Q-1B for linux-arm-kernel@lists.infradead.org; Thu, 31 Oct 2019 15:48:07 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id 4190F68BE1; Thu, 31 Oct 2019 16:48:00 +0100 (CET) Date: Thu, 31 Oct 2019 16:47:59 +0100 From: Christoph Hellwig To: Nicolas Saenz Julienne Subject: Re: [PATCH] dma/direct: turn ARCH_ZONE_DMA_BITS into a variable Message-ID: <20191031154759.GA7162@lst.de> References: <20191031152837.15253-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191031152837.15253-1-nsaenzjulienne@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191031_084806_226020_9E34D4E2 X-CRM114-Status: GOOD ( 11.50 ) 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-s390@vger.kernel.org, Vasily Gorbik , Will Deacon , Catalin Marinas , linuxppc-dev@lists.ozlabs.org, Heiko Carstens , linux-kernel@vger.kernel.org, Christian Borntraeger , iommu@lists.linux-foundation.org, Paul Mackerras , Michael Ellerman , Benjamin Herrenschmidt , Robin Murphy , Christoph Hellwig , linux-arm-kernel@lists.infradead.org, Marek Szyprowski Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Oct 31, 2019 at 04:28:37PM +0100, Nicolas Saenz Julienne wrote: > Some architectures, notably ARM, are interested in tweaking this > depending on their runtime DMA addressing limitations. > > Signed-off-by: Nicolas Saenz Julienne > --- > > Changes since RFC: > - Rebased to v5.4-rc6, fixed arm64 code. > > NOTE: This will only apply to linux-next, where missing end of the sentence. But only applying to linux-next isn't going to help anyone.. > diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c > index 45c00a54909c..f716ea634804 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -20,6 +20,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -41,6 +42,8 @@ > #include > #include > > +#define ARM64_ZONE_DMA_BITS 30 > + > /* > * We need to be able to catch inadvertent references to memstart_addr > * that occur (potentially in generic code) before arm64_memblock_init() > @@ -424,6 +427,8 @@ void __init arm64_memblock_init(void) > else > arm64_dma_phys_limit = PHYS_MASK + 1; > > + zone_dma_bits = ARM64_ZONE_DMA_BITS; > + > reserve_crashkernel(); This actually adds a new limit, as there wasn't one before for arm64. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel