From patchwork Mon Apr 29 19:57:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atish Patra X-Patchwork-Id: 10922443 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 13D9B1395 for ; Mon, 29 Apr 2019 19:58:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0340F28716 for ; Mon, 29 Apr 2019 19:58:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB70E288E4; Mon, 29 Apr 2019 19:58:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9F38128716 for ; Mon, 29 Apr 2019 19:58:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IdIvlFzP+0IyvriZ0etoOJo7l2zL9apqb0hD4uGSj8U=; b=OXe+FH/PFcQhcS nIbofRSANn+XgqkyYQyh7g7ekMFSJ+KngXWUO8oReuUw0kTf5qQbd4MEOeIrXHG0B8VWWWY6xT1bN qhCBz8ggqgm3sg7muqh+UIf6IxGM/pUqgMsCP70cK3/oai1ILnRM5ZByqcZY1TobMQwlAd5sgrkb4 wHjeCYe5om1dtid72qVumHRMUjP6gnyGuUr23OSayGOlm1g9N1wb+kJnQw6O1IgY8YvC7hoMTzQfa LLfgkDUOUjEMrGBHuMNIP5c+SYrYQWkO1g4gr9tg5KISWczZSW7UglaVTAWoo9ytQmubM4TAeNXRx woOzvYKdHKZ/10ZPo05A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hLCPp-0003kS-UH; Mon, 29 Apr 2019 19:58:17 +0000 Received: from esa2.hgst.iphmx.com ([68.232.143.124]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hLCPl-0003f7-4v for linux-riscv@lists.infradead.org; Mon, 29 Apr 2019 19:58:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1556567911; x=1588103911; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=674EX0iIftC/tP47ciQ2WAq8p0Blf4MJzfJ6YEpD/54=; b=OIzZ0jTADC+c7jZh7Beuva0K7MaJCnctKoV+4Zo64dKUEU0c75s/FsQY 2biJrIODccWW5coJKzRe1b/qhb2qXSE2WpPiEoxDanx2SnwdG5wHtrdtl fZBfLN5/Qha0akA9JGh5wItcT/7VHw6egIwatUZBoU6urOQoZ5YQ7BDIy u/ipwkWVl75Y+uNbKV9ndptn/ym77XsuBl3mRc7ipyKLO0ASOclsr378D oct5xqU/Ct5uIMomST8KjYjSXO/jaO26LgGzBQ/wPFayUN2bTZlhfB3eW UCFVpbwLjf9D8RRdhADvA22MH6iqTFVMLv5xDYQpAL0ksXxt2xD7Gq6S8 g==; X-IronPort-AV: E=Sophos;i="5.60,410,1549900800"; d="scan'208";a="206289673" 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 03:58:30 +0800 IronPort-SDR: rqlqaz/ORml4liPworRb1RjeBnbbop2HmWBMkCLTVRLUX2hPAHWPZGoTfA2jlJxOlTW+fwXrQ2 fVsek5wUdOsMC1j0WCii0/R3O/IsNG85FvfBLPxqKYjC86v7FWocDEAifeLyDEkFhf1lSM+vOW cVQ0rmp+8maRoWSPAyT20xyWF8hl59GgVSH6okw66s12QKv4j9gBdDaN7tXvg352MZESFsRBOU COH8bvyZYSBaLQuPBYSHqiJzrf4+EE5YliKy4RGRV7JiwBtRudF27OgRx7pfiISvgGp+Xuu3uE HU4fDAtle2lNNyyJRGPzH4gb Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 29 Apr 2019 12:36:43 -0700 IronPort-SDR: Bt0jcdD1gm6d1cRvYD8xLZ7OUU/7ALDxMP8bBhd/gEWwUm0ZOsyuoXKhnV/Htgbmrf1RFmzG5a KdmEWUvthppVLvTA/Wn2Wuh9DNVRFYVw78A+JrkdrPf+GhM2TyGnTWr7XZAa/3XETeB0z6VmGW Nr8nyyN1U1289sezewNwGRjArVhMrC560i55lAnYqYS4xUqANmVFYO1xUWVEonuy8UVyPN4UZY SpvkvHtvLuG2nrfaNqKYpDrYj+YxmwOv76nBf9H3mxnpjf3yRS75QhSJzUH0vhLsZUtfAEVqHj T54= Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip01.wdc.com with ESMTP; 29 Apr 2019 12:58:11 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] RISC-V: Enable TLBFLUSH counters for debug kernel. Date: Mon, 29 Apr 2019 12:57:58 -0700 Message-Id: <20190429195759.18330-3-atish.patra@wdc.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190429195759.18330-1-atish.patra@wdc.com> References: <20190429195759.18330-1-atish.patra@wdc.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190429_125813_224380_34C7FA5C X-CRM114-Status: GOOD ( 10.73 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christoph Hellwig , Albert Ou , Thomas Gleixner , Kees Cook , Changbin Du , Anup Patel , Palmer Dabbelt , "maintainer:X86 ARCHITECTURE 32-BIT AND 64-BIT" , linux-mm@kvack.org, Atish Patra , Ingo Molnar , Borislav Petkov , Vlastimil Babka , Gary Guo , "H. Peter Anvin" , Andrew Morton , linux-riscv@lists.infradead.org, Luc Van Oostenryck Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The TLB flush counters under vmstat seems to be very helpful while debugging TLB flush performance in RISC-V. Add the Kconfig option only for debug kernels. Signed-off-by: Atish Patra --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index eb56c82d8aa1..c1ee876d1e7f 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -49,6 +49,7 @@ config RISCV select GENERIC_IRQ_MULTI_HANDLER select ARCH_HAS_PTE_SPECIAL select HAVE_EBPF_JIT if 64BIT + select HAVE_ARCH_DEBUG_TLBFLUSH if DEBUG_KERNEL config MMU def_bool y