Re: [PATCH] intel_pstate: Avoid pointless FRAC_BITS shifts under div_fp()

2016-04-01 Thread Philippe Longepe
I proposed also to simplify the intel_pstate_calc_busy function: core_pct = int_tofp(sample->aperf) * int_tofp(100); core_pct = div64_u64(core_pct, int_tofp(sample->mperf)); is equivalent to: core_pct = sample->aperf * int_tofp(100); core_pct = div64_u64(core_pct, sample->mperf)

Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c

2016-03-20 Thread Philippe Longepe
Hi, The wmsrl is supposed to write on the MSR corresponding to the cpu that is executing it. However, it seems that the following commit done by Joe Konno already fixed this bug on BYT. 0dd23f94251f49da99a6cbfb22418b2d757d77d6 Now, we need to figure out why the wmsrl is not executed on the