efifb not detected on Intel DQ67SW
Hi-
For mostly masochistic reasons, I boot my DQ67SW box in UEFI mode. efifb doesn't detect the anything, so I have no console until i915 loads.
Looking at the code, I'm a little confused how it's supposed to work. AFAICT, unless there's a DMI match, then the driver will only load ifthe boot code sets VIDEO_TYPE_EFI, but nothing sets that.
Should there be something that looks at EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE to find the frame buffer? (Does that not work on Apple machines?)
--Andy
Quoted 3 lines · Andrew Lutomirski
Looking at the code, I'm a little confused how it's supposed to work. AFAICT, unless there's a DMI match, then the driver will only load ifthe boot code sets
VIDEO_TYPE_EFI, but nothing sets that.
grub should be setting that.
Quoted 3 lines
Should there be something that looks at
EFI_GRAPHICS_OUTPUT_PROTOCOL_MODEto find the frame buffer? (Does that not work on Apple machines?)
By the time we get into the kernel we've called ExitBootServices(), so at that point we can't do anything with GOP. grub should have grabbed that information and stashed it in the appropriate field.
Signature · 1 line
Matthew Garrett | [email protected]
Quoted 7 lines · Matthew Garrett
Quoted 3 lines · Andrew Lutomirski
Looking at the code, I'm a little confused how it's supposed to work. AFAICT, unless there's a DMI match, then the driver will only load ifthe boot code sets
VIDEO_TYPE_EFI, but nothing sets that.grub should be setting that.
It looks like grub-fedora (the git version, anyway) has a function set_kernel_params that tries to do this. Peter, the git tree claims that you maintain it. Are there any experiments you'd like me to do? (Dumping boot_params, perhaps?)
--Andy
Quoted 7 lines · Andrew Lutomirski
Quoted 6 lines · Matthew Garrett
Quoted 3 lines · Andrew Lutomirski
Looking at the code, I'm a little confused how it's supposed to work. AFAICT, unless there's a DMI match, then the driver will only load ifthe boot code sets
VIDEO_TYPE_EFI, but nothing sets that.
Quoted 6 lines
Quoted 1 line
grub should be setting that.
It looks like grub-fedora (the git version, anyway) has a function
set_kernel_paramsthat tries to do this. Peter, the git tree claims that you maintain it. Are there any experiments you'd like me to do? (Dumpingboot_params, perhaps?)
It's a bug in grub. If I have a splashimage then efifb works. If I don't, then efifb doesn't. If I don't hear anything back soon, I'll file a bug against Fedora.
FWIW, efifb seems really slow.
--Andy
Quoted 3 lines
--Andy
Quoted 10 lines · Andrew Lutomirski
Quoted 9 lines · Andrew Lutomirski
Quoted 7 lines · Matthew Garrett
Quoted 3 lines · Andrew Lutomirski
Looking at the code, I'm a little confused how it's supposed to work. AFAICT, unless there's a DMI match, then the driver will only load ifthe boot code sets
VIDEO_TYPE_EFI, but nothing sets that.grub should be setting that.
Quoted 8 lines
Quoted 4 lines
It looks like grub-fedora (the git version, anyway) has a function
set_kernel_paramsthat tries to do this. Peter, the git tree claims that you maintain it. Are there any experiments you'd like me to do? (Dumpingboot_params, perhaps?)It's a bug in grub. If I have a splashimage then efifb works. If I don't, then efifb doesn't. If I don't hear anything back soon, I'll file a bug against Fedora.
That's expected, though I admit it's not the best thing ever. We're currently working on not needing that bootloader at all any more, in favor of grub2, which doesn't have this limitation.
Quoted 1 line
FWIW, efifb seems really slow.
It's a non-accelerated console. Of course it's slow.
Signature · 1 line
Peter
Quoted 20 lines · Peter Jones
Quoted 10 lines · Andrew Lutomirski
Quoted 9 lines · Andrew Lutomirski
Quoted 7 lines · Matthew Garrett
Quoted 3 lines · Andrew Lutomirski
Looking at the code, I'm a little confused how it's supposed to work. AFAICT, unless there's a DMI match, then the driver will only load ifthe boot code sets
VIDEO_TYPE_EFI, but nothing sets that.grub should be setting that.
Quoted 8 lines
Quoted 4 lines
It looks like grub-fedora (the git version, anyway) has a function
set_kernel_paramsthat tries to do this. Peter, the git tree claims that you maintain it. Are there any experiments you'd like me to do? (Dumpingboot_params, perhaps?)It's a bug in grub. If I have a splashimage then efifb works. If I don't, then efifb doesn't. If I don't hear anything back soon, I'll file a bug against Fedora.
Quoted 7 lines
That's expected, though I admit it's not the best thing ever. We're currently working on not needing that bootloader at all any more, in favor of grub2, which doesn't have this limitation.
Quoted 1 line
FWIW, efifb seems really slow.
It's a non-accelerated console. Of course it's slow.
Yes, but it's really really amazingly slow. It's so slow that merely enabling it doubles the time it takes to get i915 loaded. A one-liner to fix it is coming right now...
--Andy