Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp217788imm; Tue, 24 Jul 2018 17:35:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcezWirnKqvig5rqGwHtegmeI/MZtdFqYzWNb5OcZWxuHy6wbogUNdNxThlGZhsc8xMzdjT X-Received: by 2002:a63:115e:: with SMTP id 30-v6mr18399565pgr.53.1532478944901; Tue, 24 Jul 2018 17:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532478944; cv=none; d=google.com; s=arc-20160816; b=bUdIqnjqaUF1yqt80G1izmkOL3D/jqZ1CCSC/CSp1Z0cQNV5qZzFPMv3FYcgIW5iu7 C0/W/6tIAV2zkL80laSGw4dRaz2MRO4lqaIjgvIdBpMwl/5xDA4qIJbCjkZ91Zj4Axgq Dt2vP+cVQS1Tr/pz1pceBT2rmQ7VISAFPjAZ8Uq7+zvTylQ+En3Ws0gJtVYGWJIQkHIo cXbg/8j2P1pLm503GLiOiN9OwwymsufrSudzhjmmiRHvATUIJu4j48Nf5Sp7tu98cxiw g1SQRzGRYD+9w53+32OYqJ+PR85P87CzQtduHOd5/uCeeHhQq/04NdYp5L586gwQAvNJ cF8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=JLfXF7WZwq4rz00dCCrZNbIKvMc2gH1Et0Wf/Ylt7/M=; b=A43bIIb6ndx2nuwpef8Ll99l3mPCpkbKRn5G7wINUC0GkWq5mTu9TjI1BDerWjnd1b pkm2XnwW1YfuIdb93B3BYHlyplu6/d3V+lBAPT0+yxNKAJuyerhCgX5sHaS+E5RAxXtI DsVU9sivdAdTu0tMZaAM0krdIYXi30DgUMP8ysHQYacxHB1gHzHu6DWq4pPL/x1zp3xz UpeYNlGoHXKxtC1VFf5nrTiGl99Ra0Q5KRoUQ1fUzn9HEu3pY/MSjVHsxe8Bsy3b6slY lzACemIDjDRwhdJN0snh8oa3Hg27b9r08j+9hbUCHObAjDJLm3/4NV66vNxZa9EeeHMx K0RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=bpXmgHiD; 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 1-v6si12721756pgb.107.2018.07.24.17.35.29; Tue, 24 Jul 2018 17:35:44 -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=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=bpXmgHiD; 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 S2388532AbeGYBnh (ORCPT + 99 others); Tue, 24 Jul 2018 21:43:37 -0400 Received: from mail-by2nam01on0092.outbound.protection.outlook.com ([104.47.34.92]:19485 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388441AbeGYBng (ORCPT ); Tue, 24 Jul 2018 21:43:36 -0400 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=JLfXF7WZwq4rz00dCCrZNbIKvMc2gH1Et0Wf/Ylt7/M=; b=bpXmgHiDj0dIC/IB4SOkfOBXnGbxJ5mQLNWDDFb1p3t/b1Zc2h1woiplNv4WB9ifmK/T+ZLiEjfB9vJaWAGboQ4ZDykH6jdb72UzZzyxAhFoi3CcFItNk0EuY9sd7RicSfyFc9eqzqGUjMTZcn0qvHS3CbjXZPGP7yTxYuYR4aM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; Received: from localhost (4.16.204.77) by BN7PR08MB4932.namprd08.prod.outlook.com (2603:10b6:408:28::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.16; Wed, 25 Jul 2018 00:34:32 +0000 Date: Tue, 24 Jul 2018 17:34:29 -0700 From: Paul Burton To: Alexandre Ghiti Cc: linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, tony.luck@intel.com, fenghua.yu@intel.com, ralf@linux-mips.org, jhogan@kernel.org, jejb@parisc-linux.org, deller@gmx.de, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, ysato@users.sourceforge.jp, dalias@libc.org, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, Naoya Horiguchi , Mike Kravetz Subject: Re: [PATCH v4 00/11] hugetlb: Factorize hugetlb architecture primitives Message-ID: <20180725003428.jsklz7pj4m7lj3m4@pburton-laptop> References: <20180705110716.3919-1-alex@ghiti.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180705110716.3919-1-alex@ghiti.fr> User-Agent: NeoMutt/20180716 X-Originating-IP: [4.16.204.77] X-ClientProxiedBy: CY4PR19CA0027.namprd19.prod.outlook.com (2603:10b6:903:103::13) To BN7PR08MB4932.namprd08.prod.outlook.com (2603:10b6:408:28::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 01fb5f52-30fa-4e62-feb6-08d5f1c6641f X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:BN7PR08MB4932; X-Microsoft-Exchange-Diagnostics: 1;BN7PR08MB4932;3:0f443Ub5m/RZKwAx64ZMGzyvjvGXzt6voB1AcPTJxVgmx/zp5G1ZVKkmYQZMlDINB9p40gQbe/qeGwpPHhRzWYQxQt9JWqeI6nffXz7hZ/NkvY6zp8MpbQIVWiDP25htRjZs0i0cNTpyp3O3Tf52STrSwheBzA6kx7qx0vMuOW77+yjwpZC12Fl7Httiqi2OQh60LtXGqKhnWlTEnT7xzq4LUT6Ta/JB0QZyr01o80+RRPhKckPXHCL3zHH5Flw/;25:4AR6Pm1/pIOqUBSDID7+eqy7jILsWVBxhYb0yJE+WMFckUPVZ32d6/ovPwj4ITjwD3XKQ/naf/DLzObT6GJch7zud2ehfdzsqmqKV8UtbayV18iFeWrNLreD3P9kUQs7PW2Ed/zxgS/7s9DlNKJuG4azCymoiq9J3W3N0q4iu3mrKtvGKIXyRl1S6eBg5h2xZx8Lo2VxAoiTJu8cSRcAfhA33CCC7cxeyNl0wPyrFat+xV3ub3QyTG3wxzC/IIWl61ZL3hzycQHuyRfJ30UrPvDJ5vgOQ4VdZkeu1ZPCdl36Hu5UD7aRH6dvBWeBKeWvWtsCyE9PT8pBAiFHQRbwlQ==;31:gN93pqNAlJ55JqJ+ik7/9V1mGWcF20dzwiyhco0x/zjdRaPhKHvjAmUiXR1W02eAr8LJ0zoCaMFHhnymNMKWJDESQUAPLdcEP+OmkrFuzP67vz3plMfJgFyfmqMUBnrH8qS2zlzJGleIzzJxUIoEcQSvAQaN4ArqladycmitG9J79u/Wa5Wfp0ECgxNiQoPUMqwtwniypKCX8fkKfO0RNkO5oYGDrWjFG7NqTG/Ydd4= X-MS-TrafficTypeDiagnostic: BN7PR08MB4932: X-Microsoft-Exchange-Diagnostics: 1;BN7PR08MB4932;20:q6LKqlxqUxCOSgncPrgGUQqQlD0tbykcp0acG8So1TwSTQr5aWchmghCc3SbFcfF/hxecLtdmi2z5Gu29b97+G2YsaWVnTO8wXErzA0twVc8s3bpc5fLrtCCEoM707qWCLcWOoOul7wvgbV3+Yd90Ki15vG/t3krGgVd+44JxMbpnaNRCTkc2IOGwOmBPYa+pbcc5WmjKZgMaTWhSPqeKNxyNzSG8KFj3B/G7XEMOO6lrsNqSxdi/tB7U9yHzlBh;4:BA/ouI43UD8iBWYeccxTRCxOD3i1OA4LCiTVOvisXK6IMM4GdWA928b7LbPuWsxVK/RwKGau5ioCYQjs6jyLGEAPT7PseXZV4Tt0fYX4xkrYxFpJJi+DoJ6RkXMoSX4V0FQZttRNgNn8y98EvkQy4j76SNQuqFNl5t+35oTWb3IEkWtgHLctCu21Cko5wH3wN+j7Ta3+Y6MLQH5GnqyaWITH5L7/ww+3D2Rgz5aEP6UrS7lh44bZbEb8vOoOJtC1mMRIhq+12GI3i5deu+FAcQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(10201501046)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:BN7PR08MB4932;BCL:0;PCL:0;RULEID:;SRVR:BN7PR08MB4932; X-Forefront-PRVS: 0744CFB5E8 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6069001)(7916004)(346002)(376002)(366004)(39840400004)(136003)(396003)(189003)(199004)(7416002)(50466002)(7736002)(76506005)(105586002)(58126008)(16586007)(81166006)(478600001)(52116002)(6496006)(316002)(305945005)(47776003)(76176011)(66066001)(26005)(54906003)(33896004)(386003)(16526019)(7406005)(229853002)(8676002)(186003)(53936002)(81156014)(6246003)(106356001)(25786009)(6916009)(8936002)(33716001)(2906002)(23726003)(9686003)(1076002)(3846002)(956004)(6666003)(97736004)(68736007)(4326008)(6116002)(446003)(476003)(5660300001)(14444005)(486006)(6486002)(44832011)(11346002)(42882007);DIR:OUT;SFP:1102;SCL:1;SRVR:BN7PR08MB4932;H:localhost;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-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN7PR08MB4932;23:ykWb0C/AZifqLurPLgdiB9kTDnuxwzRZFAnTJZ0uJ?= =?us-ascii?Q?Ppms2DDzR6SGY6QeeOycT7edNq8qRtyTTNBxlYBdclA2wRN2JnkdL73rpU5N?= =?us-ascii?Q?TAab/SHx5REKpQhUuluuACB6NEbVNZekRmb+23L1AK4T3638ofA6OrYpofpY?= =?us-ascii?Q?taNm7WW41t/qLggZY+gmJybFDevPwl0H6yFxaJqOXJ/b8F2W4wRdSHM/VTkr?= =?us-ascii?Q?2JE0TwEmSHWdrNGbiMyRp+5mELxYmsksj2dfBY/10eYQEugmydKlcyYoOKka?= =?us-ascii?Q?by3QzzZhqaOBZClnhoz+PIrN/xFdFy8n7zT3Nq7AIIDqZ7oV6WmKbtMom+wb?= =?us-ascii?Q?1CXKfxBiktM6vo0fwYXWZLAt0Tl8D7Ge92k6ENeLvbsXwSiiX8hHUqcDDWAg?= =?us-ascii?Q?TOHZbUubi7XzF9hkUzjEEufJnMyVllY9J2vlRt948x4NYfOUjCejPSw9jzjW?= =?us-ascii?Q?R7b8og6C2kmCSeWHMW4tEMV6inUwZC6z0joR/Q8zFF3qHZv354HZFQE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bh2hlaVz27iF1pahCd7FloVJRhonEg52BvTX6NKSRlqOiPpJVv7vVDt5NofTlerS9FNik7/mR2dJUX5Lyxf/Ib3JSmy/feyXu3objTlG9Qll/AwTq5iepmusjKbIXDDfNA27Xms0Ac1RJaw8srApb0fNdv7j+wwV28gBVwTHY65Xn/WgDyl1XNVJkGAtiabYSrQas58I8+y/QqRJFwNZ/dlS48fj0Lc9vZ+VAs+1oAhj608yTZWtohX2Tn6 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2018 00:34:32.6488 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 01fb5f52-30fa-4e62-feb6-08d5f1c6641f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR08MB4932 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, On Thu, Jul 05, 2018 at 11:07:05AM +0000, Alexandre Ghiti wrote: > In order to reduce copy/paste of functions across architectures and then > make riscv hugetlb port (and future ports) simpler and smaller, this > patchset intends to factorize the numerous hugetlb primitives that are > defined across all the architectures. > > Except for prepare_hugepage_range, this patchset moves the versions that > are just pass-through to standard pte primitives into > asm-generic/hugetlb.h by using the same #ifdef semantic that can be > found in asm-generic/pgtable.h, i.e. __HAVE_ARCH_***. > > s390 architecture has not been tackled in this serie since it does not > use asm-generic/hugetlb.h at all. > powerpc could be factorized a bit more (cf huge_ptep_set_wrprotect). > > This patchset has been compiled on x86 only. For MIPS these look good - I don't see any issues & they pass a build test (using cavium_octeon_defconfig which enables huge pages), so: Acked-by: Paul Burton # MIPS parts Thanks, Paul