Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1561556ybb; Thu, 2 Apr 2020 03:14:32 -0700 (PDT) X-Google-Smtp-Source: APiQypLDgQdFEfGZpfHHG67ux6ZstUWOtlsNrzuC0v2DAImTZPE1Zji4+noSGRev7sndebgrq8Bx X-Received: by 2002:a4a:da1a:: with SMTP id e26mr2089523oou.19.1585822472479; Thu, 02 Apr 2020 03:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585822472; cv=none; d=google.com; s=arc-20160816; b=MmfSXNI96DI+EwF9EX1YWOFZlDn4+kyxdOWyGjacLNQ5PKSLu1J0r6raDFt0x4MmxY bkcW/3/4lPXhuhlbeju2LNSbQZFV/lKJFcwfotZZtyIB6C7vQho/QmFvaRu3q4fl+IS6 8s+aLy8reYC6z3+m6EwgWOy8GH89UyyvhSBN45jj9rpOUG+/ZE3s2muYeBR0Y4a/kN+I JnOAKXrXujTwDGzjDLph4+tYyMJZMoyKHIUCk3D6G1znf2t/HhZnicpFlrL1SOELylQI RHziv+4JO175ei3O9PjIFOlovcjbSWASJOBGA2WAJlozi1BNfOsGMH7FiDKK0LKVXyTk ow3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=86NFh4wJWvmnYUmUL8syKOtKmCGkmyy2HfZeIraNpIA=; b=tekwD7H46rvSV7uGU9LntEQOHtVThL5Cz/Pb6efG2G/VMgtZLcvgw4rDPRcAWJ8FWx tROLam5qFZOx5dKwBHOja/u07H+XhIiS658+IXBf0zEagHH9EoNiAoAS/JDrzO/2IcKJ jqU8qF42haq0m7VifOjHep1nI7n9TzCBNFciYnq3oVqKXAdXdeAUVmj33w/RNrSzubLQ Axz7ea4aEA9glFpgO2lSL2bMvzdgS8otzS8quSafogUgHZNjuz7aZFfm13bjrVOhwpiR +R2+q8sH8Mm9zb9QcNOUM1fG2X4GTzSBMxcnKR1PiZ5+oLn0N0hkCWGgzdh0cIZVkWjc B5Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=ExOezHxF; 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 z29si2421131ood.32.2020.04.02.03.14.19; Thu, 02 Apr 2020 03:14:32 -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=@c-s.fr header.s=mail header.b=ExOezHxF; 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 S2387716AbgDBKNa (ORCPT + 99 others); Thu, 2 Apr 2020 06:13:30 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:42396 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728135AbgDBKN3 (ORCPT ); Thu, 2 Apr 2020 06:13:29 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48tJmk54Rdz9txXd; Thu, 2 Apr 2020 12:13:26 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=ExOezHxF; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id Dt2fiu29ovht; Thu, 2 Apr 2020 12:13:26 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 48tJmk3zwTz9txX0; Thu, 2 Apr 2020 12:13:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1585822406; bh=86NFh4wJWvmnYUmUL8syKOtKmCGkmyy2HfZeIraNpIA=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=ExOezHxFfuR55LO6BGxToQ6PuGxldGahTpCzkULqodnrya1gZBOM1MMdHmsHvg1Mw eJqu38lGqUMOqGYCZnmsNcQi0Wveivv/wc7f3/BLA/gxBej6AD6SQl8bL++YTsI6Av WajjKvunVRhfhsf5uR2wA8JJ+4GRrYrKNICEMnLg= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 971858B925; Thu, 2 Apr 2020 12:13:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 3gzIFV04O2nb; Thu, 2 Apr 2020 12:13:27 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D60F38B8C6; Thu, 2 Apr 2020 12:13:26 +0200 (CEST) Subject: Re: [PATCH v1 39/46] powerpc/8xx: Add a function to early map kernel via huge pages From: Christophe Leroy To: Paul Mackerras , Michael Ellerman Cc: kbuild test robot , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <202003170938.Z0IuUore%lkp@intel.com> <22bc0bba-533f-548b-8eec-a3392acc8e3d@c-s.fr> Message-ID: <2e56a9e4-6176-7a19-81b3-c36d6243e776@c-s.fr> Date: Thu, 2 Apr 2020 12:13:22 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <22bc0bba-533f-548b-8eec-a3392acc8e3d@c-s.fr> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 17/03/2020 ? 15:43, Christophe Leroy a ?crit?: > > > Le 17/03/2020 ? 02:39, kbuild test robot a ?crit?: >> Hi Christophe, >> >> Thank you for the patch! Yet something to improve: >> >> [auto build test ERROR on next-20200316] >> [cannot apply to powerpc/next v5.6-rc6 v5.6-rc5 v5.6-rc4 v5.6-rc6] >> [if your patch is applied to the wrong git tree, please drop us a note >> to help >> improve the system. BTW, we also suggest to use '--base' option to >> specify the >> base tree in git format-patch, please see >> https://stackoverflow.com/a/37406982] >> >> url: >> https://github.com/0day-ci/linux/commits/Christophe-Leroy/Use-hugepages-to-map-kernel-mem-on-8xx/20200317-065610 >> >> base:??? 8548fd2f20ed19b0e8c0585b71fdfde1ae00ae3c >> config: powerpc-tqm8xx_defconfig (attached as .config) >> compiler: powerpc-linux-gcc (GCC) 9.2.0 >> reproduce: >> ???????? wget >> https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross >> -O ~/bin/make.cross >> ???????? chmod +x ~/bin/make.cross >> ???????? # save the attached .config to linux build tree >> ???????? GCC_VERSION=9.2.0 make.cross ARCH=powerpc >> >> If you fix the issue, kindly add following tag >> Reported-by: kbuild test robot >> >> All errors (new ones prefixed by >>): >> >> ??? In file included from arch/powerpc/mm/fault.c:33: >> ??? include/linux/hugetlb.h: In function 'hstate_inode': >>>> include/linux/hugetlb.h:522:9: error: implicit declaration of >>>> function 'HUGETLBFS_SB'; did you mean 'HUGETLBFS_MAGIC'? >>>> [-Werror=implicit-function-declaration] >> ????? 522 |? return HUGETLBFS_SB(i->i_sb)->hstate; >> ????????? |???????? ^~~~~~~~~~~~ >> ????????? |???????? HUGETLBFS_MAGIC >>>> include/linux/hugetlb.h:522:30: error: invalid type argument of '->' >>>> (have 'int') >> ????? 522 |? return HUGETLBFS_SB(i->i_sb)->hstate; >> ????????? |????????????????????????????? ^~ >> ??? cc1: all warnings being treated as errors > > hstate_inode() shouldn't use HUGETLBFS_SB() which CONFIG_HUGETLBFS is > not set. > > Proposed fix at https://patchwork.ozlabs.org/patch/1256108/ The fix is going in 5.7 via mm tree it seems, see https://patchwork.kernel.org/patch/11470105/ Christophe > > [...] > > >>>> include/linux/hugetlb.h:522:30: error: invalid type argument of '->' >>>> (have 'int') >> ????? 522 |? return HUGETLBFS_SB(i->i_sb)->hstate; >> ????????? |????????????????????????????? ^~ >> ??? At top level: >> ??? arch/powerpc//mm/nohash/8xx.c:73:18: error: >> '__early_map_kernel_hugepage' defined but not used >> [-Werror=unused-function] >> ?????? 73 | static int __ref __early_map_kernel_hugepage(unsigned long >> va, phys_addr_t pa, >> ????????? |????????????????? ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> ??? cc1: all warnings being treated as errors > > This patch is a preparation patch. The function is not used yet, that's > normal. Ok, it breaks bisectability. Should it be squashed with the > first user of the function ? > > Christophe