Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2945600pxy; Mon, 3 May 2021 11:25:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxapgZvYiywaMabNf7YYupVCJT2gl7UFsbUbIvbQKR2KrdULIqEsrp0IBtURfYa+U1I51+d X-Received: by 2002:a50:eb0d:: with SMTP id y13mr21132046edp.326.1620066359777; Mon, 03 May 2021 11:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620066359; cv=none; d=google.com; s=arc-20160816; b=n+YG7cIEjkl+yhEI2B/5Tku888F2sjwsEnfwMG9IUwCj07Pz21fKivYVz2f/B7/AqD A7f7hdBN72jnRIqwsUzQWTxrr68LPZa4JFcu9w8jF/NqAOJzh+FaNypoHw/cQAHp8kKa u1/QtGFhLwBJhUTcIdWztcupIFh6020++8pbtXOEPxFyh8zCXacMtXo5ylr/4XcdGESY a0vfURgG3P6dfbxt1duDB6VRJEpbClNYiH9oaf1gqMRG1aFaklB4hY+FWtB+gM5s2GCW Ab0sW2ewEFXE9H37bc6Jf4frZbYmYqJgALCPb4x448cHtTLz5Bikt0Yaxl9pbfcBGge6 5M6g== 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=FOnpqRK1ya4t0lpt8Ls7Ko2YOiZJqYInoOLFhqbTxyg=; b=a8VN6Moyj6txnloDYxL+M/ypATiRtSX0X6hycuP1CaEwEwstxAcjcXNgQzg+vGF0kS kaCjb5Dz4y+CBE9IMNK6eQCrTH963RHDWLSOihJTMcQbog/5GKgf+QlEtFuAlZTAINj8 0afZgN1ibMasFRBQKrZldOYPOZkjTg69Iwh3V4HEKgMYlbNw9iDnrZip6n3BxyJ2TcEc byZB+jAdSFMIXVqONlQtHzdZkqgsbYs7FcCd7k5o7EjxnGnYVnoNoj+cQTMqQxpgbX7G T2Pvt3MA3RToS9AeL/q1zm986QY8gMkuhHNN7644pedjkh2amb/SblHiA8W4/xh+o0un sUpw== 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 q16si9412186edd.547.2021.05.03.11.25.34; Mon, 03 May 2021 11:25:59 -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 S229811AbhECSXB (ORCPT + 99 others); Mon, 3 May 2021 14:23:01 -0400 Received: from srv6.fidu.org ([159.69.62.71]:56432 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbhECSW5 (ORCPT ); Mon, 3 May 2021 14:22:57 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 9A563C800D2; Mon, 3 May 2021 20:21:53 +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 2roVKCChHMH2; Mon, 3 May 2021 20:21:53 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (p200300E37f3986001A8B79e0b24CB29D.dip0.t-ipconnect.de [IPv6:2003:e3:7f39:8600:1a8b:79e0:b24c:b29d]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id E2A21C800CE; Mon, 3 May 2021 20:21:52 +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: Mon, 3 May 2021 20:21:44 +0200 Message-Id: <20210503182148.851790-1-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 2, now split up in multiple parts with some minor restructuring added für a cleaner implementation.