drm/vc4: Ignore HVS unless initialised
authorPhil Elwell <phil@raspberrypi.org>
Fri, 19 Jul 2019 13:29:28 +0000 (14:29 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:01 +0000 (16:33 +0100)
commitc099456ddb50363b00b9bda735f6eda2874d681c
tree590a6c19f751538d3bab597b055fd5b2f25ee751
parent01dd2312cb9a991d8e3b7a40a7806c2e163ec622
drm/vc4: Ignore HVS unless initialised

An upstream commit to report HVS underruns causes VC4 in firmware KMS
mode to cross into the HVS side, where it crashes due to a NULL hvs
pointer.

Make the underrun masking conditional on the hvs pointer being
initialised.

Fixes: 531a1b622da9 ("drm/vc4: Report HVS underrun errors")

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_kms.c