Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933718AbeAHXhE (ORCPT + 1 other); Mon, 8 Jan 2018 18:37:04 -0500 Received: from g9t1613g.houston.hpe.com ([15.241.32.99]:10881 "EHLO g9t1613g.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756813AbeAHXhC (ORCPT ); Mon, 8 Jan 2018 18:37:02 -0500 From: "Kani, Toshi" To: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "guohanjun@huawei.com" CC: "linuxarm@huawei.com" , "linux-mm@kvack.org" , "wxf.wang@hisilicon.com" , "akpm@linux-foundation.org" , "mark.rutland@arm.com" , "will.deacon@arm.com" , "catalin.marinas@arm.com" , "Hocko, Michal" , "hanjun.guo@linaro.org" Subject: Re: [RFC patch] ioremap: don't set up huge I/O mappings when p4d/pud/pmd is zero Thread-Topic: [RFC patch] ioremap: don't set up huge I/O mappings when p4d/pud/pmd is zero Thread-Index: AQHTf8/DU6Bn0QH47UWdTrAB037o0qNl8sGAgAC0NQCABBloAA== Date: Mon, 8 Jan 2018 23:36:57 +0000 Message-ID: <1515457376.2108.34.camel@hpe.com> References: <1514460261-65222-1-git-send-email-guohanjun@huawei.com> <1515193319.2108.24.camel@hpe.com> In-Reply-To: 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.211.195.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AT5PR8401MB1299;6:1Po7eYgovM2zeSRipaTpzxYFMadW41vruwunsDlHfKB5rL41N53DcaS7x0dJy+TDdY2n2NBtUD7rPH/waDupUXTAm05SZNP0gYd2hHUTyZin3TxDTAy/bEUiQMv93xuawmkQt7gcMJ0C5pGVwoHS1rfVfetIsW6TYJZS/OmlIQuNqkxm6xl2SoXi6RpM9cqQ8psBuQ6ynnUsG+eKw4Mnz8zOFG2IF0mlN12T5i4UAmVhJiVqH5ttpTi+uVH9gxyZ7BFl6HUQIriA7zuGlLMzPSYsWvc0YLnE9GvgQ8hMq2yBrG+0m+LJkDd0wd3hTrKO+Y04PSGGKwOehuRybadfnQUZKyHyPvxpsOR5QU9+ETd5qii6ejqSwjKDN8R0DK2V;5:b4YHVvlqaKeGiKSwaUnwMei8Nv3HFOhjBKspI6YA8lVSY5bVsv1ojdSaha5f/mPEm7yE6TEYz/DcT8lseIoBEgsSgyhrvzOUk1Mva44Cpo8nWx3EPlUOYv8JjXgTvyOr3gpU6i6nMOKJ/20/94m2Q49SyXOQBL9GMsW5vHUC9nM=;24:9iBDHBqo15pXz2f3SyRSAcC+srdEuxRJZP8Q7a51r4dSb57xsvtzxYf2GyxvUGlPgJtIsfDBpmGItfIWd2hDIjIcPnyeX2c7I3qRg7K3uLk=;7:vzTwJcH38UWhISCbNpZItYa8/42lIyxRe8To3WbE4LjY+TFP8ProWhEIYngGae4x4Sf9+YaOT1JAaQeiNi3fwjLDc40XtNh6xWa+ZwfNdV+C6OndXRbZ1YHV1XABUrL6gG21mIPSgYlNj5ptigLbnykqBphlyf+CQNhkpBIsLj3sdX7Z1O1ktb/nXHRR1hCkwuYV6b9bgcn4MUUFA3uKhsj5WMlfpAa0y8BlYnazYa20lj6H0itU/ZirZWNK9U7K x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 4351aaef-e231-472c-6d96-08d556f0b57c x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(8989060)(201703031133081)(201702281549075)(8990040)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:AT5PR8401MB1299; x-ms-traffictypediagnostic: AT5PR8401MB1299: x-ld-processed: 105b2061-b669-4b31-92ac-24d304d195dc,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041268)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:AT5PR8401MB1299;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:AT5PR8401MB1299; x-forefront-prvs: 054642504A x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(39860400002)(39380400002)(346002)(376002)(51914003)(189003)(199004)(377424004)(24454002)(76176011)(103116003)(53546011)(102836004)(2501003)(68736007)(105586002)(6512007)(5250100002)(6436002)(229853002)(86362001)(36756003)(5660300001)(14454004)(106356001)(54906003)(81166006)(3846002)(6116002)(99286004)(316002)(66066001)(7416002)(8936002)(110136005)(6246003)(2950100002)(53936002)(478600001)(2201001)(3660700001)(25786009)(8676002)(59450400001)(305945005)(81156014)(6506007)(4326008)(6486002)(97736004)(3280700002)(7736002)(2900100001)(4001150100001)(2906002)(14583001);DIR:OUT;SFP:1102;SCL:1;SRVR:AT5PR8401MB1299;H:AT5PR8401MB1297.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-microsoft-antispam-message-info: JHslMkMGW0ZxP3yT+WaL1vopljyQaxZnfYl5CB6ej/RYDpVf31QJvnwKFCPICwKWQm+kftz/B7AxFxixgagNlQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <5045DAF5E92F124BAE65985B33006A58@NAMPRD84.PROD.OUTLOOK.COM> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4351aaef-e231-472c-6d96-08d556f0b57c X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jan 2018 23:36:57.8513 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: AT5PR8401MB1299 X-OriginatorOrg: hpe.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: T24gU2F0LCAyMDE4LTAxLTA2IGF0IDE3OjQ2ICswODAwLCBIYW5qdW4gR3VvIHdyb3RlOg0KPiBP biAyMDE4LzEvNiA2OjE1LCBLYW5pLCBUb3NoaSB3cm90ZToNCj4gPiBPbiBUaHUsIDIwMTctMTIt MjggYXQgMTk6MjQgKzA4MDAsIEhhbmp1biBHdW8gd3JvdGU6DQo+ID4gPiBGcm9tOiBIYW5qdW4g R3VvIDxoYW5qdW4uZ3VvQGxpbmFyby5vcmc+DQo+ID4gPiANCj4gPiA+IFdoZW4gd2UgdXNpbmcg aW91bm1hcCgpIHRvIGZyZWUgdGhlIDRLIG1hcHBpbmcsIGl0IGp1c3QgY2xlYXIgdGhlIFBURXMN Cj4gPiA+IGJ1dCBsZWF2ZSBQNEQvUFVEL1BNRCB1bmNoYW5nZWQsIGFsc28gd2lsbCBub3QgZnJl ZSB0aGUgbWVtb3J5IG9mIHBhZ2UNCj4gPiA+IHRhYmxlcy4NCj4gPiA+IA0KPiA+ID4gVGhpcyB3 aWxsIGNhdXNlIGlzc3VlcyBvbiBBUk02NCBwbGF0Zm9ybSAobm90IHN1cmUgaWYgb3RoZXIgYXJj aHMgaGF2ZQ0KPiA+ID4gdGhlIHNhbWUgaXNzdWUpIGZvciB0aGlzIGNhc2U6DQo+ID4gPiANCj4g PiA+IDEuIGlvcmVtYXAgYSA0SyBzaXplLCB2YWxpZCBwYWdlIHRhYmxlIHdpbGwgYnVpbGQsDQo+ ID4gPiAyLiBpb3VubWFwIGl0LCBwdGUwIHdpbGwgc2V0IHRvIDA7DQo+ID4gPiAzLiBpb3JlbWFw IHRoZSBzYW1lIGFkZHJlc3Mgd2l0aCAyTSBzaX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