Received: by 10.213.65.68 with SMTP id h4csp440594imn; Fri, 16 Mar 2018 07:52:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELskiEBGy6r+/MnJSbuKSen+1ER1OoiuEKaipHHBPSKB2nBUe2QZqwvM1az5fvqMi1iHQZ+q X-Received: by 10.99.120.198 with SMTP id t189mr1752124pgc.0.1521211931258; Fri, 16 Mar 2018 07:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521211931; cv=none; d=google.com; s=arc-20160816; b=XT8sRjsZedjykI4S/J1CsgZUG8VS7X64GC3yHXsdQOqnQxke7j8+PA3Ptb6E1CYiAo JFrH4LpKqF5ZsHJX3hbK3FJl/h/c1jcoUPDSXPhVy/xWg9aLgkSexV+u2xjxmJtk1W6n dmoBQD4BmRh74lb4/RWZsEC9tx6cHR4POEuPiQ8wIGlnP26/U6kETPPQ/Mx1882cGVS9 Vn1W5aQeF3DjHKdvEHGGHkLvqSRHR2vXMpyFt4H7TQ7LwK4wjOa0eo7uzdv7oqTJ5ad0 gz4Dg7MW6ukWPBwuLk1tsOfK7ygH6EDC6GdvbS88wsNxv2a75rzbm2C18dgNytLnzsyt 13kw== 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:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=Gkc8IY3YyOze/YNEx4ZVUwYNwAdVC116dUQWCsV9XSg=; b=cxoEDEwN4cAAIlrdFdQNdd7Qlb0hmy1Jsl/jKL1NK3lSO+bayxHG1TTZEwakF6s95C mKu0Wm4ngnrf+XHv/DiaOJEARowcWYUdfKYK7HYr6Hc3EV1koU8fndtcKuJWn4WO6ZRP JsEqOVfbtz7jcG8FoYwLs6To4qIhvVUhiBmxMMgmVvjxZS32hVENuiM7DD/+4tDD0vo8 V4t5zGR46655jE+7K+2fU6cnUwpTbguX88ya1vfcM1ua9SQALTdvfZ5DXAgsRXOaPoGa 5NpaL3lezSQZeQah/STmcF0C0StiNG0dYkY/uwzGnWnxrXlgasAIVUgZe4aI9ddZA1w/ UVLA== 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 j14si5573205pfn.150.2018.03.16.07.51.57; Fri, 16 Mar 2018 07:52:11 -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; 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 S1753479AbeCPOux (ORCPT + 99 others); Fri, 16 Mar 2018 10:50:53 -0400 Received: from g9t5009.houston.hpe.com ([15.241.48.73]:35138 "EHLO g9t5009.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753338AbeCPOuq (ORCPT ); Fri, 16 Mar 2018 10:50:46 -0400 Received: from G1W8108.americas.hpqcorp.net (g1w8108.austin.hp.com [16.193.72.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g9t5009.houston.hpe.com (Postfix) with ESMTPS id EDB887E; Fri, 16 Mar 2018 14:50:44 +0000 (UTC) Received: from G4W9120.americas.hpqcorp.net (2002:10d2:150f::10d2:150f) by G1W8108.americas.hpqcorp.net (2002:10c1:483c::10c1:483c) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 16 Mar 2018 14:50:44 +0000 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (15.241.52.10) by G4W9120.americas.hpqcorp.net (16.210.21.15) with Microsoft SMTP Server (TLS) id 15.0.1178.4 via Frontend Transport; Fri, 16 Mar 2018 14:50:44 +0000 Received: from DF4PR8401MB0396.NAMPRD84.PROD.OUTLOOK.COM (10.169.83.9) by DF4PR8401MB0585.NAMPRD84.PROD.OUTLOOK.COM (10.169.84.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Fri, 16 Mar 2018 14:50:42 +0000 Received: from DF4PR8401MB0396.NAMPRD84.PROD.OUTLOOK.COM ([fe80::d9df:7fa:9dc7:4394]) by DF4PR8401MB0396.NAMPRD84.PROD.OUTLOOK.COM ([fe80::d9df:7fa:9dc7:4394%17]) with mapi id 15.20.0588.016; Fri, 16 Mar 2018 14:50:42 +0000 From: "Kani, Toshi" To: "cpandya@codeaurora.org" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "arnd@arndb.de" CC: "linux-kernel@vger.kernel.org" , "ard.biesheuvel@linaro.org" , "tglx@linutronix.de" , "takahiro.akashi@linaro.org" , "james.morse@arm.com" , "kristina.martsenko@arm.com" , "akpm@linux-foundation.org" , "mark.rutland@arm.com" , "gregkh@linuxfoundation.org" , "linux-arm-kernel@lists.infradead.org" , "marc.zyngier@arm.com" , "linux-arch@vger.kernel.org" Subject: Re: [PATCH v2 2/4] ioremap: Implement TLB_INV before huge mapping Thread-Topic: [PATCH v2 2/4] ioremap: Implement TLB_INV before huge mapping Thread-Index: AQHTvFuW/H5D66EiPUqborstpx0HBaPReDQAgAEDIICAAHg+gA== Date: Fri, 16 Mar 2018 14:50:42 +0000 Message-ID: <1521211837.2693.187.camel@hpe.com> References: <1521117906-20107-1-git-send-email-cpandya@codeaurora.org> <1521117906-20107-3-git-send-email-cpandya@codeaurora.org> <1521130368.2693.177.camel@hpe.com> <0cec2b79-1668-68d1-32db-531f5a8a9db2@codeaurora.org> In-Reply-To: <0cec2b79-1668-68d1-32db-531f5a8a9db2@codeaurora.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=toshi.kani@hpe.com; x-originating-ip: [15.203.227.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DF4PR8401MB0585;7:nS4z4oQoH0ncxll6yRuK5R16aJChSANJ4m6vdSb7WWG0MYFs5h1OI6Uu4TauD3VW3uhR4lGrhpna2vdXj5PYZncoTd/V/MpoI66PUlCFuxteWh1/dI6T780gtWd4IEyz9LURquYKihpFi3QdjRqUxcwkReU9GFe7FqXJS5EsXlxbmuNcsIbgsyZJm+uk6wnhSbvOjRDBo2AkVp4/PhFvfiJCUjojQ8FjaOMZjpjbONN3oAYkvmiKJOuexvf6SWWK x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 65ed1715-ce46-4dc0-cd33-08d58b4d4acc x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(8989060)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(2017052603328)(7153060)(7193020);SRVR:DF4PR8401MB0585; x-ms-traffictypediagnostic: DF4PR8401MB0585: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501244)(52105095)(3002001)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011);SRVR:DF4PR8401MB0585;BCL:0;PCL:0;RULEID:;SRVR:DF4PR8401MB0585; x-forefront-prvs: 0613912E23 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(366004)(39860400002)(376002)(39380400002)(346002)(199004)(377424004)(189003)(86362001)(68736007)(105586002)(6486002)(4326008)(3280700002)(76176011)(99286004)(26005)(3660700001)(2950100002)(6116002)(478600001)(97736004)(2201001)(3846002)(2906002)(14454004)(6436002)(36756003)(66066001)(2501003)(5250100002)(6246003)(25786009)(81166006)(2900100001)(7416002)(5660300001)(8676002)(6512007)(7736002)(305945005)(8936002)(106356001)(81156014)(102836004)(110136005)(103116003)(54906003)(6506007)(53546011)(93886005)(186003)(316002)(53936002)(229853002)(14583001);DIR:OUT;SFP:1102;SCL:1;SRVR:DF4PR8401MB0585;H:DF4PR8401MB0396.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: cXSbgE8DZnREOfbx8bpJT6SekDlZUPc2NEPLNG+bnsMZkRvP0ndz+qOkkrKjUjH8Xk26RFr4yjLGqyRm7UM0MLoXXrDgYRM3Tu7gzinKbqRRK61nj0E7R4Nm9sQ3ZfGtFRMMOVDd6dXVDrz+X1ulSpT4FQo7cH3gcYqykgMnb0vNyWZHR2tY8wa85ZKqHQ1oenhGEUhE8idMVsoHn/nxIsgTz4Dxg7S/ADxIQ+LYhBXNDFu9yYLxJrMWhnF4Y8lhbnp4JU/ZzCWeTz3cRFEel8RhbX3wwXXJnBe1ME3j1drqrc3cYYwWCMAksDIRM0j4eSw0gGwrreSU+/44TsmZBg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 65ed1715-ce46-4dc0-cd33-08d58b4d4acc X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Mar 2018 14:50:42.5846 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0585 X-OriginatorOrg: hpe.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDE4LTAzLTE2IGF0IDEzOjEwICswNTMwLCBDaGludGFuIFBhbmR5YSB3cm90ZToN Cj4gDQo+IE9uIDMvMTUvMjAxOCA5OjQyIFBNLCBLYW5pLCBUb3NoaSB3cm90ZToNCj4gPiBPbiBU aHUsIDIwMTgtMDMtMTUgYXQgMTg6MTUgKzA1MzAsIENoaW50YW4gUGFuZHlhIHdyb3RlOg0KPiA+ ID4gSHVnZSBtYXBwaW5nIGNoYW5nZXMgUE1EL1BVRCB3aGljaCBjb3VsZCBoYXZlDQo+ID4gPiB2 YWxpZCBwcmV2aW91cyBlbnRyaWVzLiBUaGlzIHJlcXVpcmVzIHByb3Blcg0KPiA+ID4gVExCIG1h aW50YW5hbmNlIG9uIHNvbWUgYXJjaGl0ZWN0dXJlcywgbGlrZQ0KPiA+ID4gQVJNNjQuDQo+ID4g PiANCj4gPiA+IEltcGxlbnQgQkJNIChicmVhay1iZWZvcmUtbWFrZSkgc2FmZSBUTEINCj4gPiA+ IGludmFsaWRhdGlvbi4NCj4gPiA+IA0KPiA+ID4gSGVyZSwgSSd2ZSB1c2VkIGZsdXNoX3RsYl9w Z3RhYmxlKCkgaW5zdGVhZA0KPiA+ID4gb2YgZmx1c2hfa2VybmVsX3JhbmdlKCkgYmVjYXVzZSBp bnZhbGlkYXRpbmcNCj4gPiA+IGludGVybWVkaWF0ZSBwYWdlX3RhYmxlIGVudHJpZXMgY291bGQg aGF2ZQ0KPiA+ID4gYmVlbiBvcHRpbWl6ZWQgZm9yIHNwZWNpZmljIGFyY2guIFRoYXQncyB0aGUN Cj4gPiA+IGNhc2Ugd2l0aCBBUk02NCBhdCBsZWFzdC4NCj4gPiA+IA0KPiA+ID4gU2lnbmVkLW9m Zi1ieTogQ2hpbnRh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