Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E175C98302 for ; Tue, 22 Sep 2026 19:21:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3E67D10E517; Tue, 22 Sep 2026 19:21:41 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=yahoo.com header.i=@yahoo.com header.b="BQKQhs37"; dkim-atps=neutral Received: from sonic.asd.mail.yahoo.com (sonic-usea1-0019.asd.mail.yahoo.com [34.2.64.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 66C3810E517 for ; Tue, 22 Sep 2026 19:21:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1790104899; bh=nDOfxoTgfCt/MAClno9vSr5ImwJy4en6RIMi/TVJbfI=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=BQKQhs37J50RNsrRe3N+w9tyvjTzYBb8BCju5fvGctcTwDP6ILhBYNYZ0lCptVUYsKV0+F7eYMJCZJuZnU1OH9EkY3Y9ji0Y2OxL3NJJ7U804L4j5HtcaIfkNXyebm3XS7RHPQGogtnUh7G6WtpLxCPsHEdBPu39jcEYVfhrPZkHgZYpbGSFiQ67roy2ePjUZxcEL1fH+msRvzpL5Ggu1PtI3X7UQt9r4O7Ik0dMOhs7M0UgYHWid+sgN8pnW15xfyKSpBZTIz+iXUhshgIJZj0FH/4xFijMGTtXZ/l/XHWPvBCvot3BtfgnRUqzqu9iJsmVnSSd7Fb/XFFDD2uysw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1790104899; bh=4Ftxh7RoFDFM9fCoONlDy0OYlgXLKeTzcM/6DwdBhHu=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ujXgWySJiec640YFXKUWCn5jaoPmLPzGONL118tzTOWdM0rREV9GiwgQlN/mZyhpIqvtoy8mycCglIrsT96t9UAhNF5RjxZZ7zguwX6XjCvvluPx2zubkRV4fEDvdxl9iOatfzuWzJTc411n8eiSn365XiLz47eHTsaTU/6lRf63kdS0yfc+QXZ89BUTXT2BvXBGspirAQYMGScwb8X1rzq2VNhm7r9q9tgrmWsUMX9a7I8xYGe7E4/f6kRZU4NSDt/J5pUt45jmj041ja1wGGxehkFeR2QcfhSQ+CqlmD0A59EcjXxQUnBtQtnFubffSZwp9K7STqrLcM4acWsdXA== X-YMail-OSG: omQoRu0VM1nn7plvZ2UVsm5PQfK.hv9aC6roGq.11HpygY7D1jT9mKsaAfWQK7t K0_25yPw.UHD_uRdUA57adfT.c4suelni4ObFYeW8jtF_7oW_RkhTvQMSIgAcIDH.NKQjAjjdTUl ZxNUWeQDx9lW10DC5HGeu4pQ4g8_plhDedTotOZTM0bCHkxjrqp23M4rnyb.JDMQ3Whs5x.2cP5G no6cF7ql_NLUIoTkzrUuV3PRQg44REP6hPLI0kL26PqIYpUtr0wHPiVP56NJn4uwnqsJVqwS.res hEX4.0uVxSngP_mrtN6DdSOt0jExFkg9ZhekPYOKCzgKKgRPxsboTr9Ab.pJMtjvi4HDjOjMOAOz TE2F_nwAUrqYnhuSa4Lyvnf73M8d0QDE.37ENzpWgxpK8is58EOelOVyeXeN72JjMEHZH4OWDX4c sNUmzqLMcBVtPEUPl0vzHetx96gNiaN6IbTbxHbtf8Nd4XFAQMndYwPscUltJVtTDCsz0qhprrlH xIMSDhVs5WqolGvLFj7BjuhbBmCuRG6Ceys1jbKWOjIngVXeX19QzyOCZrU6DFKYiqc_24FS4wFp tRCI9GZddrOhWXIrp8.3ChNl6PmGoetYH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vfMnPq52udr5qJlsYilsmZLJyT5XPryqT3WcG4jeGzZe gh5__20WXLr6pFF9j.mz1S0f5Ikd4VKqXttAqv._q.Y5ZMnYpJd0WGC32fZ9RNlD8fMUrG_AVhfX zmtjaqjRS3xzT7sC6r.9DDQT35VcujGs4Shfi9CcXqx6sPPd7K.cTZ_gcxIw6gaSFslK8wEfTvAw WY2eAba_a7dpNj8SI5AqJFPrPzTvECOQsydzdrbYEGVeIrApK2V.9H1AJzOyEyCYr7MBQ9v0bWXK JkhD9WOPQx2g1T.KvGiqz5xx0TGquiQpSS2m4sVM3ltE1VRNWHwcBcpnLucLS2ki_.JHzurLzVZJ lgRON2g-- X-Sonic-MF: X-Sonic-ID: c3f4c507-9aeb-4c38-9b54-cb5466943159 Received: from sonic.gate.mail.ne1.yahoo.com by mail-asdoutdeli-p-cin-usea1-prod-sonicconsumer-svc-101 with HTTP; Tue, 22 Sep 2026 19:21:39 +0000 Received: from dip49.lsn.bf1.yahoo.com ([67.195.177.58]) by hello (SMTP) with SMTP ID a114298d351310ec48bd21743ed80317; Tue, 22 Sep 2026 19:21:36 +0000 (UTC) From: Daniel Campos Ramos To: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org, lyude@redhat.com, dakr@kernel.org, Daniel Campos Ramos Subject: [PATCH 0/3] drm/nouveau: HDMI Deep Color link depth (30/36/48 bpp) Date: Tue, 22 Sep 2026 16:21:29 -0300 Message-ID: <20260922192132.114546-1-Capitain_Jack@yahoo.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit References: <20260922192132.114546-1-Capitain_Jack.ref@yahoo.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This series wires up HDMI Deep Color on nouveau. The connector gains the "max bpc" property, the atomic check selects a link depth that both the sink EDID (HDMI VSDB DC_30/36/48) and the TMDS character-rate budget admit, the head is programmed for 30/36/48 bpp RGB, and the TMDS General Control Packet carries the matching CD/PP fields. Patch 3 is what makes the link physically work on GSP boards. The GV100-class GCP writers emitted a depth-less packet, and on GSP systems the HDMI audio enable runs after the display commit and emits it again, erasing the deep-color declaration (sor->disp->func->gsp.hdmi_gcp). The proprietary NVIDIA stack performs the same audio operation and then rebuilds the GCP from the committed head depth. Threading CD/PP through the OUTP HDMI ctrl method (patch 2), caching them on the ior, and writing them with a 0x00ffffff mask gives nouveau the same ordering; the mask also keeps generation-specific bits sharing the register intact (GB20x SB1_CTRL). Tested on a GA106 (RTX 3060) driving a Sony KDL-46HX855 (HDMI 1.4 sink, EDID DC_30/DC_36, 225 MHz TMDS ceiling): 1920x1080p60 RGB at 36 bpp, i.e. a 222.75 MHz character rate. Without the series the sink rejects the modeset with an incompatible-signal OSD; with it the set accepts the signal, reports a 12-bit input, and renders correctly. 30 bpp follows the same code paths. Scope and non-goals, so nobody has to guess: - Only RGB is selected. YCbCr output additionally needs a connector color-format selection path that nouveau does not have today, plus AVI InfoFrame colorspace/range handling and format-aware bandwidth and packing. That is the next series, building on the DRM connector color-format property work. - 48 bpp (16 bpc) is implemented from DC_48, BPP_48_444 and GCP CD=7 but is untested: the bench has no DC_48 sink. It might enable professional 16-bit displays; the mechanism is the same, but we do not own the hardware to test or claim it. - HDR might benefit: HDR10's baseline transport is 10-bpc YCbCr 4:2:2 carried in a 12-bpc container, and link-depth failures feature in HDR reports. The transport mechanism is the same, but we do not have hardware to test or claim native HDR here (static metadata and colorspace are separate pieces nouveau does not yet emit for HDMI). For context: on this same bench the installed proprietary NVIDIA driver (615.71.09, hdmi_deepcolor=Y, max_output_color_depth=10) caps this sink at 10 bpc by default policy, while Windows on the same card reports 12 bpc. A companion one-line default-cap change for the open NVIDIA kernel modules is being submitted to its own repository as the closed-source counterpart of this series. AI partners were leveraged in the production of this work. Daniel Campos Ramos (3): drm/nouveau: select HDMI deep-color link depth drm/nouveau: pass HDMI GCP deep-color state through NVIF drm/nouveau: program HDMI deep-color GCP fields drivers/gpu/drm/nouveau/dispnv50/disp.c | 80 +++++++++++++++++-- drivers/gpu/drm/nouveau/dispnv50/headc37d.c | 6 ++ drivers/gpu/drm/nouveau/dispnv50/headc57d.c | 6 ++ drivers/gpu/drm/nouveau/dispnv50/headca7d.c | 6 ++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 3 + drivers/gpu/drm/nouveau/include/nvif/outp.h | 2 +- drivers/gpu/drm/nouveau/nouveau_connector.c | 9 ++- drivers/gpu/drm/nouveau/nouveau_connector.h | 1 + drivers/gpu/drm/nouveau/nvif/outp.c | 7 +- .../gpu/drm/nouveau/nvkm/engine/disp/gb202.c | 12 +-- .../gpu/drm/nouveau/nvkm/engine/disp/gv100.c | 4 +- .../gpu/drm/nouveau/nvkm/engine/disp/ior.h | 2 + .../gpu/drm/nouveau/nvkm/engine/disp/tu102.c | 4 +- .../gpu/drm/nouveau/nvkm/engine/disp/uoutp.c | 6 ++ 14 files changed, 128 insertions(+), 20 deletions(-) -- 2.53.0