drm/amdgpu: Use correct enum to set powergating state
Subsystems (2)
PATCH 1/1 drm/amdgpu: Use correct enum to set powergating state
Use enum amd_powergating_state instead of enum amd_clockgating_state. The underlying value stays the same, so there is no functional change in practise. This fixes a warning seen with clang:drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1930:14: warning: implicit
conversion from enumeration type 'enum amd_clockgating_state' to different enumeration type 'enum amd_powergating_state' [-Wenum-conversion]
AMD_CG_STATE_UNGATE); ^~~~~~~~~~~~~~~~~~~
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -1927,7 +1927,7 @@ int amdgpu_device_ip_suspend(struct amdgpu_device *adev)if (adev->powerplay.pp_feature &PP_GFXOFF_MASK )amdgpu_device_ip_set_powergating_state (adev,AMD_IP_BLOCK_TYPE_SMC , -AMD_CG_STATE_UNGATE ); +AMD_PG_STATE_UNGATE );/* ungate SMC block first */ r = amdgpu_device_ip_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_SMC,
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Alex Deucher
AppliedQuoted 11 lines · Stefan Agner
Use enum
amd_powergating_stateinstead of enumamd_clockgating_state. The underlying value stays the same, so there is no functional change in practise. This fixes a warning seen with clang:drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1930:14: warning: implicit
conversion from enumeration type 'enumamd_clockgating_state' to different enumeration type 'enumamd_powergating_state' [-Wenum-conversion]
AMD_CG_STATE_UNGATE); ^~~~~~~~~~~~~~~~~~~Signed-off-by Stefan Agner <[email protected]>
Applied. thanks!
Alex
Quoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-2@@ -1927,7 +1927,7 @@ int amdgpu_device_ip_suspend(struct amdgpu_device *adev)if (adev->powerplay.pp_feature &PP_GFXOFF_MASK )amdgpu_device_ip_set_powergating_state (adev,AMD_IP_BLOCK_TYPE_SMC , -AMD_CG_STATE_UNGATE ); +AMD_PG_STATE_UNGATE );/* ungate SMC block first */ r = amdgpu_device_ip_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_SMC, --2.17.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx