Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp602269ybl; Fri, 16 Aug 2019 00:45:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiyFDpfWLFAL1tspS1Zzlazr27pgr5fIm+8dOo5E37prtiCo2t7peCqK80NLd+oqXIdHtF X-Received: by 2002:a62:7513:: with SMTP id q19mr9920562pfc.192.1565941508791; Fri, 16 Aug 2019 00:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565941508; cv=none; d=google.com; s=arc-20160816; b=PLpuLg8yLbdXmUVB0Ip20n78fnyxBgiBxfSNG82z7mxq/ZLs4dtAZncfs5Q8hlsmdk gigZL37NYEGWO2dWiDM/oIvpQUI2YtEFZqWCIiUW3PUvBlczEtfQ0TzTJvBKQGjNweRh J8B6TDe/+LqbL6FHfMMLQyBfRDIeTxMRWtKIiNfTbmvV/zbU62WSu9/W+c7Q5Va+Jfo9 29fnSkHPICh9stNMRbE15HgneEqApIRQwtiDa7Se3ubGPYM+YSTlHFkhvp7vFPByj7mU IQvrO1j7dPqgA4FMZzYHG51ZaAgfF4OhMaxuLlghlQgRtaXjTJLakAZvKrm9XvwEjI4y s+Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=bvAyBsUlIJF0bF+3UmDVqzcZaxe3TRuVyFQ4SKm03Ag=; b=H4g5oFM9wmB5HNQfsXLkupWw+numI7JBE0TH4U2hlPsilrCOrq824/Cii3qCRIlt1m ElUGmg7H/+QuLU6ogx3FFPoUQG6LKj5IyL1rFjIS6673QKtsYSYXK7d+JuNUqctzPNzp myTw3TSk7eZnsEV7uhWuad1SXpb7+hH5ih6DWxYQTy1oK/xm182zFq0LhnGDAdEG7eG7 uB6dk40qPm6WfM1CvxzHF08q/Y26sHZcqBvFsjH3Fc9pbdEVKZAvhLLlmMOokgqzYagZ a7EPoAdWb7UgJa4aIfJkntQVDLrrmMjvEFHDYrxR8NyaITxoCIIZM+zPpVO29pMJrt8L bYMg== 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 q3si3428553pgs.576.2019.08.16.00.44.44; Fri, 16 Aug 2019 00:45:08 -0700 (PDT) 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 S1726678AbfHPHnw (ORCPT + 99 others); Fri, 16 Aug 2019 03:43:52 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:36729 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbfHPHnw (ORCPT ); Fri, 16 Aug 2019 03:43:52 -0400 Received: by mail-oi1-f196.google.com with SMTP id c15so4200179oic.3; Fri, 16 Aug 2019 00:43:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bvAyBsUlIJF0bF+3UmDVqzcZaxe3TRuVyFQ4SKm03Ag=; b=E3uaTcRhnwbVjEtkeJrcbenro/5PLBVjBjdU3eiyAZmgl6dVLKGsCjZpDKI7Lk7k/y rwJoA+T+Ub9xhWFZ6+A06nuTSoLjqmmJRt1n9DL2s47P2GKzn7uuNT0Pq60sl4Xo/dwZ K0mXHsEdQ6Mt6HSocPl4wBjZvlunZ2uxsF6Yj4WaNqlj7TEjEX1QDWjG7ugAFG/IlHDr XkhOVZjQoE32D2qkVdWXIfjLoFGPqYVKv2qFK9lCSBZP+SQ2PwLM36rcXw/8lTyMNVxt iTGmEHj90sWtgzC45mFzqXHnz5303+bN7OS5mgYb6TXXRay3NtQtkO6ysfkuqYTYBtb3 df9A== X-Gm-Message-State: APjAAAU7n7U271lLrH4+qEA6R+6qQ0TYSrdJALou+cgAHJ3sCbtpc4qE xurdBZAup1grDCzo0w+lMW1dijEOfij3PljjHn2aoQ== X-Received: by 2002:a54:478d:: with SMTP id o13mr4253177oic.54.1565941431065; Fri, 16 Aug 2019 00:43:51 -0700 (PDT) MIME-Version: 1.0 References: <20190816070754.15653-1-hch@lst.de> <20190816070754.15653-5-hch@lst.de> In-Reply-To: <20190816070754.15653-5-hch@lst.de> From: Geert Uytterhoeven Date: Fri, 16 Aug 2019 09:43:40 +0200 Message-ID: Subject: Re: [PATCH 4/6] dma-mapping: remove arch_dma_mmap_pgprot To: Christoph Hellwig Cc: Linux IOMMU , Shawn Anastasio , Will Deacon , linux-m68k , Guan Xuetao , linuxppc-dev , Linux Kernel Mailing List , Russell King , linux-mips@vger.kernel.org, Paul Burton , Catalin Marinas , James Hogan , Robin Murphy , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 16, 2019 at 9:19 AM Christoph Hellwig wrote: > arch_dma_mmap_pgprot is used for two things: > > 1) to override the "normal" uncached page attributes for mapping > memory coherent to devices that can't snoop the CPU caches > 2) to provide the special DMA_ATTR_WRITE_COMBINE semantics on older > arm systems > > Replace one with the pgprot_dmacoherent macro that is already provided > by arm and much simpler to use, and lift the DMA_ATTR_WRITE_COMBINE > handling to common code with an explicit arch opt-in. > > Signed-off-by: Christoph Hellwig > arch/m68k/Kconfig | 1 - > arch/m68k/include/asm/pgtable_mm.h | 3 +++ > arch/m68k/kernel/dma.c | 3 +-- Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds