From: Manasi Navare <manasi.d.navare@intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: Daniel Vetter <daniel.vetter@intel.com>,
intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH RFC v3] drm: Add a new connector atomic property for link status
Date: Tue, 29 Nov 2016 08:18:54 -0800 [thread overview]
Message-ID: <20161129161854.GA1774@intel.com> (raw)
In-Reply-To: <20161129085914.4s6icczcaiigncfd@phenom.ffwll.local>
On Tue, Nov 29, 2016 at 09:59:14AM +0100, Daniel Vetter wrote:
> On Mon, Nov 28, 2016 at 05:07:52PM -0800, Manasi Navare wrote:
> > On Thu, Nov 24, 2016 at 08:51:35AM +0100, Daniel Vetter wrote:
> > > On Wed, Nov 23, 2016 at 11:28:21PM -0800, Manasi Navare wrote:
> > > > This is RFC patch for adding a connector link-status property
> > > > and making it atomic by adding it to the drm_connector_state.
> > > > This is to make sure its wired properly in drm_atomic_connector_set_property
> > > > and drm_atomic_connector_get_property functions.
> > > >
> > > > v3:
> > > > * Fixed a build error (Jani Saarinen)
> > > > v2:
> > > > * Removed connector->link_status (Daniel Vetter)
> > > > * Set connector->state->link_status in drm_mode_connector_set_link_status_property
> > > > (Daniel Vetter)
> > > > * Set the connector_changed flag to true if connector->state->link_status changed.
> > > > * Reset link_status to GOOD in update_output_state (Daniel Vetter)
> > > > * Never allow userspace to set link status from Good To Bad (Daniel Vetter)
> > > >
> > > > Cc: Jani Nikula <jani.nikula@linux.intel.com>
> > > > Cc: Daniel Vetter <daniel.vetter@intel.com>
> > > > Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
> > > > Cc: Chris Wilson <chris@chris-wilson.co.uk>
> > > > Cc: Sean Paul <seanpaul@chromium.org>
> > >
> > > You lost all the acked-by from AMD about the link-status property. We need
> > > those.
> > >
> > > > Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
> > >
> > > Yeah I think this should work, but obviously testing has the final say.
> > > Some nitpicks below, then it's r-b: me. But I think we also need to polish
> > > the kernel-doc a bit more to address Sean Paul's questions.
> > > -Daniel
> > >
> >
> > I tested it with SNA driver with Chris's changes to read the link-status
> > property, but It is not able to detect the link-status property being set to BAD
> > and hence it does not trigger a new modeset.
> > Do we need to make any changes to the SNA driver now that this is made a ATOMIC
> > property so that GETCONNECTOR IOCTL can still read the correct value
> > of this property throught drm_atomic_get_property() interface?
> >
> > Chris, Daniel, any thoughts?
>
> We agreed that it must _not_ be a PROPERTY_ATOMIC property, so that old
> userspace can see it.
>
> > > > @@ -666,6 +683,13 @@ int drm_connector_create_standard_properties(struct drm_device *dev)
> > > > return -ENOMEM;
> > > > dev->mode_config.tile_property = prop;
> > > >
> > > > + prop = drm_property_create_enum(dev, DRM_MODE_PROP_ATOMIC, "link-status",
>
> I.e. remote DRM_MODE_PROP_ATOMIC here. I thought we've discussed this a
> lot already ...?
>
> Cheers, Daniel
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> http://blog.ffwll.ch
Hi Daniel,
Yes this is where I was confused in the beginning that whether we need the flag.
Ok so this property will not have atomic flag, so drm-mode_object_get_properties should
call the drm_object_property_get_value() and that should expose
the value to userspace right?
Manasi
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2016-11-29 16:18 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-23 1:30 [PATCH RFC] drm: Add a new connector atomic property for link status Manasi Navare
2016-11-23 2:27 ` Sean Paul
2016-11-23 8:09 ` Daniel Vetter
2016-11-23 14:40 ` Sean Paul
2016-11-23 15:15 ` Jani Nikula
2016-11-23 15:32 ` Sean Paul
2016-11-23 15:43 ` Ville Syrjälä
2016-11-23 16:05 ` [Intel-gfx] " Sean Paul
2016-11-23 15:52 ` Jani Nikula
2016-11-23 16:09 ` Sean Paul
2016-11-23 16:11 ` Daniel Vetter
2016-11-29 0:59 ` Manasi Navare
2016-11-29 14:45 ` Sean Paul
2016-11-29 19:43 ` Sean Paul
2016-11-29 20:42 ` Manasi Navare
2016-11-23 10:00 ` Daniel Vetter
2016-11-23 19:07 ` Manasi Navare
2016-11-24 2:38 ` [PATCH RFC v2] " Manasi Navare
2016-11-24 7:28 ` [PATCH RFC v3] " Manasi Navare
2016-11-24 7:51 ` Daniel Vetter
2016-11-28 19:32 ` Manasi Navare
2016-11-29 1:07 ` Manasi Navare
2016-11-29 8:59 ` Daniel Vetter
2016-11-29 16:18 ` Manasi Navare [this message]
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=20161129161854.GA1774@intel.com \
--to=manasi.d.navare@intel.com \
--cc=daniel.vetter@intel.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@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;
as well as URLs for NNTP newsgroup(s).