Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3458474pxy; Tue, 4 May 2021 02:43:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFHECmkTE4VYY+pH9c4y1Fs0JE12PRrRpA/cWnkA/bzVWiOzBwFqrno77eAv76vov2/vl4 X-Received: by 2002:a17:906:d285:: with SMTP id ay5mr20545595ejb.222.1620121428857; Tue, 04 May 2021 02:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620121428; cv=none; d=google.com; s=arc-20160816; b=KKPsmic6XOHyVAPwX/XQV43rnWEnDifXOjLEHWItpoI/CV3aiqX2ANWiYRRb4j346S FcYAxaIpEQuhRjLLXhyTwW8UTMgI557iruxkJpWlgezcdFiDV0Bb7t46oFhtuy9KsM6a OvFtNqK9OTAaUqHYO0C6WkfRr84h9i/edhobkhSeeYrOYfAjqPs6zomz0XPnC2fhOp96 eAGNP2LoS3AycmczUCYHML04Y5OJDz1jgGOGi9uQYsVlRZKbbVx8SW8cXjmMKFoq6akC apxJYIupm1yxj5urfEwZHjY36rierniKf9OiWWzEJC4f8aiQ/7vrlh0mHVI0Ugs2auAA ysgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=T14p8fPXvyFnIc0ii5KXT656s6fMOub8zPqX1xchJFA=; b=ZOlVSKXNbUOmpFek7WXxAgffd+AW6tsQ7QkguQ4Suc/FQpMhs7x8Iyc+SG36l+f6bf skVPc6krSBDb4Jf2HXVCmOHpsGzQ021QkQcO0Je2P0WoxkbNWn3E7690qkDxsk5hyeLd e5WDpOzD+L7UbPsQfhbl+zSe8mfsvdnEGT6EGpEwSNyG1Hh4v/RZooWJmpko0788ghYL ZREvE9Sl9INKEJvvuYNcl8jlle/vkZ/KtbsQkxL4OlBGbRI38oKUf+ylKSJWf8ium7el MGeRv4lCuE+LtdGhsD9MHTkIBndVx+2RXqqkPJM1Xe91B3iuXsQ5tCJWmL3R/6ckjIeR rizg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si2660956ejj.422.2021.05.04.02.43.25; Tue, 04 May 2021 02:43:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230046AbhEDJmu (ORCPT + 99 others); Tue, 4 May 2021 05:42:50 -0400 Received: from mga05.intel.com ([192.55.52.43]:62423 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbhEDJmr (ORCPT ); Tue, 4 May 2021 05:42:47 -0400 IronPort-SDR: 74YS3uIK1X1b5HC8FkhXPYr4HMhAprg8YSsYW5jLiKr9Iyke1KaMyPtSc4FZ2BYzXgGmAV89jF OlWZvhF3FAhQ== X-IronPort-AV: E=McAfee;i="6200,9189,9973"; a="283349582" X-IronPort-AV: E=Sophos;i="5.82,272,1613462400"; d="scan'208";a="283349582" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2021 02:41:53 -0700 IronPort-SDR: sU4PVJe6GtdbV7YJEGJRCukzA44tIFHj0qbCVsUAyr5k7WbJdlTTZ7Cu+pW2E3xGVvkyE4Xtkw 1UmswrcCtc2Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,272,1613462400"; d="scan'208";a="427713958" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.171]) by orsmga007.jf.intel.com with SMTP; 04 May 2021 02:41:49 -0700 Received: by stinkbox (sSMTP sendmail emulation); Tue, 04 May 2021 12:41:48 +0300 Date: Tue, 4 May 2021 12:41:48 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Werner Sembach Cc: airlied@linux.ie, daniel@ffwll.ch, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] Add missing check Message-ID: References: <20210503182148.851790-1-wse@tuxedocomputers.com> <20210503182148.851790-3-wse@tuxedocomputers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210503182148.851790-3-wse@tuxedocomputers.com> X-Patchwork-Hint: comment Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > > --- > 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. > clock /= 2; > > status = intel_hdmi_mode_clock_valid(hdmi, clock, has_hdmi_sink); > -- > 2.25.1 -- Ville Syrj?l? Intel