diff --git a/src/cpucounters.cpp b/src/cpucounters.cpp index 3b45a179..58766e1f 100644 --- a/src/cpucounters.cpp +++ b/src/cpucounters.cpp @@ -7886,21 +7886,8 @@ void PCM::getPCICFGPMUsFromDiscovery(const unsigned int BoxType, const size_t s, const auto n_regs = uncorePMUDiscovery->getBoxNumRegs(BoxType, s, die, pos); auto makeRegister = [&pos, &numBoxes, &BoxType, &s](const uint64 rawAddr) { - #ifndef PCI_ENABLE - constexpr auto PCI_ENABLE = 0x80000000ULL; - #endif UncorePMUDiscovery::PCICFGAddress Addr; Addr.raw = rawAddr; - if ((Addr.raw & PCI_ENABLE) == 0) - { - std::cerr << "PCM Error: PCI_ENABLE bit not set in address 0x" << std::hex << Addr.raw << std::dec << "\n"; - std::cerr << "This is likely a bug in the uncore PMU discovery BIOS table. Contact your BIOS vendor.\n"; - std::cerr << "Socket: " << s << "\n"; - std::cerr << "Box type: " << BoxType << "\n"; - std::cerr << "Box position: " << pos << "/" << numBoxes << "\n"; - std::cerr << "Address: " << Addr.getStr() << "\n"; - return std::shared_ptr(); - } try { auto handle = std::make_shared(0, (uint32)Addr.fields.bus, (uint32)Addr.fields.device,