Re: POWER9 hardware donation

2018-07-27 Thread Peter J. Philipp
On Tue, Jul 24, 2018 at 09:21:09PM +0200, Peter J. Philipp wrote:
> Hi,
> 
> I'm working on a powerpc64 port, I've been at it 2 weeks non-stop.?? I don't
> know if I'll finish.?? But I gotta say hey! this is a generous offer.
> 
> Since I'm focusing on the big endian machine byte order and on PowerPC 970's
> it would need to be ported again to little endian afaik.?? If it's possible
> to run on a Power9 in big endian mode this would be cool.
> 
> I believe I am not worthy of such a machine and only worthy if I port
> OpenBSD to my PowerPC 970FX cpu.?? Let's take our time and wait to see if I
> or anyone else moves in a positive direction in this area.
> 
> BTW I've been working on a cross-compiler to powerpc64 today.?? I used
> kevlo's riscv cross compiler port and modified it. Unfortunately I started
> before sunrise and it's sunset now and i haven't managed to get cross-gcc
> working.?? I may succeed tomorrow.
> 
> Regards,
> 
> -peter
> 
> 
> On 07/24/18 20:27, Pascal de Kloe wrote:
> > I'm offering my brand new IBM 9006-22P with two 16-core 2.9GHZ CPUs to
> > the OpenBSD project for free. Who can make the hardware port happen?
> > Serious attempts only.

Hi,

I'm CC'ing p...@openbsd.org because that's where I started the 64-bit PowerPC
thread.  I want to say that I succeeded building a cross-compiler for 64 bit
PowerPC.  I haven't tested its functionality yet but the packaging/port is
complete.  If you want to help, download this tarball, extract to 
/usr/ports/devel/ examine it, and install on your system.  Look for 
breakages.  I'll get into some detail later.

http://centroid.eu/private/powerpc64-openbsd-elf.tgz

