forked from tiiuae/ghaf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch will enable hardware accelerated display for renderering along with media hardware codecs. Also we are patching Intel i915 driver in gui-vm to avoid reserving Intel graphics memory during boot time which in turn fixes DMA Fault error on the ghaf-host. Signed-off-by: Vunny Sodhi <[email protected]>
- Loading branch information
1 parent
73ae009
commit 15f2fd6
Showing
5 changed files
with
64 additions
and
8 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
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
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
27 changes: 27 additions & 0 deletions
27
...vm/virtualization/microvm/0001-x86-gpu-Don-t-reserve-stolen-memory-for-GPU-passthro.patch
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,27 @@ | ||
From 13c0345fc3e5ed8b6c28d1f272bb2630881d4714 Mon Sep 17 00:00:00 2001 | ||
From: Vunny Sodhi <[email protected]> | ||
Date: Thu, 29 Aug 2024 19:46:24 +0300 | ||
Subject: [PATCH] x86/gpu: Don't reserve stolen memory for GPU passthrough | ||
|
||
Signed-off-by: Vunny Sodhi <[email protected]> | ||
--- | ||
arch/x86/kernel/early-quirks.c | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c | ||
index 59f4aefc6..3b735eea9 100644 | ||
--- a/arch/x86/kernel/early-quirks.c | ||
+++ b/arch/x86/kernel/early-quirks.c | ||
@@ -596,6 +596,9 @@ static void __init intel_graphics_quirks(int num, int slot, int func) | ||
u16 device; | ||
int i; | ||
|
||
+ // Nothing to do for GPU passthrough case | ||
+ return; | ||
+ | ||
/* | ||
* Reserve "stolen memory" for an integrated GPU. If we've already | ||
* found one, there's nothing to do for other (discrete) GPUs. | ||
-- | ||
2.40.1 | ||
|
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