From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 002811D63E4; Sat, 30 May 2026 18:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780167003; cv=none; b=jkkRTKzoFYSBGnEIQhqDRxNISBP/pUPk2AYdeTgY5GhEvmtUsjLd0t5AS+41VRo8SFIUUQNmYlw8TCZjc7YVJ6X0QyDO3b2bvwKNXyFwL7eO0S4wnwEFC7IB0JJrCg5nNq3DxXrWegyYgM53whzukfNQMzGWfyqGcnmDD/WPvxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780167003; c=relaxed/simple; bh=TYg6d56Ot0lc47KQf86ud6Q0qfQ9oXB0pTDG6G41ru8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XCdFFjDCM4Eebgu/G0ryYOpZ3By190qDgwmHb3n28kT45GqD+SZXq0tmPN6J+81b1lIVBpSLX9vuDe+vmZW3dELNCKpt25xvn+gg70oUS25c6cZtqsWzwE+aRLeZl4ZglvTKCAswvlA8X7VQxBOgtlwe3eSz62CyTOnpld7uXCI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bscYb6YS; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="bscYb6YS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42C361F00893; Sat, 30 May 2026 18:50:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780167002; bh=JXNdA446Rfs+NIv7cV73Dq0N46al87NB9auvdunpGds=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bscYb6YShlgZz2dwBBqkU8akhI3zDd2e2neTTbuf2P5kPoTcQHSrSEGyKyXcgh35h GlW9+CHGa5oVyy7ujp6A73w6IncJVGUs3haVn4qylmzeCgbJxoDm8GlD0xpU2C4NPu JkwAxBJkJr7EX9VhIMK6LJ4aU/ia2nE77bkF6cN0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, DeepChirp , Chaitanya Kumar Borah , Suraj Kandpal , Tvrtko Ursulin Subject: [PATCH 5.10 508/589] drm/i915/dp: Fix VSC dynamic range signaling for RGB formats Date: Sat, 30 May 2026 18:06:29 +0200 Message-ID: <20260530160237.949059332@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160224.570625122@linuxfoundation.org> References: <20260530160224.570625122@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chaitanya Kumar Borah commit 1ae15b6c7965d137eef21f2cc7d367b29cb88369 upstream. For RGB, set dynamic_range to CTA or VESA based on crtc_state->limited_color_range so sinks apply correct quantization. YCbCr remains limited (CTA) range. (DP v1.4, Table 5-1) v2: - Added Reported-by and Tested-by tags v3: - Add back YCbCr comment(Suraj) Cc: stable@vger.kernel.org #v5.8+ Reported-by: DeepChirp Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/15874 Tested-by: DeepChirp Fixes: 9799c4c3b76e ("drm/i915/dp: Add compute routine for DP VSC SDP") Assisted-by: GitHub-Copilot:GPT-5.4 Signed-off-by: Chaitanya Kumar Borah Reviewed-by: Suraj Kandpal Signed-off-by: Suraj Kandpal Link: https://patch.msgid.link/20260505090920.2479112-1-chaitanya.kumar.borah@intel.com (cherry picked from commit 38e10ddae6f8d42a2e8437fcd25a1cac51106c64) Signed-off-by: Tvrtko Ursulin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/display/intel_dp.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -2589,8 +2589,13 @@ static void intel_dp_compute_vsc_colorim drm_WARN_ON(&dev_priv->drm, vsc->bpc == 6 && vsc->pixelformat != DP_PIXELFORMAT_RGB); - /* all YCbCr are always limited range */ - vsc->dynamic_range = DP_DYNAMIC_RANGE_CTA; + /* All YCbCr formats are always limited range. */ + if (vsc->pixelformat == DP_PIXELFORMAT_RGB) + vsc->dynamic_range = crtc_state->limited_color_range ? + DP_DYNAMIC_RANGE_CTA : DP_DYNAMIC_RANGE_VESA; + else + vsc->dynamic_range = DP_DYNAMIC_RANGE_CTA; + vsc->content_type = DP_CONTENT_TYPE_NOT_DEFINED; }