Skip to content

Commit 2167f16

Browse files
Kan LiangIngo Molnar
authored andcommitted
perf/x86/intel/uncore: Remove PCIe3 unit for SNR
The PCIe Root Port driver for CPU Complex PCIe Root Ports are not loaded on SNR. The device ID for SNR PCIe3 unit is used by both uncore driver and the PCIe Root Port driver. If uncore driver is loaded, the PCIe Root Port driver never be probed. Remove the PCIe3 unit for SNR for now. The support for PCIe3 unit will be added later separately. Signed-off-by: Kan Liang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent fa694ae commit 2167f16

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

arch/x86/events/intel/uncore_snbep.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,6 @@
369369
#define SNR_M2M_PCI_PMON_BOX_CTL 0x438
370370
#define SNR_M2M_PCI_PMON_UMASK_EXT 0xff
371371

372-
/* SNR PCIE3 */
373-
#define SNR_PCIE3_PCI_PMON_CTL0 0x508
374-
#define SNR_PCIE3_PCI_PMON_CTR0 0x4e8
375-
#define SNR_PCIE3_PCI_PMON_BOX_CTL 0x4e4
376-
377372
/* SNR IMC */
378373
#define SNR_IMC_MMIO_PMON_FIXED_CTL 0x54
379374
#define SNR_IMC_MMIO_PMON_FIXED_CTR 0x38
@@ -4328,27 +4323,12 @@ static struct intel_uncore_type snr_uncore_m2m = {
43284323
.format_group = &snr_m2m_uncore_format_group,
43294324
};
43304325

4331-
static struct intel_uncore_type snr_uncore_pcie3 = {
4332-
.name = "pcie3",
4333-
.num_counters = 4,
4334-
.num_boxes = 1,
4335-
.perf_ctr_bits = 48,
4336-
.perf_ctr = SNR_PCIE3_PCI_PMON_CTR0,
4337-
.event_ctl = SNR_PCIE3_PCI_PMON_CTL0,
4338-
.event_mask = SNBEP_PMON_RAW_EVENT_MASK,
4339-
.box_ctl = SNR_PCIE3_PCI_PMON_BOX_CTL,
4340-
.ops = &ivbep_uncore_pci_ops,
4341-
.format_group = &ivbep_uncore_format_group,
4342-
};
4343-
43444326
enum {
43454327
SNR_PCI_UNCORE_M2M,
4346-
SNR_PCI_UNCORE_PCIE3,
43474328
};
43484329

43494330
static struct intel_uncore_type *snr_pci_uncores[] = {
43504331
[SNR_PCI_UNCORE_M2M] = &snr_uncore_m2m,
4351-
[SNR_PCI_UNCORE_PCIE3] = &snr_uncore_pcie3,
43524332
NULL,
43534333
};
43544334

@@ -4357,10 +4337,6 @@ static const struct pci_device_id snr_uncore_pci_ids[] = {
43574337
PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x344a),
43584338
.driver_data = UNCORE_PCI_DEV_FULL_DATA(12, 0, SNR_PCI_UNCORE_M2M, 0),
43594339
},
4360-
{ /* PCIe3 */
4361-
PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x334a),
4362-
.driver_data = UNCORE_PCI_DEV_FULL_DATA(4, 0, SNR_PCI_UNCORE_PCIE3, 0),
4363-
},
43644340
{ /* end: all zeroes */ }
43654341
};
43664342

0 commit comments

Comments
 (0)