mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Sysman Add support for auxiliary bus for fabric Ras
Related-To: LOCI-3531 Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bbd75959d5
commit
436ec1234b
@@ -23,8 +23,20 @@ void LinuxRasSourceFabric::getNodes(std::vector<std::string> &nodes, uint32_t su
|
||||
const uint32_t maxPortId = 8;
|
||||
nodes.clear();
|
||||
|
||||
const std::string iafPathStringMfd("/sys/module/iaf/drivers/platform:iaf/");
|
||||
const std::string iafPathStringAuxillary("/sys/module/iaf/drivers/auxiliary:iaf/");
|
||||
std::string iafPathString("");
|
||||
|
||||
if (fsAccess->directoryExists(iafPathStringMfd)) {
|
||||
iafPathString = iafPathStringMfd + "iaf.";
|
||||
} else if (fsAccess->directoryExists(iafPathStringAuxillary)) {
|
||||
iafPathString = iafPathStringAuxillary + "i915.iaf.";
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
for (auto boardStrappedNumber = minBoardStrappedNumber; boardStrappedNumber <= maxBoardStrappedNumber; boardStrappedNumber++) {
|
||||
const auto iafPathString("/sys/module/iaf/drivers/platform:iaf/iaf.");
|
||||
|
||||
const auto boardStrappedString(iafPathString + std::to_string(boardStrappedNumber));
|
||||
if (!fsAccess->directoryExists(boardStrappedString)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user