From: Jyri Sarha <jsarha@ti.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
"Tomi Valkeinen" <tomi.valkeinen@ti.com>
Cc: rmk+kernel@arm.linux.org.uk, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH RFC] drm/atomic: Fall back to legacy call back in *_connector_dpms()
Date: Mon, 15 Feb 2016 11:47:46 +0200 [thread overview]
Message-ID: <56C19EC2.6070905@ti.com> (raw)
In-Reply-To: <20160212171543.GQ23290@intel.com>
On 02/12/16 19:15, Ville Syrjälä wrote:
> On Fri, Feb 12, 2016 at 07:08:46PM +0200, Tomi Valkeinen wrote:
>> On 12/02/16 17:34, Daniel Vetter wrote:
>>> On Fri, Feb 12, 2016 at 05:17:19PM +0200, Jyri Sarha wrote:
>>>> Fall back to legacy drm_helper_connector_dpms() call back in
>>>> drm_atomic_helper_connector_dpms() if DRIVER_ATOMIC feature is not
>>>> present.
>>>>
>>>> Calling drm_atomic_helper_connector_dpms() from non atomic driver
>>>> causes undefined behavior. This is a problem with componentized
>>>> encoder/connector drivers that may be bound to both atomic and
>>>> non atomic drivers.drm-next-tilcdc-fixes
>>>>
>>>> Signed-off-by: Jyri Sarha <jsarha@ti.com>
>>>> ---
>>>> This is just an alternative to this:
>>>> https://lists.freedesktop.org/archives/dri-devel/2016-January/098867.html
>>>
>>> I like the linked patch much better, since non-atomic really should die.
>>> Inflicting non-atomic on atomic helpers is bad imo, so nack from me on
>>> this patch here.
>>
>> I mostly agree, but we are in a transition period from non-atomic to
>> atomic. When all drivers have been converted to atomic, it should be
>> easy to grep for code using DRIVER_ATOMIC (or similar), and remove all
>> the non-atomic support code.
>>
>> In my opinion it should be considered case by case if the
>> non-atomic/atomic compat code should be added to the generic functions
>> or to all the drivers using that functionality.
>>
>> In this case, if it only affects tda998x (but does it?), perhaps the
>> patch in the link is better.
>
> Maybe we need a hybrid helper that just calls the atomic
> or non-atomic helper approppriately.
>
Would it actually be better if the legacy callback would automatically
call atomic version if the driver has DRIVER_ATOMIC set?
I do not have any strong opinions on this, just as long as one of the
patches gets merged. With quick grepping I can see that there are
several DRM component drivers, but I have no idea if anything else but
the tda998x is being used by more than one DRM master driver.
Best regards,
Jyri
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-02-15 9:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-12 15:17 [PATCH RFC] drm/atomic: Fall back to legacy call back in *_connector_dpms() Jyri Sarha
2016-02-12 15:34 ` Daniel Vetter
2016-02-12 17:08 ` Tomi Valkeinen
2016-02-12 17:15 ` Ville Syrjälä
2016-02-15 9:47 ` Jyri Sarha [this message]
2016-02-15 11:09 ` 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=56C19EC2.6070905@ti.com \
--to=jsarha@ti.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=rmk+kernel@arm.linux.org.uk \
--cc=tomi.valkeinen@ti.com \
--cc=ville.syrjala@linux.intel.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.