drm/amdgpu/vcn4: fix endian conversion
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 16 May 2023 20:56:49 +0000 (16:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:37:59 +0000 (10:37 -0400)
sq.is_enabled is a byte so there is no need to endian swap it.

Acked-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c

index c77ceaf..3398423 100644 (file)
@@ -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]);