Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5843C470EB8 for ; Wed, 29 Jul 2026 11:17:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785323832; cv=none; b=QS9M41rjU3s1nC0ekhoSzXk9wxVgti1tQ0s3gKOGfiZmxskljZF8jObPCHnJkeAYSSCgIouRDzUvqZE+7TaL0latSLxHh8e0oK8U3jpZpCkBZsuZvt9OnMIToQt+SlEdMwANZ7BBIHb0M1x3WenwQGgFyJzPDnfqYJ47dV46qW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785323832; c=relaxed/simple; bh=fJTNh5znsJUQh+hPJKKymZUbnN/vLNAZEyflvAbAeFs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=sSdl14D2ynPBo8qRKA4NdughVegff5lQRR9nEnOMJsT21z/TLT/KWDbzWGS6L+id3NuKst46g2U+K7ap7TMW8Nw62LvYjJTMDUArT01UJaEB8nujQL1TQKy139Ww08pbhNkSGyTfI+0qgwplsi2Q1TXrOzRV/wDtsJzsS5nRANM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K5E1qcma; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="K5E1qcma" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64E691F000E9; Wed, 29 Jul 2026 11:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785323830; bh=6BD/PrOcVTHPf2lkDOSY3fpKIvzvDDXgluxjTsUPums=; h=Subject:To:Cc:From:Date; b=K5E1qcmad64nh5db2Z1v6njdFJx2DFARxm2tv8j6fErPTm68BPiil53EWFM2zdSyI WAxUA4/u0M1nQczcVykLc+eZXjmHOsq1ZPpbpen4l35omXs2ifai4Z+5ywsTpx8RRP grDvojG/cGyeMtQ31udxLhpdl0aNtzyZo2JazMmU= Subject: FAILED: patch "[PATCH] drm/i915/vrr: require valid min/max vfreq for VRR" failed to apply to 6.6-stable tree To: jani.nikula@intel.com,ankit.k.nautiyal@intel.com,joonas.lahtinen@linux.intel.com,martin.hodo@intel.com Cc: From: Date: Wed, 29 Jul 2026 13:16:54 +0200 Message-ID: <2026072954-entail-overdrive-8a88@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x f8a9262c7a6fc2de9802e14b0228114f0333869e # git commit -s git send-email --to '' --in-reply-to '2026072954-entail-overdrive-8a88@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From f8a9262c7a6fc2de9802e14b0228114f0333869e Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 25 Jun 2026 16:10:40 +0300 Subject: [PATCH] drm/i915/vrr: require valid min/max vfreq for VRR Ensure the EDID provided min/max vfreq are valid. Most scenarios are already covered (by coincidence) through the checks in intel_vrr_is_capable() and intel_vrr_is_in_range(), but be more explicit about it. At worst, a zero min_vfreq could lead to a division by zero in intel_vrr_compute_vmax(). Discovered using AI-assisted static analysis confirmed by Intel Product Security. Reported-by: Martin Hodo Fixes: 117cd09ba528 ("drm/i915/display/dp: Compute VRR state in atomic_check") Cc: stable@vger.kernel.org # v5.12+ Cc: Ankit Nautiyal Reviewed-by: Ankit Nautiyal Link: https://patch.msgid.link/20260625131040.1051272-1-jani.nikula@intel.com Signed-off-by: Jani Nikula (cherry picked from commit 1765cf59f517b02f3b0591fe5120930d08bddeb6) Signed-off-by: Joonas Lahtinen diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c index e03b5daac5be..aa587be908f1 100644 --- a/drivers/gpu/drm/i915/display/intel_vrr.c +++ b/drivers/gpu/drm/i915/display/intel_vrr.c @@ -74,6 +74,10 @@ bool intel_vrr_is_capable(struct intel_connector *connector) return false; } + if (!info->monitor_range.min_vfreq || !info->monitor_range.max_vfreq || + info->monitor_range.min_vfreq > info->monitor_range.max_vfreq) + return false; + return info->monitor_range.max_vfreq - info->monitor_range.min_vfreq > 10; }