Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp654813pxy; Wed, 5 May 2021 10:26:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwI4pXEoe2VfW15U7c9VWFQji4ozRIivdb7URbdoD1LmprLsr8s/9W7jiis5g/+mm3lBRXN X-Received: by 2002:aa7:8750:0:b029:28e:d3b9:cdec with SMTP id g16-20020aa787500000b029028ed3b9cdecmr62391pfo.20.1620235565342; Wed, 05 May 2021 10:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620235565; cv=none; d=google.com; s=arc-20160816; b=AXhXA7cU7v9GpBdEDKBoJ0WM/jSkmAGYwaSU3X8TkQttlTle2YsoRC2BcKhgN5ZaoQ Q+FQilBInXMtRRA1ozTpx7Q6FZ8mupnDvDDEpqmdX3fKALwRcNuwdGR/vmkjmEkdCohh mchttKs7LkVfnwTJlJUuy00vsvbuqK+Ss+Tdnos5ZiWSIfdesG6wPEGzXZLsAHKorIpV 6yRHcJJyDP58gBcJMBEd0/Msv2lsCikuVoqrVeHwTkF9Wg7MNyR9m7NmljpNLmmU3IRb ac3JRQ9GA/Y7U1bFQ6xwanaWVNLkekXVl6ewVjme/XWRpeV1m4oQBI62FMker4LS7QwA aPfg== 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=G9F7cFj1xA+GCinNKz+6nuCf7eJU9g35dhXXlLWGp50=; b=Nqac1lf9lITFsZouLGGKQsZyX7wZSlbnPjtptccERFfbbpNpqj47dWe2tw9srl7jEt yuXlJIPO/mzUdVaHwnW9j5w3Mvjoy4CpYk81xgQwfSFz94nu3N6Hi/KQqg5J1USJNPEq doYH7cyIM56/RtS9WnJUi+wURuY4bQV1yQBysOQMq6eyKvpClzr1cztSb3y3iCfgTolB 9cdJ+kJc1Dyg5RVF1l1RpnmJr+JbSXWJxlxUcBnVQbmJkhz+luwkcfxSsR+LY7916oPx BfufmtXq+Pwp6Wbh2JToZiH1LJZUaNZ4M6QqlNzMcDWobOFGOuUELoo2n+ooXbCVMsXr Deag== 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 s17si7846825plq.149.2021.05.05.10.25.48; Wed, 05 May 2021 10:26:05 -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 S237666AbhEERWT (ORCPT + 99 others); Wed, 5 May 2021 13:22:19 -0400 Received: from srv6.fidu.org ([159.69.62.71]:40764 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239961AbhEERP4 (ORCPT ); Wed, 5 May 2021 13:15:56 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 271C3C800B3; Wed, 5 May 2021 19:14:58 +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 krvTZfqJ2lyK; Wed, 5 May 2021 19:14:58 +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 C70C7C800A8; Wed, 5 May 2021 19:14:57 +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/3] drm/i915/display Try YCbCr420 color when RGB fails Date: Wed, 5 May 2021 19:14:50 +0200 Message-Id: <20210505171453.1403560-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 4. After getting clarification on questions ask on the mailing list.