RE: [PATCH 1/2] drm/amdgpu/vcn4: fix endian conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Guchun Chen <guchun.chen@xxxxxxx> for this series.

Regards,
Guchun

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Alex
> Deucher
> Sent: Wednesday, May 17, 2023 5:18 AM
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> Cc: Deucher, Alexander <Alexander.Deucher@xxxxxxx>
> Subject: [PATCH 1/2] drm/amdgpu/vcn4: fix endian conversion
> 
> sq.is_enabled is a byte so there is no need to endian swap it.
> 
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
> b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
> index c77ceaf53dcd..339842382a1e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
> +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
> @@ -124,7 +124,7 @@ static int vcn_v4_0_3_sw_init(void *handle)
> 
>  		fw_shared = adev->vcn.inst[i].fw_shared.cpu_addr;
>  		fw_shared->present_flag_0 =
> cpu_to_le32(AMDGPU_FW_SHARED_FLAG_0_UNIFIED_QUEUE);
> -		fw_shared->sq.is_enabled = cpu_to_le32(true);
> +		fw_shared->sq.is_enabled = true;
> 
>  		if (amdgpu_vcnfw_log)
>  			amdgpu_vcn_fwlog_init(&adev->vcn.inst[i]);
> --
> 2.40.1





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux