mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix: do not print bitmask prior quering stopped threads
- bitmask is empty before querying attention bits Related-To: GSD-11411 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2e53cf0e20
commit
73f401a372
@@ -1133,6 +1133,8 @@ int DebugSessionLinuxi915::threadControl(const std::vector<EuThread::ThreadId> &
|
||||
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
bool shouldPrintBitmask = command == PRELIM_I915_DEBUG_EU_THREADS_CMD_INTERRUPT ||
|
||||
command == PRELIM_I915_DEBUG_EU_THREADS_CMD_RESUME;
|
||||
|
||||
if (command == PRELIM_I915_DEBUG_EU_THREADS_CMD_INTERRUPT ||
|
||||
command == PRELIM_I915_DEBUG_EU_THREADS_CMD_RESUME ||
|
||||
@@ -1145,8 +1147,9 @@ int DebugSessionLinuxi915::threadControl(const std::vector<EuThread::ThreadId> &
|
||||
if (command == PRELIM_I915_DEBUG_EU_THREADS_CMD_RESUME) {
|
||||
applyResumeWa(bitmask.get(), bitmaskSize);
|
||||
}
|
||||
|
||||
printBitmask(bitmask.get(), bitmaskSize);
|
||||
if (shouldPrintBitmask) {
|
||||
printBitmask(bitmask.get(), bitmaskSize);
|
||||
}
|
||||
|
||||
auto euControlRetVal = ioctl(PRELIM_I915_DEBUG_IOCTL_EU_CONTROL, &euControl);
|
||||
if (euControlRetVal != 0) {
|
||||
|
||||
Reference in New Issue
Block a user