mbox series

[00/14] Cleanup SGI-IP27 and prepare for SGI-IP35 support

Message ID 20200109123353.5656-1-tbogendoerfer@suse.de (mailing list archive)
Headers show
Series Cleanup SGI-IP27 and prepare for SGI-IP35 support | expand

Message

Thomas Bogendoerfer Jan. 9, 2020, 12:33 p.m. UTC
SGI-IP35 alias SN1 is very similair to SGI-IP27 alias SN0, so most of the
IP27 code could also be used for IP35. The differences will mostly be in
header files, which are selected by CONFIG option. This series cleans up
IP27 code/headers and prepares them for IP35 integration.

Thomas Bogendoerfer (14):
  MIPS: SGI-IP27: use nodemask instead of cpumask
  MIPS: SGI-IP27: use cpu physid already present while scanning for CPUs
  MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff
  MIPS: SGI-IP27: get rid of asm/sn/sn0/ip27.h
  MIPS: SGI-IP27: move IP27 specific macro to IP27 specific header file
  MIPS: SGI-IP27: Move get_nasid() to a IP27 specific file
  MIPS: SGI-IP27: Split kldir.h into generic SN and IP27 parts
  MIPS: SGI-IP27: Use union instead of typedef
  MIPS: SGI-IP27: Use structs for decoding error status registers
  MIPS: SGI-IP27: Use specific get_region_shift
  MIPS: SGI-IP27: Move all shared IP27 declarations to ip27-common.h
  MIPS: SGI-IP27: Only reserve interrupts used in Linux
  MIPS: SGI-IP27: Store cpu speed when scanning for CPUs and use it
    later
  MIPS: SGI-IP27: No need for slice_map

 .../include/asm/mach-ip27/kernel-entry-init.h |  12 +-
 arch/mips/include/asm/mach-ip27/mmzone.h      |   4 +-
 arch/mips/include/asm/mach-ip27/topology.h    |   2 +-
 arch/mips/include/asm/sn/arch.h               |   3 -
 arch/mips/include/asm/sn/hub.h                |  17 --
 arch/mips/include/asm/sn/intr.h               |  17 --
 arch/mips/include/asm/sn/klconfig.h           |   4 -
 arch/mips/include/asm/sn/kldir.h              | 193 +-----------------
 arch/mips/include/asm/sn/sn0/hub.h            |  22 ++
 arch/mips/include/asm/sn/sn0/hubni.h          |   8 +
 arch/mips/include/asm/sn/sn0/ip27.h           |  85 --------
 arch/mips/include/asm/sn/sn0/kldir.h          | 186 +++++++++++++++++
 arch/mips/include/asm/sn/sn_private.h         |  19 --
 arch/mips/include/asm/sn/types.h              |   4 +
 arch/mips/pci/pci-ip27.c                      |   2 +-
 arch/mips/sgi-ip27/ip27-berr.c                |  40 ++--
 arch/mips/sgi-ip27/ip27-common.h              |  12 +-
 arch/mips/sgi-ip27/ip27-console.c             |   5 +-
 arch/mips/sgi-ip27/ip27-hubio.c               |   8 +-
 arch/mips/sgi-ip27/ip27-init.c                |  25 +--
 arch/mips/sgi-ip27/ip27-irq.c                 |   5 +-
 arch/mips/sgi-ip27/ip27-klconfig.c            |  51 -----
 arch/mips/sgi-ip27/ip27-klnuma.c              |  16 +-
 arch/mips/sgi-ip27/ip27-memory.c              |  39 ++--
 arch/mips/sgi-ip27/ip27-nmi.c                 |   5 +-
 arch/mips/sgi-ip27/ip27-reset.c               |   2 +-
 arch/mips/sgi-ip27/ip27-smp.c                 |  33 +--
 arch/mips/sgi-ip27/ip27-timer.c               |  28 +--
 arch/mips/sgi-ip27/ip27-xtalk.c               |   1 -
 29 files changed, 315 insertions(+), 533 deletions(-)
 delete mode 100644 arch/mips/include/asm/sn/hub.h
 delete mode 100644 arch/mips/include/asm/sn/sn0/ip27.h
 create mode 100644 arch/mips/include/asm/sn/sn0/kldir.h
 delete mode 100644 arch/mips/include/asm/sn/sn_private.h

