From: Philipp Zabel <p.zabel@pengutronix.de>
To: Dave Airlie <airlied@gmail.com>, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/3] drm: add connector info/property for non-desktop displays
Date: Thu, 02 Nov 2017 12:04:23 +0100 [thread overview]
Message-ID: <1509620663.10280.1.camel@pengutronix.de> (raw)
In-Reply-To: <20171025063023.12584-1-airlied@gmail.com>
On Wed, 2017-10-25 at 16:30 +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> This adds the infrastructure needed to quirk displays
> using edid and to mark them as non-desktop to denote
> that userspace shouldn't display a standard desktop on them.
>
> A non-desktop display is one which doesn't work like
> a normal rectangular monitor or requires some transformation
> of the output by the rendering process to make sense.
>
> This is meant to cover head mounted devices like HTC Vive.
>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> ---
> drivers/gpu/drm/drm_connector.c | 13 +++++++++++++
> drivers/gpu/drm/drm_edid.c | 8 ++++++--
> include/drm/drm_connector.h | 5 +++++
> include/drm/drm_mode_config.h | 7 +++++++
> 4 files changed, 31 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
> index 704fc89..f9d3538 100644
> --- a/drivers/gpu/drm/drm_connector.c
> +++ b/drivers/gpu/drm/drm_connector.c
> @@ -234,6 +234,10 @@ int drm_connector_init(struct drm_device *dev,
> config->link_status_property,
> 0);
>
> + drm_object_attach_property(&connector->base,
> + config->non_desktop_property,
> + 0);
> +
> if (drm_core_check_feature(dev, DRIVER_ATOMIC)) {
> drm_object_attach_property(&connector->base, config->prop_crtc_id, 0);
> }
> @@ -811,6 +815,11 @@ int drm_connector_create_standard_properties(struct drm_device *dev)
> return -ENOMEM;
> dev->mode_config.link_status_property = prop;
>
> + prop = drm_property_create_bool(dev, DRM_MODE_PROP_IMMUTABLE, "non-desktop");
How to deal with devices that may switch to non-desktop mode dynamically
during runtime, such as PSVR (I don't know if there are or will be
others)?
The PSVR connection box initially (in "cinematic mode") passes through
its HDMI input to its external HDMI output unchanged and renders the
input image as a floating plane on the HMD.
The pass-through HDMI output may be connected to the system's only
monitor, therefor PSVR doesn't belong in the drm_edid non-desktop quirk
list during boot.
Via USB commands the connection box can be switched to "VR mode", where
it passes through its HDMI input to the HMD and renders a re-undistorted
version of one of the eye views to its HDMI output.
Should the non-desktop property be made mutable for such devices, or
should this just be left to userspace completely, keeping them
non-desktop=false?
regards
Philipp
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-11-02 11:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-25 6:30 [PATCH 1/3] drm: add connector info/property for non-desktop displays Dave Airlie
2017-10-25 6:30 ` [PATCH 2/3] drm/fb: add support for not enabling fbcon on " Dave Airlie
2017-10-25 6:30 ` [PATCH 3/3] drm/edid: quirk HTC vive headset as non-desktop Dave Airlie
2017-10-25 11:15 ` [PATCH 1/3] drm: add connector info/property for non-desktop displays Daniel Stone
2017-10-25 19:24 ` Dave Airlie
2017-10-25 19:27 ` Dave Airlie
2017-10-25 20:23 ` Keith Packard
2017-10-30 10:13 ` Daniel Vetter
2017-11-02 11:04 ` Philipp Zabel [this message]
2017-11-11 0:20 ` [PATCH 0/3] drm: Add connector info/property for non-desktop [v2] Keith Packard
2017-11-11 0:20 ` [PATCH 1/3] drm: add connector info/property for non-desktop displays [v2] Keith Packard
2017-11-11 0:20 ` [PATCH 2/3] drm/fb: add support for not enabling fbcon on " Keith Packard
2017-11-11 0:20 ` [PATCH 3/3] drm/edid: quirk HTC vive headset as non-desktop. [v2] Keith Packard
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=1509620663.10280.1.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=airlied@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).