From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B9F537E5C5 for ; Tue, 14 Jul 2026 20:29:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784060963; cv=none; b=NCG0h6U0806cmiRVTwmVxJdifNwAEHd4DLQgiM8kETJFlJsCyI9p9B6lHNE8ZYaXPRZ2PM7ZUrSrSfAPCQLlwhLNjM3Qb8Pbq66JPq3VH6pds+vKovMh/4aD4TWuMXQzrH8GdaTa3uGUxMVX3vFeVfhKQQZgLymv4gyuMyiiHmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784060963; c=relaxed/simple; bh=hjo3k1boCFWumolz0B1LhzOh4LdBiM5qeNOeWporY3Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UEI8rKylHL5r+ub7x5QaVj4UxotM4eK/1ataTKtqzGPk2u/pfrgnZSiFwQmlSCO0qqEXUV8f9Ha79ZmyUECxPXWCXcMbNSQfL+7F1JjHLDIgTU0Bskwl82IdU8FvWCUCbQ10Es0it7DxD40ccN5XTIsAujzEkec7+Ouzp2VnOnM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ViZp53NH; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ViZp53NH" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-493c564ed4dso3245205e9.3 for ; Tue, 14 Jul 2026 13:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784060960; x=1784665760; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=S9VYavqel088B9xNr5QJlq+pbjgeAsubCPGEUg3TC48=; b=ViZp53NH+Ai24kTkoKKYeVasig3o4lRY0eQGvQi/XRzSn82i/IYeXzWJeD/I0fgndU 0XmsSPgvT05o0b5wVwI1ki471Ew5J0jYFYX/yaZYMFyOKIlXVW/TtWK8pQoyE/VpPHTH Uf6v2JXlhO25LpZy3/Ke6uOkaNNW4RykqoG6iczM2Wq3viIolchooTDb1rhh9wsIKB6q DrVZWc00ATT6etb2OI/sA/xUasj9kEJGQhuGI35uGd2Wrpm+QEVsnypLy+NlkgAQTJrx RPsQygEg5YxKfVj6hkl/D/wwSIFS0juircYZ5IxdyOI77345Mla1mVdbsohhyL1l2NHt ldcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784060960; x=1784665760; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=S9VYavqel088B9xNr5QJlq+pbjgeAsubCPGEUg3TC48=; b=O9iH0zVkZThHoLnLH9C5GCnfHAmTCBO9syLj7TRBL/mKieB6rWIZcchoqhKZzQUwun +PnsW4HsGAq73CH6CCOBSf1DSABYid1gBEG2on04MZV2ebyRGXJ7QqQ9HPGqb7t+ZlLA Oug37WrDLZrHphB5unqD3n+9GKrYprWEB6PB1VJ5HyWfBYaG2FVYhBnn5VSKIQgd+2L/ oxIBMrUEcRT8OL3G+92JH7Ij1UBpUiy70vwQV0390tvBaj0G1U1wcAzPn1wpJVA7aMIT 23gIzAtZqWSTWH7+r/hWhhrsf9SuZr01NW303ndWIP2Q6L8fA7CB4JuzU9ftJliROGqe MfOA== X-Forwarded-Encrypted: i=1; AHgh+RpNYCeCIwdeYRZoVDfrHCwSoPRPmRBMyA5/pNgfDqXT0YeHrpMiDtNhCxSggHytpTJCveK08zq66+P4RO8=@vger.kernel.org X-Gm-Message-State: AOJu0Yy4RY8OHv9NVCW+KHVE//zLHfoMPLq0u0EHp9eRvrm2dYLD5n39 yLpZxYLa3x10vcNhrhajC2qfS57Tzc/MkJjsfVekyvRxgda1SX0he5wD X-Gm-Gg: AfdE7ckpqkR91+V5C+S/CzvBHGug3UyrEOBDnUGb7hd0c8RTgDLDVb0auOq4zC9F3gG pNLBKV6L8g360JPVstQD9PGO7/9my/JkxFGvXoH2TecZT1EBAmu7s0ejh1AbunvTero0PDhGb5p U+wKc7R3LvQhO0tOdch5NuzCvf6FDXX+uPDHaIJo2iDYGT5lwufrKyouIkNrJnD8DDHXVzy6FpP HdeudisFhrnpGXCHGDxoouEBWeer2GsKDWcI2B2tn9Y8gsZMY1Eaay8pkmRZqi7RoCJanKY/Hsr lPvMeNwC7sBzUXagZbyB7E14EfaokTovNOPZt73pkhhY0SPvwtJMXOl8y3tbvEDz3EUp1bNziHJ A6IxOhYMKAx/EZs3ZUGLHIPWPXf78+NVoCEycWNoJwpxvRkK0PZ07MmNzZGWnEZ68rhPlcE3VWD 0OxFL/witvOYdSZjQouR6OIPSmOxSib/ArEnD2AvyWGN1rvR9rm0JEQ+yAReHAHhA1O5z63ZAcH WFtvJ660lvMKaz76+C5c9A8ZamU8anh X-Received: by 2002:a05:600c:c055:b0:490:b2f9:d9a4 with SMTP id 5b1f17b1804b1-493f87dbb37mr64625065e9.1.1784060959738; Tue, 14 Jul 2026 13:29:19 -0700 (PDT) Received: from OrangePi5-Plus.BB-HOME (20014C4E1B9381005FD9FCFE1353AFE2.dsl.pool.telekom.hu. [2001:4c4e:1b93:8100:5fd9:fcfe:1353:afe2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4950a32c65asm98332125e9.14.2026.07.14.13.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2026 13:29:19 -0700 (PDT) From: Igor Paunovic To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Andy Yan Cc: dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Cristian Ciocaltea , Igor Paunovic Subject: [PATCH] drm/rockchip: dw_hdmi_qp: attach the HDMI Colorspace connector property Date: Tue, 14 Jul 2026 22:28:50 +0200 Message-ID: <20260714202850.40999-1-royalnet026@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The HDMI connector framework already consumes conn_state->colorspace when generating the AVI infoframe (drm_hdmi_avi_infoframe_colorimetry() in drm_hdmi_state_helper.c), and drmm_connector_hdmi_init() attaches HDR_OUTPUT_METADATA and max bpc for this connector. The Colorspace property itself, however, is never created, so userspace has no way to request BT.2020 colorimetry and wide-gamut/HDR output stays effectively unavailable on RK3588 even though the rest of the plumbing is in place. Compositors gate HDR on this: KWin (Plasma 6.x) requires the Colorspace property alongside HDR_OUTPUT_METADATA and max bpc before it reports an output as HDR/wide-gamut capable, so the HDR toggle never appears. Create and attach the standard HDMI colorspace property right after the bridge connector is initialised. Passing 0 selects the full HDMI colorspace set defined by the DRM core. Tested on an Orange Pi 5 Plus (RK3588) with Plasma 6.6 on the Collabora rockchip-v7.0 tree, which carries the same gap: with the property attached, kscreen-doctor reports both HDMI outputs as HDR and wide-color-gamut capable, KWin exposes the HDR toggle, the property switches to BT2020_RGB at 10 bpc when enabled (verified with modetest), and browsers report an HDR display so streaming services serve native smpte2084/bt2020 content. Signed-off-by: Igor Paunovic --- --- a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c @@ -603,6 +603,20 @@ return dev_err_probe(hdmi->dev, PTR_ERR(connector), "Failed to init bridge connector\n"); + /* + * Attach the HDMI Colorspace property. The HDMI connector framework + * already consumes conn_state->colorspace for the AVI infoframe + * (drm_hdmi_avi_infoframe_colorimetry()), and HDR_OUTPUT_METADATA and + * max bpc are attached by drmm_connector_hdmi_init(), but without the + * Colorspace property userspace cannot request BT.2020 signalling, + * which keeps wide-gamut/HDR output unavailable. Passing 0 selects + * the full HDMI colorspace set defined by the core. + */ + ret = drm_mode_create_hdmi_colorspace_property(connector, 0); + if (ret) + return ret; + drm_connector_attach_colorspace_property(connector); + return 0; } From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3C0F5C43458 for ; Tue, 14 Jul 2026 20:29:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xT5MlukvQyy6F1NmwqC5TbuxyPM+JB/CJ4pcC/H0158=; b=arn3gcDtXMwhBD QSFUxUd4kGcYrSDK3jEmLKltA4XDy2lWw/G0TYn7V69w0SSiWS6alErcXMmX48h6M6Xvpz68qph1L sY1UwB2/34xzcovZuOQ18RKOaFUJo4T9qbpWGNQUXHgft2OGHRYVucyH2LMK2OX//DaOfDgLoqd3J 4YVErCtp0Gj+1amsWdhTkdOXHk+HFNKgGugkq1XWfgIHqPkA9mCM2BT0+qTjoT1RmSb3f3CuRVuDQ 35oH692+mKPhZLcA+HJaocoUXbshhhVkIJ4faI7a1elQRb75gDbCE1Cn9snX3lPL//epPg4DxCFhy 8U/hHJva89pJrnqTiboA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wjjkq-0000000DESr-1icw; Tue, 14 Jul 2026 20:29:24 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wjjkn-0000000DES3-49t1 for linux-rockchip@lists.infradead.org; Tue, 14 Jul 2026 20:29:23 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-493b7cd27c6so3439555e9.1 for ; Tue, 14 Jul 2026 13:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784060960; x=1784665760; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=S9VYavqel088B9xNr5QJlq+pbjgeAsubCPGEUg3TC48=; b=ojWUetyczoocLoQPC8HoERlFbYRC/7xcGNmkia5c5EWNVhRMR4K7MeEi7YBx8fULJF 0j6UyOLD7lt/WoL+ZpdJfFQkTBq1V8ygpJZdoDVxvrLrWz/A8TYQqOd81h7GVQC0mjVS FfVESb70HyR7IgQQSR2ypPlPuvvx4/nI/g7tKDa+973G6hg8L9mENiHw+IKO2QFLAp37 uxythrWhNgIsLZ2DE+eTpC9g0VX/nWx7D5jYZqUUOVR2goAU4ivIhtCYlAO8HBpIBJ92 qHX6v1gfGV2Jvq19Gc8yJ6E7LUNO9/WJO5WTPV/xQVzm+K5SvYfYCT2p5sVNnSGyFy03 CjYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784060960; x=1784665760; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=S9VYavqel088B9xNr5QJlq+pbjgeAsubCPGEUg3TC48=; b=ZqroCAKVbjWUixm00D36s//oxSzMLoapNpsmS81JO6LrjUhR+YGFsELD/gDEz3Gt2B bbFOxQYgm4qGqy2X8iBK6TvSfsASQW9drC0vpZkPApb1YAR0Ot8wDCoa6h4GW3N0F9uu IARwN5/cNfp1OhG1v2QH8s9g1/Rf3SmSJvwUf6mEZKCB7zptHGfWXAYpjlGvza0TtNtL qCBwhcYKomiXONsCsVe7yHfQEmxQOOGceir3M0NMGT9a6hzZ7B/M7Z3dpPpezt5A4+Qk RVVSuwzg5W9dFIT3UOQzxqDCRmQj4UlvNXLWRQv36WOdrZ3h/Y7Ixz2Zew5ts2yY1PpH P0tw== X-Forwarded-Encrypted: i=1; AHgh+Rp7BMk76h8MMe8UHiFKjeCdo3udQxSh0gYAEJlGgxqRxHtUOoa3paBwiZQaW/Htklu5P9QIvQwnuONGw+LyVQ==@lists.infradead.org X-Gm-Message-State: AOJu0YxcXdiEJS/sL7uZyd77ErMa71r89kP7NRy4U4x1wz1aZQKIK80O FrIG5D9xve78zhubf0JN7PlyRUKszmCyRYhjelrF5c//SWUwIl0UI5id X-Gm-Gg: AfdE7cmJIoF4ijEEIJAYq0oI672Mc0O1VeSN4sYVOneZIUjwI9BKHj0AhdX4k+zKmsJ 1Y5vtB5Og2CtDdNsxyN2o2GgRAVc4sN+XnBeKVbtM6PxTignRC8AvLsxsrgH8ZjQhFpJXEbrVfv iYUlT+N7uRm4txuEttLYyr+M2EHZ/SZ5oZ7pg3FbIe/86mmh5nB91Ok3zl2i64sAukuCZaByFfg kJLoTF4jrLp3SzK4Na3Ur97qCXp4I3zTdUqinKYoT0jWu2qOV+YCcX5YIR8voUh/lnv4reWGJiV Jj1au9lLtQ4agp6ANREw+rWCh5zZJG+TAqA2cUMuXR7ihjXGLzGCdueY1lRP11d3TRhkgs9DyCx G9ZNZqHQyevaodtcnZSNF/BAZd4Ae4HafmEhod9PJnSBOz5f6q2OjCgn7O+GMvELwN1nYM2sk12 qpzK+mfYYsQKVLmm9fjl4Vrghpe1KPzfWk6Zcv6LyMjPtLkZTEHykMhG316mdSJX424t/XugpTq eCMTzNtdpxxDqjehYNbjryiddXLqhTw X-Received: by 2002:a05:600c:c055:b0:490:b2f9:d9a4 with SMTP id 5b1f17b1804b1-493f87dbb37mr64625065e9.1.1784060959738; Tue, 14 Jul 2026 13:29:19 -0700 (PDT) Received: from OrangePi5-Plus.BB-HOME (20014C4E1B9381005FD9FCFE1353AFE2.dsl.pool.telekom.hu. [2001:4c4e:1b93:8100:5fd9:fcfe:1353:afe2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4950a32c65asm98332125e9.14.2026.07.14.13.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2026 13:29:19 -0700 (PDT) From: Igor Paunovic To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Andy Yan Subject: [PATCH] drm/rockchip: dw_hdmi_qp: attach the HDMI Colorspace connector property Date: Tue, 14 Jul 2026 22:28:50 +0200 Message-ID: <20260714202850.40999-1-royalnet026@gmail.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260714_132922_039220_61A1E666 X-CRM114-Status: UNSURE ( 9.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Igor Paunovic , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The HDMI connector framework already consumes conn_state->colorspace when generating the AVI infoframe (drm_hdmi_avi_infoframe_colorimetry() in drm_hdmi_state_helper.c), and drmm_connector_hdmi_init() attaches HDR_OUTPUT_METADATA and max bpc for this connector. The Colorspace property itself, however, is never created, so userspace has no way to request BT.2020 colorimetry and wide-gamut/HDR output stays effectively unavailable on RK3588 even though the rest of the plumbing is in place. Compositors gate HDR on this: KWin (Plasma 6.x) requires the Colorspace property alongside HDR_OUTPUT_METADATA and max bpc before it reports an output as HDR/wide-gamut capable, so the HDR toggle never appears. Create and attach the standard HDMI colorspace property right after the bridge connector is initialised. Passing 0 selects the full HDMI colorspace set defined by the DRM core. Tested on an Orange Pi 5 Plus (RK3588) with Plasma 6.6 on the Collabora rockchip-v7.0 tree, which carries the same gap: with the property attached, kscreen-doctor reports both HDMI outputs as HDR and wide-color-gamut capable, KWin exposes the HDR toggle, the property switches to BT2020_RGB at 10 bpc when enabled (verified with modetest), and browsers report an HDR display so streaming services serve native smpte2084/bt2020 content. Signed-off-by: Igor Paunovic --- --- a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c @@ -603,6 +603,20 @@ return dev_err_probe(hdmi->dev, PTR_ERR(connector), "Failed to init bridge connector\n"); + /* + * Attach the HDMI Colorspace property. The HDMI connector framework + * already consumes conn_state->colorspace for the AVI infoframe + * (drm_hdmi_avi_infoframe_colorimetry()), and HDR_OUTPUT_METADATA and + * max bpc are attached by drmm_connector_hdmi_init(), but without the + * Colorspace property userspace cannot request BT.2020 signalling, + * which keeps wide-gamut/HDR output unavailable. Passing 0 selects + * the full HDMI colorspace set defined by the core. + */ + ret = drm_mode_create_hdmi_colorspace_property(connector, 0); + if (ret) + return ret; + drm_connector_attach_colorspace_property(connector); + return 0; } _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip