Re: [PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-24 Thread Vikas Shivappa
On Wed, 24 Jun 2015, Thomas Gleixner wrote: On Tue, 23 Jun 2015, Vikas Shivappa wrote: +/* + * cbm_update_msrs() - Updates all the existing IA32_L3_MASK_n MSRs + * which are one per CLOSid except IA32_L3_MASK_0 on the current package. + */ +static inline void cbm_update_msrs(void) +{ +

Re: [PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-24 Thread Thomas Gleixner
On Tue, 23 Jun 2015, Vikas Shivappa wrote: > +/* > + * cbm_update_msrs() - Updates all the existing IA32_L3_MASK_n MSRs > + * which are one per CLOSid except IA32_L3_MASK_0 on the current package. > + */ > +static inline void cbm_update_msrs(void) > +{ > + int maxid = boot_cpu_data.x86_cache_ma

[PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-23 Thread Vikas Shivappa
This patch adds hot cpu support for Intel Cache allocation. Support includes updating the cache bitmask MSRs IA32_L3_QOS_n when a new CPU package comes online. The IA32_L3_QOS_n MSRs are one per Class of service on each CPU package. The new package's MSRs are synchronized with the values of existin

Re: [PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-19 Thread Vikas Shivappa
On Tue, 16 Jun 2015, Thomas Gleixner wrote: On Tue, 16 Jun 2015, Vikas Shivappa wrote: On Tue, 16 Jun 2015, Thomas Gleixner wrote: On Fri, 12 Jun 2015, Vikas Shivappa wrote: +static inline void intel_rdt_cpu_start(int cpu) +{ + struct intel_pqr_state *state = &per_cpu(pqr_state, cpu)

Re: [PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-16 Thread Thomas Gleixner
On Tue, 16 Jun 2015, Vikas Shivappa wrote: > On Tue, 16 Jun 2015, Thomas Gleixner wrote: > > > On Fri, 12 Jun 2015, Vikas Shivappa wrote: > > > +static inline void intel_rdt_cpu_start(int cpu) > > > +{ > > > + struct intel_pqr_state *state = &per_cpu(pqr_state, cpu); > > > + > > > + state->closid

Re: [PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-16 Thread Vikas Shivappa
On Tue, 16 Jun 2015, Thomas Gleixner wrote: On Fri, 12 Jun 2015, Vikas Shivappa wrote: +static inline void intel_rdt_cpu_start(int cpu) +{ + struct intel_pqr_state *state = &per_cpu(pqr_state, cpu); + + state->closid = 0; + mutex_lock(&rdt_group_mutex); This is called from

Re: [PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-16 Thread Thomas Gleixner
On Fri, 12 Jun 2015, Vikas Shivappa wrote: > +static inline void intel_rdt_cpu_start(int cpu) > +{ > + struct intel_pqr_state *state = &per_cpu(pqr_state, cpu); > + > + state->closid = 0; > + mutex_lock(&rdt_group_mutex); This is called from CPU_STARTING, which runs on the starting cpu

[PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-12 Thread Vikas Shivappa
This patch adds hot cpu support for Intel Cache allocation. Support includes updating the cache bitmask MSRs IA32_L3_QOS_n when a new CPU package comes online. The IA32_L3_QOS_n MSRs are one per Class of service on each CPU package. The new package's MSRs are synchronized with the values of existin

[PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-04 Thread Vikas Shivappa
This patch adds hot cpu support for Intel Cache allocation. Support includes updating the cache bitmask MSRs IA32_L3_QOS_n when a new CPU package comes online. The IA32_L3_QOS_n MSRs are one per Class of service on each CPU package. The new package's MSRs are synchronized with the values of existin

[PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-03 Thread Vikas Shivappa
This patch adds hot cpu support for Intel Cache allocation. Support includes updating the cache bitmask MSRs IA32_L3_QOS_n when a new CPU package comes online. The IA32_L3_QOS_n MSRs are one per Class of service on each CPU package. The new package's MSRs are synchronized with the values of existin