History

Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull EFI fix from Ingo Molnar: "Fix an EFI-fb regression that affects certain x86 systems" * 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: fbdev/efifb: Ignore framebuffer memmap entries that lack any memory types

Linus Torvalds committed 7 years ago

Commit 39feaa32 parents 1335d9a f8585531 file · +6 −2Browse files

Unified · Split

drivers/video/fbdev/efifb.c+6−2
@@ -477,8 +477,12 @@ static int efifb_probe(struct platform_device *dev) · 476 unmodified lines
477477 * If the UEFI memory map covers the efifb region, we may only
478478 * remap it using the attributes the memory map prescribes.
479479 */
480− mem_flags |= EFI_MEMORY_WT | EFI_MEMORY_WB;
481− mem_flags &= md.attribute;
480+ md.attribute &= EFI_MEMORY_UC | EFI_MEMORY_WC |
481+ EFI_MEMORY_WT | EFI_MEMORY_WB;
482+ if (md.attribute) {
483+ mem_flags |= EFI_MEMORY_WT | EFI_MEMORY_WB;
484+ mem_flags &= md.attribute;
485+ }
482486 }
483487 if (mem_flags & EFI_MEMORY_WC)
484488 info->screen_base = ioremap_wc(efifb_fix.smem_start,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t