Skip to content

Commit

Permalink
drm/vc4: Disable overrun interrupts
Browse files Browse the repository at this point in the history
We have a read-modify-write race when updating SCALER_DISPCTRL for
underrun and end-of-frame interrupts.
Ideally it would be fixed via a spinlock or similar, but that will
require a reasonable amount of study to ensure we don't get deadlocks.

The underrun reporting is only for debug, so disable it for now.

Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 committed Feb 8, 2024
1 parent 0c8e9f7 commit 8c9e297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vc4/vc4_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ static void vc4_crtc_handle_page_flip(struct vc4_crtc *vc4_crtc)
* the CRTC and encoder already reconfigured, leading to
* underruns. This can be seen when reconfiguring the CRTC.
*/
if (vc4->gen < VC4_GEN_6)
if (0 && vc4->gen < VC4_GEN_6)
vc4_hvs_unmask_underrun(hvs, chan);
}
spin_unlock(&vc4_crtc->irq_lock);
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vc4/vc4_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static void vc4_atomic_commit_tail(struct drm_atomic_state *state)
if (WARN_ON(IS_ERR(new_hvs_state)))
return;

if (vc4->gen < VC4_GEN_6) {
if (0 && vc4->gen < VC4_GEN_6) {
struct drm_crtc_state *new_crtc_state;
struct drm_crtc *crtc;
int i;
Expand Down

0 comments on commit 8c9e297

Please sign in to comment.