#
…

2022-03-24

00:01user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:09dabaiste^ has joined #asahi-dev
00:39chadmed has joined #asahi-dev
00:55user982492 has joined #asahi-dev
01:05dabaiste^ has quit [Remote host closed the connection]
01:14yuyichao_ has quit [Ping timeout: 480 seconds]
01:16amarioguy has quit [Ping timeout: 480 seconds]
01:27NoahSchill[m] has joined #asahi-dev
01:53doggkruse has joined #asahi-dev
02:00DragoonAethis has quit [Quit: hej-hej!]
02:00DragoonAethis has joined #asahi-dev
02:06yuyichao_ has joined #asahi-dev
02:26amarioguy has joined #asahi-dev
02:49riker77_ has joined #asahi-dev
02:54skipwich has quit [Quit: DISCONNECT]
02:54riker77 has quit [Ping timeout: 480 seconds]
02:54riker77_ is now known as riker77
02:54skipwich has joined #asahi-dev
03:00skipwich has quit [Quit: DISCONNECT]
03:03skipwich has joined #asahi-dev
03:06skipwich has quit []
03:06AlvaroFigueroa[m] has joined #asahi-dev
03:07skipwich has joined #asahi-dev
03:08skipwich has quit []
03:10doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:10doggkruse has joined #asahi-dev
03:23phiologe has joined #asahi-dev
03:26PhilippvK has quit [Ping timeout: 480 seconds]
03:28amarioguy has quit [Ping timeout: 480 seconds]
03:30skipwich has joined #asahi-dev
03:32nicolas17 has quit [Quit: Konversation terminated!]
03:34skipwich has quit []
03:42kov has quit [Quit: Coyote finally caught me]
03:42kov has joined #asahi-dev
03:43skipwich has joined #asahi-dev
03:48skipwich has quit []
03:51skipwich has joined #asahi-dev
05:30KDDLB has quit [Remote host closed the connection]
05:30kode54 has quit [Remote host closed the connection]
05:35KDDLB has joined #asahi-dev
06:20doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:24jannauGlanzmann: FYI linux boots without obvious crashes on M1 Ultra (using the j314c dtb, that means it uses HW of the first die)
06:24jannauI guess that means I have to write a devicetree tonight
06:29jannaumarcan: did you spent more thought of how to avoid the manual duplication? I will probably start with a minimal dts with duplication
06:34kode54 has joined #asahi-dev
06:39Glanzmannjannau: Thank you for the update. :-)
06:41user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:47marcanjannau: nest two buses inside soc {} with ranges translating into the offset, and #include things into both
06:47marcanwe need to split t600x into different files
06:49marcanone for the base that's in M1 Pro and Max and is only on die 0 of Ultra (system core, stuff like smc and ans), one for the parts that are the intersection of both dies in Ultra and Pro, and one for the parts that are extra in Max and on both dies in Ultra
06:50marcanthen (re)define a simple macro to mangle the labels
06:50marcanjust something like #define L(x) d0_##x will do, before including anything in die 0
06:50marcanthen redefine for die 1
06:50marcanand wrap all the labels with that
06:51marcanI'm happy to give it a shot myself if you can wait though :-)
06:52marcanmine should be coming in soon, though I'll wait a few days after that before proper bring-up
06:55kode54I see there was a kernel update today
06:55marcanthat was yesterday, it's just a packaging thing
06:55marcanignore it
06:55marcanit has literally 0 changes
06:55marcanonly kernel-headers changed
06:55marcanand metadata
06:55kode54okay, thanks for the heads up
07:01jannaumakes sense. I'll try to verify that the second die works and wait otherwise. I should work on spi_hid anyway
07:45jakebot6 has joined #asahi-dev
07:45jakebot has quit [Read error: Connection reset by peer]
07:45jakebot6 is now known as jakebot
07:54jannaucurrent state of t6002 bringup for m1n1: https://github.com/jannau/m1n1/tree/t6002-bringup
07:55jannaustill rough edges and probably incomplete but enough for usb proxy, chainloading and running m1n1 under the HV
08:07jannau 7 files changed, 116 insertions(+), 21 deletions(-)
08:07jannauand 40% of that is just mapping the frame buffer
08:13MajorBiscuit has joined #asahi-dev
08:15Major_Biscuit has joined #asahi-dev
08:22MajorBiscuit has quit [Ping timeout: 480 seconds]
09:20jakebot has quit [Read error: Connection reset by peer]
09:20jakebot has joined #asahi-dev
09:51amarioguy has joined #asahi-dev
09:51amarioguy has quit [Remote host closed the connection]
10:01the_lanetly_052 has joined #asahi-dev
10:10chadmedim making a list of redundant/outdated wiki pages to get rid of
10:10chadmedany requests?
10:54klaus has joined #asahi-dev
10:54klaus has quit []
11:00jakebot has quit [Read error: Connection reset by peer]
11:01jakebot has joined #asahi-dev
11:10kameks has joined #asahi-dev
11:20chadmedjannau: am i right in understanding that on the M1 Ultra, only one die is responsible for whole-chip type stuff like SPI, DCP, etc?
11:28jakebot0 has joined #asahi-dev
11:30jakebot has quit [Ping timeout: 480 seconds]
11:30jakebot0 is now known as jakebot
11:46Glanzmannchadmed: Btw. the DesktopKernel was up2date and had all the config options in. So maybe we should keep it, but I also have the information in my m1-debian repository.
11:48jannauchadmed: most HW is on die 0, ans/nvme, 2 usb-c/thunderbolt ports and 1 gpio controller is used from die 1
11:48chadmedi was thinking that information would probably be better suited somewhere else, since the kernel builds are served up as packages now and we have canonical .config files in the repos
11:48chadmedjannau: thanks, just working on a feature support section for it and didnt want to get anything wrong
11:49j`eychadmed: I like the idea of documenting config options, the config files in the packages are big, and its not obvious what's important for the AS platforms or not
11:49Glanzmannchadmed: I see. Than leave it deleted. It was a pain to keep it up2date anyway.
11:50j`eybut I suppose most people wont be building kernels, so maybe it's not so important
11:50chadmedj`ey: yeah i was just about to say that info belongs somewhere, but probably in a developer-specific page
11:50chadmedas a sub-section of tethered booting or something like that
11:51j`eyGlanzmann: good to have them on the wiki too
11:51chadmedpovik: the only thing about that separation of responsibility between pw/wp is that wp cant actually set up new virtual devices, only manipulate ones pipewire has set up
11:52chadmedso idk what wim is talking about when he says what we want is a job for wireplumber
11:53Glanzmannj`ey: Lets see with what chadmed comes up with and we can always restore the 'DesktopKernel' page or call it somewhere else.
11:53jannauchadmed: it should not matter on which die a specific function is. we should have no problem using them on either die
11:53povikstrange, he explicitly says SM creates virtual sinks
11:54chadmedi cannot find a single piece of documentation to suggest that
11:54chadmedthe pipewire wiki explicitly says to use pipewire config fragments too
11:55povikcould it be a pipewire config fragment still means SM creates the sinks?
11:55povikjust that there's a unified config format
11:56chadmedi mean possibly, but you call them in with pipewire and they live in pipewire's config directories, not wireplumbers
11:56chadmedwhich has its own config fragments and lua scripting engine etc
11:57poviki should do some doc reading of my own to have an informed opinion
11:58chadmedit wont take you long, theres not much there :P
11:58Major_Biscuit has quit [Ping timeout: 480 seconds]
11:58chadmedwhich of course is 90% of the problem
11:59chadmedas i said last week, the vast vast vast majority of hte time it took me to deliver the first batch of FIRs for this machine was me just bumbling around trying to wrap my head around how any of this stuff works because documentation is just nonexistent
11:59Major_Biscuit has joined #asahi-dev
12:24Ashutosh[m] has joined #asahi-dev
12:26jakebot3 has joined #asahi-dev
12:31jakebot has quit [Ping timeout: 480 seconds]
12:32jakebot3 is now known as jakebot
12:39chadmed has quit [Remote host closed the connection]
12:48MajorBiscuit has joined #asahi-dev
12:50Major_Biscuit has quit [Ping timeout: 480 seconds]
12:56kameks has quit [Ping timeout: 480 seconds]
13:33manacho[m] has joined #asahi-dev
13:41yuyichao_ has quit [Ping timeout: 480 seconds]
13:59kita99 has joined #asahi-dev
14:05kelito has quit [Ping timeout: 480 seconds]
14:07yuyichao_ has joined #asahi-dev
14:08MajorBiscuit has quit [Ping timeout: 480 seconds]
14:19MajorBiscuit has joined #asahi-dev
14:52doggkruse has joined #asahi-dev
15:14doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:15amarioguy has joined #asahi-dev
15:15user982492 has joined #asahi-dev
15:20auhk[m] has joined #asahi-dev
15:34auhk[m] has left #asahi-dev [#asahi-dev]
15:35auhk[m] has joined #asahi-dev
15:35auhk[m] has left #asahi-dev [#asahi-dev]
16:13auhk[m] has joined #asahi-dev
16:14svenhuh, I wondered where that weird enum format thing I did in rtkit.c came from because I couldn’t remember doing that. It’s clang-format :/
16:15Major_Biscuit has joined #asahi-dev
16:16amarioguy has quit [Ping timeout: 480 seconds]
16:17MajorBiscuit has quit [Ping timeout: 480 seconds]
16:18auhk[m] has left #asahi-dev [#asahi-dev]
16:23auhk[m] has joined #asahi-dev
16:24shnert[m] has joined #asahi-dev
16:26shnert[m]Hello, it would be possibility to help with language translation in future segment of project?
16:28Thib[m] has joined #asahi-dev
16:32nicolas17 has joined #asahi-dev
16:40j`eysven: why it do something weird!
17:01user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:10amarioguy has joined #asahi-dev
17:14tpw_rulesjannau: so it does have two sockets, but is not NUMA
17:15jannaulscpu seems to count the clusters as sockets so it has 6 sockets
17:15jannau2 efficiency sockets and 4 performace sockets
17:16tpw_ruleshrm, i feel like i need a graphic
17:17tpw_rulesanyway, the "UltraFusion" thing works i guess?
17:18opticronthat's certainly an interesting way for lscpu to break up those cores
17:22jannauM1 Pro/Max has 1 cluster with 2 efficiency cores and 2 clusters with 4 performance cores each
17:22jannauM1 Ultr doubles that
17:23mazjannau: do you mind posting a full dmesg somewhere?
17:23maztpw_rules: I'd be very surprised if it wasn't NUMA. there is no way the interconnect doesn't add cost to the memory path if accessing cross node.
17:23maz(i.e. there is no magic).
17:25tpw_rulesi guess maybe linux just hasn't been told that yet?
17:25tpw_rulesi mean the way apple worded their marketing made it sound like it's not NUMA, but that's marketing
17:25mazindeed. if you don't put the NUMA description in DT, the kernel doesn't know about it.
17:26mazit doesn't mean it's free.
17:26tpw_rulesi guess annotating it as NUMA can't hurt
17:26AlvaroFigueroa[m]Here's an explanation of why it doesn't look like numa, even it "ultrafusion" is just marketing.
17:26mazlalala
17:28mazjannau: thanks!
17:29jannaucompiles 5.15 defconfig in 78 seconds
17:30mazinteresting, the MIDRs are different. which means the SEIS workaround for the ICV registers isn't applied.
17:31mazI guess I'll have to check whether the CPUs are affected by the same bug or not.
17:32j`eyjannau: fast
17:33tpw_rulesi assume an aarch64 defconfig
17:33jannauyes, native defconfig
17:37mazright, that's twice as fast as my current box, with a third of the CPUs. pretty much what I expected given the speed of my mini.
17:37jannauI'm a little surprised that it worked out of the box (ignoring simple errors in the devicetree)
17:39tpw_rulesso marcan guessed the multi-die interrupt support correctly?
17:42jannauI haven't added devices on th second die yet
17:42mazyup. now the fun begins to make Linux grok this crazy interrupt (non-)routing.
17:42mazjannau: do you see interrupts being taken on the CPUs sitting on the other die? other than timer interrupts, that is?
17:43jannauyes, roughly evenly distributed over all cores
17:45mazOK, cool.
17:50AdryzzOLEDEdition[m]try lstopo on the ultra
17:55svenxHCI host controller not responding, assume dead
17:55svenSo i guess there’s some usb issue?
17:56r0ni has quit [Ping timeout: 480 seconds]
17:57mazASmedia controller. I was hoping some something better, given the price of the machine...
17:58jannauit has a smc power enable gpio in the ADT but adding to dt hasn't changed anything. I assume it's the same controller as in the mini
17:59svenoh, it’s the one attached to pcie that has issues?
18:00sventhat’d surprising. I assumed it would be dwc3/atcphy again that caused trouble
18:01jannauyes, the four dwc3/atcphy ports on the first die work as expected as far as I can tell
18:01jannauI haven't added the ones from the second die yet
18:02amarioguy has quit [Ping timeout: 480 seconds]
18:02svenno iommu-map translation for id 0x10 on (null) <— don’t think I saw that one before either
18:03svencan it just not dma and fails when it tries to setup its event/command rings?
18:04user982492 has joined #asahi-dev
18:08mazjannau: not the same controller as the mini. mini has a FL1100, while this is an ASM2142
18:09mazsven: I get these messages on the mini too. that's because there is no mapping for the ports themselves.
18:10svenah, okay. I guess I just never noticed them then
18:12svennext wild guess: maybe it needs firmware like that controller on the iMac
18:13mazXHCI_NO_64BIT_SUPPORT
18:13mazscaryh.
18:17jannauASM3142 on the imac with 4 ports so it might be missing firmware
18:17svenat least it’s behind a DART which so far only allows 32bit IOVA space anyway
18:19mazsven: ah, true.
18:21nicolas17wait so did it Just Boot on the ultra?
18:21sventhat’s kinda what we hoped for ;)
18:24nicolas17but some of that stuff is like "turn on the cores on the other die", without that patch it still booted without those cores?
18:28jannauprobably if m1n1 would have been told to ignore the cores on the second die. without the changes it tries to start all cores and fails
18:29nicolas17still, seems that was relatively simple :)
18:36jannauyes, minimal effort since the cpu looks mostly just like two m1 max' and good preparation from marcan
18:36svenhuh, interesting. so nvme is on die 1 for some reason
18:42kelito has joined #asahi-dev
18:43jannaudistributes IO over the whole chip area, maybe the interposer is in the way
18:48the_lanetly_052 has quit [Ping timeout: 480 seconds]
19:06___nick___ has joined #asahi-dev
19:07m6wiq has joined #asahi-dev
19:18amarioguy has joined #asahi-dev
19:30rkjnsnI wonder if the M1 Max studio uses the same AS Media chip for the front USB-C ports, or something else.
19:56the_lanetly_052 has joined #asahi-dev
20:08the_lanetly_052 has quit [Ping timeout: 480 seconds]
20:09doggkruse has joined #asahi-dev
20:09kode54 has quit [Quit: Ping timeout (120 seconds)]
20:10skipwich has quit [Quit: DISCONNECT]
20:10nepeat has quit [Remote host closed the connection]
20:10kode54 has joined #asahi-dev
20:10skipwich has joined #asahi-dev
20:11nepeat has joined #asahi-dev
20:14kode54 has quit []
20:15cptcobalt has quit [Read error: Connection reset by peer]
20:15jkkm has quit [Write error: connection closed]
20:15Chainsaw has quit [Read error: Connection reset by peer]
20:15daniels has quit [Write error: connection closed]
20:15kendfinger has quit [Read error: Connection reset by peer]
20:15philpax_ has quit [Read error: Connection reset by peer]
20:15arnd has quit [Read error: Connection reset by peer]
20:15jbowen has quit [Write error: connection closed]
20:15tardyp has quit [Read error: Connection reset by peer]
20:15jabashque has quit [Write error: connection closed]
20:15NekomimiScience has quit [Write error: connection closed]
20:15esden has quit [Read error: Connection reset by peer]
20:15austriancoder has quit [Read error: Connection reset by peer]
20:15mmarchini has quit [Read error: Connection reset by peer]
20:15kode54 has joined #asahi-dev
20:15nathanchance has quit [Write error: connection closed]
20:15snek has quit [Read error: Connection reset by peer]
20:15cptcobalt has joined #asahi-dev
20:15philpax_ has joined #asahi-dev
20:15NekomimiScience has joined #asahi-dev
20:15esden has joined #asahi-dev
20:15daniels has joined #asahi-dev
20:15mmarchini has joined #asahi-dev
20:15snek has joined #asahi-dev
20:15jkkm has joined #asahi-dev
20:15jabashque has joined #asahi-dev
20:15tardyp has joined #asahi-dev
20:15austriancoder has joined #asahi-dev
20:15nathanchance has joined #asahi-dev
20:15kendfinger has joined #asahi-dev
20:16Chainsaw has joined #asahi-dev
20:16arnd has joined #asahi-dev
20:16jbowen has joined #asahi-dev
20:18kode54 has quit []
20:18kode54 has joined #asahi-dev
20:18jbowen has quit []
20:19jbowen has joined #asahi-dev
20:22___nick___ has quit [Ping timeout: 480 seconds]
20:23tardyp has quit [Read error: Connection reset by peer]
20:23kendfinger has quit [Read error: Connection reset by peer]
20:23Chainsaw has quit [Read error: Connection reset by peer]
20:23jabashque has quit [Read error: No route to host]
20:24jabashque has joined #asahi-dev
20:24austriancoder has quit [Read error: Connection reset by peer]
20:24kendfinger has joined #asahi-dev
20:24austriancoder has joined #asahi-dev
20:24tardyp has joined #asahi-dev
20:24Chainsaw has joined #asahi-dev
20:28tardyp has quit [Read error: No route to host]
20:28kendfinger has quit [Read error: Connection reset by peer]
20:28tardyp has joined #asahi-dev
20:28jbowen has quit [Read error: Connection reset by peer]
20:28jbowen has joined #asahi-dev
20:28arnd has quit [Read error: Connection reset by peer]
20:29arnd has joined #asahi-dev
20:29kendfinger has joined #asahi-dev
20:37amarioguy has quit [Ping timeout: 480 seconds]
20:41axenntio has joined #asahi-dev
20:42axenntio has quit []
20:42axenntio has joined #asahi-dev
20:43axenntio has quit []
20:43axenntio has joined #asahi-dev
20:43axenntio has quit []
20:44axenntio has joined #asahi-dev
20:47axenntio has quit []
20:56user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:12jannaurkjnsn: yes, according to the template ADT the m1 max mac studio has the same pcie usb controller
21:13jannauapple claims it is ASM3142 though so most likely the same part and firmware problem as on the imac
21:17axenntio has joined #asahi-dev
21:19m6wiq has quit []
21:22axenntio has quit []
21:22brentr123[m]hey has anyone reverse enginnered appkit and cocoa api?
21:22nicolas17to find what? :P
21:22nicolas17there's hundreds of huge frameworks
21:23brentr123[m]for the purposes of making something to run macos apps on linux
21:23brentr123[m]thats what i meant
21:23nicolas17but it's waaaay behind something like Wine
21:23brentr123[m]what i was referrring to
21:24nicolas17"we finally have basic experimental support for running simple graphical applications"
21:24brentr123[m]they need help over there, they dont have a ton of devs
21:24j`ey(also out of scope for this project/channel)
21:24brentr123[m]related cuz of mac
21:25nicolas17I wouldn't be surprised if darling doesn't support arm64 and that could be relevant, but beyond that...
21:25Major_Biscuit has quit []
21:25brentr123[m]nvm bro, j`ey is shitting his pants right now
21:25ChaosPrincessif you are ok with recompiling the app, then there is also gnustep/cocotron
21:26j`eybrentr123[m]: ?
21:26brentr123[m]he doesnt want me talking about this in here
21:26jnwell, there is the -offtopic channel, for things unrelated to asahi development..
21:26brentr123[m]i thought that channel got deleted
21:26jnnope, still around
21:27jannauhe mentioned that it out of scope here and I agree
21:29kelito has quit [Quit: Konversation terminated!]
21:44m6wiq has joined #asahi-dev
21:57user982492 has joined #asahi-dev
22:22r0ni has joined #asahi-dev
22:45amarioguy has joined #asahi-dev
23:02m6wiq has quit []
23:13jn has quit [Ping timeout: 480 seconds]
23:19jn has joined #asahi-dev
23:30tych0 has joined #asahi-dev
23:33yuyichao_ has quit [Ping timeout: 480 seconds]
23:52r0ni has quit [Quit: Textual IRC Client: www.textualapp.com]
23:53doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:57jn has quit [Ping timeout: 480 seconds]
…