Dead arch/x86 UV code?

From: Dave Hansen

Date: Wed Sep 23 2026 - 09:34:00 EST


Hi Folks,

I threw a silly LLM at arch/x86 trying to find unused code. One of the
things that stood out was UV:

arch/x86/include/asm/uv/bios.h | 3
arch/x86/include/asm/uv/uv_hub.h | 156 ---------------
arch/x86/include/asm/uv/uv_irq.h | 37 ---
arch/x86/kernel/apic/x2apic_uv_x.c | 187 ------------------
arch/x86/platform/uv/bios_uv.c | 44 ----
arch/x86/platform/uv/uv_irq.c | 210 ---------------------
b/arch/x86/include/asm/hw_irq.h | 15 -
b/arch/x86/include/asm/uv/bios.h | 11 -
b/arch/x86/include/asm/uv/uv.h | 2
b/arch/x86/include/asm/uv/uv_geo.h | 2
b/arch/x86/include/asm/uv/uv_hub.h | 156 ---------------
b/arch/x86/kernel/apic/x2apic_uv_x.c | 70 -------
b/arch/x86/kernel/cpu/common.c | 4
b/arch/x86/platform/uv/Makefile | 2
b/arch/x86/platform/uv/bios_uv.c | 4
16 files changed, 15 insertions(+), 891 deletions(-)

It looks like a big chunk of it was just there to support some drivers
that are now gone with:

dbf69afe320e ("misc: sgi-xp: Remove SGI XP drivers")
85de4712bccf ("misc: sgi-gru: Remove SGI GRU driver")

I spot checked some of LLM spew. It didn't all seem to be noise. Could
folks find some time to go through and see if this really is dead code?

LLM spew is here:

https://sr71.net/~dave/intel/uv/