]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add IOCTL interface for per VM BOs v3
authorChristian König <christian.koenig@amd.com>
Fri, 25 Aug 2017 07:14:43 +0000 (09:14 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 31 Aug 2017 17:46:35 +0000 (13:46 -0400)
commit1b2fe5cedbee4a6e76cd550521623e9926bfaaf5
treea9ae3cb189187feffa80d868d5caa31bb2a78795
parentd529649b9f5a3af19b33c017f33f50940f3c915c
drm/amdgpu: add IOCTL interface for per VM BOs v3

Add the IOCTL interface so that applications can allocate per VM BOs.

Still WIP since not all corner cases are tested yet, but this reduces average
CS overhead for 10K BOs from 21ms down to 48us.

v2: add some extra checks, remove the WIP tag
v3: rename new flag to AMDGPU_GEM_CREATE_VM_ALWAYS_VALID

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
include/uapi/drm/amdgpu_drm.h