Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4259302ybl; Mon, 26 Aug 2019 07:51:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJfkK3egKDDMTn3993H1jJuZmc61vnbnfheeATjs0pjVTbrLFCNVXNZUrFnUU73lk/gVH9 X-Received: by 2002:a17:90a:974c:: with SMTP id i12mr20722558pjw.12.1566831078359; Mon, 26 Aug 2019 07:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566831078; cv=none; d=google.com; s=arc-20160816; b=iX0Z/cbCkQVt7PHUJlF+ZqUhCIp/5Ya960j6h0wuRmiqPUzkXpABhtQHrQqciCrjw0 hG777WdzkhAAx7AbdMGJOmNp/+hbgdsx6eQgc7+Ir1gIAYiE0ZhHOMWRLVHURpEDMCDL 0t0rCYFhgacgHwUriX4IXAnZaIYGvh2S/5T9FAWyPURb4QKgb0FtHBktRwawmDjS6g27 WySlZ0DO+n1VdYU9i+pcCXyVuJ0Z4ONo3os9eP5ng77lrogNp/zthRGiFA9RT9SfmRC8 KFNKMpGxiDjH9XjBMUgsx+72CBpGXKiphjIzOtb+3ymP8RJV34gcd3NRNrGFPqvpXkUd Pbiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MhfKilNLV8AdxkyYpV9V+99YpggpHbv15IYon9mhMkc=; b=nmjgeRTjoeBUGazMQYOzDpeVUO2bFtjFkRdRVtkVD/HIeWb5D6W/N4F7UhGPqJWUe/ 1IN2J2nMX7X7ikDi236+3dnB/2AYq1qkJ/iCgfVyYX2E0P8KlvaN9TO8MqS5DxRVhfMW 4HcDtKL/rEHpetfzAURGg+oLHZiVheB+oN86ImQhzrVlGptPV2MQ67TjF0+XR2fhaIlI 54JsZR7wUc8FnH7M8hj+CYlU8gT44BXQZa5i9av40U7lE/hNsUUY/kSZQ7NIS2iiTwFv okToNK5PUi+FbYr5UWIS7eGpJVG5Yfce/6EfoRPlzWyiBKmoI5Q4YarCw0mHRwC8gXyu KwqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=SxWguzeH; 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 r129si9174244pgr.21.2019.08.26.07.51.00; Mon, 26 Aug 2019 07:51:18 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=SxWguzeH; 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 S1732425AbfHZN0c (ORCPT + 99 others); Mon, 26 Aug 2019 09:26:32 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35596 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732403AbfHZN00 (ORCPT ); Mon, 26 Aug 2019 09:26:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MhfKilNLV8AdxkyYpV9V+99YpggpHbv15IYon9mhMkc=; b=SxWguzeHjibJiQGTh0enGJ7wsj xvlWsmuxilsSrybCT7ApvIPfTJthkTEJChIJ5pY9DHIsQGjUN67v8cKOOKr5a0uXhM5HM4z32vow4 bkkZjRbgFpCc/BYTH1TR2Srt2asiNr4QwjlKzC6thdTiNry7uant3AU9xHnoI8haOOP/qM8zbiqxw 4HlaZ9eaMXY9Je+6oKpIzLdltUVMmtCOJrHiTM/zTsoJ2sL1u6Gn862HOqAy+cr2ZFt3K9eB+DHlR YzntowaXSIiZlnQk9a3lTajwZqbRPQp/EZ6iFMq2aXPq9PasHkqpCJwWzyHeA9WB3ILK9MurfmZqm +7QSFpkQ==; Received: from clnet-p19-102.ikbnet.co.at ([83.175.77.102] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i2F0h-0007zP-RH; Mon, 26 Aug 2019 13:26:16 +0000 From: Christoph Hellwig To: iommu@lists.linux-foundation.org Cc: Guan Xuetao , Shawn Anastasio , Russell King , Catalin Marinas , Will Deacon , Robin Murphy , Paul Burton , James Hogan , Geert Uytterhoeven , linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] MIPS: document mixing "slightly different CCAs" Date: Mon, 26 Aug 2019 15:25:53 +0200 Message-Id: <20190826132553.4116-7-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190826132553.4116-1-hch@lst.de> References: <20190826132553.4116-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Based on an email from Paul Burton, quoting section 4.8 "Cacheability and Coherency Attributes and Access Types" of "MIPS Architecture Volume 1: Introduction to the MIPS32 Architecture" (MD00080, revision 6.01). Signed-off-by: Christoph Hellwig --- arch/mips/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index fc88f68ea1ee..aff1cadeea43 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1119,6 +1119,13 @@ config DMA_PERDEV_COHERENT config DMA_NONCOHERENT bool + # + # MIPS allows mixing "slightly different" Cacheability and Coherency + # Attribute bits. It is believed that the uncached access through + # KSEG1 and the implementation specific "uncached accelerated" used + # by pgprot_writcombine can be mixed, and the latter sometimes provides + # significant advantages. + # select ARCH_HAS_DMA_WRITE_COMBINE select ARCH_HAS_SYNC_DMA_FOR_DEVICE select ARCH_HAS_UNCACHED_SEGMENT -- 2.20.1