mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: do_idle/unidle handling with runtime PM after probe
Extend the runtime suspend/resume based idle/unidle logic in the probe case to handling done in gk20a_do_idle/unidle for nvgpu after the probe completion. If the railgating is disabled, setting autosuspend_delay to 0 will enable the suspend. If railgating is enabled, autosuspend delay will be > 0. Setting it to 0 will enable the immediate suspend. With this approach based on RPM, forced_reset logic is removed. force_reset_in_do_idle is also removed as railgating is supported. Bug 200602747 JIRA NVGPU-5356 Change-Id: Iaf6d5ab651b8200f0547b45d90f812110cf63c0e Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2375941 GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
4012a97640
commit
bd7bda4f98
@@ -154,12 +154,6 @@ struct gk20a_platform {
|
||||
/* Disable nvlink support */
|
||||
bool disable_nvlink;
|
||||
|
||||
/*
|
||||
* gk20a_do_idle() API can take GPU either into rail gate or CAR reset
|
||||
* This flag can be used to force CAR reset case instead of rail gate
|
||||
*/
|
||||
bool force_reset_in_do_idle;
|
||||
|
||||
/* guest/vm id, needed for IPA to PA transation */
|
||||
int vmid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user