Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp494116rdd; Tue, 9 Jan 2024 10:12:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBRil38vXYY1MX+oO4byl491CktjC8GE0PIor84r2Dq/6hAlqCxGb4lQ7K2pY5162kVlJY X-Received: by 2002:a05:6808:17a7:b0:3bc:e27:3cdf with SMTP id bg39-20020a05680817a700b003bc0e273cdfmr7288491oib.75.1704823920596; Tue, 09 Jan 2024 10:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704823920; cv=none; d=google.com; s=arc-20160816; b=Bb4W7zEUoynODRfaq/xMP4H+nzJ7SVrZph+AjipX8nIyDLP7RCwmtNq/adZFTEbO59 Sbc51hNKYVJ2hdh8Mcm7w29Z8JT2I7xGW8Nw8jk+EXz78CkWLjh9Gt4eL0cyYyRpAaOs JXrruvQZdJHnsBOndrAAAP3TRcJZgYlIRqug9XnBBEzu19VkM+CDD58x4fqdNeMnduNY Mrit4Q7nG2swR2g8eG4ElzNpWFl5yckiscpbUHJ2LR7M4lNMbPCvGsBunZDxor39Txff qJssWkJzJkFFN9doVaQkm9li9RFBOKXawebWmVUZswCGs0crcjqzhMG1cz+stgElb68q /vbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=/P8n3FbWL68F6TxA0R2WkA/gfn2dX46Rf9mM5caQ3iY=; fh=vnyRExF+TaZcJXA/e4cgSa3m5Xa+Ng4WaJ7mAJU0CoE=; b=N3TqLbX7P7acOZGd5voDjp0GCyM7Gj51JVOyEcYfLRY7VIVDc2l89foD460VHNXJk7 Dnx3Tt0e38u7mJAFzgDPzaXq/394oqtXUwuKGwyPs2tGTD7nr5ispI6hgV6q7BsuRTGA 33NKLBQM9IeU3WP66JGjcUAo43jg4iJ4dKTdaGt6m1NiFe8YB8dYAO+ZRoPizg/D5rW2 QEwfYV0fO/jA0b9sO5kzZMIjCn2JRwB5ttKHqtkxuiBvGdX7x9yShe2Q1clYCX5qwNuX UT2SfScLA6vQSX9+SMM0u7evQGzsOkmWP+PAV67bDbv2VAmdzCEUkayirAp3/i7D8v10 Kosw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yngvason.is header.s=google header.b=DLZpnq6h; spf=pass (google.com: domain of linux-kernel+bounces-21218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=yngvason.is Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 19-20020ac85713000000b0042824458af1si2614285qtw.501.2024.01.09.10.12.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 10:12:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@yngvason.is header.s=google header.b=DLZpnq6h; spf=pass (google.com: domain of linux-kernel+bounces-21218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=yngvason.is Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 596871C2161E for ; Tue, 9 Jan 2024 18:12:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00D1A3C680; Tue, 9 Jan 2024 18:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=yngvason.is header.i=@yngvason.is header.b="DLZpnq6h" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 A5B023BB3F for ; Tue, 9 Jan 2024 18:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=yngvason.is Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yngvason.is Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-50eaabc36bcso3954328e87.2 for ; Tue, 09 Jan 2024 10:11:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yngvason.is; s=google; t=1704823876; x=1705428676; 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; bh=/P8n3FbWL68F6TxA0R2WkA/gfn2dX46Rf9mM5caQ3iY=; b=DLZpnq6h0S5ot4HaRwNCSG5/wYihZfKLQToZV9DgsbPPpiE6QHHEzNwXkyMRFeoC2U G+1mN1P+ZszK0TmDRh3btUJBYPL7qsdFDa6y+wQ1WvcXixhi1nwAC5wk2Bgo7i6n8VML vtls4YmkUcahVDGvFA07MjA22wOqVFoPZZNng= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704823876; x=1705428676; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/P8n3FbWL68F6TxA0R2WkA/gfn2dX46Rf9mM5caQ3iY=; b=mJQwCeV8lq2cVy7qE2lyDu0siHAT8bXuRtH+VkC83vdegB0dwR/GCR7UonBXb4AF7l C65Jdl1hfPPeUTAhP6dFyphQ1RHDL2EEiorpivmf0XoQydWXlaZORqFipEANjK4TWfiR JSf9HdzOlYyXfBk9+DD19y94Ka7bJrFivTtlPAead/Slxn95QjGD1ZjjbNSr+gWCRvAI 6t/qlAdCJF6zSowj6hoo2BEz87LGDxyQtt5vhJ3j58ShM+CQq34LQO8ammsHOvTe4GfF 6xqlK5Xbr3vdZFrrODrRLVZgVV/LSqZXTr9iCOxO+QCvAPSNE6syZzLnbfazOpDn9aGy VBOA== X-Gm-Message-State: AOJu0YzAojnogaT8e2YDNbsopGCPhBvNfhFWKKKAQ5WXUiglfYasPEq5 HMXROpzpfl4DWbwkZsKjSODhi4+RufvLUg== X-Received: by 2002:a05:6512:3d0c:b0:50e:a6f8:aacf with SMTP id d12-20020a0565123d0c00b0050ea6f8aacfmr3282849lfv.14.1704823876174; Tue, 09 Jan 2024 10:11:16 -0800 (PST) Received: from andri-workstation.turninn.appdynamic.com ([2a01:8280:aa07:ad:7285:c2ff:fef0:4baf]) by smtp.gmail.com with ESMTPSA id n25-20020a05600c3b9900b0040e527602c8sm2104579wms.9.2024.01.09.10.11.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 10:11:15 -0800 (PST) From: Andri Yngvason To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, Simon Ser , Werner Sembach , Andri Yngvason Subject: [PATCH 0/7] New DRM properties for output color format Date: Tue, 9 Jan 2024 18:10:57 +0000 Message-ID: <20240109181104.1670304-1-andri@yngvason.is> X-Mailer: git-send-email 2.43.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 This is a subset of patches, originally submitted by Werner Sembach titled: New uAPI drm properties for color management [1] I've rebased against the current master branch, made modifications where needed, and tested with both HDMI and DP on both Intel and AMD hardware, using modified sway [2] and wlroots [3]. The original patch set added the following properties: - active bpc - active color format - active color range - preferred color format and consolidated "Broadcast RGB" into a single property. I've elected to only include active and preferred color format in this patch set as I've very little interest in the other properties and, hopefully, this will be easier for others to review. [1]: https://lore.kernel.org/dri-devel/20210630151018.330354-1-wse@tuxedocomputers.com/ [2]: https://github.com/swaywm/sway/pull/7903 [3]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4509 Werner Sembach (7): drm/amd/display: Remove unnecessary SIGNAL_TYPE_HDMI_TYPE_A check drm/uAPI: Add "active color format" drm property as feedback for userspace drm/amd/display: Add handling for new "active color format" property drm/i915/display: Add handling for new "active color format" property drm/uAPI: Add "preferred color format" drm property as setting for userspace drm/amd/display: Add handling for new "preferred color format" property drm/i915/display: Add handling for new "preferred color format" property .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 75 ++++++++++-- .../display/amdgpu_dm/amdgpu_dm_mst_types.c | 8 ++ drivers/gpu/drm/drm_atomic_helper.c | 4 + drivers/gpu/drm/drm_atomic_uapi.c | 4 + drivers/gpu/drm/drm_connector.c | 111 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_display.c | 33 ++++++ drivers/gpu/drm/i915/display/intel_dp.c | 23 ++-- drivers/gpu/drm/i915/display/intel_dp_mst.c | 10 ++ drivers/gpu/drm/i915/display/intel_hdmi.c | 16 ++- include/drm/drm_connector.h | 27 +++++ 10 files changed, 289 insertions(+), 22 deletions(-) base-commit: 1f874787ed9a2d78ed59cb21d0d90ac0178eceb0 -- 2.43.0