-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* igd: Extend IGD check Fix patch order in the spec file
- Loading branch information
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From 7e76d6cc408d11fe7ed9ba4792d063c01646ed3b Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= | ||
<[email protected]> | ||
Date: Thu, 28 Nov 2024 04:51:44 +0100 | ||
Subject: [PATCH] libxl: extend IGD check | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
Consider also "Display controller" an IGD, not only "VGA compatible | ||
controller". Specifically, IGD on Raptor Lake has 0x038000 class, not | ||
0x030000. | ||
|
||
Signed-off-by: Marek Marczykowski-Górecki <[email protected]> | ||
--- | ||
tools/libs/light/libxl_pci.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/tools/libs/light/libxl_pci.c b/tools/libs/light/libxl_pci.c | ||
index 35e3e1360423..5be9b8239567 100644 | ||
--- a/tools/libs/light/libxl_pci.c | ||
+++ b/tools/libs/light/libxl_pci.c | ||
@@ -635,7 +635,7 @@ bool libxl__is_igd_vga_passthru(libxl__gc *gc, | ||
|
||
if (sysfs_dev_get_class(gc, pci, &class)) | ||
continue; | ||
- if (class == 0x030000) | ||
+ if (class == 0x030000 || class == 0x038000) | ||
return true; | ||
} | ||
|
||
-- | ||
2.46.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters