2021-12-19
00:11MajorBiscuit has quit [Quit: WeeChat 3.3]
00:24nabaiste^ has quit [Ping timeout: 480 seconds]
01:06nabaiste^ has joined #asahi-dev
02:15Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:16Dcow has joined #asahi-dev
02:36Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:53riker77_ has joined #asahi-dev
02:58riker77 has quit [Ping timeout: 480 seconds]
02:58riker77_ is now known as riker77
03:41kov has quit [Quit: Coyote finally caught me]
04:02phiologe has quit [Ping timeout: 480 seconds]
04:53amarioguy has quit [Ping timeout: 480 seconds]
04:59nabaiste^ has quit [Ping timeout: 480 seconds]
06:15Glanzmann has quit [Quit: EOF]
06:42chadmed has joined #asahi-dev
07:48amarioguy has joined #asahi-dev
08:08amarioguy has quit [Ping timeout: 480 seconds]
08:59MajorBiscuit has joined #asahi-dev
09:16kov has joined #asahi-dev
09:26somdkls^ has joined #asahi-dev
09:36chadmed has quit [Remote host closed the connection]
09:44chadmed has joined #asahi-dev
10:05MajorBiscuit has quit [Ping timeout: 480 seconds]
10:25aleasto has joined #asahi-dev
10:53gabuscus has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
10:54gabuscus has joined #asahi-dev
11:04amarioguy has joined #asahi-dev
11:16___nick___ has joined #asahi-dev
11:16___nick___ has quit []
11:18___nick___ has joined #asahi-dev
11:24MajorBiscuit has joined #asahi-dev
11:24amarioguy has quit [Ping timeout: 480 seconds]
12:16Dcow has joined #asahi-dev
12:25m42uko has quit [Quit: Leaving.]
12:25m42uko has joined #asahi-dev
12:38Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:46MajorBiscuit has quit [Ping timeout: 480 seconds]
12:47Dcow has joined #asahi-dev
12:53MajorBiscuit has joined #asahi-dev
12:59Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:05aleasto has quit [Remote host closed the connection]
13:15MajorBiscuit has quit [Ping timeout: 480 seconds]
13:16MajorBiscuit has joined #asahi-dev
13:20somdkls^ has quit [Remote host closed the connection]
13:21cynthia has joined #asahi-dev
13:21amarioguy has joined #asahi-dev
13:53chadmed has quit [Remote host closed the connection]
13:56j`eymarcan: heheehe https://lore.kernel.org/lkml/20211219132442.4080-1-wsa+renesas@sang-engineering.com/T/#m379aeca99fb8ca92184696d28dbb28e6c481396e
14:00svenhrm, macOS seems to use the flush command as well. I wonder why it isn’t slowed as much as Linux is
14:22marcanit seems to crash in a few ways, and I ended up throwing a crashed memory image into ghidra to try to trace what happened, and I ended up with "ROM function called panic()" :/
14:30j`eymarcan: I have no ideas (apart from tracing macOS more, maybe some extra SMC/gpio / magic pokes), but I have faith you'll figure it out!
14:40marcanit also has the proper TCM size computation algorithm (which I'd already guessed but I wasn't sure about the block size flag, this clarifies it)
14:45egavinc has joined #asahi-dev
14:46svenalright, i think i'm mostly happy with nvme/dev now. there's still that weird flush slowdown but other than that i haven't been able to make it panic anymore
14:47svennot really. since yesterday i've just fixed a few bugs w.r.t interactions with the linux nvme subsystem
15:18kettenisso it seems I can get away with not starting syslog and feeding crashlog and ioreport 0 as the address when they ask for a buffer
15:29Dcow has joined #asahi-dev
15:37svenmarcan: alright, i think you can replace the old driver in asahi with what's in nvme/dev if that branch still works on t6k
15:42sven(knowing my luck that one kernel panics for everyone else while it works just fine for me :D)
15:42tpw_ruleskettenis: i had a couple other things i think need to be fixed in the rtkit code. this was my patch for that and the nvme shutdown stuff: https://pastebin.com/Vfn4Exw1
15:49leah2 has quit [Remote host closed the connection]
15:51leah2 has joined #asahi-dev
16:04svenso if that nvme driver works and the rtkit library also works for SMC I think everything should be ready to submit a RFC in January
16:27tpw_rulesjust to confirm, there are no objections to releasing a short guide on how to install nixos standalone with u-boot?
16:54egavinc has quit [Quit: Leaving]
17:11chengsun has joined #asahi-dev
17:50tpw_ruleskettenis: i tested your version out, and it looks like when rtkit starts again, it asks for a 0 length buffer on endpoint 1, which causes the linux kernel to try to allocate a 0 length dma buffer and get upset. not sure if that's the kernel's problem but rtkit asking for such a buffer seems suspicious
17:54Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:55tpw_rulesi think that's what's happening. rtkit is somehow remembering that you sent it a 0 length buffer in u-boot and asking for that again next time
17:56tpw_rulesnow the kernel should probably have better parameter validation, but rtkit asking for 0 length buffers seems like it will easily create future problems
18:02jannauupdated keyboard / trackpad driver pushed to https://github.com/jannau/linux/tree/dev/spi-hid-apple (rebased onto current linux-asahi)
18:04jannauonly user visible changes should be the correct mapping of the function keys hand hopefully a correct contry code for the keyboard
18:12jannauit has requests for device and interface information. sorry for the mess with magic numbers but the defines made harder to think how HID is mapped here
18:19Dcow has joined #asahi-dev
18:22tpw_rulesalright, i patched the kernel to handle the zero length buffer request and it seems that only happens on the crashlog endpoint. the syslog and ioreporting endpoints request the same length as before and seem to work properly, including shutdown. so maybe u-boot's behavior is valid and this case should be handled in apple_rtkit_common_rx_get_buffer. but i'm not sure what will happen if rtkit crashes now
18:31Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:33Dcow has joined #asahi-dev
18:43marcanI should time how long it takes me to clean up this patchset into something sane... it's not going to be easy, heh
19:57jannaumarcan: trivial t600x dts fix after updating asahi with nvme/dev: https://github.com/jannau/linux/commit/9a225d0140c39de8198d1a25bc0c01d13ef1e6ef
20:00svenI’m still not 100% about the nvme compatibles. I think the ADT identifies it as ANS2 but ioreg calls it ans3
20:01Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:01unrelentingtechjannau: ooh nice find on the vendor/product ids \o/ btw SPIHID_SET_LEDS looks unused
20:07jannauunrelentingtech: yes, still not feature complete. I haven't even checked if supports setting keyboard backlight
20:10unrelentingtechkeyboard LEDs are just a HID write
20:10unrelentingtechI have it like this: https://github.com/DankBSD/base/blob/f09c439be17a3972dc42be4aacb6303ac9e58df1/sys/dev/atopcase/atopcase.h#L42
20:11gladiac is now known as Guest8870
20:11gladiac has joined #asahi-dev
20:12unrelentingtechI can't test backlight in my driver because the 2015 MBP I have still does it via the SMC :D
20:16unrelentingtechapplespi does have backlight, if my understanding of these magic bytes is right it's also a "write" but to the 0xB0 device
20:16jannauI'm not sure it's supported on M1 either, there is a pwm driver for it: https://github.com/AsahiLinux/linux/pull/5
20:17Guest8870 has quit [Ping timeout: 480 seconds]
20:18Dcow has joined #asahi-dev
20:19unrelentingtechwow that's odd. they've had it on SPI since 2016 and now they moved it to a more "raw" interface for.. reasons?? even though the SPI-speaking microcontroller in the topcase basically stayed the same
20:22unrelentingtechthat's in the same byte as "1 for keyboard, 2 for trackpad" so they kinda make sense as "virtual devices". 0xD0 where "d" is for "device info" and 0xB0 where "b" is for "backlight"
20:23unrelentingtechwell, backlight does use the keyboard device on the outer message level
21:05MajorBiscuit has quit [Quit: WeeChat 3.3]
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:57Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:59Dcow has joined #asahi-dev
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
23:44el_mugroso has joined #asahi-dev
23:47el_mugroso has quit []