From mboxrd@z Thu Jan 1 00:00:00 1970 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 4D12C1A2392 for ; Sat, 6 Jun 2026 02:19:04 +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=1780712345; cv=none; b=kDEq/E2CkxjYQ2602H9FRXGv3bnxPDv0baxvi7Vc2/3VUUMDfQ/88BwEJ4J7/5TWNrW/63GZdvPXIbkh788TMkEu1/MvApgpoUygJGVrc6zgabTTt1ECr3AiQHvTiTEA/wRCrPfqR8ZdMHEeKbScILITF44+wvYwyoGXX5c74N4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780712345; c=relaxed/simple; bh=p55uUSuFfrg1nrYmRxkwWylhXZ/W4NmuW8IjkYenLuY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=llofjoWEQEURtZ9mLkRA4+I3RZKaE42dluDtBubN6hvdBrXGUwQSTB0uLI7AaguRN6ZUzug8qAQWBUfGgKBfy2PUZEQfnYwpPK4HLBW53flfD3YtqNpiKh2JXYT6bHQDCY2YZh4O5t7UB6qaXGdNztEg6EYeevNXBXAQcJUU2Ow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MwWW0TgN; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MwWW0TgN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 478261F00893; Sat, 6 Jun 2026 02:19:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780712343; bh=P2rf2eBw3gJiiiKpC8xgf/ce8oL8sS4+HCwGsd1S6/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MwWW0TgNi409YQWAHZP/FXvzX+Ldgu2+PjeCv9LTI1uejKEmVxav0HITSHqY84KUF F0P+gEk6ciLLaHwR5TF5EDu0CZxM/oXpX9G/J/2WULhNc1lJIBp9i+Mv1tIa1SOMTx d+oQY7yiznX/jPBGnJunBCZb/b4Ym8Q17p2mFo6weWLmTCxfHwSFR2xo24Ll0LjRUl 70p6pw5ZvPzvKVS/4dII03lBLv+M14FgsQBq3bzJxQ3xyDKZItO/z8sUzahDfKFrvl AkwE7oxe0Fuj2yP93PLddiLUVwRzedu0DfKiL3yHxEpHQccWNPtvowRfYQkN5rlKA7 3CqR7cgvvGUoQ== From: Sasha Levin To: stable@vger.kernel.org Cc: Michael Kelley , Deepak Rawat , "Andrea Parri (Microsoft)" , Wei Liu , Sasha Levin Subject: [PATCH 5.15.y 1/2] drm/hyperv: Remove support for Hyper-V 2008 and 2008R2/Win7 Date: Fri, 5 Jun 2026 22:19:00 -0400 Message-ID: <20260606021901.2488724-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <2026060454-destitute-bulb-134a@gregkh> References: <2026060454-destitute-bulb-134a@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Michael Kelley [ Upstream commit ac6811a9b36f3ceb549d8b84bd8aeedf6026df02 ] The DRM Hyper-V driver has special case code for running on the first released versions of Hyper-V: 2008 and 2008 R2/Windows 7. These versions are now out of support (except for extended security updates) and lack support for performance features that are needed for effective production usage of Linux guests. The negotiation of the VMbus protocol versions required by these old Hyper-V versions has been removed from the VMbus driver. So now remove the handling of these VMbus protocol versions from the DRM Hyper-V driver. Signed-off-by: Michael Kelley Reviewed-by: Deepak Rawat Reviewed-by: Andrea Parri (Microsoft) Link: https://lore.kernel.org/r/1651509391-2058-5-git-send-email-mikelley@microsoft.com Signed-off-by: Wei Liu Stable-dep-of: 13d33b9ef670 ("drm/hyperv: validate resolution_count and fix WIN8 fallback") Signed-off-by: Sasha Levin --- drivers/gpu/drm/hyperv/hyperv_drm_proto.c | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_proto.c b/drivers/gpu/drm/hyperv/hyperv_drm_proto.c index c0155c6271bf89..76a182a9a76547 100644 --- a/drivers/gpu/drm/hyperv/hyperv_drm_proto.c +++ b/drivers/gpu/drm/hyperv/hyperv_drm_proto.c @@ -18,16 +18,16 @@ #define SYNTHVID_VERSION(major, minor) ((minor) << 16 | (major)) #define SYNTHVID_VER_GET_MAJOR(ver) (ver & 0x0000ffff) #define SYNTHVID_VER_GET_MINOR(ver) ((ver & 0xffff0000) >> 16) + +/* Support for VERSION_WIN7 is removed. #define is retained for reference. */ #define SYNTHVID_VERSION_WIN7 SYNTHVID_VERSION(3, 0) #define SYNTHVID_VERSION_WIN8 SYNTHVID_VERSION(3, 2) #define SYNTHVID_VERSION_WIN10 SYNTHVID_VERSION(3, 5) -#define SYNTHVID_DEPTH_WIN7 16 #define SYNTHVID_DEPTH_WIN8 32 -#define SYNTHVID_FB_SIZE_WIN7 (4 * 1024 * 1024) +#define SYNTHVID_WIDTH_WIN8 1600 +#define SYNTHVID_HEIGHT_WIN8 1200 #define SYNTHVID_FB_SIZE_WIN8 (8 * 1024 * 1024) -#define SYNTHVID_WIDTH_MAX_WIN7 1600 -#define SYNTHVID_HEIGHT_MAX_WIN7 1200 enum pipe_msg_type { PIPE_MSG_INVALID, @@ -496,12 +496,6 @@ int hyperv_connect_vsp(struct hv_device *hdev) case VERSION_WIN8: case VERSION_WIN8_1: ret = hyperv_negotiate_version(hdev, SYNTHVID_VERSION_WIN8); - if (!ret) - break; - fallthrough; - case VERSION_WS2008: - case VERSION_WIN7: - ret = hyperv_negotiate_version(hdev, SYNTHVID_VERSION_WIN7); break; default: ret = hyperv_negotiate_version(hdev, SYNTHVID_VERSION_WIN10); @@ -513,18 +507,15 @@ int hyperv_connect_vsp(struct hv_device *hdev) goto error; } - if (hv->synthvid_version == SYNTHVID_VERSION_WIN7) - hv->screen_depth = SYNTHVID_DEPTH_WIN7; - else - hv->screen_depth = SYNTHVID_DEPTH_WIN8; + hv->screen_depth = SYNTHVID_DEPTH_WIN8; if (hyperv_version_ge(hv->synthvid_version, SYNTHVID_VERSION_WIN10)) { ret = hyperv_get_supported_resolution(hdev); if (ret) drm_err(dev, "Failed to get supported resolution from host, use default\n"); } else { - hv->screen_width_max = SYNTHVID_WIDTH_MAX_WIN7; - hv->screen_height_max = SYNTHVID_HEIGHT_MAX_WIN7; + hv->screen_width_max = SYNTHVID_WIDTH_WIN8; + hv->screen_height_max = SYNTHVID_HEIGHT_WIN8; } hv->mmio_megabytes = hdev->channel->offermsg.offer.mmio_megabytes; -- 2.53.0