diff options
author | Saleemkhan Jamadar <saleemkhan.jamadar@amd.com> | 2023-07-13 10:46:20 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-07-13 17:32:40 -0400 |
commit | 093b21f43173ecd9820a73a87a48905805b4f676 (patch) | |
tree | 3a0fe91c7b6787f2c6deed7a9071ad0bfacbecf8 /drivers | |
parent | 826c1e923be734d182a3ba456f29d4a66eebc4e8 (diff) | |
download | linux-stable-093b21f43173ecd9820a73a87a48905805b4f676.tar.gz linux-stable-093b21f43173ecd9820a73a87a48905805b4f676.tar.bz2 linux-stable-093b21f43173ecd9820a73a87a48905805b4f676.zip |
Revert "drm/amdgpu: update kernel vcn ring test"
VCN FW depncencies revert it to unlock others
This reverts commit 3ebfa943b8451e4675d023b3f387911702ebee17.
Signed-off-by: Saleemkhan Jamadar <saleemkhan.jamadar@amd.com>
Acked-by: Veerabadhran Gopalakrishnan <Veerabadhran.Gopalakrishnan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index 57b62ab01788..8e83fd9e55be 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c @@ -521,7 +521,6 @@ static int amdgpu_vcn_dec_send_msg(struct amdgpu_ring *ring, struct dma_fence **fence) { u64 addr = AMDGPU_GPU_PAGE_ALIGN(ib_msg->gpu_addr); - uint64_t session_ctx_buf_gaddr = AMDGPU_GPU_PAGE_ALIGN(ib_msg->gpu_addr + 8192); struct amdgpu_device *adev = ring->adev; struct dma_fence *f = NULL; struct amdgpu_job *job; @@ -535,23 +534,13 @@ static int amdgpu_vcn_dec_send_msg(struct amdgpu_ring *ring, goto err; ib = &job->ibs[0]; - ib->length_dw = 0; - ib->ptr[ib->length_dw++] = PACKET0(adev->vcn.internal.data0, 0); - ib->ptr[ib->length_dw++] = lower_32_bits(session_ctx_buf_gaddr); - ib->ptr[ib->length_dw++] = PACKET0(adev->vcn.internal.data1, 0); - ib->ptr[ib->length_dw++] = upper_32_bits(session_ctx_buf_gaddr); - /* session ctx buffer cmd */ - ib->ptr[ib->length_dw++] = PACKET0(adev->vcn.internal.cmd, 0); - ib->ptr[ib->length_dw++] = 0xa; - - ib->ptr[ib->length_dw++] = PACKET0(adev->vcn.internal.data0, 0); - ib->ptr[ib->length_dw++] = lower_32_bits(addr); - ib->ptr[ib->length_dw++] = PACKET0(adev->vcn.internal.data1, 0); - ib->ptr[ib->length_dw++] = upper_32_bits(addr); - ib->ptr[ib->length_dw++] = PACKET0(adev->vcn.internal.cmd, 0); - ib->ptr[ib->length_dw++] = 0; - - for (i = ib->length_dw; i < 16; i += 2) { + ib->ptr[0] = PACKET0(adev->vcn.internal.data0, 0); + ib->ptr[1] = addr; + ib->ptr[2] = PACKET0(adev->vcn.internal.data1, 0); + ib->ptr[3] = addr >> 32; + ib->ptr[4] = PACKET0(adev->vcn.internal.cmd, 0); + ib->ptr[5] = 0; + for (i = 6; i < 16; i += 2) { ib->ptr[i] = PACKET0(adev->vcn.internal.nop, 0); ib->ptr[i+1] = 0; } |