Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2938488pxy; Mon, 3 May 2021 11:16:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyK3x0G1sJW6z2xHfqsc1ziJhX/VzER4yQXxyz6gC7jrRsbhV83qBwj2A2u93RFqoR11y+0 X-Received: by 2002:aa7:8692:0:b029:28e:7bfd:655c with SMTP id d18-20020aa786920000b029028e7bfd655cmr8504513pfo.81.1620065807926; Mon, 03 May 2021 11:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065807; cv=none; d=google.com; s=arc-20160816; b=RlwME7C4zeLnLfQVTJAiqNC3kKJ+4V8Vm7jCGz9qNvcfDl+3DMhQT/H+T/3yvl1Tzc 157dgxe27d5qFfPXWTnuqucKZGixwdj6mchNSsn1q8MBpRtMeAHGAwMPCKCOpXPTJ4QL DlbkdzvsGlF9XzZg2I9aLzSjeTwrP+Q8iLrHBDF1sBZnFR/myy3cqSf1ZJeG3cwTLDTH 8khMuiIdYAE7jUsyRn1GC2GsQzfJ7iGf1dsWPP7LXp4F1/feJbMwarRSWrkSRlZPJUpY 5FGEvjYb7mp8spPU06y6jrZyIOcKYsk1XXwYCrhe/poT486PhV1lajF70IH55YlcgFdU aqKw== 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=wYLbuOCzn5E5BeLYP5B7J8eOmVTLfGWTFOEw6kZzL8ARql/uq76VZhOrj058erJEYs +hhL0OslV5nbckqrQWrg/bceOKEJhkftaMSWaMJQ0abcTJ42TRbH/vVW9L+1IXtztVN8 +4zChJ1u9J6ESeFUul7QdoEJyebLxVXtut6npPM6lwEvopeCyM+WKB8M43QsR5cvApH+ PBc/QBY41l34uX7LPHMVfAK9CY7hcfXSNUv+Jkhmg7wbDS+DNl9FgYLhIBeZymDF+4OE /p1SNc2Oa23yvoJVlB3DrN+czJpkuuwL8iWDHhVCmR+cEPCX+LPrUXJexrZ9rKK2lZfr 0Cfg== 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 kx14si259217pjb.39.2021.05.03.11.16.34; Mon, 03 May 2021 11:16:47 -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 S232227AbhECSJk (ORCPT + 99 others); Mon, 3 May 2021 14:09:40 -0400 Received: from srv6.fidu.org ([159.69.62.71]:56098 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232064AbhECSJZ (ORCPT ); Mon, 3 May 2021 14:09:25 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 3E51CC800D0; Mon, 3 May 2021 20:08:29 +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 lYnKtLw43Eeq; Mon, 3 May 2021 20:08:29 +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 C8427C800CE; Mon, 3 May 2021 20:08:28 +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:08:07 +0200 Message-Id: <20210503180810.851302-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.