Re: [PATCH v6 14/22] x86/resctrl: Introduce cntr_id in mongroup for assignments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Reinette,

On 8/16/2024 4:38 PM, Reinette Chatre wrote:
Hi Babu,

On 8/6/24 3:00 PM, Babu Moger wrote:
mbm_cntr_assignable feature provides an option to the user to assign a
hardware counter to an RMID and monitor the bandwidth as long as the
counter is assigned. There can be two counters per monitor group, one
for total event and another for local event.

Introduce cntr_id to manage the assignments.

Signed-off-by: Babu Moger <babu.moger@xxxxxxx>
---
v6: New patch.
     Separated FS and arch bits.
---
  arch/x86/kernel/cpu/resctrl/internal.h | 7 +++++++
  arch/x86/kernel/cpu/resctrl/rdtgroup.c | 6 ++++++
  2 files changed, 13 insertions(+)

diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h
index af3efa35a62e..d93082b65d69 100644
--- a/arch/x86/kernel/cpu/resctrl/internal.h
+++ b/arch/x86/kernel/cpu/resctrl/internal.h
@@ -41,6 +41,11 @@
  /* Setting bit 0 in L3_QOS_EXT_CFG enables the ABMC feature. */
  #define ABMC_ENABLE_BIT            0
+/* Maximum assignable counters per resctrl group */
+#define MAX_CNTRS            2
+
+#define MON_CNTR_UNSET            U32_MAX
+
  /**
   * cpumask_any_housekeeping() - Choose any CPU in @mask, preferring those that
   *                    aren't marked nohz_full
@@ -210,12 +215,14 @@ enum rdtgrp_mode {
   * @parent:            parent rdtgrp
   * @crdtgrp_list:        child rdtgroup node list
   * @rmid:            rmid for this rdtgroup
+ * @cntr_id:            Counter ids for assignment

Could this be:
"IDs of hardware counters assigned to monitor group"


Sure. Will do.

--
- Babu Moger




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux