marcan changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi-dev
chadmed has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
milek7_ has joined #asahi-dev
eloy__ has joined #asahi-dev
milek7 has quit [Ping timeout: 480 seconds]
eloy_ has quit [Ping timeout: 480 seconds]
Etrien_ has joined #asahi-dev
Etrien has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
chadmed has joined #asahi-dev
audiojaguar has quit [Quit: ZNC - https://znc.in]
audiojaguar has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
<chadmed> povik: 256 % 6 != 0
<chadmed> setting the bclk ratio to 192 fixes everything
<chadmed> then we get a frame size of 32 for each speaker channel which matches the jack
<chadmed> sounds like i might need to redo the firs at some point though, the safety stuff has changed the sound profile a little bit
hmon has joined #asahi-dev
zzywysm has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
jakebot60224 has joined #asahi-dev
jakebot6022 has quit [Ping timeout: 480 seconds]
jakebot60224 is now known as jakebot6022
gaudem has quit [Quit: Connection closed for inactivity]
SSJ_GZ has joined #asahi-dev
ilya has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
chadmed has quit []
chadmed has joined #asahi-dev
chadmed has quit []
chadmed has joined #asahi-dev
chadmed has quit []
chadmed has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
hmon has quit [Remote host closed the connection]
chipxxx has quit [Remote host closed the connection]
bluetail1 has joined #asahi-dev
Etrien has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
chipxxx has joined #asahi-dev
Etrien_ has quit [Ping timeout: 480 seconds]
bluetail has quit [Ping timeout: 480 seconds]
bluetail1 is now known as bluetail
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
chadmed has quit []
chadmed has joined #asahi-dev
chadmed has quit []
chadmed has joined #asahi-dev
<chadmed> does someone with j314 speakers enabled mind testing the latest version of asahi-audio? ive completely redone the IRs and they sound much better now
<chadmed> clarity is greatly improved and ive managed to squish most of the audible boxiness present in the last version
<chadmed> probably still sounds bad on j316 since im pretty certain theyre completely different speakers, but a test on one of those wouldnt go astray either :)
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
bluetail has quit [Quit: The Lounge - https://thelounge.chat]
bluetail has joined #asahi-dev
ilya has quit [Ping timeout: 480 seconds]
<jannau> sven: you want https://github.com/jannau/linux/commit/9bec832ab04f90a250013079fd8ea0f37a2f3ed0 if you haven't fixed that yourself yet
<jannau> dcp rebased on asahi-wip
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Etrien_ has joined #asahi-dev
Etrien has quit [Ping timeout: 480 seconds]
psykose has quit [Remote host closed the connection]
psykose has joined #asahi-dev
<sven> Thanks, I didn’t even notice that because I went back to atcphy when I didn’t feel like fixing that probe race
<marcan> jannau: that works with the m1n1 merge right?
<jannau> sven: there's aslo a fix for the probe race
<jannau> marcan: yes, it works without additional m1n1 changes
<sven> ah, nice
<marcan> let's get that merged next week then
<sven> Guess I should try to rebase then
<marcan> any oddities with cpufreq? if not, I want to send that out too
<marcan> kettenis: did you get a chance to find out how BSD would deal with the DT change?
Etrien has joined #asahi-dev
Etrien_ has quit [Ping timeout: 480 seconds]
<mps> jannau: could these be tested without upgrading m1n1
<chadmed> cpufreq has been working fine here for the past few days
<jannau> mps: it works unmodiefied m1n1 from AsahiLinux but the necessary changes are not yet in any tag
<jannau> marcan: cpufreq boots, I haven't noticed anything but I wasn't looking. main system is not yet yet updated
<mps> jannau: ok, building it to test. thank you
<jannau> sven: dts with dcpext is in https://github.com/jannau/linux/tree/asahi-dcpext-v6.1-rc1-1 mostly because dcpext0 on t6002 doesn't want to boot
<jannau> mps: don't expect much change especially on laptops/imacs. performance on wayland (compositors using atomic_swap) is bad
<sven> thanks, will take a look later
<sven> and finally resolve those tracepoint changes we both did :D
<sven> I think we should call TRACE_SYSTEM appledcp or DCP instead of iomfb if you’re fine with that
<mps> jannau: ok, just want to test to get 'feeling'. do I have to disable simpledrm to get apple drm initialized?
<sven> it’s possible to filter on the tp names of you just want to look at iomfb and I’m not sure you can easily have two trace systems in a single object
<jannau> not sure if that's caused by the badly emulated vblank handling, llvmpipe rendering times excceding 1/60 s with high resolution displays or something else
<jannau> sven: let's use dcp. I just used iomfb since that was there all my tracepoints are
<jannau> mps: dcp will take over the framebuffer from simpledrm
<jannau> so you can boot with simpledrm built-in and have dcp as module. during boot simpledrm is used until the dcp modules are loaded
<mps> ah, build boot with =y
<mps> and don't see apple drm in dmesg, only simpledrm
<jannau> look for dcp in dmesg
<mps> there is no dcp in dmesg out
<mps> will try now as module
<jannau> make sure you use the dtb from the kernel. it works built-in as well along with simpledrm
<mps> ohm, forgot this
<jannau> if it doesn't appear in dmesg at the problem is not that simpledrm is present
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<mps> now got blank screen after booting kernel
<jannau> the probing is still annoying since it breaks completely as soon as a single dcp doesn't probe/start
<jannau> mps: which device? you most likely crashed dcp. please search in the output of 'dtc -I fs -O dts -o - /proc/device-tree' for reserved-memory
<mps> jannau: 316, m1pro macbook
<mps> I will try to upgrade m1n1 to see if that helps
<povik> chadmed: you are confusing things
<povik> frame size is 32 always
<povik> what you did by adjusting the bclk ratio is making MCA driver remove those two extra channels since there's no space for them on the bus
<jannau> mps: "10:53:21 < jannau> mps: it works unmodiefied m1n1 from AsahiLinux but the necessary changes are not yet in any tag"
<povik> that's not the proper fix though -- the channel number needs to be explicitly constrained in macaudio, if we can't leave that up for userspace
<chadmed> right
<chadmed> thats unfortunate
<povik> that follows from: (1) MCA cares about the bus, not the overall audio system; (2) to simplify macaudio we should share bus settings across models
<povik> well, it's bit of additional code to constrain it in macaudio
<mps> jannau: I'm not sure which version AsahiLinux have
<mps> it will not hurt if I upgrade it
<jannau> it was merged this wednesday
<jannau> please stop wasting my time
<mps> jannau: ok
nsklaus has joined #asahi-dev
<povik> chadmed: if we figured this out on the userspace side instead, i would find that neat
<povik> since those extra channels should be benign (if not, that's a kernel bug)
<povik> so we can take the position that userspace needs to know how to drive the device usefully anyway
<povik> including not opening it for extra dead channels
<chadmed> not sure how we would go about implementing that, i even tried constraining pipewire's maximum channel count to 6 for any given device at compile time, and it still opened all 8/32...
<povik> haha
<povik> there's the ~PlaybackChannels verb in UCM
<povik> which is missing for the speakers as of know, which i had the idea may be the cause for pipewire ignoring it
<povik> *as of now
<chadmed> ill have a go at getting the ucm stuff to work then
<chadmed> it doesnt work at all on this machine
nsklaus_ has quit [Ping timeout: 480 seconds]
<povik> yeah, you can try commenting things out to narrow down the cause -- if pipewire logging isn't helpful
<chadmed> yeah
SSJ_GZ has quit [Ping timeout: 480 seconds]
amarioguy has quit [Ping timeout: 480 seconds]
<chadmed> pw just hangs on it and doesnt say anything :)
amarioguy has joined #asahi-dev
<chadmed> well that was a quick debug session
<chadmed> theres no WNF Switch mixer control so it was dying on that
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
chadmed has quit []
chadmed has joined #asahi-dev
chadmed has quit []
chadmed has joined #asahi-dev
oneElectron has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
amarioguy2 has joined #asahi-dev
amarioguy has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Read error: Connection reset by peer]
chadmed has joined #asahi-dev
kov has quit [Quit: Coyote finally caught me]
<chadmed> PlaybackChannels 6 does nothing, jack and pw both still insist on opening 8 channels when the bclk ratio is 256
amarioguy2 has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
amarioguy has joined #asahi-dev
oneElectron has quit [Quit: oneElectron]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<Foxboron> jannau: If you have time, could you test if https://github.com/archlinux/mkinitcpio/pull/112 solves the gzip issue for Asahi?
<jannau> Foxboron: I'll test (and close my PR) but I don't think we will use it. We use uncompressed kernels for sd-boot compatibility. if we use compressed kernels it's probably EFI_ZBOOT only
<Foxboron> jannau: ack, thanks :)
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
chip_x has joined #asahi-dev
chipxxx has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
nela has quit [Quit: leaving.]
nela has joined #asahi-dev
kedde has joined #asahi-dev
kedde has quit []
<kettenis> marcan: yes I did, you must have missed me reporting on that here
<kettenis> <kettenis> ok, the frankenDTB doesn't make the kernel explode, but it does break the code that changes the CPU frequency
<kettenis> <kettenis> so from an OpenBSD standpoint there is no benefit in trying to provide a backwards compatible DTB
kov has joined #asahi-dev
alyssa has left #asahi-dev [#asahi-dev]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<jannau> atomic lcoked dart pgtable updates done, certainly not upstreamable but the previous code wasn't better in that regard. as bonus this get's rid of a bunch of custom of parsing code in apple-dart
chipxxx has joined #asahi-dev
chip_x has quit [Ping timeout: 480 seconds]
<jannau> marcan: cpufreq seems to work. I don't see the first perf cluster drop below 1.98 GHz but I guess that's a fight against schedutil
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
whistlingoat has joined #asahi-dev
___nick___ has joined #asahi-dev
chipxxx has quit [Ping timeout: 480 seconds]
<sven> jannau: so.. this is gonna sound dumb, but uh, how do I get dcp to actually set a mode?
<sven> i'm at "[ 9.970618] apple-dcp 271c00000.dcp: dcp_hotplug: connected: 1" now after your fixes
chipxxx has joined #asahi-dev
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
whistlingoat has joined #asahi-dev
<jannau> sven: libdrm has a modeset test utility
<jannau> fb emulation / fbcon starts automatically for dcp
<jannau> also \o/!!!!
whistlingoat has quit []
<jannau> sven: ./modetest -M apple
tych0 has quit [Quit: WeeChat 2.8]
<sven> shows dcpext as connected but without any modes afaict
<sven> let's see
<sven> probably just something on the dptx side broken, I remember I had this state with my python code as well at some point
whistlingoat has joined #asahi-dev
___nick___ has quit []
thelounge7571340 has joined #asahi-dev
___nick___ has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
___nick___ has quit []
___nick___ has joined #asahi-dev
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
whistlingoat has joined #asahi-dev
<marcan> jannau: try tasksetting the shell to another cluster then checking again
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<jannau> it was tasksetted to the 1st efficiency cluster
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Read error: Connection reset by peer]
pthariensflame has joined #asahi-dev
pthariensflame has quit []
artemist has joined #asahi-dev
<artemist> Is there an easy way to get an initramfs with firmware for teathered kernel booting? I'm guessing what I need isn't in linux-firmware
<j`ey> you can pull the firmware from the ESP partition
<jannau> use $ESP/vendorfw/firmware.tar
<jannau> we are planning to make this easier by storing a firmware.cpio there. that one can simply appended to the initramfs. not sure what we need to do for compression. I think the cpio archives have all use the same/none compression
<jannau> pushed dcp which replaces the L2 tables atomically for the premapped regions for lockked DARTs
<jannau> sven: includes t8103 dcpext and your tracepont commit
<sven> nice! then I should be able to just rebase my dptx hacks on top of that from now
thelounge7571340 has joined #asahi-dev
mps has quit [Quit: leaving]
thelounge7571340 has quit [Remote host closed the connection]
mps has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
jluthra_ has quit [Remote host closed the connection]
jluthra_ has joined #asahi-dev
pg12 has quit [Quit: pg12]
___nick___ has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
pg12 has joined #asahi-dev
eclipse842 has joined #asahi-dev
eclipse842 has quit []
whistlingoat has joined #asahi-dev
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Etrien_ has joined #asahi-dev
whistlingoat has joined #asahi-dev
Etrien has quit [Ping timeout: 480 seconds]
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
whistlingoat has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
jeffmiw has joined #asahi-dev
jeffmiw has quit [Remote host closed the connection]
whistlingoat has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
amarioguy has quit [Remote host closed the connection]
Etrien_ has quit [Read error: Connection reset by peer]
Etrien has joined #asahi-dev
Etrien_ has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Etrien has quit [Ping timeout: 480 seconds]
whistlingoat has joined #asahi-dev
<marcan> kettenis: ack
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Read error: Connection reset by peer]
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev