#
#asahi-dev · 2023-04-16 11:21
marcanjannau: also the mtp protocol init message parsing was wrong
#asahi-dev · 2023-04-16 11:21
kettenisand that includes MSIs
#asahi-dev · 2023-04-16 11:21
kettenisso that still has to happen in the linux driver
#asahi-dev · 2023-04-16 11:20
kettenisu-boot doesn't do any interrupt setup (since it doesn't use interrupts)
#asahi-dev · 2023-04-16 11:19
jannaulet's see if I can refactor the linux driver to make the link up check not as ugly as it is now
#asahi-dev · 2023-04-16 11:16
ketteniscool
#asahi-dev · 2023-04-16 11:15
jannaukettenis: linux boot works now with firmware "initrd"
#asahi-dev · 2023-04-16 11:07
marcanwe need to actually implement that properly
#asahi-dev · 2023-04-16 11:01
marcanjannau: it's oslog
#asahi-dev · 2023-04-16 10:42
marcanI'll figure it out
#asahi-dev · 2023-04-16 10:42
marcanjannau: yeah it's broken :/
#asahi-dev · 2023-04-16 10:38
marcanI made it cover everything, looks like it's 1MiB
#asahi-dev · 2023-04-16 10:35
jannaujust double the size
#asahi-dev · 2023-04-16 10:34
marcanwait sec, sram first
#asahi-dev · 2023-04-16 10:33
marcanjannau: you're right, it's broken :/
#asahi-dev · 2023-04-16 10:21
jannauprobe succeeds but it looks like no packets arrive
#asahi-dev · 2023-04-16 10:17
jannaudriver core complains about failing to create a device link to the smc gpio but that appears also with 12.3 and working mtp
#asahi-dev · 2023-04-16 10:16
jannaumarcan: did you test dockchannel/mtp with 13.3? it's broken on the j493. one obvious problem is that the sram requested by rtkit is 2 pages further down. but even after adjusting the sram size in the devicetree it is still broken without error logged
#asahi-dev · 2023-04-16 09:57
marcanbut it's definitely broken
#asahi-dev · 2023-04-16 09:57
marcanI suspect the clock shutdown might take a while or there is some other timing nuance that makes it work for my usual kernel builds, and also it works for me the first time on my repro kernel
#asahi-dev · 2023-04-16 09:55
marcanpovik: https://github.com/AsahiLinux/linux/commit/93065f7023fbe738d733b4c5a96f87c653301c81 (in that branch because lazy)
#asahi-dev · 2023-04-16 09:24
marcanand it's just broken, it pulls the clock before switching off so it never had a chance
#asahi-dev · 2023-04-16 09:24
marcankettenis: it's a logic issue
#asahi-dev · 2023-04-16 09:24
marcanpovik: we are disabling the MCA clocks before muting the codec
#asahi-dev · 2023-04-16 09:04
kettenisit is not clear to me what bits in the MCA actually turn on the SCLK
#asahi-dev · 2023-04-16 09:03
kettenisotherwise you loose i2c access
#asahi-dev · 2023-04-16 09:03
kettenisthe cs42l83 is a bit quirky and needs to have the SCLK running before switching away from the internal oscillator
#asahi-dev · 2023-04-16 08:58
marcangoing to try to fix it
#asahi-dev · 2023-04-16 08:58
marcanand it is related to clocking and clock switching
#asahi-dev · 2023-04-16 08:57
marcanpovik: reproduced the cs42l83 issue that altdistros are hitting. it clearly has to do something with kernel config, timing, or something like that.
#asahi-dev · 2023-04-16 08:22
kettenisthanks
#asahi-dev · 2023-04-16 08:19
marcanfixed
#asahi-dev · 2023-04-16 08:19
marcangood catch
#asahi-dev · 2023-04-16 08:18
kettenisto make sure the ethernet address on j474 is populated
#asahi-dev · 2023-04-16 08:17
kettenishttps://gist.github.com/kettenis/319a08f6219d6755d16cf81c5182f719
#asahi-dev · 2023-04-16 08:17
marcan*ADT+PMGR
#asahi-dev · 2023-04-16 08:17
marcanjannau: confirmed on j493 ADT
#asahi-dev · 2023-04-16 08:14
marcannor uses 200m, everything else uses 24
#asahi-dev · 2023-04-16 08:14
marcanjannau: it should be 24m, that's cargo cult copypasta from the nor spi
#asahi-dev · 2023-04-16 08:12
marcansame with the distro scripts that do updates
#asahi-dev · 2023-04-16 08:11
marcankettenis: yup
#asahi-dev · 2023-04-16 08:07
jannauChaosPrincess: have you checked if the 200m clock is correct for the touchbar spi? according to macos logs it uses a 24 MHz clock on j493
#asahi-dev · 2023-04-16 08:05
kettenisand then cat that to the back of the boot.bin after unpacking the zip file on the ESP?
#asahi-dev · 2023-04-16 08:04
kettenismarcan: so your idea was for the installer to build a separate cpio with selected firmware for u-boot?
#asahi-dev · 2023-04-16 07:55
marcanpushed the SPI DTs to t602x/bringup
#asahi-dev · 2023-04-16 07:50
kettenispushed to the t6020 branch
#asahi-dev · 2023-04-16 07:50
kettenisso deleting the initrd properties there is good enough
#asahi-dev · 2023-04-16 07:50
kettenisfigured out that the board function to fixup the device tree runs before just before u-boot adds the initrd properties for an initrd it loaded itself
#asahi-dev · 2023-04-16 07:49
ChaosPrincessWell, thats just me being bad at writing drivers :P i since got told that i should move it to the parent dt node, and rip out all the manual code and it will be done automatically
#asahi-dev · 2023-04-16 07:48
jannauno, I see it's manually handled in the driver

plus ›