Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp541533yba; Wed, 24 Apr 2019 05:47:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxifnVEMqiYnvXR/YoeaOHu8Ih5zLGQBrNg7UXlYAzwoCH+pvJzG+7qZ1OjKS+Vs8Vi2Maw X-Received: by 2002:a17:902:4681:: with SMTP id p1mr31283818pld.42.1556110053506; Wed, 24 Apr 2019 05:47:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556110053; cv=none; d=google.com; s=arc-20160816; b=WkbC0m2MSPUNvbnQ8BWPUg33bQPTT0N8AwN9727bgwQzppwwhQsDRXqSREGh3tYAn0 KTK4U2ERxG2TGEHj7/4HLZSScRzC/mXoIWPU0gtfs36yJgrS7+RQjHe3iWf0/Vw24IV3 fVRJqzPIEBU9XtspB+1mtvRlmjF35i5Yer2J8kqTa38WSN1D+KbZItMoYHZVfKl4eXu5 /DFavDYtjK3gVVrQEfERJUxAihnWuILsoe6ZE5aCjp931IHQnOnJoTOeomN8a6mtPC2c /DHvkSdGgka6es8X8IK6BtIu95DVysafKK3S+mpIKB1Ynb9/AFGJhKwBKg7lv22zNPyk o3Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=hHlkzz3rmH4owxkjeJpTab7AuT0ByAEbSaKHUBaB4y4=; b=CGvAVE4QLiTptAwrljxGaHopg3PxKWAwQtQKoQHeYmL7tvFaQ8P1VgyNxcqjgFZPus 2exMUolRrRUigaAy14HYO6IOwcrDJbt9En9NQzXzjHFpXMg4G7CPV8MFSYfP73/7PDZp 2DbdpjpCuzYLzjcDpynRJGhE9VTWpX7ztp98Ur0ZLpypxS7MK50/6+YE9x35UGBCpivO t2l/0MEeg15pKV66Ygq93seh6YT9Q46GGOPvvKhEQ9V3PXLrk3fHWF7xIN5ulp36nSWV PbJ3yaTyYbkm0WZcbkRD7Zw1rfWIF2PmsiXTlRmGM9usXAV8gyCtWCMhtfjsYEBKtzOS YCgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@garyguo.net header.s=selector1 header.b=WRYBWXcL; 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 q13si20659850pfi.208.2019.04.24.05.47.18; Wed, 24 Apr 2019 05:47:33 -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=@garyguo.net header.s=selector1 header.b=WRYBWXcL; 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 S1730167AbfDXMqB (ORCPT + 99 others); Wed, 24 Apr 2019 08:46:01 -0400 Received: from mail-eopbgr110114.outbound.protection.outlook.com ([40.107.11.114]:6835 "EHLO GBR01-CWL-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726322AbfDXMqA (ORCPT ); Wed, 24 Apr 2019 08:46:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=garyguo.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hHlkzz3rmH4owxkjeJpTab7AuT0ByAEbSaKHUBaB4y4=; b=WRYBWXcLVuUUS+Vztmy5aNfEXZC9wWSbsyPwHd09ltkJso1NEjE44tRYrt8kQDzNmUSOZy+vteSiStLv2YeWrrGfeIJXLER9ZYsa2+Y6EBtXEjK/WB1zEkCn6TGu4AlqSOGCyrf8tkY26TpXVMvMqCmVQQ5F5QHKP/HUuoxPzz4= Received: from LO2P265MB0847.GBRP265.PROD.OUTLOOK.COM (20.176.139.20) by LO2P265MB1615.GBRP265.PROD.OUTLOOK.COM (20.176.145.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.19; Wed, 24 Apr 2019 12:45:56 +0000 Received: from LO2P265MB0847.GBRP265.PROD.OUTLOOK.COM ([fe80::d5c0:cf6f:4b60:ae19]) by LO2P265MB0847.GBRP265.PROD.OUTLOOK.COM ([fe80::d5c0:cf6f:4b60:ae19%4]) with mapi id 15.20.1813.017; Wed, 24 Apr 2019 12:45:56 +0000 From: Gary Guo To: Guo Ren CC: Christoph Hellwig , "linux-arch@vger.kernel.org" , Palmer Dabbelt , Andrew Waterman , Arnd Bergmann , Anup Patel , Xiang Xiaoyan , "linux-kernel@vger.kernel.org" , Mike Rapoport , Vincent Chen , Greentime Hu , "ren_guo@c-sky.com" , "linux-riscv@lists.infradead.org" , Marek Szyprowski , Robin Murphy , Scott Wood , "tech-privileged@lists.riscv.org" Subject: Re: [PATCH] riscv: Support non-coherency memory model Thread-Topic: [PATCH] riscv: Support non-coherency memory model Thread-Index: AQHU+SJqOw/bzOFv7E6YG/Ezkj/376ZIW7QAgACE3wCAAF+NAIAApRkAgAATvgCAAJneAIAAEuQggAAtFoCAAHI8gA== Date: Wed, 24 Apr 2019 12:45:56 +0000 Message-ID: <4e6b0816-3fe9-8c0b-a749-f7f6ef7e5742@garyguo.net> References: <1555947870-23014-1-git-send-email-guoren@kernel.org> <20190422161814.GA30694@lst.de> <20190423001348.GA31639@guoren-Inspiron-7460> <20190423055548.GA12365@lst.de> <20190423154642.GA16001@guoren-Inspiron-7460> <20190424020803.GA27332@guoren-Inspiron-7460> <20190424055703.GA3417@guoren-Inspiron-7460> In-Reply-To: <20190424055703.GA3417@guoren-Inspiron-7460> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LNXP265CA0050.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5d::14) To LO2P265MB0847.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8c::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=gary@garyguo.net; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2001:630:212:238:3697:f6ff:fe55:55b1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6c780389-5b05-4da5-a139-08d6c8b2cb54 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(5600141)(711020)(4605104)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(2017052603328)(7193020);SRVR:LO2P265MB1615; x-ms-traffictypediagnostic: LO2P265MB1615: x-microsoft-antispam-prvs: x-forefront-prvs: 00179089FD x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(39830400003)(396003)(346002)(376002)(366004)(189003)(199004)(6506007)(7416002)(508600001)(53546011)(386003)(31696002)(25786009)(6246003)(102836004)(86362001)(6916009)(99286004)(8676002)(4326008)(7736002)(14454004)(81166006)(229853002)(2906002)(305945005)(81156014)(6486002)(97736004)(68736007)(52116002)(71200400001)(71190400001)(93886005)(476003)(53936002)(66946007)(73956011)(76176011)(6116002)(446003)(6512007)(11346002)(66476007)(8936002)(2616005)(36756003)(64756008)(66446008)(46003)(256004)(486006)(186003)(5660300002)(66556008)(54906003)(31686004)(6436002)(316002)(309714004);DIR:OUT;SFP:1102;SCL:1;SRVR:LO2P265MB1615;H:LO2P265MB0847.GBRP265.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: garyguo.net does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Ge//13D2PSS4WQ2QG4ap+Wv/KsdnX7YJ/h2mYOCRJS++FcVp8xuzpBmxzRSoKDHxAeazzNdnZoivV944w57JOJhLFrtOMI32Lhvd5Fdh+RquhjweL0x8YtlV5FuwwN5IySrw0eJgtXNKVvQcsioci0JWWFkR+4SVQjyP28NE3bPJyNTcI2YZAPFQLFSHQkRd9tATgNJn1ZD7/iZQgm46uG+7h4/NnPClSql1TGrQ7iru7cueg1iuSIjuCkJP+aJ4rlNE+cH8EKMNhHv8/kNr3WiLo689dmm69oL5aEv7wd9fs7/pNX9yg6KwgKB1hrO8BRqMGU6NvDfRKduVQlFR5sHuG1kWiTFs51gHajh1DvLKvrlAzRRn6kVV1HUzP9G5bsB9vmGmLnYDiRjHLv4653u6gIsgtm1Rf9tKXADF7o8= Content-Type: text/plain; charset="utf-8" Content-ID: <3CB84A4D67FB29409C60DE8990A6CA97@GBRP265.PROD.OUTLOOK.COM> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: garyguo.net X-MS-Exchange-CrossTenant-Network-Message-Id: 6c780389-5b05-4da5-a139-08d6c8b2cb54 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Apr 2019 12:45:56.3481 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bbc898ad-b10f-4e10-8552-d9377b823d45 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO2P265MB1615 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDI0LzA0LzIwMTkgMDY6NTcsIEd1byBSZW4gd3JvdGU6DQo+IEhpIEdhcnksDQo+IA0K PiBPbiBXZWQsIEFwciAyNCwgMjAxOSBhdCAwMzoyMToxNEFNICswMDAwLCBHYXJ5IEd1byB3cm90 ZToNCj4+PiBMb29rOg0KPj4+IGxpbnV4LW5leHQgZ2l0Oih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