Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3739922ybg; Mon, 28 Oct 2019 18:29:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzs+hk7U/ErFP25n4eHAy7XT6z5QzqcKmUnCMRpD6+w5u2XrDlUeQCYWytaGGtp+qTmEcMr X-Received: by 2002:a17:906:1dc4:: with SMTP id v4mr807563ejh.248.1572312539914; Mon, 28 Oct 2019 18:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572312539; cv=none; d=google.com; s=arc-20160816; b=mVaSXNA6vc1QQWOVgFrDHQ47mLnfL4zYoXTUWih/NK/FRUiONnhWMqre4buEwWP6ER ZEpefFEX2DM94PiLF5VnSE5zXCGh7rv4YON/McuU8AeKMvBa57w5M6fKhRqfuuCaUfeK 6fekq45T55Vmt5t1XAqvfCZ62DpWsOSNRJ+r/U7xUa55jY0zmik3+dJ4yR2/nI2jhJ75 ztTKwVvDyZz/DWUnT7cphYNgVtS5VGVgngtExZm/OwNxeqkqkJywtfEz1mdprbsKW85Y PVN4ZtT60F2YSJV6StTBXFkqoOipscZj6/UGuJzYco8ORa5eaSTbNnnxorsH2ltNtUK4 ZRfg== 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:subject:from; bh=MRJ3HcoIdI3echu2u7pcRiqhlhFiHJaHswhGtM1dlbM=; b=kYMrxyrMFc4SFWdX4wslsOyl43vc1U430cJJrO2Yy1HxhV3qP7h03NR5w5CFKdQ9Sj HIGRYs4dFO0Qh2OtnSwT+lCAEHcnBjTeb7iriP9vX7QaY0DPV2LqFUGqlPSzUpLMlkgH 0WLDcIJoCA/cGAJJz8mx98DTtjFLhdNMdOARSpqD1PIcDdR91zgmY0I9Q9xCs+N7VE5a L30MSVEBLuQZQmHV3+UUK9MWzsFtZyPhj8zkAzqbCatj2ogeWoR3KjCRIVDSP+PgvRdu yN6D6zjXZsRLcTO8kxg1J25WDDzbpxe+hxCFB2x/9DDxFFo9UFwWVrj4MqS96puA1P/y NHZw== 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 y56si8649508edd.275.2019.10.28.18.28.36; Mon, 28 Oct 2019 18:28:59 -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 S2388313AbfJ1KrR (ORCPT + 99 others); Mon, 28 Oct 2019 06:47:17 -0400 Received: from foss.arm.com ([217.140.110.172]:38454 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728227AbfJ1KrR (ORCPT ); Mon, 28 Oct 2019 06:47:17 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4C4C11F1; Mon, 28 Oct 2019 03:47:16 -0700 (PDT) Received: from [10.1.194.43] (unknown [10.1.194.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 904C83F71E; Mon, 28 Oct 2019 03:47:13 -0700 (PDT) From: Steven Price Subject: Re: [PATCH v13 12/22] mm: pagewalk: Allow walking without vma To: kbuild test robot Cc: Mark Rutland , Peter Zijlstra , Catalin Marinas , Dave Hansen , linux-mm@kvack.org, "H. Peter Anvin" , Will Deacon , "Liang, Kan" , x86@kernel.org, Ingo Molnar , Arnd Bergmann , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, kbuild-all@lists.01.org, Ard Biesheuvel , linux-kernel@vger.kernel.org, James Morse , Andrew Morton , Vineet Gupta References: <20191024093716.49420-13-steven.price@arm.com> <201910271514.G7Dilhf7%lkp@intel.com> Message-ID: <14bd3b3c-268b-4a4f-2ee7-17ba6f10f31d@arm.com> Date: Mon, 28 Oct 2019 10:46:55 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <201910271514.G7Dilhf7%lkp@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/10/2019 07:59, kbuild test robot wrote: > Hi Steven, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [also build test ERROR on v5.4-rc4 next-20191025] > [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/Steven-Price/Generic-page-walk-and-ptdump/20191027-140322 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 5a1e843c66fa6438f389045981c37e4073917641 > config: arc-defconfig (attached as .config) > compiler: arc-elf-gcc (GCC) 7.4.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=7.4.0 make.cross ARCH=arc First off, these instructions don't work! make.cross attempts to download a sparc toolchain. However, the issue is actually quite easy to see if you look more closely at patch 2: > +#define pmd_leaf(x) (pmd_val(pmd) & _PAGE_HW_SZ) That 'pmd' variable should really have been 'x'! Below diff should fix this up - I'll repost with this squashed in shortly: ----8<---- diff --git a/arch/arc/include/asm/pgtable.h b/arch/arc/include/asm/pgtable.h index 5ec798e50836..b4a0cf27ac1c 100644 --- a/arch/arc/include/asm/pgtable.h +++ b/arch/arc/include/asm/pgtable.h @@ -274,7 +274,7 @@ static inline void pmd_set(pmd_t *pmdp, pte_t *ptep) #define pmd_none(x) (!pmd_val(x)) #define pmd_bad(x) ((pmd_val(x) & ~PAGE_MASK)) #define pmd_present(x) (pmd_val(x)) -#define pmd_leaf(x) (pmd_val(pmd) & _PAGE_HW_SZ) +#define pmd_leaf(x) (pmd_val(x) & _PAGE_HW_SZ) #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0) #define pte_page(pte) pfn_to_page(pte_pfn(pte))