From: Mario Limonciello <mario.limonciello@amd.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: "Leo Li" <sunpeng.li@amd.com>,
"Rodrigo Siqueira" <siqueira@igalia.com>,
"Christian König" <christian.koenig@amd.com>,
amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org,
"Jani Nikula" <jani.nikula@linux.intel.com>,
"Yaroslav Bolyukin" <iam@0la.ch>,
"Yaroslav Bolyukin" <iam@lach.pw>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Wayne Lin" <Wayne.Lin@amd.com>,
"Harry Wentland" <harry.wentland@amd.com>,
"Alex Deucher" <alexander.deucher@amd.com>
Subject: Re: [PATCH v7 0/7] VESA DisplayID fixed DSC BPP value support
Date: Fri, 25 Sep 2026 09:00:49 -0500 [thread overview]
Message-ID: <9a917ebe-9d9d-409d-8913-89b448425726@amd.com> (raw)
In-Reply-To: <5b7332c6bc0c7b7f9ba0d95477a5b9f438a07ff6@intel.com>
On 1/9/26 02:15, Jani Nikula wrote:
> On Thu, 08 Jan 2026, Yaroslav Bolyukin <iam@0la.ch> wrote:
>> Hi,
>>
>> Now that every patch in this patchset has a review, any chance this can
>> be picked up for drm-misc-next?
>>
>> Or should it go through amd-staging-drm-next, given that the main EDID
>> change is only handled for amdgpu driver right now?
>
> As I said in [1] I'm hoping to get Ville's approval on the approach, as
> he had earlier concerns [2].
>
> BR,
> Jani.
>
> [1] https://lore.kernel.org/r/b0b1567707c91806e3758bf0b678c2038dffb3c2@intel.com
>
> [2] https://lore.kernel.org/r/aPF32XpVst5mPVz7@intel.com
>
Ville,
Can you take a look at this series per Jani's comments? Here is the
full series lore link if you don't have it.
https://lore.kernel.org/all/20251202110218.9212-1-iam@lach.pw/
>>
>> Best regards,
>> Lach
>>
>> On 2025-12-02 12:02, Yaroslav Bolyukin wrote:
>>> VESA DisplayID spec allows the device to force its DSC bits per pixel
>>> value.
>>>
>>> For example, the HTC Vive Pro 2 VR headset uses this value in
>>> high-resolution modes (3680x1836@90-120, 4896x2448@90-120), and when the
>>> kernel doesn't respect this parameter, garbage is displayed on the HMD
>>> instead.
>>>
>>> Me and other users have successfully tested the old (v3) version of this
>>> patch (which was applying DSC BPP value unconditionally, thus incorrect:
>>> https://lkml.org/lkml/2023/2/26/116) on Vive Pro 2 and
>>> Bigscreen Beyond VR headsets, and have been using it daily, it is known
>>> to work and doesn't seem to break anything else since 2022.
>>>
>>> Previously, I didn't have enough dedication to get it merged, I hope
>>> this time I will manage to get it to v6.19 :D
>>>
>>> Regarding driver support - I have looked at amdgpu and Nvidia's
>>> open-gpu-kernel-modules, and both seem to have some indication for this
>>> value; however, in Linux, it is unused in both.
>>>
>>> First patch implements parsing of DSC BPP values and display mode VII
>>> timings flag which mandates that the DSC BPP value should actually be
>>> used for this display mode.
>>>
>>> The second patch implements handling of this value for AMDGPU driver.
>>>
>>> The only thing that I don't like in the current implementation, is how
>>> the value of `dsc_passthrough_timings_support` flag is propagated from
>>> the connector display modes to the mode created in `DRM_IOCTL_MODE_SETCRTC`
>>> handler (which is used for VR display initialization in Monado and
>>> StreamVR), it feels like this flag should be initialized by the kernel
>>> itself, but as far as I can see there is no correct way to do this, as
>>> the timing constraints calculation belongs to the individual drivers.
>>>
>>> Another problem with how this flag is set, is that there is no hard
>>> connection between modes creaded in `SETCRTC` and the modes actually
>>> defined by connector, so the current implementation searches for the
>>> resolution and refresh rate that match exactly declared to obtain
>>> this flag value. This might not be correct, as device might not support
>>> the other mode at all, but the situation won't be any worse for the
>>> existing devices, as the currently they don't work at all, and there
>>> is no other known devices on the market to check their assumption in
>>> regard to this part of specs, and the spec does not describe how that
>>> should work.
>>>
>>> Both of those downsides are due to the fact my understanding of DRM
>>> subsystem is not that high. If another implementation would be proposed
>>> by AMDGPU maintainers - I will gladly implement it here.
>>>
>>> v6->v7:
>>> * Print DSC bpp value in fixed point format instead of x16
>>> * MSO should only be enabled for eDP, not the other way round.
>>> v5->v6:
>>> * amdgpu: only apply dsc bpp to modes that match exactly the declared
>>> modes with this flag set.
>>> v4->v5:
>>> * The patch was split into multiple
>>> * Disabled MSO parsing for eDP displays
>>> * Disabled MSO logs if not used
>>> * Minor codestyle changes: lines moved around, naming, passing of
>>> function arguments
>>> v3->v4:
>>> * This patch now parses timings support flag on type VII block, instead
>>> of applying it unconditionally. Previously I didn't understand the
>>> spec properly.
>>> * Now it also is not being applied for non-supported and/or non-VII
>>> blocks in amdgpu driver.
>>>
>>> Regards,
>>>
>>> Lach
>>>
>>> Yaroslav Bolyukin (7):
>>> drm/edid: rename VESA block parsing functions to more generic name
>>> drm/edid: prepare for VESA vendor-specific data block extension
>>> drm/edid: MSO should only be used for non-eDP displays
>>> drm/edid: parse DSC DPP passthru support flag for mode VII timings
>>> drm/edid: for consistency, use mask everywhere for block rev parsing
>>> drm/edid: parse DRM VESA dsc bpp target
>>> drm/amd: use fixed dsc bits-per-pixel from edid
>>>
>>> .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 16 +++
>>> drivers/gpu/drm/drm_displayid_internal.h | 11 ++
>>> drivers/gpu/drm/drm_edid.c | 102 +++++++++++-------
>>> include/drm/drm_connector.h | 6 ++
>>> include/drm/drm_modes.h | 10 ++
>>> 5 files changed, 109 insertions(+), 36 deletions(-)
>>>
>
prev parent reply other threads:[~2026-09-25 14:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 11:02 Yaroslav Bolyukin
2025-12-02 11:02 ` [PATCH v7 1/7] drm/edid: rename VESA block parsing functions to more generic name Yaroslav Bolyukin
2025-12-02 11:02 ` [PATCH v7 2/7] drm/edid: prepare for VESA vendor-specific data block extension Yaroslav Bolyukin
2025-12-02 11:02 ` [PATCH v7 3/7] drm/edid: MSO should only be used for non-eDP displays Yaroslav Bolyukin
2025-12-04 12:08 ` Jani Nikula
2025-12-02 11:02 ` [PATCH v7 4/7] drm/edid: parse DSC DPP passthru support flag for mode VII timings Yaroslav Bolyukin
2025-12-04 12:11 ` Jani Nikula
2025-12-02 11:02 ` [PATCH v7 5/7] drm/edid: for consistency, use mask everywhere for block rev parsing Yaroslav Bolyukin
2025-12-04 12:11 ` Jani Nikula
2025-12-02 11:02 ` [PATCH v7 6/7] drm/edid: parse DRM VESA dsc bpp target Yaroslav Bolyukin
2025-12-04 12:12 ` Jani Nikula
2025-12-02 11:02 ` [PATCH v7 7/7] drm/amd: use fixed dsc bits-per-pixel from edid Yaroslav Bolyukin
2025-12-29 2:25 ` Lin, Wayne
2026-01-08 20:45 ` [PATCH v7 0/7] VESA DisplayID fixed DSC BPP value support Yaroslav Bolyukin
2026-01-09 8:15 ` Jani Nikula
2026-09-25 14:00 ` Mario Limonciello [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=9a917ebe-9d9d-409d-8913-89b448425726@amd.com \
--to=mario.limonciello@amd.com \
--cc=Wayne.Lin@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=iam@0la.ch \
--cc=iam@lach.pw \
--cc=jani.nikula@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=siqueira@igalia.com \
--cc=sunpeng.li@amd.com \
--cc=tzimmermann@suse.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®