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 581903EF0C1; Wed, 20 May 2026 17:57:19 +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=1779299840; cv=none; b=ElOX3EhSxsMXPSVWavuyEcIs3FW9NCGEMRD96rojWrV8YrShKbbToCKrwajirjy4H7QFp1HAqzku3GWkoWCVv7ATCiyFEbZjNWnYQ3UD+L06EjN+FFgzXoeD34ePUr7Ctzw+T12XkaXxAtTajGhlh619einf7drHCswWkPLPxSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779299840; c=relaxed/simple; bh=drr5Q9ugDtKtpWoiyIdREfuy32hmWqKhijB2PLbs/nI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Joduroe0LATLg83Ct0tZ2qkbtnadb4xPYjOgXT8m4krinbnb4hSVJdWAndcDVySHRi4wemwK2Rv/Ux4Cawc/vTB3sCCBB21hQIqechM1Y1tJJyGtXeFSdpZSbjFq21TCWTur+AunqDoEr2Iz9tS+hNsxZZpwZd+l5gG2A55qYbI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v569I1rq; 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="v569I1rq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B52471F000E9; Wed, 20 May 2026 17:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779299839; bh=S9ad3loR+jpuxO+m8AdB0inLV7gX4AT/lQSkP8KeBAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=v569I1rqu/rpxM5w5KjGhltmYO4bWjSOveszJBHDATgArSu0xgFBgkS8/PJEjERzI hifiWB5edK+Kn/Hc/Yr/9BQ8dwsJMOq8HUfqQb4unICr1fe7ogsYuTWJjSPoS3zONu A0L4UPErPpGL1PvSAVF9HR5cNLfaBKKityim+bDU= 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 6.18 906/957] drm/i915/dp: Fix VSC dynamic range signaling for RGB formats Date: Wed, 20 May 2026 18:23:09 +0200 Message-ID: <20260520162154.223489118@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162134.554764788@linuxfoundation.org> References: <20260520162134.554764788@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-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 @@ -2869,8 +2869,13 @@ static void intel_dp_compute_vsc_colorim drm_WARN_ON(display->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; }