[PATCH v3 2/4] drm/atomic: Add error_code element in atomic_state
Arun R Murthy
arun.r.murthy at intel.com
Fri Aug 22 07:00:02 UTC 2025
Now that a proper error code will be returned to the user on any failure
in atomic_ioctl() via struct drm_mode_atomic, add a new element
error_code in the struct drm_atomic_state so as to hold the error code
during the atomic_check() and atomic_commit() phases.
Signed-off-by: Arun R Murthy <arun.r.murthy at intel.com>
---
include/drm/drm_atomic.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index 38636a593c9d98cadda85ccd67326cb152f0dd27..d380001b24b4223baa54dae6c3c43e19dfb1958d 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -524,6 +524,13 @@ struct drm_atomic_state {
* commit without blocking.
*/
struct work_struct commit_work;
+
+ /* @error_code
+ *
+ * struct to convey user readable error to the user.
+ * Error codes defined in enum drm_mode_atomic_failure_flags
+ */
+ struct drm_mode_atomic_err_code *error_code;
};
void __drm_crtc_commit_free(struct kref *kref);
--
2.25.1
More information about the Intel-xe
mailing list