Re: [PATCH V4 2/6] csky: Add count-width property for csky pmu

2019-06-03 Thread Guo Ren
Hi Mao, On Tue, Jun 4, 2019 at 10:25 AM Mao Han wrote: > > The csky pmu counter may have different io width. When the counter is > smaller then 64 bits and counter value is smaller than the old value, it > will result to a extremely large delta value. So the sampled value should > be extend to

[PATCH V4 2/6] csky: Add count-width property for csky pmu

2019-06-03 Thread Mao Han
The csky pmu counter may have different io width. When the counter is smaller then 64 bits and counter value is smaller than the old value, it will result to a extremely large delta value. So the sampled value should be extend to 64 bits to avoid this, the extension bits base on the count-width