Comments

Paul Burton Jan. 10, 2020, 7:25 p.m. UTC | #1
Hello,

Thomas Bogendoerfer wrote:
> SGI-IP35 alias SN1 is very similair to SGI-IP27 alias SN0, so most of the
> IP27 code could also be used for IP35. The differences will mostly be in
> header files, which are selected by CONFIG option. This series cleans up
> IP27 code/headers and prepares them for IP35 integration.
> 
> Thomas Bogendoerfer (14):
>   MIPS: SGI-IP27: use nodemask instead of cpumask
>   MIPS: SGI-IP27: use cpu physid already present while scanning for CPUs
>   MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff
>   MIPS: SGI-IP27: get rid of asm/sn/sn0/ip27.h
>   MIPS: SGI-IP27: move IP27 specific macro to IP27 specific header file
>   MIPS: SGI-IP27: Move get_nasid() to a IP27 specific file
>   MIPS: SGI-IP27: Split kldir.h into generic SN and IP27 parts
>   MIPS: SGI-IP27: Use union instead of typedef
>   MIPS: SGI-IP27: Use structs for decoding error status registers
>   MIPS: SGI-IP27: Use specific get_region_shift
>   MIPS: SGI-IP27: Move all shared IP27 declarations to ip27-common.h
>   MIPS: SGI-IP27: Only reserve interrupts used in Linux
>   MIPS: SGI-IP27: Store cpu speed when scanning for CPUs and use it
>     later
>   MIPS: SGI-IP27: No need for slice_map
> 
>  .../include/asm/mach-ip27/kernel-entry-init.h |  12 +-
>  arch/mips/include/asm/mach-ip27/mmzone.h      |   4 +-
>  arch/mips/include/asm/mach-ip27/topology.h    |   2 +-
>  arch/mips/include/asm/sn/arch.h               |   3 -
>  arch/mips/include/asm/sn/hub.h                |  17 --
>  arch/mips/include/asm/sn/intr.h               |  17 --
>  arch/mips/include/asm/sn/klconfig.h           |   4 -

Series applied to mips-next.

> MIPS: SGI-IP27: use nodemask instead of cpumask
>   commit 2d11e6a4ff50
>   https://git.kernel.org/mips/c/2d11e6a4ff50
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: use cpu physid already present while scanning for CPUs
>   commit d6972bb47754
>   https://git.kernel.org/mips/c/d6972bb47754
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff
>   commit b78e9d63a3b6
>   https://git.kernel.org/mips/c/b78e9d63a3b6
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: get rid of asm/sn/sn0/ip27.h
>   commit 5388b58143ea
>   https://git.kernel.org/mips/c/5388b58143ea
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: move IP27 specific macro to IP27 specific header file
>   commit 58fd034db3a9
>   https://git.kernel.org/mips/c/58fd034db3a9
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: Move get_nasid() to a IP27 specific file
>   commit e9d2eb993481
>   https://git.kernel.org/mips/c/e9d2eb993481
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: Split kldir.h into generic SN and IP27 parts
>   commit aa2d74f9b389
>   https://git.kernel.org/mips/c/aa2d74f9b389
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: Use union instead of typedef
>   commit db96e058b4b3
>   https://git.kernel.org/mips/c/db96e058b4b3
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: Use structs for decoding error status registers
>   commit 2c616e9f03db
>   https://git.kernel.org/mips/c/2c616e9f03db
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: Use specific get_region_shift
>   commit 524c4e1fd412
>   https://git.kernel.org/mips/c/524c4e1fd412
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: Move all shared IP27 declarations to ip27-common.h
>   commit 9d0aaf98dc24
>   https://git.kernel.org/mips/c/9d0aaf98dc24
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: Only reserve interrupts used in Linux
>   commit 78691e4f17af
>   https://git.kernel.org/mips/c/78691e4f17af
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: Store cpu speed when scanning for CPUs and use it later
>   commit d31f9e64898b
>   https://git.kernel.org/mips/c/d31f9e64898b
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: SGI-IP27: No need for slice_map
>   commit d96ee783e33d
>   https://git.kernel.org/mips/c/d96ee783e33d
>   
>   Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>

Thanks,
    Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email paulburton@kernel.org to report it. ]