mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-29 15:44:07 +00:00
kexec: Add new i915 driver ID
The i915 driver's ID changed again, now to i915drmfb. It's unclear why kexec checks this, it seems it could populate the target kernel's framebuffer info as long as it knows enough about the host kernel's framebuffer, which it already checks. Maybe we could improve this, for now just add the new ID again. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
parent
abbc1b5dd8
commit
13a3cee0e5
@ -21,13 +21,14 @@ diff --git a/kexec/arch/i386/x86-linux-setup.c b/kexec/arch/i386/x86-linux-setup
|
||||
index 057ee14..43e017a 100644
|
||||
--- a/kexec/arch/i386/x86-linux-setup.c
|
||||
+++ b/kexec/arch/i386/x86-linux-setup.c
|
||||
@@ -137,7 +137,8 @@ static int setup_linux_vesafb(struct x86_linux_param_header *real_mode)
|
||||
@@ -137,7 +137,9 @@ static int setup_linux_vesafb(struct x86_linux_param_header *real_mode)
|
||||
goto out;
|
||||
if (-1 == ioctl(fd, FBIOGET_VSCREENINFO, &var))
|
||||
goto out;
|
||||
- if (0 == strcmp(fix.id, "VESA VGA")) {
|
||||
+ if (0 == strcmp(fix.id, "VESA VGA")
|
||||
+ || 0 == strcmp(fix.id, "inteldrmfb")) {
|
||||
+ || 0 == strcmp(fix.id, "inteldrmfb")
|
||||
+ || 0 == strcmp(fix.id, "i915drmfb")) {
|
||||
/* VIDEO_TYPE_VLFB */
|
||||
real_mode->orig_video_isVGA = 0x23;
|
||||
} else if (0 == strcmp(fix.id, "EFI VGA")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user