Received: by 10.223.176.5 with SMTP id f5csp376638wra; Sat, 27 Jan 2018 01:38:28 -0800 (PST) X-Google-Smtp-Source: AH8x226FwgxsCZ/zxFOXQITebBh7RexAnqvbG4tIdTprS7uHrNX+fFFy/MHGwP7Mo27w2eZ5W5QO X-Received: by 10.98.206.1 with SMTP id y1mr21252619pfg.136.1517045908163; Sat, 27 Jan 2018 01:38:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517045908; cv=none; d=google.com; s=arc-20160816; b=lRhMh/p/8JxJ+gcu+TdkGVfmAwLiPBaREsJ+CZXr9sg1FbzE2pGLbwQyFN58eA7PnM xNbgEkO2o3Xf1CFQ30jsQztq5mpcLhP+ceDVUKh575BBz68h9iMX7OYCYIQmFhNfR9Py lWN+FHIagLfbwzCXC3P9rLLxsd58YEQ3OomiOHByrkjgmd4a5mb0lYk4w/GCJZHUa/Ih 75SvJRVkGl14aVUvfi8HCgAimTgtTPI1t0mrMvgnAkGqWf0C2uqQWuFFB3NgDDFaDoKZ ipcquxOzxWwhmpy739tL8e2xeT1XLjdJrj/5Pp4CXKuFzQXymvsX1zkgN4sIVuhqIGH1 dIcg== 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:cc:to:from:arc-authentication-results; bh=7pb8hMFWH71vQXNpX2CvmuBBnMnzWmTWgeBAyvi1pv8=; b=zUN2XAG0BjQxGexp4t4RXaTdYwO5J5tfQXzbHnQMb6VJyqGz8G6xqzgmdHyQM98PAi zNP3D0Aj1rUZOa26IuyHSuvs61ylxuPa+4DizHVhKA4eLMiGVpfbd30juwSgkPAx25Cg rxLGogE/QZpZ+OTh4Gv80tLiRJ90fEP3Y0jUOhXabEiW1FQw1NUJopZKzBGMXsNtx0PU eb22C99q0ycLbl8xi4gh5TP+Lbw8a9m9YFjKiWEKmCE5ubvYxWvNVGHSPyn90GZak8sw We51SPUsfSl/yq7z2DK3viSqre0VO9ZKD/OsdPVg4K4hhHkFTcDHrpq3kL8xXNTECHTO I9Ew== 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 a90-v6si4980488plc.592.2018.01.27.01.38.14; Sat, 27 Jan 2018 01:38:28 -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; 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 S1752578AbeA0Jhm (ORCPT + 99 others); Sat, 27 Jan 2018 04:37:42 -0500 Received: from ozlabs.org ([103.22.144.67]:53757 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461AbeA0Jhk (ORCPT ); Sat, 27 Jan 2018 04:37:40 -0500 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 3zT9fp6hsWz9sPk; Sat, 27 Jan 2018 20:37:38 +1100 (AEDT) From: Michael Ellerman To: "Aneesh Kumar K.V" , Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Scott Wood Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 2/5] powerpc/32: Fix hugepage allocation on 8xx at hint address In-Reply-To: <87shb2z22l.fsf@linux.vnet.ibm.com> References: <49148d07955d3e5f963cedf9adcfcc37c3e03ef4.1516179904.git.christophe.leroy@c-s.fr> <87shb2z22l.fsf@linux.vnet.ibm.com> Date: Sat, 27 Jan 2018 20:37:35 +1100 Message-ID: <87inbn3an4.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 "Aneesh Kumar K.V" writes: > Christophe Leroy writes: > >> On the 8xx, the page size is set in the PMD entry and applies to >> all pages of the page table pointed by the said PMD entry. >> ... >> diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c >> index a9b9083c5e49..79e1378ee303 100644 >> --- a/arch/powerpc/mm/hugetlbpage.c >> +++ b/arch/powerpc/mm/hugetlbpage.c >> @@ -553,9 +553,11 @@ unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr, >> struct hstate *hstate = hstate_file(file); >> int mmu_psize = shift_to_mmu_psize(huge_page_shift(hstate)); >> >> +#ifdef CONFIG_PPC_RADIX_MMU >> if (radix_enabled()) >> return radix__hugetlb_get_unmapped_area(file, addr, len, >> pgoff, flags); >> +#endif > > if (0) didn't remove the following radix__hugetlb_get_unmapped_area for > you? It will remove the call, but you still need at least a prototype, or an empty static inline. cheers