Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1318730ybz; Wed, 29 Apr 2020 19:41:11 -0700 (PDT) X-Google-Smtp-Source: APiQypL7nVJH+PrIU3L4WXY/CLFvnRsc1zZcHilSpr/mrsUneDZq3YfZxhiFEMAz6IetUkRfHYY0 X-Received: by 2002:aa7:df8a:: with SMTP id b10mr786682edy.263.1588214471460; Wed, 29 Apr 2020 19:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588214471; cv=none; d=google.com; s=arc-20160816; b=l6IAr8h0PsjQKI4yFSDOZTre6fS3/s/XpPYcKA5BGfmIJl3iaQvp/9r8cvYDKWztly cNCAdUCGEcHz/67rm30TutjHag+k4RkH+aSnMtX8NvKVH+uQMAgadrAvKt5AvQds60go eS3ooHKOhrqFg9v3kqRsM090RU4msMfRt3sxoa0804IxR9K7wrajl+3AIqKUsA11nx1P ghg+sW4tt/fyAkEnjGJWwyzJL+wtYpfZFfgeKfYBDkrzBpFbY7nDqujIYlvRuz+CHAzn aA18g6vN72r+96LHeM2lmwGzS6uUFftR8qVCrudXKAZu/BtTAaa6rNE0SEIkEngP67Qo wiRg== 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:from:references:cc:to:subject; bh=p21oCBsjdkR4RgDdOGfzUi5JuyfmyyOokh5qlykNduE=; b=WdqykuiROS9NfdjXNCG28713YwdHLxDxcSqH5pny5lD0GnJWYLfGO5NmYB3trkopxO 16d0mLhKElWOTcekIPHEtRZu2H2gxC6/PH3MjFQLXcR2s4SPXO+G2qr1yZ3wfDs4F7LV 5ucMr5xxOMisJKD6kNptuwNoJHASOqUgfwVVJH02tWeBDQPe8E26orIwWV16JjZMt4xP fXtQbaws1QKEbjf+DEwEVRzyD+Vv0WWTjHM8BakNMOiNfok5JM9soLwVts4lfVByxUWp vKxt0fzZOtOfVxily7IWr0wD7n4Ml3IP96+Vg0F4YxaeFg1OFzBaxI4JdMc5TLTG6aja wN/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x61si4545147ede.604.2020.04.29.19.40.48; Wed, 29 Apr 2020 19:41:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726669AbgD3CjQ (ORCPT + 99 others); Wed, 29 Apr 2020 22:39:16 -0400 Received: from foss.arm.com ([217.140.110.172]:47894 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726180AbgD3CjP (ORCPT ); Wed, 29 Apr 2020 22:39:15 -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 CB4261063; Wed, 29 Apr 2020 19:39:14 -0700 (PDT) Received: from [10.163.71.104] (unknown [10.163.71.104]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1F5413F68F; Wed, 29 Apr 2020 19:39:07 -0700 (PDT) Subject: Re: [LKP] Re: [mm/debug] fa6726c1e7: kernel_BUG_at_include/linux/mm.h To: Christophe Leroy , Catalin Marinas , "Chen, Rong A" Cc: Qian Cai , kernel test robot , Stephen Rothwell , Ingo Molnar , Mike Rapoport , Vineet Gupta , Will Deacon , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "Kirill A. Shutemov" , Paul Walmsley , Palmer Dabbelt , Andrew Morton , LKML , lkp@lists.01.org References: <9e9091b9-6918-d0af-dd92-3bdc0e29a4d5@arm.com> <813D7CD3-F31C-4056-92DF-D462633E9D69@lca.pw> <20200428092105.GB3868@gaia> <07ea0efd-0145-eaaf-c628-e48957154a2c@intel.com> <20200429181550.GF10651@gaia> <410b5235-bbd0-6cff-c361-c25665a854ae@c-s.fr> From: Anshuman Khandual Message-ID: <444b9424-f1e1-2587-6d46-9848478d51e2@arm.com> Date: Thu, 30 Apr 2020 08:08:39 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <410b5235-bbd0-6cff-c361-c25665a854ae@c-s.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/30/2020 12:04 AM, Christophe Leroy wrote: > > > Le 29/04/2020 à 20:15, Catalin Marinas a écrit : >> On Wed, Apr 29, 2020 at 08:52:25PM +0800, Chen, Rong A wrote: >>> On 4/29/2020 11:28 AM, Anshuman Khandual wrote: >>>> On 04/28/2020 02:51 PM, Catalin Marinas wrote: >>>>> On Tue, Apr 28, 2020 at 04:41:11AM -0400, Qian Cai wrote: >>>>>> On Apr 28, 2020, at 1:54 AM, Anshuman Khandual wrote: >>>>>>> That is true. There is a slight change in the rules, making it explicit yes >>>>>>> only when both ARCH_HAS_DEBUG_VM_PGTABLE and DEBUG_VM are enabled. >>>>>>> >>>>>>> +config DEBUG_VM_PGTABLE >>>>>>> +    bool "Debug arch page table for semantics compliance" >>>>>>> +    depends on MMU >>>>>>> +    depends on !IA64 && !ARM >>>>>>> +    depends on ARCH_HAS_DEBUG_VM_PGTABLE || EXPERT >>>>>>> +    default y if ARCH_HAS_DEBUG_VM_PGTABLE && DEBUG_VM >>>>>>> +    help >>>>>>> >>>>>>> The default is really irrelevant as the config option can be set explicitly. >>>>>> That could also explain. Since not long time ago, it was only “default >>>>>> y if DEBUG_VM”, that caused the robot saved a .config with >>>>>> DEBUG_VM_PGTABLE=y by default. >>>>>> >>>>>> Even though you changed the rule recently, it has no effect as the >>>>>> robot could “make oldconfig” from the saved config for each linux-next >>>>>> tree execution and the breakage will go on. >>>>> I'm not entirely sure that's the case. This report still points at the >>>>> old commit fa6726c1e7 which has: >>>>> >>>>> +       depends on ARCH_HAS_DEBUG_VM_PGTABLE || EXPERT >>>>> +       default n if !ARCH_HAS_DEBUG_VM_PGTABLE >>>>> +       default y if DEBUG_VM >>>>> >>>>> In -next we now have commit 647d9a0de34c and subsequently modified by >>>>> commit 0a8646638865. So hopefully with the latest -next tree we won't >>>>> see this report. >>>> Could some one from LKP test framework, please confirm if this still causes >>>> above problem on the latest linux-next by default ? >>> >>> The .config is a rand config, the problem is still exist if run "make >>> oldconfig" for the config with commit 0a8646638865. >> >> Is randconfig expected to boot? I don't think it is but I guess it >> should not trigger a BUG_ON during boot. >> >>> $ grep -e CONFIG_MMU= -e CONFIG_EXPERT= -e CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE= >>> -e CONFIG_DEBUG_VM= .config >>> CONFIG_EXPERT=y >>> CONFIG_MMU=y >>> CONFIG_DEBUG_VM=y >>> >>> should we disable DEBUG_VM_PGTABLE by default? >> >> If that's the only case where this fails in LKP, I'd rather remove the >> EXPERT dependency so that it cannot be enabled. Architectures that want >> to experiment with this feature will have to select >> ARCH_HAS_DEBUG_VM_PGTABLE explicitly. >> Dropping the EXPERT dependency here seems like the best solution even though I have always tried to avoid that (many times). > > But when something is not selectable, people won't even know it exists We will probably revisit this option later but for now it is really not an absolute necessity for the test. > > Why not try and fix the problems reported by the robots instead ? Enabling all non-enabled platforms will be an ongoing process that will require support and collaboration from their respective platforms folks. Similar collaborative approach earlier had enabled successfully test run on arc, s390, ppc32, ppc64 platforms after starting with just arm64 and x86.