Skip to contentSkip to conversation

drm/amdgpu/sdma3: drop unused functions

PATCH In review Alex Deucher 3 participants 3 messages Sep 15, 2016 – Sep 16, 2016 2 messages not in the archive

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

PATCH 1/1 drm/amdgpu/sdma3: drop unused functions

These are not used yet.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 25 -------------------------
 1 file changed, 25 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +0 -25
index bee4978..cabb9fe 100644
@@ -499,31 +499,6 @@ static void sdma_v3_0_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64 se
 	amdgpu_ring_write(ring, SDMA_PKT_TRAP_INT_CONTEXT_INT_CONTEXT(0));
 }
 
-unsigned init_cond_exec(struct amdgpu_ring *ring)
-{
-	unsigned ret;
-	amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_COND_EXE));
-	amdgpu_ring_write(ring, lower_32_bits(ring->cond_exe_gpu_addr));
-	amdgpu_ring_write(ring, upper_32_bits(ring->cond_exe_gpu_addr));
-	amdgpu_ring_write(ring, 1);
-	ret = ring->wptr;/* this is the offset we need patch later */
-	amdgpu_ring_write(ring, 0x55aa55aa);/* insert dummy here and patch it later */
-	return ret;
-}
-
-void patch_cond_exec(struct amdgpu_ring *ring, unsigned offset)
-{
-	unsigned cur;
-	BUG_ON(ring->ring[offset] != 0x55aa55aa);
-
-	cur = ring->wptr - 1;
-	if (likely(cur > offset))
-		ring->ring[offset] = cur - offset;
-	else
-		ring->ring[offset] = (ring->ring_size>>2) - offset + cur;
-}
-
-
 /**
  * sdma_v3_0_gfx_stop - stop the gfx async dma engines
  *
Signature · 6 lines
2.5.5

_______________________________________________
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): 1473971453-12470-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

Am 15.09.2016 um 22:30 schrieb Alex Deucher:

Quoted 3 lines

These are not used yet.

Quoted 30 lines
---
  drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 25 -------------------------
  1 file changed, 25 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +0 -18
index bee4978..cabb9fe 100644
@@ -499,31 +499,6 @@ static void sdma_v3_0_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64 se
  	amdgpu_ring_write(ring, SDMA_PKT_TRAP_INT_CONTEXT_INT_CONTEXT(0));
  }
 
-unsigned init_cond_exec(struct amdgpu_ring *ring)
-{
-	unsigned ret;
-	amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_COND_EXE));
-	amdgpu_ring_write(ring, lower_32_bits(ring->cond_exe_gpu_addr));
-	amdgpu_ring_write(ring, upper_32_bits(ring->cond_exe_gpu_addr));
-	amdgpu_ring_write(ring, 1);
-	ret = ring->wptr;/* this is the offset we need patch later */
-	amdgpu_ring_write(ring, 0x55aa55aa);/* insert dummy here and patch it later */
-	return ret;
-}
-
-void patch_cond_exec(struct amdgpu_ring *ring, unsigned offset)
-{
-	unsigned cur;
-	BUG_ON(ring->ring[offset] != 0x55aa55aa);
-
-	cur = ring->wptr - 1;

drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c static void sdma_v3_0_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64 se · line 504

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +0 -7
-	if (likely(cur > offset))
-		ring->ring[offset] = cur - offset;
-	else
-		ring->ring[offset] = (ring->ring_size>>2) - offset + cur;
-}
-
-
  /**
   * sdma_v3_0_gfx_stop - stop the gfx async dma engines
   *

_______________________________________________
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): a58092fe-b0fa-24d0-04ac-c35250d9ae12-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org

Reviewed-by
#4 lore raw
Quoted 6 lines · Christian König

Am 15.09.2016 um 22:30 schrieb Alex Deucher:

Quoted 3 lines

These are not used yet.

Quoted 41 lines
Quoted 41 lines
---
  drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 25 -------------------------
  1 file changed, 25 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +0 -0
index bee4978..cabb9fe 100644
@@ -499,31 +499,6 @@ static void sdma_v3_0_ring_emit_fence(struct

amdgpu_ring *ring, u64 addr, u64 se

      amdgpu_ring_write(ring, SDMA_PKT_TRAP_INT_CONTEXT_INT_CONTEXT(0));

}
-unsigned init_cond_exec(struct amdgpu_ring *ring)

drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +0 -8
-{
-    unsigned ret;
-    amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_COND_EXE));
-    amdgpu_ring_write(ring, lower_32_bits(ring->cond_exe_gpu_addr));
-    amdgpu_ring_write(ring, upper_32_bits(ring->cond_exe_gpu_addr));
-    amdgpu_ring_write(ring, 1);
-    ret = ring->wptr;/* this is the offset we need patch later */
-    amdgpu_ring_write(ring, 0x55aa55aa);/* insert dummy here and

patch it later */

drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +0 -16
-    return ret;
-}
-
-void patch_cond_exec(struct amdgpu_ring *ring, unsigned offset)
-{
-    unsigned cur;
-    BUG_ON(ring->ring[offset] != 0x55aa55aa);
-
-    cur = ring->wptr - 1;
-    if (likely(cur > offset))
-        ring->ring[offset] = cur - offset;
-    else
-        ring->ring[offset] = (ring->ring_size>>2) - offset + cur;
-}
-
-
  /**
Quoted 8 lines
Quoted 2 lines

* sdma_v3_0_gfx_stop - stop the gfx async dma engines *

_______________________________________________
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