Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1566303pxy; Thu, 6 May 2021 10:25:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjNmpZLEJMIRed8d3GIZpGK7s5mi86XTHjA+mM+OwgDwl1NUBsHEufB8UsJET5zCzr2sqL X-Received: by 2002:a17:907:209b:: with SMTP id pv27mr5682577ejb.475.1620321914656; Thu, 06 May 2021 10:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620321914; cv=none; d=google.com; s=arc-20160816; b=rgM2bszQguKXV56OX8Tmoszcc3QAWhd2CO8uNQcUpNyBrbD1bGN1w/v40FFBSPueJ/ ym2OMIPA966k+SCk/J9y582aAP4GlO+V0XU6qWRy1T7PkUICDoaBchvaY9VPfmT/w3J2 Na587TwEhkNcMs6gJdToM2+9r0avGoEcRnjqjaS+6Zbmz3kEbVlB7Cz77vjQo9Wrj5ba Gb/U7IkMqGew71cV2/6+160bVqA9VZCAj7APmz/x8gOJRR1HiD+mTXlvSmcQnv+FBI3f wmzizkaW6DLaNgz6Mtu9wROlyg3Nq1Z48lFcoiWzx3EmGCn65TLxkuq15GbNuXHQax4A Vo1w== 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=+XMk+kRg4x/P1yV87J41n9y1jK0b5XO0EHTA2XVhdhs=; b=Lu+s/EpwAC1oDv9e+oRlqZPSdtlIWtxga3ZbAmzqNm3udOIUpLE3TtfTWmSp3h4vDT DFL6jM9jHT2VcEi+Dp9a4Q8o41HmfgskLqTEzgAsoV9P0UbmrF9PFtPOKUiH0c8kf/KA Lt1rK0i9oVg7dg40/5WXXog4qGHJYgikUvz+uxBcMVxhvojKNLgVHlUrKNxEfVnVNdjv dok64ga6ILc8wE2bPEHJfOjgR7N2C1R8SLoZ7fzt2CU9wWF/lmMty3uVU5V1HmbnAJoA Xb980JSrIEgR8aei89ZaVKI+gHzNpvOxJJgpPCPmfne3uaTUKT5DGTn/PPlY1Mg5t0OY lO0A== 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 o4si2810296eji.324.2021.05.06.10.24.46; Thu, 06 May 2021 10:25:14 -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 S236232AbhEFRYg (ORCPT + 99 others); Thu, 6 May 2021 13:24:36 -0400 Received: from srv6.fidu.org ([159.69.62.71]:57720 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236042AbhEFRYe (ORCPT ); Thu, 6 May 2021 13:24:34 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id BF278C800AE; Thu, 6 May 2021 19:23:34 +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 GWKsiSSuUWHl; Thu, 6 May 2021 19:23:34 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (p200300e37F12f2008bdED9a70B37E3f5.dip0.t-ipconnect.de [IPv6:2003:e3:7f12:f200:8bde:d9a7:b37:e3f5]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id 57D0FC800AB; Thu, 6 May 2021 19:23:34 +0200 (CEST) From: Werner Sembach To: 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: Thu, 6 May 2021 19:23:22 +0200 Message-Id: <20210506172325.1995964-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. Resend because automation tools did not work with wrong e-mail format used before.