Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp19803pxj; Fri, 7 May 2021 02:46:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOTq/qRG5tl1iS1cDEmypBqhZG3To+SavYKyKhHCQOVfdS2Xlc5FealXME32QXspyG/zE8 X-Received: by 2002:a17:906:c0d6:: with SMTP id bn22mr9120835ejb.267.1620380763054; Fri, 07 May 2021 02:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620380763; cv=none; d=google.com; s=arc-20160816; b=zcvsU7jL9fu1RfnnPLZF0bAWltQHACqkAw/zDv3gkvQQAoWokza2gUKIshChSCu4DM 3eb7V3bDvmy4AfBohFCtLthpInDpcDqbQsoxjYqoLLuXtkizg6a0PvJiXB134ckAm53V WidPOIC1CAKHZnL0Wjy9KtHe4T8b/ikDcu4RXEddZ7mVcYU+hbM1+Nd6BM/ZQ2AEfgZa xsuithCgYYkqw0zF0F/kmUHnNd9EJEs88ZXYEHuFxcPkmD9qFQPYq9U2uz1D1bRUmPVi p4x2v3+2oJIIb3tLsmTKbCZn+PLKZg1mBGfUYiYkDEDLce+advTJGAQTuOmgLlWnJhIP QWpg== 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 :references:in-reply-to:message-id:date:subject:to:from; bh=XGM/afHUcGPDymm9EJshIHpH1HGb1ARELm3eB8G1ofk=; b=AV6JEbkNrsCS/ZUK0g3KKuVy0wJZPadLjY7rKtr5KDB0ElGoXNUKVZbf0dAquwGLB2 mR0yoiHRcyI0rbMt5uchYcQ191PB51hMcevLI8GKutCPXq7snObNwxlDjn9t8VwKK+r+ fDd/XFY1w3gG9Z/eUlAHUflLtmyjiy9jNoMudhNO9b1ov9vCLM5r74On5N5AlHPBV4Li hRILp8G/UC1P0zsgjaD7JYmgKsnISQdZ/gavqicut2gUeAi4hRwg0h3chtqE+k/nVbM2 AonqdDCjDKFIJh/mKDylOxroUAYQ++gyR6q+NEyVfoinLzMdxtQy3RHXo46JaBpoBhp6 +CCg== 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 o19si4348428edq.609.2021.05.07.02.45.36; Fri, 07 May 2021 02:46:03 -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 S236446AbhEGIuM (ORCPT + 99 others); Fri, 7 May 2021 04:50:12 -0400 Received: from srv6.fidu.org ([159.69.62.71]:51282 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235078AbhEGIuL (ORCPT ); Fri, 7 May 2021 04:50:11 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 699ADC800AE; Fri, 7 May 2021 10:49:10 +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 hYg_f1Xf98Gn; Fri, 7 May 2021 10:49:10 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (p200300E37f12F200FD3bB57523c33F70.dip0.t-ipconnect.de [IPv6:2003:e3:7f12:f200:fd3b:b575:23c3:3f70]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id E90E9C800AA; Fri, 7 May 2021 10:49:09 +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 v6 0/3] drm/i915/display: Try YCbCr420 color when RGB fails Date: Fri, 7 May 2021 10:49:00 +0200 Message-Id: <20210507084903.28877-1-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210506172325.1995964-1-wse@tuxedocomputers.com> References: <20210506172325.1995964-1-wse@tuxedocomputers.com> 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 6. Fixed only some coding style issues.