gpu: host1x: Stop CDMA before suspending
authorMikko Perttunen <mperttunen@nvidia.com>
Fri, 1 Sep 2023 11:15:08 +0000 (14:15 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 11 Oct 2023 20:52:44 +0000 (22:52 +0200)
commit87fafcd53df8ca5b6695a71aa17f2e7aff464ecc
treef581e382f4f5ecd48a1f6a4f2b310456b9c3b848
parent9764723de613d93b72e95923d25d589f539f07e9
gpu: host1x: Stop CDMA before suspending

Before going into suspend, wait all CDMA to go idle and stop it.
This will ensure no channel is still active while we enter
suspend, and ensures the driver doesn't think that CDMA is still
active when coming back from suspend (as HW state has been reset).

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230901111510.663401-2-cyndis@kapsi.fi
drivers/gpu/host1x/channel.c
drivers/gpu/host1x/channel.h
drivers/gpu/host1x/dev.c