Anyone review the 4 patches and another libdrm patch ?


-----邮件原件-----
发件人: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] 代表 Monk Liu
发送时间: Wednesday, March 08, 2017 3:54 PM
收件人: amd-gfx@lists.freedesktop.org
抄送: Liu, Monk <monk....@amd.com>
主题: [PATCH 4/4] drm/amdgpu:enable MCBP for SR-IOV

Change-Id: I779abc6a47593be0ff5234c3e2f2cdfd25ba70ca
Signed-off-by: Monk Liu <monk....@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 
b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 8dba5ff..be49c30 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -6552,6 +6552,10 @@ static void gfx_v8_0_ring_emit_ib_gfx(struct amdgpu_ring 
*ring,
 
        control |= ib->length_dw | (vm_id << 24);
 
+       if (ring && amdgpu_sriov_vf(ring->adev) &&
+               ib->flags & AMDGPU_IB_FLAG_PREEMPT)
+               control |= (1<<21);
+
        amdgpu_ring_write(ring, header);
        amdgpu_ring_write(ring,
 #ifdef __BIG_ENDIAN
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to