mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
fix: change error message for GPU page fault
Change the error message for GPU page fault to match with the message from gdb output Related-To: NEO-13093 Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
741101551e
commit
ebdded1bb9
@@ -268,7 +268,7 @@ bool Drm::checkResetStatus(OsContext &osContext) {
|
||||
UNRECOVERABLE_IF(retVal != 0);
|
||||
if (checkToDisableScratchPage() && ioctlHelper->validPageFault(fault.flags)) {
|
||||
bool banned = ((status & ioctlHelper->getStatusForResetStats(true)) != 0);
|
||||
IoFunctions::fprintf(stderr, "FATAL: Unexpected page fault from GPU at 0x%llx, ctx_id: %u (%s) type: %d (%s), level: %d (%s), access: %d (%s), banned: %d, aborting.\n",
|
||||
IoFunctions::fprintf(stderr, "Segmentation fault from GPU at 0x%llx, ctx_id: %u (%s) type: %d (%s), level: %d (%s), access: %d (%s), banned: %d, aborting.\n",
|
||||
fault.addr,
|
||||
resetStats.contextId,
|
||||
EngineHelpers::engineTypeToString(osContext.getEngineType()).c_str(),
|
||||
@@ -276,7 +276,7 @@ bool Drm::checkResetStatus(OsContext &osContext) {
|
||||
fault.level, GpuPageFaultHelpers::faultLevelToString(static_cast<FaultLevel>(fault.level)).c_str(),
|
||||
fault.access, GpuPageFaultHelpers::faultAccessToString(static_cast<FaultAccess>(fault.access)).c_str(),
|
||||
banned);
|
||||
IoFunctions::fprintf(stdout, "FATAL: Unexpected page fault from GPU at 0x%llx, ctx_id: %u (%s) type: %d (%s), level: %d (%s), access: %d (%s), banned: %d, aborting.\n",
|
||||
IoFunctions::fprintf(stdout, "Segmentation fault from GPU at 0x%llx, ctx_id: %u (%s) type: %d (%s), level: %d (%s), access: %d (%s), banned: %d, aborting.\n",
|
||||
fault.addr,
|
||||
resetStats.contextId,
|
||||
EngineHelpers::engineTypeToString(osContext.getEngineType()).c_str(),
|
||||
|
||||
Reference in New Issue
Block a user