diff options
author | Ruijing Dong <ruijing.dong@amd.com> | 2022-06-15 04:42:54 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-06-21 23:54:37 +0200 |
commit | e751e4be1eec4d427d91583f31ce56ccb5286a27 (patch) | |
tree | a6c60664dd7835b10fa7d7a09a54a86f83d1ba1a /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |
parent | drm/amdgpu/vcn: support unified queue only in vcn4 (diff) | |
download | linux-e751e4be1eec4d427d91583f31ce56ccb5286a27.tar.xz linux-e751e4be1eec4d427d91583f31ce56ccb5286a27.zip |
drm/amdgpu/vcn: adjust unified queue code format
Fixed some errors and warnings found by checkpatch.pl.
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index e62ff7db4736..fea436023351 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c @@ -730,8 +730,8 @@ error: return r; } -static uint32_t * amdgpu_vcn_unified_ring_ib_header(struct amdgpu_ib *ib, - uint32_t ib_pack_in_dw, bool enc) +static uint32_t *amdgpu_vcn_unified_ring_ib_header(struct amdgpu_ib *ib, + uint32_t ib_pack_in_dw, bool enc) { uint32_t *ib_checksum; @@ -749,7 +749,7 @@ static uint32_t * amdgpu_vcn_unified_ring_ib_header(struct amdgpu_ib *ib, } static void amdgpu_vcn_unified_ring_ib_checksum(uint32_t **ib_checksum, - uint32_t ib_pack_in_dw) + uint32_t ib_pack_in_dw) { uint32_t i; uint32_t checksum = 0; @@ -790,7 +790,7 @@ static int amdgpu_vcn_dec_sw_send_msg(struct amdgpu_ring *ring, /* single queue headers */ if (sq) { ib_pack_in_dw = sizeof(struct amdgpu_vcn_decode_buffer) / sizeof(uint32_t) - + 4 + 2; /* engine info + decoding ib in dw */ + + 4 + 2; /* engine info + decoding ib in dw */ ib_checksum = amdgpu_vcn_unified_ring_ib_header(ib, ib_pack_in_dw, false); } @@ -896,7 +896,7 @@ static int amdgpu_vcn_enc_get_create_msg(struct amdgpu_ring *ring, uint32_t hand struct amdgpu_ib *ib_msg, struct dma_fence **fence) { - unsigned ib_size_dw = 16; + unsigned int ib_size_dw = 16; struct amdgpu_job *job; struct amdgpu_ib *ib; struct dma_fence *f = NULL; @@ -962,7 +962,7 @@ static int amdgpu_vcn_enc_get_destroy_msg(struct amdgpu_ring *ring, uint32_t han struct amdgpu_ib *ib_msg, struct dma_fence **fence) { - unsigned ib_size_dw = 16; + unsigned int ib_size_dw = 16; struct amdgpu_job *job; struct amdgpu_ib *ib; struct dma_fence *f = NULL; |