From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E203CC433E3 for ; Thu, 16 Jul 2020 17:53:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BA5682070E for ; Thu, 16 Jul 2020 17:53:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729031AbgGPRxo (ORCPT ); Thu, 16 Jul 2020 13:53:44 -0400 Received: from mga01.intel.com ([192.55.52.88]:50547 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgGPRxo (ORCPT ); Thu, 16 Jul 2020 13:53:44 -0400 IronPort-SDR: QvjqUDUIGcrJxy4bdgglUTRiRUQ62EC55pNPN17xdCyFSPJsIB9BxnhDZLrl3oegbED5k1ITj3 iXS0yaru4BrA== X-IronPort-AV: E=McAfee;i="6000,8403,9684"; a="167589774" X-IronPort-AV: E=Sophos;i="5.75,360,1589266800"; d="scan'208";a="167589774" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2020 10:53:43 -0700 IronPort-SDR: ix0C8chqeI5gwCmmhNRJJbVvQ1BfIuy3WxSy5AeLJVQVk7wRB8dlbUSrpjBVQLAyNEVGhBUH+J bH9WoLwfVtkA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,360,1589266800"; d="scan'208";a="326594901" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by orsmga007.jf.intel.com with ESMTP; 16 Jul 2020 10:53:43 -0700 From: Fenghua Yu To: "Thomas Gleixner" , "Borislav Petkov" , "Ingo Molnar" , "Tony Luck" , "Reinette Chatre" , "Ravi V Shankar" , "Kuo-Lang Tseng" , "Babu Moger" , "H Peter Anvin" Cc: "x86" , "linux-kernel" , Fenghua Yu Subject: [PATCH 0/2] x86/resctrl: Enable user to view thread or core throttling mode Date: Thu, 16 Jul 2020 10:53:12 -0700 Message-Id: <1594921994-66192-1-git-send-email-fenghua.yu@intel.com> X-Mailer: git-send-email 2.5.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series enumerates Memory Bandwidth Allocation (MBA) per-thread feature and introduces a new resctrl file "thread_throttle_mode". The file shows either "per-thread" on newer systems that implement the MBA per-thread feature or "max" on other systems that allocate maximum throttling per-core. Details about the feature can be found in the commit description and in Chapter 9 of the most recent Intel ISE available from https://software.intel.com/sites/default/files/managed/c5/15/architecture-instruction-set-extensions-programming-reference.pdf This series replaces the original MBA thread throttling patch series found at https://lore.kernel.org/lkml/cover.1592841671.git.reinette.chatre@intel.com/ This is a simplified version of the previous series that skips the min/max mode and just provides the per-core vs. per-thread indicator. Fenghua Yu (2): x86/resctrl: Enumerate per-thread MBA x86/resctrl: Enable user to view thread or core throttling mode Documentation/x86/resctrl_ui.rst | 18 ++++++++- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/kernel/cpu/cpuid-deps.c | 1 + arch/x86/kernel/cpu/resctrl/core.c | 11 ++++++ arch/x86/kernel/cpu/resctrl/internal.h | 30 ++++++++++++--- arch/x86/kernel/cpu/resctrl/rdtgroup.c | 53 +++++++++++++++++++++++++- arch/x86/kernel/cpu/scattered.c | 1 + 7 files changed, 106 insertions(+), 9 deletions(-) -- 2.19.1