This will build binutils and gcc in /usr/local and 
/usr/local/powerpc64-unknown-openbsd/*.  Since I based this off kevlo@openbsd's
riscv port there was a conflict for .la files that installed into 
/usr/local/lib ... I had to really damage the Makefile.in's of gcc's libcc1 
in order for it not to install those .la files.  But it caught some other 
libcc1 relevant files too, so I don't know if the cross compiler even works.

Here is some eye candy for the packages that I have installed on my xeon 
system to show there is no conflict I'm including riscv port:

beta$ pkg_info | grep -e powerpc64 -e riscv
powerpc64-elf-binutils-2.30 binutils for powerpc64-elf cross-development
powerpc64-elf-gcc-8.1.0 gcc for powerpc64-elf cross-development
riscv-elf-binutils-2.30 binutils for riscv-elf cross-development
riscv-elf-gcc-8.1.0 gcc for riscv-elf cross-development
riscv-elf-newlib-3.0.0 newlib for riscv-elf cross-development

One thing to know about this powerpc64 compiler is it cannot build userland
OpenBSD (not even init) but with a kernel it should be OK.  This is because
I did not include the includes (haven't built those fully yet).  When the time
comes when my tree is complete I'll try to revisit this and remove the:

patch-libgcc_enable_mprotect:+#if 0
patch-gcc_tsystem_h:+#define inhibit_libc   1

This patch does not look for include files such as sys/mman.h which are a
dependency for the gcc 8.1.0 rs6000 machine target.

This was a painful week because it was really hot in Germany where I develop,
and building this cross-compiler was frustrating too.  I once asked on IRC
for people to help me, but I did only get moral support.

Thank you to kevlo@openbsd for providing something to work with...
(I'm thankful it was in the ports tree).

I'm looking for people to come forward and help me.  It is lonely doing this
alone.  First state that you want to help, look on p...@openbsd.org archives
on what I've done (64-bit PowerPC thread) and look where you can help.  If
you have a G5 macppc machine this would help as I'm basing it off that.
I need someone to look into making a 64 bit ofwboot available, as I need to
boot a first OpenBSD/aim64 kernel some day with a 64 bit loader.  (This week
was a setback, I didn't think this cross compiler would rob so much time).
I may have 4-8 more weeks in august and september to work on this.

Regards,
-peter



Re: POWER9 hardware donation

2018-07-24 Thread Brandon Bergren



On Tue, Jul 24, 2018, at 3:15 PM, Pascal de Kloe wrote:
> Fulltime work on a port definitely qualifies as a serious attempt. It
> is almost impossible to say for sure you can manage such a port. All I
> want is that this beauty is actively used for OpenBSD. Otherwise I'll
> keep it for my own developments or reuse the CPUs in a Thalos
> workstation if that's even possible.

Since you're talking about donating a physical machine, I think that it might 
actually be a good candidate for a build box. Have you asked Theo directly yet?



Re: POWER9 hardware donation

2018-07-24 Thread Brandon Bergren
Actually, POWER9 is bi-endian and can switch between BE and LE at runtime. BE 
actually has a very slight performance advantage in some cases. Linux is the 
only OS that appears to be doing much LE stuff on POWER, other OS development 
that I'm aware of is all BE focused.

I know that Timothy Pearson at Raptor Engineering has an open offer to provide 
remote access to POWER9 systems for the purposes of OS porting, if access to a 
machine is the problem. 

Peter, I'm sure that he'd give you access to one if you wanted.

Also, for anyone interested in POWER who has already looked at the Talos II 
when it first came out and didn't get it because of the price -- it might be 
worth another look, there's a Lite variant available now at a lower cost than 
the original Talos II, as well as a limited number of "Special Developer 
Systems" ( https://secure.raptorcs.com/content/TLSDS1/intro.html ) that are 
being sold complete for US$1600, intended as a way for kernel / software 
developers to get a box for doing kernel dev / compiling cheaply. (They have an 
older stepping of the processor that doesn't support virtualization and 
spectre/meltdown mitigation, but any Sforza Power9 processor can be dropped in 
later)

I grabbed one of those myself when they first went on sale and it will be 
arriving tomorrow. I'll be able to test stuff and maybe do some debugging on my 
end.

(I don't work for Raptor Engineering, but I own two of their machines now and 
am thoroughly enjoying the hardware, and am very enthusiastic about POWER9 in 
general.)

Regarding Pascal's offer in the OP, the 9006-22P is also an OpenBMC based 
machine (as opposed to a FSP based machine, so it and the Talos II should be 
nearly identical in how they appear to the OS, so any work on OPAL bits will 
work for both at the same time.

On Tue, Jul 24, 2018, at 2:21 PM, Peter J. Philipp wrote:
> Hi,
> 
> I'm working on a powerpc64 port, I've been at it 2 weeks non-stop.  I 
> don't know if I'll finish.  But I gotta say hey! this is a generous offer.
> 
> Since I'm focusing on the big endian machine byte order and on PowerPC 
> 970's it would need to be ported again to little endian afaik.  If it's 
> possible to run on a Power9 in big endian mode this would be cool.
> 
> I believe I am not worthy of such a machine and only worthy if I port 
> OpenBSD to my PowerPC 970FX cpu.  Let's take our time and wait to see if 
> I or anyone else moves in a positive direction in this area.
> 
> BTW I've been working on a cross-compiler to powerpc64 today.  I used 
> kevlo's riscv cross compiler port and modified it. Unfortunately I 
> started before sunrise and it's sunset now and i haven't managed to get 
> cross-gcc working.  I may succeed tomorrow.
> 
> Regards,
> 
> -peter
> 
> 
> On 07/24/18 20:27, Pascal de Kloe wrote:
> > I'm offering my brand new IBM 9006-22P with two 16-core 2.9GHZ CPUs to
> > the OpenBSD project for free. Who can make the hardware port happen?
> > Serious attempts only.
> 


-- 
  Brandon Bergren
  Technical Generalist



Re: POWER9 hardware donation

2018-07-24 Thread Pascal de Kloe
Fulltime work on a port definitely qualifies as a serious attempt. It
is almost impossible to say for sure you can manage such a port. All I
want is that this beauty is actively used for OpenBSD. Otherwise I'll
keep it for my own developments or reuse the CPUs in a Thalos
workstation if that's even possible.

And, yes the POWER9 architecture can run both in big- and small endian mode.

Let's wait a bit more and see who's most "qualified" to take the task.
I live in The Netherlands b.t.w. so shipping from there.


On Tue, Jul 24, 2018 at 9:21 PM, Peter J. Philipp  wrote:
> Hi,
>
> I'm working on a powerpc64 port, I've been at it 2 weeks non-stop.  I don't
> know if I'll finish.  But I gotta say hey! this is a generous offer.
>
> Since I'm focusing on the big endian machine byte order and on PowerPC 970's
> it would need to be ported again to little endian afaik.  If it's possible
> to run on a Power9 in big endian mode this would be cool.
>
> I believe I am not worthy of such a machine and only worthy if I port
> OpenBSD to my PowerPC 970FX cpu.  Let's take our time and wait to see if I
> or anyone else moves in a positive direction in this area.
>
> BTW I've been working on a cross-compiler to powerpc64 today.  I used
> kevlo's riscv cross compiler port and modified it. Unfortunately I started
> before sunrise and it's sunset now and i haven't managed to get cross-gcc
> working.  I may succeed tomorrow.
>
> Regards,
>
> -peter
>
>
>
> On 07/24/18 20:27, Pascal de Kloe wrote:
>>
>> I'm offering my brand new IBM 9006-22P with two 16-core 2.9GHZ CPUs to
>> the OpenBSD project for free. Who can make the hardware port happen?
>> Serious attempts only.
>
>



Re: POWER9 hardware donation

2018-07-24 Thread Peter J. Philipp

Hi,

I'm working on a powerpc64 port, I've been at it 2 weeks non-stop.  I 
don't know if I'll finish.  But I gotta say hey! this is a generous offer.


Since I'm focusing on the big endian machine byte order and on PowerPC 
970's it would need to be ported again to little endian afaik.  If it's 
possible to run on a Power9 in big endian mode this would be cool.


I believe I am not worthy of such a machine and only worthy if I port 
OpenBSD to my PowerPC 970FX cpu.  Let's take our time and wait to see if 
I or anyone else moves in a positive direction in this area.


BTW I've been working on a cross-compiler to powerpc64 today.  I used 
kevlo's riscv cross compiler port and modified it. Unfortunately I 
started before sunrise and it's sunset now and i haven't managed to get 
cross-gcc working.  I may succeed tomorrow.


Regards,

-peter


On 07/24/18 20:27, Pascal de Kloe wrote:

I'm offering my brand new IBM 9006-22P with two 16-core 2.9GHZ CPUs to
the OpenBSD project for free. Who can make the hardware port happen?
Serious attempts only.




Re: POWER9 hardware donation

2018-07-24 Thread Bryan Steele
On Tue, Jul 24, 2018 at 08:27:44PM +0200, Pascal de Kloe wrote:
> I'm offering my brand new IBM 9006-22P with two 16-core 2.9GHZ CPUs to
> the OpenBSD project for free. Who can make the hardware port happen?
> Serious attempts only.

Sounds like strings attached.



POWER9 hardware donation

2018-07-24 Thread Pascal de Kloe
I'm offering my brand new IBM 9006-22P with two 16-core 2.9GHZ CPUs to
the OpenBSD project for free. Who can make the hardware port happen?
Serious attempts only.