blob: 8197204eeb9cd365a83c5b80d99fda9e67fdaaf5 [file] [log] [blame]
From 6a70e11c22250d1f6b5642e357c50a8a6451e9e9 Mon Sep 17 00:00:00 2001
From: Mihail Atanassov <>
Date: Thu, 10 Oct 2019 10:30:07 +0000
Subject: [PATCH] drm/komeda: Don't flush inactive pipes
commit b88639b8e3808c948169af390bd7e84e909bde8d upstream.
HW doesn't allow flushing inactive pipes and raises an MERR interrupt
if you try to do so. Stop triggering the MERR interrupt in the
middle of a commit by calling drm_atomic_helper_commit_planes
with the ACTIVE_ONLY flag.
Reviewed-by: James Qian Wang (Arm Technology China) <>
Signed-off-by: Mihail Atanassov <>
Signed-off-by: Paul Gortmaker <>
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_kms.c b/drivers/gpu/drm/arm/display/komeda/komeda_kms.c
index 86f6542afb40..73e648bed1ff 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_kms.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_kms.c
@@ -85,7 +85,8 @@ static void komeda_kms_commit_tail(struct drm_atomic_state *old_state)
drm_atomic_helper_commit_modeset_disables(dev, old_state);
- drm_atomic_helper_commit_planes(dev, old_state, 0);
+ drm_atomic_helper_commit_planes(dev, old_state,
drm_atomic_helper_commit_modeset_enables(dev, old_state);