2021-12-12
00:08c10l has joined #asahi-dev
00:11riker77 has joined #asahi-dev
00:37slicey has joined #asahi-dev
01:44marcansven: also sent you a couple housekeeping DT patches (they apply on asahi-soc/dt on top of your watchdog patch) :)
02:05riker77_ has joined #asahi-dev
02:08riker77 has quit [Ping timeout: 480 seconds]
02:08riker77_ is now known as riker77
03:11phiologe has joined #asahi-dev
03:13PhilippvK has quit [Ping timeout: 480 seconds]
05:35Dcow_ has quit [Read error: Connection reset by peer]
05:36Dcow has joined #asahi-dev
06:00marcanfyi, this fixes the capslock thing too: https://mrcn.st/p/KWBR4tV8 (I think I mentioned that before but I just tried it)
06:22slicey has quit [Quit: zzz]
07:04marcansigh, I screwed up the emailing on the sdhci series v2 again... (first time I forgot a Cc, second time I screwed up the cover letter subject)
07:06marcanmaz: I still need to review your PMU stuff and I think you need to review my AICv2 stuff :p
07:17Glanzmann has joined #asahi-dev
07:18jannaumarcan: yes, I tried using cs_inactive yesterday and https://github.com/jannau/linux/commit/f3e786d16121516 works well with the SPI core DT change
07:21chadmed has joined #asahi-dev
09:25the_lanetly_052___ has joined #asahi-dev
10:13thunfisch has quit [Read error: No route to host]
11:04thunfisch has joined #asahi-dev
11:13mazmarcan: yeah, that's on my long list of things to do. let me shake off this hangover first! ;-)
11:18bps2 has joined #asahi-dev
11:20bps3 has joined #asahi-dev
11:24timokrgr has quit [Quit: User left the chat]
11:26bps2 has quit [Ping timeout: 480 seconds]
11:27timokrgr has joined #asahi-dev
11:51aleasto has joined #asahi-dev
12:37bps3 has quit [Ping timeout: 480 seconds]
13:06Glanzmann has quit [Quit: leaving]
13:08m6wiq has joined #asahi-dev
13:14Glanzmann has joined #asahi-dev
13:17m6wiq has quit [Quit: Leaving]
13:17m6wiq has joined #asahi-dev
13:30m6wiq has quit [Quit: Leaving]
13:51VinDuv has joined #asahi-dev
14:18kumoko has joined #asahi-dev
14:26alyssa has joined #asahi-dev
14:30Glanzmannalyssa: Long time no see. If you have a dcp driver for me to try on mini or macbook air, let me know. I'm excited to try your new tree.
14:32alyssawaiting on marcan to reverse the GPU register/firmware stuff before either of us can tackle GPU kernel, and as for the latter?
14:32Glanzmannalyssa: Btw, we noticed that on 'simple drm' firefox does not work with the xorg modsetting driver, but it does with the fbdev driver, any idea why? (does not work means the gui doesn't come up. With konquerer the gui comes up but if you browse to the website the page display array stays empty).
14:33Glanzmannalyssa: I'm also waiting for that. He promised GPU accelerated desktop within one year. He still has plenty of time. :-)
14:35marcanseriously though, my current goal is to tie up all these loose ends by EOY, so that *next* I can get working on the GPU kernel driver
14:35marcanalso at least we have feature parity on the new laptops, that's gotta be worth something right? :>
14:35j`eymarcan: for wifi, you want a real smc driver, or ok with just doing the gpio poke via m1n1?
14:36marcanj`ey: we need a real SMC driver anyway, I'll be doing that once I take care of the wifi firmware situation
14:37alyssaOK so why does linux build so slowly on my chromebook (targetting the M1) but so fast on my M1 (targetting the Chromebook)
14:37marcanyes, I was going to do that today but alas... kinda crashed this afternoon since I had to wake up early for something
14:38marcanalso, tbh, just running KDE on the M1 Pro MBP with the keyboard/touchpad patches feels silly, as in silly how well it works on a damn framebuffer
14:41alyssa(That would change with ATCPHY nonsense taken care of to get displayport on the type-C ports..)
14:42marcanI normally copy and paste from subject to end of cover letter when re-spinning the .patch files, but something went horribly wrong
14:43bps3 has joined #asahi-dev
14:44jannauj`ey: dart-t6000 and apple-dwc3 reset quirk. the latter semi-hard requirement for adding the usb-c ports to the dts
14:45j`eyoh right, we still need a reply from robin on https://lore.kernel.org/linux-arm-kernel/20211120031343.88034-1-marcan@marcan.st/#t
14:48kumoko has quit [Quit: Leaving]
14:50the_lanetly_052__ has joined #asahi-dev
14:56the_lanetly_052___ has quit [Ping timeout: 480 seconds]
15:06alyssald: drivers/gpu/drm/bridge/display-connector.o:(.rodata+0x68): undefined reference to `drm_atomic_helper_bridge_duplicate_state'
15:22Glanzmannalyssa: The DCP driver can also do screen rotation, run firefox and does not burn the lid down when closed.
15:24Glanzmannalyssa: Without DCP you can not turn the screen off as a result, when the lid is closed it gets hot as hell.
15:32Glanzmannjannau: I worked the whole day with the air with your latest patchset, it works really well, no caps lock hangs, I was able to switch meta and alt and the touchpad also works great (no random jumps, when I type).
15:43alyssaNeeded to backport changes from pci.c to apple-ans.c b84ba30b6c7a ("block: remove the gendisk argument to blk_execute_rq")
15:44alyssaGlanzmann: er, does my DCP driver turn the screen off when the lid closed? I assume that needs a lot more driver work?
15:49matthewayers[m]Darn :/
15:50matthewayers[m]Ahh gotcha
16:07kumoko has joined #asahi-dev
16:07kumoko has quit [Remote host closed the connection]
16:13GlanzmannToday I left my macbook air 3 hours with lid closed when I opened it up the handrest was pretty warm.
16:15Glanzmannpovik: You can put it in your config and run make olddefconfig, kernel infrastructure does take care of the rest, doesn't it?
16:34kettenisalyssa: the asahi branch in https://github.com/AsahiLinux/linux/ now has all the diffs that marcan deems (close to) upstreamable
16:44Glanzmannalyssa / povik: Which branch in https://github.com/povik/linux for the audi jack thing?
16:45Glanzmannalyssa: I know we're not supposed to use it or talk about it, but did you fix wifi and can you tell me what the new names for the firmware are?
16:48alyssapovik: I'm attempting to rebase yours on linux-next and add back the few extra things it's missing compared to my old branch
16:51alyssaoh, but I probably need to update my device tree bindings for DCP to specify the appropriate domains, duh.
16:53bps2 has joined #asahi-dev
16:55matthewayers[m]Yeah, I’m waiting until my final exams are over to really dive into this stuff on my own machine
16:56alyssaapple-pmgr-pwrstate 23b700000 power-manager:power-controller@2c0 failed to add parent domain -22
16:59bps3 has quit [Ping timeout: 480 seconds]
17:18Glanzmannpovik: I just tried to compile you tree, so what I did is the following: I extracted your commits, than I took v5.16-rc4, applied the tree from jannau and than applied your patches (all but 562e8c388a6976ef472d17cda7b252c1bca9dccd bceause it was already in I think). Than I set the kernel options, but everytime I run olddefconfig all of your kernel options (with the exception of
17:25Glanzmannpovik: When I do a 'git grep CONFIG_APPLE_ADMAC', I get only one hit (drivers/dma/Makefile:obj-$(CONFIG_APPLE_ADMAC) += apple-admac.o) but it doesn't seem to be in any kernel config file, how can that work?
17:31povikGlanzmann: i think you can look up dependencies in make menuconfig, searching by option name
17:33sveni think https://github.com/AsahiLinux/linux/blob/fd7c0ced9b5e58028c66dde6cb54fa61a19283b9/drivers/soc/apple/rtkit.c is the latest rtkit code i have
17:34svenhttps://github.com/AsahiLinux/linux/blob/fd7c0ced9b5e58028c66dde6cb54fa61a19283b9/drivers/soc/apple/rtkit.c#L579
17:38alyssaapple mbox was changed substantially between mainline and the old version I had, maybe that was implicated
17:47Glanzmannpovik: I selected every option, but I can't select this one: CONFIG_COMMON_CLK_APPLE_NCO=y - It does now show up in th menu, see screnshot: Are you compiling using a cross compiler or native? - https://ab34.de/u/screenshot-t490-2021-12-12-18_47_40.png
17:51Glanzmannj`ey / povik: From my point of view all dependencies are met: https://pbot.rmdir.de/u/zAdl2VXqxon4fpmABoVsbA
17:53Glanzmannpovik: I'm cross compiling and I'm invoking it like that. But let me try to set ARCH_APPLE and see if the options show up, but then there is probably a mistake in the dependencies.
18:00Glanzmannpovik: No issue, I just had to comment out one line: https://pbot.rmdir.de/Z0PMPqRBpNeBPHGaDcaKnw
18:01aleasto has quit [Quit: Konversation terminated!]
18:03Glanzmannpovik: It booted up, started X and I think it crashed but it could also mean that it deselected more stuff in the config and I just don't have any device drivers for usb and network
18:05aleasto has joined #asahi-dev
18:05aleasto has quit []
18:06Glanzmannpovik: Do you have a kernel and dtb with nvme and network in it, than I can try to boot your binary blob.
18:08slicey has joined #asahi-dev
18:11bps2 has quit [Ping timeout: 480 seconds]
18:13aleasto has joined #asahi-dev
18:14the_lanetly_052___ has joined #asahi-dev
18:15bps2 has joined #asahi-dev
18:16the_lanetly_052__ has quit [Read error: Connection reset by peer]
18:44bps2 has quit [Ping timeout: 480 seconds]
18:47the_lanetly_052___ has quit [Ping timeout: 480 seconds]
18:52povik- make sure you m1n1 has https://github.com/AsahiLinux/m1n1/commit/6d9bc7fa8f94ac896ae5f26eba859268e9e68e16
18:55GlanzmannX does not come up, console does not come up but I have network card and log in via ssh.
19:08jannauI found the 3rd driver for the raw events from the touchpad: drivers/hid/hid-magicmouse.c
19:11jannaulinux has 3 distinct drivers for the touchpad events. applespi (used by corellium), kettenis found bcm5974 (input device), hid-magicmouse is convenient since it is already hid
19:23bps2 has joined #asahi-dev
19:36alyssa has left #asahi-dev [#asahi-dev]
19:39bps2 has quit [Ping timeout: 480 seconds]
19:46bps2 has joined #asahi-dev
19:52unrelentingtechkettenis: maybe the same hardware on the actual touch handling side but the external "magic" devices do their own processing so the packets are quite different. touches on magic already have IDs assigned
19:53unrelentingtechjannau: yeah, applespi authors copy-pasted pieces of bcm5974 instead of making their driver a HID transport for bcm5974 to run on
19:56unrelentingtechthe interesting bit of "documentation" in applespi is the models' sizes https://github.com/torvalds/linux/blob/90d9fbc16b691403a80a119d7094528721c03279/drivers/input/keyboard/applespi.c#L509-L523
19:57unrelentingtechand how they pull the model number from the 107th byte of what they described as "touchpad_info_protocol with 105 unknown bytes" but really is the HID descriptor
19:58unrelentingtechon the 2015 MBP (the one with both USB and SPI) the descriptor literally is the exact same over USB and SPI
19:58unrelentingtechand the "model number" in that byte is 3, which makes sense, it's the previous one to the one applespi started with (4)
20:01unrelentingtechso with my WIP FreeBSD SPI-apple-HID driver (for Intel Macs) I did this https://github.com/DankBSD/base/blob/13f7569173ece71578c4c4e7ffc0b21597352cf2/sys/dev/hid/bcm5974.c#L349-L384 - the transport extracts that byte and presents it as the HID version for our bcm5974 to match on..
20:03unrelentingtechoh btw that byte in the decoded HID descriptor is part of: '0x96, 0xDF, 0x03, // Report Count (991)' ← the 0x03 here. that's the report count for the vendor-defined collection
20:08jannauunrelentingtech: hid-magicmouse works out of the box with my WIP SPI HID transport driver
20:09unrelentingtechas trackpad2?
20:10unrelentingtechhm yeah, looks like they use INPUT_MT_TRACK for trackpad2 (only)
20:12unrelentingtechnot sure how any of this though https://github.com/torvalds/linux/blob/90d9fbc16b691403a80a119d7094528721c03279/drivers/hid/hid-magicmouse.c#L222-L232 decodes the same struct as https://github.com/torvalds/linux/blob/90d9fbc16b691403a80a119d7094528721c03279/drivers/input/mouse/bcm5974.c#L220-L234
20:13unrelentingtechah well the x,y look right, they do decode a 16-bit number there
20:13unrelentingtechbut the further down things in magicmouse just use 1-byte values, while the bcm5974 struct is all le16
20:14unrelentingtechkettenis: cool, so it's the same "model 6" applespi already knows about from /* MBP13,3 MBP14,3 */
20:15yuyichao has joined #asahi-dev
20:18unrelentingtechwait wh.. what are they doing in that magic trackpad2 code with `tdata[1]`. why is that byte in both X and Y o_0
20:22unrelentingtechwait are they getting the same result as ` c->y.min + c->y.max - raw2int(f->abs_y)` from bcm5974 with.. this
20:24povikGlanzmann: pushed DTs with added jack codec across all M1 devices, it's in asahi-sound, so if you get it compiled, you can try that on the air
20:27GlanzmannBtw. I have now another problem with my mini. I updated it to macos 12.1. And now the mini does not produce an output on my eizo or hdmi grabber. But I can chainload using proxy and boot linux using proxy. If I boot macos by pressing the poewr button long, no issue. I tried dozens of power cycles and reinstalled m1n1 twice. I also put my self compiled m1n1. Any ideas?
20:28Glanzmannj`ey: I see, what did you do? Did you downgrade the 'm1n1' Linux 2.5 GB partition to an older macos version?
20:34Glanzmannj`ey: Good idea, I'll try this right now. Btw. do you know how you change the resolution using dcp.py? Alyssa once told me, but I probably no longer have the code.
20:40Glanzmannsven: I once accidently deleted my 1tr partition and had to survive the mac using a second mac, does that maybe pull the trick?
20:53Glanzmannsven: I did the following. I deleted the 2.5 GB stub partion, ran the installer again and installed macos 11.4 (first option) after that I have a visual again on the mini.
20:57jmr2 has joined #asahi-dev
20:57jmr2sven: just trying to understand that last bit. The wiki says "iBoot2 (per-OS copy) loads auxiliary CPU engine firmwares from OS APFS Preboot partition".
20:59aleasto has quit [Quit: Konversation terminated!]
21:00aleasto has joined #asahi-dev
21:00jmr2I'm wondering whether the NOR flash could be backed-up and restored, but I'd bet that their online authentication would foil that.
21:00aleasto has quit [Remote host closed the connection]
21:02svenit also doesn't really matter to us. it probably even helps since it means that ANS and SEP will be backward-compatible
21:02j`eysven: https://support.apple.com/en-gb/guide/security/secac71d5623/web "To help prevent replay of any previous LocalPolicy, LLB must look up a nonce from the Secure Enclave–attached Secure Storage Component."
21:12Glanzmann has quit [Quit: leaving]
21:19bps2 has quit [Remote host closed the connection]
21:28x56 has quit [Quit: Ծ-Ծ]
21:36jmr2 has quit [Remote host closed the connection]
21:56x56 has joined #asahi-dev
22:12bpye has joined #asahi-dev
22:23bpye has quit [Ping timeout: 480 seconds]
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
23:38marcanI think SEP firmware is in the iSCPreboot partition though, or at least a copy; not sure if it's in NOR too or not
23:40slicey has quit [Quit: zzz]
23:41marcanif you have 12.0+ SFR and an older partition, then on the Mini display will begin to work when iBoot2 boots
23:56akemin_dayo has quit [Remote host closed the connection]
23:58akemin_dayo has joined #asahi-dev
23:58blasty has quit [Remote host closed the connection]
23:58blasty has joined #asahi-dev