[PATCH v2] drm/rockchip: shutdown drm subsystem on shutdown

Brian Norris briannorris at chromium.org
Fri Apr 12 01:54:04 UTC 2019


On Tue, Apr 2, 2019 at 4:38 AM Heiko Stuebner <heiko at sntech.de> wrote:
>
> From: Vicente Bergas <vicencb at gmail.com>
>
> As explained by Robin Murphy:
> > the IOMMU shutdown disables paging, so if the VOP is still
> > scanning out then that will result in whatever IOVAs it was using now going
> > straight out onto the bus as physical addresses.
>
> We had a more radical approach before in commit
> 7f3ef5dedb14 ("drm/rockchip: Allow driver to be shutdown on reboot/kexec")
> but that resulted in new warnings and oopses on shutdown on rk3399
> chromeos devices.
>
> So second try is resurrecting Vicentes shutdown change which should
> achieve the same result but in a less drastic way.

Works without complaints on RK3399 Scarlet devices:

Tested-by: Brian Norris <briannorris at chromium.org>

Can't vouch for kexec.


More information about the dri-devel mailing list