Skip to contentSkip to conversation

drm/komeda: Don't flush inactive pipes

PATCH In review Mihail Atanassov 2 participants 3 messages Oct 10, 2019 – Oct 21, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/komeda: Don't flush inactive pipes

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.

---
 drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +2 -1
index 8820ce15ce37..ae274902ff92 100644
@@ -82,7 +82,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_PLANE_COMMIT_ACTIVE_ONLY);
 
 	drm_atomic_helper_commit_modeset_enables(dev, old_state);
 
Signature · 6 lines
2.23.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 15 lines · Mihail Atanassov

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.

---
 drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +0 -0
index 8820ce15ce37..ae274902ff92 100644

drivers/gpu/drm/arm/display/komeda/komeda_kms.c static void komeda_kms_commit_tail(struct drm_atomic_state *old_state) · line 87

Quoted 7 lines
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +2 -1
@@ -82,7 +82,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_PLANE_COMMIT_ACTIVE_ONLY);
 

Looks good to me.

drivers/gpu/drm/arm/display/komeda/komeda_kms.c static void komeda_kms_commit_tail(struct drm_atomic_state *old_state) · line 89

Quoted 2 lines
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +0 -0
 	drm_atomic_helper_commit_modeset_enables(dev, old_state);
 

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 19 lines · On Wednesday, 16 October 2019 09:21:24 BST james qian wang (Arm Technology…
Quoted 18 lines · Mihail Atanassov

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.

---
 drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +0 -0
index 8820ce15ce37..ae274902ff92 100644
@@ -82,7 +82,8 @@ static void komeda_kms_commit_tail(struct drm_atomic_state *old_state)
 
 	drm_atomic_helper_commit_modeset_disables(dev, old_state);
 
Quoted 7 lines

drivers/gpu/drm/arm/display/komeda/komeda_kms.c static void komeda_kms_commit_tail(struct drm_atomic_state *old_state) · line 87

Quoted 4 lines
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +2 -1
-	drm_atomic_helper_commit_planes(dev, old_state, 0);
+	drm_atomic_helper_commit_planes(dev, old_state,
+					DRM_PLANE_COMMIT_ACTIVE_ONLY);
 

Looks good to me.

Thanks for the review, applied to drm-misc-fixes - b88639b8e3808c948169af390bd7e84e909bde8d.

Quoted 4 lines
Quoted 3 lines
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +0 -0
 	drm_atomic_helper_commit_modeset_enables(dev, old_state);
 
Signature · 1 line
Mihail