Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2943249pxy; Mon, 3 May 2021 11:23:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz15k9YXx9Jn/kpNloQm0YraEoEC8NJw72sKy9WJ2BNXGRC92U/9rz9SZAm9X0gMUTLe5zJ X-Received: by 2002:aa7:87d5:0:b029:25a:b5f8:15ab with SMTP id i21-20020aa787d50000b029025ab5f815abmr20108303pfo.22.1620066184686; Mon, 03 May 2021 11:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620066184; cv=none; d=google.com; s=arc-20160816; b=bSoV126j0n6CuL6avGpHBvJMz0qzEXzMfwmWtn4arPjVg1tjH0uWpdtAjHHtfa3+C4 RdBemOWOr3Imn+Xg4TgO8m4kOGbDcvpmaQKlHv1EJR5iBNHmyXhoFYbgSZF2shZt5W7T NfNsTN6hveWoU+T5LzyAFa4PnsP/bLWWV3DMaWzcyUHq+gmrizGLG71TsGBlgJjHgnrb z30Tz8E3YmZCLeP+tBn61mV9y0ItGk3rMyKXKle/BC46OBTdbXnHrHfniCiYtdAKUOoh eXRlGMvvXc0jwCqAZAoqqmpLy8KylAG5P755ZKLjn0n8v2OzA56eD1qVq0VpeJ+FxhlW vjSA== 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=ZeKuFJCn24xOJk398PCxV0HO/cbWGBbT6zgKA8QkBw4=; b=lZ4LNlknVulLb3lrplLFZ4mOG60CK11hXhv8+qrHsfaXyWxH++gHQTWYrqZ49lxv7k nmSZWCMhe04v3IRJBEJ1V7YhH1Xt+O7v9pOvbGhibUmECNGfFXX/uNEb5DbymDNviUNG 6qdRW0Vbe24pfiy5D/q7ealW3lXnPKqFSSP0cM2Vkx1lqEYBWIDawCs3y+GNxAnDRk7O sdWUM1hdU3j7ApK4wzaxJVad23xVa5wG4oIsB3Zpv/61Ybi/xb2iM01SQlrAC7ZXHGZa UPSTfiKq4jqrLV/HlszYqmkt83ywsX63N2psuDBWk0qc6A+m8S31qxhQ3gFedBxbfn8J emxQ== 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.22.51; Mon, 03 May 2021 11:23:04 -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 S229768AbhECSW7 (ORCPT + 99 others); Mon, 3 May 2021 14:22:59 -0400 Received: from srv6.fidu.org ([159.69.62.71]:56462 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbhECSW5 (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 0168BC800D5; Mon, 3 May 2021 20:21:54 +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 qyb-wfgdHNVr; 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 A300EC800CE; Mon, 3 May 2021 20:21:53 +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 2/4] Add missing check Date: Mon, 3 May 2021 20:21:46 +0200 Message-Id: <20210503182148.851790-3-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210503182148.851790-1-wse@tuxedocomputers.com> References: <20210503182148.851790-1-wse@tuxedocomputers.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a missing check that could potentially lead to an unarchivable mode being validated. Signed-off-by: Werner Sembach --- From 54fa706f0a5f260a32af5d18b9622ceebb94c12e Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Mon, 3 May 2021 14:42:36 +0200 Subject: [PATCH 2/4] Add missing check --- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c index 576d3d910d06..ce165ef28e88 100644 --- a/drivers/gpu/drm/i915/display/intel_hdmi.c +++ b/drivers/gpu/drm/i915/display/intel_hdmi.c @@ -1913,7 +1913,7 @@ intel_hdmi_mode_valid(struct drm_connector *connector, clock *= 2; } - if (drm_mode_is_420_only(&connector->display_info, mode)) + if (connector->ycbcr_420_allowed && drm_mode_is_420_only(&connector->display_info, mode)) clock /= 2; status = intel_hdmi_mode_clock_valid(hdmi, clock, has_hdmi_sink); -- 2.25.1