mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
Revert "L0Debug - Notify cmdQueue create for subdevices"
This reverts commit ebcb3faad2.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
965dbc131d
commit
5199ea257d
@@ -459,20 +459,10 @@ void DebugSessionLinux::handleEvent(prelim_drm_i915_debug_event *event) {
|
||||
clientHandleToConnection[uuid->client_handle]->uuidToModule.erase(uuid->handle);
|
||||
}
|
||||
|
||||
if (destroy && (clientHandle == uuid->client_handle)) {
|
||||
|
||||
for (const auto &uuidToDevice : uuidL0CommandQueueHandleToDevice) {
|
||||
if (uuidToDevice.first == uuid->handle) {
|
||||
uuidL0CommandQueueHandleToDevice.erase(uuidToDevice.first);
|
||||
|
||||
if (uuidL0CommandQueueHandleToDevice.size() == 0) {
|
||||
zet_debug_event_t debugEvent = {};
|
||||
debugEvent.type = ZET_DEBUG_EVENT_TYPE_PROCESS_EXIT;
|
||||
pushApiEvent(debugEvent, nullptr);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (destroy && (uuidL0CommandQueueHandle == uuid->handle) && (clientHandle == uuid->client_handle)) {
|
||||
zet_debug_event_t debugEvent = {};
|
||||
debugEvent.type = ZET_DEBUG_EVENT_TYPE_PROCESS_EXIT;
|
||||
pushApiEvent(debugEvent, nullptr);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -495,20 +485,10 @@ void DebugSessionLinux::handleEvent(prelim_drm_i915_debug_event *event) {
|
||||
if (uuidString == NEO::uuidL0CommandQueueHash) {
|
||||
if ((clientHandle == invalidClientHandle) || (clientHandle == uuid->client_handle)) {
|
||||
clientHandle = uuid->client_handle;
|
||||
|
||||
uint32_t deviceIndex = 0;
|
||||
if (readUuid.payload_size == sizeof(NEO::DebuggerL0::CommandQueueNotification)) {
|
||||
auto notification = reinterpret_cast<NEO::DebuggerL0::CommandQueueNotification *>(payload.get());
|
||||
deviceIndex = notification->subDeviceIndex;
|
||||
UNRECOVERABLE_IF(notification->subDeviceIndex >= notification->subDeviceCount);
|
||||
}
|
||||
|
||||
if (uuidL0CommandQueueHandleToDevice.size() == 0) {
|
||||
zet_debug_event_t debugEvent = {};
|
||||
debugEvent.type = ZET_DEBUG_EVENT_TYPE_PROCESS_ENTRY;
|
||||
pushApiEvent(debugEvent, nullptr);
|
||||
}
|
||||
uuidL0CommandQueueHandleToDevice[uuid->handle] = deviceIndex;
|
||||
uuidL0CommandQueueHandle = uuid->handle;
|
||||
zet_debug_event_t debugEvent = {};
|
||||
debugEvent.type = ZET_DEBUG_EVENT_TYPE_PROCESS_ENTRY;
|
||||
pushApiEvent(debugEvent, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user