summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2017-03-08 15:53:19 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:55:36 -0400
commit2e2e3c7f182e26fb518c13ab683aac7918dffb67 (patch)
tree12f4edef98a1f5e3a20cd160c43b85e1525dbc6d /drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
parent9ccd52eb248b0d8f0450e1201a8064f5ab1ec07e (diff)
downloadblackbird-obmc-linux-2e2e3c7f182e26fb518c13ab683aac7918dffb67.tar.gz
blackbird-obmc-linux-2e2e3c7f182e26fb518c13ab683aac7918dffb67.zip
drm/amdgpu:enable MCBP for SR-IOV (v2)
Apply the new IB during IB emit for SRIOV with MCBP v2: agd: use define instead of magic number 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/gfx_v8_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 0050b09d5883..c59bb38c091f 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -6564,6 +6564,9 @@ static void gfx_v8_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,
control |= ib->length_dw | (vm_id << 24);
+ if (amdgpu_sriov_vf(ring->adev) && ib->flags & AMDGPU_IB_FLAG_PREEMPT)
+ control |= INDIRECT_BUFFER_PRE_ENB(1);
+
amdgpu_ring_write(ring, header);
amdgpu_ring_write(ring,
#ifdef __BIG_ENDIAN
OpenPOWER on IntegriCloud