#
…

2023-01-24

00:15swaggie has joined #asahi-dev
00:37nate8_ has joined #asahi-dev
00:44nate8 has quit [Ping timeout: 480 seconds]
01:18swaggie has quit [Ping timeout: 480 seconds]
01:47swaggie has joined #asahi-dev
01:55amarioguy has quit [Remote host closed the connection]
02:16seeeath has joined #asahi-dev
02:50audiojaguar_ has joined #asahi-dev
02:54audiojaguar has quit [Ping timeout: 480 seconds]
03:23faruk has quit [Quit: Textual IRC Client: www.textualapp.com]
03:26WindowPain has joined #asahi-dev
03:30WindowPa- has quit [Ping timeout: 480 seconds]
03:42Mary has quit [Quit: The Lounge - https://thelounge.chat]
03:43Mary has joined #asahi-dev
04:12pbsds has quit []
04:14pbsds has joined #asahi-dev
05:00c10l has quit [Quit: Bye o/]
05:01c10l has joined #asahi-dev
05:12nicolas17I discovered that InstallAssistant.pkg contains the non-delta OTA update zip and the SFR zip, without any further compression
05:13nicolas17with xdelta3 I can create a 15MB(!) delta that turns <(cat sfr.zip ota.zip) into an InstallAssistant.pkg... and Apple doesn't delete those zips from their CDN in a hurry
05:17nicolas17so I can hoard installassistants efficiently
05:56whomst has joined #asahi-dev
06:29swaggie has quit []
06:31nicolas17 has quit [Quit: Konversation terminated!]
06:32hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:45nate8_ has quit []
06:45nate8 has joined #asahi-dev
07:45bpye5 has joined #asahi-dev
07:48bpye has quit [Ping timeout: 480 seconds]
07:48bpye5 is now known as bpye
07:54svenmaybe I should've compiled the kernel with pcie hotplug support if I wanted pcie hotplug for that chained adapter to work :D
08:07qdot has quit [Ping timeout: 480 seconds]
08:19MajorBiscuit has joined #asahi-dev
08:21jannauI would have assumed thunderbolt depends on that
08:31mazhuh, how did it work the first place?
08:36sveni have to do the hotplug for the root ports manually anyway
08:36svenit's just anything below the root ports that uses the normal pcie hotplug
08:36mazI would have hoped that the same mechanism would work :-/
08:39svenmaybe I can remove the open-coded hotplug from apple-pcie now that I compiled it with pcie hotplug support, let me try that
08:39svenbut I at least need to reset the tunnel on link down/tunnel error
08:47svennope, doesn't work because the root port claims that it doesn't support hotplug
08:49mazinteresting. yet it has interrupts to signal link-up/down... i guess they settled on a hack rather than supporting the full HP spec...
08:51svenyeah :/
08:52svenmaybe there's a way to get it to somehow use the normal pciehp but that's something for the pci mailing list once I'm happy with the rest
08:53mazoh, absolutely. There is hardly a case for HP without getting the rest of TB in shape.
08:55svenyup. the biggest mystery is why switching between my apple and startech adapter breaks the TB NHI (and/or figure out a way to just completely reset that NHI). once that's done there's really just busywork left
08:56mazreset the NHI? and all that time you were claiming that it was way better than dwc3... ;-)
08:56svenI still have hope that this adapter switch thing is just something dumb I do ;)
08:56mazthe curse is the connector, I swear.
08:57sventhis adapter switch also increases the probe time to something like 20-30seconds from maybe 5 seconds so there's clearly something that's very broken
08:57sven+on macOS
09:02zzywysm_ has joined #asahi-dev
09:09zzywysm has quit [Ping timeout: 480 seconds]
09:09whomst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
09:34leitao has joined #asahi-dev
09:36jannauthe m2 mac mini comes with macOS 13.0
09:37mkurz_jannau: you got yours already?
10:22jannauyes. build is 22A8380 compared to 22A380 of the public 13.0 release
10:24svenjust how many machines do you have at this point? :D
10:42kettenis_total? or just Apple Silicon machines? ;)
10:44* jannaucounts: 5
11:11Ry_Darcy has joined #asahi-dev
11:12Ry_Darcy@Jannau any ideas when the Device Tree will be ready for the M2 Mini?
11:18jannauRy_Darcy: a couple of days maybe, first we need make everything works. display is currently completely broken
11:19j`eyjannau: even the m1n1 iboot thing?
11:20j`eything = iboot protocol that m1 mini uses for display
11:21jannauyes, at least broken dart stream ID for dcp. maybe vm-base and potentially we have init the display crossbar and the dp2hdmi converter
11:22jannauif we're unlucky we have to do the dp-altmode setup with the dptx EP
11:24Ry_Darcy@Jannau OK. Thanks for the information.
11:26Ry_Darcy@Jannau last question, are there any caveats with the installer for the M2 Mini, or is it too early to ask?
11:28jannauthe installer needs needs to adapted for new machines. we need 13.2 support, wifi/bt FW extraction for the new machines and fixed m1n1 and kernel with devicetrees for the new machines
11:32Ry_Darcy@Jannau Thank you. A bit involved then I see.
11:32amarioguy has joined #asahi-dev
11:38Ry_Darcy has quit [Quit: Page closed]
12:21kettenis_u-boot will probably need changes for the M2 Pro/Max
12:22kettenis_I should get my M2 Pro mini in about two weeks if Apple's prediction is right
12:30svenwell... looks like the unreliability is just some kind of race
12:30svenif I add a msleep(1000) before telling the NHI about the new cable it seems reliable now. I bet this just needs to be synchronized against something in atcphy
12:35minecrell has quit [Read error: Connection timed out]
12:37minecrell has joined #asahi-dev
12:42S1 has joined #asahi-dev
12:44S1 has quit []
12:45S1 has joined #asahi-dev
13:00nate8 has quit [Read error: Connection reset by peer]
13:01nate8 has joined #asahi-dev
13:03chadmed_ has joined #asahi-dev
13:04S1 has left #asahi-dev [#asahi-dev]
13:21rowanG337 has joined #asahi-dev
13:29rowanG337@Jannau @Marcan I have been following asahi linux since the start now and I feel it's at about the level I can switch to it. So I ordered my first macbook. One thing that is interesting to me is that the screens can do 1000 nits sustained. But OSX limits it to ~500 nits in non-hdr content. There are apps for OSX which unlock the non-hdr brightness and allows users to go to 1000 nits. Are you open to including this feature in
13:29rowanG337the DCP driver (possibly with a sysfs switch)? Once I have received my mac and have some free time I'd want to look at that myself.
13:29rowanG337The primary reason I want this is to make using the laptop outside more bearable. I have a 500 nits screen laptop now and it's often really dim when outside on a bright day.
13:38marcanrowanG337: we'd have to figure out how to enable it and whether it is safe to enable long term
13:38marcanthe current driver cannot support it as the conversion table only goes to 510
13:38jannaurowanG337: that is certainly not a priority for us but I guess it will become obvious how to do that once we support HDR itself
13:39marcanjannau: do you know if it's just cranking up the DAC output or something separate?
13:40jannauI haven't looked into it but I've seen macos setting more bools in the field I identified as enable flag
13:40marcaneither way I'm not sure we want to enable an aging-relevant feature that Apple doesn't, so if we do this would probably end up being a module parameter and not something enabled by default
13:41jannauit's probably not totally unsafe since I think dcp has direct access to the display temp sensors
13:42marcanI mean, I don't expect it to be outright unsafe but it will age the backlight faster, that's just physics
13:42rowanG337It will definitely age the BL faster.
13:43rowanG337But It should be within Apple margin
13:43rowanG337since HDR output can do 1000 nits sustained
13:43marcanyeah but they probably don't spec the laptops to be playing HDR content 24x7
13:43marcannevermind HDR content that is on the upper half of the range
13:44marcanso still, should probably be a non-default toggle
13:44jannauthe HDR display seems not to be designed in California. the m2 pro/max specs say the max brightness works only up to 25°C
13:44rowanG337I wouldn't go past the 1000 nits sustained apple rates the display at. I think the display can do 1600 nits on parts of the display.
13:45jannausafe in the sense it will not destroy the backlight immediately
13:45rowanG337OSX also will lower the brightness automatically if it overheats
13:45rowanG337at least that is what I can read online in the apple docs itself.
13:45rowanG337I haven't tried it myself
13:46rowanG337I'm hoping actually that it's not OSX doing it but some kind of mcu connected to the display
13:46jannauI think dcp lowers the brightness and not macOS. otherwise it would not safe to enble
13:47j`ey(where DCP = some kind of mcu)
13:48rowanG337yeah sorry I don't have a clear mental model how everything fits together yet
13:52kettenis_jannau: LOL
14:01bcrumb has joined #asahi-dev
14:11jannausigh, that were a lot of assumptions in the dart and vram init code which became invalid on m2
14:12jannaudcp_iboot works finally but of course no display is detected
14:12chadmed_ has quit [Ping timeout: 480 seconds]
14:22leitao has quit [Remote host closed the connection]
14:22leitao has joined #asahi-dev
14:33povikhow come this wasn't fixed when the other m2 devices were being brought up?
14:34j`eythey all have internal displays
14:36kettenis_I wonder if (and hope that) the serial port will work
14:39mazit'd better work!
14:40j`eyIm assuming it is if jannau is using it?
14:40jannauand the internal displays are setup by iboot
14:40mazI'm >that< close to send the design to the fab...
14:42jannauI'm mostly using usb serial but reset via vdmtool works in principle but I had reset it already twice via power button
14:44seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:45seeeath has joined #asahi-dev
14:53WhyNotHugo has left #asahi-dev [#asahi-dev]
15:12bcrumb_ has joined #asahi-dev
15:15bcrumb has quit [Ping timeout: 480 seconds]
15:21nicolas17 has joined #asahi-dev
15:23cylm has quit [Ping timeout: 480 seconds]
15:41Deewiant has quit [Remote host closed the connection]
15:42Deewiant has joined #asahi-dev
15:43nicolas17jannau: your comment about california and display temperature limits reminded me of this https://twitter.com/dangrover/status/1452461273686241281
15:53nicolas17the datahoader/archivist in me kinda wants a firmware dump of 22A8380 (tarball of /System?) since there's no download of it,
15:56jannauit was a reference to "designed in California == rain,freezing temperatures are not expected"
15:59jannaukettenis_: serial works and and I would expect it work on m1 pro/max as well
16:02jannauhdmi out will probably take longer. it seems to require at least scm and display crossbar support in m1n1
16:04linuxgemini6 has joined #asahi-dev
16:04linuxgemini has quit [Read error: Connection reset by peer]
16:05nepeat_ has joined #asahi-dev
16:06svenugh.. let's hope it at least doesn't require that DPTX dance
16:06nepeat has quit [Ping timeout: 480 seconds]
16:11maximbaz has quit [Quit: bye]
16:13maximbaz has joined #asahi-dev
16:13svenalso, turns out that locking the thunderbolt mutex when calling deep into the thunderbolt subsystem is a very good idea🙃
16:19Cyrinux has quit []
16:21Cyrinux has joined #asahi-dev
17:28bcrumb_ has quit [Quit: WeeChat 3.8]
17:48WindowPa- has joined #asahi-dev
17:49roxfan has quit [Ping timeout: 480 seconds]
17:51MajorBiscuit has quit [Ping timeout: 480 seconds]
17:53WindowPain has quit [Ping timeout: 480 seconds]
18:14rowanG337 has quit [Quit: Leaving]
18:18bcrumb has joined #asahi-dev
18:21jannausven: do you understand how the dp switch is programmed? I miss the equivalent of atc?-dpxbar for the dp2hdmi converter
18:22jannauhave you looked at {ufp,dfp}-endpoints in display-crossbar0?
18:24sveniirc the ufp/dfp endpoints are just the dcpext and the atcphys
18:24svenI don’t remember looking at „dp-switch“
18:26jannauthere is no overall dp-switch. atc?-dpxbar are either parts of the switch or interact with the switch
18:28Cyrinux has quit [Remote host closed the connection]
18:28jannaumaybe it's just "function-force-dpfu" in dp2hdmi-gpio
18:40hertz has joined #asahi-dev
18:44thasti has quit [Remote host closed the connection]
18:46bcrumb has quit [Quit: WeeChat 3.8]
18:46thasti has joined #asahi-dev
18:49bcrumb has joined #asahi-dev
18:50hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:55bcrumb has quit [Quit: WeeChat 3.8]
19:00qdot has joined #asahi-dev
19:05leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:09svenoh this is just great, acio seems to put its crashlog into MMIO somewhere like SMC. the only message I get when it dies is four digits assert number that was triggered :/
19:10sven(e.g. assert_id=1271)
19:11sventhe setbuffer requests are also strange. for the crashlog e.g. it asks [cpu4] [M3Tracer@/arm-io/acio-cpu1] RECV: 0010400010009c00:0020350000000001 | OUTCNT=0x2, INCNT=0x0, OUTPTR=0x3, INPTR=0x5, EP=0x1
19:11svenand then macos replies with [cpu4] [M3Tracer@/arm-io/acio-cpu1] SEND: 0010400501089c00:0000000000000001 | EP=0x1
19:11svenno idea how 010009c00 turns into 501089c00
19:26___nick___ has joined #asahi-dev
19:27___nick___ has quit []
19:29___nick___ has joined #asahi-dev
19:30WindowPain has joined #asahi-dev
19:34WindowPa- has quit [Ping timeout: 480 seconds]
19:39seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:40seeeath has joined #asahi-dev
19:41roxfan has joined #asahi-dev
19:44kensan has quit [Remote host closed the connection]
19:56kensan has joined #asahi-dev
19:59___nick___ has quit [Ping timeout: 480 seconds]
20:05jluthra has quit [Remote host closed the connection]
20:06jluthra has joined #asahi-dev
20:42seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:45seeeath has joined #asahi-dev
20:51Cyrinux has joined #asahi-dev
21:01leitao has joined #asahi-dev
21:22leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:54mkurz_ has quit [Ping timeout: 480 seconds]
21:56nate8 has quit [Quit: Leaving]
22:12jannauno luck so far with the hdmi out. only a dumb replay of the macOS dptx-phy trace.
22:14jannaustill unclear what replaces atc-dpxbar for the dp2hdmi out, maybe it's just the default routing
22:16jannaucould be of course the missing dptx DCP EP
22:27sven just realized the weird crashlog address translation is essentially segment-ranges
22:27svenstill no idea why it occasionally still dies even on the first connection though
22:36mkurz has joined #asahi-dev
22:56nicolas17 has quit [Quit: Konversation terminated!]
23:25flying_sausages has quit []
23:29flying_sausages has joined #asahi-dev
23:34WindowPain has quit [Quit: ZNC 1.8.2 - https://znc.in]
23:34WindowPain has joined #asahi-dev
…