#
…

2026-05-23

00:05maettu102 has quit [Quit: brb]
00:05maettu102 has joined #asahi-dev
00:06liangqi has joined #asahi-dev
00:09Mary has quit [Quit: .]
00:09Mary has joined #asahi-dev
00:14gargantua has quit [Ping timeout: 480 seconds]
00:14liangqi has quit [Ping timeout: 480 seconds]
00:19damas has quit [Ping timeout: 480 seconds]
00:22liangqi has joined #asahi-dev
00:41liangqi has quit [Remote host closed the connection]
00:45liangqi has joined #asahi-dev
01:05liangqi has quit [Ping timeout: 480 seconds]
01:16liangqi has joined #asahi-dev
01:30liangqi has quit [Ping timeout: 480 seconds]
01:41damas has joined #asahi-dev
01:45gargantua has joined #asahi-dev
01:49Z750 has quit [Quit: bye]
01:49damas has quit [Ping timeout: 480 seconds]
01:51Z750 has joined #asahi-dev
01:52liangqi has joined #asahi-dev
01:57___nick___ has quit []
01:58___nick___ has joined #asahi-dev
01:58___nick___ has quit []
01:59Z750 has quit [Quit: bye]
02:00liangqi has quit [Ping timeout: 480 seconds]
02:00___nick___ has joined #asahi-dev
02:01liangqi has joined #asahi-dev
02:09liangqi has quit [Ping timeout: 480 seconds]
02:16Z750 has joined #asahi-dev
02:24liangqi has joined #asahi-dev
02:24pb17 has quit [Ping timeout: 480 seconds]
02:26pb17 has joined #asahi-dev
02:30tobhe has joined #asahi-dev
02:32liangqi has quit [Ping timeout: 480 seconds]
02:37tobhe_ has quit [Ping timeout: 480 seconds]
02:56sofrosune has joined #asahi-dev
02:57liangqi has joined #asahi-dev
03:00kaguya_ has quit [Quit: Connection closed for inactivity]
03:05liangqi has quit [Ping timeout: 480 seconds]
03:11habiby has joined #asahi-dev
03:13damas has joined #asahi-dev
03:14liangqi has joined #asahi-dev
03:22liangqi has quit [Ping timeout: 480 seconds]
03:27habiby has quit [Ping timeout: 480 seconds]
03:27habiby has joined #asahi-dev
03:32damas has quit [Ping timeout: 480 seconds]
03:33liangqi has joined #asahi-dev
03:41liangqi has quit [Ping timeout: 480 seconds]
03:42damas has joined #asahi-dev
03:50damas has quit [Ping timeout: 480 seconds]
03:52delroth has quit [Remote host closed the connection]
03:56delroth has joined #asahi-dev
04:01nora has joined #asahi-dev
04:03nora_ has quit [Ping timeout: 480 seconds]
04:04zumi_ has joined #asahi-dev
04:08zumi has quit [Ping timeout: 480 seconds]
04:09zumi_ is now known as zumi
04:09pb17 has quit [Ping timeout: 480 seconds]
04:10pb17 has joined #asahi-dev
04:24liangqi has joined #asahi-dev
04:24MikeM64 has quit [Read error: Connection reset by peer]
04:26MikeM64 has joined #asahi-dev
04:33liangqi has quit [Ping timeout: 480 seconds]
04:41liangqi has joined #asahi-dev
04:44waltmck has joined #asahi-dev
04:49liangqi has quit [Ping timeout: 480 seconds]
05:01waltmck has quit [Remote host closed the connection]
05:02waltmck has joined #asahi-dev
05:02lukeleppan9 has quit [Quit: Ping timeout (120 seconds)]
05:03lukeleppan9 has joined #asahi-dev
05:13liangqi has joined #asahi-dev
05:21liangqi has quit [Ping timeout: 480 seconds]
05:28liangqi has joined #asahi-dev
05:43liangqi has quit [Ping timeout: 480 seconds]
05:50Yushi has quit [Remote host closed the connection]
05:50Yushi has joined #asahi-dev
05:58pb17 has quit [Ping timeout: 480 seconds]
06:06pb17 has joined #asahi-dev
06:07liangqi has joined #asahi-dev
06:11gargantua has quit [Ping timeout: 480 seconds]
06:19liangqi has quit [Ping timeout: 480 seconds]
06:23damas has joined #asahi-dev
06:26liangqi has joined #asahi-dev
06:33damas has quit [Ping timeout: 480 seconds]
07:00weirdtreething has quit [Remote host closed the connection]
07:00weirdtreething has joined #asahi-dev
07:11liangqi has quit [Ping timeout: 480 seconds]
07:19liangqi has joined #asahi-dev
07:20jn has joined #asahi-dev
07:27sofrosune has quit []
07:40liangqi has quit [Remote host closed the connection]
07:40liangqi has joined #asahi-dev
07:42lukeleppan9 has quit [Quit: Ping timeout (120 seconds)]
07:42lukeleppan9 has joined #asahi-dev
07:42lukeleppan9 has quit []
07:45waltmck has quit [Remote host closed the connection]
07:45waltmck has joined #asahi-dev
07:46waltmck has quit [Remote host closed the connection]
07:46waltmck has joined #asahi-dev
07:48lukeleppan91 has joined #asahi-dev
08:08liangqi has quit [Remote host closed the connection]
09:26gargantua has joined #asahi-dev
09:34liangqi has joined #asahi-dev
09:40liangqi has quit [Remote host closed the connection]
09:40liangqi has joined #asahi-dev
09:52rany has quit [Remote host closed the connection]
09:57rany has joined #asahi-dev
10:03zumi_ has joined #asahi-dev
10:08zumi has quit [Ping timeout: 480 seconds]
10:08zumi_ is now known as zumi
10:10gargantua has quit [Ping timeout: 480 seconds]
10:11gargantua has joined #asahi-dev
10:29kaazoo has joined #asahi-dev
10:35yukaI'm trying some usb shenanigans on the macbook neo
10:35yukaI see the usb-repeater (addr 0x21) on i2c2
10:35yukabut not the usb-hub (addr 0x2c)
10:40yukaguessing this is some power thing again
10:43yukaAlso, pd_ignore_unused does not seem to work for me
10:44yukaIt prints "genpd: Not disabling unused power domains" but then continues to disable them (according to following "PS ...: pwrstate = ..." prints)
11:05kaguya_ has joined #asahi-dev
11:11yukagot it
11:11yukahad to reset the usb hub
11:12yukanow it shows up on i2c
11:21beastd has quit [Quit: KVIrc 5.2.10 Quasar http://www.kvirc.net/]
11:28hardy94 has joined #asahi-dev
11:32beastd has joined #asahi-dev
12:19gargantua has quit [Ping timeout: 480 seconds]
12:24liangqi_ has joined #asahi-dev
12:26damas has joined #asahi-dev
12:29kaazoo has quit [Quit: Leaving.]
12:30liangqi has quit [Ping timeout: 480 seconds]
12:36gargantua has joined #asahi-dev
12:43damas has quit [Read error: Connection timed out]
12:46liangqi_ has quit []
12:58liangqi has joined #asahi-dev
13:00liangqi has quit [Remote host closed the connection]
13:01liangqi has joined #asahi-dev
13:01jannauI've tagged and pushed asahi-7.0.10-1 to github. rust builds will now fail without toolchain and additional m3 pro/max hardware support: nvme, mtp and smc
13:02jannaufl0_id: I did already ^^^
13:03yukaI take any guesses on what tunable-vl, tunable-gl and tunable-vlf0 mean
13:03yukafor the usb-hub-i2c
13:03yukathere are only so many knobs on this thing
13:06qyliss has quit [Quit: bye]
13:06yukaevery fourth byte is zero so I guess it's always one byte address, one byte mask and one byte value
13:06yukaand then padding to 32-bit
13:07gargantu1 has joined #asahi-dev
13:07yuka(fwiw these "tunables" are also in the device tree extracted from ipsw, so they are not device specific)
13:07jannauany information on the hub's maker and model?
13:07qyliss has joined #asahi-dev
13:08yukaVia Labs VL122
13:08yukayou can spot it on the teardown pics
13:08yukayes but no data sheet
13:08yukaor i2c interface documentation
13:09yuka> VL122-based hub devices work under Windows, Mac OS X, and various Linux kernels without additional drivers
13:10yukanot if I'm the VL122 based hub
13:11gargantua has quit [Ping timeout: 480 seconds]
13:12ArcaneNibble has quit [Quit: ZNC 1.8.2 - https://znc.in]
13:14liangqi has quit [Ping timeout: 480 seconds]
13:15yukai2c bus 1 here is i2c2
13:15yukadevice 0x21 (the usb-repeater according to adt) was already present at boot
13:16yukadevices 0x2c and 0x3b appeared after resetting the hub
13:16yukathe first few i2c addresses of the hub smell like usb vendor/product id
13:16yuka0x2109 = via labs
13:17yuka0x2122 = vl211 (just a guess, this is not in the usb ids database)
13:17yuka*= vl122
13:17yukaIf I could these i2c values from a running mac os, that would be probably helpful
13:18yukaI wonder if a kext can simply talk to the i2c mmio directly
13:22liangqi has joined #asahi-dev
13:25liangqi has quit [Remote host closed the connection]
13:25liangqi has joined #asahi-dev
13:27ArcaneNibble has joined #asahi-dev
13:27ArcaneNibble has quit []
13:28ArcaneNibble has joined #asahi-dev
13:32yukaIs the hub a "HPM" device? Does this work for non-HPM devices?
13:54habiby has quit [Ping timeout: 480 seconds]
13:54habiby has joined #asahi-dev
14:04yukaThe AppleHPMLib plugin does not work for sure
14:04yukaIOCreatePlugInInterfaceForService failed
14:05yukaThere is IOI2CInterfaceOpen
14:09gargantu1 has quit [Ping timeout: 480 seconds]
14:13yukasadly this also fails
14:14jannauno, but HPM were i2c devices and the interface smells like macos could have an i2c in userspace API
14:18fl0_d has joined #asahi-dev
14:18yukaat least it's very difficult to get documentation on the available "plug-ins"
14:18yukaand their uuids
14:18fl0_djannau, awesome :) I look forward to testing once I have my work stuff restored from backup
14:22qyliss has quit [Quit: bye]
14:23fl0_djannau, none of these have pcie yet, right?
14:24qyliss has joined #asahi-dev
14:24jannauyes, no pcie for t603x
14:41oliver has quit [Ping timeout: 480 seconds]
14:48oliver has joined #asahi-dev
15:02oliver has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
15:12oliver has joined #asahi-dev
15:22oliver_ has joined #asahi-dev
15:25nela has quit [Ping timeout: 480 seconds]
15:26oliver has quit [Ping timeout: 480 seconds]
15:27pb17 has quit [Ping timeout: 480 seconds]
15:28pb17 has joined #asahi-dev
15:29nela has joined #asahi-dev
15:33nela has quit []
15:34damas has joined #asahi-dev
15:37nela has joined #asahi-dev
15:54damas has quit [Read error: Connection timed out]
15:57liangqi has quit [Remote host closed the connection]
15:58liangqi has joined #asahi-dev
15:58damas has joined #asahi-dev
16:00liangqi has quit [Remote host closed the connection]
16:00liangqi has joined #asahi-dev
16:04liangqi has quit [Remote host closed the connection]
16:04zumi_ has joined #asahi-dev
16:04liangqi has joined #asahi-dev
16:09zumi has quit [Ping timeout: 480 seconds]
16:09zumi_ is now known as zumi
16:16liangqi has quit [Ping timeout: 480 seconds]
16:16damas has quit [Read error: Connection timed out]
16:35liangqi has joined #asahi-dev
16:37damas has joined #asahi-dev
16:44liangqi has quit [Ping timeout: 480 seconds]
16:52liangqi has joined #asahi-dev
16:53kaazoo has joined #asahi-dev
16:56kaazoo has quit [Remote host closed the connection]
16:56kaazoo has joined #asahi-dev
17:02liangqi has quit [Ping timeout: 480 seconds]
17:05liangqi has joined #asahi-dev
17:06kaazoo has quit [Remote host closed the connection]
17:07liangqi has quit [Remote host closed the connection]
17:07damas has quit [Ping timeout: 480 seconds]
17:07liangqi has joined #asahi-dev
17:17damas has joined #asahi-dev
17:20liangqi has quit [Ping timeout: 480 seconds]
17:22oliver has joined #asahi-dev
17:24liangqi has joined #asahi-dev
17:25damas has quit [Ping timeout: 480 seconds]
17:26oliver_ has quit [Ping timeout: 480 seconds]
17:31__nick__ has joined #asahi-dev
17:34___nick___ has quit [Ping timeout: 480 seconds]
17:35liangqi has quit [Ping timeout: 480 seconds]
17:44liangqi has joined #asahi-dev
17:47damas has joined #asahi-dev
17:48oliver_ has joined #asahi-dev
17:49hardy94 has quit [Remote host closed the connection]
17:51oliver has quit [Ping timeout: 480 seconds]
17:57damas has quit [Remote host closed the connection]
17:58damas has joined #asahi-dev
18:01gargantua has joined #asahi-dev
18:07liangqi has quit [Ping timeout: 480 seconds]
18:10kaazoo has joined #asahi-dev
18:11kaazoo has quit [Remote host closed the connection]
18:12kaazoo has joined #asahi-dev
18:14kaazoo has quit [Remote host closed the connection]
18:15kaazoo has joined #asahi-dev
18:15kaazoo has quit [Remote host closed the connection]
18:17liangqi has joined #asahi-dev
18:18kaazoo has joined #asahi-dev
18:19kaazoo has quit []
18:19kaazoo has joined #asahi-dev
18:19kaazoo has quit [Remote host closed the connection]
18:20kaazoo has joined #asahi-dev
18:21kaazoo has quit []
18:22habiby has quit [Ping timeout: 480 seconds]
18:25liangqi has quit [Ping timeout: 480 seconds]
18:28waltmck has quit [Remote host closed the connection]
18:29waltmck has joined #asahi-dev
18:47crabbedhaloablut has quit []
18:47crabbedhaloablut has joined #asahi-dev
18:51damas has quit [Ping timeout: 480 seconds]
19:10Ardu0us_ has quit [Quit: %Reality broken: (I)gnore, (R)etry, (A)bort%]
19:11Ardu0us has joined #asahi-dev
19:31yukaThis may sound stupid but does anyone know how to do any kind of printf / logging in a kext in recent mac os?
19:31yukaI can find very little on it
19:37yukaFailed to bind '_IOLog' in 'yuka.i2c'
19:41liangqi has joined #asahi-dev
19:42chaos_princessmaybe missing an include? it could be some header-only thing
19:43chaos_princesslike, it should be there?
19:44yukaFound it
19:44yukaI had to add an entry in the Info.plist
19:44yukato be able to link against the com.apple.kpi.iokit kext, which provides the iolog symbol
19:50yukaworks!
19:56hardy94 has joined #asahi-dev
19:56damas has joined #asahi-dev
20:02liangqi has quit [Ping timeout: 480 seconds]
20:04liangqi has joined #asahi-dev
20:06damas has quit [Ping timeout: 480 seconds]
20:07__nick__ has quit [Remote host closed the connection]
20:25chnoblouch[m] has joined #asahi-dev
20:25yukaSad, I can't just access mmio from a kext
20:25yukaprobably have to use the blessed apple functions for that
20:26liangqi has quit [Ping timeout: 480 seconds]
20:29yukaThe thing must already be mapped
20:30yukaI think
20:30yukaI was trying uart because I know this better than i2c
20:30chaos_princessis it mapped where you expect it to be?
20:30yukathat, I don't know
20:30chaos_princesscause i am sure you can just read and write to io memory from a kext, you just need to map it first
20:30yukaI also saw another address in "ioreg"
20:31yukauart0@75200000
20:31hardy94 has quit [Quit: hardy94]
20:31yukainstead of 385200000 in m1n1
20:32yukabut thanks, I will try withPhysicalAddress
20:32jannau+ 0x2_1000_0000
20:33jannauerr, missing 0x1_0000_0000
20:33yukain the adt it's 0x1_7520_0000
20:33yukain ioreg it's just 0x7520_0000
20:33yukaunclear what this means
20:37___nick___ has joined #asahi-dev
20:49liangqi has joined #asahi-dev
20:59liangqi has quit [Ping timeout: 480 seconds]
21:01Yushi_ has joined #asahi-dev
21:04damas has joined #asahi-dev
21:06Yushi has quit [Ping timeout: 480 seconds]
21:09liangqi has joined #asahi-dev
21:10Yushi_ is now known as Yushi
21:15damas has quit [Ping timeout: 480 seconds]
21:18liangqi has quit [Ping timeout: 480 seconds]
21:26liangqi has joined #asahi-dev
21:30jannaudid apple switch the local / remote dockchanel mmio regions on m3around ?
21:30jannaus/around //
21:34pb17 has quit [Ping timeout: 480 seconds]
21:35liangqi has quit [Ping timeout: 480 seconds]
21:40___nick___ has quit [Remote host closed the connection]
21:41pb17 has joined #asahi-dev
21:41liangqi has joined #asahi-dev
21:49liangqi has quit [Ping timeout: 480 seconds]
21:50yukaif you were relating to my fiddling, this is about uart0
21:51yukaUsing withPhysicalAddress(0x17) and IOMapped{Read,Write}32 it doesn't crash
21:51yuka* withPhysicalAddress(0x175200000)
21:51yukabut I get 0 for all reads
21:51yukaat least I tried +UTRSTAT / +UBRDIV
21:52yukawhile I was using the debug-console
21:52chaos_princessi think you should add 210000000 on that one
21:53jannauno, this is about mtp dockchannel and explains the broken hand-over from u-boot to linux
21:58yukaDunno, dockchannel mtp works fine in linux on A18 Pro
21:59liangqi has joined #asahi-dev
22:01jannausame on m3*. it's broken after initializing it in u-boot and then booting linux
22:02jannauu-boot stores the initialization packets and writes them into the remote (rmt) fifo so that linux will be able to read them
22:06zumi_ has joined #asahi-dev
22:10zumi has quit [Ping timeout: 480 seconds]
22:10___nick___ has joined #asahi-dev
22:11zumi_ is now known as zumi
22:12gargantua has quit [Ping timeout: 480 seconds]
22:17liangqi has quit [Remote host closed the connection]
22:21liangqi has joined #asahi-dev
22:25yukachaos_princess: you were right about +210000000
22:26yukaI can write to uart from a kext :)
22:26yukaNext, dumping i2c
22:28fl0_d has quit [Quit: Leaving]
22:34liangqi has quit [Ping timeout: 480 seconds]
22:38liangqi has joined #asahi-dev
22:39yukaIt would be kinda funny if I could compile parts of m1n1 into a kext
22:39yukalike the proxy
22:41yukaProper scheduling of it would be difficult, but if it can just have one core
22:43chaos_princessthere was some api that does a callback into your kext from idle thread
22:46liangqi has quit [Ping timeout: 480 seconds]
22:48jannaucpufreq and M3 Pro/Max pcie are missing for bare minimal M3* support
22:50os has quit [Quit: Ping timeout (120 seconds)]
22:51os has joined #asahi-dev
22:55liangqi has joined #asahi-dev
23:08liangqi has quit [Ping timeout: 480 seconds]
23:12liangqi has joined #asahi-dev
23:20liangqi has quit [Ping timeout: 480 seconds]
23:29damas has joined #asahi-dev
23:29liangqi has joined #asahi-dev
23:31Pokemod97736208471281833 has quit []
23:38liangqi has quit [Ping timeout: 480 seconds]
23:46damas has quit [Read error: Connection timed out]
23:47liangqi has joined #asahi-dev
23:47damas has joined #asahi-dev
23:48chadmed has quit [Quit: Konversation terminated!]
23:55liangqi has quit [Ping timeout: 480 seconds]
23:59liangqi has joined #asahi-dev
…