Re: [PATCH v3 6/9] cpu/SMT: Allow enabling partial SMT states via sysfs

2023-07-05 Thread Laurent Dufour
Le 05/07/2023 à 05:14, Zhang, Rui a écrit : On Thu, 2023-06-29 at 16:31 +0200, Laurent Dufour wrote: @@ -2580,6 +2597,17 @@ static ssize_t control_show(struct device *dev,  { const char *state = smt_states[cpu_smt_control]; +#ifdef CONFIG_HOTPLUG_SMT +   /* +    * If SMT

Re: [PATCH v3 6/9] cpu/SMT: Allow enabling partial SMT states via sysfs

2023-07-04 Thread Zhang, Rui
On Thu, 2023-06-29 at 16:31 +0200, Laurent Dufour wrote: > @@ -2580,6 +2597,17 @@ static ssize_t control_show(struct device > *dev, >  { > const char *state = smt_states[cpu_smt_control]; >   > +#ifdef CONFIG_HOTPLUG_SMT > +   /* > +    * If SMT is enabled but not all threads are en

[PATCH v3 6/9] cpu/SMT: Allow enabling partial SMT states via sysfs

2023-06-29 Thread Laurent Dufour
From: Michael Ellerman Add support to the /sys/devices/system/cpu/smt/control interface for enabling a specified number of SMT threads per core, including partial SMT states where not all threads are brought online. The current interface accepts "on" and "off", to enable either 1 or all SMT thre