Skip to contentSkip to conversation

PATCH [0/14] sparc32: removal of sun4c platform support

DISCUSSION Sam Ravnborg 3 participants 6 messages May 11, 2012 – May 12, 2012

lore
Share & tools
lore
#0 lore raw

This is the bulk of the removal of sun4c support. I have tried to be careful not to break the build during the removal process.

I like the diffstat summary:

 36 files changed, 75 insertions(+), 3726 deletions(-)

The final result is boot tested on my ss5 box. I also boot tested a few of the steps.

So all-in-all I feel rather confident about this patch-set.

Something noteworthy:

o In patch 1 I redo the nmi handler a bit. I think what I did is OK - but here I would like some extra carefull revieing please.

o In patch 12 I have removed all the sun + sun4c support in head_32.S.
Here I did some minor restructuring.
I have not tested if the warnings works on a sun4c box, as mine is hidden away right now.

This is not a complete removal - but I will address the remaining items later.
The remaining bits are random cleanups + removal of btfixup when no longer needed.

Patches are sent to the mailing list only (+ davem).

Sam

 arch/sparc/include/asm/cpu_type.h       |    4 -
 arch/sparc/include/asm/elf_32.h         |    5 +-
 arch/sparc/include/asm/head_32.h        |   14 +-
 arch/sparc/include/asm/memreg.h         |   51 -
 arch/sparc/include/asm/oplib_32.h       |    8 -
 arch/sparc/include/asm/pgtable_32.h     |   31 +-
 arch/sparc/include/asm/pgtsun4c.h       |  172 ---
 arch/sparc/include/asm/thread_info_32.h |    7 +-
 arch/sparc/include/asm/traps.h          |    7 -
 arch/sparc/kernel/Makefile              |    2 +-
 arch/sparc/kernel/devices.c             |    4 -
 arch/sparc/kernel/entry.S               |  269 +----
 arch/sparc/kernel/etrap_32.S            |   50 +-
 arch/sparc/kernel/head_32.S             |  162 +--
 arch/sparc/kernel/irq_32.c              |    5 -
 arch/sparc/kernel/kernel.h              |    3 -
 arch/sparc/kernel/process_32.c          |   32 -
 arch/sparc/kernel/rtrap_32.S            |   76 +-
 arch/sparc/kernel/setup_32.c            |    9 -
 arch/sparc/kernel/signal_32.c           |    7 +-
 arch/sparc/kernel/sparc_ksyms_32.c      |    1 -
 arch/sparc/kernel/sun4c_irq.c           |  269 ----
 arch/sparc/kernel/sys_sparc_32.c        |   11 -
 arch/sparc/kernel/wof.S                 |   72 +-
 arch/sparc/kernel/wuf.S                 |   60 +-
 arch/sparc/lib/atomic_32.S              |   20 -
 arch/sparc/mm/Makefile                  |    6 -
 arch/sparc/mm/btfixup.c                 |   15 +-
 arch/sparc/mm/fault_32.c                |   94 +--
 arch/sparc/mm/init_32.c                 |    8 -
 arch/sparc/mm/loadmmu.c                 |    5 -
 arch/sparc/mm/nosun4c.c                 |   77 --
 arch/sparc/mm/srmmu.c                   |   50 +-
 arch/sparc/mm/sun4c.c                   | 2166 -------------------------------
 arch/sparc/prom/Makefile                |    1 -
 arch/sparc/prom/segment.c               |   28 -
 36 files changed, 75 insertions(+), 3726 deletions(-)

Sam Ravnborg (14):
sparc32: drop sun4c support
sparc32: remove calls to sun4c dummy mm inits functions
sparc32: remove sun4c traps
sparc32: drop sun4c specific ___xchg32 implementation
sparc32: remove all uses of ARCH_SUN4C
saprc32: delete pgtsun4c.h
sparc32: drop sun4c specific stack validation
sparc32: drop sun4c window overflow stack checking routine
sparc32: drop sun4c stack checking routine
sparc32: drop sun4c user stack checking routine
sparc32: drop test for sun4c in signal_32
sparc32: drop sun4c bits from head_32.S
sparc32: drop btfixup for alloc_thread_info_node/free_thread_info
sparc32: use inline versions of pgprot_noncached, pte_to_pgoff and pgoff_to_pte

#1 lore raw

From: Sam Ravnborg <[email protected]>
Date: Fri, 11 May 2012 23:31:44 +0200

Quoted 6 lines

This is the bulk of the removal of sun4c support. I have tried to be careful not to break the build during the removal process.

I like the diffstat summary:

Quoted 7 lines
 36 files changed, 75 insertions(+), 3726 deletions(-)

The final result is boot tested on my ss5 box. I also boot tested a few of the steps.

So all-in-all I feel rather confident about this patch-set.

Thanks for doing this work, I'll review this stuff now.

This opens up some exciting possibilities, for example we can also ditch Cypress sun4m support and therefore eliminate the software integer multiply/divide stuff and thus build the kernel with -mcpu=v8 or similar.

#3 lore raw
In reply to Sam Ravnborg

Hi David et al.

Quoted 5 lines

This opens up some exciting possibilities, for example we can also ditch Cypress sun4m support and therefore eliminate the software integer multiply/divide stuff and thus build the kernel with -mcpu=v8 or similar.

According to this wikipedia article:

http://en.wikipedia.org/wiki/SPARCstation

Then Cypres is only used in:

o SPARCstation 2
o SPARCserver 6xxMP

I do not own any of these - and I have not
seen anyone around that uses any of these.

Sam

#4 lore raw
In reply to Sam Ravnborg

Hi Sam,

Quoted 7 lines · Sam Ravnborg

Hi David et al.

Quoted 5 lines

This opens up some exciting possibilities, for example we can also ditch Cypress sun4m support and therefore eliminate the software integer multiply/divide stuff and thus build the kernel with -mcpu=v8 or similar.

Quoted 7 lines

According to this wikipedia article:

    http://en.wikipedia.org/wiki/SPARCstation

Then Cypres is only used in:

o SPARCstation 2

I feel duty bound to point out that we've already eliminated support for that box as it's sun4c.

Which leaves only these boxes which can take the Cypress CPUs:

Quoted 1 line

o SPARCserver 6xxMP

Thanks,

Signature · 5 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/
#5 lore raw
In reply to Sam Ravnborg

From: Sam Ravnborg <[email protected]>
Date: Sat, 12 May 2012 09:00:03 +0200

Quoted 11 lines

Hi David et al.

Quoted 5 lines

This opens up some exciting possibilities, for example we can also ditch Cypress sun4m support and therefore eliminate the software integer multiply/divide stuff and thus build the kernel with -mcpu=v8 or similar.

According to this wikipedia article:

http://en.wikipedia.org/wiki/SPARCstation

Quoted 7 lines

Then Cypres is only used in:

o SPARCstation 2
o SPARCserver 6xxMP

I do not own any of these - and I have not
seen anyone around that uses any of these.

The Cypress chips come on MBUS modules so they can be installed in SS10, SS20, et al. I know, because I had 4 or 5 of these cpus boards and tested them mostly in SS10 pizza boxes.