Re: [PATCH 2/2] x86/resctrl: Fix memory bandwidth counter width for Hygon
From: Xiaochen Shen
Date: Thu Dec 04 2025 - 21:39:09 EST
Hi Tony,
On 12/5/2025 1:11 AM, Luck, Tony wrote:
> I *think* you'd get the right results if the h/w counter is wider
> than s/w expects. You'd just need to keep polling fast enough
> (and we never adjusted the MBM polling rate from the original
> 1 HZ.)
Thank you very much for code review!
We have observed a test case where an incorrect counter width leads to random unexpected memory bandwidth readings:
https://github.com/shenxiaochen/my_documents/blob/main/memory_bandwidth_counter_width_and_overflow_issue_steps_to_reproduce.txt
The issue was resolved by applying this patch.
Best regards,
Xiaochen Shen