drm/amdkfd: add svm ioctl API
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 5 Feb 2020 22:59:15 +0000 (17:59 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:46:14 +0000 (21:46 -0400)
commit40ce74d1b28d38e5debc14b5a6ddd9071ae2d310
tree072c2bfb6bc286ea4967954e2c6f6183a7a5ee14
parent2aeb742b72121c539cfc9cff8c00c5ca32ba4b1c
drm/amdkfd: add svm ioctl API

Add svm (shared virtual memory) ioctl data structure and API definition.

The svm ioctl API is designed to be extensible in the future. All
operations are provided by a single IOCTL to preserve ioctl number
space. The arguments structure ends with a variable size array of
attributes that can be used to set or get one or multiple attributes.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-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_flat_memory.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c
include/uapi/linux/kfd_ioctl.h