Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Make set PG/CG state functions public

Expose PG/CG set states functions for other clients

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lijo Lazar and committed by
Alex Deucher
5d89bb2d a2052839

+9 -3
+5
drivers/gpu/drm/amd/amdgpu/amdgpu.h
··· 1390 1390 1391 1391 bool amdgpu_device_skip_hw_access(struct amdgpu_device *adev); 1392 1392 1393 + int amdgpu_device_set_cg_state(struct amdgpu_device *adev, 1394 + enum amd_clockgating_state state); 1395 + int amdgpu_device_set_pg_state(struct amdgpu_device *adev, 1396 + enum amd_powergating_state state); 1397 + 1393 1398 #include "amdgpu_object.h" 1394 1399 1395 1400 static inline bool amdgpu_is_tmz(struct amdgpu_device *adev)
+4 -3
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 2362 2362 * Returns 0 on success, negative error code on failure. 2363 2363 */ 2364 2364 2365 - static int amdgpu_device_set_cg_state(struct amdgpu_device *adev, 2366 - enum amd_clockgating_state state) 2365 + int amdgpu_device_set_cg_state(struct amdgpu_device *adev, 2366 + enum amd_clockgating_state state) 2367 2367 { 2368 2368 int i, j, r; 2369 2369 ··· 2398 2398 return 0; 2399 2399 } 2400 2400 2401 - static int amdgpu_device_set_pg_state(struct amdgpu_device *adev, enum amd_powergating_state state) 2401 + int amdgpu_device_set_pg_state(struct amdgpu_device *adev, 2402 + enum amd_powergating_state state) 2402 2403 { 2403 2404 int i, j, r; 2404 2405