Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp498847pxy; Wed, 5 May 2021 07:17:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeDafE2SO7nQKlnELjPZAnq7jn5azV+KSA0je+i5ibv0+gMNk4Guvjaz+Xeo1OgEA6mbgL X-Received: by 2002:a17:906:e4a:: with SMTP id q10mr27096359eji.511.1620224257853; Wed, 05 May 2021 07:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620224257; cv=none; d=google.com; s=arc-20160816; b=AAPRpeddng9Lklq0nBJB6OJIHYBWSmWbavic8elrU5feibn7Sffpfl+6ljzuIBYHXw JgmfvAcJA+UShdF0oaEpI7C+A1cv5LB1Wsnde5Vi+iQHwfhP3BzOqQ+oEglVDn9+LrOo vASkMteIjuPuBzTXzY+GP5SKKJFAtL+6sxG1bf2CwzAhVRRiMQxZIMDYYy9Ax4bxpPFF vE4DGzB76gWmmo2STpj8HamObB/kl5aLI1v8TQZU68fZmhEY6yEKVZMfc2qszEdOswLw H6vKLOxLJkcFY0nHLUhRlZf6haai/yIOTZavQE5bFaC76eUj2pmYwrJXOlWUlUC7YDhm 1l+Q== 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=ijtLRrCRPy2EYkNyoUNstwENp7xrGMfmCf7o8bMEsAQ=; b=uuuczG6F3wzL78xY1G3tXLmQ6UKRrgC1urKHHbuXypUymk6nJybrYRUULTEHzJ2CxD j4RbZDONm+ZNe1pHF1FP0Fgw++QvYLJKfAEiw+NE+k6+spaUZHqx0YSt66HaK72x4NUt hQj1tOQ6I+B5hsmtaDfFfVQ6yuGzJYy9Li259g7v+Hi5h6lMPcX8z2MnfnKKWBx1g7wJ Lv6oqap0Q5ng2I+5YU1bbf3QQnep/2d4pStr+30xak0FlHHu+p3Z1AeEeDL06EGqFtML tfS+Isu7EiadQou1SvIwLuzIxjzsP3Ao1eTYnZ6HoP+GWSqmHld1DLCQYTFK9g9MizJz Lp9g== 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 p16si5347001ejf.257.2021.05.05.07.17.13; Wed, 05 May 2021 07:17:37 -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 S233656AbhEEOLy (ORCPT + 99 others); Wed, 5 May 2021 10:11:54 -0400 Received: from srv6.fidu.org ([159.69.62.71]:60330 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232558AbhEEOLx (ORCPT ); Wed, 5 May 2021 10:11:53 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id F1555C800B6; Wed, 5 May 2021 16:10: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 RADldgv4FbbV; Wed, 5 May 2021 16:10:55 +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 A53FEC800A8; Wed, 5 May 2021 16:10:55 +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/4] drm/i915/display Try YCbCr420 color when RGB fails Date: Wed, 5 May 2021 16:10:49 +0200 Message-Id: <20210505141052.3467-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 3. I did not (yet) include all suggested changes as I'm waiting for some clarification. See my last emails.