Broken intel uncore events on SPR
Hello all,
our testing shows that some uncore events are broken on Intel Sapphire Rapids (family 6, model 143). I have tested v6.14-rc2 and the results are the same as with v6.12.
The full list of events that don't work is at the end of this mail.
The reason is that their umasks are too big in the JSON definitions, e.g.:
{
"BriefDescription": "PCIe Completion Buffer Inserts of completions with data: Part 0",
"Counter": "0,1,2,3",
"EventCode": "0xc2",
"EventName": "UNC_IIO_COMP_BUF_INSERTS.CMPD.PART0",
"Experimental": "1",
"FCMask": "0x07",
"PerPkg": "1",
"PortMask": "0x0001",
"PublicDescription": "PCIe Completion Buffer Inserts of completions with data : Part 0 : x16 card plugged in to Lane 0/1/2/3, Or x8 card plugged in to Lane 0/1, Or x4 card is plugged in to slot 0",
"UMask": "0x7001004",
"Unit": "IIO"},
$ cat /sys/devices/uncore_iio_*/format/umask | sort -u config:8-15
Who is wrong? The JSON or sysfs?
Thanks!
Michael
Broken events:
==============
unc_iio_comp_buf_inserts.cmpd.part0
unc_iio_comp_buf_inserts.cmpd.part1
unc_iio_comp_buf_inserts.cmpd.part2
unc_iio_comp_buf_inserts.cmpd.part3
unc_iio_comp_buf_inserts.cmpd.part4
unc_iio_comp_buf_inserts.cmpd.part5
unc_iio_comp_buf_inserts.cmpd.part6
unc_iio_comp_buf_inserts.cmpd.part7
unc_iio_comp_buf_occupancy.cmpd.part0
unc_iio_comp_buf_occupancy.cmpd.part1
unc_iio_comp_buf_occupancy.cmpd.part2
unc_iio_comp_buf_occupancy.cmpd.part3
unc_iio_comp_buf_occupancy.cmpd.part4
unc_iio_comp_buf_occupancy.cmpd.part5
unc_iio_comp_buf_occupancy.cmpd.part6
unc_iio_comp_buf_occupancy.cmpd.part7
unc_iio_data_req_by_cpu.mem_read.part0
unc_iio_data_req_by_cpu.mem_read.part1
unc_iio_data_req_by_cpu.mem_read.part2
unc_iio_data_req_by_cpu.mem_read.part3
unc_iio_data_req_by_cpu.mem_read.part4
unc_iio_data_req_by_cpu.mem_read.part5
unc_iio_data_req_by_cpu.mem_read.part6
unc_iio_data_req_by_cpu.mem_read.part7
unc_iio_data_req_by_cpu.peer_read.part0
unc_iio_data_req_by_cpu.peer_read.part1
unc_iio_data_req_by_cpu.peer_read.part2
unc_iio_data_req_by_cpu.peer_read.part3
unc_iio_data_req_by_cpu.peer_read.part4
unc_iio_data_req_by_cpu.peer_read.part5
unc_iio_data_req_by_cpu.peer_read.part6
unc_iio_data_req_by_cpu.peer_read.part7
unc_iio_data_req_by_cpu.peer_write.part0
unc_iio_data_req_by_cpu.peer_write.part1
unc_iio_data_req_by_cpu.peer_write.part2
unc_iio_data_req_by_cpu.peer_write.part3
unc_iio_data_req_by_cpu.peer_write.part4
unc_iio_data_req_by_cpu.peer_write.part5
unc_iio_data_req_by_cpu.peer_write.part6
unc_iio_data_req_by_cpu.peer_write.part7
unc_iio_inbound_arb_req.data
unc_iio_inbound_arb_req.req_own
unc_iio_inbound_arb_req.wr
unc_iio_inbound_arb_won.data
unc_iio_inbound_arb_won.final_rd_wr
unc_iio_inbound_arb_won.iommu_hit
unc_iio_inbound_arb_won.iommu_req
unc_iio_inbound_arb_won.req_own
unc_iio_inbound_arb_won.wr
unc_iio_req_from_pcie_cl_cmpl.data
unc_iio_req_from_pcie_cl_cmpl.final_rd_wr
unc_iio_req_from_pcie_cl_cmpl.req_own
unc_iio_req_from_pcie_cl_cmpl.wr
unc_iio_req_from_pcie_cmpl.final_rd_wr
unc_iio_req_from_pcie_cmpl.iommu_hit
unc_iio_req_from_pcie_cmpl.iommu_req
unc_iio_req_from_pcie_cmpl.req_own
unc_iio_req_from_pcie_pass_cmpl.data
unc_iio_req_from_pcie_pass_cmpl.req_own
unc_iio_req_from_pcie_pass_cmpl.wr
unc_iio_txn_req_by_cpu.peer_write.part0
unc_iio_txn_req_by_cpu.peer_write.part1
unc_iio_txn_req_by_cpu.peer_write.part2
unc_iio_txn_req_by_cpu.peer_write.part3
unc_iio_txn_req_by_cpu.peer_write.part4
unc_iio_txn_req_by_cpu.peer_write.part5
unc_iio_txn_req_by_cpu.peer_write.part6
unc_iio_txn_req_by_cpu.peer_write.part7
Quoted 22 lines · Michael Petlan
Hello all,
our testing shows that some uncore events are broken on Intel Sapphire Rapids (family 6, model 143). I have tested v6.14-rc2 and the results are the same as with v6.12.
The full list of events that don't work is at the end of this mail.
The reason is that their umasks are too big in the JSON definitions, e.g.:
{ "BriefDescription": "PCIe Completion Buffer Inserts of completions with data: Part 0", "Counter": "0,1,2,3", "EventCode": "0xc2", "EventName": "UNC_IIO_COMP_BUF_INSERTS.CMPD.PART0", "Experimental": "1", "FCMask": "0x07", "PerPkg": "1", "PortMask": "0x0001", "PublicDescription": "PCIe Completion Buffer Inserts of completions with data : Part 0 : x16 card plugged in to Lane 0/1/2/3, Or x8 card plugged in to Lane 0/1, Or x4 card is plugged in to slot 0", "UMask": "0x7001004", "Unit": "IIO"
Quoted 2 lines
},
The issue should have been fixed with the latest update.
https://lore.kernel.org/lkml/[email protected]/
It should be available in the perf-tools-next branch.
{
"BriefDescription": "PCIe Completion Buffer Inserts of
completions with data: Part 0",
"Counter": "0,1,2,3",
"EventCode": "0xc2",
"EventName": "UNC_IIO_COMP_BUF_INSERTS.CMPD.PART0",
"Experimental": "1",
"FCMask": "0x07",
"PerPkg": "1",
"PortMask": "0x0001",
"PublicDescription": "PCIe Completion Buffer Inserts of
completions with data : Part 0 : x16 card plugged in to Lane 0/1/2/3, Or
x8 card plugged in to Lane 0/1, Or x4 card is plugged in to slot 0",
"UMask": "0x4",
"Unit": "IIO"
},Thanks,
Kan
Quoted 84 lines
$ cat /sys/devices/uncore_iio_*/format/umask | sort -u config:8-15Who is wrong? The JSON or sysfs?
Thanks!
MichaelBroken events:
==============
unc_iio_comp_buf_inserts.cmpd.part0
unc_iio_comp_buf_inserts.cmpd.part1
unc_iio_comp_buf_inserts.cmpd.part2
unc_iio_comp_buf_inserts.cmpd.part3
unc_iio_comp_buf_inserts.cmpd.part4
unc_iio_comp_buf_inserts.cmpd.part5
unc_iio_comp_buf_inserts.cmpd.part6
unc_iio_comp_buf_inserts.cmpd.part7
unc_iio_comp_buf_occupancy.cmpd.part0
unc_iio_comp_buf_occupancy.cmpd.part1
unc_iio_comp_buf_occupancy.cmpd.part2
unc_iio_comp_buf_occupancy.cmpd.part3
unc_iio_comp_buf_occupancy.cmpd.part4
unc_iio_comp_buf_occupancy.cmpd.part5
unc_iio_comp_buf_occupancy.cmpd.part6
unc_iio_comp_buf_occupancy.cmpd.part7
unc_iio_data_req_by_cpu.mem_read.part0
unc_iio_data_req_by_cpu.mem_read.part1
unc_iio_data_req_by_cpu.mem_read.part2
unc_iio_data_req_by_cpu.mem_read.part3
unc_iio_data_req_by_cpu.mem_read.part4
unc_iio_data_req_by_cpu.mem_read.part5
unc_iio_data_req_by_cpu.mem_read.part6
unc_iio_data_req_by_cpu.mem_read.part7
unc_iio_data_req_by_cpu.peer_read.part0
unc_iio_data_req_by_cpu.peer_read.part1
unc_iio_data_req_by_cpu.peer_read.part2
unc_iio_data_req_by_cpu.peer_read.part3
unc_iio_data_req_by_cpu.peer_read.part4
unc_iio_data_req_by_cpu.peer_read.part5
unc_iio_data_req_by_cpu.peer_read.part6
unc_iio_data_req_by_cpu.peer_read.part7
unc_iio_data_req_by_cpu.peer_write.part0
unc_iio_data_req_by_cpu.peer_write.part1
unc_iio_data_req_by_cpu.peer_write.part2
unc_iio_data_req_by_cpu.peer_write.part3
unc_iio_data_req_by_cpu.peer_write.part4
unc_iio_data_req_by_cpu.peer_write.part5
unc_iio_data_req_by_cpu.peer_write.part6
unc_iio_data_req_by_cpu.peer_write.part7
unc_iio_inbound_arb_req.data
unc_iio_inbound_arb_req.req_own
unc_iio_inbound_arb_req.wr
unc_iio_inbound_arb_won.data
unc_iio_inbound_arb_won.final_rd_wr
unc_iio_inbound_arb_won.iommu_hit
unc_iio_inbound_arb_won.iommu_req
unc_iio_inbound_arb_won.req_own
unc_iio_inbound_arb_won.wr
unc_iio_req_from_pcie_cl_cmpl.data
unc_iio_req_from_pcie_cl_cmpl.final_rd_wr
unc_iio_req_from_pcie_cl_cmpl.req_own
unc_iio_req_from_pcie_cl_cmpl.wr
unc_iio_req_from_pcie_cmpl.final_rd_wr
unc_iio_req_from_pcie_cmpl.iommu_hit
unc_iio_req_from_pcie_cmpl.iommu_req
unc_iio_req_from_pcie_cmpl.req_own
unc_iio_req_from_pcie_pass_cmpl.data
unc_iio_req_from_pcie_pass_cmpl.req_own
unc_iio_req_from_pcie_pass_cmpl.wr
unc_iio_txn_req_by_cpu.peer_write.part0
unc_iio_txn_req_by_cpu.peer_write.part1
unc_iio_txn_req_by_cpu.peer_write.part2
unc_iio_txn_req_by_cpu.peer_write.part3
unc_iio_txn_req_by_cpu.peer_write.part4
unc_iio_txn_req_by_cpu.peer_write.part5
unc_iio_txn_req_by_cpu.peer_write.part6
unc_iio_txn_req_by_cpu.peer_write.part7
Quoted 48 lines · Kan
Quoted 22 lines · Michael Petlan
Hello all,
our testing shows that some uncore events are broken on Intel Sapphire Rapids (family 6, model 143). I have tested v6.14-rc2 and the results are the same as with v6.12.
The full list of events that don't work is at the end of this mail.
The reason is that their umasks are too big in the JSON definitions, e.g.:
{ "BriefDescription": "PCIe Completion Buffer Inserts of completions with data: Part 0", "Counter": "0,1,2,3", "EventCode": "0xc2", "EventName": "UNC_IIO_COMP_BUF_INSERTS.CMPD.PART0", "Experimental": "1", "FCMask": "0x07", "PerPkg": "1", "PortMask": "0x0001", "PublicDescription": "PCIe Completion Buffer Inserts of completions with data : Part 0 : x16 card plugged in to Lane 0/1/2/3, Or x8 card plugged in to Lane 0/1, Or x4 card is plugged in to slot 0", "UMask": "0x7001004", "Unit": "IIO"Quoted 2 lines
},
The issue should have been fixed with the latest update.
https://lore.kernel.org/lkml/[email protected]/It should be available in the perf-tools-next branch.
{
"BriefDescription": "PCIe Completion Buffer Inserts of
completions with data: Part 0","Counter": "0,1,2,3", "EventCode": "0xc2", "EventName": "UNC_IIO_COMP_BUF_INSERTS.CMPD.PART0", "Experimental": "1", "FCMask": "0x07", "PerPkg": "1", "PortMask": "0x0001", "PublicDescription": "PCIe Completion Buffer Inserts of completions with data : Part 0 : x16 card plugged in to Lane 0/1/2/3, Or x8 card plugged in to Lane 0/1, Or x4 card is plugged in to slot 0", "UMask": "0x4", "Unit": "IIO" },
Quoted 2 lines
Thanks,
Kan
Oh, thanks Kan!
I have tested it and it fixes all the broken events. Great!
Michael