[PATCH] drm/amdgpu/sdma3: drop unused functions

Edward O'Callaghan funfunctor at folklore1984.net
Fri Sep 16 08:28:03 UTC 2016



On 09/16/2016 05:35 PM, Christian König wrote:
> Am 15.09.2016 um 22:30 schrieb Alex Deucher:
>> These are not used yet.
>>
>> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> 
> Reviewed-by: Christian König <christian.koenig at amd.com>.
Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

> 
>> ---
>>   drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 25 -------------------------
>>   1 file changed, 25 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
>> b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
>> index bee4978..cabb9fe 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
>> @@ -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
>>    *
> 
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20160916/b16d9491/attachment-0001.sig>


More information about the amd-gfx mailing list