summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorMonk Liu <monk.liu@amd.com>2016-01-14 18:08:16 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-05-02 15:09:17 -0400
commit128cff1af68689cf4d85d3ba948c86a194dee30f (patch)
tree70a6e6963ea61a58fa1500d5d571e4a52263d78e /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent8e9fbeb522fa3043dc65ef0e383af28843950799 (diff)
downloadop-kernel-dev-128cff1af68689cf4d85d3ba948c86a194dee30f.zip
op-kernel-dev-128cff1af68689cf4d85d3ba948c86a194dee30f.tar.gz
drm/amdgpu: support cond exec
This adds the groundwork for conditional execution on SDMA which is necessary for preemption. Signed-off-by: Monk Liu <monk.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 2c2f234..49adb45 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -788,6 +788,9 @@ struct amdgpu_ring {
struct amdgpu_ctx *current_ctx;
enum amdgpu_ring_type type;
char name[16];
+ unsigned cond_exe_offs;
+ u64 cond_exe_gpu_addr;
+ volatile u32 *cond_exe_cpu_addr;
};
/*
OpenPOWER on IntegriCloud