drm: vc4: Add status of which display is updated through vblank
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Tue, 4 Jun 2019 11:14:30 +0000 (12:14 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:00 +0000 (16:33 +0100)
commit18e6c25a8def8bddac03c7da026fecde799b56e5
tree3a8ae72a126f3f6e3aa8ba650c3188eb9e587b53
parentdce906208043153cb15543e3d39b4defbf0ce070
drm: vc4: Add status of which display is updated through vblank

Previously multiple  displays were slaved off the same SMI
interrupt, triggered by HVS channel 1 (HDMI0).
This doesn't work if you only have a DPI or DSI screen (HVS channel
0), and gives slightly erroneous results with dual HDMI as the
events for HDMI1 are incorrect.

Use SMIDSW0 and SMIDSW1 registers to denote which display has
triggered the vblank.
Handling should be backwards compatible with older firmware.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/gpu/drm/vc4/vc4_firmware_kms.c