fix: Fail device init if kernel debugging is misconfigured

Also print error to stderr

Related-to: GSD-10780

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
Brandon Yates
2025-03-07 13:45:49 +00:00
committed by Compute-Runtime-Automation
parent 75119f1887
commit c122bc51f9
7 changed files with 44 additions and 10 deletions

View File

@@ -264,6 +264,7 @@ class Drm : public DriverModel {
void cleanup() override;
bool readSysFsAsString(const std::string &relativeFilePath, std::string &readString);
MOCKABLE_VIRTUAL std::string getSysFsPciPath();
MOCKABLE_VIRTUAL std::string getSysFsPciPathBaseName();
std::unique_ptr<HwDeviceIdDrm> &getHwDeviceId() { return hwDeviceId; }
template <typename DataType>