Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4044245ybl; Mon, 13 Jan 2020 06:59:32 -0800 (PST) X-Google-Smtp-Source: APXvYqysuJ1kj8/XlXSVztHRjBw26108zK4mcIoYuGgVW+whJB+XX9qmV4DRWBVgYQOuOtbz/FFZ X-Received: by 2002:aca:1a05:: with SMTP id a5mr13312616oia.97.1578927572128; Mon, 13 Jan 2020 06:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578927572; cv=none; d=google.com; s=arc-20160816; b=igLV1ccVw8ekcMny/JcBIN9JcpzRESzNq2BmktsTS46nON2cK+OG4m9o1JlVWhtLfB 0GA6KL/kO9uV5CT0vA927s4EOU87LgIIpLX0V1e287cOudtnur3AWYkbqgrE72ULp1BB MtwdTISDDMZkiBt3FWbzW/RW6PH6tBC1QMc+G5ZM6V/GhgGPji+9njAVQ7a+gSn9FlVT PBE44TW/HXXXrJfdzkS0IYqkUFO082PcBuIsWS6+xm7ccamG0/+5PO62AvWUh4KfnfIf RvAm0bxlSnD9W39nel6MH4fCJQ8YLjXI8AZ2CInlMhikrnPx0EmKUQQnZQUtmXPw1CPP 7eMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/WjmU3r5y5WqrqxUg+tnxJoOP6eBGvXxMX1+pMfxdZw=; b=sAtoFxv/yzAEBdIaXvKah5sxqR/X0SY7Qx8lgI/wXlHAeidxmZDURabqiAjFXn72GH uOYXLq1H/xu6H8tc13jahtWmelBgl4RZ6tNJGMLZMrmU2WubC384iPe+6u6xfcFLph7O HLAuLRAL0soscED7iJQrgzb6X1df/U+hDjeBLFR+LeqPz4DW8hjQuftWjPs6r4lrsgrP l8zaWxMTK6mRuzRqYN3ghmFSR141K5xfH93q3Qpd3bY54y33Etj2DzYrJnftAd0bXMus 6AVsVuk7BQ1rilUFz44AkNE7jQby4hMLz6I4YNFC+AC/hcmSfSc89bfA5nVuAGT4YHlw wDkg== 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 z18si6797290otq.121.2020.01.13.06.59.19; Mon, 13 Jan 2020 06:59:32 -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 S1728965AbgAMO6X (ORCPT + 99 others); Mon, 13 Jan 2020 09:58:23 -0500 Received: from verein.lst.de ([213.95.11.211]:41669 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728843AbgAMO6X (ORCPT ); Mon, 13 Jan 2020 09:58:23 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id ED5DB68B20; Mon, 13 Jan 2020 15:58:20 +0100 (CET) Date: Mon, 13 Jan 2020 15:58:20 +0100 From: Christoph Hellwig To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, chenhc@lemote.com, paul.burton@mips.com, linux-kernel@vger.kernel.org, hch@lst.de Subject: Re: [PATCH 1/2] MIPS: Define pgprot_dmacoherent according to coherentio status Message-ID: <20200113145820.GA9817@lst.de> References: <20200113140705.74605-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200113140705.74605-1-jiaxun.yang@flygoat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 13, 2020 at 10:07:04PM +0800, Jiaxun Yang wrote: > For MIPS chips that support coherentio DMA, it's always safe > to make DMA requests cached. For DMA coherent devices pgprot_dmacoherent isn't even used, so this doesn't make sense.