Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp198315imm; Fri, 3 Aug 2018 01:53:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfEyg/2MNmnMx7ZJFQ0VFTHMQSIHQFlfA/O4azWxw0EUH+4NKLor8XSFneKmXlA3wupOTyn X-Received: by 2002:a62:c819:: with SMTP id z25-v6mr3392429pff.44.1533286392751; Fri, 03 Aug 2018 01:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533286392; cv=none; d=google.com; s=arc-20160816; b=P80SdmeonKkKB+YLYa2AsyDOzt4K2w0+Ucwr2bz1lDTqkAmYKmK4COX3NzRwA2w6hI 9Bewd7su3hsWlWYi/PzbTwU3j/24SiBwSVKMoQy2teqm8bvjQOj6NZDmgbA7MbfhSeSU Qj+Gh09E0ii39SxjMtM2gITs1fRCToinpsThuvk8QJg0v/6KA5C9xpPSxLrek0nDGBWf NXz+SloGv0toDA2RM8GXa634muQu1QWNbg+adiKAYO4iC+O69+MIAQcIA7yjQopzwR9s YlK50/DT1By/eN4orXCrYgiX7vsShL73c9aSapGAevOYK7wbvd34Stxk+fdFVBpEetJB q4uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:to:from:arc-authentication-results; bh=nb+QD2pYaU2cxSKb0bWzerekCq9ZKFX5B8dmQjhWgC8=; b=s5T9MJLsWAnIFbL0SIfipqlWvOlCLiEhSlsGJ2UOCGn5d1QqZGsA15ICDlh1zoH7S9 IlpfH+K7JYpSAv9fmKkwmIIDuZvy42C8JbxXSu6URRxds6+WUDWvmFZlVQiDLqr4r3wm 8qzTQIBnFbv7t2TyfnyvLgNni6FJfoZAyuDj68I/HunCeSrkmTjNH7CPZztbAR/IYtv6 hx3QFpffifty8FSRcbE/qQsR39cvwsooAAKgAMEPh46vVJ2VANoJCAFNe0P93KokS0JD joAerMX0rdXuw+ymLdO8giQE4Yj7RuIdwgKgSHDMGEjUTkda9KUymCXblS5xh1aZlDcT MoaA== 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 g12-v6si4348039pgk.636.2018.08.03.01.52.58; Fri, 03 Aug 2018 01:53:12 -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 S1730783AbeHCKqc (ORCPT + 99 others); Fri, 3 Aug 2018 06:46:32 -0400 Received: from ozlabs.org ([203.11.71.1]:53181 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728290AbeHCKqc (ORCPT ); Fri, 3 Aug 2018 06:46:32 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41hgkK0XF2z9s0R; Fri, 3 Aug 2018 18:51:04 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Alex Ghiti , 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" Subject: Re: [PATCH v5 09/11] hugetlb: Introduce generic version of huge_ptep_set_wrprotect In-Reply-To: <90bf556f-144d-24b8-d2f6-70fee4a30559@ghiti.fr> 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> Date: Fri, 03 Aug 2018 18:51:03 +1000 Message-ID: <87muu3hlzc.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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