linux_dsm_epyc7002/drivers/gpu/drm/amd
Rajneesh Bhardwaj 9593f4d6a6 drm/amdkfd: refactor runtime pm for baco
So far the kfd driver implemented same routines for runtime and system
wide suspend and resume (s2idle or mem). During system wide suspend the
kfd aquires an atomic lock that prevents any more user processes to
create queues and interact with kfd driver and amd gpu. This mechanism
created problem when amdgpu device is runtime suspended with BACO
enabled. Any application that relies on kfd driver fails to load because
the driver reports a locked kfd device since gpu is runtime suspended.

However, in an ideal case, when gpu is runtime  suspended the kfd driver
should be able to:

 - auto resume amdgpu driver whenever a client requests compute service
 - prevent runtime suspend for amdgpu  while kfd is in use

This change refactors the amdgpu and amdkfd drivers to support BACO and
runtime power management.

Reviewed-by: Oak Zeng <oak.zeng@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-02-12 16:00:54 -05:00
..
acp drm/amdgpu: fix license on Kconfig and Makefiles 2019-12-11 15:22:08 -05:00
amdgpu drm/amdkfd: refactor runtime pm for baco 2020-02-12 16:00:54 -05:00
amdkfd drm/amdkfd: refactor runtime pm for baco 2020-02-12 16:00:54 -05:00
display drm/amd/display: Remove set but not unused variable 'stream_status' 2020-02-11 11:52:04 -05:00
include drm/amdgpu: Enable DISABLE_BARRIER_WAITCNT for Arcturus 2020-01-30 17:15:27 -05:00
powerplay drm/amdgpu/powerplay: fix baco check for vega20 2020-02-11 11:51:58 -05:00