From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out28-220.mail.aliyun.com (out28-220.mail.aliyun.com [115.124.28.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15A7B3B8D7B for ; Sat, 6 Dec 2025 16:20:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.220 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765038020; cv=none; b=glgBENLMgv72OYgO4t3GgV0pqMBPk1GQhU6Nyz5QoXaWjd7NuauFxrkrIsgC8f/Llp7XnyLEPymqtPquBwnHNo6sP5MPkkg/LZ9OJaFpzucwjQkHU5b4w7u+lqczsQbJSQkDRG7kFEuOLEJ3N/t9m7K4UEWSLXbLacZZpmjIGXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765038020; c=relaxed/simple; bh=ALI5LCqT3a/bj2blWZPgDf4RFN/aw3oxSzIF7sgxHPw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YH/36Qm/cGutHIrjj2Saju1MTv3pMWP9KVGtQU9iaJHUMRkgIlBtCgcQOnkjIllruIDzFTdYnLxxDCIMtOi/y5q3B6CYb/R9ATKWIFXOVFtw1/wpRLPDRl3MV0cRx2khmHDPfD3Hi1bQimx7l7U+6fytZDOzJ1QAnM9gQc4ALv4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=open-hieco.net; spf=pass smtp.mailfrom=open-hieco.net; arc=none smtp.client-ip=115.124.28.220 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=open-hieco.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=open-hieco.net Received: from 172.18.26.4(mailfrom:shenxiaochen@open-hieco.net fp:SMTPD_---.feMe40H_1765037997 cluster:ay29) by smtp.aliyun-inc.com; Sun, 07 Dec 2025 00:19:59 +0800 Message-ID: <9ec04c8a-c42d-4395-a8b0-c2569ce97272@open-hieco.net> Date: Sun, 7 Dec 2025 00:19:57 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] x86/resctrl: Fix memory bandwidth counter width for Hygon To: Reinette Chatre , "Luck, Tony" , "bp@alien8.de" , "fenghuay@nvidia.com" Cc: "babu.moger@amd.com" , "james.morse@arm.com" , "Dave.Martin@arm.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , shenxiaochen@open-hieco.net References: <20251204023750.994143-1-shenxiaochen@open-hieco.net> <20251204023750.994143-3-shenxiaochen@open-hieco.net> <03618cf2-b8c8-4493-a991-04bced42c7dd@open-hieco.net> <99e33a39-f0ec-488b-88d9-634158aec6e1@intel.com> Content-Language: en-US From: Xiaochen Shen In-Reply-To: <99e33a39-f0ec-488b-88d9-634158aec6e1@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Reinette, On 12/6/2025 5:57 AM, Reinette Chatre wrote: >> 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 > Could this perhaps be related to issue fixed by: > 15292f1b4c55 ("x86/resctrl: Fix miscount of bandwidth event when reactivating previously unavailable RMID")? Thank you for the information. But I don't think this issue is related to commit 15292f1b4c55, which was already part of the code base when I discovered the problem. Best regards, Xiaochen Shen