Clean up es7000 specific bootup code
A message that is not in the archive (sent off-list or not yet received): C29744A7.10B20%[email protected]
PATCH 1/1 Clean up es7000 specific bootup code
This patch cleans out Unisys es7000 platform specific code. A lot of the code there was not required since it is for legacy es7000s on which Xen is not supported.
I also removed calls to enable_apic_mode from apic.c since that is also legacy es7000 specific code.
This patch has been tested on a commodity Dell box and an Unisys es7000 Raj
# HG changeset patch
# User [email protected]
# Date 1183985517 14400
# Node ID 794a9296668ad83df25a64a3b28079ec1d0276d3
# Parent aa640601575fb4b509befd9f032f0f3d577a46fc
This patch cleans out Unisys es7000 platform specific code. A lot of the code there was not required since it is for legacy es7000s on which Xen is not supported. I also removed calls to enable_apic_mode from apic.c since that is also legacy es7000 specific code.
This patch has been tested on a commodity Dell box and an Unisys es7000
xen/arch/x86/apic.c +2 -1
@@ -212,7 +212,8 @@ void __init connect_bsp_APIC(void)outb (0x70 ,0x22 );outb (0x01 ,0x23 ); } -enable_apic_mode (); +// Removed the enable_apic_mode call. This is a function that needs to be called only on ES7000 classics. This switches the machine into apic mode. +// It is no longer needed since the supported ES700s come up in Virtual Wire Mode. This comment left here in case this code is ever needed on other boxes. }void disconnect_bsp_APIC (int virt_wire_setup)
xen/arch/x86/genapic/es7000.h +1 -16
@@ -1,6 +1,7 @@/* * Written by: Garry Forsgren, Unisys Corporation * Natalie Protasevich, Unisys Corporation +* Modified by: Raj Subrahmanian <[email protected]> * This file contains the code to configure and interface * with Unisys ES7000 series hardware system manager. *
@@ -99,22 +100,6 @@ struct oem_table {u32 OEMTableSize; }; -struct mip_reg { -unsigned long long off_0; -unsigned long long off_8; -unsigned long long off_10; -unsigned long long off_18; -unsigned long long off_20; -unsigned long long off_28; -unsigned long long off_30; -unsigned long long off_38; -}; - -#define MIP_SW_APIC 0x1020b -#define MIP_FUNC (VALUE ) (VALUE & 0xff) -extern int parse_unisys_oem (char *oemptr);extern int find_unisys_acpi_oem_table (unsigned long *oem_addr);extern void setup_unisys (void ); -extern int es7000_start_cpu (int cpu,unsigned long eip); -extern void es7000_sw_apic (void );
xen/arch/x86/genapic/es7000plat.c +2 -124
155 lines not on this page · raw message
xen/include/asm-x86/mach-generic/mach_apic.h +0 -8
@@ -14,14 +14,6 @@#define init_apic_ldr (genapic->init_apic_ldr)#define clustered_apic_check (genapic->clustered_apic_check)#define cpu_mask_to_apicid (genapic->cpu_mask_to_apicid) - -extern void es7000_sw_apic (void ); -static inline void enable_apic_mode (void ) -{ -es7000_sw_apic (); -return ; -} -#define apicid_to_node (apicid) ((int)apicid_to_node[(u8)apicid])extern u8 bios_cpu_apicid[];
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Keir Fraser
AppliedApplied. And you'll see that I was able to strip out even more code, in particular variable es7000_plat just disappeared.
Now I think we could go further, as es7000 now just looks like bigsmp. If we got rid of the es7000 genapic altogether, would your systems always fall back to bigsmp? If not, you might need to add a Unisys OEM check to the DMI checks in arch/x86/genapic/bigsmp.c. But I think that would be a small addition there, and allow you to completely remove all other vestiges of es7000-specific code, making maintenance in future easier.
Could you look into this?
-- Keir
Quoted 12 lines · Raj
This patch cleans out Unisys es7000 platform specific code. A lot of the code there was not required since it is for legacy es7000s on which Xen is not supported.
I also removed calls toenable_apic_modefromapic.csince that is also legacy es7000 specific code.
This patch has been tested on a commodity Dell box and an Unisys es7000 Raj_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I will look into it.
Raj
Quoted 39 lines
-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Tuesday, July 10, 2007 5:09 AM
To: Subrahmanian, Raj
Cc: [email protected]
Subject: Re: [Xen-devel] [PATCH]Clean up es7000 specific bootup codeApplied. And you'll see that I was able to strip out even more code, in particular variable
es7000_platjust disappeared.Now I think we could go further, as es7000 now just looks like bigsmp. If we got rid of the es7000 genapic altogether, would your systems always fall back to bigsmp? If not, you might need to add a Unisys OEM check to the DMI checks in
arch/x86/genapic/bigsmp.c. But I think that would be a small addition there, and allow you to completely remove all other vestiges of es7000-specific code, making maintenance in future easier.Could you look into this?
-- Keir
Quoted 12 lines · Raj
This patch cleans out Unisys es7000 platform specific code. A lot of the code there was not required since it is for legacy es7000s on which Xen is not supported.
I also removed calls toenable_apic_modefromapic.csince that is also legacy es7000 specific code.
This patch has been tested on a commodity Dell box and an Unisys es7000 Raj_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
PATCH 1/1 clean up Unisys ES7000 specific code RE: [PATCH]Clean up es7000 specific bootup code
In reply to Keir FraserKeir
Quoted 11 lines
Applied. And you'll see that I was able to strip out even more code, in particular variable
es7000_platjust disappeared.Now I think we could go further, as es7000 now just looks like bigsmp. If we got rid of the es7000 genapic altogether, would your systems always fall back to bigsmp? If not, you might need to add a Unisys OEM check to the DMI checks in
arch/x86/genapic/bigsmp.c. But I think that would be a small addition there, and allow you to completely remove all other vestiges of es7000-specific code, making maintenance in future easier.
Quoted 1 line
Could you look into this?
This patch removes the rest of the ES7000 genapic and adds an Unisys OEM check into bigsmp.c.
Raj
Rajagopalan Subrahmanian
ES7000 Linux Systems Group
Unisys - Systems and Technology
# HG changeset patch
# User [email protected]
# Date 1186053098 14400
# Node ID d923168b34c29ca87e5e44a35b706c79e7402fcf
# Parent 88bb0d305308a2cab31fd8559a6a2719db1ea55a
This patch removes the bulk of the ES7000 specific code from Xen. On the Unisys ES7000-One, Xen now uses the bigsmp APIC driver. This patch has been tested on the ES7000 and a commodity box.
xen/arch/x86/genapic/Makefile +0 -2
@@ -1,7 +1,5 @@ obj-y += bigsmp.o obj-y += bigsmp.o obj-y += default.o obj-y += delivery.o -obj-y += es7000.o -obj-y += es7000plat.o obj-y += probe.o obj-y += summit.o
xen/arch/x86/genapic/bigsmp.c +11 -0
@@ -20,6 +20,13 @@ static __init int hp_ht_bigsmp(struct dmreturn 0 ; } +static __init int unisys_bigsmp (struct dmi_system_id *d) +{ +printk (KERN_NOTICE "%s detected: force use of apic=bigsmp\n" , d->ident); + dmi_bigsmp =1 ; +return 0 ; +} +static struct dmi_system_id __initdata bigsmp_dmi_table[] = { { hp_ht_bigsmp,"HP ProLiant DL760 G2" , {
@@ -31,6 +38,10 @@ static struct dmi_system_id __initdata bDMI_MATCH (DMI_BIOS_VENDOR ,"HP" ),DMI_MATCH (DMI_BIOS_VERSION ,"P47-" ), }}, + { unisys_bigsmp, "UNISYS ES7000-ONE", { + DMI_MATCH(DMI_PRODUCT_NAME, "ES7000-ONE") + }}, + { } };
xen/arch/x86/genapic/es7000.c deleted +0 -27
@@ -1,27 +0,0 @@ -/* -* APIC driver for the Unisys ES7000 chipset. -*/ -#include <xen/config.h> -#include <xen/cpumask.h> -#include <asm/current.h> -#include <asm/mpspec.h> -#include <asm/genapic.h> -#include <asm/fixmap.h> -#include <asm/apicdef.h> -#include <asm/atomic.h> -#include <xen/kernel.h> -#include <xen/string.h> -#include <xen/smp.h> -#include <xen/init.h> -#include <asm/mach-es7000/mach_mpparse.h> - -static __init int probe_es7000 (void ) -{ -/* probed later in mptable/ACPI hooks */ -return 0 ; -} - -struct genapic apic_es7000 = { -APIC_INIT ("es7000" , probe_es7000), -GENAPIC_PHYS -};
xen/arch/x86/genapic/es7000plat.c deleted +0 -141
141 lines not on this page · raw message
xen/arch/x86/genapic/probe.c +0 -2
@@ -16,7 +16,6 @@extern struct genapic apic_summit;extern struct genapic apic_bigsmp; -extern struct genapic apic_es7000;extern struct genapic apic_default;struct genapic *genapic;
@@ -24,7 +23,6 @@ struct genapic *apic_probe[] __initdatastruct genapic *apic_probe[]__initdata = { &apic_summit, &apic_bigsmp, - &apic_es7000, &apic_default,/* must be last */ NULL , };
xen/include/asm-x86/mach-es7000/mach_mpparse.h deleted +0 -45
45 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel