mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Hansen <dave.hansen@intel.com>
To: Steve Wahl <steve.wahl@hpe.com>,
	Justin Ernst <justin.ernst@hpe.com>,
	Kyle Meyer <kyle.meyer@hpe.com>,
	Dimitri Sivanich <dimitri.sivanich@hpe.com>,
	Russ Anderson <russ.anderson@hpe.com>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	linux-kernel@vger.kernel.org
Subject: Dead arch/x86 UV code?
Date: Wed, 23 Sep 2026 06:29:56 -0700	[thread overview]
Message-ID: <d49f2e1a-1f19-49e8-a2a0-98b839274b69@intel.com> (raw)

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/

             reply	other threads:[~2026-09-23 13:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-23 13:29 Dave Hansen [this message]
2026-09-23 15:30 ` Steve Wahl
2026-09-23 15:41   ` Dave Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d49f2e1a-1f19-49e8-a2a0-98b839274b69@intel.com \
    --to=dave.hansen@intel.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=dimitri.sivanich@hpe.com \
    --cc=hpa@zytor.com \
    --cc=justin.ernst@hpe.com \
    --cc=kyle.meyer@hpe.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=russ.anderson@hpe.com \
    --cc=steve.wahl@hpe.com \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®