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=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 0D4DBC3A59C for ; Fri, 16 Aug 2019 07:46:03 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 3491220644 for ; Fri, 16 Aug 2019 07:46:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3491220644 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 468wNl6zcgzDrJw for ; Fri, 16 Aug 2019 17:45:59 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=209.85.167.195; helo=mail-oi1-f195.google.com; envelope-from=geert.uytterhoeven@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Received: from mail-oi1-f195.google.com (mail-oi1-f195.google.com [209.85.167.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 468wLL3z6tzDrC9 for ; Fri, 16 Aug 2019 17:43:53 +1000 (AEST) Received: by mail-oi1-f195.google.com with SMTP id c15so4200178oic.3 for ; Fri, 16 Aug 2019 00:43:53 -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=AxGbaWyCsA2JbrhjXiVhCs8ep6GVbgZAFGahTTSAOVqYfnLIc53oUx/OLASG4E+FM6 nVD5dYjObtWdFkPD16JjrmTBKSDA92/8BDSU3FGPXXckojP7VzhWVBC+eQhkS5Mvh9xm hQZqfDwsO46mC+ZFEBwiwDunP1Gm2yvvwIRGM5XrHBrgHyS+qHxn9WoPc84G/PN1HUz2 DoegVMBJVd1U554rZK4Wtfn54gkqzx+Q0NKNQjJohaHS7kPPZqSEGdORtuAtIm3z2Qv8 Cf+FquIH+q+MphBxDNGL94T8i6P1ED4ECwZ0UVy7ihyOLtn9r4vBIl+l5Xyvm68b8CLX jN1Q== X-Gm-Message-State: APjAAAWzzlWNGaBwin+uT0gXF3SEnLUELsZok+MtDEZ5ypfDUUJj5ZwN 24UqYiIsgOkPF5ei4M4mgN0OYdZgl8TazEhTBjc= X-Google-Smtp-Source: APXvYqxDhwWwhe23FnPOhfwBJdvvv1RZQ4uxY4zTeFQQdGxuUoRdT5WMzdETbuNlDvSjEY17/b21joZDSXi2Bi1nfwg= 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 Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Shawn Anastasio , linux-m68k , Will Deacon , linuxppc-dev , Linux Kernel Mailing List , Linux IOMMU , Paul Burton , Catalin Marinas , James Hogan , Russell King , linux-mips@vger.kernel.org, Guan Xuetao , Linux ARM , Robin Murphy Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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