From: Jyri Sarha <jsarha@ti.com>
To: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>
Cc: "Valkeinen, Tomi" <tomi.valkeinen@ti.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Calling drm_atomic_helper_check_modeset() after drm_atomic_helper_check_planes()
Date: Sun, 19 Jun 2016 22:57:53 +0300 [thread overview]
Message-ID: <5766F941.3050909@ti.com> (raw)
Hi,
The documentation of drm_atomic_helper_check_modeset() says:
"Drivers which update ->mode_changed (e.g. in their ->atomic_check hooks
if a plane update can't be done without a full modeset) _must_ call this
function afterwards after that change. It is permitted to call this
function multiple times for the same update, e.g. when the
->atomic_check functions depend upon the adjusted dotclock for fifo
space allocation and watermark computation."
Then drm_crtc_helper_funcs mode_fixup() callback documentations says:
"Atomic drivers which need to inspect and adjust more state should
instead use the @atomic_check callback."
Now an atomic driver that needs to do the both in the check phase:
update ->mode_changed and inspect and adjust the mode, is in trouble.
This is because any adjusted_mode modifications are reset by the
afterwards call of drm_atomic_helper_check_modeset().
I can get the atomic tilcdc driver working either: by using the
crtc_helper mode_fixup() calback, tuning the mode once more in
mode_set_nofb(), or calling drm_atomic_helper_check_modeset() last in
drm_mode_config_funcs atomic_check() callback.
What is the right thing to do? Any of these three approaches (and
possibly updating the documentation), or some other option that I did
not think of?
Best regards,
Jyri
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2016-06-19 19:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-19 19:57 Jyri Sarha [this message]
2016-06-19 21:12 ` Calling drm_atomic_helper_check_modeset() after drm_atomic_helper_check_planes() Daniel Vetter
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=5766F941.3050909@ti.com \
--to=jsarha@ti.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=tomi.valkeinen@ti.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.