This series wires USERQ_EOP, QUEUE_RESET, and GPU_RESET events into the render-node EVENTFD notification infrastructure.
It builds on the render-node EVENTFD infrastructure introduced in: https://patchwork.freedesktop.org/series/164618/#rev7 That series provides the EVENTFD manager, subscription lifetime management, event type definitions, and queue-aware subscription support. This series adds the corresponding notification producers for GPU events. Base branch: origin/amd-unified-interface Base commit: 540d68973c0b ("drm/amdgpu/userq: fix NULL deref in amdgpu_userq_evict_all") EVENTFD provides lightweight notification-only wakeups. Event payload and metadata are retrieved separately through the corresponding event interface. The patches in this series: 1. Signal USERQ_EOP notifications from the user queue fence interrupt path. 2. Properly account for a successfully reset guilty queue by incrementing the reset counter, force-completing its fences, and reporting the DRM wedged event. 3. Signal QUEUE_RESET notifications from the common successful queue reset handling path. 4. Signal GPU_RESET notifications after successful hardware reset completion. Changes since v3: * Added Alex's patch: drm/amdgpu/userq: properly account for resets This handles reset accounting, fence completion, and the DRM wedged event for the original guilty queue after a successful queue reset. * Reworked the QUEUE_RESET producer to introduce amdgpu_userq_handle_hung_queue() as the common successful queue reset handling helper. * Use amdgpu_userq_handle_hung_queue() for both the original guilty queue and collateral queues reported by MES, ensuring both paths update queue state, signal QUEUE_RESET EVENTFD notifications, force-complete fences, and report the DRM wedged event consistently. * Continue to resolve collateral queues directly through the doorbell xarray rather than scanning all user queues. * Preserve separate reset-counter accounting in the guilty and collateral queue paths. * Rebased onto the latest EVENTFD infrastructure. The USERQ_EOP and GPU_RESET notification patches are unchanged from v3 apart from rebasing and retain Alex's Reviewed-by tags. Only compilation tested. Alex Deucher (1): drm/amdgpu/userq: properly account for resets Srinivasan Shanmugam (3): drm/amdgpu: Signal USERQ_EOP EVENTFD notifications drm/amdgpu: Signal QUEUE_RESET EVENTFD notifications drm/amdgpu: Signal GPU_RESET EVENTFD notifications drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 51 ++++++++++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 38 +++++++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h | 2 + drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 72 ++++++++++++++-------- 4 files changed, 134 insertions(+), 29 deletions(-) -- 2.34.1
