]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/nouveau: implement missing DCB connector types; gracefully handle unknown connectors
authorAlex Ramírez <lxrmrz732@rocketmail.com>
Sat, 13 Dec 2025 00:53:27 +0000 (19:53 -0500)
committerLyude Paul <lyude@redhat.com>
Wed, 21 Jan 2026 20:47:40 +0000 (15:47 -0500)
commitd0bd10792d6cc3725ddee43f03fd6ee234f24844
tree2a7e20947668628db1798c16572a32f3522dc7ba
parent3036b4ce4b209af690fa776e4616925892caba4c
drm/nouveau: implement missing DCB connector types; gracefully handle unknown connectors

* Implement missing DCB connectors in uconn.c previously defined in conn.h.
* Replace kernel WARN_ON macro with printk message to more gracefully signify
  an unknown connector was encountered.

With this patch, unknown connectors are explicitly marked with value 0
(DCB_CONNECTOR_VGA) to match the tested current behavior. Although 0xff
(DCB_CONNECTOR_NONE) may be more suitable, I don't want to introduce a
breaking change.

Fixes: 8b7d92cad953 ("drm/nouveau/kms/nv50-: create connectors based on nvkm info")
Link: https://download.nvidia.com/open-gpu-doc/DCB/1/DCB-4.0-Specification.html#_connector_table_entry
Signed-off-by: Alex Ramírez <lxrmrz732@rocketmail.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
[Lyude: Remove unneeded parenthesis around nvkm_warn()]
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patch.msgid.link/20251213005327.9495-3-lxrmrz732@gmail.com
drivers/gpu/drm/nouveau/nvkm/engine/disp/uconn.c