drm/tegra: submit: Add missing pm_runtime_mark_last_busy()
authorDmitry Osipenko <digetx@gmail.com>
Tue, 30 Nov 2021 23:23:17 +0000 (02:23 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 13:07:07 +0000 (14:07 +0100)
Runtime PM auto-suspension doesn't work without pm_runtime_mark_last_busy(),
add it.

Cc: <stable@vger.kernel.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/submit.c

index c326984..1ba4d53 100644 (file)
@@ -504,8 +504,10 @@ static void release_job(struct host1x_job *job)
        kfree(job_data->used_mappings);
        kfree(job_data);
 
-       if (pm_runtime_enabled(client->base.dev))
+       if (pm_runtime_enabled(client->base.dev)) {
+               pm_runtime_mark_last_busy(client->base.dev);
                pm_runtime_put_autosuspend(client->base.dev);
+       }
 }
 
 int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data,