Artem Lapkin
d4ec1ffbda
drm: meson_drv add shutdown function
commit fa0c16caf3d73ab4d2e5d6fa2ef2394dbec91791 upstream.
Problem: random stucks on reboot stage about 1/20 stuck/reboots
// debug kernel log
[ 4.496660] reboot: kernel restart prepare CMD:(null)
[ 4.498114] meson_ee_pwrc c883c000.system-controller:power-controller: shutdown begin
[ 4.503949] meson_ee_pwrc c883c000.system-controller:power-controller: shutdown domain 0:VPU...
...STUCK...
Solution: add shutdown function to meson_drm driver
// debug kernel log
[ 5.231896] reboot: kernel restart prepare CMD:(null)
[ 5.246135] [drm:meson_drv_shutdown]
...
[ 5.259271] meson_ee_pwrc c883c000.system-controller:power-controller: shutdown begin
[ 5.274688] meson_ee_pwrc c883c000.system-controller:power-controller: shutdown domain 0:VPU...
[ 5.338331] reboot: Restarting system
[ 5.358293] psci: PSCI_0_2_FN_SYSTEM_RESET reboot_mode:0 cmd:(null)
bl31 reboot reason: 0xd
bl31 reboot reason: 0x0
system cmd 1.
...REBOOT...
Tested: on VIM1 VIM2 VIM3 VIM3L khadas sbcs - 1000+ successful reboots
and Odroid boards, WeTek Play2 (GXBB)
Fixes: bbbe775ec5
("drm: Add support for Amlogic Meson Graphic Controller")
Signed-off-by: Artem Lapkin <art@khadas.com>
Tested-by: Christian Hewitt <christianshewitt@gmail.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210302042202.3728113-1-art@khadas.com
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-17 17:06:19 +01:00
..
2019-05-28 09:39:08 +02:00
2019-12-10 10:09:01 +01:00
2020-07-03 10:12:30 +02:00
2019-05-21 11:28:45 +02:00
2021-03-17 17:06:19 +01:00
2020-07-03 10:12:29 +02:00
2020-12-30 11:53:18 +01:00
2019-08-09 12:06:14 +02:00
2020-08-23 17:36:59 -05:00
2019-12-10 10:09:01 +01:00
2020-08-23 17:36:59 -05:00
2018-11-13 13:27:51 +01:00
2020-04-28 11:17:27 +02:00
2019-05-21 11:28:45 +02:00
2020-01-08 13:51:56 +01:00
2019-12-10 10:08:45 +01:00
2020-07-24 08:48:05 +10:00
2020-05-05 10:19:33 +02:00
2020-05-05 10:19:33 +02:00
2020-05-27 14:31:42 +03:00
2019-05-21 11:28:45 +02:00
2020-03-10 10:51:24 +01:00
2020-03-10 10:51:24 +01:00
2020-07-02 10:36:56 +02:00
2019-12-10 10:09:38 +01:00
2019-08-22 17:54:05 +02:00
2019-07-17 12:47:57 +02:00