drm/vc4: Report HVS underrun errors
authorBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 20 Feb 2019 15:51:22 +0000 (16:51 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 6 Mar 2019 13:47:59 +0000 (14:47 +0100)
commit531a1b622da9adbf9f084d2ac4bf6a9f6a9acf28
tree7feebf8898230a8b20fe529e5e3ff5f9290c7b5c
parentdbfbe717ccbb5b42815ef4bc35a66e2191b2e98d
drm/vc4: Report HVS underrun errors

Add a debugfs entry and helper for reporting HVS underrun errors as
well as helpers for masking and unmasking the underrun interrupts.
Add an IRQ handler and initial IRQ configuration.
Rework related register definitions to take the channel number.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190220155124.25022-2-paul.kocialkowski@bootlin.com
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_debugfs.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_hvs.c
drivers/gpu/drm/vc4/vc4_kms.c
drivers/gpu/drm/vc4/vc4_regs.h