Skip to contentSkip to conversation

parisc64 vs kernel64

parisc-linux Matthew Wilcox 3 participants 5 messages Feb 23, 2001 – Feb 25, 2001

lore
Share & tools
lore
#0 lore raw

I wonder if we're doing this right, having parisc and parisc64 as different architectures. They're fundamentally similar than sparc/sparc64 or mips/mips64 are. We have very few files in parisc64 (the rest are made visible to the build system by creating symlinks to their equivalent in parisc).

Excluding Makefiles, we have:

kernel/binfmt_elf32.c
kernel/sys32.h
kernel/head.S
kernel/ioctl32.c
kernel/lasimap.map
kernel/pdcpat.c
kernel/signal32.c
kernel/sys_parisc32.c
real/head.S

I'm 99% sure we don't use real/head.S any more. Or kernel/lasimap.map. So how about moving the rest to parisc/kernel64? We'd select between them with something like:

make config
[...]
*
* Processor type and features
*
Processor family (PA1.1, PA2.0, PA2.0Wide) [PA1.1]

i think it might make maintenance easier, and possibly alan/linus would be more willing to take this than the current do_links based situation.

alternatively, maybe we should scrap all the #ifdef __LP64__ stuff from our current files, duplicate large parts of them and populate parisc64 properly. i think this current situation is the worst of both worlds in that it's quite easy to forget about parisc64 when fiddling with something in the parisc directory.

i favour moving the files to parisc/kernel64, but i'm interested in hearing other points of view, including `stop messing about'.

Signature · 1 line
Revolutions do not require corporate support.
#1 lore raw

I can imagine about a half-dozen new files to handle hpux32 and hpux64 syscalls and signals and stuff.

= So how about moving the rest to parisc/kernel64?

On first thought I'm not opposed to this but I'd like to let the suggestion ripen for a while.

= We'd select between
= them with something like:
=
= make config
= [...]
= *
= * Processor type and features
= *
= Processor family (PA1.1, PA2.0, PA2.0Wide) [PA1.1]

FYI we'll probably want/have another CONFIG parameter to select 64-bit kernel on 32-bit firmware translation layer.

= i think it might make maintenance easier, and possibly alan/linus would = be more willing to take this than the current do_links based situation.

I would appreciate specifics of their "unwillingness" -- all I've heard so far is assertions that they would hate it.

	-P
#2 lore raw
In reply to Matthew Wilcox
Quoted 3 lines · Matthew Wilcox

I wonder if we're doing this right, having parisc and parisc64 as different architectures.

How much is driven by how gcc/binutils/config.guess type stuff works?

Quoted 4 lines

They're fundamentally similar than sparc/sparc64
or mips/mips64 are. We have very few files in parisc64 (the rest are made visible to the build system by creating symlinks to their equivalent in parisc).

We've made an effort to keep them the same. That's why most of the files are common. The fact that PA2.0 cpus can run PA1.1 kernel bits makes it easy for us. I'm *know* the R4000 MIPs processor had good backwards compatibility between 32/64-bit - don't know about later ones or Sparc/Sparc64.

Quoted 8 lines

them with something like:

make config
[...]
*
* Processor type and features
*
Processor family (PA1.1, PA2.0, PA2.0Wide) [PA1.1]

The Processor family selection is a good idea regardless of how arch/parisc* source is organized.

Quoted 1 line

i think it might make maintenance easier,

The difference here is negligible. The main issues are from people not (able to?) testing both 32 and 64-bit kernels before committing.

Quoted 3 lines

i think this current situation is the worst of both worlds in that it's quite easy to forget about parisc64 when fiddling with something in the parisc directory.

I disagree.
That particular issue is the same for all three directory layouts. Perhaps you have trouble with the current model as I might with a different one.

I think the do_links model is a good compromise and we should stick with it a bit longer. We know more now than when the do_links model was created. In the future, I'm inclined to support a move to a parisc/kernel64 layout if we are confident things like 64-bit userspace, ccNuma (eg SuperDome), CPU Hotswap, Memory Hotswap, New CPU models, etc (just a few things I've seen on customer wish lists) are supportable within that framework.

grant

Grant Grundler
parisc-linux {PCI|IOMMU|SMP} hacker
+1.408.447.7253

#3 lore raw
Quoted 1 line · Grant Grundler

How much is driven by how gcc/binutils/config.guess type stuff works?

Nothing.

Quoted 5 lines

We've made an effort to keep them the same. That's why most of the files are common. The fact that PA2.0 cpus can run PA1.1 kernel bits makes it easy for us. I'm *know* the R4000 MIPs processor had good backwards compatibility between 32/64-bit - don't know about later ones or Sparc/Sparc64.

We had a discussion of this in the meeting, but it's worth mentioning for the record. Ralf had two teams of people pulling at him -- one was the embedded MIPS people who wanted to keep everything simple and small, and the other was SGI who wanted 64-bit, SMP, scalability. So MIPS vs MIPS64 is also a tradeoff between make-it-small and make-it-fast.

For both Sparc & MIPS there was also the opportunity to discard backwards-compatibility stuff. Compare the Sparc64 and Sparc32 atomic_t operations. The changes between PA-RISC and PA-RISC64 really aren't as major. There aren't many places we could remove cruft by guaranteeing we're omitting certain types of processor.

It would almost certainly make sense to have a `parisc1.0' architecture if someone were crazy enough to do that :-)

Quoted 2 lines

The Processor family selection is a good idea regardless of how arch/parisc* source is organized.

Thanks.

Signature · 1 line
Revolutions do not require corporate support.
#4 lore raw
Quoted 4 lines · Matthew Wilcox

Ralf had two teams of people pulling at him -- one was the embedded MIPS people who wanted to keep everything simple and small, and the other was SGI who wanted 64-bit, SMP, scalability. So MIPS vs MIPS64 is also a tradeoff between make-it-small and make-it-fast.

Ok. Internally, HPUX had a similar conflict along different lines:
workstation vs server

Quoted 1 line

The changes between PA-RISC and PA-RISC64 really aren't as major.

That's true. We depend alot on the compiler to do most of the work so far. Future work is to identify locations where the compiler isn't doing a good enough job for a particular arch.

Quoted 2 lines

There aren't many places we could remove cruft by guaranteeing we're omitting certain types of processor.

Agreed.

Quoted 2 lines

It would almost certainly make sense to have a `parisc1.0' architecture if someone were crazy enough to do that :-)

or V-class. But a "parisc/kernelSPP" directory might be sufficient.

grant

Grant Grundler
parisc-linux {PCI|IOMMU|SMP} hacker
+1.408.447.7253