x86/platform/uv: Remove unused declaration uv_irq_2_mmr_info()Commit 43fe1abc18a2 ("x86/uv: Use hierarchical irqdomain to manage UV interrupts")removed the implementation but left declaration.Si
x86/platform/uv: Remove unused declaration uv_irq_2_mmr_info()Commit 43fe1abc18a2 ("x86/uv: Use hierarchical irqdomain to manage UV interrupts")removed the implementation but left declaration.Signed-off-by: Yue Haibing <yuehaibing@huawei.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Link: https://lore.kernel.org/all/20240814031636.1304772-1-yuehaibing@huawei.com
show more ...
arch/x86: Fix typosFix typos, most reported by "codespell arch/x86". Only touches comments,no code changes.Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>Signed-off-by: Ingo Molnar <mingo@k
arch/x86: Fix typosFix typos, most reported by "codespell arch/x86". Only touches comments,no code changes.Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>Signed-off-by: Ingo Molnar <mingo@kernel.org>Reviewed-by: Randy Dunlap <rdunlap@infradead.org>Link: https://lore.kernel.org/r/20240103004011.1758650-1-helgaas@kernel.org
efi/runtime-wrappers: Remove duplicated macro for service returning void__efi_call_virt() exists as an alternative for efi_call_virt() for thesole reason that ResetSystem() returns void, and so we
efi/runtime-wrappers: Remove duplicated macro for service returning void__efi_call_virt() exists as an alternative for efi_call_virt() for thesole reason that ResetSystem() returns void, and so we cannot use a callto it in the RHS of an assignment.Given that there is only a single user, let's drop the macro, and expandit into the caller. That way, the remaining macro can be tightenedsomewhat in terms of type safety too.Note that the use of typeof() on the runtime service invocation does notresult in an actual call being made, but it does require a few pointertypes to be fixed up and converted into the proper function pointerprototypes.Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
x86/platform/uv: UV support for sub-NUMA clusteringSub-NUMA clustering (SNC) invalidates previous assumptions of a 1:1relationship between blades, sockets, and nodes. Fix theseassumptions and bu
x86/platform/uv: UV support for sub-NUMA clusteringSub-NUMA clustering (SNC) invalidates previous assumptions of a 1:1relationship between blades, sockets, and nodes. Fix theseassumptions and build tables correctly when SNC is enabled.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>Link: https://lore.kernel.org/all/20230519190752.3297140-7-steve.wahl%40hpe.com
x86/platform/uv: Introduce helper function uv_pnode_to_socket.Add and use uv_pnode_to_socket() function, which parallels otherhelper functions in here, and will enable avoiding duplicate codein a
x86/platform/uv: Introduce helper function uv_pnode_to_socket.Add and use uv_pnode_to_socket() function, which parallels otherhelper functions in here, and will enable avoiding duplicate codein an upcoming patch.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>Link: https://lore.kernel.org/all/20230519190752.3297140-3-steve.wahl%40hpe.com
x86/platform/uv: Add platform resolving #defines for misc GAM_MMIOH_REDIRECT*Upcoming changes will require use of new #definesUVH_RH_GAM_MMIOH_REDIRECT_CONFIG0_NASID_MASK andUVH_RH_GAM_MMIOH_REDI
x86/platform/uv: Add platform resolving #defines for misc GAM_MMIOH_REDIRECT*Upcoming changes will require use of new #definesUVH_RH_GAM_MMIOH_REDIRECT_CONFIG0_NASID_MASK andUVH_RH_GAM_MMIOH_REDIRECT_CONFIG1_NASID_MASK, which provide theappropriate values on different uv platforms.Also, fix typo that defined a couple of "*_CONFIG0_*" values twicewhere "*_CONFIG1_*" was intended.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>Link: https://lore.kernel.org/all/20230519190752.3297140-2-steve.wahl%40hpe.com
x86: Fix various typos in commentsFix ~144 single-word typos in arch/x86/ code comments.Doing this in a single commit should reduce the churn.Signed-off-by: Ingo Molnar <mingo@kernel.org>Cc: B
x86: Fix various typos in commentsFix ~144 single-word typos in arch/x86/ code comments.Doing this in a single commit should reduce the churn.Signed-off-by: Ingo Molnar <mingo@kernel.org>Cc: Borislav Petkov <bp@alien8.de>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Paolo Bonzini <pbonzini@redhat.com>Cc: Bjorn Helgaas <bhelgaas@google.com>Cc: linux-kernel@vger.kernel.org
x86/platform/uv: Add kernel interfaces for obtaining system infoAdd kernel interfaces used to obtain info for the uv_sysfs driverto display.Signed-off-by: Mike Travis <mike.travis@hpe.com>Signe
x86/platform/uv: Add kernel interfaces for obtaining system infoAdd kernel interfaces used to obtain info for the uv_sysfs driverto display.Signed-off-by: Mike Travis <mike.travis@hpe.com>Signed-off-by: Borislav Petkov <bp@suse.de>Reviewed-by: Steve Wahl <steve.wahl@hpe.com>Acked-by: Hans de Goede <hdegoede@redhat.com>Link: https://lkml.kernel.org/r/20201128034227.120869-2-mike.travis@hpe.com
x86/platform/uv: Add and export uv_bios_* functionsAdd additional uv_bios_call() variant functions to expose informationneeded by the new uv_sysfs driver. This includes the addition of severalnew
x86/platform/uv: Add and export uv_bios_* functionsAdd additional uv_bios_call() variant functions to expose informationneeded by the new uv_sysfs driver. This includes the addition of severalnew data types defined by UV BIOS and used in the new functions.Signed-off-by: Justin Ernst <justin.ernst@hpe.com>Signed-off-by: Borislav Petkov <bp@suse.de>Reviewed-by: Steve Wahl <steve.wahl@hpe.com>Acked-by: Hans de Goede <hdegoede@redhat.com>Link: https://lkml.kernel.org/r/20201125175444.279074-3-justin.ernst@hpe.com
x86/platform/uv: Drop last traces of uv_flush_tlb_othersCommit 39297dde7390 ("x86/platform/uv: Remove UV BAU TLB ShootdownHandler") removed uv_flush_tlb_others. Its declaration was removed alsofr
x86/platform/uv: Drop last traces of uv_flush_tlb_othersCommit 39297dde7390 ("x86/platform/uv: Remove UV BAU TLB ShootdownHandler") removed uv_flush_tlb_others. Its declaration was removed alsofrom asm/uv/uv.h. But only for the CONFIG_X86_UV=y case. The inlinedefinition (!X86_UV case) is still in place.So remove this implementation with everything what was added to supportuv_flush_tlb_others:* include of asm/tlbflush.h* forward declarations of struct cpumask, mm_struct, and flush_tlb_infoSigned-off-by: Jiri Slaby <jslaby@suse.cz>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Acked-by: Mike Travis <mike.travis@hpe.com>Acked-by: Steve Wahl <steve.wahl@hpe.com>Link: https://lore.kernel.org/r/20201109093653.2042-1-jslaby@suse.cz
x86/platform/uv: Update Copyrights to conform to HPE standardsAdd Copyrights to those files that have been updated for UV5 changes.Signed-off-by: Mike Travis <mike.travis@hpe.com>Signed-off-by:
x86/platform/uv: Update Copyrights to conform to HPE standardsAdd Copyrights to those files that have been updated for UV5 changes.Signed-off-by: Mike Travis <mike.travis@hpe.com>Signed-off-by: Borislav Petkov <bp@suse.de>Link: https://lkml.kernel.org/r/20201005203929.148656-14-mike.travis@hpe.com
x86/platform/uv: Update for UV5 NMI MMR changesThe UV NMI MMR addresses and fields moved between UV4 and UV5necessitating a rewrite of the UV NMI handler. Adjust referencesto accommodate those c
x86/platform/uv: Update for UV5 NMI MMR changesThe UV NMI MMR addresses and fields moved between UV4 and UV5necessitating a rewrite of the UV NMI handler. Adjust referencesto accommodate those changes.Signed-off-by: Mike Travis <mike.travis@hpe.com>Signed-off-by: Borislav Petkov <bp@suse.de>Reviewed-by: Dimitri Sivanich <dimitri.sivanich@hpe.com>Reviewed-by: Steve Wahl <steve.wahl@hpe.com>Link: https://lkml.kernel.org/r/20201005203929.148656-13-mike.travis@hpe.com
x86/platform/uv: Update UV5 TSC checkingUpdate check of BIOS TSC sync status to include both possible "invalid"states provided by newer UV5 BIOS.Signed-off-by: Mike Travis <mike.travis@hpe.com>
x86/platform/uv: Update UV5 TSC checkingUpdate check of BIOS TSC sync status to include both possible "invalid"states provided by newer UV5 BIOS.Signed-off-by: Mike Travis <mike.travis@hpe.com>Signed-off-by: Borislav Petkov <bp@suse.de>Reviewed-by: Steve Wahl <steve.wahl@hpe.com>Link: https://lkml.kernel.org/r/20201005203929.148656-12-mike.travis@hpe.com
x86/platform/uv: Add and decode Arch Type in UVsystabWhen the UV BIOS starts the kernel it passes the UVsystab info struct tothe kernel which contains information elements more specific than ACPI,
x86/platform/uv: Add and decode Arch Type in UVsystabWhen the UV BIOS starts the kernel it passes the UVsystab info struct tothe kernel which contains information elements more specific than ACPI,and generally pertinent only to the MMRs. These are read only fieldsso information is passed one way only. A new field starting with UV5 isthe UV architecture type so the ACPI OEM_ID field can be used for otherpurposes going forward. The UV Arch Type selects the entirety of theMMRs available, with their addresses and fields defined in uv_mmrs.h.Reported-by: kernel test robot <lkp@intel.com>Signed-off-by: Mike Travis <mike.travis@hpe.com>Signed-off-by: Borislav Petkov <bp@suse.de>Reviewed-by: Dimitri Sivanich <dimitri.sivanich@hpe.com>Reviewed-by: Steve Wahl <steve.wahl@hpe.com>Link: https://lkml.kernel.org/r/20201005203929.148656-7-mike.travis@hpe.com
x86/platform/uv: Add UV5 direct referencesAdd new references to UV5 (and UVY class) system MMR addresses andfields primarily caused by the expansion from 46 to 52 bits of physicalmemory address.
x86/platform/uv: Add UV5 direct referencesAdd new references to UV5 (and UVY class) system MMR addresses andfields primarily caused by the expansion from 46 to 52 bits of physicalmemory address.Signed-off-by: Mike Travis <mike.travis@hpe.com>Signed-off-by: Borislav Petkov <bp@suse.de>Reviewed-by: Dimitri Sivanich <dimitri.sivanich@hpe.com>Reviewed-by: Steve Wahl <steve.wahl@hpe.com>Link: https://lkml.kernel.org/r/20201005203929.148656-6-mike.travis@hpe.com
x86/platform/uv: Update UV MMRs for UV5Update UV MMRs in uv_mmrs.h for UV5 based on Verilog output from theUV Hub hardware design files. This is the next UV architecture witha new class (UVY) be
x86/platform/uv: Update UV MMRs for UV5Update UV MMRs in uv_mmrs.h for UV5 based on Verilog output from theUV Hub hardware design files. This is the next UV architecture witha new class (UVY) being defined for 52 bit physical address masks.Uses a bitmask for UV arch identification so a single test can covermultiple versions. Includes other adjustments to match the uv_mmrs.hfile to keep from encountering compile errors. New UV5 functionalityis added in the patches that follow.[ Fix W=1 build warnings. ]Reported-by: kernel test robot <lkp@intel.com>Signed-off-by: Mike Travis <mike.travis@hpe.com>Signed-off-by: Borislav Petkov <bp@suse.de>Reviewed-by: Steve Wahl <steve.wahl@hpe.com>Link: https://lkml.kernel.org/r/20201005203929.148656-5-mike.travis@hpe.com
x86/platform/uv: Remove SCIR MMR references for UV systemsUV class systems no longer use System Controller for monitoring of CPUactivity provided by this driver. Other methods have been developed
x86/platform/uv: Remove SCIR MMR references for UV systemsUV class systems no longer use System Controller for monitoring of CPUactivity provided by this driver. Other methods have been developed forBIOS and the management controller (BMC). Remove that supporting code.Signed-off-by: Mike Travis <mike.travis@hpe.com>Signed-off-by: Borislav Petkov <bp@suse.de>Reviewed-by: Dimitri Sivanich <dimitri.sivanich@hpe.com>Link: https://lkml.kernel.org/r/20201005203929.148656-3-mike.travis@hpe.com
x86/platform/uv: Remove UV BAU TLB Shootdown HandlerThe Broadcast Assist Unit (BAU) TLB shootdown handler is being rewrittento become the UV BAU APIC driver. It is designed to speed up sendingIPI
x86/platform/uv: Remove UV BAU TLB Shootdown HandlerThe Broadcast Assist Unit (BAU) TLB shootdown handler is being rewrittento become the UV BAU APIC driver. It is designed to speed up sendingIPIs to selective CPUs within the system. Remove the current TLBshutdown handler (tlb_uv.c) file and a couple of kernel hooks in theinterim.Signed-off-by: Mike Travis <mike.travis@hpe.com>Signed-off-by: Borislav Petkov <bp@suse.de>Reviewed-by: Dimitri Sivanich <dimitri.sivanich@hpe.com>Link: https://lkml.kernel.org/r/20201005203929.148656-2-mike.travis@hpe.com
Merge tag 'x86-platform-2020-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tipPull x86 platform updates from Ingo Molnar: "The biggest change is the removal of SGI UV1 support, which
Merge tag 'x86-platform-2020-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tipPull x86 platform updates from Ingo Molnar: "The biggest change is the removal of SGI UV1 support, which allowed the removal of the legacy EFI old_mmap code as well. This removes quite a bunch of old code & quirks"* tag 'x86-platform-2020-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/efi: Remove unused EFI_UV1_MEMMAP code x86/platform/uv: Remove uv bios and efi code related to EFI_UV1_MEMMAP x86/efi: Remove references to no-longer-used efi_have_uv1_memmap() x86/efi: Delete SGI UV1 detection. x86/platform/uv: Remove efi=old_map command line option x86/platform/uv: Remove vestigial mention of UV1 platform from bios header x86/platform/uv: Remove support for UV1 platform from uv x86/platform/uv: Remove support for uv1 platform from uv_hub x86/platform/uv: Remove support for UV1 platform from uv_bau x86/platform/uv: Remove support for UV1 platform from uv_mmrs x86/platform/uv: Remove support for UV1 platform from x2apic_uv_x x86/platform/uv: Remove support for UV1 platform from uv_tlb x86/platform/uv: Remove support for UV1 platform from uv_time
x86: uv: uv_hub.h: Delete duplicated wordDelete the repeated word "the".[ mingo: While at it, also capitalize CPU properly. ]Signed-off-by: Randy Dunlap <rdunlap@infradead.org>Signed-off-by: I
x86: uv: uv_hub.h: Delete duplicated wordDelete the repeated word "the".[ mingo: While at it, also capitalize CPU properly. ]Signed-off-by: Randy Dunlap <rdunlap@infradead.org>Signed-off-by: Ingo Molnar <mingo@kernel.org>Link: https://lore.kernel.org/r/20200726004124.20618-4-rdunlap@infradead.org
x86/platform/uv: Remove vestigial mention of UV1 platform from bios headerRemove UV1 reference as UV1 is not longer supported by HPE.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by:
x86/platform/uv: Remove vestigial mention of UV1 platform from bios headerRemove UV1 reference as UV1 is not longer supported by HPE.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Link: https://lkml.kernel.org/r/20200713212955.435951508@hpe.com
x86/platform/uv: Remove support for UV1 platform from uvUV1 is not longer supported by HPESigned-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Link:
x86/platform/uv: Remove support for UV1 platform from uvUV1 is not longer supported by HPESigned-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Link: https://lkml.kernel.org/r/20200713212955.320087418@hpe.com
x86/platform/uv: Remove support for uv1 platform from uv_hubUV1 is not longer supported by HPE.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>L
x86/platform/uv: Remove support for uv1 platform from uv_hubUV1 is not longer supported by HPE.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Link: https://lkml.kernel.org/r/20200713212955.203480177@hpe.com
x86/platform/uv: Remove support for UV1 platform from uv_bauUV1 is not longer supported.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Link: ht
x86/platform/uv: Remove support for UV1 platform from uv_bauUV1 is not longer supported.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Link: https://lkml.kernel.org/r/20200713212955.083309377@hpe.com
x86/platform/uv: Remove support for UV1 platform from uv_mmrsUV1 is not longer supported.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Link: h
x86/platform/uv: Remove support for UV1 platform from uv_mmrsUV1 is not longer supported.Signed-off-by: Steve Wahl <steve.wahl@hpe.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Link: https://lkml.kernel.org/r/20200713212954.964332370@hpe.com
12345678