Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp820080pxy; Wed, 5 May 2021 14:58:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL+FroEaiOJ1ig+6B/ru2fUa/O6H9h0Z4evC85xnVrl5660Zej07opQrwLJIVFF0MZ0DFg X-Received: by 2002:a17:906:2616:: with SMTP id h22mr926167ejc.126.1620251898262; Wed, 05 May 2021 14:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620251898; cv=none; d=google.com; s=arc-20160816; b=u4ZtYQnoESqjNk6LA61Y8V1DuqkbDVbeOvLMCJys2HTreTieRtNRtdCjrmpDLEc71E efx3XHabWE1JkObt+js5zzcec1tbKInIbcb8MD1EV54wd0pBy3y1mgQdCAuW95s5nXuU YTRWEsqx/v4hW4i4VlJckmDwjjAtNEHwJ8ilmdK3V01uc1Ac1TaU2xLk4wjnJ5/chgL8 YPfHMTh6SIqLhNS42kwDRewDnkmkIBPkIKMXijB36C0jfLWpS36b+NqV17JhK7Lhu/WR 6yXcl60C7iAjWzRlcAtkFC+Wzb3cu6ZCAsfqehV4yRBitFitEcbzvjrK9XtA6fOfvBnj 856w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=VWLiTUWQLy28/IY4yowzGQXw9x2r1LLQdp+6mQljrd0=; b=SuRkQKlOOskh9Q5IH1sRaywCKXvC9aYFxGyQOZzYPLzCLUXsuSQISvTqx7fgS9jeyl /sA27unIRku+DLmMrOGuh9KHc/JGPZQTXlxbpsN17aTz/pihxSxAKkYEawmxfwGDvdCw sW/vvClUR2OExX106HgCS0GBwXMIqJ5J73LP2C5UjrUEeiP6eqmIUe4QFsqbXSQKoMw2 HBt1n2TncfZrtMyd0/5BjEMBX74SnVR10Pb3o1sPiMRZ2C3w1880YjdmRiD9fLzppZLe i1Rcrqc+umK71NAmv6dkzqjMPihL4B/BxLqVlMQEQms4+iC4TrKH8kvfmbt/D02KlfKl jzuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gg35si468731ejc.460.2021.05.05.14.57.54; Wed, 05 May 2021 14:58:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234323AbhEERyU (ORCPT + 99 others); Wed, 5 May 2021 13:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231312AbhEERxZ (ORCPT ); Wed, 5 May 2021 13:53:25 -0400 Received: from srv6.fidu.org (srv6.fidu.org [IPv6:2a01:4f8:231:de0::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3C60C07E5E8 for ; Wed, 5 May 2021 10:24:07 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 9D425C800B3; Wed, 5 May 2021 19:24:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at srv6.fidu.org Received: from srv6.fidu.org ([127.0.0.1]) by localhost (srv6.fidu.org [127.0.0.1]) (amavisd-new, port 10026) with LMTP id DYNzcYye3W-t; Wed, 5 May 2021 19:24:06 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (p200300E37f39860005A4018A54f094b9.dip0.t-ipconnect.de [IPv6:2003:e3:7f39:8600:5a4:18a:54f0:94b9]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id 574F6C800A8; Wed, 5 May 2021 19:24:06 +0200 (CEST) From: Werner Sembach To: wse@tuxedocomputers.com, ville.syrjala@linux.intel.com, airlied@linux.ie, daniel@ffwll.ch, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] drm/i915/display Try YCbCr420 color when RGB fails Date: Wed, 5 May 2021 19:23:58 +0200 Message-Id: <20210505172401.1453178-1-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When encoder validation of a display mode fails, retry with less bandwidth heavy YCbCr420 color mode, if available. This enables some HDMI 1.4 setups to support 4k60Hz output, which previously failed silently. AMDGPU had nearly the exact same issue. This problem description is therefore copied from my commit message of the AMDGPU patch. On some setups, while the monitor and the gpu support display modes with pixel clocks of up to 600MHz, the link encoder might not. This prevents YCbCr444 and RGB encoding for 4k60Hz, but YCbCr420 encoding might still be possible. However, which color mode is used is decided before the link encoder capabilities are checked. This patch fixes the problem by retrying to find a display mode with YCbCr420 enforced and using it, if it is valid. This patchset is revision 5. Only change to 4 is a small whitespace error fix.