drm/nouveau/disp: don't reject HDMI config on cards without SCDC
Subsystems (3)
PATCH 1/1 drm/nouveau/disp: don't reject HDMI config on cards without SCDC
nv50_hdmi_enable() passes the sink's SCDC capability from its EDID straight through to nvif_outp_hdmi(). On pre-Maxwell-2 cards there is no hdmi->scdc callback, so nvkm_uoutp_mthd_hdmi() rejects the whole configuration with -EINVAL, and nv50_hdmi_enable() returns before hdmi->ctrl() runs and before the AVI and VSI infoframes are sent.
The result on such a card driving an SCDC-capable HDMI 2.0 sink is that HDMI audio silently stops working. Video is unaffected, and nothing is logged, which makes the failure hard to attribute.
SCDC is optional, and the hdmi->scdc() call further down is already guarded against a missing callback. Requesting it on a card that cannot do it need not invalidate the rest of the HDMI configuration, so drop that term from the condition and let the existing guard skip SCDC alone.
Giuseppe Ranieri posted a fix for this to the nouveau list on 2026-01-17, which received no review:
https://ratatoskr.run/nouveau/2026/01/16963412
--- drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +1 -2
@@ -253,8 +253,7 @@ nvkm_uoutp_mthd_hdmi(struct nvkm_outp *outp, void *argv, u32 argc)if (!ior->func->hdmi || args->v0.max_ac_packet >0x1f || - args->v0.rekey >0x7f || - (args->v0.scdc && !ior->func->hdmi->scdc)) + args->v0.rekey >0x7f )return -EINVAL ;if (!args->v0.enable) {
Signature · 1 line
2.43.0
[email protected]
maintainerHi - apologies for missing the patch previously, and thank you for bringing this to my attention!
Would you mind re-sending with the original authorship + a Co-authored- by tag for yourself to make sure we give the original author credit?
Quoted 47 lines · Tano Dzhinski
nv50_hdmi_enable()passes the sink's SCDC capability from its EDID straight through tonvif_outp_hdmi(). On pre-Maxwell-2 cards there is nohdmi->scdccallback, sonvkm_uoutp_mthd_hdmi()rejects the whole configuration with-EINVAL, andnv50_hdmi_enable()returns beforehdmi->ctrl()runs and before the AVI and VSI infoframes are sent.The result on such a card driving an SCDC-capable HDMI 2.0 sink is that
HDMI audio silently stops working. Video is unaffected, and nothing is
logged, which makes the failure hard to attribute.SCDC is optional, and the
hdmi->scdc()call further down is already guarded against a missing callback. Requesting it on a card that cannot
do it need not invalidate the rest of the HDMI configuration, so drop that term from the condition and let the existing guard skip SCDC alone.Giuseppe Ranieri posted a fix for this to the nouveau list on 2026-01-17, which received no review:
https://ratatoskr.run/nouveau/2026/01/16963412Fixes 6c6abab20b99 ("drm/nouveau/disp: add output hdmi configmethod")
Signed-off-by Tano Dzhinski <[email protected]>---
drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c | 3 +--1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +0
-0@@ -253,8 +253,7 @@ nvkm_uoutp_mthd_hdmi(struct nvkm_outp *outp, void *argv, u32 argc)
if (!ior->func->hdmi ||
args->v0.max_ac_packet>0x1f||drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +1
-2- args->v0.rekey > 0x7f || - (args->v0.scdc && !ior->func->hdmi->scdc)) + args->v0.rekey > 0x7f)return
-EINVAL;
if (!args->v0.enable) {
Subject: Re: [PATCH] drm/nouveau/disp: don't reject HDMI config on cards without SCDC
Hi Lyude,
Happy to - that was my intent, and I'd rather the credit sit with Giuseppe.
The reason I sent it under my own authorship is that the public list archive I could reach redacts his email address, so I had no way to set From: and Signed-off-by: correctly. If you can point me at it, or CC him on this thread, I'll resend as:
From: Giuseppe Ranieri <...>
For what it's worth on the testing side: I hit this on a GK104 (GTX 670MX) against a BenQ PD2700U and an EW2790U, and the uoutp.c hunk is what restores audio there. I'll add a Tested-by to the v2.
Thanks,
Tano
На чт, 17.09.2026 г. в 19:28 <[email protected]> написа:
Quoted 56 lines
Hi - apologies for missing the patch previously, and thank you for bringing this to my attention!
Would you mind re-sending with the original authorship + a Co-authored- by tag for yourself to make sure we give the original author credit?
Quoted 47 lines · Tano Dzhinski
nv50_hdmi_enable()passes the sink's SCDC capability from its EDID straight through tonvif_outp_hdmi(). On pre-Maxwell-2 cards there is nohdmi->scdccallback, sonvkm_uoutp_mthd_hdmi()rejects the whole configuration with-EINVAL, andnv50_hdmi_enable()returns beforehdmi->ctrl()runs and before the AVI and VSI infoframes are sent.The result on such a card driving an SCDC-capable HDMI 2.0 sink is that
HDMI audio silently stops working. Video is unaffected, and nothing is
logged, which makes the failure hard to attribute.SCDC is optional, and the
hdmi->scdc()call further down is already guarded against a missing callback. Requesting it on a card that cannot
do it need not invalidate the rest of the HDMI configuration, so drop that term from the condition and let the existing guard skip SCDC alone.Giuseppe Ranieri posted a fix for this to the nouveau list on 2026-01-17, which received no review:
https://ratatoskr.run/nouveau/2026/01/16963412Fixes 6c6abab20b99 ("drm/nouveau/disp: add output hdmi configmethod")
Signed-off-by Tano Dzhinski <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +1
-2@@ -253,8 +253,7 @@ nvkm_uoutp_mthd_hdmi(struct nvkm_outp *outp, void *argv, u32 argc)if (!ior->func->hdmi || args->v0.max_ac_packet >0x1f || - args->v0.rekey >0x7f || - (args->v0.scdc && !ior->func->hdmi->scdc)) + args->v0.rekey >0x7f )return -EINVAL ;if (!args->v0.enable) {
[email protected]
maintainerJFYI - Be careful when sending HTML emails, I think the kernel list rejects them so it's usually better to send plain-text.
Anyway - I think it's fine to unanonymize the email IMO? He's posted the patch once, which means I'm pretty sure his email is already out there (unless it's somehow hidden from public list archives already?)
Quoted 90 lines · tanodzh
Subject: Re: [PATCH] drm/nouveau/disp: don't reject HDMI config on cards without SCDC
Hi Lyude,
Happy to - that was my intent, and I'd rather the credit sit with Giuseppe.
The reason I sent it under my own authorship is that the public list archive I could reach redacts his email address, so I had no way to set From: and Signed-off-by: correctly. If you can point me at it, or CC him on this thread, I'll resend as:
From: Giuseppe Ranieri <...>
Signed-off-by Giuseppe Ranieri <...>Co-authored-by Tano Dzhinski <[email protected]>Signed-off-by Tano Dzhinski <[email protected]>For what it's worth on the testing side: I hit this on a GK104 (GTX 670MX) against a BenQ PD2700U and an EW2790U, and the
uoutp.chunk is what restores audio there. I'll add a Tested-by to the v2.Thanks,
TanoНа чт, 17.09.2026 г. в 19:28 <[email protected]> написа:
Quoted 64 lines
Hi - apologies for missing the patch previously, and thank you for bringing this to my attention!
Would you mind re-sending with the original authorship + a Co- authored-
by tag for yourself to make sure we give the original author credit?Quoted 1 line · Tano Dzhinski
nv50_hdmi_enable()passes the sink's SCDC capability from itsEDID
Quoted 1 line
straight through to
nvif_outp_hdmi(). On pre-Maxwell-2 cardsthere is
Quoted 6 lines
no
hdmi->scdccallback, sonvkm_uoutp_mthd_hdmi()rejects the whole configuration with-EINVAL, andnv50_hdmi_enable()returns beforehdmi->ctrl()runs and before the AVI and VSI infoframes are sent.The result on such a card driving an SCDC-capable HDMI 2.0 sink
is
Quoted 2 lines
that
HDMI audio silently stops working. Video is unaffected, andnothing
Quoted 4 lines
is
logged, which makes the failure hard to attribute.SCDC is optional, and the
hdmi->scdc()call further down isalready
Quoted 3 lines
guarded against a missing callback. Requesting it on a card that cannot
do it need not invalidate the rest of the HDMI configuration, sodrop
drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c nvkm_uoutp_mthd_hdmi(struct nvkm_outp *outp,
Quoted 20 lines
that term from the condition and let the existing guard skip SCDC alone.
Giuseppe Ranieri posted a fix for this to the nouveau list on 2026-01-17, which received no review:
https://ratatoskr.run/nouveau/2026/01/16963412Fixes 6c6abab20b99 ("drm/nouveau/disp: add output hdmi configmethod")
Signed-off-by Tano Dzhinski <[email protected]>---
drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c | 3 +--1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +0
-0@@ -253,8 +253,7 @@ nvkm_uoutp_mthd_hdmi(struct nvkm_outp *outp,void
Quoted 10 lines
drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +0
-0*argv, u32 argc)
if (!ior->func->hdmi ||args->v0.max_ac_packet>0x1f||
-args->v0.rekey>0x7f||
- (args->v0.scdc&& !ior->func->hdmi->scdc)) +args->v0.rekey>0x7f)
return-EINVAL;
if (!args->v0.enable) {
PATCH v2 1/1 drm/nouveau/disp: don't reject HDMI config on cards without SCDC
In reply to Tano DzhinskiFrom: Giuseppe Ranieri <[email protected]>
nv50_hdmi_enable() passes the sink's SCDC capability from its EDID straight through to nvif_outp_hdmi(). On pre-Maxwell-2 cards there is no hdmi->scdc callback, so nvkm_uoutp_mthd_hdmi() rejects the whole configuration with -EINVAL, and nv50_hdmi_enable() returns before hdmi->ctrl() runs and before the AVI and VSI infoframes are sent.
The result on such a card driving an SCDC-capable HDMI 2.0 sink is that HDMI audio silently stops working. Video is unaffected, and nothing is logged, which makes the failure hard to attribute.
SCDC is optional, and the hdmi->scdc() call further down is already guarded against a missing callback. Requesting it on a card that cannot do it need not invalidate the rest of the HDMI configuration, so drop that term from the condition and let the existing guard skip SCDC alone.
---
v2: restore Giuseppe Ranieri's original authorship and Signed-off-by
(he posted this fix to the nouveau list on 2026-01-17,
https://ratatoskr.run/nouveau/2026/01/16963412), per Lyude's review of v1. Added Co-authored-by and Tested-by. Tested on GK104 (GTX 670MX) with BenQ PD2700U and EW2790U.
drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +1 -2
@@ -253,8 +253,7 @@ nvkm_uoutp_mthd_hdmi(struct nvkm_outp *outp, void *argv, u32 argc)if (!ior->func->hdmi || args->v0.max_ac_packet >0x1f || - args->v0.rekey >0x7f || - (args->v0.scdc && !ior->func->hdmi->scdc)) + args->v0.rekey >0x7f )return -EINVAL ;if (!args->v0.enable) {
Signature · 1 line
2.43.0
FYI - the CC to Giuseppe bounced: ranieri.dev no longer resolves (NXDOMAIN on the MX lookup), so he can't be reached at that address anymore. Possibly why the original posting went unanswered from his side too.
The From: and Signed-off-by: in v2 still record him as the author, which seemed right to keep regardless.
Everything else on the CC list delivered fine.
Tano
На пт, 18.09.2026 г. в 0:51 Tano Dzhinski <[email protected]> написа:
Quoted 50 lines
From: Giuseppe Ranieri <[email protected]>
nv50_hdmi_enable()passes the sink's SCDC capability from its EDID straight through tonvif_outp_hdmi(). On pre-Maxwell-2 cards there is nohdmi->scdccallback, sonvkm_uoutp_mthd_hdmi()rejects the whole configuration with-EINVAL, andnv50_hdmi_enable()returns beforehdmi->ctrl()runs and before the AVI and VSI infoframes are sent.The result on such a card driving an SCDC-capable HDMI 2.0 sink is that HDMI audio silently stops working. Video is unaffected, and nothing is logged, which makes the failure hard to attribute.
SCDC is optional, and the
hdmi->scdc()call further down is already guarded against a missing callback. Requesting it on a card that cannot do it need not invalidate the rest of the HDMI configuration, so drop that term from the condition and let the existing guard skip SCDC alone.Fixes 6c6abab20b99 ("drm/nouveau/disp: add output hdmi config method")Signed-off-by Giuseppe Ranieri <[email protected]>Co-authored-by Tano Dzhinski <[email protected]>Signed-off-by Tano Dzhinski <[email protected]>Tested-by Tano Dzhinski <[email protected]>---
v2: restore Giuseppe Ranieri's original authorship and Signed-off-by
(he posted this fix to the nouveau list on 2026-01-17,
https://ratatoskr.run/nouveau/2026/01/16963412), per Lyude's review of v1. Added Co-authored-by and Tested-by. Tested on GK104 (GTX 670MX) with BenQ PD2700U and EW2790U.drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +1
-3@@ -253,8 +253,7 @@ nvkm_uoutp_mthd_hdmi(struct nvkm_outp *outp, void *argv, u32 argc)if (!ior->func->hdmi || args->v0.max_ac_packet >0x1f || - args->v0.rekey >0x7f || - (args->v0.scdc && !ior->func->hdmi->scdc)) + args->v0.rekey >0x7f )return -EINVAL ;if (!args->v0.enable) { --2.43.0
Will push to drm-misc-fixes in just a moment, thank you!
Quoted 54 lines · Tano Dzhinski
From: Giuseppe Ranieri <[email protected]>
nv50_hdmi_enable()passes the sink's SCDC capability from its EDID straight through tonvif_outp_hdmi(). On pre-Maxwell-2 cards there is nohdmi->scdccallback, sonvkm_uoutp_mthd_hdmi()rejects the whole configuration with-EINVAL, andnv50_hdmi_enable()returns beforehdmi->ctrl()runs and before the AVI and VSI infoframes are sent.The result on such a card driving an SCDC-capable HDMI 2.0 sink is that
HDMI audio silently stops working. Video is unaffected, and nothing is
logged, which makes the failure hard to attribute.SCDC is optional, and the
hdmi->scdc()call further down is already guarded against a missing callback. Requesting it on a card that cannot
do it need not invalidate the rest of the HDMI configuration, so drop that term from the condition and let the existing guard skip SCDC alone.Fixes 6c6abab20b99 ("drm/nouveau/disp: add output hdmi configmethod")
Signed-off-by Giuseppe Ranieri <[email protected]>Co-authored-by Tano Dzhinski <[email protected]>Signed-off-by Tano Dzhinski <[email protected]>Tested-by Tano Dzhinski <[email protected]>---
v2: restore Giuseppe Ranieri's original authorship and Signed-off-by (he posted this fix to the nouveau list on 2026-01-17,
https://ratatoskr.run/nouveau/2026/01/16963412), per Lyude's review of v1. Added Co-authored-by and Tested-by. Tested on GK104 (GTX 670MX) with BenQ PD2700U and EW2790U.drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +0
-0@@ -253,8 +253,7 @@ nvkm_uoutp_mthd_hdmi(struct nvkm_outp *outp, void *argv, u32 argc)
if (!ior->func->hdmi ||
args->v0.max_ac_packet>0x1f||drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +1
-2- args->v0.rekey > 0x7f || - (args->v0.scdc && !ior->func->hdmi->scdc)) + args->v0.rekey > 0x7f)return
-EINVAL;
if (!args->v0.enable) {
Sounds great! Thanks for the update.
На пт, 18.09.2026 г. в 21:21 <[email protected]> написа:
Quoted 61 lines
Reviewed-by Lyude Paul <[email protected]>Will push to drm-misc-fixes in just a moment, thank you!
Quoted 54 lines · Tano Dzhinski
From: Giuseppe Ranieri <[email protected]>
nv50_hdmi_enable()passes the sink's SCDC capability from its EDID straight through tonvif_outp_hdmi(). On pre-Maxwell-2 cards there is nohdmi->scdccallback, sonvkm_uoutp_mthd_hdmi()rejects the whole configuration with-EINVAL, andnv50_hdmi_enable()returns beforehdmi->ctrl()runs and before the AVI and VSI infoframes are sent.The result on such a card driving an SCDC-capable HDMI 2.0 sink is that
HDMI audio silently stops working. Video is unaffected, and nothing is
logged, which makes the failure hard to attribute.SCDC is optional, and the
hdmi->scdc()call further down is already guarded against a missing callback. Requesting it on a card that cannot
do it need not invalidate the rest of the HDMI configuration, so drop that term from the condition and let the existing guard skip SCDC alone.Fixes 6c6abab20b99 ("drm/nouveau/disp: add output hdmi configmethod")
Signed-off-by Giuseppe Ranieri <[email protected]>Co-authored-by Tano Dzhinski <[email protected]>Signed-off-by Tano Dzhinski <[email protected]>Tested-by Tano Dzhinski <[email protected]>---
v2: restore Giuseppe Ranieri's original authorship and Signed-off-by
(he posted this fix to the nouveau list on 2026-01-17,
https://ratatoskr.run/nouveau/2026/01/16963412), per Lyude's review of v1. Added Co-authored-by and Tested-by. Tested on GK104 (GTX 670MX) with BenQ PD2700U and EW2790U.drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c +1
-2@@ -253,8 +253,7 @@ nvkm_uoutp_mthd_hdmi(struct nvkm_outp *outp, void *argv, u32 argc)if (!ior->func->hdmi || args->v0.max_ac_packet >0x1f || - args->v0.rekey >0x7f || - (args->v0.scdc && !ior->func->hdmi->scdc)) + args->v0.rekey >0x7f )return -EINVAL ;if (!args->v0.enable) {