2023-04-11
00:00deteg1337 has joined #asahi-dev
00:08deteg1337 has quit [Ping timeout: 480 seconds]
00:15stsmwg has joined #asahi-dev
00:32deteg1337 has joined #asahi-dev
00:40deteg1337 has quit [Ping timeout: 480 seconds]
00:49deteg1337 has joined #asahi-dev
00:50hightower2 has joined #asahi-dev
00:57deteg1337 has quit [Ping timeout: 480 seconds]
01:23deteg1337 has joined #asahi-dev
01:28stsmwg has quit [Quit: Lost terminal]
01:31leah2 has quit [Ping timeout: 480 seconds]
01:32deteg1337 has quit [Ping timeout: 480 seconds]
01:41deteg1337 has joined #asahi-dev
01:49deteg1337 has quit [Ping timeout: 480 seconds]
01:49greguu has quit [Ping timeout: 480 seconds]
01:56deteg1337 has joined #asahi-dev
01:58raveling has quit [Ping timeout: 480 seconds]
02:00greguu has joined #asahi-dev
02:04leah2 has joined #asahi-dev
02:04deteg1337 has quit [Ping timeout: 480 seconds]
02:05marcanjannau: m1n1 gets the links up at least I think, so linux probably takes them down during its init (and then fails to do the right dance to bring them up again)
02:29deteg1337 has joined #asahi-dev
02:37deteg1337 has quit [Ping timeout: 480 seconds]
03:02deteg1337 has joined #asahi-dev
03:10deteg1337 has quit [Ping timeout: 480 seconds]
03:17A_L_I_C_E has quit [Read error: Connection reset by peer]
03:18A_L_I_C_E has joined #asahi-dev
03:19deteg1337 has joined #asahi-dev
03:27deteg1337 has quit [Ping timeout: 480 seconds]
03:53deteg1337 has joined #asahi-dev
04:01deteg1337 has quit [Read error: Connection reset by peer]
04:08deteg1337 has joined #asahi-dev
04:15Thsf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:16deteg1337 has quit [Ping timeout: 480 seconds]
04:26deteg1337 has joined #asahi-dev
04:26A_L_I_C_E has quit [Quit: Quit]
04:26A_L_I_C_E has joined #asahi-dev
04:34deteg1337 has quit [Ping timeout: 480 seconds]
04:50A_L_I_C_E has quit [Remote host closed the connection]
04:58deteg1337 has joined #asahi-dev
05:08deteg1337 has quit [Ping timeout: 480 seconds]
05:17deteg1337 has joined #asahi-dev
05:27deteg1337 has quit [Ping timeout: 480 seconds]
05:45dottedmagjannau: Would you like to see the more traces from that two-tile 5K monitor, or the ones I made last year are enough to understand how M1 drives it?
05:54deteg1337 has joined #asahi-dev
06:07deteg1337 has quit [Ping timeout: 480 seconds]
06:10newiz has joined #asahi-dev
06:10newiz has quit [Quit: Konversation terminated!]
06:11MajorBiscuit has joined #asahi-dev
06:18Hibyehello_ has joined #asahi-dev
06:18Hibyehello has quit [Read error: Connection reset by peer]
06:19marcanok, re pcie, more registers moved individually, so this is going to be a proper device variant now
06:21deteg1337 has joined #asahi-dev
06:24i509vcb has quit [Quit: Connection closed for inactivity]
06:31chadmed_ has quit [Remote host closed the connection]
06:33jannaudottedmag: that's a thunderbolt display? thanks but not at this time. m2* mac mini hdmi out has priority
07:04nafod has quit [Quit: Ping timeout (120 seconds)]
07:04nafod has joined #asahi-dev
07:05deteg133_ has joined #asahi-dev
07:12deteg1337 has quit [Ping timeout: 480 seconds]
07:17bps has joined #asahi-dev
07:18A_L_I_C_E has joined #asahi-dev
07:25alex_ has joined #asahi-dev
07:26alex_ has quit []
07:27nyilas has joined #asahi-dev
07:33nyilas has quit [Remote host closed the connection]
07:34nyilas has joined #asahi-dev
07:34nyilas has quit [Remote host closed the connection]
07:38nyilas has joined #asahi-dev
07:41arekm has quit [Quit: leaving]
07:42arekm has joined #asahi-dev
07:51raveling has joined #asahi-dev
08:07deteg133_ has quit [Remote host closed the connection]
08:08deteg1337 has joined #asahi-dev
08:28marcanpushed a bunch of stuff to linux/m1n1 on t602x/bringup for both, but pcie still doesn't work :/
08:46marcanok, so now really just DCP/GPU left (and wifi I guess, we'll see how bad the new chips are)
08:53nsklaus has joined #asahi-dev
09:12mkurz has quit [Ping timeout: 480 seconds]
09:14tanty has quit [Remote host closed the connection]
09:16tanty has joined #asahi-dev
09:17kettenis_marcan, jannau: regarding reserved-regions, I noticed that U-Boot complained about reserved regions with size 0
09:29kettenis_marcan: added two comments to https://github.com/AsahiLinux/linux/commit/7400cf11996a4715f65a64949db1b0cf407268a9 for things that you probably want to fix when cleaning up the linux pcie diff
09:29_jannau_yes, probably due to DCP setup issues on m2 (pro) mini. not intended to end up with empty reserved regions
09:33raveling has quit [Ping timeout: 480 seconds]
09:55raveling has joined #asahi-dev
09:59hightower3 has joined #asahi-dev
10:06hightower2 has quit [Ping timeout: 480 seconds]
10:23cylm_ has joined #asahi-dev
10:29jannaupcie devices show up on the m2 pro mini but there's an interrupt storm of translation errors for pcie0_dart_2
10:29jannauapple-dart 596000000.iommu: translation fault: status:0x80180004 stream:1 code:0x4 (NO PMD FOR IOVA) at 0x1001e2a0000
10:38jannaukettenis_: the GPU is at least to blame as well "OF: fdt: Reserved memory: failed to reserve memory for node 'uat-handoff': base 0x0000000000000000, size 0 MiB"
10:40marcanjannau: that fault has a physical address, something went wrong with the DMA mappings if devices are hitting physical
10:57raveling has quit [Read error: No route to host]
10:59raveling has joined #asahi-dev
11:12jannaudo you have https://github.com/jannau/linux/commit/ca36a0932a5303abea73bc5ebecd40d2c6ef18e8
11:14jannauI didn't try hard though since the locked dart io-pgtbl interaction needs to be rewritten
11:20marcanjannau: isn't it just that if it's locked we can't change the TCR/TTBR level config so we need to just inherit?
11:22raveling has quit [Read error: Connection timed out]
11:30deteg1337 has quit [Remote host closed the connection]
11:35deteg1337 has joined #asahi-dev
11:41deteg133_ has joined #asahi-dev
11:43hightower3 has quit [Remote host closed the connection]
11:44deteg1337 has quit [Ping timeout: 480 seconds]
11:44jannaumarcan: pcie is confused by disabling port01. ethernet and usb xhci work if port01 is left enabled. pcie0_dart_1 needs to be disabled though. SErrors on probe
11:49deteg133_ has quit [Ping timeout: 480 seconds]
11:51kettenis_if there is a gap in the ports but not a corresponding gap in the bus numbers that would explain the issue
11:56marcanjannau: lol there was another bug, we were always limiting ias to 32 due to fls() being 32-bit
11:56deteg1337 has joined #asahi-dev
12:02jannaulol, I grepped for __builtin_clz and was then confused by 'return x ? sizeof(x) * 8 - __builtin_clz(x) : 0;' in builtin-fls.h. I didn't parse that fully and assumed it is a macro taking the width of the argument into account
12:07kedde has joined #asahi-dev
12:12marcan[ 0.434703] apple-dcp 389c00000.dcp: RTKit: syslog message: ck_PCC2DBlm_v5.cpp:3306: Quiescing callback
12:19CoolStar has joined #asahi-dev
12:22jannauipc.py can handle both 12.3 and 13.2 but needs the FW version set via env variable for 13.2
12:40marcan[ 0.454192] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:17276: Dual pipe enabled offset 1
13:03_jannau_at which point is this? before/after the modeset? do you have the last few calls / syslog messages before the crash?
13:10raveling has joined #asahi-dev
13:13_jannau_have you checked if the reg layout is still the same? it differs between m1 and m2 iirc
13:19raveling has quit [Ping timeout: 480 seconds]
13:19deteg1337 has quit [Remote host closed the connection]
13:22marcanI'm going to be annoyed if this is an outright firmware bug that macOS just never hits...
13:22_jannau_I'd check the mapped display registers and memory mappings shared between dart-dcp and dart-disp0.4
13:25deteg1337 has joined #asahi-dev
13:26raveling has joined #asahi-dev
13:31deteg133_ has joined #asahi-dev
13:32deteg1337 has quit [Read error: Connection reset by peer]
13:32deteg133_ has quit [Read error: Connection reset by peer]
13:32deteg1337 has joined #asahi-dev
13:34raveling has quit [Ping timeout: 480 seconds]
13:42mkurz has joined #asahi-dev
13:42deteg1337 has quit [Remote host closed the connection]
13:47deteg1337 has joined #asahi-dev
13:52i509vcb has joined #asahi-dev
13:53_jannau_that means I have to change the locked dart handling so that we can switch to unmanaged dma domains to map things at fixed dva
13:53deteg1337 has quit [Read error: Connection reset by peer]
13:53deteg1337 has joined #asahi-dev
14:00marcanI think we can get rid of the asc-dram-mask stuff entirely now, assuming this also works out on M2
14:02deteg1337 has quit [Ping timeout: 480 seconds]
14:03marcanjannau: feel free to refactor as you see fit, I left the commits broken out so you can see what I did (except the DT squash)
14:10_jannau_I think it can be stay as is for now it will get squashed eventually. I don't mind fixups being squashed at the next rebase
14:11deteg1337 has joined #asahi-dev
14:15_jannau_we will need a new mesa release to retain 30 bit color support. kwin will use xrgb2101010 with argb8888 cursor overlay if both are available
14:19deteg1337 has quit [Ping timeout: 480 seconds]
14:22Dementor has quit [Read error: Connection reset by peer]
14:22Dementor has joined #asahi-dev
14:26_jannau_I removed the fake support for argb210101010 after alyssa added support for xrgb2101010
14:28deteg1337 has joined #asahi-dev
14:36deteg1337 has quit [Ping timeout: 480 seconds]
14:41Thsf has joined #asahi-dev
14:44deteg1337 has joined #asahi-dev
14:52deteg1337 has quit [Ping timeout: 480 seconds]
14:57bps has quit [Ping timeout: 480 seconds]
15:00deteg1337 has joined #asahi-dev
15:00raveling has joined #asahi-dev
15:08raveling has quit [Ping timeout: 480 seconds]
15:08deteg1337 has quit [Ping timeout: 480 seconds]
15:17deteg1337 has joined #asahi-dev
15:19svenI also wonder if the older atcphys already keep the fuses on pd power off and/or reset or if apple changed their kext to skip that reset
15:25marcansven: also I think they're now gating the USB_AON power domains which they weren't before, so at least ont t602x they're gating *more*
15:25marcanbut yeah, we should be able to skip upstreaming the whole atcphy fuse mess if we can move that to m1n1 for older fw/soc compat
15:26deteg1337 has quit [Ping timeout: 480 seconds]
15:34deteg1337 has joined #asahi-dev
15:36A_L_I_C_E has quit [Ping timeout: 480 seconds]
15:36A_L_I_C_E has joined #asahi-dev
15:41_jannau_at least a short reset of the m1 max pcie pd in u-boot doesn't break anything. even the links stayed up. either config space or dart-apcie accesses resulted in SErrors though
15:42deteg1337 has quit [Ping timeout: 480 seconds]
15:51deteg1337 has joined #asahi-dev
15:56deteg1337 has quit [Read error: Connection reset by peer]
15:56deteg1337 has joined #asahi-dev
16:14A_L_I_C_E has quit [Ping timeout: 480 seconds]
16:14A_L_I_C_E has joined #asahi-dev
16:39MajorBiscuit has quit [Ping timeout: 480 seconds]
16:48raveling has joined #asahi-dev
16:52chipxxx has quit [Remote host closed the connection]
16:54chipxxx has joined #asahi-dev
16:54chipxxx has quit [Remote host closed the connection]
16:55chipxxx has joined #asahi-dev
16:56raveling has quit [Ping timeout: 480 seconds]
16:59cy8aer has quit [Remote host closed the connection]
17:35siglazin has joined #asahi-dev
17:45Thsf has quit [Ping timeout: 480 seconds]
17:53gabuscus has quit []
18:00hightower2 has joined #asahi-dev
18:05A_L_I_C_E has quit [Read error: Connection reset by peer]
18:23gabuscus has joined #asahi-dev
18:28cy8aer has joined #asahi-dev
18:36raveling has joined #asahi-dev
18:44raveling has quit [Ping timeout: 480 seconds]
18:46raveling has joined #asahi-dev
18:46pthariensflame has joined #asahi-dev
18:48pthariensflame has quit []
19:03siglazin has quit [Remote host closed the connection]
19:11___nick___ has joined #asahi-dev
19:23MajorBiscuit has joined #asahi-dev
19:41___nick___ has quit []
19:44___nick___ has joined #asahi-dev
19:44___nick___ has quit []
19:47___nick___ has joined #asahi-dev
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:43MajorBiscuit has quit [Quit: WeeChat 3.6]
20:58gabuscus has quit []
21:02gabuscus has joined #asahi-dev
21:02gabuscus has quit []
21:06cylm has joined #asahi-dev
21:08gabuscus has joined #asahi-dev
21:08cylm_ has quit [Ping timeout: 480 seconds]
21:10gabuscus has quit []
21:13A_L_I_C_E has joined #asahi-dev
21:16nyilas has quit [Remote host closed the connection]
21:26tanty has quit [Quit: Ciao!]
21:31bcrumb has joined #asahi-dev
21:36chipxxx has quit [Ping timeout: 480 seconds]
21:42deteg1337 has quit [Remote host closed the connection]
21:47tanty has joined #asahi-dev
21:48deteg1337 has joined #asahi-dev
21:49tanty has quit []
21:49bps has joined #asahi-dev
21:52bcrumb has quit [Quit: WeeChat 3.8]
21:54deteg133_ has joined #asahi-dev
21:56deteg1337 has quit [Ping timeout: 480 seconds]
22:01tanty has joined #asahi-dev
22:02axboe_ is now known as axboe
22:02deteg133_ has quit [Ping timeout: 480 seconds]
22:07gabuscus has joined #asahi-dev
22:10deteg1337 has joined #asahi-dev
22:10axboe has quit [Ping timeout: 480 seconds]
22:12bps has quit [Ping timeout: 480 seconds]
22:13axboe has joined #asahi-dev
22:13WindowPa- has quit [Read error: Connection reset by peer]
22:16WindowPain has joined #asahi-dev
22:19A_L_I_C_E has quit [Remote host closed the connection]
22:19deteg1337 has quit [Ping timeout: 480 seconds]
22:27deteg1337 has joined #asahi-dev
22:35chadmed_ has joined #asahi-dev
22:36jannaumarcan: small PCIe copy'n'paste fix for pre t6020-pcie in https://github.com/AsahiLinux/linux/pull/134
22:36deteg1337 has quit [Ping timeout: 480 seconds]
22:44deteg1337 has joined #asahi-dev
22:52deteg1337 has quit [Ping timeout: 480 seconds]
22:59ChaosPrincessGreat, linux manages to power gate something in the time after it starts but before it loads modules and so the mipi link explodes in a serror.
23:01deteg1337 has joined #asahi-dev
23:02jannauadd pd_ignore_unused to the kernel command line or make the power-domain always-on. Is it shared between two or more devices?
23:03ChaosPrincessI am doing pd_ignore_unused for now, i just hoped that i could drop it by adding all the necessary stuff to power-domains
23:12jannaudo we have a problem with dart runtime PM? dart is probed first due to the iommu dependency, might immediately power-down since it is unused. if the device is not so far probed that it forces the pd on, the pd will power down
23:15deteg1337 has quit [Ping timeout: 480 seconds]
23:23deteg1337 has joined #asahi-dev
23:31deteg1337 has quit [Ping timeout: 480 seconds]
23:37nsklaus has quit [Quit: ZZZzzz…]
23:39deteg1337 has joined #asahi-dev
23:46CoolStarChaosPrincess: does M1 use MIPI for the webcam? since I noticed an ISP in the DT but haven't looked much further into it
23:47A_L_I_C_E has joined #asahi-dev
23:48deteg1337 has quit [Ping timeout: 480 seconds]
23:56deteg1337 has joined #asahi-dev