#
…

2021-06-13

00:10yuyichao has joined #asahi
00:12eta has joined #asahi
01:29riker77_ has joined #asahi
01:32riker77 has quit [Ping timeout: 480 seconds]
01:32riker77_ is now known as riker77
02:05phiologe has joined #asahi
02:09PhilippvK has quit [Ping timeout: 480 seconds]
02:47peaklight has joined #asahi
02:48klltkr has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
02:56TheJollyRoger has joined #asahi
03:03PhilippvK has joined #asahi
03:06phiologe has quit [Ping timeout: 480 seconds]
04:02marvin24_ has joined #asahi
04:06marvin24 has quit [Ping timeout: 480 seconds]
04:17skipwich has joined #asahi
05:42VinDuv has joined #asahi
07:22kettenis_ has joined #asahi
07:24kettenis has quit [Ping timeout: 480 seconds]
07:45Andalu30 has joined #asahi
08:19frotiz has joined #asahi
08:20frotiz has quit [Remote host closed the connection]
08:21frotiz has joined #asahi
08:22frotiz has quit []
08:39aleasto has joined #asahi
10:03adamcstephens is now known as Guest1962
10:03adamcstephens has joined #asahi
10:07Guest1962 has quit [Ping timeout: 480 seconds]
10:37gladiac is now known as Guest1965
10:37Guest1965 has quit [Read error: Connection reset by peer]
10:37gladiac has joined #asahi
11:21aleasto has quit [Ping timeout: 480 seconds]
11:23marvin24_ is now known as marvin24
11:45d18n has joined #asahi
11:56yuyichao has quit [Ping timeout: 480 seconds]
12:04aleasto has joined #asahi
12:28yuyichao has joined #asahi
12:39klltkr has joined #asahi
12:39d18n has quit [Read error: Connection reset by peer]
14:46klltkr has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
15:22bloomIs it just me or is iBoot's choice of boot partition on a dual boot system completely random
15:26Emantorwdym? AFAICS iBoot bundles the partition & kernel together.
15:27bloomI have two partitions, 1 with macOS 1 with m1n1
15:27bloomWhen I hit power on, which boots? macOS or m1n1?
15:28EmantorFor me, it always boots m1n1.
15:29EmantorThe primary boot system should be configurable from 1TR.
15:30EmantorLooks like the information is stored in the nvram as "boot-volume", not sure if thats the variable used by iBoot to device what to boot, but sounds like it.
15:31Andalu30 has quit [Ping timeout: 480 seconds]
15:32svenmine also always boots m1n1
15:32bloomrelated - order of the partitions in 1tr
15:32svenjust sometimes with the annoying startup sound and sometimes without
15:39EmantorInterestingly I can't seem to finde the first two UUIDs in the colon separated boot-volumes list.
15:41EmantorBut the last one points to the "Linux" partition, which in turn had the kernel replaced by m1n1.
15:44Emantorsven: There is a "StartupMute
15:44Emantor" variable in nvram
15:45EmantorI turned it off in macOS and haven't heard the chime since, my nvram value is %01
15:47EmantorYep, setting this to %00 gets the chime back. So you'll want to run "nvram StartupMute=%01" in 1TR to disable it.
16:02svenoh.. that sounds useful.
16:03svennow i just have to wait until that chime annoys me enough to connect a keyboard/mouse/screen to the mac mini again and fix that :>
16:23yuyichao has quit [Ping timeout: 480 seconds]
16:45svenjannau: you played with the usb pd chip a little bit, didn't you? i rebased my old i2c patches (https://github.com/AsahiLinux/linux/commits/i2c/dev) and hacked the interrupt but the bits i see in IntEvent are strange
16:46svenhave you mmiotraced those IntEvent registers while mac os was running?
16:53marvin24_ has joined #asahi
16:56marvin24 has quit [Ping timeout: 480 seconds]
16:58jannausven: didn't look at the register values, let me capture some traces
16:59svenok. would be interesting to see the whole communication with that chip i think
16:59sventhey might've redefined the meaning of some of the irq bits :/
17:01marcanbloom: order of partitions in 1TR does seem to be random
17:02marcanbut you can certainly set the default in 1TR
17:11jannausven: https://gist.github.com/jannau/11bd30b329a9d5c19630e6814a8b587d, irq doesn't seem to be correctly disabled though although it should
17:13jannauthe reads include the byte with the length
17:15svenI2C[63]: R[0x14].10 0x0b 0x00 0x05 0x00 0x00 0x00 0x00 0x00 0x00 0x00
17:15sveni'm confused by that line
17:16svenso it claims a length of 11 but then only sends 9 bytes of data?
17:19jannauI might be confused
17:19svenoh, wait. you parse the length byte?
17:19svenso the first byte of the actual reply is 0x0b?
17:20jannauyes, I parse the length, so first byte is the first data byte. sorry
17:21svenok. so apple added more interrupts it seems
17:22jannauI wonder why IntEvent1 is 10 byte and IntMask1 is only 9
17:23Andalu30 has joined #asahi
17:24jannauor it partially respects the smbus read length. The protocol in the TRM is not smbus
17:26jannautps65987 trm has 11 byte wide interrupt registers https://www.ti.com/lit/pdf/slvubh2
17:27svenohh... nice find!
17:27Andalu30 has quit []
17:35jannaumy i2c tracer might be broken, in m1n1 I read 11 bytes from IntEvent 1/2
17:39jannauTPS65987DDK might make sense since it it for USB4
17:41svenyeah, they might've used that as a base and added all their custom stuff on top
17:57jannausigh, writing to IntEvent1 doesn't seem to stick
17:59jannaumaybe, it doesn't like the smbus writes
18:00jannauerr, the writes are fine.
18:00bloomthat's write
19:17jannauit looks like apple broke the protocol for certain registers
19:19jannauor more like they have a different understanding of the read lengths than the controller
19:22jannauso it requests 9 bytes from IntEvent1 but the controller reports it has 11 bytes
19:22aleasto has quit [Remote host closed the connection]
19:22jannauso the 0x0b was length byte
19:35klltkr has joined #asahi
19:41sventhat's fine though. the host asks for N bytes and the device just replies that it can actually send up to N+M bytes
19:58jannauthey broken the protocol for writing though. the length field is included in the length
19:58jannauclearing IntMask1 works now
19:59VinDuv has quit [Quit: Leaving.]
19:59svenuh, maybe i'm confused but isn't that how it's supposed to work?
20:03svener wait. yeah, i'm confused.
20:03sveni think.
20:11jannauthe kernel does what the documentation says. write 'len' to data[0] and then append len bytes of payload
20:12jannaumac os writes len+1 to data[0]
20:12svenyeah, and then it always write 65 bytes :D
20:12svenstill need to send a patch to fix that
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:01yrlf has joined #asahi
22:05klltkr has quit [Ping timeout: 480 seconds]
22:47Raqbit has quit [Ping timeout: 480 seconds]
22:51Raqbit has joined #asahi
23:00yuyichao has joined #asahi
23:13klltkr has joined #asahi
23:32klltkr has quit [Ping timeout: 480 seconds]
23:41kettenis has joined #asahi
23:43kettenis_ has quit [Ping timeout: 480 seconds]
23:53tomtastic has quit [Ping timeout: 480 seconds]
…