Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4326148imb; Wed, 6 Mar 2019 10:34:45 -0800 (PST) X-Google-Smtp-Source: APXvYqyn4NIJEUSN7H8PobhQMqh5oZChwXc0LwwW0t9k/4tNN422Ppd/GCCOpwN7Lj0X+nrS5aMz X-Received: by 2002:aa7:8d53:: with SMTP id s19mr8818862pfe.16.1551897285257; Wed, 06 Mar 2019 10:34:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551897285; cv=none; d=google.com; s=arc-20160816; b=sTFs36st/qEGsYwhwAG1GAdPUB8+CSxhnzs3+0dlk2jzwmPhRbIyAYYiJruh0qEU0e SYqdpZ83/jgPSt2Jbm8jaKgIp7jcAOBUP+jT0noMy8wW/CYK6eZDZymrJ8eIm5HHZKRV 32pNpnAIRET8U4qe2gpP8wT9tBfCsoIXaRwCAh3ZJ9JCI6kO2WEDpyHOR7qYIPw5oh6P BkTW0qdurrLBZ4/MYPnoHemPv7G3T4wC6mqMeTX0Yt+MIpofOKLAkh8y9JpJunXyCDcv hgvJoIkisWVF2kf2C55SA/BuzeL3hgj4B9kfoVpuDj5H64KaqoBCja7SF+/I3k/lIo3h u8Dw== 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:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=fcrIwh5FAS/p9ZnN5P/05g+4grW/DAzlhzsDUfqXcHs=; b=XH5pSR9Dr2zOBgmqOI+uOhaiw1IZC/Slsh6YOL4e5McjztyJBzRdd6w4/So8tLI3J1 d587NnF5VQYbpHYYQM0mws0ApalOmIHjcpFZYsDlXU1tLdMhjNb35z906lFMOWtk5Qhl /eByFN3S8nQNSQFlljWYu8ERcuTmjdUYTkuwv/nC1++YfYJCEkQtJVfO0IVqzy3SSwrD G3Wvs7KA2RpENeWq1Er8KPhIZPgYLZp92GCi5Mb5/JvQ4yDJ1kXuVBS7zvJo/LAvL/KQ G0HseCYqRYh1zj1k/sExuX64Nl/DmTeBJrynU74D6ZnHOQD5mMoWEswVqpXk8GmTQ5ir Uawg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=SCNXtahL; 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 q2si2143537plh.79.2019.03.06.10.34.29; Wed, 06 Mar 2019 10:34:45 -0800 (PST) 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=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=SCNXtahL; 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 S1730422AbfCFRND (ORCPT + 99 others); Wed, 6 Mar 2019 12:13:03 -0500 Received: from mail-eopbgr810109.outbound.protection.outlook.com ([40.107.81.109]:14648 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726491AbfCFRND (ORCPT ); Wed, 6 Mar 2019 12:13:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fcrIwh5FAS/p9ZnN5P/05g+4grW/DAzlhzsDUfqXcHs=; b=SCNXtahLLKEaqGDYdpx0420+UtlkuOktGW+vyeSD+fqyhg4Sv4ERsXLNSQU++8mQ0ZTPe5DKX6VXnFj8tvewBVoUzvGUNBKxGe+ey8fA/ddcq8s9QWSv+/fXWpmVakVthkpxSYVfSSys9sePXXVe3tgTcE+swKqs3wzkvPNQynI= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.174.162.17) by MWHPR2201MB1261.namprd22.prod.outlook.com (10.174.162.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Wed, 6 Mar 2019 17:12:59 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b8d4:8f0d:d6d1:4018]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b8d4:8f0d:d6d1:4018%3]) with mapi id 15.20.1665.020; Wed, 6 Mar 2019 17:12:59 +0000 From: Paul Burton To: Steven Price CC: "linux-mm@kvack.org" , Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Dave Hansen , Ingo Molnar , James Morse , =?iso-8859-1?Q?J=E9r=F4me_Glisse?= , Peter Zijlstra , Thomas Gleixner , Will Deacon , "x86@kernel.org" , "H. Peter Anvin" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Mark Rutland , "Liang, Kan" , Ralf Baechle , James Hogan , "linux-mips@vger.kernel.org" Subject: Re: [PATCH v4 03/19] mips: mm: Add p?d_large() definitions Thread-Topic: [PATCH v4 03/19] mips: mm: Add p?d_large() definitions Thread-Index: AQHU1DRlehjTtbAKgEapDADsPcSi/KX+10aA Date: Wed, 6 Mar 2019 17:12:58 +0000 Message-ID: <20190306171257.5eii6aqpfp6kvszb@pburton-laptop> References: <20190306155031.4291-1-steven.price@arm.com> <20190306155031.4291-4-steven.price@arm.com> In-Reply-To: <20190306155031.4291-4-steven.price@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR07CA0086.namprd07.prod.outlook.com (2603:10b6:a03:12b::27) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:24::17) user-agent: NeoMutt/20180716 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [67.207.99.198] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 49a42e8a-b36c-444c-b2f5-08d6a256fb2e x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:MWHPR2201MB1261; x-ms-traffictypediagnostic: MWHPR2201MB1261: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;MWHPR2201MB1261;23:c5ZQguQj1PJYjxSVVFvqQhrLxF/zVtPpatgzX?= =?iso-8859-1?Q?iIDGxc0/UiApQJGQUTc7jij7C9Z73HTCl5RMQtMGNZVkcuN4APzpNC8s8e?= =?iso-8859-1?Q?9xHcGwQT0jvaB7nNJeECofMPPTTfoc2hS2Jl4zVgmgNL4fKZSwOH5mRGv3?= =?iso-8859-1?Q?yK0iKW/Cz8pBcw3j7FMHM1hmjz3n2urVNR5eui23Ai0DvALsrknfhHhsYD?= =?iso-8859-1?Q?s0UMgI88Cy/ks3cMfqVumlpk1q/X+vYFhXX6l+eRSGzMQ6BcabY7/Vubp6?= =?iso-8859-1?Q?tKU9ik7E0VlxuMUIN4v653DZ7fULwl8wQVwRz1NdGncCpAb0tKTy1cIQdg?= =?iso-8859-1?Q?eB6oPAYf7k+BbVuAft3vftWTNFNMV11t7cgsVrP/FZ+lMirRLsz0QIo2TR?= =?iso-8859-1?Q?ikiiydMmz5bq7dJZbycmOWkMUNsSkqMwaCEVbzUnBo8CzQZgBtaNLg4CN3?= =?iso-8859-1?Q?Zr2g4dySwdo58fj4WyTTwOi+HV1pN01umSYG1B9BtrA5piyaX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ft-antispam-prvs: x-forefront-prvs: 0968D37274 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(136003)(376002)(366004)(346002)(39840400004)(396003)(189003)(199004)(25786009)(7736002)(6436002)(53936002)(106356001)(256004)(478600001)(305945005)(6916009)(3846002)(4326008)(6116002)(97736004)(316002)(58126008)(6246003)(4744005)(6512007)(9686003)(54906003)(1076003)(5660300002)(6486002)(71190400001)(71200400001)(6506007)(386003)(33716001)(102836004)(8676002)(81156014)(81166006)(229853002)(99286004)(8936002)(7416002)(68736007)(476003)(11346002)(42882007)(44832011)(486006)(2906002)(446003)(105586002)(26005)(66066001)(52116002)(76176011)(14454004)(186003);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1261;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: 8jt+BVppR0Vb816sAwTQVXEmfvJS8UX31/SIqi1LS8KwFNkItVuCccfF40InI0eRNBWGPv4swBJNshjxVoEHQDtGOhX4G0gYAROsy2nSssGrX0I/H4rvl+k04FCexW7PH+XVAZrTrYx5zp2SU2tW8MV3OqmBi9JGJDspSzC9k07uBg29cRCsH4iIECei9wRmxnl5D8gNdgcTJ8RFoI6YlHn1HQnsyfrHOZ4fUVQVt54hpD5JinFs3+D1Qmcd7f/uof7VU4fuYb0huPdKZFA8mZ/7KoxDYqqHRZ0bkvNvoupdOh51suwpeuVB7f+WzU3BbSMHuvhpHQM+QH4U7M0nZF5zXeDISYdiEnaKx410DahMzD+I4P3X/lE4krQssIstG19tQuYolI0vTraKLrnkQb6JJ9BeQ94tBl0AcetVoAs= Content-Type: text/plain; charset="iso-8859-1" Content-ID: <166FB649BE7A0943BDD8181B357816BB@namprd22.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49a42e8a-b36c-444c-b2f5-08d6a256fb2e X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2019 17:12:58.7825 (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-Transport-CrossTenantHeadersStamped: MWHPR2201MB1261 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steven, On Wed, Mar 06, 2019 at 03:50:15PM +0000, Steven Price wrote: > walk_page_range() is going to be allowed to walk page tables other than > those of user space. For this it needs to know when it has reached a > 'leaf' entry in the page tables. This information is provided by the > p?d_large() functions/macros. >=20 > For mips, we only support large pages on 64 bit. >=20 > For 64 bit if _PAGE_HUGE is defined we can simply look for it. When not > defined we can be confident that there are no large pages in existence > and fall back on the generic implementation (added in a later patch) > which returns 0. >=20 > CC: Ralf Baechle > CC: Paul Burton > CC: James Hogan > CC: linux-mips@vger.kernel.org > Signed-off-by: Steven Price Acked-by: Paul Burton Thanks, Paul