[PATCH v3 29/38] drm/msm/dp: add MST atomic check to msm_atomic_check()
Yongxing Mou
yongxing.mou at oss.qualcomm.com
Mon Aug 25 14:16:15 UTC 2025
Add a call to drm_dp_mst_atomic_check() within msm_atomic_check() to ensure
proper validation of atomic state changes related to DisplayPort
Multi-Stream Transport (MST).
This complements the existing drm_atomic_helper_check() and allows the MST
framework to perform its own consistency checks during atomic updates,
such as validating connector states and topology changes.
Signed-off-by: Yongxing Mou <yongxing.mou at oss.qualcomm.com>
---
drivers/gpu/drm/msm/msm_atomic.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/msm/msm_atomic.c b/drivers/gpu/drm/msm/msm_atomic.c
index 87a91148a731dc911f30695add4c8f5002770220..3aa0020dec3a90b693ad3d4171cfcffc091aad4c 100644
--- a/drivers/gpu/drm/msm/msm_atomic.c
+++ b/drivers/gpu/drm/msm/msm_atomic.c
@@ -6,6 +6,7 @@
#include <drm/drm_atomic_uapi.h>
#include <drm/drm_vblank.h>
+#include <drm/display/drm_dp_mst_helper.h>
#include "msm_atomic_trace.h"
#include "msm_drv.h"
@@ -207,7 +208,11 @@ int msm_atomic_check(struct drm_device *dev, struct drm_atomic_state *state)
if (ret)
return ret;
- return drm_atomic_helper_check(dev, state);
+ ret = drm_atomic_helper_check(dev, state);
+ if (ret)
+ return ret;
+
+ return drm_dp_mst_atomic_check(state);
}
void msm_atomic_commit_tail(struct drm_atomic_state *state)
--
2.34.1
More information about the Freedreno
mailing list