perf/x86/intel/uncore: Fix PCI BDF address of M3UPI on SKX
Subsystems (3)
PATCH 1/1 perf/x86/intel/uncore: Fix PCI BDF address of M3UPI on SKX
From: Kan Liang <[email protected]>
The counters on M3UPI Link 0 and Link 3 don't count. Writing 0 to these counters may causes system crash on some machines.
The PCI BDF addresses of M3UPI in current code are incorrect. The correct addresses should be
D18:F1 0x204D
D18:F2 0x204E
D18:F5 0x204D
--- arch/x86/events/intel/uncore_snbep.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
arch/x86/events/intel/uncore_snbep.c +6 -6
@@ -3931,16 +3931,16 @@ static const struct pci_device_id skx_uncore_pci_ids[] = { .driver_data = UNCORE_PCI_DEV_FULL_DATA(21, 5, SKX_PCI_UNCORE_M2PCIE, 3), }, {/* M3UPI0 Link 0 */ - PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x204C), - .driver_data =UNCORE_PCI_DEV_FULL_DATA (18 ,0 ,SKX_PCI_UNCORE_M3UPI ,0 ), + PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x204D), + .driver_data =UNCORE_PCI_DEV_FULL_DATA (18 ,1 ,SKX_PCI_UNCORE_M3UPI ,0 ), }, { /* M3UPI0 Link 1 */ -PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x204D ), - .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 1, SKX_PCI_UNCORE_M3UPI, 1), +PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x204E ), + .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 2, SKX_PCI_UNCORE_M3UPI, 1), }, { /* M3UPI1 Link 2 */ -PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x204C ), - .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 4, SKX_PCI_UNCORE_M3UPI, 2), +PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x204D ), + .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 5, SKX_PCI_UNCORE_M3UPI, 2), }, { /* end: all zeroes */ } };
Signature · 1 line
2.7.4
Peter Zijlstra
maintainerQuoted 10 lines · On Fri, Sep 21, 2018 at 07:07:06AM -0700, [email protected] wrote:
From: Kan Liang <[email protected]>
The counters on M3UPI Link 0 and Link 3 don't count. Writing 0 to these counters may causes system crash on some machines.
The PCI BDF addresses of M3UPI in current code are incorrect. The correct addresses should be
D18:F10x204D
D18:F20x204E
D18:F50x204D
Should this have a Fixes: tag?
Quoted 6 lines · Peter Zijlstra
Quoted 5 lines · On Fri, Sep 21, 2018 at 07:07:06AM -0700, [email protected] wrote:
From: Kan Liang <[email protected]>
The counters on M3UPI Link 0 and Link 3 don't count. Writing 0 to these counters may causes system crash on some machines.
Quoted 8 lines
Quoted 5 lines
The PCI BDF addresses of M3UPI in current code are incorrect. The correct addresses should be
D18:F10x204D
D18:F20x204E
D18:F50x204DShould this have a Fixes: tag?
Yes, sorry for missing it.
Here it is.
Thanks,
Kan
tip-bot for Kan Liang
merge botperf/x86/intel/uncore: Fix PCI BDF address of M3UPI on SKX
Commit-ID: 9d92cfeaf5215158d26d2991be7f7ff865cb98f3 Gitweb: https://git.kernel.org/tip/9d92cfeaf5215158d26d2991be7f7ff865cb98f3 Author: Kan Liang <[email protected]> AuthorDate: Fri, 21 Sep 2018 07:07:06 -0700 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 2 Oct 2018 09:38:02 +0200
perf/x86/intel/uncore: Fix PCI BDF address of M3UPI on SKX
The counters on M3UPI Link 0 and Link 3 don't count properly, and writing 0 to these counters may causes system crash on some machines.
The PCI BDF addresses of the M3UPI in the current code are incorrect.
The correct addresses should be:
D18:F1 0x204D
D18:F2 0x204E
D18:F5 0x204D
--- arch/x86/events/intel/uncore_snbep.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
arch/x86/events/intel/uncore_snbep.c +6 -6
@@ -3931,16 +3931,16 @@ static const struct pci_device_id skx_uncore_pci_ids[] = { .driver_data = UNCORE_PCI_DEV_FULL_DATA(21, 5, SKX_PCI_UNCORE_M2PCIE, 3), }, {/* M3UPI0 Link 0 */ - PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x204C), - .driver_data =UNCORE_PCI_DEV_FULL_DATA (18 ,0 ,SKX_PCI_UNCORE_M3UPI ,0 ), + PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x204D), + .driver_data =UNCORE_PCI_DEV_FULL_DATA (18 ,1 ,SKX_PCI_UNCORE_M3UPI ,0 ), }, { /* M3UPI0 Link 1 */ -PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x204D ), - .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 1, SKX_PCI_UNCORE_M3UPI, 1), +PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x204E ), + .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 2, SKX_PCI_UNCORE_M3UPI, 1), }, { /* M3UPI1 Link 2 */ -PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x204C ), - .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 4, SKX_PCI_UNCORE_M3UPI, 2), +PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x204D ), + .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 5, SKX_PCI_UNCORE_M3UPI, 2), }, { /* end: all zeroes */ } };