[DEV] LuaJIT PPC64 support

Started by tle, August 14, 2023, 08:55:52 AM

Previous topic - Next topic

tle

PPC64 support is still a big mess. The sponsorship for PPC64 support was proposed in https://github.com/LuaJIT/LuaJIT/issues/42 however there has been little responses from the core team of LuaJIT which has lead to frustration to whom who might have given it a go.

Notably, the attempt by Gustavo Scalet (https://github.com/LuaJIT/LuaJIT/pull/54) in 2016 was not good enough. According to Mike Pall, the code was no good (ref: https://www.freelists.org/post/luajit/PPC64le-port-status,1)

Other ports that have better quality but has since get so out of sync, for example https://github.com/mwkmwkmwk/LuaJIT/tree/ppc64-ffi. Again there is zero attempt to get this merged to upstream LuaJIT.

I reckon the best approach is to crowd fund a bounty for Mike Pall to actually work on a proper port.
Faithful Linux enthusiast

My Raptor Blackbird

tle

Faithful Linux enthusiast

My Raptor Blackbird

MPC7500


tle

Faithful Linux enthusiast

My Raptor Blackbird

MPC7500

QuoteHi,

the latest available upstream version v2.1-20250826 has support for both ppc64
and ppc64el allowing luajit to be built successfully on both of these architectures.

Debian PowerPC Mailing List

power9mm

#5
I remember this being the major hang up with the STALKER engine when getting it to compile for ppc64le (x-ray engine) i forgot what we did to get it to work and unfortunately i've lost all the code and work that was done due to theft of the hard drives i had been using in my system from a storage unit break in. There was some kind of working version of it though for ppc64... Also the guy who helped made it possible has vanished and most likely for the worst sad to say...

pkubaj

Quote from: MPC7500 on November 05, 2025, 09:36:46 PM
QuoteHi,

the latest available upstream version v2.1-20250826 has support for both ppc64
and ppc64el allowing luajit to be built successfully on both of these architectures.

Debian PowerPC Mailing List

That quote is really misleading, I thought for a moment that Mike Pall finally merged PPC64 support after like 10 years. But it's just openresty fork, it's had ppc64 and ppc64le support for quite some time already.

tle

It's painful to convince Mike to review and merge such huge delta of changes to support PPC64 JIT. It's understandable taking into consideration and assumption that Mike does not own a POWER8/9 hardware.

I think I could try to review one of those stale JIT work and get it patched downstream in Fedora. If that approach proves successful, I strongly believe Mike would likely give his blessing to the JIT port after few years of real world usage downstream.
Faithful Linux enthusiast

My Raptor Blackbird

MPC7500

Why not ping Pearson?
Maybe he is willing to donate hardware to him.

Kortaffel

slightly offtopic, but SolidSilicon website went offline since april 1st, (or earlier). That power 11 announcement for somewhere Q12026 isnt coming.
Pearson is probably busy af, holding what little is left of OpenPower together
There's probably nothing to donate, or even new users, for an almost 10 year old power9 plattform at 5 grand
I saw on youtube in one of those webinars that IBM has transfered Power ISA developement to Bangalore, India. If IBM Usa doesn't care about the OpenPower side of things, then I'm certain that no one in India gives a damn.

MPC7500

#10
That's true. But not too long ago, Pearson donated hardware to another project. It's not that far-fetched.
I'm curious to see if there will even be a Power12. And the Power11 is really just a Power10+.

Edit:https://github.com/OldUnreal/UT2004Patches/issues/316#issuecomment-3955285197

MauryG5

Power 12 will happen because Power's chief engineer, William Starke, spoke about it directly. He did an interview not long ago announcing Power 11 and that immediately after that, there will be a move to Power 12, which will also have a new production process. The point is that if it doesn't return to being completely open, unfortunately, we won't have a sequel to Power 9...

power9mm

Quote from: Kortaffel on April 23, 2026, 01:48:04 PM
I saw on youtube in one of those webinars that IBM has transfered Power ISA developement to Bangalore, India. If IBM Usa doesn't care about the OpenPower side of things, then I'm certain that no one in India gives a damn.

This is not good at all... if the power isa is out sourced to India it's pretty much game over and I see the price has gone up even further from raptor.. geez

MPC7500