Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp66258ybl; Mon, 27 Jan 2020 22:19:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyk1Ma1/53hHZvYQwIJOa1KJ7jZsEgm83GqJhwSvTEGo3Iue76WNNa61d7v5e2DCfOFWjF9 X-Received: by 2002:a9d:831:: with SMTP id 46mr3604135oty.295.1580192349081; Mon, 27 Jan 2020 22:19:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580192349; cv=none; d=google.com; s=arc-20160816; b=QIEIWyFctfFuf5xq9bLX93etbbWG7dRPak7nES4zEOmKNpRKsHIXiZUkrUNOS7ih74 XKxMIgC/ZUNFu1cuyG8Pp0bhrXx4tE1p6fqhb/C/0Sc3ihnI4MrU223FKdyhkPz9Ukdf 0JWIeUfK/PA1mg7Emjuj/eqhALpQAk2M7t6duc4YdunLNcHl0PDoxtueMH5aImUOFYbS SptmlgrBefYRoIueQNI1QOrhKFDiknArE+wl9S5KTZK7a+nwhD7GcjZGiJ9uJvtPtdsx SukKuLEJ8BsBM9tcuGuBQ8XZ/p4/8XBRtzQB4pCCX+uPzE+Fi9X+PPrPriC1zL+/lZD6 eS6w== 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:dkim-signature; bh=+DPt49RKHi9mO1gnM2058SFaj+Fq0ceAMy7haYJU1NM=; b=L/X79H4L0j24i17JH4i4Cprf43uLsCoJJGk0/nrKuVmJnSp0DSim8JtP+xFVAb1qfD uBziCwKyQ+KyVB5SCRvnaZh7/d/f4nFrUBgyLLRTDi+LZ9OA6uhERYBIunJ3T3Ub38K6 1/cmgvyfL4HLaOyqPFVf3ulf9aKjAhnQVmUr+uVsLQ2lCbgmT5oyZ0QjoeK49JtYiEtc vuSpnxjv4MtBDNCU74MLApJtRXN3Grtgq5OlFI+DIwI1CBRzBC62KbEZz4I5RfRaQwPK HNjVmghnYbKg9iUh0eyTnMbblyIQUKCbmnIQkCgNsFIFDgqoqryzgDYKfDeIkRICp4oi Plfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=lgZskWmS; 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 u3si4446846oif.167.2020.01.27.22.18.51; Mon, 27 Jan 2020 22:19:09 -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; dkim=pass header.i=@c-s.fr header.s=mail header.b=lgZskWmS; 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 S1725879AbgA1GRk (ORCPT + 99 others); Tue, 28 Jan 2020 01:17:40 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:56701 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbgA1GRj (ORCPT ); Tue, 28 Jan 2020 01:17:39 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 486Gcc0WVCz9v22Q; Tue, 28 Jan 2020 07:17:36 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=lgZskWmS; 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 UkHPZqpb554O; Tue, 28 Jan 2020 07:17:35 +0100 (CET) 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 486Gcb627Gz9v22N; Tue, 28 Jan 2020 07:17:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1580192255; bh=+DPt49RKHi9mO1gnM2058SFaj+Fq0ceAMy7haYJU1NM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=lgZskWmSj1VA5v5b98S9ZEmr7USU9rrof5MnKymq+rXgWJyl99vDSXQIZX47bFjeC /6k5GZov6uOPE4UU+Xi9hVhZlNd3ZPIeokTTE6E9eAr6ycFttvMUe986W6/vBNtjV8 Ykd6Kd6ETlhEILSsCQYi5j6eBswWvSBhAxwf3fzs= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 8873F8B7C2; Tue, 28 Jan 2020 07:17:36 +0100 (CET) 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 RqoGVOoiJ5M4; Tue, 28 Jan 2020 07:17:36 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id DC9498B75B; Tue, 28 Jan 2020 07:17:33 +0100 (CET) Subject: Re: [PATCH V12] mm/debug: Add tests validating architecture page table helpers To: Qian Cai , Anshuman Khandual Cc: Linux-MM , Andrew Morton , Vlastimil Babka , Greg Kroah-Hartman , Thomas Gleixner , Mike Rapoport , Jason Gunthorpe , Dan Williams , Peter Zijlstra , Michal Hocko , Mark Rutland , Mark Brown , Steven Price , Ard Biesheuvel , Masahiro Yamada , Kees Cook , Tetsuo Handa , Matthew Wilcox , Sri Krishna chowdary , Dave Hansen , Russell King - ARM Linux , Michael Ellerman , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , "David S. Miller" , Vineet Gupta , James Hogan , Paul Burton , Ralf Baechle , "Kirill A . Shutemov" , Gerald Schaefer , Ingo Molnar , linux-snps-arc@lists.infradead.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org References: <012158b7-a40e-050f-cd1b-d6ce7faf042f@arm.com> From: Christophe Leroy Message-ID: <115c187b-73ce-30b2-0694-999db1f2183b@c-s.fr> Date: Tue, 28 Jan 2020 07:17:33 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; 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 28/01/2020 à 06:48, Qian Cai a écrit : > > >> On Jan 27, 2020, at 11:58 PM, Anshuman Khandual wrote: >> >> As I had mentioned before, the test attempts to formalize page table helper semantics >> as expected from generic MM code paths and intend to catch deviations when enabled on >> a given platform. How else should we test semantics errors otherwise ? There are past >> examples of usefulness for this procedure on arm64 and on s390. I am wondering how >> else to prove the usefulness of a debug feature if these references are not enough. > > Not saying it will not be useful. As you mentioned it actually found a bug or two in the past. The problem is that there is always a cost to maintain something like this, and nobody knew how things could be broken even for the isolated code you mentioned in the future given how complicated the kernel code base is. I am not so positive that many developers would enable this debug feature and use it on a regular basis from the information you gave so far. > > On the other hand, it might just be good at maintaining this thing out of tree by yourself anyway, because if there isn’t going to be used by many developers, few people is going to contribute to this and even noticed when it is broken. What’s the point of getting this merged apart from being getting some meaningless credits? > It is 'default y' so there is no much risk that it is forgotten, at least all test suites run with 'allyes_defconfig' will trigger the test, so I think it is really a good feature. Christophe