marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
<chadmed> i actually did try to write a Qt mimic of the macos first run wizard a couple of weeks ago but im really not very adept at GUI programming. you can refer to my github for an example of why i should never ever write a GUI :P
<fridtjof[m]> wouldn't you have to ship qt with the installer?
<fridtjof[m]> (asking because i'm not sure if trying to use native macOS applications would be much more painful)
<fridtjof[m]> *APIs
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
linearcannon has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
<chadmed> im pretty sure binaries linked against Qt are portable if you use qmake
<chadmed> but it doesnt matter since this was meant to go into the Asahi distro at some point, which we can just ship qt with in any case. it was meant to show _after_ you'd installed and booted linux for the first time, so no point using Cocoa/Swift for that
bgb has joined #asahi
<chadmed> all irrelevant because about 20 minutes in i remembered just how awful i am at guis lmao
<fridtjof[m]> ooh, i assumed it was for the initial setup from macOS 1tr. nvm then :)
<Eric[m]> Anyone know what the state of the development tool chain looks like? Will llvm build native binaries and link with glibc without any patching?
<chadmed> yeah, once linux drivers have taken care of all the hardware quirks, these are just AArch64 machines
<chadmed> userspace stuff should Just Work(tm)
<chadmed> arm support is very mature in most big distros and their forks
<Eric[m]> Oh okay. I had thought Apple silicon had diverged from the standard. That's good to know
<chadmed> marcan found one quirk that breaks ARMv8-A but i dont think it affects userspace software
bgb has quit [Ping timeout: 480 seconds]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
G_w has joined #asahi
G_w has quit [Remote host closed the connection]
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
PhilippvK has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
phiologe has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
<marcan> it only affects VM support
<marcan> so it doesn't even affect kernelspace in a guest, which is why linux VMs worked fine on macos from the get go
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
marvin24_ has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
enomem_ has joined #asahi
jabashque_ has joined #asahi
jabashque is now known as Guest5109
jabashque_ is now known as jabashque
mustache_ride__ has joined #asahi
tardyp has quit [Ping timeout: 480 seconds]
tardyp has joined #asahi
aeroraptor_ has joined #asahi
mustache_ride_ has quit [Ping timeout: 480 seconds]
bgb has quit [Ping timeout: 480 seconds]
aeroraptor has quit [Ping timeout: 480 seconds]
aeroraptor_ is now known as aeroraptor
enomem has quit [Ping timeout: 480 seconds]
enomem_ is now known as enomem
Guest5109 has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
darkapex has quit [Ping timeout: 480 seconds]
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb_ has joined #asahi
<bgb> maz: then counter_mask is indeed for usable PMC regs, and I saw a lot masks equal to 224(b'1110 0000)
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
hspak has quit [Remote host closed the connection]
hspak has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
psykose has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
nepeat has quit [Ping timeout: 480 seconds]
bgb_ has quit [Ping timeout: 480 seconds]
nepeat has joined #asahi
psykose has joined #asahi
bgb_ has joined #asahi
darkapex has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
easontek has joined #asahi
easontek has left #asahi [#asahi]
bgb has quit [Quit: WeeChat 3.3]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
arahael2 has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
riker77 has quit [Quit: Quitting IRC - gone for good...]
bgb_ has quit [Ping timeout: 480 seconds]
arahael2 has joined #asahi
aleasto has joined #asahi
bgb_ has joined #asahi
riker77 has joined #asahi
<jannau_> to no one's surprise the M1 Pro linux bringup works on the M1 Max
jannau_ is now known as jannau
<jannau> all 3 usb-c ports work after initialising the 3rd port in m1n1
bgb_ has quit [Ping timeout: 480 seconds]
m42uko has quit [Read error: Connection reset by peer]
m42uko has joined #asahi
bgb has joined #asahi
malvo has quit [Read error: Connection reset by peer]
malvo has joined #asahi
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb has quit [Quit: WeeChat 3.3]
<sven> Nice!
gio[m]1 has joined #asahi
jacoxon has joined #asahi
bgb_ has joined #asahi
bgb has joined #asahi
<marcan> jannau: but what about the 6th port? :-)
<marcan> (magsafe)
<marcan> (we actually need to do the hpm init for that too, for charging)
<bgb> I got dmesg"Cannot enable. Maybe the USB cable is bad?" on my ubuntu machine when when MBA/MBP(m1n1), and no /dev/ttyACMx. any ideas ?
bgb_ has quit [Ping timeout: 480 seconds]
<jannau> the 6th port seems to be just power delivery though so we need to init it differently
<jannau> not sure why the magsafe has 5 pins though
<VinDuv> they always had 5 pins afaik
<VinDuv> I think there is a sense pin to make sure there is no short circuit before delivering power
bgb_ has joined #asahi
<jannau> the connector is reversible too so I guess the middle pin is v bus or gnd, a symmetric pair is cc1/cc2 and the other pair is gnd or v bus
jacoxon has quit []
<sven> for charging at least the SPSS command sent over I2C should be enough
<VinDuv> according to WP 1 and 5 are GND, 2 and 4 are V+ and 3 is sense (on MagSafe 1)
<jannau> magsafe2 appears to be usb pd
m6wiq has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
<VinDuv> (hmm that’s confusing, MagSafe 2 is actually a minor revision of MagSafe back in 2012, the M1 Macs are actually MagSafe 3)
bgb has quit [Quit: WeeChat 3.3]
yuyichao has joined #asahi
<VinDuv> It wouldn’t surprise me that the USB-PD stuff all occurs in the cable itself and that the Mac just sees the MagSafe interface (probably identical to older MagSafe)
<sven> uh, there should be a HPM entry in the ADT for magsafe
<jannau> yes, there is hpm5 thus the 6th port
<sven> USB PD for magsafe is likely handled by yet another CD321x chip
<sven> and i'm willing to bet it also starts out in hibernation and needs to be woken up
<sven> (or maybe charging even work in hibernation mode. i've never actually tried)
bgb_ has joined #asahi
<jannau> it might work out of the box, my battery is fully charged after quite a while in m1n1/linux with magsafe connected
<sven> yeah, could be. i only know for sure that the chip needs to be woken up to make the port act as a power source
<jannau> not sure if I connected magsafe in macos before rebooting to m1n1 though
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
DanStrong[m] has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
<chadmed> might be a few weeks before we can get schematics to confirm if its another CD3217 unless someones willing to tear open their shiny new laptop to have a look themselves
jacoxon has joined #asahi
bgb_ has joined #asahi
<chadmed> ok nvm got them
<chadmed> its a CD3218
<chadmed> new proprietary chip just dropped
<jannau> https://www.gamingdeputy.com/disassembly-report-apple-macbook-pro-original-usb-c-to-magsafe-3-cable/ not sure that magsafe itself is usb pd. more components in both connectors than expected
<chadmed> topmost chip of the left wing on the top side of the board for folks playing along at home
bgb_ has quit [Ping timeout: 480 seconds]
<sven> pretty sure we've seen CD3218 before
<chadmed> interesting. pinout is the same as the 3217 in any case, some lines just go to different places
bgb_ has joined #asahi
Misthios has quit [Quit: Misthios]
Misthios has joined #asahi
<sven> i think it started at cd3216 or so for the T2 macs
<sven> they're also known as ACE1 and ACE2 for some reason
<chadmed> huh it also uses CD3217s for the non-magsafe ports
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
<jannau> hpm5 has "compatible = [usbc,cd3217]" as the other ports
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
<marcan> cd3217/16/18 are all the same chip series AIUI
<marcan> probably just different roms if that
<marcan> VinDuv: MagSafe 3 is just USB-PD
<marcan> the sense pin is now a CC pin
<marcan> they have a lot of chips, but apple always does that
<marcan> probably protection for the exposed pins (especially against noncompliant USB-C chargers that don't switch their output), the LED stuff, general marker/etc stuff
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
X-Scale` has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
X-Scale has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
X-Scale has joined #asahi
X-Scale` has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
zopieux has quit [Ping timeout: 480 seconds]
zopieux has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
yuyichao has quit [Quit: Konversation terminated!]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi
bgb_ has joined #asahi
asie has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
<jn> marcan: i just noticed in the t6000/bringup-work branch's t6000.dtsi, the file comment still says T8103 and M1
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
utf8 has joined #asahi
linearcannon has quit [Read error: Connection reset by peer]
bgb_ has quit [Ping timeout: 480 seconds]
pent1ckel has joined #asahi
dsrt^ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
___nick___ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
rohin2 has joined #asahi
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
___nick___ has quit []
bgb_ has joined #asahi
rohin2 has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
___nick___ has quit [Ping timeout: 480 seconds]
utf8 has quit []
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
aleasto has quit [Remote host closed the connection]
bgb_ has joined #asahi
aratuk has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
aratuk has quit [Remote host closed the connection]
aratuk has joined #asahi
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
aratuk has quit []
bgb_ has quit [Ping timeout: 480 seconds]
m6wiq has quit [Quit: Leaving]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
yrlf2 is now known as yrlf
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi