diff options
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 154b1df2f1ed..9da95b25e158 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -9422,8 +9422,6 @@ static void gfx_v10_0_emit_mem_sync(struct amdgpu_ring *ring)  static void gfx_v10_ring_insert_nop(struct amdgpu_ring *ring, uint32_t num_nop)  { -	int i; -  	/* Header itself is a NOP packet */  	if (num_nop == 1) {  		amdgpu_ring_write(ring, ring->funcs->nop); @@ -9434,8 +9432,7 @@ static void gfx_v10_ring_insert_nop(struct amdgpu_ring *ring, uint32_t num_nop)  	amdgpu_ring_write(ring, PACKET3(PACKET3_NOP, min(num_nop - 2, 0x3ffe)));  	/* Header is at index 0, followed by num_nops - 1 NOP packet's */ -	for (i = 1; i < num_nop; i++) -		amdgpu_ring_write(ring, ring->funcs->nop); +	amdgpu_ring_insert_nop(ring, num_nop - 1);  }  static int gfx_v10_0_reset_kgq(struct amdgpu_ring *ring, unsigned int vmid)  | 
