Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753366AbeAEWQE (ORCPT + 1 other); Fri, 5 Jan 2018 17:16:04 -0500 Received: from g9t1613g.houston.hpe.com ([15.241.32.99]:5795 "EHLO g9t1613g.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753221AbeAEWQD (ORCPT ); Fri, 5 Jan 2018 17:16:03 -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" , "catalin.marinas@arm.com" , "will.deacon@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/DU6Bn0QH47UWdTrAB037o0qNl8sGA Date: Fri, 5 Jan 2018 22:15:57 +0000 Message-ID: <1515193319.2108.24.camel@hpe.com> References: <1514460261-65222-1-git-send-email-guohanjun@huawei.com> In-Reply-To: <1514460261-65222-1-git-send-email-guohanjun@huawei.com> 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;AT5PR8401MB1297;6:9ZyYmRZ5cDLvbb7X+23E0glUFlP5EDMLeLiGHeqsrnuX/1fd+fgBvl9VIfWTl25wVCTAXRHz92+LQy6IvtZO1ke3j4aYEr2rCuK4EO0JqhZoqysRPu72esMnA52RGbx9lBZW76AMSHhLofm/L5GoSfjLHyIT78HqSsCT/o2jxKBF3rrv9y/CZwjVn57YD2YOP461gpiXddbMPs735S9jgyCs7g2ZVnZNogxy0YH/w+O7ZkwdJSD1BZec4vSjA3cZuxv3xqVySMCP0Ju+bNaH5cQGMZeFRlVh1d2vJ49foCfiNU7j4SAKPYrBY/EEHl6HzpRDhmTJqwW1jZcU0WcnEoXV1UPVOGOUxQanT6GmTb5sJtHksil1aO4DsIBeqEj8;5:rRN4gD5lImqhoK2pCo/5NqNB4EU9Jr92qNnYoK/MeJJ7LYl8kuE+kCoelRQwv90j/faFIR9eGSK4kegt1bXoXtp/LDBt8qPcQvIFi8wSMXQLDW7yhtO4HHN+Nz/IVhW6/6ktLSwIKEUI9y/cg4D8CU1koD92/+Yf3Atypds0z1A=;24:WXxVXT3GEjZD46wYj6ML3raTpCm8dhV98yYVjd05LP+hJeYSWbgcwgnRYIiqOdok1OCbWWA/WW2nirzTeOYXlv+8IFwo7ZACwC4puoHebCM=;7:n+hrhrxNvbKi/WRpsmpsJ+vTApK0163EDo9aW0jXWeqU66Dx1dwxpxECC2C6a2IWKTHffJzTdxHRh9RT5qeMe3LiHDAPHfNjq+l/Ri+ehJw/M/jWCfpd5VSXORTAH/3yl9mYtDJ/Fz36h3AkqX2Nx5AimZ2HXDPkV+OWOxH7jIkWfFJDJ/H4TvO0e60Hy9Oqf7+J/rmxvv/nQAE0D+YCNmJ3YgslQziZDDPxLM6DflB9ULoM3Wv/bDBCciAgSVRq x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: bacff27b-3311-4f08-686c-08d55489e53d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(8989060)(201703031133081)(201702281549075)(8990040)(5600026)(4604075)(3008032)(2017052603307)(7153060);SRVR:AT5PR8401MB1297; x-ms-traffictypediagnostic: AT5PR8401MB1297: 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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231023)(944501075)(6055026)(6041268)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011);SRVR:AT5PR8401MB1297;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:AT5PR8401MB1297; x-forefront-prvs: 05437568AA x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(396003)(39380400002)(39860400002)(376002)(199004)(189003)(24454002)(377424004)(102836004)(2906002)(229853002)(2201001)(2900100001)(2501003)(14454004)(6116002)(5250100002)(3660700001)(3280700002)(3846002)(8936002)(97736004)(478600001)(99286004)(86362001)(66066001)(4001150100001)(81166006)(6512007)(106356001)(105586002)(6486002)(53936002)(6436002)(6506007)(76176011)(103116003)(59450400001)(54906003)(36756003)(25786009)(6246003)(8676002)(7736002)(305945005)(110136005)(316002)(5660300001)(2950100002)(4326008)(81156014)(7416002)(68736007)(14583001);DIR:OUT;SFP:1102;SCL:1;SRVR:AT5PR8401MB1297;H:AT5PR8401MB1297.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-microsoft-antispam-message-info: e4/hyntYTIDzHb+gUq73uzucA3IVNYgfkrFrZkSpgijrJHUehV3q8pBupdbGp2qI2eASPR+ta7+H/gVaG5/Nvg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <15BE780802C69043B7029400C0B34517@NAMPRD84.PROD.OUTLOOK.COM> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: bacff27b-3311-4f08-686c-08d55489e53d X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jan 2018 22:15:57.4959 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: AT5PR8401MB1297 X-OriginatorOrg: hpe.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: T24gVGh1LCAyMDE3LTEyLTI4IGF0IDE5OjI0ICswODAwLCBIYW5qdW4gR3VvIHdyb3RlOg0KPiBG cm9tOiBIYW5qdW4gR3VvIDxoYW5qdW4uZ3VvQGxpbmFyby5vcmc+DQo+IA0KPiBXaGVuIHdlIHVz aW5nIGlvdW5tYXAoKSB0byBmcmVlIHRoZSA0SyBtYXBwaW5nLCBpdCBqdXN0IGNsZWFyIHRoZSBQ VEVzDQo+IGJ1dCBsZWF2ZSBQNEQvUFVEL1BNRCB1bmNoYW5nZWQsIGFsc28gd2lsbCBub3QgZnJl ZSB0aGUgbWVtb3J5IG9mIHBhZ2UNCj4gdGFibGVzLg0KPiANCj4gVGhpcyB3aWxsIGNhdXNlIGlz c3VlcyBvbiBBUk02NCBwbGF0Zm9ybSAobm90IHN1cmUgaWYgb3RoZXIgYXJjaHMgaGF2ZQ0KPiB0 aGUgc2FtZSBpc3N1ZSkgZm9yIHRoaXMgY2FzZToNCj4gDQo+IDEuIGlvcmVtYXAgYSA0SyBzaXpl LCB2YWxpZCBwYWdlIHRhYmxlIHdpbGwgYnVpbGQsDQo+IDIuIGlvdW5tYXAgaXQsIHB0ZTAgd2ls bCBzZXQgdG8gMDsNCj4gMy4gaW9yZW1hcCB0aGUgc2FtZSBhZGRyZXNzIHdpdGggMk0gc2l6ZSwg cGdkL3BtZCBpcyB1bmNoYW5nZWQsDQo+ICAgIHRoZW4gc2V0IHRoZSBhIG5ldyB2YWx1ZSBmb3Ig cG1kOw0KPiA0LiBwdGUwIGlzIGxlYWtlZDsNCj4gNS4gQ1BVIG1heSBtZWV0IGV4Y2VwdGlvbiBi ZWNhdXNlIHRoZSBvbGQgcG1kIGlzIHN0aWxsIGluIFRMQiwNC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