#
…

2022-11-02

00:13ccs1 has joined #asahi-dev
00:23gladiac is now known as Guest204
00:23gladiac has joined #asahi-dev
00:29Guest204 has quit [Ping timeout: 480 seconds]
00:32thelounge7571340 has joined #asahi-dev
00:32thelounge7571340 has quit [Remote host closed the connection]
00:43Dcow has joined #asahi-dev
00:51chadmed has quit [Read error: No route to host]
00:51chadmed_ has joined #asahi-dev
00:51Dcow has quit [Ping timeout: 480 seconds]
00:53gladiac is now known as Guest210
00:53gladiac has joined #asahi-dev
00:59Guest210 has quit [Ping timeout: 480 seconds]
01:01ccs1 has quit [Ping timeout: 480 seconds]
01:18Dcow has joined #asahi-dev
01:23gabuscus_ has joined #asahi-dev
01:23amarioguy has joined #asahi-dev
01:25gabuscus has quit [Ping timeout: 480 seconds]
01:26Dcow has quit [Ping timeout: 480 seconds]
01:46thelounge7571340 has joined #asahi-dev
01:47thelounge7571340 has quit [Remote host closed the connection]
01:54Dcow has joined #asahi-dev
01:56gabuscus_ has quit [Remote host closed the connection]
01:57gabuscus has joined #asahi-dev
02:02Dcow has quit [Ping timeout: 480 seconds]
02:29Dcow has joined #asahi-dev
02:37Dcow has quit [Ping timeout: 480 seconds]
02:41IcaroDextris has quit [Quit: Connection closed for inactivity]
02:54thelounge7571340 has joined #asahi-dev
02:54thelounge7571340 has quit [Remote host closed the connection]
03:02Dcow has joined #asahi-dev
03:02ccs1 has joined #asahi-dev
03:10Dcow has quit [Ping timeout: 480 seconds]
04:21thelounge7571340 has joined #asahi-dev
04:21thelounge7571340 has quit [Remote host closed the connection]
04:28nicolas17 has quit [Quit: Konversation terminated!]
04:33brentr123 has joined #asahi-dev
04:33brentr123 has quit []
04:45brentr123 has joined #asahi-dev
04:49chadmed_ is now known as chadmed
04:53brentr123 is now known as Guest222
05:00Dcow has joined #asahi-dev
05:00ccs1 has quit [Ping timeout: 480 seconds]
05:00c10l has quit [Quit: Bye o/]
05:01c10l has joined #asahi-dev
05:06brentr123 has joined #asahi-dev
05:08Dcow has quit [Ping timeout: 480 seconds]
05:12Guest222 has quit [Quit: Leaving...]
05:14systwi_ has joined #asahi-dev
05:17systwi has quit [Ping timeout: 480 seconds]
05:23thelounge7571340 has joined #asahi-dev
05:24thelounge7571340 has quit [Remote host closed the connection]
05:34Dcow has joined #asahi-dev
05:44Dcow has quit [Ping timeout: 480 seconds]
05:59Dcow has joined #asahi-dev
06:31thelounge7571340 has joined #asahi-dev
06:31thelounge7571340 has quit [Remote host closed the connection]
07:19brentr123 has quit [Quit: Connection closed for inactivity]
07:32thelounge7571340 has joined #asahi-dev
07:32thelounge7571340 has quit [Remote host closed the connection]
07:33SSJ_GZ has joined #asahi-dev
08:35thelounge7571340 has joined #asahi-dev
08:35thelounge7571340 has quit [Remote host closed the connection]
09:00Dementor has quit [Read error: Connection reset by peer]
09:00Dementor has joined #asahi-dev
09:01fossdd has quit [Ping timeout: 480 seconds]
09:02fossdd has joined #asahi-dev
09:31Dementor has quit [Read error: Connection reset by peer]
09:32Dementor has joined #asahi-dev
09:36thelounge7571340 has joined #asahi-dev
09:36thelounge7571340 has quit [Remote host closed the connection]
09:41sikkiladho has joined #asahi-dev
09:49bluetail has joined #asahi-dev
10:18DarkShadow4444 has joined #asahi-dev
10:33povik has quit [Ping timeout: 480 seconds]
10:40thelounge7571340 has joined #asahi-dev
10:40thelounge7571340 has quit [Remote host closed the connection]
10:59remi has joined #asahi-dev
11:01povik has joined #asahi-dev
11:05remi has quit [Quit: remi]
11:05remi has joined #asahi-dev
11:07remi has quit []
11:07RemiSca has joined #asahi-dev
11:25RemiSca has quit [Quit: RemiSca]
11:47thelounge7571340 has joined #asahi-dev
11:48thelounge7571340 has quit [Remote host closed the connection]
11:48svenanyone with a device that specifically claims to be USB4 (i.e. not just thunderbolt) here who could run this script? https://f.svpe.de/ae4da979c62f4048dfebf0f55568ff27a81bbb66d9248e63d9a25584fd74c57b_tipd.py
11:54l3k has joined #asahi-dev
11:59sikkiladho has quit []
12:07Dcowmac-to-mac connection would work?
12:14winter has joined #asahi-dev
12:15svenno idea, maybe
12:16svenI can test that one myself later though, but good idea
12:46Dementor has quit [Read error: Connection reset by peer]
12:47Dementor has joined #asahi-dev
12:47rmkmarcan: is there another backend for smc_core written at the moment to prove out the current code structure?
12:48thelounge7571340 has joined #asahi-dev
12:48thelounge7571340 has quit [Read error: Connection reset by peer]
12:50svendon't think so, I only vaguely recall someone working on linux for x86 macs with that T2 chip wanted to write one
12:50svenbut no idea if they already started
13:12l3k has quit [Quit: Leaving]
13:15cylm has joined #asahi-dev
13:31amarioguy2 has joined #asahi-dev
13:33amarioguy2i realize this is probably going to sound like a crazy idea but long term i think we could start bringing more and more parts of m1n1 over to rust
13:33ccs1 has joined #asahi-dev
13:33amarioguy2there's already some subsystems I see that can probably be converted to rust with minimal issue
13:33amarioguy2(ADT code is the thing I'm mainly looking at right now)
13:34svenwhat would be the benefit of that?
13:34svenrust for e.g. fat32 makes sense because that's a potential attack vector
13:35svenbut if the ADT is malicious all bets are off anyway
13:35amarioguy2ah you're right, i forgot ADT was verified by iboot anyways
13:35amarioguy2i was thinking more from a general "C is obsolete" kinda perspective
13:35sveni think that's a pretty bad perspective
13:36svenrust makes a lot of sense in certain areas but converting from C to rust just because "C is obsolete" doesn't really gain anythiing
13:36svenmight even prevent people who only know C from contributing
13:37amarioguy2gotcha that's fair it's not like i'm adamant on this or anything lol it was just something i had thought about the viability of
13:37* amarioguy2shelves that idea
13:50ccs1 has quit [Ping timeout: 480 seconds]
13:56amarioguy2 has quit [Ping timeout: 480 seconds]
13:56amarioguy2 has joined #asahi-dev
14:00kettenisrmk: no; the idea was that the existing code for the smc on intel macs could be refactored into another backend for smc_core
14:01kettenisbut given lee's reply I wonder if adding this abstraction was a good idea
14:03thelounge7571340 has joined #asahi-dev
14:03thelounge7571340 has quit [Read error: Connection reset by peer]
14:11rmkkettenis: I'm thinking if we can have another backend soon, then it boosts the case for this abstraction
14:11rmkwhen I mooted the idea of not using mfd, Lee didn't seem to be keen on that idea either
14:12rmkI think it would help to see what a different backend would look like - not having another backend and makes trying to argue for this code structure quite difficult.
14:19gladiac has quit [Quit: k thx bye]
14:27chengsun has joined #asahi-dev
14:27amarioguy2just asking what's the state on PSCI or some derivative thereof?
14:29j`eyI have a crappy PoC, but it looks like it'll just be done as some non-PSCI UEFI protocol in the end, but no code has been written
14:33mazj`ey: I though we'd have a discussion on the list first? did I miss anything?
14:33j`eyI dont think it was sent yet, that was just what was said on irc
14:47svenyou guys don't happen to have a device that specifically claims to be USB4 and not "just" thunderbolt around, do you?
14:47mazsven: how do you identify such a beast?
14:48ashi has joined #asahi-dev
14:48svencheck if the marketing materials mention USB4 :D
14:49svenI e.g. have an older caldigit dock that's advertised as Thunderbolt 3. the newer version of that dock claims to be "Thunderbolt 4 / USB4"
14:49amarioguy2sven: i think newest amd mobile processors (6000 series) are usb4 only
14:49amarioguy2no official TBT certification
14:49svenI care about the _device_ here
14:50svenI want to see if tps6598x identifies it differently because the PD commands to enter USB4 are different from those used for pre-USB4 thunderbolt
14:50mazsven: I have a TB3 NVMe device that has a USB hub inside (the kernel says so when I plug it).
14:50mazany interest in that?
14:51sventhat's the same as my tb3 dock I think :(
14:53mazright. it was worth checking anyway.
14:53svenyeah, thanks.
14:53svenI think usb4 devices are pretty new
14:53ChaosPrincessmaz: usb over tb3 is usb3-over-pcie-over-tb, while usb over usb4 is usb over usb4
14:53ChaosPrincessthey are kinda different on protocol level
14:55mazChaosPrincess: given that I no TB support whatsoever in the kernel, I doubt that the USB hub I see has *anything* to do with tunelling.
14:55mazgiven that I *have*
14:56ChaosPrincessthen i guess it can do both raw usb and usb wrapped in tb
14:57mazprobably. the ports are definitely only doing standard USB3 at the moment.
14:57amarioguy2 has quit [Ping timeout: 480 seconds]
14:58amarioguy2 has joined #asahi-dev
15:09thelounge7571340 has joined #asahi-dev
15:10thelounge7571340 has quit [Remote host closed the connection]
15:24ajv009 has joined #asahi-dev
15:28ajv009 has quit []
15:30ajv009 has joined #asahi-dev
15:31ajv009 has quit []
15:31ajv009 has joined #asahi-dev
15:41chengsun_ has joined #asahi-dev
15:46chengsun has quit [Ping timeout: 480 seconds]
15:49amarioguy2 has quit [Ping timeout: 480 seconds]
15:53amarioguy2 has joined #asahi-dev
16:03svenhah, found the HPD signal. it's in one of the "reserved" bits in the tps6598x DATA_STATUS and triggers and irq there
16:08DarkShadow4444 has quit [Remote host closed the connection]
16:16DarkShadow4444 has joined #asahi-dev
16:17Dementor has quit [Read error: Connection reset by peer]
16:17Dementor has joined #asahi-dev
16:23thelounge7571340 has joined #asahi-dev
16:23thelounge7571340 has quit [Remote host closed the connection]
16:25DarkShadow4444 has quit [Remote host closed the connection]
16:26DarkShadow4444 has joined #asahi-dev
16:32Tramtrist has quit [Quit: [TLS] Client upgrade]
16:33Tramtrist has joined #asahi-dev
16:40ajv009 has quit [Ping timeout: 480 seconds]
16:42DarkShadow4444 has quit [Remote host closed the connection]
16:51ccs1 has joined #asahi-dev
17:00pjakobsson has quit [Remote host closed the connection]
17:12Gaspare has joined #asahi-dev
17:16amarioguy2 has quit [Ping timeout: 480 seconds]
17:22Gaspare has quit [Ping timeout: 480 seconds]
17:25___nick___ has joined #asahi-dev
17:25___nick___ has quit []
17:27___nick___ has joined #asahi-dev
17:28chengsun has joined #asahi-dev
17:29chengsun_ has quit [Ping timeout: 480 seconds]
17:37svenhrm, what kind of displays would require 4 lane display port? 5k I guess?
17:37svenanyone with such a display that connects via display port and not thunderbolt here?
17:42ajv009 has joined #asahi-dev
17:43thelounge7571340 has joined #asahi-dev
17:46thelounge7571340 has quit [Remote host closed the connection]
17:54Dcowthat's a rare thing I guess
17:57svenprobably, it looks like apple modified some bits inside these cd321x chips and my 2-lane DP pin assignments looks like a 4-lane assignment. would be interesting to see how 4 lane actually looks
17:57ajv009 has quit [Quit: Leaving]
17:57sven(and also to confirm my atcphy setup works for 4 lanes as well)
18:15svenoh, nevermind, my 4 lane code just did something dumb
18:16svenbecause technically this capture card doesn't have any usb3 connection so switching to 4 lane mode is correct here
18:17jannaumy 5120x2160 monitor does iirc requires 4 lanes for 60Hz
18:17svenso now just HPD is missing and then I've finally shaved all yaks and can go back to thunderbolt :>
18:18ccs1 has quit [Ping timeout: 480 seconds]
18:18svenjannau: great! sounds like a good test for the 4 lane atcphy setup then
18:22ajv009 has joined #asahi-dev
18:25xeonaj has joined #asahi-dev
18:42jannauanything to test now or is that for the linux drivers?
18:44svenLinux driver, I just messed up something in my code which confused me
18:45svencd321x registers are exactly the same as tps6598x for the DP pin assignment
18:46svennow I just need to understand how to hook up the drm connector to the typec port in the device tree and write some glue code and then hopefully hotplugging displays should also work
18:51thelounge7571340 has joined #asahi-dev
18:51thelounge7571340 has quit [Remote host closed the connection]
18:53Graypup_ has quit [Quit: meow]
18:54Graypup_ has joined #asahi-dev
18:57ChaosPrincessfor 4 lanes - can't you connect it with the worst possible cable so it will be unable to train anything above dp rbr speed?
18:58xeonaj has quit [Quit: Leaving]
18:59svenlol, I wonder if that would actually work :D
19:04marcanfwiw I just picked up a USBC 4K monitor that I *think* does USB3+DP, so I can test with that
19:04marcan(as well as the usual assortment of HDMI adapters of course)
19:05marcanI also have a dock-like thing that definitely does 3+DP
19:06svenI have some old dock that does 3+dp as well
19:06svenand I’m pretty sure that will just work
19:07svenI hardcoded the mode to 3+DP before I implemented the typec stuff for the tps6598x thing today and at least the DP part worked
19:11svenyup, 3+DP works
19:25ajv009you guys are amazing
19:26nicolas17 has joined #asahi-dev
19:34ajv009 has quit [Remote host closed the connection]
19:46Dcow has quit [Remote host closed the connection]
19:46Dcow has joined #asahi-dev
19:59thelounge7571340 has joined #asahi-dev
19:59thelounge7571340 has quit [Remote host closed the connection]
20:00elvishjerricco has quit [Ping timeout: 480 seconds]
20:23Dcow_ has joined #asahi-dev
20:26jannauso from one annoying problem (brightness mapping) to the next one (updating brightness without atomic_commit)
20:27* jannaulooks angrily towards Xorg
20:30Dcow has quit [Ping timeout: 480 seconds]
20:31jannautwo problems with that. We shouldn't waste a frame swap for a brightness if userspace uses atomic_commit to update the screen like wayland compositors do
20:36jannausecond problem, locking. drm has shielded us so far from most locking issues with wrt to the coprocessor communication
20:47jluthra has quit [Remote host closed the connection]
20:47jluthra has joined #asahi-dev
21:05thelounge7571340 has joined #asahi-dev
21:05thelounge7571340 has quit [Remote host closed the connection]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:14bisko has joined #asahi-dev
21:28bisko has quit [Read error: Connection reset by peer]
21:31digicyc has joined #asahi-dev
21:32ashi has quit [Ping timeout: 480 seconds]
21:51cylm has quit [Quit: WeeChat 3.7.1]
21:57bisko has joined #asahi-dev
22:07thelounge7571340 has joined #asahi-dev
22:07thelounge7571340 has quit [Remote host closed the connection]
22:24Dcow_ has quit [Remote host closed the connection]
22:25Dcow has joined #asahi-dev
22:51SSJ_GZ has quit [Ping timeout: 480 seconds]
23:08thelounge7571340 has joined #asahi-dev
23:08thelounge7571340 has quit [Remote host closed the connection]
23:17bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:22thelounge7571340 has joined #asahi-dev
23:22thelounge7571340 has quit [Remote host closed the connection]
23:22bisko has joined #asahi-dev
23:33bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:33Dcow_ has joined #asahi-dev
23:36thelounge7571340 has joined #asahi-dev
23:37thelounge7571340 has quit [Remote host closed the connection]
23:40Dcow has quit [Ping timeout: 480 seconds]
23:42bisko has joined #asahi-dev
23:43bisko has quit []
23:43bisko has joined #asahi-dev
…