Skip to contentSkip to conversation

drm/amdgpu: sdma: clean up identation

PATCH Applied Colin King 3 participants 3 messages Sep 2, 2021 – Sep 7, 2021

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 drm/amdgpu: sdma: clean up identation

From: Colin Ian King <[email protected]>

There is a statement that is indented incorrectly. Clean it up.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +4 -4
index 779f5c911e11..e4a96e7e386d 100644
@@ -375,10 +375,10 @@ static void sdma_v5_2_ring_emit_ib(struct amdgpu_ring *ring,
  */
 static void sdma_v5_2_ring_emit_mem_sync(struct amdgpu_ring *ring)
 {
-    uint32_t gcr_cntl =
-		    SDMA_GCR_GL2_INV | SDMA_GCR_GL2_WB | SDMA_GCR_GLM_INV |
-			SDMA_GCR_GL1_INV | SDMA_GCR_GLV_INV | SDMA_GCR_GLK_INV |
-			SDMA_GCR_GLI_INV(1);
+	uint32_t gcr_cntl = SDMA_GCR_GL2_INV | SDMA_GCR_GL2_WB |
+			    SDMA_GCR_GLM_INV | SDMA_GCR_GL1_INV |
+			    SDMA_GCR_GLV_INV | SDMA_GCR_GLK_INV |
+			    SDMA_GCR_GLI_INV(1);
 
 	/* flush entire cache L0/L1/L2, this can be optimized by performance requirement */
 	amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_GCR_REQ));
Signature · 1 line
2.32.0
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 02.09.21 um 23:51 schrieb Colin King:

Quoted 5 lines

From: Colin Ian King <[email protected]>

There is a statement that is indented incorrectly. Clean it up.

Quoted 23 lines
---
  drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +4 -4
index 779f5c911e11..e4a96e7e386d 100644
@@ -375,10 +375,10 @@ static void sdma_v5_2_ring_emit_ib(struct amdgpu_ring *ring,
   */
  static void sdma_v5_2_ring_emit_mem_sync(struct amdgpu_ring *ring)
  {
-    uint32_t gcr_cntl =
-		    SDMA_GCR_GL2_INV | SDMA_GCR_GL2_WB | SDMA_GCR_GLM_INV |
-			SDMA_GCR_GL1_INV | SDMA_GCR_GLV_INV | SDMA_GCR_GLK_INV |
-			SDMA_GCR_GLI_INV(1);
+	uint32_t gcr_cntl = SDMA_GCR_GL2_INV | SDMA_GCR_GL2_WB |
+			    SDMA_GCR_GLM_INV | SDMA_GCR_GL1_INV |
+			    SDMA_GCR_GLV_INV | SDMA_GCR_GLK_INV |
+			    SDMA_GCR_GLI_INV(1);
 
  	/* flush entire cache L0/L1/L2, this can be optimized by performance requirement */
  	amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_GCR_REQ));
Applied
#2 lore raw

Applied. Thanks!

Alex

Quoted 34 lines · Christian König

Am 02.09.21 um 23:51 schrieb Colin King:

Quoted 5 lines

From: Colin Ian King <[email protected]>

There is a statement that is indented incorrectly. Clean it up.

Quoted 23 lines
---
  drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +4 -4
index 779f5c911e11..e4a96e7e386d 100644
@@ -375,10 +375,10 @@ static void sdma_v5_2_ring_emit_ib(struct amdgpu_ring *ring,
   */
  static void sdma_v5_2_ring_emit_mem_sync(struct amdgpu_ring *ring)
  {
-    uint32_t gcr_cntl =
-                 SDMA_GCR_GL2_INV | SDMA_GCR_GL2_WB | SDMA_GCR_GLM_INV |
-                     SDMA_GCR_GL1_INV | SDMA_GCR_GLV_INV | SDMA_GCR_GLK_INV |
-                     SDMA_GCR_GLI_INV(1);
+     uint32_t gcr_cntl = SDMA_GCR_GL2_INV | SDMA_GCR_GL2_WB |
+                         SDMA_GCR_GLM_INV | SDMA_GCR_GL1_INV |
+                         SDMA_GCR_GLV_INV | SDMA_GCR_GLK_INV |
+                         SDMA_GCR_GLI_INV(1);
 
      /* flush entire cache L0/L1/L2, this can be optimized by performance requirement */
      amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_GCR_REQ));