]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb98c56e7a5107fd6e935886eacba4ec56bea790f
tree072c2bfb6bc286ea4967954e2c6f6183a7a5ee14
parent9d63932da2cdae82a35f059d8dc7e0a1a306d929
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