• Ben Goz's avatar
    amdkfd: Add process queue manager module · 45102048
    Ben Goz authored
    The queue scheduler divides into two sections, one section is process bounded
    and the other section is device bounded.
    The process bounded section is handled by this module. The PQM handles usermode
    queue setup, updates and tear-down.
    
    v3:
    
    Used kernel parameter to limit queues per process instead of define
    Added use of doorbell address from user
    
    v4:
    
    Modified pqm_create_queue so that only when creating usermode queues the
    driver should return the queue properties to the userspace.
    
    Added an info message print when no more queues can be opened because of the
    queue per process limitation
    
    v5:
    
    Move amdkfd from drm/radeon/ to drm/amd/
    Various fixes
    Signed-off-by: default avatarBen Goz <ben.goz@amd.com>
    Signed-off-by: default avatarOded Gabbay <oded.gabbay@amd.com>
    45102048
kfd_process.c 10.1 KB