Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2340368yba; Thu, 25 Apr 2019 14:54:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5ps30bK11V5/tTeQamL/Xt87Wm4aQ4suiTp7oMzNGwVkT/u1VasiR5wUrr8TNzJtvzENQ X-Received: by 2002:a17:902:e4:: with SMTP id a91mr41140051pla.2.1556229270473; Thu, 25 Apr 2019 14:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556229270; cv=none; d=google.com; s=arc-20160816; b=bdqFmaWy74w3wuy3AcX2jS72bqGh/NQw3FsrIU+I3wF6OPe47O7Trutr9GHNwZa8+J aqyLG5EEAGwUo23iYYGkRv6TXwc2x+caA0JPy0zyaoe4B6Z4boqMSgtElPO66Tqh/6kX aZgM0j3v9cvSnVgyrL3d7YeVeYS5nNIup+OOddjelGE+drTilDXXUrKWYpLECyQ6qqLG RtPR8HKwiR3U9vwomXWthoJf7HZl8pO5KVFE1GngykwS5YwwuZySQtaokbHF88ttLkMp b4+054T+tmhXyNqUOjnerL1rV5TT5Uwfj4H6Z4xCO8/KXOD3SUIQFpVB2xTzbSSYPjwD FgVA== 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:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=5fkf5yKfz2Ypcm+PBwoO3dAoRYLWoAtz23trESpGGa0=; b=i6/TlKTppLjjNSb0QNHQHCZEjWzfFTqOWUiHqRZqqueiA1W7iXOagvR5f9YnPBLrjm RQd01YNVUCwuI3sIzMgK+FnyFG9IxrbxhD9k4QevqNJieNC1oe8QmBsW/2Xj8dlBad5B A4nU/GALrf0PiBi++1ceRMyS6lVAzYznD9PMoZ+tVadkIeWx48zklglqs1i7VCzXa/yj QYWVM8Lt54rUwMaGEJs4CKAfERnQYSimF11GqYyGsBqgd5U1FNkIhF8Pc0tMXt/z5ei6 zDngTJBLwCg0mHtVJV1FDNpoDlOs6d0i1lxAAfye5T2zrawUk0yp1zFukIf0RHSuxmQh a/Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=YJSdfZ7K; 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 o9si8973164pgp.35.2019.04.25.14.54.13; Thu, 25 Apr 2019 14:54:30 -0700 (PDT) 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=@sifive.com header.s=google header.b=YJSdfZ7K; 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 S2387520AbfDYURk (ORCPT + 99 others); Thu, 25 Apr 2019 16:17:40 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33391 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbfDYURk (ORCPT ); Thu, 25 Apr 2019 16:17:40 -0400 Received: by mail-pf1-f195.google.com with SMTP id h5so484509pfo.0 for ; Thu, 25 Apr 2019 13:17:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=5fkf5yKfz2Ypcm+PBwoO3dAoRYLWoAtz23trESpGGa0=; b=YJSdfZ7KObgzWpPiLcJ1+7fQSIsg22kv3cqhiYUZCSpjc4Xpc8Z4yKDa7UfFm9D9kk BzeWIv/TIWmq5V9kwbvt5R9psk0uWVm+vlSpZneZhc9QWoyAz0PcCS1hd2019KdBHOSk ucVeHDk+O98AhNMR+YOx0Pt3Y30v/gC1qKEVU3dhRzvpVnNTugYV4qq2LjtR/rcRQ349 ovbq0OmTpLoKm3xM1czjkwrBMoFz3s2KrK0mm3Oyz6RbZ1EudrdToj2HdLoFWHPzOkwm JagIkg+VSEwSTO7crj45WZ6l80s4vcnyDfpnpTOcA/8d/C1gdUdGGh3STPrAVHDBFVzM 6H/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=5fkf5yKfz2Ypcm+PBwoO3dAoRYLWoAtz23trESpGGa0=; b=siQZlotDcmmg3j/Sc7/QoIa2FMacPPd8fBo34VzVZBLPceZHJqk9xeWBG+YUoFOGPF Z1E1EqoRpUp6UcniArFK07U9ujLgF3JOcYvK0xXMI7R4ygfDsnmMR3E4lXRBA3uYw6mi cTJ540h1a68pHkQszU+78etIi/grFxVywGiOF0tXai0Dk8cAGtpOTM2BHRMk66IGpITE hgsGCe+HfjTvo3q58jhrJ055ZtsDzNG2uduHwQHXinaZfWx+o7ng/YeYfzHgJVyUsZib T4oVlY+aoIWmeoZZ+kF/EBfqAhFdZCu+H1bU4BfgLpkiJ6bA4C5SWwcDlrrpp2mNNUco GhPA== X-Gm-Message-State: APjAAAUssLr0bLbZ6HwXlGxaEEul46DilpLpowH1CC1PAurvdjScpW38 mIZJPICJQNacTeVLTsPWX6C4cIPu3AY= X-Received: by 2002:a63:500f:: with SMTP id e15mr39264150pgb.198.1556223458820; Thu, 25 Apr 2019 13:17:38 -0700 (PDT) Received: from localhost ([134.134.139.92]) by smtp.gmail.com with ESMTPSA id a6sm49638589pgd.67.2019.04.25.13.17.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Apr 2019 13:17:37 -0700 (PDT) Date: Thu, 25 Apr 2019 13:17:37 -0700 (PDT) X-Google-Original-Date: Thu, 25 Apr 2019 13:13:01 PDT (-0700) Subject: Re: [1/3] x86: Update DEBUG_TLBFLUSH options description. In-Reply-To: <20190410224449.10877-2-atish.patra@wdc.com> CC: linux-kernel@vger.kernel.org, atish.patra@wdc.com, aou@eecs.berkeley.edu, anup@brainfault.org, bp@alien8.de, gary@garyguo.net, hpa@zytor.com, mingo@redhat.com, linux-riscv@lists.infradead.org, luc.vanoostenryck@gmail.com, tglx@linutronix.de, x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)) From: Palmer Dabbelt To: atish.patra@wdc.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Apr 2019 15:44:47 PDT (-0700), atish.patra@wdc.com wrote: > CONFIG_DEBUG_TLBFLUSH was added in 'commit 3df3212f9722 ("x86/tlb: add > tlb_flushall_shift knob into debugfs")' to support tlb_flushall_shift > knob. The knob was removed in 'commit e9f4e0a9fe27 ("x86/mm: Rip out > complicated, out-of-date, buggy TLB flushing")'. However, the debug > option was never removed from Kconfig. It was reused in commit > '9824cf9753ec ("mm: vmstats: tlb flush counters")' but the commit text was > never updated accordingly. > > Update the Kconfig option description as per its current usage. > > Signed-off-by: Atish Patra > --- > arch/x86/Kconfig.debug | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) > > diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug > index 15d0fbe27872..c1a48d4ffebb 100644 > --- a/arch/x86/Kconfig.debug > +++ b/arch/x86/Kconfig.debug > @@ -125,21 +125,12 @@ config DOUBLEFAULT > hair. > > config DEBUG_TLBFLUSH > - bool "Set upper limit of TLB entries to flush one-by-one" > + bool "Save tlb flush statstics to vmstat" > depends on DEBUG_KERNEL > ---help--- > > - X86-only for now. > - > - This option allows the user to tune the amount of TLB entries the > - kernel flushes one-by-one instead of doing a full TLB flush. In > - certain situations, the former is cheaper. This is controlled by the > - tlb_flushall_shift knob under /sys/kernel/debug/x86. If you set it > - to -1, the code flushes the whole TLB unconditionally. Otherwise, > - for positive values of it, the kernel will use single TLB entry > - invalidating instructions according to the following formula: > - > - flush_entries <= active_tlb_entries / 2^tlb_flushall_shift > + Add tlbflush statstics to vmstat. It is really helpful understand tlbflush > + performance and behavior. It should be enabled only for debugging purpose. > > If in doubt, say "N". Reviewed-by: Palmer Dabbelt I'm not going to take this via my tree, but I'll look into the next two.