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
@@ -788,7 +788,7 @@ static ssize_t force_idle_store(struct device *dev,
|
||||
if (g->forced_idle)
|
||||
return count; /* do nothing */
|
||||
else {
|
||||
err = gk20a_do_idle_impl(g, false);
|
||||
err = gk20a_do_idle(g);
|
||||
if (!err) {
|
||||
g->forced_idle = 1;
|
||||
nvgpu_info(g, "gpu is idle : %d",
|
||||
@@ -799,7 +799,7 @@ static ssize_t force_idle_store(struct device *dev,
|
||||
if (!g->forced_idle)
|
||||
return count; /* do nothing */
|
||||
else {
|
||||
err = gk20a_do_unidle_impl(g);
|
||||
err = gk20a_do_unidle(g);
|
||||
if (!err) {
|
||||
g->forced_idle = 0;
|
||||
nvgpu_info(g, "gpu is idle : %d",
|
||||
|
||||
Reference in New Issue
Block a user