Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5333916ybl; Tue, 27 Aug 2019 03:04:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBj7g+ARluXFJp/jREWhUy2Hlb+2ulaP6obrV18Q6IE92sLyBFTWdzpalPuL/bS9eNLTux X-Received: by 2002:a63:58c:: with SMTP id 134mr21471127pgf.106.1566900292122; Tue, 27 Aug 2019 03:04:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566900292; cv=pass; d=google.com; s=arc-20160816; b=apwKa2THtSgenC4IhHkeHs0ubFwwhrmqBePSGZyF7r5kJYEhp9hMwc3MizMKBeFHDw 5cT5Gco2tI8gVbui2uVLapUNHWDdC4fuv6xOuTV7QD726r532GDszyWM0YgV7EtI89oO cp1muX9RjvAbFF0H9dmERpUn7aWIE9U0N41+4pApX0yv5xAmdKzVyInLNbHgLPuDfnyC +3Ohmp0McIdcStj+IRKNHzf+coFr9dy6YLzvt/IcLH684jRIKK0v052Rldru3FXkuW7r JLDwn0OY0YsUhhAyBy39htDWaKZT2ZyeavkbKjn27WnvVcqyRu4UWyzf78d7ty+bUBBU PHVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=6Xwq9EmfsYlF6D5P+L2rJ5Fh+3lrN+JOtnL4zwXCgro=; b=rjOibRWCJppqu1VkNvUwUJWKu/7W+pjnJNprEX9ytx0kg7iwMZHnSgShMUGPNHjHdK 5pn3m0Z2veBbcYjalwHDleonINMzyjmdcKTbvsrOzZhHI3LDHLGJkooCPjyhCg+Lr8oF ad/K5DpERkvYcQE6fqffWcbQPHVigUgzAPoy9SIWwMuI2l+DW1M9d28ODkRuccOZ0pOX LaylWHko+veGIuF1DQ6YW2hiYJPfaReTz43LaFgpip5O/HdHWJlpSwEzJEmO4L+V9MmN vPomvq3HOMTGiDQqVWTcipLt6P/slBDuLhdLJ7SHu8wT9U242HzA+thQpoKF8aO3KR/V JLqA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wavecomp.com header.s=selector2 header.b=Vy24JsrB; arc=pass (i=1 spf=pass spfdomain=wavecomp.com dkim=pass dkdomain=mips.com dmarc=pass fromdomain=mips.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 x5si13635233pfq.86.2019.08.27.03.04.36; Tue, 27 Aug 2019 03:04:52 -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=pass header.i=@wavecomp.com header.s=selector2 header.b=Vy24JsrB; arc=pass (i=1 spf=pass spfdomain=wavecomp.com dkim=pass dkdomain=mips.com dmarc=pass fromdomain=mips.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 S1729461AbfH0KDU (ORCPT + 99 others); Tue, 27 Aug 2019 06:03:20 -0400 Received: from mail-eopbgr690109.outbound.protection.outlook.com ([40.107.69.109]:59695 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725912AbfH0KDT (ORCPT ); Tue, 27 Aug 2019 06:03:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CCLLh9tHGhGutNySZb0R2tUORy6bJaCmjE406vazF+6/Kgu8gr+iqoUErJ0cNcDteQPtDHPzCs1hg6J0SFOk3C6iXsiXbffJfOd9VAGNm6f127OscxHhGdVrJlapWJRK5ZDWEsJEsLwNo/fSLuuvd2gsqNvdnq4rjGDIFhTVQovptnFM8wtLCgR/k5PW810zV6Nx2rJuR8rraiaD1CjXvkEaigjVCBdB2x1iezGKOwW2m3fourOb0WuIkhNvOEifFVqSK4Gsru6AV+OP0wwmpX/GvWOjs09BXBo6mNnZPM8oolKfkvOxdplV9r3l8xNRhJi+9l4kNBDFqeS+XZvFrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Xwq9EmfsYlF6D5P+L2rJ5Fh+3lrN+JOtnL4zwXCgro=; b=TA0ZJKsDG4sJ6ghHznKr/z6eI6AlS9NBQL9TTPDNHAoLg0ReaZTSCM4L6skW1NWO4Pt3vcdPIfneeiglHWcBcK1LGtsl0zU06lDUXnw5uEjDUCrXEY4QRQSzMW8Aa8q9gOJgHi0V9xU6sAoOqMgr/iqnU2KQgWj7Ob6nl8WSLJ6wIVnEkYYiUCxE9Z8VQnEQhvbny81+qYVJv44xkljQUUaZ3QzCPfwv63ncwGkXjzZwWO0u/MpZyBWSv6+cZYNyGFwOJ4jG4ySIx63AOHJu4eCFkphPh9luYwX2DHNyE88/x2R6eMMuaOwy8aIfHgnVUwYKfDIIUjMBTxXXLs+PLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wavecomp.com; dmarc=pass action=none header.from=mips.com; dkim=pass header.d=mips.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavecomp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Xwq9EmfsYlF6D5P+L2rJ5Fh+3lrN+JOtnL4zwXCgro=; b=Vy24JsrBlA7/Vh3EIWL0Ny/ZTs/hYZqwAmiufIhdLlQBmKOS7JkdpgoZb0jjxsHkcqd8iQ3JKQOuDgt/c+erc9GJZgBaY9qoKiTJuItVwvTmLlicmuDV+VO9gm4J85VF461dzeMK9glJxl/a4qcIHpghgm6bi3v8NrZZjWgggag= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.172.60.12) by MWHPR2201MB1390.namprd22.prod.outlook.com (10.174.162.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.20; Tue, 27 Aug 2019 10:03:17 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::f9e8:5e8c:7194:fad3]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::f9e8:5e8c:7194:fad3%11]) with mapi id 15.20.2199.021; Tue, 27 Aug 2019 10:03:17 +0000 From: Paul Burton To: Christoph Hellwig CC: "iommu@lists.linux-foundation.org" , Guan Xuetao , Shawn Anastasio , Russell King , Catalin Marinas , Will Deacon , Robin Murphy , 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: Re: [PATCH 6/6] MIPS: document mixing "slightly different CCAs" Thread-Topic: [PATCH 6/6] MIPS: document mixing "slightly different CCAs" Thread-Index: AQHVXL6l2iVfJsYr5Ei+0s2DQeCv9Q== Date: Tue, 27 Aug 2019 10:03:16 +0000 Message-ID: <20190827100310.p2o5y3aklcoti74z@pburton-laptop> References: <20190826132553.4116-1-hch@lst.de> <20190826132553.4116-7-hch@lst.de> In-Reply-To: <20190826132553.4116-7-hch@lst.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P123CA0011.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:a6::23) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:18::12) user-agent: NeoMutt/20180716 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [94.118.89.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 31247056-33f9-45f6-9500-08d72ad5c7d8 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MWHPR2201MB1390; x-ms-traffictypediagnostic: MWHPR2201MB1390: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-forefront-prvs: 0142F22657 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(366004)(39850400004)(376002)(136003)(396003)(346002)(189003)(199004)(71200400001)(486006)(102836004)(186003)(476003)(386003)(26005)(8676002)(42882007)(478600001)(6246003)(2906002)(305945005)(5660300002)(66066001)(53936002)(8936002)(9686003)(1076003)(446003)(14444005)(81156014)(6486002)(7736002)(81166006)(256004)(11346002)(4326008)(25786009)(14454004)(44832011)(52116002)(6512007)(58126008)(7416002)(6916009)(54906003)(76176011)(6116002)(3846002)(66946007)(66446008)(66476007)(66556008)(64756008)(33716001)(99286004)(71190400001)(316002)(6436002)(6506007)(229853002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1390;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: hzQ2W7D89/5bOMckqiyD4YmPVgAE+qzEqiVqLEhKTz76XIkalHuEwK5B8RO5FDj5VB80v63tntNByUn6Gd/gOgE6cflzAHG5dXBGD8KgsefRz4nUM/EpQXaDmwaDPu0C1wyF7go+Of4hHuwWIs/GaL+nAdaSD+6Cyh8RSd0oDis+apASwR/lr4gsW/NLoBazYjWbuTH87jVp2jp9QlubW9l7NhHMlwkCSbSjC6ibeiesKnqE5yraqZJpy10BSvnZSmnoYTcCiDFqC/w0wAfz+BDCyPNg6AAKq1VvXtm2EICLMVEhh6yeQScHpabuwGBWVyBeRZO6osHQ3nIR7aSCf5uK9TZ7FvSEPQWf50v9ukrBTDgDe7X4niP0uuM8dFbU9kGn7tHL9IJrN7gwiptGR50dwqDQkAGz8XRtS0UMtEI= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <112563C691B9D24084999634B2E39C47@namprd22.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31247056-33f9-45f6-9500-08d72ad5c7d8 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Aug 2019 10:03:16.7814 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ijY4BT1J6qbZ0asLVx9KlfJdlwGDY7JNLjL4/utrumR/7V7gpeHBxew9QwsJA+Izplvd0C8tBPzS1I/l2EOppg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1390 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Mon, Aug 26, 2019 at 03:25:53PM +0200, Christoph Hellwig wrote: > 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). >=20 > Signed-off-by: Christoph Hellwig Acked-by: Paul Burton Thanks, Paul > --- > arch/mips/Kconfig | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > 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 > =20 > 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 > --=20 > 2.20.1 >=20