#
…

2022-09-17

00:28thelounge7571340 has quit [Remote host closed the connection]
00:31thelounge7571340 has joined #asahi-dev
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-dev
01:33thelounge7571340 has quit [Ping timeout: 480 seconds]
02:29thelounge7571340 has joined #asahi-dev
02:29SSJ_GZ has joined #asahi-dev
03:06SSJ_GZ has quit [Ping timeout: 480 seconds]
03:28thelounge7571340 has quit [Remote host closed the connection]
03:31thelounge7571340 has joined #asahi-dev
03:53chadmed_ is now known as chadmed
04:03kov has quit [Quit: Coyote finally caught me]
04:31thelounge7571340 has quit [Remote host closed the connection]
04:33thelounge7571340 has joined #asahi-dev
05:33thelounge7571340 has quit [Remote host closed the connection]
05:38thelounge7571340 has joined #asahi-dev
06:37thelounge7571340 has quit [Remote host closed the connection]
06:41thelounge7571340 has joined #asahi-dev
07:23SSJ_GZ has joined #asahi-dev
07:41thelounge7571340 has quit [Remote host closed the connection]
07:43thelounge7571340 has joined #asahi-dev
07:47gabuscus has quit [Ping timeout: 480 seconds]
07:54gabuscus has joined #asahi-dev
08:04jluthra has quit [Remote host closed the connection]
08:05jluthra has joined #asahi-dev
08:27gladiac has joined #asahi-dev
08:42thelounge7571340 has quit [Remote host closed the connection]
08:46thelounge7571340 has joined #asahi-dev
09:45thelounge7571340 has quit [Remote host closed the connection]
09:52thelounge7571340 has joined #asahi-dev
10:51thelounge7571340 has quit [Remote host closed the connection]
10:54thelounge7571340 has joined #asahi-dev
10:55isoriano has joined #asahi-dev
11:03isoriano has quit [Quit: Leaving]
11:04isoriano has joined #asahi-dev
11:10isoriano has quit [Quit: Leaving]
11:14DarkShadow44 has quit [Quit: ZNC - https://znc.in]
11:14DarkShadow44 has joined #asahi-dev
11:54thelounge7571340 has quit [Remote host closed the connection]
11:58thelounge7571340 has joined #asahi-dev
12:44selene751[m] has joined #asahi-dev
12:57thelounge7571340 has quit [Remote host closed the connection]
13:00thelounge7571340 has joined #asahi-dev
13:16aleasto- is now known as aleasto
13:41eloy_ has quit [Ping timeout: 480 seconds]
13:46eloy_ has joined #asahi-dev
13:59nico_32_ has quit [Ping timeout: 480 seconds]
14:00thelounge7571340 has quit [Remote host closed the connection]
14:03thelounge7571340 has joined #asahi-dev
14:09gladiac has quit [Quit: k thx bye]
14:13nico_32 has joined #asahi-dev
14:15chadmedpovik: 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
14:16chadmedadmac still ends up crashing after a while and knocking out both the jack and internal speakers
14:16chadmedand the internal speakers only output garbage digital noise instead of sound, so maybe a bad i2s clock or something idk
14:20chadmedridiculous fix for all the other stuff was turning off llvm m1 optimisations...
14:20chadmedwhich i was not using on the kernel... and not on any kernel-adjacent packages either...
14:23eloy_ has quit [Ping timeout: 480 seconds]
14:24povik16:20 < chadmed> ridiculous fix for all the other stuff was turning off llvm m1 optimisations...
14:24povikwhat does it fix? and you weren't using it?
14:25chadmedyeah 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
14:25chadmedso some important package was exploding on those optimisations
14:25dottedmagsven: 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
14:26dottedmagsven: Please tell me how to collect data, I've never used m1n1 before
14:29eloy_ has joined #asahi-dev
14:30chadmedjust 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)
14:31gabuscus has quit [Ping timeout: 480 seconds]
14:31jannaudottedmag: copy https://gist.github.com/jannau/c32cc54bb5b6d5541c45c49c8d0caefd to proxyclient/hv/trace_dp_crossbar.py and add '-m hv/trace_dp_crossbar.py'
14:32dottedmagThis I need to run in addition to run_guest.py, or instead?
14:32jannausven might have updated register definitions and might want to trace additional things
14:33jannauadd it as command line arguments to run_guest.py
14:35povikchadmed: ah, so turning off optimisations fixed some non-audio issues for you
14:35poviki thought it had something to do with admac or the digital noise
14:35povikanyway, let me adjust the wind filter control...
14:36chadmedoh nah thats still happening, just confirming those issues werent due to that
14:36chadmedthe problems we couldnt work out the cause of the other day disappeared though (i.e. snd-soc-macaudio not probing properly etc)
14:37povikthat was the issue with the allocation of buffers, right?
14:38chadmedyeah ive rebooted about 6 times now and havent run into that one
14:38chadmeddunno what userspace could cause that but whatever its gone now
14:38chadmedpipelines werent meant to be 8 wide :P
14:39povikand how did you tie the issue to the timing of module probing?
14:40poviklike... it sounds most plausible, but was there some other indication?
14:40chadmedbecause i changed literally nothing else about the system other than turned off the optimisations and rebuilt every package
14:40chadmedso since nothing else changed other than whatever machine code llvm spits out, that has to be the cause
14:41chadmedsomething that loads very early in an initramfs but isnt kmod, udev or the kernel itself which i always force to build with gcc
14:41dottedmagI can do more tracing until evening this Sunday, and then I'll be away for a ~week
14:45Race has quit [Ping timeout: 480 seconds]
14:45povikchadmed: could be also the variable size of initramfs
14:46poviksend me your .config please
14:46dottedmagjannau: sven: In this trace I booted laptop without monitor plugged in, then plugged and unplugged it twice.
14:57chadmed[m]povik: i use the default asahi config minus -ARCH and with no module compression
14:57chadmed[m]those are the only changes i make lol
15:02gabuscus has joined #asahi-dev
15:03thelounge7571340 has quit [Remote host closed the connection]
15:06thelounge7571340 has joined #asahi-dev
15:18gabuscus_ has joined #asahi-dev
15:23gabuscus has quit [Read error: Connection reset by peer]
15:28nico_32 has quit [Remote host closed the connection]
16:06thelounge7571340 has quit [Remote host closed the connection]
16:11thelounge7571340 has joined #asahi-dev
17:11thelounge7571340 has quit [Remote host closed the connection]
17:13thelounge7571340 has joined #asahi-dev
17:17irving[m]s/is/still/
17:17roxfanrelevant to what?
17:18irving[m]as in accurate
17:18mini0n has joined #asahi-dev
17:19mini0n has quit [Remote host closed the connection]
17:19roxfanpresumably you can repeat the experiments to check
17:23arndmarcan: 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
17:24arndIt would be good to have a PR for the t6000 dts files though
17:27arndj`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
17:41jeffmiw has joined #asahi-dev
17:51marcanarnd: 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.
17:52marcant6k 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
17:52Eighth_DoctorIt'd be great to have those in for 6.1 😁
17:54marcanother than the first patch not having a review by rob I think everything else in there is okay?
17:55marcanbut yeah, I'm tired of waiting for the IOMMU series and the binding change is reviewed, so I'll pick that up.
17:56marcanwould be nice to get a robher review on #1 in the t6k series :)
17:57marcanEighth_Doctor: unfortunately until the IOMMU code changes go in, t6k won't actually work to any usable extent with 6.1...
17:57marcanbut yeah, let's get the DTs in at least
17:58Eighth_DoctorI'm just ask for less patches to carry 😉
18:00Eighth_DoctorThough Davide Cavalca is seeing something odd with our attempt to boot our remix image in #asahi:fedora.im
18:01marcanping me later if I forget, I really should sleep :)
18:01Eighth_DoctorUSB boot doesn't seem to work 😦
18:01Eighth_DoctorWill do... I forgot you're in Japan...
18:02marcanEighth_Doctor: is that a 16K page size or 4K page size kernel?
18:02marcan4K support patches aren't in yet, no surprise that'd be broken
18:03Eighth_DoctorThis is 5.19 with your patch tree on top
18:03marcanyeah, which doesn't have those patches :)
18:03j`eythe 4k patch was never in the asahi tree
18:04marcanthose 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
18:04marcanplease just do 16K builds for now, 4K needs polish and it's likely other things are broken there
18:04Eighth_DoctorThat's why RHEL did 64k for years
18:04marcan(plus there is a nontrivial performance gain from 16K)
18:05marcan"deferred probe timeout" though, that kind of looks like you're missing a driver
18:05marcanpossibly the DART driver itself?
18:05arndthe deferred probe bug should be fixed in -rc4
18:05marcanoh, that's a bug?
18:06jannauin 5.19?
18:06dcavalcaI did notice the apple-dart kmod seemed to be missing (meaning, I couldn't modprobe it)
18:06arndwell, 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
18:07arnd6.0-rc1 through rc3 were broken, 5.19 should be fine
18:08marcanno DART driver explains the USB issues
18:08marcanthe 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
18:08marcan(I think?)
18:08marcanwhich means once the USB controller tries to use the other one, it'll fail
18:09marcanbut 4K kernels won't work with PCIe so you really want 16K
18:09arndmarcan, rmk: applied the apple_rtkit_poll() patch directly from the list now, no need to resend
18:09marcanarnd: thank you!
18:10dcavalcathanks marcan
18:10dcavalcayeah, we'll do a 16K build and take it from there
18:10jannauI still hope the t6k dart series will make it for 6.1. Joerg was awol this week
18:10marcanif you build the DART as a module, make sure you don't have anything that depends on it built in
18:10marcan(if unsure, I'd build it in, it's a very core driver)
18:11marcanon 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
18:11jannauno, it's a module in the asahilinux kernel
18:11marcanif you use the same DTs with that though, you want all that chain built in, which includes macsmc and macsmc-gpio...
18:11dcavalcawhat's the kconfig knob for DART?
18:11marcanis it? did I miss that?
18:11jannauAPPLE_DART
18:12marcanlooks like I did, lol
18:12marcandcavalca: okay then I didn't intend it to be :)
18:12marcanit always ends up in the initramfs but yeah, I want people to get framebuffer without waiting for modules
18:12thelounge7571340 has quit [Remote host closed the connection]
18:12dcavalcayup it's =m in our Fedora kernel build for now
18:13marcanif you have CONFIG_GPIO_MACSMC=y like we do, you should also build in DART, otherwise there's no point
18:13marcanif you don't, then you need to be aware that you'll get no simpledrm framebuffer without modules being available
18:13marcansorry, I just derped
18:13marcanSMC has no DART
18:13marcanit's fine as a module
18:13* marcanis tired, I *really* should sleep
18:14marcanSMC uses SRAM shared memory, not DART
18:14thelounge7571340 has joined #asahi-dev
18:14dcavalcayup we have CONFIG_GPIO_MACSMC=y
18:14marcanyeah, then it's okay, an DART as a module is too
18:14marcanmy mind just went off thinking SMC depended on it because it's an ASC
18:14compassion has quit [Ping timeout: 480 seconds]
18:14* Eighth_Doctoris running through configs check for 16K pages
18:15marcanalright, I'm off to sleep, hope that helps get you up and running :)
18:15j`eyEighth_Doctor: this one CONFIG_ARM64_16K_PAGES=y
19:13thelounge7571340 has quit [Remote host closed the connection]
19:17thelounge7571340 has joined #asahi-dev
20:17thelounge7571340 has quit [Remote host closed the connection]
20:23thelounge7571340 has joined #asahi-dev
20:58blazra[m]j`ey: Regarding the keyboard backlight PWM: I have found out some more details.
20:58blazra[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.
20:58blazra[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.
20:59blazra[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.
20:59blazra[m]You can clear the status bits by writing ones to them.
21:01j`eyblazra[m]: awesome work
21:07blazra[m]j`ey: thank you
21:22thelounge7571340 has quit [Remote host closed the connection]
21:28thelounge7571340 has joined #asahi-dev
22:20SSJ_GZ has quit [Ping timeout: 480 seconds]
22:27thelounge7571340 has quit [Remote host closed the connection]
22:30thelounge7571340 has joined #asahi-dev
22:30jeffmiwHere 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/
22:30jeffmiwf0c16a1402eab04b59283c2fb1b2ace3ca5c3500.patch. Feedback welcome :)
22:33jeffmiwone 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)
22:34jeffmiwand how much we want to use the DT for that and in which form.
22:41thelounge7571340 has quit [Remote host closed the connection]
22:44thelounge7571340 has joined #asahi-dev
22:55jeffmiw has quit [Quit: Konversation terminated!]
23:43thelounge7571340 has quit [Remote host closed the connection]
23:48thelounge7571340 has joined #asahi-dev
…