Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp428365ybl; Wed, 29 Jan 2020 03:11:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxM+Ac/GJL3OGHD94li638a8NFQtJ/MQcmROjPBRSOTRNDmVuG6FPSQVU/Fx46AlMqWhWIH X-Received: by 2002:a9d:6f0a:: with SMTP id n10mr20725501otq.54.1580296273781; Wed, 29 Jan 2020 03:11:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580296273; cv=none; d=google.com; s=arc-20160816; b=dLz3+u4/eSWNbFq0ACfYzU1z91gbBU/iwu5GkA0zEXV9ANyMP7wCuNFQldGL1kprBw C0RkLMZGWBHWokdkniCjWUvssXnscCmFP0dmUAWwzj1qeMuQkFeD+SqHeMAi+YWBrtHP NxNOgtqpQoxbsS+W8p/FhBQKUtzFUFT2cHCLvzcIWLAOJ60phqc+da94w+2tTNk3W/qL ZD0q8CxVir3VQzj6lbyMEl4gVb1E7u/s8vRY+9LD/dMgWjVWhA8Io5u26CItp93rVy/l K/Vl+gTCfsMikOmDUB09ns7DAiY9IpLsOoT/1oYhnb+PDDC+gyz1i+83IxMtB+q6eDo2 dy4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=Rdg0eRE4Rs/tOFVa1nKjmhUlRl2NKOMw55LDI32OSOc=; b=0gQT5ybogCttAO9x4xZ513ZkwX2m2OscVOm+jx2r61DQWhnGzZgf4zgRlkDU9VR+Ja awwa3YhqqItX3o6tDfE+YVQq/jni4rerRzZTZnfvpXUoDujHNJg3qJKPJiQlhbnUdx1O n0LzUAxuzDYIlf0x14G3FppKXF+C9qo5af/FcaZmpjeq/FVRP3+Kffk07Ruu1Tgw4tnH J8OlzN9Cj8EkjO8oJXVUwokzIY1uOiscfP69z2IFHO54IN2DTOynDNWOh85daLjTOZA3 Koh+/7TE+jYzQOpragELzB+O4dQu9SeWpsM9V0uwUUY5Ym2hCF8El50J4a33abs8gJK/ PCUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=VJ8O0yAW; 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 c10si939411otr.88.2020.01.29.03.11.00; Wed, 29 Jan 2020 03:11:13 -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=@lca.pw header.s=google header.b=VJ8O0yAW; 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 S1726157AbgA2LKA (ORCPT + 99 others); Wed, 29 Jan 2020 06:10:00 -0500 Received: from mail-qv1-f68.google.com ([209.85.219.68]:43334 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbgA2LKA (ORCPT ); Wed, 29 Jan 2020 06:10:00 -0500 Received: by mail-qv1-f68.google.com with SMTP id p2so7786206qvo.10 for ; Wed, 29 Jan 2020 03:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Rdg0eRE4Rs/tOFVa1nKjmhUlRl2NKOMw55LDI32OSOc=; b=VJ8O0yAWe2cXlzCT1mNhPcxqqFeCKhkmfpyAWfq4oYf0VFJ3BC4CHwckKloSIN0EXg v5DJKr5FfAbivbt4bmiixvzRDbgAX4zdyDY3Z7zJENEidZcJ7qqrRNPRT7y2J7WlkuAW ewW0RwL5VtfuLoAx485pn8lnifxaC15SKUc8607bIEelaurpzyi5k7hkoO7yxuV3yb4d hRnFShBFGIfDCfAPvTiAO0yxsNG/bViMXer6WnGqfUy8ySyDKJC0Q4H5WpZ3O51VPBPp 7I+z1htSl8yn6YxMeGxxXZDeFn0jXFFJZ2cfPzD73Zg0RLbASOFkEZ8dO14ZZO1X4gAp ELnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Rdg0eRE4Rs/tOFVa1nKjmhUlRl2NKOMw55LDI32OSOc=; b=fPJleOZ0GFtSIpgL0szV6wj1ovBw2VDLznu/8ze0vFyFDr3XJqMxtU5PxcZEWtPCI/ QTItbfVic6HtHpNcUODD+E3EGUzjFHnULKTVxpnU6u6hWqhHLYuSZI/haSSa1lvjurSU +cl1zNYSLbnS1tT8iATb93PJzem34RM4V5FdM3+KpXLOlsibVOXWBek+7HpkWV7FnX+P +3cZuS8bjFD8tqhViLDrNq94UjIkuiv5SZhw4JwxLlp4MgS3E7aXhE+JE856uNBx1cVs wsO2Lzo3cVatK79fDxbZAWjmKakcAc5OndLQsDYZbXdFsOfWVBp1zPh1Ep9V/8BGRBzx a0jQ== X-Gm-Message-State: APjAAAWpXXOiLQa32lNdN+ovmFOa+yEQgY6SyYgTJCkpkgf7sQ+pmzYY qdKIVOYLUpxAUFSUDYV4J8PfZg== X-Received: by 2002:a0c:9d4f:: with SMTP id n15mr22120161qvf.194.1580296199181; Wed, 29 Jan 2020 03:09:59 -0800 (PST) Received: from [192.168.1.153] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id v7sm882184qtk.89.2020.01.29.03.09.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jan 2020 03:09:58 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: [PATCH V12] mm/debug: Add tests validating architecture page table helpers From: Qian Cai In-Reply-To: <20200129103640.GA668562@arrakis.emea.arm.com> Date: Wed, 29 Jan 2020 06:09:56 -0500 Cc: Mark Rutland , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Peter Zijlstra , James Hogan , Heiko Carstens , Michal Hocko , Linux-MM , Paul Mackerras , sparclinux@vger.kernel.org, Ingo Molnar , linux-s390@vger.kernel.org, Jason Gunthorpe , Michael Ellerman , Vlastimil Babka , the arch/x86 maintainers , Russell King - ARM Linux , Matthew Wilcox , Steven Price , Tetsuo Handa , linux-arm-kernel@lists.infradead.org, linux-snps-arc@lists.infradead.org, Kees Cook , Anshuman Khandual , Masahiro Yamada , Dan Williams , Mark Brown , "Kirill A . Shutemov" , Thomas Gleixner , Gerald Schaefer , Christophe Leroy , Sri Krishna chowdary , Dave Hansen , Greg Kroah-Hartman , Ard Biesheuvel , linux-mips@vger.kernel.org, Ralf Baechle , linux-kernel@vger.kernel.org, Paul Burton , Mike Rapoport , Vineet Gupta , Martin Schwidefsky , Andrew Morton , linuxppc-dev@lists.ozlabs.org, "David S. Miller" Content-Transfer-Encoding: quoted-printable Message-Id: <50B7EFFE-1FF0-4B16-84A1-D851052B18B4@lca.pw> References: <20200128174709.GK655507@arrakis.emea.arm.com> <69091BA4-18C4-4425-A5E2-31FBE4654AF9@lca.pw> <20200129103640.GA668562@arrakis.emea.arm.com> To: Catalin Marinas X-Mailer: Apple Mail (2.3608.40.2.2.4) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 29, 2020, at 5:36 AM, Catalin Marinas = wrote: >=20 > On Tue, Jan 28, 2020 at 02:07:10PM -0500, Qian Cai wrote: >> On Jan 28, 2020, at 12:47 PM, Catalin Marinas = wrote: >>> The primary goal here is not finding regressions but having clearly >>> defined semantics of the page table accessors across architectures. = x86 >>> and arm64 are a good starting point and other architectures will be >>> enabled as they are aligned to the same semantics. >>=20 >> This still does not answer the fundamental question. If this test is >> simply inefficient to find bugs, >=20 > Who said this is inefficient (other than you)? Inefficient of finding bugs. It said only found a bug or two in its = lifetime? >=20 >> who wants to spend time to use it regularly?=20 >=20 > Arch maintainers, mm maintainers introducing new macros or assuming > certain new semantics of the existing macros. >=20 >> If this is just one off test that may get running once in a few years >> (when introducing a new arch), how does it justify the ongoing cost = to >> maintain it? >=20 > You are really missing the point. It's not only for a new arch but > changes to existing arch code. And if the arch code churn in this area > is relatively small, I'd expect a similarly small cost of maintaining > this test. >=20 > If you only turn DEBUG_VM on once every few years, don't generalise = this > to the rest of the kernel developers (as others pointed out, this test > is default y if DEBUG_VM). Quite the opposite, I am running DEBUG_VM almost daily for regression workload while I felt strongly this thing does not add any value mixing = there. So, I would suggest to decouple this away from DEBUG_VM, and clearly document that this test is not something intended for automated = regression workloads, so those people don=E2=80=99t need to waste time running = this. >=20 > Anyway, I think that's a pointless discussion, so not going to reply > further (unless you have technical content to add). >=20 > --=20 > Catalin