Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp85857ybh; Fri, 6 Mar 2020 16:36:00 -0800 (PST) X-Google-Smtp-Source: ADFU+vvIPGN0lFC4JW2vDcJ7UKc1HIZ6t5UdTp+1eA97O1ge0WMToGMNSpZeme5qthh4EIv0apyR X-Received: by 2002:a05:6830:118c:: with SMTP id u12mr4479118otq.124.1583541360757; Fri, 06 Mar 2020 16:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583541360; cv=none; d=google.com; s=arc-20160816; b=BwCo8sEgBatFo2mkOl/8EpnZgNoUJE6nGlgOqy1Xh0DZY5dxV6mL7FZgGXpKMB8tUM lbc+IoA/kEvIJNnSV/LyCV2yJG0RRZQ2WemxRUG3EOXPSqwpZA7szbGoHLLNQ402lq0Q YYLXC6G5WcMx9KoPy8pNtsjb0I3fRQ6wXMqm7sat0HkU6P9ao8HIFZs9RIcpN6lxtV/s O9XJdXrMmtBSu4JdYC/MUUeN0/sqJ93sWwMjAN3JvftkJv13CA3gFXjlgz/o3dPU+yvD PlWGCOK54sixYpP26/MfZpfTH6I1d48Q9R5R4/fJPAql8vmkzl1cgqT6WHin8bur38hr u9vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=Llth3MhUyFBOi7p0WfyKRqezwCMBh50m9NEH4AtRH1U=; b=hoLDZMYoJjazjNbZZnh8Yxr0i2otXgJDke1TNFut8LfedwqDkX6itlFJHG7ywJm1uR yakEjSpDtBmgFlY78VwQ3KKGqKj7sEQR+Fr65xtXXVl01zai/+PaelkdZUp/MM/ZaIuo 3MeOk0IfYNTHdqOYgy7fE7pwAQszWoDKaqiOzzd5rt2e4jsaS5TU98EekvHKyiZEKK4k VWMGND8QSdIntmUsW6xQZPpyN/e7X4xPNwJ7pbSkUTq9vMiFevb/TEbf9yMcayk/SNfI mBl2S41PdmQh261X56PIQbLdJ+kqxWo/tYg7Z+9RaCsYrZk83I/hek7lzBLIDxfMBKdq /bJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=puvFN+Oa; 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 x189si526219oia.270.2020.03.06.16.35.46; Fri, 06 Mar 2020 16:36:00 -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=puvFN+Oa; 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 S1726676AbgCGAeX (ORCPT + 99 others); Fri, 6 Mar 2020 19:34:23 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:44357 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726498AbgCGAeX (ORCPT ); Fri, 6 Mar 2020 19:34:23 -0500 Received: by mail-qt1-f193.google.com with SMTP id h16so3084940qtr.11 for ; Fri, 06 Mar 2020 16:34:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=Llth3MhUyFBOi7p0WfyKRqezwCMBh50m9NEH4AtRH1U=; b=puvFN+Oa4Vsque2ZZFahxBROstqlUCh6OUM3IAJz/PpFxOEwXVBDL1w614Lf5OgLn5 ZzOKj9HWOalPOfhv3WAYO45FNOPCCJIbnU41PCb5bB2Jpfed/n8m6G0z5zQoTE4+Y2y9 3QJpAM3ou6c7EdgrRsfCmCg49mhT4wc3UBudKo0M3IjKzr4rlUXBE2NlETbQYMK6HNXK FaW2q4McGhTj2NCjdx0Iunur4hGozNvUDxm9RmqprWgyakpEZ4US8GkH1ltbTWFsHiOw CwD/p2KKStXpzjgcBMWXRzzvBYt1qmOtcsAsjRrYeh1r/v9yIBxJhh+Vq48gTXYafbjW E5Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=Llth3MhUyFBOi7p0WfyKRqezwCMBh50m9NEH4AtRH1U=; b=Eh+7icMw6vTuCrEcTNqZy+bq88b/21h14R8Uxqpc/jdJmhx1UATcv9UdjrJHaWcnwY H3aBJsyAPwgveldijq/RAHMFnDZtw1DdoQ3Oh3+wnb7t0lYLhWPfhCfPq2CGt+r1tw8K LWnLk8FkTaZvE9CdDfAWaHGhXdkZTfjYNHLu/P4Xt+akZywKo7x7l7T62AwySSVKQz+M VLLIUukgRg/IPl6MgDtlBQ+FMILbqsTLnCuOg7LjQKNI8IcWl9jPOVvFlQ91pfExu2ow G7613DEFcC84Dq2ymIxuYBMt9sOOGepryMd5r7fXTrV1/FtDAt7++VXjsuErehMQB92Y tYVg== X-Gm-Message-State: ANhLgQ0c1Rn9J8m57AaBJSiPWJ2loyV6rtTuzLAFDX+JRSQKAW+w+6Dt vjGUGV0D/lws6Hoh5hu6ai/VVw== X-Received: by 2002:ac8:7b94:: with SMTP id p20mr5546904qtu.122.1583541260735; Fri, 06 Mar 2020 16:34:20 -0800 (PST) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id 202sm18088610qkg.132.2020.03.06.16.34.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Mar 2020 16:34:19 -0800 (PST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH V15] mm/debug: Add tests validating architecture page table helpers Date: Fri, 6 Mar 2020 19:34:18 -0500 Message-Id: References: <61250cdc-f80b-2e50-5168-2ec67ec6f1e6@arm.com> Cc: linux-mm@kvack.org, 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@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-riscv@lists.infradead.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Christophe Leroy In-Reply-To: <61250cdc-f80b-2e50-5168-2ec67ec6f1e6@arm.com> To: Anshuman Khandual X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Mar 6, 2020, at 7:03 PM, Anshuman Khandual w= rote: >=20 > Hmm, set_pte_at() function is not preferred here for these tests. The idea= > is to avoid or atleast minimize TLB/cache flushes triggered from these sor= t > of 'static' tests. set_pte_at() is platform provided and could/might trigg= er > these flushes or some other platform specific synchronization stuff. Just Why is that important for this debugging option? > wondering is there specific reason with respect to the soft lock up proble= m > making it necessary to use set_pte_at() rather than a simple WRITE_ONCE() ?= Looks at the s390 version of set_pte_at(), it has this comment, vmaddr); /* * Certain architectures need to do special things when PTEs * within a page table are directly modified. Thus, the following * hook is made available. */ I can only guess that powerpc could be the same here.=