Re: [PATCH] platform/x86: intel_pmc_core: Avoid a u32 overflow

2019-02-21 Thread Bhardwaj, Rajneesh
On 16-Feb-19 5:49 AM, Rajat Jain wrote: The register (SLP_S0_RES) at offset slp_s0_offset is a 32 bit register. The pmc_core_adjust_slp_s0_step() could overflow the u32 value while returning it after adjusting the step. Thus change to u64, this is already accounted for in debugfs attribute (tha

Re: [PATCH] platform/x86: intel_pmc_core: Avoid a u32 overflow

2019-02-21 Thread Andy Shevchenko
On Sat, Feb 16, 2019 at 2:19 AM Rajat Jain wrote: > > The register (SLP_S0_RES) at offset slp_s0_offset is a 32 bit register. > The pmc_core_adjust_slp_s0_step() could overflow the u32 value while > returning it after adjusting the step. Thus change to u64, this is > already accounted for in debug

[PATCH] platform/x86: intel_pmc_core: Avoid a u32 overflow

2019-02-15 Thread Rajat Jain
The register (SLP_S0_RES) at offset slp_s0_offset is a 32 bit register. The pmc_core_adjust_slp_s0_step() could overflow the u32 value while returning it after adjusting the step. Thus change to u64, this is already accounted for in debugfs attribute (that wants to output a 64 bit value). Signed-o