From: Liu Ying <gnuiyl@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: [PATCH] drm: Improve kerneldoc for mode_fixup callbacks and encoder's ->atomic_check
Date: Mon, 30 May 2016 18:02:00 +0800 [thread overview]
Message-ID: <1464602520-12437-1-git-send-email-gnuiyl@gmail.com> (raw)
To match with the atomic context, this patch updates kerneldoc to clarify
that all mode_fixup callbacks and encoder's ->atomic_check callback are
called only when enabling a display mode on the relevant CRTC.
Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Liu Ying <gnuiyl@gmail.com>
---
include/drm/drm_crtc.h | 11 ++++++-----
include/drm/drm_modeset_helper_vtables.h | 29 ++++++++++++++++-------------
2 files changed, 22 insertions(+), 18 deletions(-)
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index d1559cd..6e7ea36 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -1571,11 +1571,12 @@ struct drm_bridge_funcs {
*
* NOTE:
*
- * This function is called in the check phase of atomic modesets, which
- * can be aborted for any reason (including on userspace's request to
- * just check whether a configuration would be possible). Drivers MUST
- * NOT touch any persistent state (hardware or software) or data
- * structures except the passed in @state parameter.
+ * This function is called in the check phase of atomic modesets only
+ * when enabling a display mode on the relevant CRTC, which can be
+ * aborted for any reason (including on userspace's request to just
+ * check whether a configuration would be possible). Drivers MUST NOT
+ * touch any persistent state (hardware or software) or data structures
+ * except the passed in @state parameter.
*
* RETURNS:
*
diff --git a/include/drm/drm_modeset_helper_vtables.h b/include/drm/drm_modeset_helper_vtables.h
index d4619dc..269adfb 100644
--- a/include/drm/drm_modeset_helper_vtables.h
+++ b/include/drm/drm_modeset_helper_vtables.h
@@ -119,11 +119,12 @@ struct drm_crtc_helper_funcs {
*
* NOTE:
*
- * This function is called in the check phase of atomic modesets, which
- * can be aborted for any reason (including on userspace's request to
- * just check whether a configuration would be possible). Atomic drivers
- * MUST NOT touch any persistent state (hardware or software) or data
- * structures except the passed in adjusted_mode parameter.
+ * This function is called in the check phase of atomic modesets only
+ * when enabling a display mode, which can be aborted for any reason
+ * (including on userspace's request to just check whether a
+ * configuration would be possible). Atomic drivers MUST NOT touch any
+ * persistent state (hardware or software) or data structures except the
+ * passed in adjusted_mode parameter.
*
* This is in contrast to the legacy CRTC helpers where this was
* allowed.
@@ -443,10 +444,11 @@ struct drm_encoder_helper_funcs {
*
* NOTE:
*
- * This function is called in the check phase of atomic modesets, which
- * can be aborted for any reason (including on userspace's request to
- * just check whether a configuration would be possible). Atomic drivers
- * MUST NOT touch any persistent state (hardware or software) or data
+ * This function is called in the check phase of atomic modesets only
+ * when enabling a display mode on the relevant CRTC, which can be
+ * aborted for any reason (including on userspace's request to just
+ * check whether a configuration would be possible). Atomic drivers MUST
+ * NOT touch any persistent state (hardware or software) or data
* structures except the passed in adjusted_mode parameter.
*
* This is in contrast to the legacy CRTC helpers where this was
@@ -623,10 +625,11 @@ struct drm_encoder_helper_funcs {
*
* NOTE:
*
- * This function is called in the check phase of an atomic update. The
- * driver is not allowed to change anything outside of the free-standing
- * state objects passed-in or assembled in the overall &drm_atomic_state
- * update tracking structure.
+ * This function is called in the check phase of an atomic update only
+ * when enabling a display mode on the relevant CRTC. The driver is not
+ * allowed to change anything outside of the free-standing state objects
+ * passed-in or assembled in the overall &drm_atomic_state update
+ * tracking structure.
*
* RETURNS:
*
--
2.7.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
reply other threads:[~2016-05-30 10:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1464602520-12437-1-git-send-email-gnuiyl@gmail.com \
--to=gnuiyl@gmail.com \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox