Skip to contentSkip to conversation

drm/amdgpu: Couple small warning fixes

PATCH In review Harry Wentland 3 participants 3 messages Mar 28, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Couple small warning fixes

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +2 -1
index 355e17ac6d27..dde1ecf87288 100644
@@ -904,11 +904,12 @@ static int amdgpu_cs_ib_fill(struct amdgpu_device *adev,
 			continue;
 
 		if (chunk_ib->ip_type == AMDGPU_HW_IP_GFX && amdgpu_sriov_vf(adev)) {
-			if (chunk_ib->flags & AMDGPU_IB_FLAG_PREEMPT)
+			if (chunk_ib->flags & AMDGPU_IB_FLAG_PREEMPT) {
 				if (chunk_ib->flags & AMDGPU_IB_FLAG_CE)
 					ce_preempt++;
 				else
 					de_preempt++;
+			}
 
 			/* each GFX command submit allows 0 or 1 IB preemptible for CE & DE */
 			if (ce_preempt > 1 || de_preempt > 1)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +1 -1
index bcb939220806..e382eb818f7d 100644
@@ -172,7 +172,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
 	if (ring->funcs->init_cond_exec)
 		patch_offset = amdgpu_ring_init_cond_exec(ring);
 
-		if (ring->funcs->emit_hdp_flush
+	if (ring->funcs->emit_hdp_flush
 #ifdef CONFIG_X86_64
 	    && !(adev->flags & AMD_IS_APU)
 #endif
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20170328153130.31422-1-harry.wentland-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

Am 28.03.2017 um 17:31 schrieb Harry Wentland:

Quoted 1 line
Quoted 28 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++-
  drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 2 +-
  2 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +2 -1
index 355e17ac6d27..dde1ecf87288 100644
@@ -904,11 +904,12 @@ static int amdgpu_cs_ib_fill(struct amdgpu_device *adev,
  			continue;
 
  		if (chunk_ib->ip_type == AMDGPU_HW_IP_GFX && amdgpu_sriov_vf(adev)) {
-			if (chunk_ib->flags & AMDGPU_IB_FLAG_PREEMPT)
+			if (chunk_ib->flags & AMDGPU_IB_FLAG_PREEMPT) {
  				if (chunk_ib->flags & AMDGPU_IB_FLAG_CE)
  					ce_preempt++;
  				else
  					de_preempt++;
+			}
 
  			/* each GFX command submit allows 0 or 1 IB preemptible for CE & DE */
  			if (ce_preempt > 1 || de_preempt > 1)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +0 -0
index bcb939220806..e382eb818f7d 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs, · line 178

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +1 -1
@@ -172,7 +172,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
  	if (ring->funcs->init_cond_exec)
  		patch_offset = amdgpu_ring_init_cond_exec(ring);
 
-		if (ring->funcs->emit_hdp_flush
+	if (ring->funcs->emit_hdp_flush
  #ifdef CONFIG_X86_64
  	    && !(adev->flags & AMD_IS_APU)
  #endif

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reviewed-by Alex Deucher
#3 lore raw
In reply to a message not in the archive
Quoted 9 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Harry Wentland
Sent: Tuesday, March 28, 2017 11:32 AM
To: [email protected]
Cc: Wentland, Harry
Subject: [PATCH] drm/amdgpu: Couple small warning fixes

Quoted 46 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +2 -1
index 355e17ac6d27..dde1ecf87288 100644
@@ -904,11 +904,12 @@ static int amdgpu_cs_ib_fill(struct amdgpu_device
 *adev,
 			continue;
 
 		if (chunk_ib->ip_type == AMDGPU_HW_IP_GFX &&
 amdgpu_sriov_vf(adev)) {
-			if (chunk_ib->flags & AMDGPU_IB_FLAG_PREEMPT)
+			if (chunk_ib->flags & AMDGPU_IB_FLAG_PREEMPT)
 {
 				if (chunk_ib->flags & AMDGPU_IB_FLAG_CE)
 					ce_preempt++;
 				else
 					de_preempt++;
+			}

/* each GFX command submit allows 0 or 1 IB
preemptible for CE & DE */

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +0 -0
 			if (ce_preempt > 1 || de_preempt > 1)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +1 -1
index bcb939220806..e382eb818f7d 100644
@@ -172,7 +172,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring,
 unsigned num_ibs,
 	if (ring->funcs->init_cond_exec)
 		patch_offset = amdgpu_ring_init_cond_exec(ring);
 
-		if (ring->funcs->emit_hdp_flush
+	if (ring->funcs->emit_hdp_flush
 #ifdef CONFIG_X86_64
 	    && !(adev->flags & AMD_IS_APU)

#endif
--
2.11.0

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx