ChanServ changed the topic of #asahi-gpu to: Asahi Linux: porting Linux to Apple Silicon macs | GPU / 3D graphics stack black-box RE and development (NO binary reversing) | Keep things on topic | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-gpu
<phire> also max_freq_mhz is missing a divide by 1000000
Dcow_ has joined #asahi-gpu
<phire> otherwise all the initdata looks identical to me on my machine (ignoring rel_max_powers and rel_boost_powers)
Dcow_ has quit [Remote host closed the connection]
Dcow has quit [Ping timeout: 480 seconds]
millenia_ has joined #asahi-gpu
millenia_ has quit [Read error: Connection reset by peer]
Dcow has joined #asahi-gpu
Dcow has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-gpu
millenialhacker has quit [Ping timeout: 480 seconds]
DragoonAethis has quit [Quit: hej-hej!]
DragoonAethis has joined #asahi-gpu
Dcow has joined #asahi-gpu
Dcow has quit [Ping timeout: 480 seconds]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi-gpu
<phire> now, how do I get this m1n1 shim driver working?
<phire> oh, it probally doesn't work with glx and I'll have to use egl instead
Dcow has joined #asahi-gpu
amarioguy has joined #asahi-gpu
Dcow has quit [Ping timeout: 480 seconds]
Etrien has joined #asahi-gpu
Etrien__ has quit [Ping timeout: 480 seconds]
Etrien__ has joined #asahi-gpu
Dcow has joined #asahi-gpu
Etrien has quit [Ping timeout: 480 seconds]
VinDuv has quit [Ping timeout: 480 seconds]
Dcow has quit [Ping timeout: 480 seconds]
SSJ_GZ has quit [Ping timeout: 480 seconds]
SSJ_GZ has joined #asahi-gpu
Core9066 has joined #asahi-gpu
Dcow has joined #asahi-gpu
Dcow has quit [Ping timeout: 480 seconds]
<lina> Yeah, it can't do GLX, you need to use surfaceless EGL and it'll just blit some surfaces into the framebuffer...
<lina> There's no mechanism for actually doing WSI right now
Dcow has joined #asahi-gpu
Dcow has quit [Ping timeout: 480 seconds]
<phire> yeah, just trying to get surfaceless egl working
chadmed has joined #asahi-gpu
ella-0 has joined #asahi-gpu
ella-0_ has quit [Read error: Connection reset by peer]
<phire> oh, mesa doesn't consider asahi to be a valid driver for the current display?
<phire> ah, eglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA)
millenia_ has joined #asahi-gpu
millenia_ has quit [Ping timeout: 480 seconds]
<lina> Make sure to check render.py, I think I put in some dumb condition for what to blit to the FB
<phire> currently trying to work out why it's deadlocking on the first DRM_IOCTL_ASAHI_CREATE_BO
<phire> the shim_fd appears to be corrupted
chadmed has quit [Quit: Konversation terminated!]
Dcow has joined #asahi-gpu
chadmed has joined #asahi-gpu
chadmed has quit []
Dcow has quit [Ping timeout: 480 seconds]
<phire> python is corrupting it?
Dcow has joined #asahi-gpu
Dcow has quit [Ping timeout: 480 seconds]
<lina> Oh also, the Python side does not implement the up to date UABI yet... I'm running on some old mesa branch still for that
<lina> I don't think I broke anything but the render command though?
<phire> um... the drm shim init function gets called repeatedly until init completes
millenia_ has joined #asahi-gpu
millenia_ has quit [Ping timeout: 480 seconds]
<phire> I think this might just be cursed
<phire> drm_shim is implemented by hooking a bunch of libc functions (open/close/dup/mmap), and it seems to be screwing with python
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #asahi-gpu
chadmed has joined #asahi-gpu
<phire> fixed it. It was a bad interaction between drm_shim and python's subprocess
<phire> removing the subprocess out to gcc finally got it working
Etrien has joined #asahi-gpu
VinDuv has joined #asahi-gpu
Etrien__ has quit [Ping timeout: 480 seconds]
VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
VinDuv has joined #asahi-gpu
Etrien__ has joined #asahi-gpu
Etrien has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-gpu
chadmed has quit []
millenialhacker has joined #asahi-gpu
millenialhacker has quit [Read error: No route to host]
millenialhacker has joined #asahi-gpu
millenialhacker has quit [Read error: Connection reset by peer]
millenialhacker has joined #asahi-gpu
millenialhacker has quit [Remote host closed the connection]
millenialhacker has joined #asahi-gpu
millenialhacker has quit [Remote host closed the connection]
millenia_ has joined #asahi-gpu
millenia_ has quit [Remote host closed the connection]
millenia_ has joined #asahi-gpu
millenia_ has quit [Remote host closed the connection]
millenia_ has joined #asahi-gpu
millenia_ has quit [Remote host closed the connection]
millenia_ has joined #asahi-gpu
millenia_ has quit [Remote host closed the connection]
<phire> well, it's close to being a triangle: https://i.imgur.com/eBs0AWQ.png
<phire> Just needed a little unswizling: https://i.imgur.com/FTLx9qa.png
millenia_ has joined #asahi-gpu
chadmed has joined #asahi-gpu
chadmed has quit [Quit: Konversation terminated!]
uur has joined #asahi-gpu
uur has quit [Remote host closed the connection]
<lina> Ah yeah, my weirdo old mesa for this still had the "force linear" patch in it...
uur has joined #asahi-gpu
Dementor has quit [Remote host closed the connection]
Dementor has joined #asahi-gpu
uur has quit [Remote host closed the connection]
uur has joined #asahi-gpu
chadmed has joined #asahi-gpu
<phire> Yeah, suspected as much
chadmed has quit [Quit: Konversation terminated!]
<lina> jannau: Can you take another dump of the M1 Ultra with that agx trace script, but save the HV log (-l log.txt) and send me that?
<lina> I want to figure out if any of the few SGX registers read at startup have like a variant/model ID, if I can convince my macOS that I have a lower-core model I can find out if that's really what matters or not
chadmed has joined #asahi-gpu
Dcow has joined #asahi-gpu
<jannau> lina: one moment, I have reboot 2 machines
uur has quit [Remote host closed the connection]
<lina> jannau: Actually, use trace_all (on top of trace_agx) too if you can
<lina> It'll be a huge log but it might have something useful...
uur has joined #asahi-gpu
chadmed has quit [Quit: Konversation terminated!]
<lina> jannau: Actually actually, use hv/trace_all_more.py which I just pushed...
<lina> I just realized trace_all was untracing pmgr/error_handler which definitely have reg ranges related to fuses in them...
<jannau> done
<jannau> not done, I forgot to update the command
<jannau> updated
uur has quit [Remote host closed the connection]
<lina> jannau: Heh, looking at the SGX registers it reads at the beginning, yours has what looks like a mask of active cores...
<lina> ... and yours are completely regular, so I'm pretty sure Apple is turning cores off for marketing reasons and not yield at this point, at least for you
<lina> phire: If you get a chance, can you do the same trace? initdata with that pwr script + hv/trace_all_more.py
<jannau> at this point == since they started shipping. if I have 1 broken core there is a 1/4 chance that it would still look regular
<lina> True...
<lina> Though they get to pick both dies, and presumably they would pick two bad ones if they had enough of them
<jannau> I can do a dump of the m1 max (24 core gpu) if that helps
<lina> So then both would have to line up, which is a 1/16 chance
<lina> jannau: Sure! More data is great ^^
<jannau> but yes, I sure they have more demand for "broken" chips than their yield produces
wyes has joined #asahi-gpu
<lina> OK, so at least some things are adding up...
<lina> The core leakage/static power data is additive. If I subtract f=0 data from f=1000 data, the total power becomes constant
<lina> So that means there is no per-core shenanigans for dynamic power, and the static and dynamic power are just added together
<lina> And the f=0 data is proportional (to within the available significant digits) to the leakage table values.
<jannau> lina: at the same place with the obvious s/8/4/ fix
<jannau> phire: change line 76 to "for j in range(4):" for the m1 max
uur has joined #asahi-gpu
uur has quit [Remote host closed the connection]
uur has joined #asahi-gpu
millenia_ has quit []
Retr0id8 has joined #asahi-gpu
Retr0id has quit [Read error: Connection reset by peer]
Retr0id8 is now known as Retr0id
uur has quit [Remote host closed the connection]
uur has joined #asahi-gpu
uur has quit [Remote host closed the connection]
wyes has quit [Quit: Leaving]
uur has joined #asahi-gpu
uur has quit [Remote host closed the connection]
uur has joined #asahi-gpu
uur has quit [Remote host closed the connection]
chengsun_ has quit [Ping timeout: 480 seconds]
alyssa has left #asahi-gpu [#asahi-gpu]
uur has joined #asahi-gpu
ChaosPrincess has quit [Quit: WeeChat 3.6]
ChaosPrincess has joined #asahi-gpu
chengsun has joined #asahi-gpu
pthariensflame has joined #asahi-gpu
uur has quit [Remote host closed the connection]
chengsun has quit [Ping timeout: 480 seconds]
pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
yuyichao has quit [Quit: Konversation terminated!]
yuyichao has joined #asahi-gpu
c10l5 has joined #asahi-gpu
c10l has quit [Ping timeout: 480 seconds]
<phire> Lina, just let me wake up
pthariensflame has joined #asahi-gpu
pthariensflame has quit []
SSJ_GZ has quit [Read error: No route to host]
<phire> trace_all_more times out and panics: panic(cpu 2 caller 0xfffffe0014d15fe4): cannot find IOAESAccelerator: timeout = 120 seconds
<jannau> in combination with trace_agx_pwr? the latter reboots when it is done
<phire> running both tracers just made it panic sooner (diffrent panic?), didn't get as far as agx
<jannau> macos panics?
<phire> yeah
<phire> this time: "assertion failed /AppleInternal/Library/BuildRoots/b19089b6-9308-11ec-ba99-4e67803e3fd9/Library/Caches/com.apple.xbs/Sources/AppleConvergedIPC/Core/ACIPCPort.cpp:105" @ACIPCPort.cpp:105
<jannau> '<@lina> jannau: mkdir initdata; python tools/run_guest.py -m hv/trace_agx_pwr.py 12.3/kernelcache.release.mac13j.macho -- "debug=0x14e serial=3 -enable-kprintf-spam wdt=-1"'
Etrien has joined #asahi-gpu
Etrien__ has quit [Ping timeout: 480 seconds]
Etrien has quit [Read error: Connection reset by peer]
Etrien has joined #asahi-gpu
Etrien__ has joined #asahi-gpu
Etrien has quit [Ping timeout: 480 seconds]