drm/amdgpu: fix typo in amdgpu_vcn_sw_fini
Subsystems (2)
PATCH 1/2 drm/amdgpu: fix typo in amdgpu_vcn_sw_fini
Using the wrong iterator.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +3 -3
@@ -193,9 +193,9 @@ int amdgpu_vcn_sw_fini(struct amdgpu_device *adev)if (adev->vcn.harvest_config & (1 << j))continue ;if (adev->vcn.indirect_sram) { -amdgpu_bo_free_kernel (&adev->vcn.inst[i].dpg_sram_bo, - &adev->vcn.inst[i].dpg_sram_gpu_addr, - (void **)&adev->vcn.inst[i].dpg_sram_cpu_addr); +amdgpu_bo_free_kernel (&adev->vcn.inst[j].dpg_sram_bo, + &adev->vcn.inst[j].dpg_sram_gpu_addr, + (void **)&adev->vcn.inst[j].dpg_sram_cpu_addr); }kvfree (adev->vcn.inst[j].saved_bo);
Signature · 6 lines
2.24.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/2 drm/amdgpu/vcn1.0: remove duplicate defines
These were added to amdgpu_vcn.h so remove the duplicates in this file. Fixes a warning.
--- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +0 -5
@@ -39,11 +39,6 @@#include "ivsrcid/vcn/irqsrcs_vcn_1_0.h" #include "jpeg_v1_0.h" -#define mmUVD_RBC_XX_IB_REG_CHECK 0x05ab -#define mmUVD_RBC_XX_IB_REG_CHECK_BASE_IDX 1 -#define mmUVD_REG_XX_MASK 0x05ac -#define mmUVD_REG_XX_MASK_BASE_IDX 1 -static int vcn_v1_0_stop (struct amdgpu_device *adev);static void vcn_v1_0_set_dec_ring_funcs (struct amdgpu_device *adev);static void vcn_v1_0_set_enc_ring_funcs (struct amdgpu_device *adev);
Signature · 6 lines
2.24.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
RE: [PATCH 2/2] drm/amdgpu/vcn1.0: remove duplicate defines
The value are different between VCN 1.0 and 2.x.
Regards,
Leo
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: January 15, 2020 5:16 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu/vcn1.0: remove duplicate defines
These were added to amdgpu_vcn.h so remove the duplicates in this file. Fixes a warning.
--- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +0 -6
@@ -39,11 +39,6 @@#include "ivsrcid/vcn/irqsrcs_vcn_1_0.h" #include "jpeg_v1_0.h" -#define mmUVD_RBC_XX_IB_REG_CHECK 0x05ab -#define mmUVD_RBC_XX_IB_REG_CHECK_BASE_IDX 1 -#define mmUVD_REG_XX_MASK 0x05ac -#define mmUVD_REG_XX_MASK_BASE_IDX 1 -static int vcn_v1_0_stop (struct amdgpu_device *adev);static void vcn_v1_0_set_dec_ring_funcs (struct amdgpu_device *adev);static void vcn_v1_0_set_enc_ring_funcs (struct amdgpu_device *adev); --
2.24.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cleo.liu%40amd.com%7Cd684fdd7f88f4246831608d79a088016%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637147233724222499&sdata=jFi5Npjg6nXtQlA5JEu3dHnjiKHeBZfOWbr2KBrqYI0%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 2/2] drm/amdgpu/vcn1.0: remove duplicate defines
Quoted 3 lines · Leo
The value are different between VCN 1.0 and 2.x.
Ah, sorry, missed that. James, please fix the conflict then since amdgpu_vcn.h is included by both files.
Alex
Quoted 34 lines
Regards,
Leo-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: January 15, 2020 5:16 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu/vcn1.0: remove duplicate definesThese were added to
amdgpu_vcn.hso remove the duplicates in this file. Fixes a warning.Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 5 ----- 1 file changed, 5 deletions(-)drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +0
-6@@ -39,11 +39,6 @@#include "ivsrcid/vcn/irqsrcs_vcn_1_0.h" #include "jpeg_v1_0.h" -#define mmUVD_RBC_XX_IB_REG_CHECK 0x05ab -#define mmUVD_RBC_XX_IB_REG_CHECK_BASE_IDX 1 -#define mmUVD_REG_XX_MASK 0x05ac -#define mmUVD_REG_XX_MASK_BASE_IDX 1 -static int vcn_v1_0_stop (struct amdgpu_device *adev);static void vcn_v1_0_set_dec_ring_funcs (struct amdgpu_device *adev);static void vcn_v1_0_set_enc_ring_funcs (struct amdgpu_device *adev); --2.24.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cleo.liu%40amd.com%7Cd684fdd7f88f4246831608d79a088016%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637147233724222499&sdata=jFi5Npjg6nXtQlA5JEu3dHnjiKHeBZfOWbr2KBrqYI0%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx