#
…

2021-11-06

00:08bgb has joined #asahi
00:16bgb has quit [Ping timeout: 480 seconds]
00:25bgb has joined #asahi
00:33bgb has quit [Ping timeout: 480 seconds]
00:41bgb has joined #asahi
00:49bgb has quit [Ping timeout: 480 seconds]
00:58bgb has joined #asahi
01:06bgb has quit [Ping timeout: 480 seconds]
01:16bgb has joined #asahi
01:18chadmedi 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
01:22fridtjof[m]wouldn't you have to ship qt with the installer?
01:24fridtjof[m](asking because i'm not sure if trying to use native macOS applications would be much more painful)
01:24bgb has quit [Ping timeout: 480 seconds]
01:32bgb has joined #asahi
01:35linearcannon has joined #asahi
01:40bgb has quit [Ping timeout: 480 seconds]
01:46chadmedim pretty sure binaries linked against Qt are portable if you use qmake
01:47chadmedbut 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
01:48bgb has joined #asahi
01:48chadmedall irrelevant because about 20 minutes in i remembered just how awful i am at guis lmao
01:48fridtjof[m]ooh, i assumed it was for the initial setup from macOS 1tr. nvm then :)
01:51Eric[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?
01:52chadmedyeah, once linux drivers have taken care of all the hardware quirks, these are just AArch64 machines
01:52chadmeduserspace stuff should Just Work(tm)
01:52chadmedarm support is very mature in most big distros and their forks
01:53Eric[m]Oh okay. I had thought Apple silicon had diverged from the standard. That's good to know
01:57chadmedmarcan found one quirk that breaks ARMv8-A but i dont think it affects userspace software
02:01bgb has quit [Ping timeout: 480 seconds]
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi
02:25bgb has joined #asahi
02:33bgb has quit [Ping timeout: 480 seconds]
02:42bgb has joined #asahi
02:50bgb has quit [Ping timeout: 480 seconds]
02:58bgb has joined #asahi
03:07bgb has quit [Ping timeout: 480 seconds]
03:16bgb has joined #asahi
03:23G_w has joined #asahi
03:23G_w has quit [Remote host closed the connection]
03:24bgb has quit [Ping timeout: 480 seconds]
03:33bgb has joined #asahi
03:41bgb has quit [Ping timeout: 480 seconds]
03:49bgb has joined #asahi
03:56PhilippvK has joined #asahi
03:58bgb has quit [Ping timeout: 480 seconds]
04:00phiologe has quit [Ping timeout: 480 seconds]
04:06bgb has joined #asahi
04:15bgb has quit [Ping timeout: 480 seconds]
04:24bgb has joined #asahi
04:27marcanit only affects VM support
04:27marcanso it doesn't even affect kernelspace in a guest, which is why linux VMs worked fine on macos from the get go
04:32bgb has quit [Ping timeout: 480 seconds]
04:42bgb has joined #asahi
04:51bgb has quit [Ping timeout: 480 seconds]
04:57bgb has joined #asahi
04:59marvin24_ has joined #asahi
05:03marvin24 has quit [Ping timeout: 480 seconds]
05:05bgb has quit [Ping timeout: 480 seconds]
05:14bgb has joined #asahi
05:20enomem_ has joined #asahi
05:20jabashque_ has joined #asahi
05:21jabashque is now known as Guest5109
05:21jabashque_ is now known as jabashque
05:21mustache_ride__ has joined #asahi
05:21tardyp has quit [Ping timeout: 480 seconds]
05:21tardyp has joined #asahi
05:21aeroraptor_ has joined #asahi
05:22mustache_ride_ has quit [Ping timeout: 480 seconds]
05:22bgb has quit [Ping timeout: 480 seconds]
05:22aeroraptor has quit [Ping timeout: 480 seconds]
05:22aeroraptor_ is now known as aeroraptor
05:23enomem has quit [Ping timeout: 480 seconds]
05:23enomem_ is now known as enomem
05:23Guest5109 has quit [Ping timeout: 480 seconds]
05:31bgb has joined #asahi
05:39bgb has quit [Ping timeout: 480 seconds]
05:47bgb has joined #asahi
05:55bgb has quit [Ping timeout: 480 seconds]
06:03bgb has joined #asahi
06:11bgb has quit [Ping timeout: 480 seconds]
06:21bgb has joined #asahi
06:29bgb has quit [Ping timeout: 480 seconds]
06:39bgb has joined #asahi
06:47bgb has quit [Ping timeout: 480 seconds]
06:56bgb has joined #asahi
07:04bgb has quit [Ping timeout: 480 seconds]
07:13bgb has joined #asahi
07:21bgb has quit [Ping timeout: 480 seconds]
07:24bgb has joined #asahi
07:26darkapex has quit [Ping timeout: 480 seconds]
07:32bgb has quit [Ping timeout: 480 seconds]
07:37bgb has joined #asahi
07:41bgb_ has joined #asahi
07:45bgbmaz: then counter_mask is indeed for usable PMC regs, and I saw a lot masks equal to 224(b'1110 0000)
07:49bgb_ has quit [Ping timeout: 480 seconds]
07:58bgb_ has joined #asahi
08:04hspak has quit [Remote host closed the connection]
08:05hspak has joined #asahi
08:06bgb_ has quit [Ping timeout: 480 seconds]
08:09psykose has quit [Ping timeout: 480 seconds]
08:15bgb_ has joined #asahi
08:20nepeat has quit [Ping timeout: 480 seconds]
08:25bgb_ has quit [Ping timeout: 480 seconds]
08:30nepeat has joined #asahi
08:31psykose has joined #asahi
08:34bgb_ has joined #asahi
08:34darkapex has joined #asahi
08:42bgb_ has quit [Ping timeout: 480 seconds]
08:51bgb_ has joined #asahi
08:59bgb_ has quit [Ping timeout: 480 seconds]
09:07bgb_ has joined #asahi
09:15bgb_ has quit [Ping timeout: 480 seconds]
09:17easontek has joined #asahi
09:17easontek has left #asahi [#asahi]
09:20bgb has quit [Quit: WeeChat 3.3]
09:23bgb_ has joined #asahi
09:31bgb_ has quit [Ping timeout: 480 seconds]
09:50arahael2 has quit [Ping timeout: 480 seconds]
09:58bgb_ has joined #asahi
10:05riker77 has quit [Quit: Quitting IRC - gone for good...]
10:06bgb_ has quit [Ping timeout: 480 seconds]
10:12arahael2 has joined #asahi
10:13aleasto has joined #asahi
10:16bgb_ has joined #asahi
10:16riker77 has joined #asahi
10:24jannau_to no one's surprise the M1 Pro linux bringup works on the M1 Max
10:24jannau_ is now known as jannau
10:25jannauall 3 usb-c ports work after initialising the 3rd port in m1n1
10:29bgb_ has quit [Ping timeout: 480 seconds]
10:31m42uko has quit [Read error: Connection reset by peer]
10:31m42uko has joined #asahi
10:34bgb has joined #asahi
10:37malvo has quit [Read error: Connection reset by peer]
10:37malvo has joined #asahi
10:38bgb_ has joined #asahi
10:46bgb_ has quit [Ping timeout: 480 seconds]
10:46bgb has quit [Quit: WeeChat 3.3]
10:48gio[m]1 has joined #asahi
10:54jacoxon has joined #asahi
10:55bgb_ has joined #asahi
10:55bgb has joined #asahi
10:55marcanjannau: but what about the 6th port? :-)
10:56marcan(magsafe)
10:56marcan(we actually need to do the hpm init for that too, for charging)
10:59bgbI 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 ?
11:03bgb_ has quit [Ping timeout: 480 seconds]
11:06jannauthe 6th port seems to be just power delivery though so we need to init it differently
11:09jannaunot sure why the magsafe has 5 pins though
11:10VinDuvthey always had 5 pins afaik
11:11VinDuvI think there is a sense pin to make sure there is no short circuit before delivering power
11:12bgb_ has joined #asahi
11:14jannauthe 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
11:14jacoxon has quit []
11:15svenfor charging at least the SPSS command sent over I2C should be enough
11:16VinDuvaccording to WP 1 and 5 are GND, 2 and 4 are V+ and 3 is sense (on MagSafe 1)
11:18jannaumagsafe2 appears to be usb pd
11:19m6wiq has joined #asahi
11:20bgb_ has quit [Ping timeout: 480 seconds]
11:22VinDuv(hmm that’s confusing, MagSafe 2 is actually a minor revision of MagSafe back in 2012, the M1 Macs are actually MagSafe 3)
11:24bgb has quit [Quit: WeeChat 3.3]
11:25yuyichao has joined #asahi
11:25VinDuvIt 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)
11:26svenuh, there should be a HPM entry in the ADT for magsafe
11:26jannauyes, there is hpm5 thus the 6th port
11:26svenUSB PD for magsafe is likely handled by yet another CD321x chip
11:27svenand i'm willing to bet it also starts out in hibernation and needs to be woken up
11:27sven(or maybe charging even work in hibernation mode. i've never actually tried)
11:28bgb_ has joined #asahi
11:29jannauit might work out of the box, my battery is fully charged after quite a while in m1n1/linux with magsafe connected
11:30svenyeah, could be. i only know for sure that the chip needs to be woken up to make the port act as a power source
11:31jannaunot sure if I connected magsafe in macos before rebooting to m1n1 though
11:36bgb_ has quit [Ping timeout: 480 seconds]
11:44bgb_ has joined #asahi
11:47DanStrong[m] has joined #asahi
11:52bgb_ has quit [Ping timeout: 480 seconds]
11:57chadmedmight 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
11:57jacoxon has joined #asahi
12:01bgb_ has joined #asahi
12:05chadmedok nvm got them
12:05chadmedits a CD3218
12:05chadmednew proprietary chip just dropped
12:07jannauhttps://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
12:07chadmedtopmost chip of the left wing on the top side of the board for folks playing along at home
12:09bgb_ has quit [Ping timeout: 480 seconds]
12:15svenpretty sure we've seen CD3218 before
12:18chadmedinteresting. pinout is the same as the 3217 in any case, some lines just go to different places
12:18bgb_ has joined #asahi
12:20Misthios has quit [Quit: Misthios]
12:20Misthios has joined #asahi
12:20sveni think it started at cd3216 or so for the T2 macs
12:21sventhey're also known as ACE1 and ACE2 for some reason
12:24chadmedhuh it also uses CD3217s for the non-magsafe ports
12:26bgb_ has quit [Ping timeout: 480 seconds]
12:35bgb_ has joined #asahi
12:45bgb_ has quit [Ping timeout: 480 seconds]
12:48jannauhpm5 has "compatible = [usbc,cd3217]" as the other ports
12:54bgb_ has joined #asahi
13:02bgb_ has quit [Ping timeout: 480 seconds]
13:10bgb_ has joined #asahi
13:12marcancd3217/16/18 are all the same chip series AIUI
13:12marcanprobably just different roms if that
13:13marcanVinDuv: MagSafe 3 is just USB-PD
13:13marcanthe sense pin is now a CC pin
13:16marcanthey have a lot of chips, but apple always does that
13:17marcanprobably protection for the exposed pins (especially against noncompliant USB-C chargers that don't switch their output), the LED stuff, general marker/etc stuff
13:18bgb_ has quit [Ping timeout: 480 seconds]
13:28bgb_ has joined #asahi
13:42bgb_ has quit [Ping timeout: 480 seconds]
13:52bgb_ has joined #asahi
13:56X-Scale` has joined #asahi
14:00bgb_ has quit [Ping timeout: 480 seconds]
14:01X-Scale has quit [Ping timeout: 480 seconds]
14:08bgb_ has joined #asahi
14:16bgb_ has quit [Ping timeout: 480 seconds]
14:24bgb_ has joined #asahi
14:32bgb_ has quit [Ping timeout: 480 seconds]
14:35X-Scale has joined #asahi
14:40X-Scale` has quit [Ping timeout: 480 seconds]
14:40bgb_ has joined #asahi
14:48bgb_ has quit [Ping timeout: 480 seconds]
14:56bgb_ has joined #asahi
15:04bgb_ has quit [Ping timeout: 480 seconds]
15:15bgb_ has joined #asahi
16:01zopieux has quit [Ping timeout: 480 seconds]
16:03zopieux has joined #asahi
16:23bgb_ has quit [Ping timeout: 480 seconds]
16:30yuyichao has quit [Quit: Konversation terminated!]
16:32bgb_ has joined #asahi
16:40bgb_ has quit [Ping timeout: 480 seconds]
16:48bgb_ has joined #asahi
16:57bgb_ has quit [Ping timeout: 480 seconds]
17:04yuyichao has joined #asahi
17:04bgb_ has joined #asahi
17:11asie has joined #asahi
17:12bgb_ has quit [Ping timeout: 480 seconds]
17:21bgb_ has joined #asahi
17:30bgb_ has quit [Ping timeout: 480 seconds]
17:37bgb_ has joined #asahi
17:46bgb_ has quit [Ping timeout: 480 seconds]
17:55bgb_ has joined #asahi
18:03bgb_ has quit [Ping timeout: 480 seconds]
18:13bgb_ has joined #asahi
18:21bgb_ has quit [Ping timeout: 480 seconds]
18:29bgb_ has joined #asahi
18:33jnmarcan: i just noticed in the t6000/bringup-work branch's t6000.dtsi, the file comment still says T8103 and M1
18:37bgb_ has quit [Ping timeout: 480 seconds]
18:45bgb_ has joined #asahi
18:50utf8 has joined #asahi
18:53linearcannon has quit [Read error: Connection reset by peer]
18:53bgb_ has quit [Ping timeout: 480 seconds]
18:54pent1ckel has joined #asahi
18:55dsrt^ has quit [Ping timeout: 480 seconds]
19:02bgb_ has joined #asahi
19:09___nick___ has joined #asahi
19:10bgb_ has quit [Ping timeout: 480 seconds]
19:19bgb_ has joined #asahi
19:27bgb_ has quit [Ping timeout: 480 seconds]
19:31rohin2 has joined #asahi
19:35bgb_ has joined #asahi
19:43bgb_ has quit [Ping timeout: 480 seconds]
19:51bgb_ has joined #asahi
19:59bgb_ has quit [Ping timeout: 480 seconds]
20:07___nick___ has quit []
20:08bgb_ has joined #asahi
20:09rohin2 has quit [Ping timeout: 480 seconds]
20:09___nick___ has joined #asahi
20:16bgb_ has quit [Ping timeout: 480 seconds]
20:24bgb_ has joined #asahi
20:32bgb_ has quit [Ping timeout: 480 seconds]
20:42bgb_ has joined #asahi
20:50bgb_ has quit [Ping timeout: 480 seconds]
20:54bgb_ has joined #asahi
21:02bgb_ has quit [Ping timeout: 480 seconds]
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:08utf8 has quit []
21:09bgb_ has joined #asahi
21:18bgb_ has quit [Ping timeout: 480 seconds]
21:25bgb_ has joined #asahi
21:33bgb_ has quit [Ping timeout: 480 seconds]
21:42bgb_ has joined #asahi
21:50bgb_ has quit [Ping timeout: 480 seconds]
21:52aleasto has quit [Remote host closed the connection]
21:59bgb_ has joined #asahi
22:01aratuk has joined #asahi
22:08bgb_ has quit [Ping timeout: 480 seconds]
22:16bgb_ has joined #asahi
22:24bgb_ has quit [Ping timeout: 480 seconds]
22:24aratuk has quit [Remote host closed the connection]
22:25aratuk has joined #asahi
22:32bgb_ has joined #asahi
22:40bgb_ has quit [Ping timeout: 480 seconds]
22:48bgb_ has joined #asahi
22:49aratuk has quit []
22:56bgb_ has quit [Ping timeout: 480 seconds]
23:03m6wiq has quit [Quit: Leaving]
23:04bgb_ has joined #asahi
23:13bgb_ has quit [Ping timeout: 480 seconds]
23:18yrlf2 is now known as yrlf
23:21bgb_ has joined #asahi
23:29bgb_ has quit [Ping timeout: 480 seconds]
23:37bgb_ has joined #asahi
23:45bgb_ has quit [Ping timeout: 480 seconds]
23:54bgb_ has joined #asahi
…