KIQ need three memory spaces: interrupt, ring and buffer object. If want to setup KIQ, must to allocate related memory firstly. Signed-off-by: Xiangliang Yu <Xiangliang.Yu at amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index bc25c7b..25a3a2a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -691,6 +691,13 @@ int amdgpu_ctx_ioctl(struct drm_device *dev, void *data, void amdgpu_ctx_mgr_init(struct amdgpu_ctx_mgr *mgr); void amdgpu_ctx_mgr_fini(struct amdgpu_ctx_mgr *mgr); +struct amdgpu_kiq { + u64 eop_gpu_addr; + struct amdgpu_bo *eop_obj; + struct amdgpu_ring ring; + struct amdgpu_irq_src irq; +}; + /* * Kernel Interface Queue functions */ @@ -1461,6 +1468,9 @@ struct amdgpu_device { /* gfx */ struct amdgpu_gfx gfx; + /* KIQ */ + struct amdgpu_kiq kiq; + /* sdma */ struct amdgpu_sdma sdma; -- 2.7.4