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 quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi-dev
thelounge7571340 has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
SSJ_GZ has joined #asahi-dev
SSJ_GZ has quit [Ping timeout: 480 seconds]
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
chadmed_ is now known as chadmed
kov has quit [Quit: Coyote finally caught me]
thelounge7571340 has quit [Remote host closed the connection]
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]
thelounge7571340 has joined #asahi-dev
SSJ_GZ has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
gabuscus has quit [Ping timeout: 480 seconds]
gabuscus has joined #asahi-dev
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
gladiac 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]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
isoriano has joined #asahi-dev
isoriano has quit [Quit: Leaving]
isoriano has joined #asahi-dev
isoriano has quit [Quit: Leaving]
DarkShadow44 has quit [Quit: ZNC - https://znc.in]
DarkShadow44 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
selene751[m] has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
aleasto- is now known as aleasto
eloy_ has quit [Ping timeout: 480 seconds]
eloy_ has joined #asahi-dev
nico_32_ has quit [Ping timeout: 480 seconds]
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
gladiac has quit [Quit: k thx bye]
nico_32 has joined #asahi-dev
<chadmed> povik: jack works a treat on t6000, slight nitpick though the wind filter control is inverted so that 0 is the strongest and 100 is off
<chadmed> admac still ends up crashing after a while and knocking out both the jack and internal speakers
<chadmed> and the internal speakers only output garbage digital noise instead of sound, so maybe a bad i2s clock or something idk
<chadmed> ridiculous fix for all the other stuff was turning off llvm m1 optimisations...
<chadmed> which i was not using on the kernel... and not on any kernel-adjacent packages either...
eloy_ has quit [Ping timeout: 480 seconds]
<povik> 16:20 < chadmed> ridiculous fix for all the other stuff was turning off llvm m1 optimisations...
<povik> hm?
<povik> what does it fix? and you weren't using it?
<chadmed> yeah idk i dont really have an explanation for it, but all the issues with module probing and initramfs etc went away when i took -mcpu=apple-m1 out of my make.conf and rebuilt the rootfs
<chadmed> so some important package was exploding on those optimisations
<dottedmag> sven: I've got M1 hooked to that 5K monitor and running macOS under m1n1: https://tea.dottedmag.net/~dottedmag/m1-driving-lg5k-under-m1n1.jpg
<chadmed> neat!
<dottedmag> sven: Please tell me how to collect data, I've never used m1n1 before
eloy_ has joined #asahi-dev
<chadmed> just append -l [path to log file] to run_guest.py then put the log in a gist or something (assuming youre already running a tracer sven sent you or something)
gabuscus has quit [Ping timeout: 480 seconds]
<jannau> dottedmag: copy https://gist.github.com/jannau/c32cc54bb5b6d5541c45c49c8d0caefd to proxyclient/hv/trace_dp_crossbar.py and add '-m hv/trace_dp_crossbar.py'
<dottedmag> This I need to run in addition to run_guest.py, or instead?
<jannau> sven might have updated register definitions and might want to trace additional things
<jannau> add it as command line arguments to run_guest.py
<povik> chadmed: ah, so turning off optimisations fixed some non-audio issues for you
<povik> i thought it had something to do with admac or the digital noise
<povik> anyway, let me adjust the wind filter control...
<chadmed> oh nah thats still happening, just confirming those issues werent due to that
<chadmed> the problems we couldnt work out the cause of the other day disappeared though (i.e. snd-soc-macaudio not probing properly etc)
<povik> that was the issue with the allocation of buffers, right?
<chadmed> yeah ive rebooted about 6 times now and havent run into that one
<chadmed> dunno what userspace could cause that but whatever its gone now
<chadmed> pipelines werent meant to be 8 wide :P
<povik> and how did you tie the issue to the timing of module probing?
<povik> like... it sounds most plausible, but was there some other indication?
<chadmed> because i changed literally nothing else about the system other than turned off the optimisations and rebuilt every package
<dottedmag> jannau: sven: https://paste.debian.net/1254189
<chadmed> so since nothing else changed other than whatever machine code llvm spits out, that has to be the cause
<chadmed> something that loads very early in an initramfs but isnt kmod, udev or the kernel itself which i always force to build with gcc
<dottedmag> I can do more tracing until evening this Sunday, and then I'll be away for a ~week
Race has quit [Ping timeout: 480 seconds]
<povik> chadmed: could be also the variable size of initramfs
<povik> send me your .config please
<dottedmag> jannau: sven: In this trace I booted laptop without monitor plugged in, then plugged and unplugged it twice.
<chadmed[m]> povik: i use the default asahi config minus -ARCH and with no module compression
<chadmed[m]> those are the only changes i make lol
gabuscus has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
gabuscus_ has joined #asahi-dev
gabuscus has quit [Read error: Connection reset by peer]
nico_32 has quit [Remote host closed the connection]
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
<irving[m]> hi is this document is relevant https://github.com/name99-org/AArch64-Explore
<irving[m]> s/is/still/
<roxfan> relevant to what?
<irving[m]> as in accurate
mini0n has joined #asahi-dev
mini0n has quit [Remote host closed the connection]
<roxfan> presumably you can repeat the experiments to check
<irving[m]> ok
<arnd> marcan: do you have pull requests for 6.1 lined up that you want in the soc tree? rmk asked about https://lore.kernel.org/linux-arm-kernel/E1oYNqp-006lXn-Hu@rmk-PC.armlinux.org.uk/, which I can pick up directly if you have no other code changes
<arnd> It would be good to have a PR for the t6000 dts files though
<arnd> j`ey: yes, I saw the submission, I'm just waiting for marcan to pick them up and send me a pull request to forward to torvalds
<j`ey> ah ok
jeffmiw has joined #asahi-dev
<marcan> arnd: Ah, just saw your message here. I replied to rmk saying I'd do it, but you can pick that one up directly if you want. It's trivial and there are no other code changes.
<marcan> t6k DTs will have to go through me, but if nothing else I need to shove the IOMMU binding patch in front, otherwise we'll end up with non-validating DTs
<Eighth_Doctor> It'd be great to have those in for 6.1 😁
<marcan> other than the first patch not having a review by rob I think everything else in there is okay?
<marcan> but yeah, I'm tired of waiting for the IOMMU series and the binding change is reviewed, so I'll pick that up.
<marcan> would be nice to get a robher review on #1 in the t6k series :)
<marcan> Eighth_Doctor: unfortunately until the IOMMU code changes go in, t6k won't actually work to any usable extent with 6.1...
<marcan> but yeah, let's get the DTs in at least
<Eighth_Doctor> I'm just ask for less patches to carry 😉
<marcan> fair :)
<Eighth_Doctor> s/ask/all/
<Eighth_Doctor> Though Davide Cavalca is seeing something odd with our attempt to boot our remix image in #asahi:fedora.im
<marcan> ping me later if I forget, I really should sleep :)
<Eighth_Doctor> USB boot doesn't seem to work 😦
<Eighth_Doctor> Will do... I forgot you're in Japan...
<marcan> Eighth_Doctor: is that a 16K page size or 4K page size kernel?
<Eighth_Doctor> 4k
<marcan> 4K support patches aren't in yet, no surprise that'd be broken
<Eighth_Doctor> This is 5.19 with your patch tree on top
<Eighth_Doctor> 5.19.9
<marcan> yeah, which doesn't have those patches :)
<j`ey> the 4k patch was never in the asahi tree
<marcan> those patches aren't quite reviewed yet, but I also don't want people using 4K kernels as an excuse not to fix software to run on 16K
<Eighth_Doctor> That's fair
<marcan> please just do 16K builds for now, 4K needs polish and it's likely other things are broken there
<Eighth_Doctor> That's why RHEL did 64k for years
<marcan> (plus there is a nontrivial performance gain from 16K)
<marcan> "deferred probe timeout" though, that kind of looks like you're missing a driver
<marcan> possibly the DART driver itself?
<arnd> the deferred probe bug should be fixed in -rc4
<marcan> oh, that's a bug?
<jannau> in 5.19?
<dcavalca> I did notice the apple-dart kmod seemed to be missing (meaning, I couldn't modprobe it)
<arnd> well, not sure if you hit the same thing, but multiple people were affected by a change in the driver core that resulted in deferred probe issues and got reverted in -rc4
<arnd> 6.0-rc1 through rc3 were broken, 5.19 should be fine
<marcan> no DART driver explains the USB issues
<marcan> the USB DARTs are supposed to be bypassable (so will work in 4K kernels, just with no security), but without the driver you only get one of the two DARTs bypassed as left behind by u-boot
<marcan> (I think?)
<marcan> which means once the USB controller tries to use the other one, it'll fail
<marcan> but 4K kernels won't work with PCIe so you really want 16K
<arnd> marcan, rmk: applied the apple_rtkit_poll() patch directly from the list now, no need to resend
<marcan> arnd: thank you!
<dcavalca> thanks marcan
<dcavalca> yeah, we'll do a 16K build and take it from there
<jannau> I still hope the t6k dart series will make it for 6.1. Joerg was awol this week
<marcan> if you build the DART as a module, make sure you don't have anything that depends on it built in
<marcan> (if unsure, I'd build it in, it's a very core driver)
<marcan> on our kernels we build it in since it's in the dependency chain for backlight-gpio which is a dep for simpledrm in the DT, but that's a temporary hack
<jannau> no, it's a module in the asahilinux kernel
<marcan> if you use the same DTs with that though, you want all that chain built in, which includes macsmc and macsmc-gpio...
<dcavalca> what's the kconfig knob for DART?
<marcan> is it? did I miss that?
<jannau> APPLE_DART
<marcan> looks like I did, lol
<marcan> dcavalca: okay then I didn't intend it to be :)
<marcan> it always ends up in the initramfs but yeah, I want people to get framebuffer without waiting for modules
thelounge7571340 has quit [Remote host closed the connection]
<dcavalca> yup it's =m in our Fedora kernel build for now
<marcan> if you have CONFIG_GPIO_MACSMC=y like we do, you should also build in DART, otherwise there's no point
<marcan> if you don't, then you need to be aware that you'll get no simpledrm framebuffer without modules being available
<marcan> oh wait
<marcan> sorry, I just derped
<marcan> SMC has no DART
<marcan> it's fine as a module
* marcan is tired, I *really* should sleep
<marcan> SMC uses SRAM shared memory, not DART
thelounge7571340 has joined #asahi-dev
<dcavalca> yup we have CONFIG_GPIO_MACSMC=y
<marcan> yeah, then it's okay, an DART as a module is too
<marcan> my mind just went off thinking SMC depended on it because it's an ASC
compassion has quit [Ping timeout: 480 seconds]
* Eighth_Doctor is running through configs check for 16K pages
<marcan> alright, I'm off to sleep, hope that helps get you up and running :)
<j`ey> Eighth_Doctor: this one CONFIG_ARM64_16K_PAGES=y
<Eighth_Doctor> yup
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
<blazra[m]> j`ey: Regarding the keyboard backlight PWM: I have found out some more details.
<blazra[m]> Also, the difference between bit(0) and bit(14) is that bit(14) is just output enable - bit(0) is probably a global enable.
<blazra[m]> The control register bit(2) that I previously thought enabled "single-shot" mode is more like a "single-pulse" mode where bit(10) selects if you want positive or negative pulse.
<blazra[m]> Then, bit(0) in the status register gets set at the end of the OFF period and bit(1) at the end of the ON period.
<blazra[m]> You can clear the status bits by writing ones to them.
<j`ey> blazra[m]: awesome work
<blazra[m]> j`ey: thank you
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
SSJ_GZ has quit [Ping timeout: 480 seconds]
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
<jeffmiw> Here is an update on hwmon support: MBA-M1 version available: 100 Temp sensors, 34 Current sensors, 28 Voltage sensors. Example of output from sensors cmd: https://tpaste.us/pn7g. Branch (based on asahi--5.19-5): https://github.com/jfbortolotti/linux/tree/hwmon_smc. Commit: https://github.com/jfbortolotti/linux/commit/f0c16a1402eab04b59283c2fb1b2ace3ca5c3500. Patch: https://github.com/jfbortolotti/linux/commit/
<jeffmiw> f0c16a1402eab04b59283c2fb1b2ace3ca5c3500.patch. Feedback welcome :)
<jeffmiw> one of the next steps is to decide how to manage the different models as they will likely have a different set of sensors(I do not have other machines to check)
<jeffmiw> and how much we want to use the DT for that and in which form.
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev
jeffmiw has quit [Quit: Konversation terminated!]
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi-dev