Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2602093pxj; Mon, 10 May 2021 06:48:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkXYoZ3AXAoI8C92g71ZTrvZZxKM5gc4BnMi1bmfGmgNMb4kDCBI73gP8X346HHo0mjp2z X-Received: by 2002:a05:6402:d05:: with SMTP id eb5mr29326348edb.6.1620654514427; Mon, 10 May 2021 06:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620654514; cv=none; d=google.com; s=arc-20160816; b=URmmbOqGAJW3B3gTofjwpbWIUeQCIx/1UWYCzbuBUe0IIDoG/a7opbVzIQHJ3el9d9 I7DjAys8su2suJ2OOmdOKNZm96udwC82Y1aqjyWhaxO/3tpAq2gOzrIohegaepmboLEs erQZXcH8DzTcjrsPIfLSUxMXjMPFrgyW2MXYvBMI12nvbpYmsLEf51WjLpLKqxe1mKdg eOLF7ZsRSTPuaYxObe3VCe3NvO449St/QJI2vPbtYfPpjqdzuKeW1rpC5cSl5E4ENewa DLUSnZ0/Z3pbDeYZisqPcLsGMaMtONkiEAZz6Ov8u3R7Y9YhEKPTLFTyaM1PUhzFaLey H0bQ== 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=dyrQyY87NQ+dc9B6244Nchec2x5mBvNCp1SbCZ5yQjk=; b=u31dvOXpK4xaUdAO99fvti7DpESzU4b9Tr7mThGqCRSNXkGgzoyDM3h7cvTXMy92Cc /Xzwg9z4XsQLFq0xM9/cqlugGveNQOVmXdZ8kverIMp9FzYtRZGNTCSBcBEdRh/3mJ+u byU9WkYCi5OdDQNYElN+OpKHWci8vFEWMMc5rE6fcBU9PNY+0NMUrI0waZsrwrm5BXwQ xtl3H0cRhOb3DB0glByv4pzfdYgzn3DR74dpCXByOcFvEzG8Ib1CwmAsmj0EP2pLFdxy Edbn6qdEHbhqvGmM1H6uNHRZu1t97R9kt+yWOV6t8PzBXL+a9d3lN1X3WZyYDPTAFHyE KQyA== 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 i14si14605663eje.207.2021.05.10.06.48.10; Mon, 10 May 2021 06:48:34 -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 S233732AbhEJNrw (ORCPT + 99 others); Mon, 10 May 2021 09:47:52 -0400 Received: from srv6.fidu.org ([159.69.62.71]:57852 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241246AbhEJNfI (ORCPT ); Mon, 10 May 2021 09:35:08 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id F1A47C800AA; Mon, 10 May 2021 15:33:55 +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 KqBq92YQCs-N; Mon, 10 May 2021 15:33:55 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (p200300E37F0dA80022824231f945140A.dip0.t-ipconnect.de [IPv6:2003:e3:7f0d:a800:2282:4231:f945:140a]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id 910A6C800A5; Mon, 10 May 2021 15:33:55 +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 v7 0/3] drm/i915/display: Try YCbCr420 color when RGB fails Date: Mon, 10 May 2021 15:33:46 +0200 Message-Id: <20210510133349.14491-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 7. Fixed a rebase issue in 1/3 and moved message from error output to debug output in 2/3.