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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 1D6F3EA3C25 for ; Thu, 9 Apr 2026 10:16:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 85ED810E79F; Thu, 9 Apr 2026 10:16:18 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="FetQCsdJ"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 65F7010E79B; Thu, 9 Apr 2026 10:16:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1775729777; x=1807265777; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qFWKW1BelByJIHp6SkLu9uNSGOCt7pXyT8pEzZwGiN8=; b=FetQCsdJQsn1FXeVFabdSQM676CiJlR6DwjsI2HwYIEOcl2LgKP0801d 0jYKiAiRn3jF86dtgfiWqPtxEQSixVJZ/eBufMyQ/8stMwt3JvDOtsXuS 8L1qOzXq9FlAgeV+eDaLI42gRE2laK39ZkRNUQW7ZAoSZeFbSqnaA1WeB IpVbYqY7GlkguvJ1yek33keFNhxX6EoNO1ntNilRvxw8ydtdDtKD5Xpwy AIkPliBhibLAcJ4RjSC643cA2LkMycdcnB8K4n02JfFzyS5L0EmVOMeYH ukLLcFK1VgGaz+dU4BY06Dy73QA4SMCs/gDwlsuwgYgAJgCqcQcr4f0F6 A==; X-CSE-ConnectionGUID: j8fRPFrrR2mR5OYM7Z3HIg== X-CSE-MsgGUID: 4nvs5NpBR+yM38cJ6JyUkg== X-IronPort-AV: E=McAfee;i="6800,10657,11753"; a="87354290" X-IronPort-AV: E=Sophos;i="6.23,169,1770624000"; d="scan'208";a="87354290" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2026 03:16:17 -0700 X-CSE-ConnectionGUID: G6LX+6XLShuDbaxXTuH6rQ== X-CSE-MsgGUID: fb2zSeetS3KaPwFTYpZCZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,169,1770624000"; d="scan'208";a="252065540" Received: from hrotuna-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.245.216]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2026 03:16:16 -0700 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Cc: intel-xe@lists.freedesktop.org, Nicolas Frattaroli , Ankit Nautiyal Subject: [PATCH v2 8/9] drm/i915/hdmi: Make the RGB fallback for "4:2:0 only" modes the last resort Date: Thu, 9 Apr 2026 13:15:38 +0300 Message-ID: <20260409101539.22032-9-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260409101539.22032-1-ville.syrjala@linux.intel.com> References: <20260409101539.22032-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland Content-Transfer-Encoding: 8bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Ville Syrjälä Currently we take the Hail Mary RGB fallback for "4:2:0 only" modes already during the first pass when respect_downstream_limits==true. It seems better to try everything else first (like ignoring TMDS clock limits) while still preferring 4:2:0, and only if everything else has failed fall back to RGB. Cc: Nicolas Frattaroli Reviewed-by: Ankit Nautiyal Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c index 79093d8fc2e6..874076a29da4 100644 --- a/drivers/gpu/drm/i915/display/intel_hdmi.c +++ b/drivers/gpu/drm/i915/display/intel_hdmi.c @@ -2314,7 +2314,7 @@ static int intel_hdmi_compute_formats(struct intel_encoder *encoder, respect_downstream_limits, INTEL_OUTPUT_FORMAT_YCBCR420); - if (ret) { + if (ret && !respect_downstream_limits) { drm_dbg_kms(display->drm, "YCbCr 4:2:0 mode but YCbCr 4:2:0 output not possible. Falling back to RGB.\n"); -- 2.52.0