Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5327292ybf; Wed, 4 Mar 2020 22:24:55 -0800 (PST) X-Google-Smtp-Source: ADFU+vtzUPmBKqIfjp2NrMcPXWtrj2v8vuCxTNoBf/FMfcA5PZsXCKQySfBqSqdTFG6yOKG42bh4 X-Received: by 2002:aca:4555:: with SMTP id s82mr1794377oia.55.1583389495696; Wed, 04 Mar 2020 22:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583389495; cv=none; d=google.com; s=arc-20160816; b=w4dKTGEkzxVrizxEllLLECPj4X8qTcr/ZLX4GSyjf5DDccxMnBQ61GJJG0sij8kbFE IjMCNb/QoQJ9uT1a4JZGd86bTPPIGdxi91V6TS6Rh3EcdEerTvV5WBCoPXstps6Lc3lh pDm0SnklOzdbgV5wq8GNB7dh7mYz20gtV17LjNVQFBKqcUO1oUdtwMS57QwATrbO6AmK /ZoGl/kNftI9nJ0ekDV66hdLNNvsjxNTbKw23GyhMiZ5xdo+dzjZgPjId1TXaUdO41oO 6EX7cEVdZPgdXhDKM99ibb5dziKJ4LxTeA5zuN2gYvJBJ1Ayeqj2vEkEp3UYdGaW17az jpQA== 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=hifOESStoVrYxgw8b8q+V8UyPOETFN66KQAIneDcu5s=; b=ji+I209fUSE+Td9dSYoNcAT45JRjeXSsC4poWRE3VPgeup9d4dObybSormWxtKlEoA egAvn/U2fEbpSpwDGU6WHvXTh6OaDZ8SwnxUzGpvJMlVNp3EYrS11BRnynGpwviY42z4 m76Ys2uryH18kqJiA+HJXObl54enfMo3B8KtU7xqbDm1SE0wROR4khpBAglo8Q07rAtb Softrwpu+6gYqsOZrkv921zm+S7OzLZNpJ9VBCaIJy2kWyxPxCrw/sW9F2bfJHcF7Bd2 G83UAlA+J9n/Lo8juDAS33W15JtG2eBAeRh7NAzrcJGoA1Fos49lq7utFxqh3rZpK7DP GcHA== 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 v25si2893452oth.274.2020.03.04.22.24.43; Wed, 04 Mar 2020 22:24:55 -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 S1725946AbgCEGXY (ORCPT + 99 others); Thu, 5 Mar 2020 01:23:24 -0500 Received: from foss.arm.com ([217.140.110.172]:43564 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbgCEGXX (ORCPT ); Thu, 5 Mar 2020 01:23:23 -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 17EB71FB; Wed, 4 Mar 2020 22:23:23 -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 4D1843F534; Wed, 4 Mar 2020 22:27:09 -0800 (PST) Subject: Re: [PATCH V14] mm/debug: Add tests validating architecture page table helpers To: Christophe Leroy , Qian Cai 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> <57a3bc61-bbd5-e251-9621-7bc28f7901a1@arm.com> From: Anshuman Khandual Message-ID: Date: Thu, 5 Mar 2020 11:53:12 +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: 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 03/05/2020 11:13 AM, Christophe Leroy wrote: > > > Le 05/03/2020 à 01:54, Anshuman Khandual a écrit : >> >> >> 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 ? > > I don't think so, even if you have the Radix MMU compiled in, hash MMU is used when Radix is not available or disabled. So until the Hash MMU problem is fixed, you cannot enable it by default. So this implies, that with DEBUG_VM given kernel compiled with Radix MMU will get stuck in soft lock up when forced to use hash MMU in cases where Radix MMU is either not available or is disabled. Hence, we cannot enable that. I will still fold the changes from Qian without enabling ppc64 Radix MMU and respin V15. These new changes dont hurt, build every where and works good on arm64 and x86 platforms. More over we know that they also fix a problem for ppc64 Radix MMU platforms. Hence unless there are some other concerns we should fold them in. > > Christophe >