#
…

2022-11-05

00:12winter has quit [Quit: The Lounge - https://thelounge.chat]
00:17millenialhacker has joined #asahi-dev
00:25millenialhacker has quit [Ping timeout: 480 seconds]
01:00millenialhacker has joined #asahi-dev
01:08millenialhacker has quit [Ping timeout: 480 seconds]
01:15as400_ has joined #asahi-dev
01:15as400 has quit [Remote host closed the connection]
01:20as400_ is now known as as400
02:15chadmedamarioguy: at least you didnt lead a maintainer on a wild goose chase over an ignored compiler warning :P
02:15chadmedin fairness, the function that was _actually_ failing because of it was doing so silently
02:16amarioguychadmed: oof must've been rough
02:17amarioguyprobably more for offtopic but dealing with FIQ timers with software (EDK2) that is clearly assuming a GIC controlled timer is pain...
02:17chadmedviresh was nice about it but my god i felt like an idiot
02:18chadmedat least EAS will work for us on 6.2 so its still a win
02:18chadmedi wouldnt enable it until the GPU driver lands in asahi though since it absolutely slaughters sw rast performance
02:20chadmedprobably both because our power values are wildly inaccurate and the added latency of swapping the render threads across clusters constantly to minmax for J/inst
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi-dev
02:20millenialhacker has joined #asahi-dev
02:21chadmedhard to A/B test with sw rendering too since its always going to wake up pcores to render stuff, but the clusters do seem to stay in lower pstates for longer now
02:22as400_ has joined #asahi-dev
02:22as400 has quit [Ping timeout: 480 seconds]
02:27as400_ is now known as as400
02:28millenialhacker has quit [Ping timeout: 480 seconds]
02:52as400 has quit [Ping timeout: 480 seconds]
02:55as400 has joined #asahi-dev
03:06as400 has quit [Ping timeout: 480 seconds]
03:13millenialhacker has joined #asahi-dev
03:21millenialhacker has quit [Ping timeout: 480 seconds]
03:27as400 has joined #asahi-dev
03:52as400 has quit [Ping timeout: 480 seconds]
04:02as400 has joined #asahi-dev
04:35as400_ has joined #asahi-dev
04:36as400 has quit [Remote host closed the connection]
04:40as400_ is now known as as400
04:42bpye has quit [Ping timeout: 480 seconds]
04:45marcanamarioguy: just send your patch first; it's already been tested and mine could hypothetically introduce regressions on other platforms (though I doubt it)
04:45marcan(considering I wrote it to the PASemi datasheet)
04:45marcanno rush to send both in
04:46marcanand yeah, just have the increased timeout in your patch, no need for authorship credit for that part
04:47marcanI'll send the whole error recovery thing later
04:59Dcow has quit [Remote host closed the connection]
05:07millenialhacker has joined #asahi-dev
05:14bpye has joined #asahi-dev
05:15millenialhacker has quit [Ping timeout: 480 seconds]
05:24as400 has quit [Ping timeout: 480 seconds]
05:26as400 has joined #asahi-dev
05:55as400 has quit [Ping timeout: 480 seconds]
06:14millenialhacker has joined #asahi-dev
06:15as400 has joined #asahi-dev
06:22millenialhacker has quit [Ping timeout: 480 seconds]
06:29as400 has quit [Ping timeout: 480 seconds]
06:47SSJ_GZ has joined #asahi-dev
06:49as400 has joined #asahi-dev
06:54millenialhacker has joined #asahi-dev
07:02as400 has quit [Ping timeout: 480 seconds]
07:13ccs1 has joined #asahi-dev
07:20millenialhacker has quit [Ping timeout: 480 seconds]
07:23as400 has joined #asahi-dev
08:44as400_ has joined #asahi-dev
08:44as400 has quit [Remote host closed the connection]
08:45millenialhacker has joined #asahi-dev
08:49Dcow has joined #asahi-dev
08:49as400_ is now known as as400
08:53millenialhacker has quit [Ping timeout: 480 seconds]
08:59Dcow_ has joined #asahi-dev
09:06Dcow has quit [Ping timeout: 480 seconds]
09:49jannausigh. I do not understand how the brightness mapping is supposed to work. The backlight node in the ADT gives the following
09:51jannautwo tables which give a linear index to brightness translation (one for 0 - 100 nits, the other one for 100 - 510 nits) milliAmps2DACTablePart1, milliAmps2DACTablePart2. brightness values as reported back by dcp
09:52as400_ has joined #asahi-dev
09:52as400 has quit [Remote host closed the connection]
09:53jannauin addition I have milliAmps2DACPart1MaxCurrent and milliAmps2DACPart2MaxCurrent and coefficients for a quadratic polynomial to convert nits to mAmps (nits2mAmps*OrderCoef)
09:55jannauthe polynomial seems to expect normalized nits from 0 to 1 + x
09:57as400_ is now known as as400
09:57jannauif I solve the polynomial for milliAmps2DACPart1MaxCurrent and milliAmps2DACPart2MaxCurrent I get conflicting results
10:01jannau0.1945 for milliAmps2DACPart1MaxCurrent means at the reported brightness of 99 nits a normalization by 514 nits
10:01jannau0.124 for milliAmps2DACPart2MaxCurrent means at the reported brightness of 510 nits a normalization by ~410 nits
10:09ccs1 has quit [Ping timeout: 480 seconds]
10:15mpsinteresting. that means it is analog light control and not pwm, iiuc
10:17jannauif the ADT is not a lie. I find it a little suspicious that the tables and constants are the same over all devices
11:12dottedmag has joined #asahi-dev
11:15as400_ has joined #asahi-dev
11:15as400 has quit [Remote host closed the connection]
11:15millenialhacker has joined #asahi-dev
11:20as400_ is now known as as400
11:23millenialhacker has quit [Ping timeout: 480 seconds]
11:26r0ni has quit [Quit: Leaving]
11:32cylm has joined #asahi-dev
11:36as400_ has joined #asahi-dev
11:37as400 has quit [Remote host closed the connection]
11:40sven3840x2160@60.00 with HBR2 works as well :>
11:41as400_ is now known as as400
11:52jannaunice. can you test if it works with HBR3 and 2 lanes as well?
11:53svenI don't think I have a display that negotiates that mode
11:53svenbut I'm cleaning up the mess a bit right now so that I can push it later
11:53svensometimes I have to do modetest -M apple to get something to appear when I connect via this usb3/dp hub. but i have a feeling that this hub is a bit broken anyway
11:55svenI sometimes also only get a high-speed device when I connect it via this hub. not sure if that's an atcphy issue or just a broken hub though
11:58sleber has joined #asahi-dev
11:59jannaudcp initialization might a little bit flaky too. I had a single occurance of some weirdness which was solved by turning the display off and on. unfortunately I didn't had time to investigate and now I've even forgotten what the issue was
12:00* amarioguyhas sent v4 to mailing lists
12:00* amarioguyturns to SEP now
12:02blazra has joined #asahi-dev
12:03svenyeah, it's probably gonna be a while before this is stable enough
12:07r0ni has joined #asahi-dev
12:17svenhttps://github.com/AsahiLinux/linux/tree/dp-altmode-WIP absolutely not ready for testing and/or end users
12:17svenjannau: ^--
12:19ChaosPrincessthis is based on asahi-dev branch, right? (not intending to use, just to see the correct diff)
12:19svenno idea
12:20svenI just based this on some branch jannau prepared for me
12:21j`eybut that's truly the base of everything, for svens stuff it's https://github.com/AsahiLinux/linux/commit/a0bd5fe8e60718eaa1c70e187b5e457bd63746f5
12:25jannauit's ontop of an older dcp branch + commits to add dcpext/dcpext0/4. should rebase ontop of the current asahi-wip without too much conflicts (hopefully)
12:30lachlan has joined #asahi-dev
12:33lachlan has quit []
12:34lachiefish has joined #asahi-dev
12:35bgb has quit [Ping timeout: 480 seconds]
12:36bgb has joined #asahi-dev
12:40slebery<x ssqf
12:45lewurm has joined #asahi-dev
12:45svenalright, now that jannau has volunteered to fix all the bugs I introduced to dcp (:P) let's see if I can bring up thunderbolt
12:46millenialhacker has joined #asahi-dev
12:48jannaurebases cleanly except for the conflicting solutions for the uninitialized values in tipd's interrupt handlers
12:49lewurm has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
12:49jannausven: dptxep.h is missing
12:50lewurm has joined #asahi-dev
12:50svenuh, let me fix that
12:51svenpushed
12:54millenialhacker has quit [Ping timeout: 480 seconds]
13:00bgb_ has joined #asahi-dev
13:01bgb has quit [Ping timeout: 480 seconds]
13:04svenurgh… I know why usb3 in usb3/DP mode sometimes fails
13:04svenif the tps chip takes just a bit too long to recognize the altmode dwc3 is already up when it tries to reconfigure the lanes
13:04svenand the SS phy really doesn’t like that *sigh*
13:23sleber has quit [Remote host closed the connection]
13:37millenialhacker has joined #asahi-dev
13:45millenialhacker has quit [Ping timeout: 480 seconds]
13:56ljs has joined #asahi-dev
14:00svenjannau: fwiw, another know race is during probe time: if drm probes after tipd it won’t get the first oob hotplug event
14:05svenalso, lol, this display doesn’t work at all under macOS with one of my cables but it does work just fine in linux :D
14:05sveni bet that’s another hdcp fail
14:27Cyrinux has joined #asahi-dev
14:29millenialhacker has joined #asahi-dev
14:37millenialhacker has quit [Ping timeout: 480 seconds]
14:49ljs has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.2)]
14:59ljs has joined #asahi-dev
15:00ljs has left #asahi-dev [#asahi-dev]
15:01jannausven: no luck so far here with actually getting a picture out of dcptext
15:02svent8103?
15:02jannauon dcpext side everything looks ok but the displays complain about a migging signal
15:02jannaus/migging/missing/
15:03svenI only got that when dcpext couldn’t actually set the mode
15:03svenjust to be sure, connected to atcphy1?
15:03sveni don’t think 0 makes a difference but I never tested it
15:05jannauyes, but I see one possible problem now: apple-dcp 271c00000.dcp: unexpected busy command channel
15:05svenand I guess you also tried to run modetest?
15:05svendon’t think I ever got that
15:06jannauare "DPTXPort: unhandled call" for 11, 13, 14, 20, 22 expected?
15:07ljs has joined #asahi-dev
15:07svenHuh, not 22 though
15:08sven22 is “device busy timeout”
15:08svenso the most stable thing to prevent any races for me is to boot with nothing plugged in, then just plug in the typec->hdmi adapter and then finally plug in the display
15:11ljs has left #asahi-dev [ERC 5.4 (IRC client for GNU Emacs 28.2)]
15:12jannaulet me try that. I'm testing with an usb-c dp adapter and an usb-c display
15:18svencan you enable the atcphy tracepoints?
15:18svenit fails very early with that busy timeouy
15:24millenialhacker has joined #asahi-dev
15:29Guest175 has quit []
15:31balrog has joined #asahi-dev
15:31balrog is now known as Guest480
15:32millenialhacker has quit [Ping timeout: 480 seconds]
15:33Guest480 is now known as balrog
15:38balrog has quit [Quit: Bye]
15:39jannauthat's first connecting the usb-c dp adapter and than connecting the dp cable
15:41balrog has joined #asahi-dev
15:43balrog has quit []
15:44balrog has joined #asahi-dev
15:45balrog has quit []
15:47balrog has joined #asahi-dev
15:48svenuhhhh… that failed to parse thing looks broken
15:49svenhow did I mess up these tracepoints
15:52millenialhacker has joined #asahi-dev
15:57svenjannau: can you try to add a udelay(100) or so to the mask32 function in atcphy.c?
15:57svenmaybe I’m missing more magic delays somewhere :/
16:00millenialhacker has quit [Ping timeout: 480 seconds]
16:08as400 has quit [Ping timeout: 480 seconds]
16:13millenialhacker has joined #asahi-dev
16:13millenialhacker has quit [Remote host closed the connection]
16:16as400 has joined #asahi-dev
16:30Major_Biscuit has joined #asahi-dev
16:42Major_Biscuit has quit [Ping timeout: 480 seconds]
16:45as400 has quit [Ping timeout: 480 seconds]
16:48as400 has joined #asahi-dev
16:59Dcow_ has quit [Remote host closed the connection]
17:03jannauno change with udelay(100) in mask32
17:06Dcow has joined #asahi-dev
17:16as400 has quit [Ping timeout: 480 seconds]
17:22as400 has joined #asahi-dev
17:30svencan you trace atcphy under both macOS and Linux?
17:30svenlatest m1n1 master should be fine
17:39Dcow has quit [Remote host closed the connection]
17:41as400 has quit [Ping timeout: 480 seconds]
17:45as400 has joined #asahi-dev
18:08jannauin both cases booted without anything connected -> connect dp adapter -> connect cable -> reboot
18:20svenhmmm… looks similar enough at first glance
18:20svenill take a closer look tomorrow
19:17Dcow has joined #asahi-dev
19:18as400 has quit [Ping timeout: 480 seconds]
19:25as400 has joined #asahi-dev
19:25Dcow has quit [Ping timeout: 480 seconds]
19:38bpye has quit [Quit: The Lounge - https://thelounge.chat]
19:38bpye has joined #asahi-dev
19:48Dcow has joined #asahi-dev
19:59millenialhacker has joined #asahi-dev
20:19as400_ has joined #asahi-dev
20:19as400 has quit [Remote host closed the connection]
20:24as400_ is now known as as400
20:48jluthra has quit [Remote host closed the connection]
20:48jluthra has joined #asahi-dev
20:54Dcow has quit []
21:10millenialhacker has quit []
21:11bluetail has quit [Ping timeout: 480 seconds]
21:15as400_ has joined #asahi-dev
21:16as400 has quit [Remote host closed the connection]
21:20as400_ is now known as as400
21:24thelounge42 has joined #asahi-dev
21:27jannausigh, dwc3 without extcon is broken again in v6.1-rc3 d182c2e1bc92084c038b44c618f29589a4de9f66
21:28thelounge42 is now known as xcpy0
21:30bluetail has joined #asahi-dev
21:57bluetail has quit [Ping timeout: 480 seconds]
22:16bluetail has joined #asahi-dev
22:18zshrc has joined #asahi-dev
22:36zshrc has quit [Quit: zshrc]
22:42as400 has quit [Ping timeout: 480 seconds]
22:43maximbaz has joined #asahi-dev
22:49as400 has joined #asahi-dev
23:11SSJ_GZ has quit [Ping timeout: 480 seconds]
23:14nicolas17 has joined #asahi-dev
23:19jannaudcpext0 on t6001 seems now more or less in the same state, hotplug works and dcpext0 is configured for the display but no signal
23:34zkrx has quit [Ping timeout: 480 seconds]
23:39zkrx has joined #asahi-dev
23:51as400 has quit [Ping timeout: 480 seconds]
23:53as400 has joined #asahi-dev
23:59as400_ has joined #asahi-dev
23:59as400 has quit [Remote host closed the connection]
…