Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4064499yba; Mon, 29 Apr 2019 13:07:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLHZgUqHztsEok1hxeN7ml4/pJT8VkK/aN6JVOPodO5M/Y6VQLxZgisJiWG7yQDUXaqSaM X-Received: by 2002:a62:594b:: with SMTP id n72mr10547082pfb.186.1556568478440; Mon, 29 Apr 2019 13:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556568478; cv=none; d=google.com; s=arc-20160816; b=Ovyk7hI98A81G9s1647mLE30V3C3TDziDppCjwSRHdf27NciKi3kvdQHfLC8xboTG6 hPuDaPsELJJiIxoCMFW7XpDDB56NBwAkYwAlt5Q2o1THIybYmi5HQjTiDiU3PdQYwmeE YhVTWcwzU/A7vntwsxaR2sZdWgqppl+6+yajhKtjsPhA3Xenf1iShdzfrz6HEmn9M+UQ 6fgClCNGPYAYAqN4XtHtUihyj5J2yGZhbruMs6w/gqDD2w9ap3ZqZNHS7U1tNW5JoVEh Mp/ixsyx1CO3c0U7BiFALhd6HKu69ndAZGAct/49C1NPu9d7I1oXBoH7Wr0aM8d2/krC bcNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3bA1GjyiOqhiuVg99bZFV+UdtqoiitioJOxxTtpTJvM=; b=GzTvgTqn9GX/41ZZTWvaUsw9VGItIfcpZU3qau34hhp82LR+K95dH8SQQ1akMU2Mp4 UVILAHLbj13MSJ5+mMtOLRe5AJO/K3kWr3K1wr75Y9kOqdu38YMKvkEABz2TJwwEQo17 e+obzLX41nsZQYM/qeZIHFcGu911b09bTmooN+G/IDtrJpNSHOnUCw5fdXfqlSCETb/j Sw9DDoqpyXYPTC9zbwKBjDd/vZf62VoaFPZq9QabdmQ51oUdj5Mxsxa1UMtxNNSWFde0 OdYcUReDpME6drlTByhECT6hQ8C1qJ10IltVgJEeZVvdJPwefQ2CSZgf0UvlQq9n+r7Y 8Ixg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hSNfUmq2; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si34636615pfh.36.2019.04.29.13.07.26; Mon, 29 Apr 2019 13:07:58 -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=@gmail.com header.s=20161025 header.b=hSNfUmq2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729301AbfD2UGA (ORCPT + 99 others); Mon, 29 Apr 2019 16:06:00 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35266 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728928AbfD2UF7 (ORCPT ); Mon, 29 Apr 2019 16:05:59 -0400 Received: by mail-wm1-f65.google.com with SMTP id y197so895845wmd.0 for ; Mon, 29 Apr 2019 13:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3bA1GjyiOqhiuVg99bZFV+UdtqoiitioJOxxTtpTJvM=; b=hSNfUmq2FWt0hwGZGwRRx6ux4gGT19Z5mAXNwVuJXSN0QwcB9VBBQjDL8/gAfaXgqB PRlKgIyaEV14eqq9h9L4TUyYrd5sgX0pGXQdZc909GLHZU364d3jtzd7xrRSpqa9A11b D+Fs7K3AvlCcHWx8JTwPW3VZzB4DCl4bQlclAVlHOg4hc1KdEatZsLbKfVe8Z7vHPT9h LEKz9P0XxBAI+WUUh4KOezOQ/PkWGLnMO4oHEX0ohv3qDcS7KWvjVKizM2Xlp9Zpd7OX DZ2dAcF/7yL9BguEcP2PmPY8/G1Uz1NPA+EmHwCRlS5y9XWA4wBAg0gvQ7b2KYHtVEgX L0aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=3bA1GjyiOqhiuVg99bZFV+UdtqoiitioJOxxTtpTJvM=; b=tfRgEE5BMJ8Y5SyMhVnKdELspD2h2PM8PsDuXifD0Bo3HCLETGHSaKAjGKsO3w4h0x hpV/vZf+gfnXDga9XaLIfidMb4yIjZFNlDrCrpPlyeyZ3XbrXmdlXleTcZNPjqDGzAQA IrJfX+Qz7a3n3HCVAhYjBKQUtrvnlM+EYOK/ew0vUfqf+PNtiZpBl+Nwi7eOm3D0dxC7 kxNsSFZxPMNrdSJkGOVqxiMrH+UtyIc6JQgkupiKDQMnkqGDaA7jlpUAWxLzvXH6Chxh hYqyjkIrlR3z/qFVIDRXMQLtDdfUgptqcglLwmxWScue7OmRAp1iPC28nVO0XgcnXbFp s5qg== X-Gm-Message-State: APjAAAUnuLfMhTJZmeWu8X99ak7IllJtLQKrwy6+D4+WVAqdtX+5NNYt 0k+mZUUyTO+28alOexO2yFI= X-Received: by 2002:a1c:d7:: with SMTP id 206mr567213wma.69.1556568358168; Mon, 29 Apr 2019 13:05:58 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id c63sm762243wma.29.2019.04.29.13.05.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Apr 2019 13:05:57 -0700 (PDT) Date: Mon, 29 Apr 2019 22:05:54 +0200 From: Ingo Molnar To: Atish Patra 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 Subject: Re: [PATCH v2 1/3] x86: Move DEBUG_TLBFLUSH option. Message-ID: <20190429200554.GA102486@gmail.com> References: <20190429195759.18330-1-atish.patra@wdc.com> <20190429195759.18330-2-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190429195759.18330-2-atish.patra@wdc.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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. > 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 ... Thanks, Ingo