]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: vop: Add timeout for DSP hold
authorBrian Norris <briannorris@chromium.org>
Fri, 8 Oct 2021 22:31:04 +0000 (15:31 -0700)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 17 Oct 2021 21:47:18 +0000 (23:47 +0200)
commiteb0232e64cc7d741aa6e2ec5ce3076ab38b6fc07
treebb28c386ea208196b305bf5d6c9169ec302c74ef
parentc0798bd011d8af2fa541b2d2ee8dae7898b104c9
drm/rockchip: vop: Add timeout for DSP hold

If hardware is malfunctioning (e.g., misconfigured clocks?), we can get
stuck here forever, holding various DRM locks and eventually locking up
the entire system. It's better to complain loudly and move on, than to
lock up the system.

In local tests, this operation takes less than 20ms.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211008153102.1.I2a5dbaaada35023a9703a8db7af501528fbb6e31@changeid
drivers/gpu/drm/rockchip/rockchip_drm_vop.c