Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp248087imm; Fri, 3 Aug 2018 02:49:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdi0LQ5px2Dg69zlBTl+WP2yOV1yOAAFPgI8Af7HsCJhxRm8snLc29TWtTV1eobgk5D3qUC X-Received: by 2002:a17:902:d710:: with SMTP id w16-v6mr2868754ply.93.1533289760962; Fri, 03 Aug 2018 02:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533289760; cv=none; d=google.com; s=arc-20160816; b=ej5QrVgyN1rA9tOtzjONDjBIJS7QKOGH3Ci3uAu9jRRS661LjIS6hcDvBPR05fNTXA 1zTtcWp9XZ4DI3OdooVuC2k/1vUc8IdIp9xWdQsVxnN0vC6W05c4XfFofV7DA2GqSvn6 q96ilwZ1L5mjRf+3XqLjykOBeit/dxSfrGmrXdiSnqlRTTSjW/fRz4tmXp47/Yzc4K3W Xhc8dKJL1hWrq0AewMn9AVuMfR0bHXxrXHL/JLC1T+xuag5WSblRzlMR0Tex5olh0Zh2 zVkQF/po5FqOLjfWZJ3LW/ay5tAgC5ME6WXXhf3kmH+EQTeBTQbogBIPjmrQeftqCSPn zOmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:arc-authentication-results; bh=zW56BNkOcz7SEZjR0s0LkFOXDyvZz9051Alteo5KMbo=; b=i5q2D21emAoyPhfRxg6CpSXQVIHK46RC7fwxwQ35M7Yfaq822pNGVsrICi2L3FAomb zp0fE8Z9prW7zhBQKTNlmd5WdaKNy5Si8mcvTISMhDHEWexYzqiK/sTd4lKtuq37vj0q mblYaP7kNwU8czMFZxYBC6kEDy59tKGFlHPcSQGBvCkyj8vWyDIJjl4Sw8iaRp9LKi8x fZZegZ8D1kInYhTiE/yzeU+RpUxTO3ltrTXuEYdLtK8yoiUSOFmAaIjY+MXm8vBTkOn8 nDSh8aKDOf1XkCuFZ0kwzKO+aJdvSUqsgfSaK2rJVQaQLWyYM5f0IrjSCmpSicdrcS4L zxrA== 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 z13-v6si4518080pgk.127.2018.08.03.02.49.05; Fri, 03 Aug 2018 02:49:20 -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 S1732466AbeHCLnr (ORCPT + 99 others); Fri, 3 Aug 2018 07:43:47 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:39543 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732090AbeHCLnq (ORCPT ); Fri, 3 Aug 2018 07:43:46 -0400 X-Originating-IP: 81.250.144.103 Received: from [10.30.1.20] (LNeuilly-657-1-5-103.w81-250.abo.wanadoo.fr [81.250.144.103]) (Authenticated sender: alex@ghiti.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 024F3240002; Fri, 3 Aug 2018 09:47:49 +0000 (UTC) Subject: Re: [PATCH v5 09/11] hugetlb: Introduce generic version of huge_ptep_set_wrprotect To: Michael Ellerman , linux-mm@kvack.org, mike.kravetz@oracle.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, tony.luck@intel.com, fenghua.yu@intel.com, ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org, jejb@parisc-linux.org, deller@gmx.de, benh@kernel.crashing.org, 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, "aneesh.kumar@linux.ibm.com" References: <20180731060155.16915-1-alex@ghiti.fr> <20180731060155.16915-10-alex@ghiti.fr> <87h8kfhg7o.fsf@concordia.ellerman.id.au> <6acb1389-6998-bafb-cf69-174fd522c04c@ghiti.fr> <90bf556f-144d-24b8-d2f6-70fee4a30559@ghiti.fr> <87muu3hlzc.fsf@concordia.ellerman.id.au> From: Alexandre Ghiti Message-ID: Date: Fri, 3 Aug 2018 11:47:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <87muu3hlzc.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael, Thanks, I will then remove those two specific implementations and we'll use the generic ones. I send a v6 asap. Thanks again, Alex On 08/03/2018 10:51 AM, Michael Ellerman wrote: > Hi Alex, > > Sorry missed your previous mail. > > Alex Ghiti writes: >> Ok, I tried every defconfig available: >> >> - for the nohash/32, I found that I could use mpc885_ads_defconfig and I >> activated HUGETLBFS. >> I removed the definition of huge_ptep_set_wrprotect from >> nohash/32/pgtable.h, add an #error in >> include/asm-generic/hugetlb.h right before the generic definition of >> huge_ptep_set_wrprotect, >> and fell onto it at compile-time: >> => I'm pretty confident then that removing the definition of >> huge_ptep_set_wrprotect does not >> break anythingin this case. > Thanks, that sounds good. > >> - regardind book3s/32, I did not find any defconfig with >> CONFIG_PPC_BOOK3S_32, CONFIG_PPC32 >> allowing to enable huge page support (ie CONFIG_SYS_SUPPORTS_HUGETLBFS) >> => Do you have a defconfig that would allow me to try the same as above ? > I think you're right, it's dead code AFAICS. > > We have: > > config PPC_BOOK3S_64 > ... > select SYS_SUPPORTS_HUGETLBFS > > config PPC_FSL_BOOK3E > ... > select SYS_SUPPORTS_HUGETLBFS if PHYS_64BIT || PPC64 > > config PPC_8xx > ... > select SYS_SUPPORTS_HUGETLBFS > > > So we can't ever enable HUGETLBFS for Book3S 32. > > Presumably the code got copied when we split the headers apart. > > So I think you can just ignore that one, and we'll delete it. > > cheers