diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-11-15 09:18:05 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-11-15 09:18:05 -0800 |
| commit | fa2933aac170dd19c6a7f0d7b81a8f537e40915c (patch) | |
| tree | 4c1542e3a0fc0e265383336a564a54ac18ca5751 | |
| parent | 0feaf5349e0a0521de3406343df32954801784d9 (diff) | |
| parent | 0dc2a4dac3d04e9e4479aeb0b46172feab1cca0a (diff) | |
Merge tag 'x86-urgent-2026-11-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Ingo Molnar:
- Don't print reset reason in VMs, to fix Xen PV domU boot
regression on AMD Zen CPUs (Jason Andryuk)
- Preserve the default VGA fallback for legacy modes, to fix
regression where a SeaBIOS QEMU guest with bochs and VKMS
the boot VGA (bochs) loses its DRM boot_display attribute
(Hengyu Liang)
- Ensure write visibility during LDT installation (Dave Hansen)
* tag 'x86-urgent-2026-11-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/mm: Ensure write visibility during LDT installation
x86/video: Preserve the default VGA fallback for legacy modes
x86/CPU/AMD: Don't print reset reason in VMs
| -rw-r--r-- | arch/x86/kernel/cpu/amd.c | 3 | ||||
| -rw-r--r-- | arch/x86/kernel/ldt.c | 12 | ||||
| -rw-r--r-- | arch/x86/video/video-common.c | 2 |
3 files changed, 12 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 15286b71e9bf..365bcbf56c76 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -1367,7 +1367,8 @@ static __init int print_s5_reset_status_mmio(void) u32 value; int i; - if (!cpu_feature_enabled(X86_FEATURE_ZEN)) + if (!cpu_feature_enabled(X86_FEATURE_ZEN) || + cpu_feature_enabled(X86_FEATURE_HYPERVISOR)) return 0; addr = ioremap(FCH_PM_BASE + FCH_PM_S5_RESET_STATUS, sizeof(value)); diff --git a/arch/x86/kernel/ldt.c b/arch/x86/kernel/ldt.c index 4fa7a86adece..c4bbb4176591 100644 --- a/arch/x86/kernel/ldt.c +++ b/arch/x86/kernel/ldt.c @@ -43,7 +43,7 @@ void load_mm_ldt(struct mm_struct *mm) { struct ldt_struct *ldt; - /* READ_ONCE synchronizes with smp_store_release */ + /* Pairs with WRITE_ONCE() in install_ldt() */ ldt = READ_ONCE(mm->context.ldt); /* @@ -422,8 +422,14 @@ static void install_ldt(struct mm_struct *mm, struct ldt_struct *ldt) { mutex_lock(&mm->context.lock); - /* Synchronizes with READ_ONCE in load_mm_ldt. */ - smp_store_release(&mm->context.ldt, ldt); + /* + * Ensure that new mm user CPUs either see the new LDT value + * or get an IPI. Make the store visible before reading + * mm_cpumask(). New mm users make their mm_cpumask() writes + * visible before reading mm->context.ldt. + */ + WRITE_ONCE(mm->context.ldt, ldt); + smp_mb(); /* Activate the LDT for all CPUs using currents mm. */ on_each_cpu_mask(mm_cpumask(mm), flush_ldt, mm, true); diff --git a/arch/x86/video/video-common.c b/arch/x86/video/video-common.c index 8ed82fff7638..b8f83346dfe8 100644 --- a/arch/x86/video/video-common.c +++ b/arch/x86/video/video-common.c @@ -45,7 +45,7 @@ bool video_is_primary_device(struct device *dev) #ifdef CONFIG_SCREEN_INFO numres = screen_info_resources(si, res, ARRAY_SIZE(res)); - if (numres > 0) { + if (numres > 0 && __screen_info_has_lfb(screen_info_video_type(si))) { for (i = 0; i < numres; ++i) { if (!(res[i].flags & IORESOURCE_MEM)) continue; |
