marcan changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
ccs1 has joined #asahi-dev
gladiac is now known as Guest204
gladiac has joined #asahi-dev
Guest204 has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Dcow has joined #asahi-dev
chadmed has quit [Read error: No route to host]
chadmed_ has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
gladiac is now known as Guest210
gladiac has joined #asahi-dev
Guest210 has quit [Ping timeout: 480 seconds]
ccs1 has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
gabuscus_ has joined #asahi-dev
amarioguy has joined #asahi-dev
gabuscus has quit [Ping timeout: 480 seconds]
Dcow has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Dcow has joined #asahi-dev
gabuscus_ has quit [Remote host closed the connection]
gabuscus has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
IcaroDextris has quit [Quit: Connection closed for inactivity]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Dcow has joined #asahi-dev
ccs1 has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
nicolas17 has quit [Quit: Konversation terminated!]
brentr123 has joined #asahi-dev
brentr123 has quit []
brentr123 has joined #asahi-dev
chadmed_ is now known as chadmed
brentr123 is now known as Guest222
Dcow has joined #asahi-dev
ccs1 has quit [Ping timeout: 480 seconds]
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
brentr123 has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
Guest222 has quit [Quit: Leaving...]
systwi_ has joined #asahi-dev
systwi has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
brentr123 has quit [Quit: Connection closed for inactivity]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
SSJ_GZ has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Dementor has quit [Read error: Connection reset by peer]
Dementor has joined #asahi-dev
fossdd has quit [Ping timeout: 480 seconds]
fossdd has joined #asahi-dev
Dementor has quit [Read error: Connection reset by peer]
Dementor has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
sikkiladho has joined #asahi-dev
bluetail has joined #asahi-dev
DarkShadow4444 has joined #asahi-dev
povik has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
remi has joined #asahi-dev
povik has joined #asahi-dev
remi has quit [Quit: remi]
remi has joined #asahi-dev
remi has quit []
RemiSca has joined #asahi-dev
RemiSca has quit [Quit: RemiSca]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<sven> anyone 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
l3k has joined #asahi-dev
sikkiladho has quit []
<Dcow> mac-to-mac connection would work?
winter has joined #asahi-dev
<sven> no idea, maybe
<sven> I can test that one myself later though, but good idea
Dementor has quit [Read error: Connection reset by peer]
Dementor has joined #asahi-dev
<rmk> marcan: is there another backend for smc_core written at the moment to prove out the current code structure?
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Read error: Connection reset by peer]
<sven> don't think so, I only vaguely recall someone working on linux for x86 macs with that T2 chip wanted to write one
<sven> but no idea if they already started
l3k has quit [Quit: Leaving]
cylm has joined #asahi-dev
amarioguy2 has joined #asahi-dev
<amarioguy2> i 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
ccs1 has joined #asahi-dev
<amarioguy2> there's already some subsystems I see that can probably be converted to rust with minimal issue
<amarioguy2> (ADT code is the thing I'm mainly looking at right now)
<sven> what would be the benefit of that?
<sven> rust for e.g. fat32 makes sense because that's a potential attack vector
<sven> but if the ADT is malicious all bets are off anyway
<amarioguy2> ah you're right, i forgot ADT was verified by iboot anyways
<amarioguy2> i was thinking more from a general "C is obsolete" kinda perspective
<sven> i think that's a pretty bad perspective
<sven> rust makes a lot of sense in certain areas but converting from C to rust just because "C is obsolete" doesn't really gain anythiing
<sven> might even prevent people who only know C from contributing
<amarioguy2> gotcha 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
* amarioguy2 shelves that idea
ccs1 has quit [Ping timeout: 480 seconds]
amarioguy2 has quit [Ping timeout: 480 seconds]
amarioguy2 has joined #asahi-dev
<kettenis> rmk: no; the idea was that the existing code for the smc on intel macs could be refactored into another backend for smc_core
<kettenis> but given lee's reply I wonder if adding this abstraction was a good idea
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Read error: Connection reset by peer]
<rmk> kettenis: I'm thinking if we can have another backend soon, then it boosts the case for this abstraction
<rmk> when I mooted the idea of not using mfd, Lee didn't seem to be keen on that idea either
<rmk> I 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.
gladiac has quit [Quit: k thx bye]
chengsun has joined #asahi-dev
<amarioguy2> just asking what's the state on PSCI or some derivative thereof?
<j`ey> I 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
<maz> j`ey: I though we'd have a discussion on the list first? did I miss anything?
<j`ey> I dont think it was sent yet, that was just what was said on irc
<maz> k
<sven> you guys don't happen to have a device that specifically claims to be USB4 and not "just" thunderbolt around, do you?
<maz> sven: how do you identify such a beast?
ashi has joined #asahi-dev
<sven> check if the marketing materials mention USB4 :D
<sven> I 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"
<amarioguy2> sven: i think newest amd mobile processors (6000 series) are usb4 only
<amarioguy2> no official TBT certification
<sven> I care about the _device_ here
<amarioguy2> ah rip
<sven> I want to see if tps6598x identifies it differently because the PD commands to enter USB4 are different from those used for pre-USB4 thunderbolt
<maz> sven: I have a TB3 NVMe device that has a USB hub inside (the kernel says so when I plug it).
<maz> any interest in that?
<sven> that's the same as my tb3 dock I think :(
<maz> right. it was worth checking anyway.
<sven> yeah, thanks.
<sven> I think usb4 devices are pretty new
<ChaosPrincess> maz: usb over tb3 is usb3-over-pcie-over-tb, while usb over usb4 is usb over usb4
<ChaosPrincess> they are kinda different on protocol level
<maz> ChaosPrincess: given that I no TB support whatsoever in the kernel, I doubt that the USB hub I see has *anything* to do with tunelling.
<maz> given that I *have*
<ChaosPrincess> then i guess it can do both raw usb and usb wrapped in tb
<maz> probably. the ports are definitely only doing standard USB3 at the moment.
amarioguy2 has quit [Ping timeout: 480 seconds]
amarioguy2 has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
ajv009 has joined #asahi-dev
ajv009 has quit []
ajv009 has joined #asahi-dev
ajv009 has quit []
ajv009 has joined #asahi-dev
chengsun_ has joined #asahi-dev
chengsun has quit [Ping timeout: 480 seconds]
amarioguy2 has quit [Ping timeout: 480 seconds]
amarioguy2 has joined #asahi-dev
<sven> hah, found the HPD signal. it's in one of the "reserved" bits in the tps6598x DATA_STATUS and triggers and irq there
DarkShadow4444 has quit [Remote host closed the connection]
DarkShadow4444 has joined #asahi-dev
Dementor has quit [Read error: Connection reset by peer]
Dementor has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
DarkShadow4444 has quit [Remote host closed the connection]
DarkShadow4444 has joined #asahi-dev
Tramtrist has quit [Quit: [TLS] Client upgrade]
Tramtrist has joined #asahi-dev
ajv009 has quit [Ping timeout: 480 seconds]
DarkShadow4444 has quit [Remote host closed the connection]
ccs1 has joined #asahi-dev
pjakobsson has quit [Remote host closed the connection]
Gaspare has joined #asahi-dev
amarioguy2 has quit [Ping timeout: 480 seconds]
Gaspare has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
chengsun has joined #asahi-dev
chengsun_ has quit [Ping timeout: 480 seconds]
<sven> hrm, what kind of displays would require 4 lane display port? 5k I guess?
<sven> anyone with such a display that connects via display port and not thunderbolt here?
ajv009 has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
<Dcow> that's a rare thing I guess
<sven> probably, 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
ajv009 has quit [Quit: Leaving]
<sven> (and also to confirm my atcphy setup works for 4 lanes as well)
<sven> oh, nevermind, my 4 lane code just did something dumb
<sven> because technically this capture card doesn't have any usb3 connection so switching to 4 lane mode is correct here
<jannau> my 5120x2160 monitor does iirc requires 4 lanes for 60Hz
<sven> so now just HPD is missing and then I've finally shaved all yaks and can go back to thunderbolt :>
ccs1 has quit [Ping timeout: 480 seconds]
<sven> jannau: great! sounds like a good test for the 4 lane atcphy setup then
ajv009 has joined #asahi-dev
xeonaj has joined #asahi-dev
<jannau> anything to test now or is that for the linux drivers?
<sven> Linux driver, I just messed up something in my code which confused me
<sven> cd321x registers are exactly the same as tps6598x for the DP pin assignment
<sven> now 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
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Graypup_ has quit [Quit: meow]
Graypup_ has joined #asahi-dev
<ChaosPrincess> for 4 lanes - can't you connect it with the worst possible cable so it will be unable to train anything above dp rbr speed?
xeonaj has quit [Quit: Leaving]
<sven> lol, I wonder if that would actually work :D
<marcan> fwiw I just picked up a USBC 4K monitor that I *think* does USB3+DP, so I can test with that
<marcan> (as well as the usual assortment of HDMI adapters of course)
<marcan> I also have a dock-like thing that definitely does 3+DP
<sven> I have some old dock that does 3+dp as well
<sven> and I’m pretty sure that will just work
<sven> I hardcoded the mode to 3+DP before I implemented the typec stuff for the tps6598x thing today and at least the DP part worked
<sven> yup, 3+DP works
<ajv009> you guys are amazing
nicolas17 has joined #asahi-dev
ajv009 has quit [Remote host closed the connection]
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
elvishjerricco has quit [Ping timeout: 480 seconds]
Dcow_ has joined #asahi-dev
<jannau> so from one annoying problem (brightness mapping) to the next one (updating brightness without atomic_commit)
* jannau looks angrily towards Xorg
Dcow has quit [Ping timeout: 480 seconds]
<jannau> two 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
<jannau> second problem, locking. drm has shielded us so far from most locking issues with wrt to the coprocessor communication
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
___nick___ has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
bisko has quit [Read error: Connection reset by peer]
digicyc has joined #asahi-dev
ashi has quit [Ping timeout: 480 seconds]
cylm has quit [Quit: WeeChat 3.7.1]
bisko has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Dcow_ has quit [Remote host closed the connection]
Dcow has joined #asahi-dev
SSJ_GZ has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
bisko has joined #asahi-dev
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dcow_ has joined #asahi-dev
thelounge7571340 has joined #asahi-dev
thelounge7571340 has quit [Remote host closed the connection]
Dcow has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
bisko has quit []
bisko has joined #asahi-dev