Fix path for FSI slaves
The FSI path moved for the 2nd processor.
Change-Id: Ic462dc7648a68abc7de178e2312bc2368fc06d40
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/targeting.cpp b/targeting.cpp
index e7d8b7a..635c8bb 100644
--- a/targeting.cpp
+++ b/targeting.cpp
@@ -47,7 +47,7 @@
targets.push_back(std::make_unique<Target>(0, fsiMasterPath));
//Find the the remaining P9s dynamically based on which files show up
- std::regex exp{"slave@([0-9]{2}):00", std::regex::extended};
+ std::regex exp{"hub@00/slave@([0-9]{2}):00", std::regex::extended};
for (auto& file : fs::directory_iterator(fsiSlaveBasePath))
{
@@ -59,7 +59,7 @@
if (pos == 0)
{
log<level::ERR>("Unexpected FSI slave device name found",
- entry("DEVICE_NAME=%d", path.c_str()));
+ entry("DEVICE_NAME=%s", path.c_str()));
continue;
}
diff --git a/targeting.hpp b/targeting.hpp
index 463ccc5..9719a65 100644
--- a/targeting.hpp
+++ b/targeting.hpp
@@ -12,7 +12,7 @@
constexpr auto fsiMasterDevPath =
"/sys/devices/platform/fsi-master/slave@00:00/raw";
-constexpr auto fsiSlaveBaseDir = "/sys/devices/hub@00/";
+constexpr auto fsiSlaveBaseDir = "/sys/devices/platform/fsi-master/slave@00:00/hub@00/";
/**
* Represents a specific P9 processor in the system. Used by