2021-11-05
00:44yuyichao has quit [Ping timeout: 480 seconds]
01:16shenkijannau: the hypervisor keeping the usb port, if I'm seeing it drop off part way through osx boot then it must be a different issue?
01:25shenkinevermind. i was planning on looking at how the pmu worked, but i see maz has a driver in his tree already
02:00chadmedhuh so apparently apple will at some point in the next couple of years be trying to sell its silicon to hyperscalers. we might be getting first party help
02:06chadmedwell no one in the datacentre/infrastructure market is going to just accept running macos server, theyre going to want linux. so if apple plan on selling their chips into this market, they will need to make sure they run linux.
02:06mps has quit [Ping timeout: 480 seconds]
02:07timetheory[m]I feel like the most likely scenario is that they make their own port
02:07timetheory[m]When has Apple ever helped an open source project majorly
02:07timetheory[m]It’s probably countable on a single hand
02:08timetheory[m]Yeah they don’t contribute back the code to upstream 99% of the time
02:08chadmedyeah but linux is GPL2 licensed, so they cant do what they usually do with MIT/BSD licensed projects
02:08chadmedthey will need to make the source for their modifications available upon request, and a big deal in that market segment is audit. theyre not going to run black box kernels on their machines. if apple are serious about getting back into the server game, they have to play by the markets rules, which are very different to the consumer segment
02:09timetheory[m]They’re running black box Secure Enclaves either way
02:10timetheory[m]What I think is the most likely is that they just make macOS based on BSD or something
02:10chadmedyeah and they also run amd psp and intel me, that device firmware doesnt matter so much as actual kernel modifications to these guys
02:11timetheory[m]If they really want to use iChips they’ll use it even if the software is black box
02:11timetheory[m]Frankly the best that can reasonably be hoped for is for Apple to post their code on GitHub or something without documentation on the changes
02:12timetheory[m]I doubt they’re giving us actual documentation on hardware and stuff
02:12chadmedno they wont, not unless apple provide some absolutely enormous benefit over the status quo. apple simply wont sell any chips if they come in acting like hotshots trying to dictate what customers can and cannot run on their chips.
02:13timetheory[m]Fine maybe they’ll release the documents to the high paying customers under strict NDAs
02:14timetheory[m]But it’s being too hopeful to think Apple will directly try to help us and send documentation our way
02:15chadmedoh no i didnt mean direct help for us specifically, but they will in some form or another be forced to make linux work on their chips, and because linux is GPL2 licensed, they have to make those modifications public
02:16chadmedthey are used to obfuscating their open source forks because they usually just prey on BSD/MIT licensed stuff. they cant do that with linux.
02:16timetheory[m]Yeah that’s possible
02:16chadmedso either way, if theyre serious about that market, we will benefit indirectly at the very least
02:17timetheory[m]I thought you meant “hey it’s Apple, we’re really impressed by your work, here’s all of our secret chip design documents to help you guys get along a bit quicker”
03:38kov has quit [Quit: Coyote finally caught me]
03:53hspak has quit [Quit: The Lounge - https://thelounge.chat]
03:53hspak has joined #asahi
03:58phiologe has joined #asahi
04:01PhilippvK has quit [Ping timeout: 480 seconds]
04:54marcanI remember getting a POWER4 box to boot bare metal, but KVM can't support that platform (I think it even lacks a hypervisor decrementer? there was something pretty major missing IIRC)
05:00marvin24 has joined #asahi
05:03marvin24_ has quit [Ping timeout: 480 seconds]
05:16yuyichao has joined #asahi
06:12jannaushenki: what is dropped off during the mac os boot? the vUART with mac os log messages? does mac os boots to the login screen and is useable?
06:16dioput12 has joined #asahi
06:35dioput12 has left #asahi [#asahi]
06:54mps has joined #asahi
06:55bgb has joined #asahi
06:59bgb_ has quit [Ping timeout: 480 seconds]
07:43rkt has left #asahi [#asahi]
07:44rkt has joined #asahi
07:46labavonn has joined #asahi
07:47sailorek1234 has joined #asahi
08:14mazshenki: there is still plenty of work to be done on the PMU. only *two* events are know. it you have time to write test cases and work out some of the most obvious events (cache miss, for example), that'd be useful.
08:18_jannau_maz: I'm still confused that the defined events from the xnu source code do not work. There is even a filter so I doubt mac os user space uses different event id
08:22maz_jannau_: the events are for much older CPUs. they all have A32/T32 events, which makes no sense on a 64bit only CPU.
08:31_jannau_I guess from the source code that apple has two PMU types. the non-early design was added before apple removed a32/t32 support. the event id are still there for supporting the old CPUs. I would expect them to simply count nothing on M1
08:31maz_jannau_: the most recent stuff is Hurricane, which predates the M1 cores by at least 4 years. In general, events are reorganised pretty often to fit the uarch, so it is quite understandable that the event numbering is vastly different.
08:34mazI'm also pretty sure that counter #1 (instruction count) is completely synthetic. there is no other event that counts anything close.
08:40maz_jannau_: if you have the equivalent of perf in macos and it disclose the raw event numbers, that'd be great!
08:43_jannau_I'm only aware of the Instruments GUI and I would be surprised if it listed raw event numbers. my plan was to use a single event and observe PMC register writes
08:45_jannau_yes, we disable the pmu while we are in the hv to avoid dealing with pmu irqs in the hv
08:53aleasto has joined #asahi
09:01psykose has quit [Read error: No route to host]
09:01psykose has joined #asahi
09:13rkt is now known as Guest4991
09:13rkt_ has joined #asahi
09:13rkt_ is now known as rkt
09:15labavonn has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
09:15Guest4991 has quit [Ping timeout: 480 seconds]
09:17labavonn has joined #asahi
09:26labavonn has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
09:45svenmaz: / jannau: there's /usr/share/kpep/a14.plist which may or may not contain the numbers for some of these events
09:48svenINST_NEON_OR_FP might be easy to test which would be "number: 154" in that file (for some reason that's not what apple calls a fixed_counter?)
09:54svenFIXED_CYCLES / CYCLE is fixed_counter: 0 and FIXED_INSTRUCTIONS / INST_ALL is fixed_counter: 1
10:00bgbjannau, maz: there are many event numbers in a14.plist/a15.plist! seems this is what we need
10:28bgbsven: simple and powerful...btw, is it ok to publish the ascii text(xcode parsed) on the wiki page ?
10:28svenif you also add google to those tools there's also https://github.com/dougallj/applecpu/blob/main/timer-hacks/bench.py#L85
10:51bgbmaz: btw, the "counters_mask" in plist seems representing the usable counter regs for corresponding event
10:58mazis there a public repo with this file? dougall's python script doesn't seem to do anything...
11:15chadmedsame way you would avoid plagiarism in any written work based on the work of others. rewrite it in your own words :)
11:18kettenisbut if you use some sort of automatic process to do a 1:1 translation it is debatable whether it is your own expression of the same information
11:18chadmedyeah dont just dump out what xcode gives you and rename some assignments. parse the output in your brain and write it down in a sensible list yourself or something
11:19chadmedassuming its just a list of counters with their addresses or whatever, this is pretty trivial and saves you getting chased down by apples army of faceless men
11:20chadmeddont forget, this is the same company that quite literally hires former spies and PMCs to "patrol" gathering spots around their offices to eavesdrop on staff and make sure theyre not discussing company matters off the clock. dont test them.
12:27bgb has quit [Ping timeout: 480 seconds]
12:35bgb has joined #asahi
12:46bgb has quit [Ping timeout: 480 seconds]
12:54nskli'm hungry for progress infos, what twitter account could i look at beside marcan, sven and alyssa's ?
12:54nsklwhile being here too on #asahi and all the sub channels.. is there some other places to look at ?
12:55bgb has joined #asahi
13:01j_eymaz: according to wikipedia frank zappa released 119 albums, what happens when you run out?
13:03bgb has quit [Ping timeout: 480 seconds]
13:11mazj_ey: the theme is *songs* by FZ, not albums: http://lib.ru/SONGS/frankzappa/listofsongs.txt
13:12bgb has joined #asahi
13:20bgb has quit [Ping timeout: 480 seconds]
13:26kettenis has quit [Quit: Lost terminal]
13:28bgb has joined #asahi
13:34yuyichao has quit [Ping timeout: 480 seconds]
13:36bgb has quit [Ping timeout: 480 seconds]
13:45bgb has joined #asahi
13:51X-Scale` has joined #asahi
13:53mazbgb: I'm generating the event-map myself. after all, it is just a matter of iterating through the event space with all counters configured the same way, and see what sticks.
13:53bgb has quit [Ping timeout: 480 seconds]
13:53yuyichao has joined #asahi
13:57X-Scale has quit [Ping timeout: 480 seconds]
13:57[X-Scale] has joined #asahi
13:58kettenis has joined #asahi
14:01bgb has joined #asahi
14:02X-Scale` has quit [Ping timeout: 480 seconds]
14:10bgb has quit [Ping timeout: 480 seconds]
14:12unrelentingtech has joined #asahi
14:17bgb has joined #asahi
14:26bgb has quit [Ping timeout: 480 seconds]
14:35bgb has joined #asahi
14:43bgb has quit [Ping timeout: 480 seconds]
14:50sailorek1234 has quit []
14:51bgb has joined #asahi
14:59bgb has quit [Ping timeout: 480 seconds]
15:07bgb has joined #asahi
15:14jan[m]123 is now known as lockejan[m]
15:15yuyichao_ has joined #asahi
15:15bgb has quit [Ping timeout: 480 seconds]
15:16richbridger has quit [Remote host closed the connection]
15:16richbridger has joined #asahi
15:18yuyichao has quit [Ping timeout: 480 seconds]
15:25bgb has joined #asahi
15:33bgb has quit [Ping timeout: 480 seconds]
15:34dsrt^ has quit [Ping timeout: 480 seconds]
15:41bgb has joined #asahi
15:49bgb has quit [Ping timeout: 480 seconds]
15:55mazPMU driver updated with a mapping table of which event can count where. Probably not complete, but that's what I could find with a bit of experimentation.
15:58bgb has joined #asahi
16:06bgb has quit [Ping timeout: 480 seconds]
16:15bgb has joined #asahi
16:23bgb has quit [Ping timeout: 480 seconds]
16:32bgb has joined #asahi
16:39pitust[m]Could i install asahi on my laptop? even if it's not super usable, it'd be interesting to try
16:40bgb has quit [Ping timeout: 480 seconds]
16:48bgb has joined #asahi
16:56bgb has quit [Ping timeout: 480 seconds]
17:04bgb has joined #asahi
17:06[X-Scale] is now known as X-Scale
17:12bgb has quit [Ping timeout: 480 seconds]
17:20bgb has joined #asahi
17:29bgb has quit [Ping timeout: 480 seconds]
17:36bgb has joined #asahi
17:44bgb has quit [Ping timeout: 480 seconds]
17:54bgb has joined #asahi
17:56tertu has joined #asahi
17:58tertu2 has quit [Ping timeout: 480 seconds]
18:02bgb has quit [Ping timeout: 480 seconds]
18:10bgb has joined #asahi
18:13___nick___ has joined #asahi
18:13___nick___ has quit []
18:15___nick___ has joined #asahi
18:18bgb has quit [Ping timeout: 480 seconds]
18:27bgb has joined #asahi
18:35bgb has quit [Ping timeout: 480 seconds]
18:45bgb has joined #asahi
18:54bgb has quit [Ping timeout: 480 seconds]
19:02bgb has joined #asahi
19:02timokrgr6 has joined #asahi
19:08timokrgr has quit [Ping timeout: 480 seconds]
19:08timokrgr6 is now known as timokrgr
19:10bgb has quit [Ping timeout: 480 seconds]
19:20bgb has joined #asahi
19:23jix_ has joined #asahi
19:24jix has quit [Ping timeout: 480 seconds]
19:28bgb has quit [Ping timeout: 480 seconds]
19:33malvo has quit [Ping timeout: 480 seconds]
19:33malvo has joined #asahi
19:37bgb has joined #asahi
19:45bgb has quit [Ping timeout: 480 seconds]
19:49simjnd[m]<pitust[m]> "Could i install asahi on my..." <- I think they're still working on an installer that can be used by us mere mortals
19:49malvo has quit [Ping timeout: 480 seconds]
19:50dsrt^ has joined #asahi
19:53bgb has joined #asahi
20:01bgb has quit [Ping timeout: 480 seconds]
20:19malvo has joined #asahi
20:23aleasto has quit [Remote host closed the connection]
20:34yuyichao has joined #asahi
20:38yuyichao_ has quit [Ping timeout: 480 seconds]
21:01bgb has joined #asahi
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:08Misthios has quit [Quit: Ping timeout (120 seconds)]
21:08Misthios has joined #asahi
21:09bgb has quit [Ping timeout: 480 seconds]
21:18bgb has joined #asahi
21:19Eric[m] has joined #asahi
21:24dottedmag has quit [Quit: QUIT]
21:26yrlf2 has joined #asahi
21:26bgb has quit [Ping timeout: 480 seconds]
21:27jannau_ has joined #asahi
21:27lanodan_ has joined #asahi
21:28yrlf has quit [Remote host closed the connection]
21:28lanodan has quit [Read error: Connection reset by peer]
21:28jannau has quit [Remote host closed the connection]
21:28Eric[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28marvin24 has quit [reticulum.oftc.net liquid.oftc.net]
21:28oi_wtf has quit [reticulum.oftc.net liquid.oftc.net]
21:28grange_c has quit [reticulum.oftc.net liquid.oftc.net]
21:28tasild[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28astrorion26[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28long[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28Raito_Bezarius has quit [reticulum.oftc.net liquid.oftc.net]
21:28os has quit [reticulum.oftc.net liquid.oftc.net]
21:28roxfan has quit [reticulum.oftc.net liquid.oftc.net]
21:28d4ve has quit [reticulum.oftc.net liquid.oftc.net]
21:28arekm has quit [reticulum.oftc.net liquid.oftc.net]
21:28Synth[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28Fanfwe has quit [reticulum.oftc.net liquid.oftc.net]
21:28suricato has quit [reticulum.oftc.net liquid.oftc.net]
21:28crabbedhaloablut has quit [reticulum.oftc.net liquid.oftc.net]
21:28bradfier has quit [reticulum.oftc.net liquid.oftc.net]
21:28YichaoYu[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28wollymilkcap[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28ytg has quit [reticulum.oftc.net liquid.oftc.net]
21:28TellowKrinkle[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28vasilymilovidov[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28Guest3421 has quit [reticulum.oftc.net liquid.oftc.net]
21:28SocioProphet[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28Spectrejan[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28simjnd[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28samfromspace[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28sajattack[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28pho[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28PeterHilgenfeld[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28Scott[m]1 has quit [reticulum.oftc.net liquid.oftc.net]
21:28nilsi[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28PedroArajo[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28lemonsus[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28marcan[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28kdrag0n[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28lockna has quit [reticulum.oftc.net liquid.oftc.net]
21:28GenieLotion[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28joerosenberg[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28parabola[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28fridtjof[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28CristianMgheruan-Stanciu[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28cavoirom[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28PeterB[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28brentr123[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28AnushervonTabarov[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28davay[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28bastilian[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28AkihikoOdaki[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28ganpa[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28idf00[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28nfbyte has quit [reticulum.oftc.net liquid.oftc.net]
21:28ninja[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28xerpi[m] has quit [reticulum.oftc.net liquid.oftc.net]
21:28emilazy has quit [reticulum.oftc.net liquid.oftc.net]
21:28alicela1n has quit [reticulum.oftc.net liquid.oftc.net]
21:28psydroid[m]1 has quit [reticulum.oftc.net liquid.oftc.net]
21:28akemin_dayo has quit [reticulum.oftc.net liquid.oftc.net]
21:28trepatudo has quit [reticulum.oftc.net liquid.oftc.net]
21:28nsr has quit [reticulum.oftc.net liquid.oftc.net]
21:28Stary has quit [reticulum.oftc.net liquid.oftc.net]
21:28eta has quit [reticulum.oftc.net liquid.oftc.net]
21:28Esmil has quit [reticulum.oftc.net liquid.oftc.net]
21:28jato has quit [reticulum.oftc.net liquid.oftc.net]
21:28hl` has quit [reticulum.oftc.net liquid.oftc.net]
21:28Xesxen has quit [reticulum.oftc.net liquid.oftc.net]
21:28null has quit [reticulum.oftc.net liquid.oftc.net]
21:29dottedmag has joined #asahi
21:30xerpi[m] has joined #asahi
21:30Eric[m] has joined #asahi
21:30suricato has joined #asahi
21:30marvin24 has joined #asahi
21:30grange_c has joined #asahi
21:30oi_wtf has joined #asahi
21:30astrorion26[m] has joined #asahi
21:30Raito_Bezarius has joined #asahi
21:30long[m] has joined #asahi
21:30os has joined #asahi
21:30roxfan has joined #asahi
21:30d4ve has joined #asahi
21:30Synth[m] has joined #asahi
21:30arekm has joined #asahi
21:30Fanfwe has joined #asahi
21:30TellowKrinkle[m] has joined #asahi
21:30Guest3421 has joined #asahi
21:30ytg has joined #asahi
21:30Spectrejan[m] has joined #asahi
21:30SocioProphet[m] has joined #asahi
21:30Scott[m]1 has joined #asahi
21:30simjnd[m] has joined #asahi
21:30samfromspace[m] has joined #asahi
21:30sajattack[m] has joined #asahi
21:30pho[m] has joined #asahi
21:30PeterHilgenfeld[m] has joined #asahi
21:30PedroArajo[m] has joined #asahi
21:30ninja[m] has joined #asahi
21:30nilsi[m] has joined #asahi
21:30nfbyte has joined #asahi
21:30marcan[m] has joined #asahi
21:30tasild[m] has joined #asahi
21:30lemonsus[m] has joined #asahi
21:30lockna has joined #asahi
21:30kdrag0n[m] has joined #asahi
21:30joerosenberg[m] has joined #asahi
21:30GenieLotion[m] has joined #asahi
21:30idf00[m] has joined #asahi
21:30ganpa[m] has joined #asahi
21:30fridtjof[m] has joined #asahi
21:30parabola[m] has joined #asahi
21:30emilazy has joined #asahi
21:30CristianMgheruan-Stanciu[m] has joined #asahi
21:30PeterB[m] has joined #asahi
21:30AnushervonTabarov[m] has joined #asahi
21:30brentr123[m] has joined #asahi
21:30bastilian[m] has joined #asahi
21:30davay[m] has joined #asahi
21:30AkihikoOdaki[m] has joined #asahi
21:30alicela1n has joined #asahi
21:30akemin_dayo has joined #asahi
21:30nsr has joined #asahi
21:30eta has joined #asahi
21:30Stary has joined #asahi
21:30hl` has joined #asahi
21:30null has joined #asahi
21:30Xesxen has joined #asahi
21:30jato has joined #asahi
21:30bradfier has joined #asahi
21:30trepatudo has joined #asahi
21:30YichaoYu[m] has joined #asahi
21:30wollymilkcap[m] has joined #asahi
21:30vasilymilovidov[m] has joined #asahi
21:30crabbedhaloablut has joined #asahi
21:30Esmil has joined #asahi
21:35bgb has joined #asahi
21:36cavoirom[m] has joined #asahi
21:40psydroid[m]1 has joined #asahi
21:43bgb has quit [Ping timeout: 480 seconds]
21:52bgb has joined #asahi
21:58landscape15[m]<simjnd[m]> "I think they're still working on..." <- It would be great to see a polished qt GUI for the installer.
22:00landscape15[m]j_ey: Yeah i image :D
22:00bgb has quit [Ping timeout: 480 seconds]
22:09bgb has joined #asahi
22:16timokrgr has quit [Quit: Ping timeout (120 seconds)]
22:16timokrgr has joined #asahi
22:17bgb has quit [Ping timeout: 480 seconds]
22:26bgb has joined #asahi
22:30yuyichao has quit [Ping timeout: 480 seconds]
22:34bgb has quit [Ping timeout: 480 seconds]
22:43bgb has joined #asahi
22:44rgort10 has joined #asahi
22:45rgort10 has quit []
22:51bgb has quit [Ping timeout: 480 seconds]
23:00bgb has joined #asahi
23:08bgb has quit [Ping timeout: 480 seconds]
23:09bgb has joined #asahi
23:18bgb_ has joined #asahi
23:20bgb has quit [Ping timeout: 480 seconds]
23:24bgb_ has left #asahi [WeeChat 3.3]
23:28bgb has joined #asahi
23:36bgb has quit [Ping timeout: 480 seconds]
23:46bgb has joined #asahi
23:59bgb has quit [Ping timeout: 480 seconds]