Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp342209pxy; Wed, 5 May 2021 03:43:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGgkJueibjiqn3T6eMXPnAMZkCJPD4xKNk3tKmta1kFJ8ZWtjbbmoT8J+EMZKKz+6t2rVD X-Received: by 2002:a05:6a00:230b:b029:28e:bdea:9b12 with SMTP id h11-20020a056a00230bb029028ebdea9b12mr10861226pfh.7.1620211393349; Wed, 05 May 2021 03:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620211393; cv=none; d=google.com; s=arc-20160816; b=CQ2oTWWXgyz6DpSs6rBvreYSTaozc9IK4IsYDR7uaB/FaguR2s3wS4NflRFeNzyMkF tsD78laTglz79OrGxANf0+LxQTT1WiJLXcsSeq+4cLEvo9TEcuXQocUhDr3UljjedMww i8D/7VnVrVwiFpkZ3cbY+snFYf5OOXsoKuw7XK+drBvryVBU3hyvJ7o2bX8o0zrSmI7y mNFiOwwo1F02pr3ht3UcIG221eblI4H9iykKaCjcsa1z6wMaI0IpWHEF1gKXr5wSdLii 9jgoCt4IqAZwRyi0LNmNq8lP2W7CrbzLxDChZyC+jYpTO/4L3f62QGpogZLYkbau9EST +VCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=l25DjAxuXBkf+sdQ0t+LEVObFMeZRhRsEM45PpYUqsM=; b=CX4FhhZOoC3d4Lf0K0k3l14o1cnL1niiAd//Ar8Ze2urRMni07avj9OYavm9fs29OW pJ58gaFlfFK+ydMUNQKbD2Oi0h3nOpuznV6mhWz48Ag4INIunv9U9KOzLGVZfYVMLvdT /b7KoujRToZMZRIS9LHnl+QGg6LAU4ajqeBbaqLaFrOsmyT8kK9F//5xG9U2YSdBxuMV TjnPqqPCqNrh+IUyfmHGMKy0rAIOPOEthJ90NTRkgjV0AdEWlI53hejWsyTAkkJgJs4h gY7c2T6KPq1lqX+b4oOHOlLfe6P18IuVJfMdTF1Z2/+Sik1PzlQRf5k/Cl8ofHm0yv6t mdaw== 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 l5si6641330plk.361.2021.05.05.03.42.59; Wed, 05 May 2021 03:43:13 -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 S231265AbhEEJdF convert rfc822-to-8bit (ORCPT + 99 others); Wed, 5 May 2021 05:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231129AbhEEJdE (ORCPT ); Wed, 5 May 2021 05:33:04 -0400 Received: from srv6.fidu.org (srv6.fidu.org [IPv6:2a01:4f8:231:de0::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2CACC061574 for ; Wed, 5 May 2021 02:32:07 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id BD54BC800B7; Wed, 5 May 2021 11:32:04 +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 10024) with LMTP id YlBRfrwkfAw1; Wed, 5 May 2021 11:32:04 +0200 (CEST) Received: from [IPv6:2003:e3:7f39:8600:6e35:22:d0af:f0c] (p200300e37f3986006E350022d0af0f0C.dip0.t-ipconnect.de [IPv6:2003:e3:7f39:8600:6e35:22:d0af:f0c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPSA id 6D59FC800B6; Wed, 5 May 2021 11:32:04 +0200 (CEST) To: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= Cc: airlied@linux.ie, daniel@ffwll.ch, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20210503182148.851790-1-wse@tuxedocomputers.com> <20210503182148.851790-3-wse@tuxedocomputers.com> From: Werner Sembach Subject: Re: [PATCH 2/4] Add missing check Message-ID: <559ca7d0-f68d-32c8-d2d9-37f57d2ecdcd@tuxedocomputers.com> Date: Wed, 5 May 2021 11:32:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 04.05.21 um 11:41 schrieb Ville Syrjälä: > On Mon, May 03, 2021 at 08:21:46PM +0200, Werner Sembach wrote: >> 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 > I guess you did something a bit wonky with git format-patch/send-mail? I have no idea how that timestamp happened, I will check when sending my next patch ^^. >> --- >> 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)) > This one shouldn't be necessary. drm_mode_validate_ycbcr420() has > already checked it for us. I wasn't aware of drm_mode_validate_ycbcr420, thanks for the hint. In the "420_also"-patch I change drm_mode_is_420_only to drm_mode_is_420 (helper function: _only + _also), which is not checked by drm_mode_validate_ycbcr420. I can add this check to that patch, since its only required then. >> clock /= 2; >> >> status = intel_hdmi_mode_clock_valid(hdmi, clock, has_hdmi_sink); >> -- >> 2.25.1