]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: New IOCTL to allocate queue GWS (v2)
authorOak Zeng <Oak.Zeng@amd.com>
Tue, 7 May 2019 03:11:14 +0000 (22:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:20:30 +0000 (16:20 -0400)
commit51926d6a49f72681ed45171ecea7d4d59802bc31
tree2a0b0f064e508d08dadf4f83c50e2328f78eb78f
parentcdc97d4dd5efe3c8096a1b4ea0d31efa493e6517
drm/amdkfd: New IOCTL to allocate queue GWS (v2)

Add a new kfd ioctl to allocate queue GWS. Queue
GWS is released on queue destroy.

v2: re-introduce this API with the following fixes squashed in:
- drm/amdkfd: fix null pointer dereference on dev
- drm/amdkfd: Return proper error code for gws alloc API
- drm/amdkfd: Remove GPU ID in GWS queue creation

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
include/uapi/linux/kfd_ioctl.h