Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5078948ybf; Wed, 4 Mar 2020 16:56:25 -0800 (PST) X-Google-Smtp-Source: ADFU+vtS42reDZOR+3uzNVr8v2/aP/iIc635MUVeELhdsZv7oPSeBusRW0oA5j0V5uAIRpKAQ1Ba X-Received: by 2002:a54:4181:: with SMTP id 1mr3594998oiy.61.1583369785526; Wed, 04 Mar 2020 16:56:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583369785; cv=none; d=google.com; s=arc-20160816; b=LsOK5sdJMWnd+SJToEeFKC6sFbTWAeJNm7PPOs0RUbeLoAtZ01zoz5nRNZk9AAfts2 YG7EPUu6xMJC3kSfXz7mer8l1LYPJEFpKAOmauQCNW9yp8LWPTTsdUOSi7ZranmuhYEm mDstetouNrB5A5T7/+dP5eBV2+cFeYFEBm4vd69tGFFj1oJkIpPTAp4ZeNsszEWTfNH0 gkJZ8iy/k7+PPLIAzHRbJmxb53ARWgPp5q85Q71bUpDaMrfuQeJ3dxB3Sd6r4w806Uf9 8O9ghmwUnqehJ/gITLFzczr7HuxM+f35vTZpoXQ4YvRPGjidub4hwwkYQYyjj4RDqZZ/ INtA== 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=o484NUF9cKY9S3WGJ2FjXIKk39XvaXlGwH0l+aMWIJM=; b=EX24Dh/vwKvHLZ1kT6Aei2rw2gHQkRgo0+OrKj9LCza9YmE1rl7e6YUNdU4cVjGzqQ RkD64lZ2kjP5umNlpu75rWfK5k11r8CUQaRt6nSJUdqR5fOAMMvce2OzN4ecUBHUPwbR 6y/KaR5UR9lPlWfyqiFmFlL89X6rbOqwZPX7HqZ4r934TKegzh+nyoRLq+yLmbx5a2F+ ZCozxX9t5uyOwM/Flg+vkyoHdWCRNSO5vM4OBoB6Zx8wz32huZC6SidOA+zWSgQP67b2 +GBBjkMtb4KBKqeXVv71tygs0lywIXeWOiVcEI6TleudKnWi17p9j8j/mSoWqKEUcSXr TGhQ== 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 w124si2111864oie.167.2020.03.04.16.56.13; Wed, 04 Mar 2020 16:56:25 -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 S1725882AbgCEAyz (ORCPT + 99 others); Wed, 4 Mar 2020 19:54:55 -0500 Received: from foss.arm.com ([217.140.110.172]:41510 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbgCEAyz (ORCPT ); Wed, 4 Mar 2020 19:54:55 -0500 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 D656F31B; Wed, 4 Mar 2020 16:54:54 -0800 (PST) Received: from [10.163.1.88] (unknown [10.163.1.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 60E2D3F534; Wed, 4 Mar 2020 16:54:46 -0800 (PST) Subject: Re: [PATCH V14] mm/debug: Add tests validating architecture page table helpers To: Qian Cai , Christophe Leroy Cc: Linux Memory Management List , Andrew Morton , Mike Rapoport , Vineet Gupta , Catalin Marinas , 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 , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev , linux-s390@vger.kernel.org, linux-riscv@lists.infradead.org, the arch/x86 maintainers , linux-arch@vger.kernel.org, LKML , "Aneesh Kumar K.V" References: <11F41980-97CF-411F-8120-41287DC1A382@lca.pw> From: Anshuman Khandual Message-ID: <57a3bc61-bbd5-e251-9621-7bc28f7901a1@arm.com> Date: Thu, 5 Mar 2020 06:24:44 +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: <11F41980-97CF-411F-8120-41287DC1A382@lca.pw> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/04/2020 04:59 PM, Qian Cai wrote: > > >> On Mar 4, 2020, at 1:49 AM, Christophe Leroy wrote: >> >> AFAIU, you are not taking an interrupt here. You are stuck in the pte_update(), most likely due to nested locks. Try with LOCKDEP ? > > Not exactly sure what did you mean here, but the kernel has all lockdep enabled and did not flag anything here. As the patch has been dropped from Linux next (next-20200304) perhaps in order to fold back the __pa_symbol() fix [1], so I am planning to respin the original patch once more as V15 while adding Qian's signed off by for the powerpc part. For now lets enable radix MMU ppc64 along with existing ppc32. As PPC_RADIX_MMU depends on PPC_BOOK3S_64, the following change should be good enough ? diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 497b7d0b2d7e..8d5ae14c5d4c 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -116,6 +116,7 @@ config PPC # select ARCH_32BIT_OFF_T if PPC32 select ARCH_HAS_DEBUG_VIRTUAL + select ARCH_HAS_DEBUG_VM_PGTABLE if (PPC_RADIX_MMU || PPC32) select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_HAS_ELF_RANDOMIZE select ARCH_HAS_FORTIFY_SOURCE [1] https://patchwork.kernel.org/patch/11407715/