]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: Allow driver to be shutdown on reboot/kexec
authorMarc Zyngier <marc.zyngier@arm.com>
Sun, 5 Aug 2018 12:48:07 +0000 (13:48 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 10 Sep 2018 08:52:27 +0000 (10:52 +0200)
commit6253518a2336dfff538505c431403651264f2860
tree07a6caac29b7d7dbd0f09ee600c23d151de9c575
parentbb0aca9158825e9c61c569dcd3f5d7ef93f9202e
drm/rockchip: Allow driver to be shutdown on reboot/kexec

Leaving the DRM driver enabled on reboot or kexec has the annoying
effect of leaving the display generating transactions whilst the
IOMMU has been shut down.

In turn, the IOMMU driver (which shares its interrupt line with
the VOP) starts warning either on shutdown or when entering the
secondary kernel in the kexec case (nothing is expected on that
front).

A cheap way of ensuring that things are nicely shut down is to
register a shutdown callback in the platform driver.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Vicente Bergas <vicencb@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180805124807.18169-1-marc.zyngier@arm.com
Cc: stable@vger.kernel.org
drivers/gpu/drm/rockchip/rockchip_drm_drv.c