#
…

2022-08-16

04:14chadmed has quit [Quit: Konversation terminated!]
07:13amwGlanzmann: I did the re-install and it created a small FAT "EFI - UEFI" partition with uboot, m1n1 and the firmware.tar in it
07:13amwIt left the rest of the free space un-allocated - so I have added another 200GB partition to my Linux boot!
09:17pjakobsson has quit [Ping timeout: 480 seconds]
09:25pjakobsson has joined #asahi-alt
09:53Glanzmannamw: I don't understand. Can you paste 'parted print free'?
09:53Glanzmannamw: Do you need help to fix something, or does everything work?
10:25pjakobsson has quit [Ping timeout: 480 seconds]
11:48pjakobsson has joined #asahi-alt
13:04mpsis there a way to apply plain diff in git tree, someone posted me diff for config of kernel as plain diff
13:05j`eyusing `patch`?
13:05mpsj`ey: didn't work
13:06mpslooks strange to me
13:08j`eyoh that style, never tried with that
13:10mpsI can apply with patch diff made with 'diff -u' usually
13:14_jannau_patch should detect the format automatically. does `patch -n` work? if not the diff is probably corrupted
13:25mps_jannau_: no it doesn't work
13:26mps`patch -p1 --dry-run < ~/config-asahi.aarch64.diff` => patch: **** Only garbage was found in the patch input
13:29mpsfixed 'by hand'
13:29mpsthanks all
15:51isoriano has joined #asahi-alt
15:58Glanzmannisoriano: Can you also paste the output of dmesg for the 6.0 kernel?
17:36isoriano 3.356969] rtkit-helper 24e400000.mtp: RTKit: syslog message: afe_pwr.c:484: failed waiting on Touch reset completion event
17:36isoriano[ 3.459951] rtkit-helper 24e400000.mtp: RTKit: syslog message: bootloader.c:452: Failed to attach to AFE (-6)
17:36isoriano[ 3.459967] rtkit-helper 24e400000.mtp: RTKit: syslog message: bootloader.c:453: AFE Chip Boot Failure: No HINT_L
17:36isoriano[ 3.459974] rtkit-helper 24e400000.mtp: RTKit: syslog message: afe_pwr.c:496: AFE bootload failed
17:36isoriano[ 3.459982] rtkit-helper 24e400000.mtp: RTKit: syslog message: mac_touch_pwr_mgr.c:235: [TPM] Mac Power Manager State Machine Stopped
17:36isoriano[ 3.460017] rtkit-helper 24e400000.mtp: RTKit: syslog message: afe_transport.c:179: afe_transport_stop already stopped
17:36isoriano[ 3.460071] dockchannel-hid 24eb30000.input: Got GPIO command for bad GPIO multi-touch#167
17:36isoriano[ 3.460161] rtkit-helper 24e400000.mtp: RTKit: syslog message: afe_pwr.c:302: AFE reset request failed
17:36isoriano[ 3.470089] rtkit-helper 24e400000.mtp: RTKit: syslog message: touch.c:88: Touch Reset Ext Request: OK
17:36isoriano[ 3.475128] NET: Registered PF_QIPCRTR protocol family
17:36isoriano[ 4.203735] ieee80211 phy0: brcmf_p2p_set_firmware: failed to update device address ret -52
17:36isoriano[ 4.205673] ieee80211 phy0: brcmf_p2p_create_p2pdev: set p2p_disc error
17:36isoriano[ 4.207199] ieee80211 phy0: brcmf_cfg80211_add_iface: add iface p2p-dev-wlan0 type 10 failed: err=-52
17:36isoriano[ 4.470151] rtkit-helper 24e400000.mtp: RTKit: syslog message: afe_pwr.c:484: failed waiting on Touch reset completion event
17:36isoriano[ 4.573284] rtkit-helper 24e400000.mtp: RTKit: syslog message: bootloader.c:452: Failed to attach to AFE (-6)
17:36isoriano[ 4.573297] rtkit-helper 24e400000.mtp: RTKit: syslog message: bootloader.c:453: AFE Chip Boot Failure: No HINT_L
17:36isoriano[ 4.573311] rtkit-helper 24e400000.mtp: RTKit: syslog message: afe_pwr.c:496: AFE bootload failed
17:36isoriano[ 4.573329] rtkit-helper 24e400000.mtp: RTKit: syslog message: mac_touch_pwr_mgr.c:235: [TPM] Mac Power Manager State Machine Stopped
17:36isoriano[ 4.573343] rtkit-helper 24e400000.mtp: RTKit: syslog message: afe_transport.c:179: afe_transport_stop already stopped
17:36isoriano[ 9.500232] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
17:36isoriano[ 10.608295] dockchannel-hid 24eb30000.input: Interface multi-touch is already starting
17:36isoriano[ 11.103365] rfkill: input handler disabled
17:36isoriano[ 20.682416] rfkill: input handler enabled
17:36isoriano[ 21.102095] dockchannel-hid 24eb30000.input: Interface multi-touch is already starting
17:36isoriano[ 7232.674162] macsmc-rtkit 23e400000.smc: RTKit: syslog message: charger.cpp:1976: Not charging:400001
17:36isorianoisoriano@m2mbp-debian:~$
17:59Glanzmannisoriano: In the future, please use a paste service, such as https://tg.st/p
17:59Glanzmannisoriano: Is you trackpad and bt audio back with the kernel downgrade?
19:04Votes78 has quit [Killed (NickServ (Too many failed password attempts.))]
19:05Votes78 has joined #asahi-alt
19:19isoriano has quit [Quit: Leaving]
19:20isoriano has joined #asahi-alt
19:20isoriano has quit []
19:31isoriano has joined #asahi-alt
19:31isorianoNo. BT lists the device but you cannot connect to it. Trackpad is not working.
19:32isorianoLinux m2mbp-debian 5.19.0-asahi-00002-ga120b858ebeb #1 SMP Sat Aug 13 21:22:23 CEST 2022 aarch64 GNU/Linux
19:38j`eyisoriano: sounds like you might have the wrong device tree
19:40j`eyor some other reason for the dockchannel GPIOs not being requested
19:41j`ey[ 2.730988] rtkit-helper 24e400000.mtp: RTKit: syslog message: afe_pwr.c:484: failed waiting on Touch reset completion event
19:42isorianoIt worked initially and I was updating from time to time via @Glanzmann's script .. curl -sL https://tg.st/u/ksh | bash
19:43isorianobascially when he introduced the patch for U-Boot and kbd support ..
19:44isorianothe touchpad stopped working.
19:44isorianobut the kbd in u-boot was working ;-)
19:45j`eydoes the keyboard work in uboot still
19:49j`eyGlanzmann: how does m1n1 uboot etc work on debian?
19:54GlanzmannSame as everywhere else.
19:54j`eyGlanzmann: but do you have packages or?
19:54Glanzmannisoriano: Could you run the 'ksh' script again. I rebuild all artefacts with the 5.19 tree that asahi-dev uses.
19:55Glanzmannj`ey: No, I don't have packages. I just have a script that overwrites the to-be-chainloaded m1n1+dtb+u-boot in /boot/efi/m1n1/boot.bin
19:55Glanzmannj`ey: Deinstall all old kernels and install the latest.
19:56Glanzmannisoriano: Can you please run 'curl -sL https://tg.st/u/ksh | bash' again and reboot and see if that fixes your issues?
19:56j`eyGlanzmann: ta
19:58Glanzmannj`ey: Maybe I should build packages for m1n1. But I hope that soon Debian upstream will take care of that and I can go back to sleep. :-) I'm also afraid that everything breaks if u-boot/m1n1/dtb is not in sync with the kernel.
19:59GlanzmannSo I did not build packages, because I was afraid that someone updated m1n1 without the kernel or vice versa and as a result break their system.
20:00j`eyGlanzmann: fair enough
20:00j`eyI just wanted to check the dtb had apple,stm-reset-gpios in, and it looks like it does
20:00isorianook installed will reboot .. ran the script .. this message is intentionally, right?
20:00isorianoW: Possible missing firmware /lib/firmware/apple/tpmtfw-*.bin for built-in driver dockchannel_hid
20:01GlanzmannYes, they're normal and to be expected.
20:02isorianook, reboot now
20:02isoriano has quit [Quit: Leaving]
20:02* Glanzmannknocks on wood thrice.
20:03Glanzmannj`ey: I also throught about putting m1n1 in the kernel package, but than you can not install multiple kernels...
20:04Glanzmannj`ey: Probably not going to happen, but I think the cleanest way would be to teach our boot chain to pick the right device tree on a per kernel basis. Or just wait until the device tree settles.
20:05j`eyyeah, backwards compat is a goal.. and is usually fine
20:05isoriano has joined #asahi-alt
20:06Glanzmannisoriano: Is everything working again?
20:06isorianoNo, still does not work while the kbd does ..
20:06isorianoLinux m2mbp-debian 5.19.0-asahi-00002-g84ad91b47c9c #1 SMP Tue Aug 16 18:27:52 CEST 2022 aarch64 GNU/Linux
20:06isorianowork in uboot.
20:08Glanzmannisoriano: Can you please run 'last' and identify the kernel version that worked for you?
20:09GlanzmannThan I'll upload you the same.
20:11isorianomust have been one of the rc7 versions.
20:15GlanzmannCan you install that kernel in addition to the one you already have and pick the rc7 in grub?
20:15GlanzmannLet's see if that fixes it.
20:15GlanzmannMaybe I should buy an m2 to test these things myself.
20:20isorianorebooting
20:20isoriano has quit [Quit: Leaving]
20:23isoriano has joined #asahi-alt
20:23isorianono. not working. looks like uboot is causing the trouble.
20:24j`eyisoriano: did you have keyboard working in uboot before?
20:24isorianobecause the kbd was not working in uboot while the touchpad was
20:25j`eyor did you just update to the ubott with kb support
20:25j`eytouchpad in uboot..?
20:25isorianoone of the updates also updated uboot
20:25isorianono in Debian
20:25Glanzmannj`ey: I used the u-boot 'asahi' branch from kettenis, but switched to the asahi branch once I realized that there was keyboard support in.
20:26j`eyGlanzmann: could be worth downgrading that, and trying it out
20:31Glanzmannisoriano: Here is a u-boot without the keyboard support: https://tg.st/u/u-boot-2022-08-16.bin
20:32GlanzmannYou need to download and copy it to /boot/efi/m1n1/boot.bin
20:32GlanzmannMake a backup copy of you old boot.bin in the same directory just in case.
20:33isorianorebooting
20:33isoriano has quit [Quit: Leaving]
20:33Glanzmannj`ey: What I don't get is, I'm using the same u-boot/m1n1/kernel as asahi-dev and jannau has tested it. So I wonder what breaks the touchpad. When I was debugging the systemd issue for Linus, I also used that branch under Fedora and the keyboard and touchpad worked. Strange.
20:34GlanzmannThat was on the m2 air of a friend.
20:34j`eyyeah I'm not sure either
20:34j`ey'Failed to request GPIO apple,stm-reset-gpios' seems important
20:35isoriano has joined #asahi-alt
20:36GlanzmannI mean good, that it works for you, but shit that somehow the new u-boot breaks the touchpad under Linux.
20:36j`eyisoriano: on the newest kernel right?
20:37isorianonopes .. still 5.19rc7 .. now I would have to update to the latest kernel
20:37GlanzmannThe device tree that I packaged with the u-boot comes from the latest kernel btw.
20:37isorianoLinux m2mbp-debian 5.19.0-rc7-asahi-00002-g174f375813fe #1 SMP Wed Jul 27 10:48:38 CEST 2022 aarch64 GNU/Linux
20:37Glanzmannisoriano: Can you try the latest kernel as well? You can find it here: https://tg.st/u/k.deb
20:39isoriano has quit []
20:41isoriano has joined #asahi-alt
20:41isorianoback for good ... Linux m2mbp-debian 5.19.0-asahi-00002-g84ad91b47c9c #1 SMP Tue Aug 16 18:27:52 CEST 2022 aarch64 GNU/Linux
20:42GlanzmannAnd it works?
20:42isorianouboot no good ..
20:43j`eyI wonder if you can test the uboot from asahi/alarm
20:43isorianobtw .. one prob still exists which I did not have with Asahi is that BT is not working as well. Lists the device but cannot connect
20:44Glanzmannhmm. Did the bt work with the rc7 kernel?
20:44isorianono. not on Debian
20:45GlanzmannBut bt worked before on Debian?
20:45GlanzmannOh, okay. I never tried it myself, but there are others that report that it worked at least on m1.
20:46isorianoyeah. This is an M2 13" MBP :-)
20:46isorianoIt worked on Asahi.
20:47isorianoOk, just let me know in case you want me to test something .. I like to test :-)
20:47Glanzmannisoriano: Have you tested on Asahi/Alarm also if the u-boot with keyboard and touchpad works?
20:47Glanzmannisoriano: I mean we could test the u-boot that ships with alarm. Let me extract it for you.
20:51Glanzmannmarcan: Is there a seperate installer link for the '-dev' version?
20:53isorianoi think it is 5:52 in Japan ... he may be sleeping ..
20:53GlanzmannHopefully.
20:54Glanzmannisoriano: Can you drop me your email in a msg or via email and than I get back to you once I found the -dev u-boot?
20:55GlanzmannAh, there we go.
20:56j`eythats just uboot, not m1n1+uboot
20:56Glanzmannj`ey: Just extracted it, I'll build one.
20:59Glanzmannisoriano: Can you put https://tg.st/u/uboot-dev-2022-08-16.bin into /boot/efi/m1n1/boot.bin and make a backup copy of the old boot.bin just in case?
21:02isoriano has quit [Quit: Leaving]
21:03isoriano has joined #asahi-alt
21:03isorianoBack to the original problem .. kbd works in uboot .. touchpad does not work
21:04GlanzmannWould be strange if it would be anything different.
21:04GlanzmannBut good that we ruled that out.
21:04Glanzmannisoriano: So, do you have by any chance still alarm installed?
21:04j`eyisoriano: touchpad is expected to not work in uboot
21:05Glanzmannj`ey: I think he means that the keyboard in u-boot works, but the touchpad in linux does not.
21:05isorianomate .. when i mention touchoad not working then once it has booted :-)
21:06j`eyyes but 'kbd works in uboot .. touchpad does not work' isnt worded the best. im trying to be as clear as possible
21:06j`eykeyboard in uboot works, but neither keyboard or touchpad work in linux, right?
21:06isorianosorry .. I should be more precise!
21:06Glanzmannjannau: Do you have by any chance a m2 mbp 13" and does the touchpad work for you with the asahi-dev repository?
21:08Glanzmannisoriano: When you boot linux, and the touchpad does not work in linux, does the keyboard work?
21:09GlanzmannBecause I think if it does, that would be strange, because it is the same device, isn't it j`ey?
21:09isorianoyes sure .. i am typing via the kbd ... not an external one.
21:10GlanzmannSo things get stranger. Hmm.
21:10j`eyGlanzmann: they communicate over different endpoints, so it does seem like they have different 'devices' behind it
21:10isorianoTo be precise. While I can use the kbd in uboot, once Linux boot i cannot use the touchpad but the kbd as usual.
21:10Glanzmannj`ey: I see. So two devices, but same 'spi'.
21:11j`eyit's not spi anymore for the m2, it's this 'mtp' co-processor thing
21:11GlanzmannAh, yes, I remeber.
21:12Glanzmannisoriano: Have you still the official asahi installed so that we can rule out Debian as the culprit?
21:13isorianoNo. I would have to reinstall.
21:13j`eyit's a shame that dockchannel doesn't tell us why the GPIO request failed
21:13j`ey'Failed to request GPIO apple,afe-reset-gpios'
21:15Glanzmannj`ey: If we're lucky marcan or jannau can reproduce it on m2 mbp 13" and fix it.
21:18* Glanzmanngoes to sleep, good n8 everyone.
21:18jannauGlanzmann: yes, touchpad works with the asahi-dev repo
21:18Glanzmannjannau: Thank you for checking.
21:19j`eyI bet it's related to SMC being a module?
21:19isorianogood n8 Glanzmann
21:20isorianook. i will leave my email with glanzmann and you can let me know if there is something I can test. Thanks for your support.
21:20j`eyhm, debian should have CONFIG_APPLE_SMC
21:21Glanzmannj`ey: So, it does, but CONFIG_APPLE_SMC=y
21:21jannaudoes it have CONFIG_GPIO_MACSMC=y?
21:22Glanzmannjannau: Yes, it does.
21:22j`eyso might not be that then, I just saw an EPROBE_DEFER in the gpio code
21:23GlanzmannBut I could build isoriano a kernel with the asahi kernel config and see if that fixes it.
21:25j`eyhttps://termbin.com/eu9l this might help pinpoint the error
21:26Glanzmanncompiling.
21:26jannaucould be dtb mismatch regarding rtk-helper, that's in the aahi-dev u-boot but only in the 5.19 release kernel
21:27jannaunot sure what's exactly is tested but asahi-dev u-boot is not compatible with 5.19.0-rc7-asahi
21:28j`eyjannau: we're back on the 5.19 non-rc now
21:28Glanzmannjannau: We tested both with the rc7 and the 5.19 release kernel and the 6.0-rc.
21:29jannaudon't use th 6.0-rc1 one, that one i afaik completly untested
21:31Glanzmannjannau: Yep, I removed it. I tested in on m1 air and there it worked.
21:36isorianodownloading
21:36GlanzmannThis is the 5.19.0 without the 4k-iommu patch and the asahi config.
21:36Glanzmannjannau / j`ey: The kernels I ship for Debian still have the 4k-iommu patch, maybe that is the culprit somehow.
21:37GlanzmannThis is also something I should drop.
21:37j`eydont think it's the issue here
21:38jannaucontent of /sys/kernel/debug/gpio would be interesting
21:38isoriano has quit [Remote host closed the connection]
21:45isoriano has joined #asahi-alt
21:46isorianoOk. so I could not boot the kernel. It fails just after uboot wit a blinking cursor and then it pops up with error initramfs
21:46GlanzmannI see, than lets try j'eys patch.
21:46GlanzmannAre you still able to boot Linux?
21:47isorianoI booted .. Linux m2mbp-debian 5.19.0-asahi-00002-g84ad91b47c9c #1 SMP Tue Aug 16 18:27:52 CEST 2022 aarch64 GNU/Linux
21:47isorianowith uboot-dev
21:48isorianoand touchpad is working
21:48isorianou-boot-2022-08-16.bin
21:49isorianovmlinuz-5.19.0-asahi-00002-g84ad91b47c9c
21:49GlanzmannSo now the touchpad works for you. What I don't get is, I thought we have tried that before.
21:50isorianoAnd honestly I am astonished as well! Or did we test uboot-dev with the 5.19rc7 kernel?
21:51GlanzmannWe tested uboot-dev with 5.19.rc7
21:51GlanzmannBut we at some point tried the very same tree as uboot-dev with the 5.19 which did not work.
21:52GlanzmannSo, if you want, you can try to u-boot and see if it still works.
21:52Glanzmanncurl -sLo /boot/efi/m1n1/boot.bin https://tg.st/u/u-boot.bin
21:52GlanzmannAnd make a backup of the boot.bin, just in case.
21:54isorianorebooting
21:54isoriano has quit [Quit: Leaving]
21:59isoriano has joined #asahi-alt
22:00isorianoSo it did not work with the latest boot.bin you send (touchpad) and now it is not working anymore with the configuration that was working just before I switched boot.bin
22:00GlanzmannPerfect, than it is time or j'eys patch.
22:00j`ey(untested of course)
22:01Glanzmannisoriano: Also can you please paste /sys/kernel/debug/gpio
22:03isoriano-r--r--r-- 1 root root 0 Jan 1 1970 gpio
22:03isorianowhich uboot shall I use?
22:03j`eyisoriano: cat /sys/kernel/debug/gpio
22:06Glanzmannisoriano: Stick with the uoot-dev for now that is tested
22:06j`eyjannau: looks like the mtp gpios arent in there ^
22:07isorianook. rebooting.
22:07isoriano has quit [Quit: Leaving]
22:10isoriano has joined #asahi-alt
22:10isorianoNo change. touchpad not working.
22:10jannaushutdown gpio on 23c100000.pinctrl is missing as well
22:10Glanzmanncan you paste the ouput of 'dmesg'?
22:11jannauprobe order is different for me
22:12isorianothere you go.
22:12j`eyoh yeah, smc probes after
22:13j`ey#define EPROBE_DEFER 517
22:14jannauare CONFIG_HID_DOCKCHANNEL and CONFIG_APPLE_DOCKCHANNEL built as module?
22:15Glanzmannjannau: No, both with =y.
22:15GlanzmannRecompiling.
22:17j`eyhopefully there can be a fix that doesnt require that!
22:18jannauthat explains the probe order difference but the isue seems to be that the dockchannel driver can not deal EPROBE_DEFER for the gpios. based on the dockchannel debug mesages the gpios might have to requested earlier so that EPROBE_DEFER can be handled by deferring dockchannel probe as well
22:19GlanzmannThis is the kernel with the dockchannel options as modules.
22:19isorianodownloading
22:20isorianoand reboot
22:20isoriano has quit [Remote host closed the connection]
22:20j`eyjannau: it looks very non obvious how it could handle the probe defer
22:21j`eywait..
22:23j`eyPTR_ERR(gpio) == EPROBE_DEFER, should be PTR_ERR(gpio) == -EPROBE_DEFER ?
22:23isoriano has joined #asahi-alt
22:23isorianoVoila ... Linux m2mbp-debian 5.19.0-asahi-00002-gbceb3b08f1bc #1 SMP PREEMPT Wed Aug 17 00:16:37 CEST 2022 aarch64 GNU/Linux
22:24Glanzmannj`ey / jannau Thank you for getting to the bottom of this.
22:24j`eymarcan: https://termbin.com/86wv (woops left in the first chunk, but maybe leave it in anyway)
22:24Glanzmannj`ey: Should we try the patch?
22:25Glanzmannisoriano: Up for another round?
22:25isorianoSide effect ... my BT icon has disappeared from the toolbar
22:25isorianosure. what next?
22:25j`eyGlanzmann: well them being =m will probably mask it, so might want to rebuild them as =y?
22:26jannauj`ey: yes, good find
22:30Glanzmannisoriano: Compiling a kernel with j'eys patch and DOCHCHANNEL options set to =y and see if it fixes your touchpad issue.
22:31isorianodownloading
22:31isorianorebooting
22:32isoriano has quit [Remote host closed the connection]
22:33isoriano has joined #asahi-alt
22:35isorianobut bluetooth is not working at all anymore.
22:36isorianoNo blueman etc
22:38Glanzmannisoriano: Touchpad is working. Perfect.
22:39GlanzmannAbout the BT, that is my fault. The module is not compiled in, one second.
22:42GlanzmannThis kernel has BT module enabled.
22:43isorianodownloading
22:43isoriano has quit [Remote host closed the connection]
22:47isoriano has joined #asahi-alt
22:48isorianook. BT enabled, but does not connect to the external soundbox. ok, maybe we can check that at a later point in time.
22:49isorianomaybe the fw missing for BT?
22:49Glanzmannisoriano: Can you paste the output of 'dmesg'?
22:55GlanzmannThanks, I'll try to get bt working tomorrow for me and than we talk another time about bt.
22:55GlanzmannHave a good night sleep, I need it.
22:56isorianogood night
22:57isoriano has quit [Quit: Leaving]
23:53psykose has left #asahi-alt [#asahi-alt]
…