Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4142046yba; Mon, 29 Apr 2019 14:31:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwo21x/+l1JawFEpdSM5YBHxYMqzy6cNMjK5ltaDwmJPqOnH64jLL28TymIIjaAVmMJ1S4E X-Received: by 2002:a62:5885:: with SMTP id m127mr31924609pfb.33.1556573471550; Mon, 29 Apr 2019 14:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556573471; cv=none; d=google.com; s=arc-20160816; b=LGKsb5GzTYv8nf9tr4ullzIIapsojQqPJYfWqylE/WIpe7d0wbBL/Y9XnOwAs2O75G L48Boel5HwJ+dXEwAE5rT0TJXJfz/yO8l8XJVnusY74aN03uXHGXxcM3Hg6QGeqWjISq 1GXtvkJ7kRHAVJaqpKhMWDVnZUXqqOQQVWhwQ8bHeXGXNu5YjfpUvFT50r7qoF/160Ll k9a4ak5X/EoQDn2pkD1YMct4rw0Xz96PwzUeNeVXTUV1BFihyrqUvBMeQvG5menZ9W0b otIxH4zBTHFP0PY1XobYuE/hSFY8uaxk5ZSBf9aWecJbpEvlBZ5Z7RnnxzKLRINX8HxA AKkA== 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:ironport-sdr:ironport-sdr :dkim-signature; bh=WVLlGCQbe2LOl9ozrgg8MqoDBz+qdg2hl5qQ7dFn3n0=; b=umAs+emfajBdJdydVN6MnJ3uxYWpg1RcDSkv/gf1J5G19QdpukQdLKjrAfdA0ZsMQE mfGsTj1lyecwgPwfWlRRPwTTr1n76ohHrjR3OfBP5cAasKVIZcxExThd+Jq/thGJemZc k6UxPDRF4vPmyeC3VwSWzziAxMjyOyJEBd1UK4NO28ptWRP/VKFT3WOak5E0grJeZxBt bwBObCld/f1vmAz20RmVAoUiqlD8seCJf5IK9WGaLH+WIgGQfSb0/u1GhyCHHJx/ri+q tmEhNj6LLaiQbdwh0HwJO9wZ1mfz9pq91Dnq48025TqU8EWst86qP+2eCrd16NwS6MVQ 6DSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=U1a1c0hH; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e36si18005796pgb.286.2019.04.29.14.30.55; Mon, 29 Apr 2019 14:31:11 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=U1a1c0hH; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729453AbfD2V3p (ORCPT + 99 others); Mon, 29 Apr 2019 17:29:45 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:27510 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729370AbfD2V3o (ORCPT ); Mon, 29 Apr 2019 17:29:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1556573384; x=1588109384; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=tylJaZ3hdwgcoleztgKHgV+VyNuRMO/FYfLLBnr0sQI=; b=U1a1c0hH41/qYW6ip3h4pWSorJEnWGgvY0Pznu1QP2om8RnYcm3hTdWQ sSmBuOEpeRJF9MPOoaF4xPx3eB3TIFxkTveLXOiCql+ViR2Pl8PBPNzmm WvO60NuwUJJkyKi9ZwDzI42GDGaEK6l/L8nTNK1+So5btwkkVezhkMFNt ZUGd5Y4FPUQ0Bk63C2oo+RZt1sRKuXpU8fATLlQl2Wv3P0b8FMF1v/t4E dGvURiLRjGsoCiScBIPGJAd+7U/Dl4XG4SmEHknZONyZYyI2mUJonvQH8 1DsvhX/fQd5b/frafepbXnWYbd1Ejy7twn99AXbfcyqmdh3pVemlP0rDQ A==; X-IronPort-AV: E=Sophos;i="5.60,411,1549900800"; d="scan'208";a="112062337" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 30 Apr 2019 05:29:44 +0800 IronPort-SDR: moNGso2BXe3GzkkuzU5F5AfvPyzy1Ul7eRZWgOPQWety8v3m/4zGlStQSS2hY0og1c6W5TKGVc 9icRKPxxqqYSSnQ7mh5VJj8SjEQQ2SUx7s6yDL+OZwv9OBlRfyNNn27ojTWzjzhst5TJQXCigk KkOIWL2AmDYuHvbjo1e2IF+Dx9a+XNgg1gfsd0/dmdbzc3pOsOPcvFnADjZ4gbzXiRzVM9028O 8+tLuMSRHI1aO8pdDJe9m6yljn2wju2PRL7aPCU7xTbg3B800nkLSzp6g0wNINYmRfkmOVDZuN zX3bdcteJ0vaMmq+F6n7rKCV Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 29 Apr 2019 14:08:15 -0700 IronPort-SDR: 3DPb2PcWrl1lZn4c6cs7QX/GL1L2Mxk3qhbjtbqE5SnoEhVGLGsgYQp0Eb/dU+1MLJeRk4bK3V ++ljP17iEXBQXhrYVqDmr4IQi85GLF5yUyR9vBG9J79W2VBZ47HDcTonMJv8Q8Vp3og0a2fWCm gHe62TeuS05QO2Sgsw0CubbfQQpT6tj+1qYdgd6WTbZTEdI8miJdVoToYEPkSs41VfHPxeuTuj X4dDWhnvFJ9TTmKowheCJ/nsz7dfXizAcBxDYwXIRBfwu6nC4/zlIE8JC/pWnMdBoW4sCTmryI Mmk= Received: from c02v91rdhtd5.sdcorp.global.sandisk.com (HELO [10.111.66.167]) ([10.111.66.167]) by uls-op-cesaip02.wdc.com with ESMTP; 29 Apr 2019 14:29:44 -0700 Subject: Re: [PATCH v2 1/3] x86: Move DEBUG_TLBFLUSH option. To: Ingo Molnar Cc: "linux-kernel@vger.kernel.org" , Albert Ou , Andrew Morton , Anup Patel , Borislav Petkov , Changbin Du , Gary Guo , "H. Peter Anvin" , Ingo Molnar , Kees Cook , "linux-mm@kvack.org" , "linux-riscv@lists.infradead.org" , Luc Van Oostenryck , Palmer Dabbelt , Thomas Gleixner , Vlastimil Babka , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Christoph Hellwig References: <20190429195759.18330-1-atish.patra@wdc.com> <20190429195759.18330-2-atish.patra@wdc.com> <20190429200554.GA102486@gmail.com> From: Atish Patra Message-ID: Date: Mon, 29 Apr 2019 14:29:43 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190429200554.GA102486@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/29/19 1:06 PM, Ingo Molnar wrote: > > * Atish Patra 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. > > Please, when you mention several commits, put them into new lines to make > it readable, i.e.: > > 3df3212f9722 ("x86/tlb: add tlb_flushall_shift knob into debugfs") > > etc. > Done. >> Update the Kconfig option description as per its current usage. >> >> Take this opprtunity to make this kconfig option a common option as it >> touches the common vmstat code. Introduce another arch specific config >> HAVE_ARCH_DEBUG_TLBFLUSH that can be selected to enable this config. > > "opprtunity"? > >> +config HAVE_ARCH_DEBUG_TLBFLUSH >> + bool >> + depends on DEBUG_KERNEL >> + >> +config DEBUG_TLBFLUSH >> + bool "Save tlb flush statstics to vmstat" >> + depends on HAVE_ARCH_DEBUG_TLBFLUSH >> + help >> + >> + Add tlbflush statstics to vmstat. It is really helpful understand tlbflush >> + performance and behavior. It should be enabled only for debugging purpose >> + by individual architectures explicitly by selecting HAVE_ARCH_DEBUG_TLBFLUSH. > > "statstics"?? > > Please put a spell checker into your workflow or read what you are > writing ... > Apologies for the typos. Fixed them. Regards, Atish > Thanks, > > Ingo >