• Jonathan Kim's avatar
    drm/amdkfd: add debug queue snapshot operation · b17bd5db
    Jonathan Kim authored
    Allow the debugger to get a snapshot of a specified number of queues
    containing various queue property information that is copied to the
    debugger.
    
    Since the debugger doesn't know how many queues exist at any given time,
    allow the debugger to pass the requested number of snapshots as 0 to get
    the actual number of potential snapshots to use for a subsequent snapshot
    request for actual information.
    
    To prevent future ABI breakage, pass in the requested entry_size.
    The KFD will return it's own entry_size in case the debugger still wants
    log the information in a core dump on sizing failure.
    
    Also allow the debugger to clear exceptions when doing a snapshot.
    Signed-off-by: default avatarJonathan Kim <jonathan.kim@amd.com>
    Reviewed-by: default avatarFelix Kuehling <felix.kuehling@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    b17bd5db
kfd_device_queue_manager.h 11.2 KB