#
…

2021-02-12

00:06linkmauve has joined #asahi-dev
00:11qyousef has quit [Ping timeout: 260 seconds]
00:36maor26 has quit [Ping timeout: 240 seconds]
00:37danilonc has quit [Quit: Connection closed for inactivity]
01:44qyousef has joined #asahi-dev
02:46amw has quit [Ping timeout: 246 seconds]
02:54amw has joined #asahi-dev
03:18phiologe has quit [Ping timeout: 260 seconds]
03:18PhilippvK has joined #asahi-dev
03:46amw has quit [Ping timeout: 246 seconds]
04:01amw has joined #asahi-dev
06:54VinDuv has joined #asahi-dev
07:05maor26 has joined #asahi-dev
07:28VinDuv has quit [Quit: Leaving.]
07:30lovesegfault has quit [Quit: WeeChat 3.0]
08:09robinp has quit [Ping timeout: 260 seconds]
08:09robinp has joined #asahi-dev
08:28amw has quit [Ping timeout: 265 seconds]
08:43amw has joined #asahi-dev
09:00smist08[m] has quit [Quit: Idle for 30+ days]
09:00ronyrus[m] has quit [Quit: Idle for 30+ days]
09:24amw has quit [Ping timeout: 272 seconds]
11:35amw has joined #asahi-dev
11:40amw has quit [Ping timeout: 265 seconds]
11:56amw has joined #asahi-dev
12:05amw has quit [Ping timeout: 240 seconds]
12:23stemnic has quit [Ping timeout: 264 seconds]
13:03amw has joined #asahi-dev
13:08amw has quit [Ping timeout: 240 seconds]
13:17vimal has joined #asahi-dev
14:23stemnic has joined #asahi-dev
15:30thestr4ng3r has quit [Read error: Connection reset by peer]
15:32thestr4ng3r has joined #asahi-dev
16:00tarik02[m] has quit [Quit: Idle for 30+ days]
16:00skillfulman23[m] has quit [Quit: Idle for 30+ days]
16:54kettenis has joined #asahi-dev
16:58VinDuv has joined #asahi-dev
18:03zkrx has quit [Ping timeout: 265 seconds]
18:08zkrx has joined #asahi-dev
18:27zkrx has quit [Ping timeout: 264 seconds]
18:34zkrx has joined #asahi-dev
18:57zkrx has quit [Ping timeout: 240 seconds]
19:03zkrx has joined #asahi-dev
19:26modwizcodeI'm not very happy with a lot of the code because it seems really inefficient in a lot of places, but that can always be resolved later.
19:27modwizcodeI need to get it to present a more complete ADT to get a vanilla build of M1N1 to boot with it though, I've got a fork of M1N1 that works but it's just for testing.
19:27j`eymodwizcode: lotsa penguins
19:28modwizcodeYes indeed :)
19:28modwizcodeIf marcan gets the big.LITTLE thing working it should show up correctly too (hopefully anyway) since they're exposed with the correct IDs and everything
19:29modwizcodeIt's fun to see the IPIs firing as I do stuff. You can see that linux assigns the IRQs for the serial port to go to cpu0, then when you type a character you see an IPI fire from cpu0 to another core for each character
19:33maximus64I guess next is DART and PCIE?
19:36modwizcodeEventually yes
19:36modwizcodeHave to wait for more hardware docs I think though.
19:37zkrx has quit [Quit: zkrx]
19:37modwizcodeBut at this point I expect a lot of overlap with existing peripherals (at least higher level ones), like I'm hoping I can reuse the NVMe peripheral code
19:38modwizcodeTheoretically because Linux has drivers for a ton of stuff at this point you can just plug in whatever you want on the QEMU side and then tell linux about it via device tree, but that's not my goal since that isn't a true emulation of an M1 mac and it would be useless for running something like macOS
19:39zkrx has joined #asahi-dev
19:42maximus64Good progress tho. If it close enought to the actual HW, it might able to boot the M1 OSX ;)
19:50modwizcodeThat's the goal eventually. I think it's key to understanding the hardware to have a parallel functional implementation based on that understanding. If the drivers + emulation != results that are expected, it means somewhere something is wrong.
19:51modwizcodeA lot of stuff will need to be understood better though. The M1 cpu cores have features that are not documented at all, and macOS certainly will use them.
19:51j`eyas long as you're running qemu on macOS right?
19:51modwizcodeThat's the other issue
19:51modwizcodeI can't do that testing myself because I don't have a mac of my own to legally do that with
19:51modwizcodeLuckily other people do and it's not too hard to compile and test so in the future that will not be a problem
19:53modwizcodeOne thing I'm actually planning to do at some point here is compile the open source release of Xnu and throw it at the emulator. From what I understand there's few to no drivers in that source though, but I think there's Darwin port projects that might be able to supply some basic drivers (or I could probably write my own for serial port at least)
19:54j`eythat doesn't help with understanding the hardware, but a good thing to try ofc
19:54j`ey(well non-cpu hardware)
19:56modwizcodeYeah there is some stuff that I think is there for startup that might expose little differences. Parsing through the code is difficult with how spreadout it is, it actually is sometimes a lot better to throw it at the emulator and look for failures
21:06svenlooks like my most expensive part adapter works fine. and the chainload.py development workflow is a lot of fun as well https://files.svenpeter.dev/74fb88486def919c44ead01848a85b84a70159facf2fdc34024cd8b071f0dd5d_m1n1_framebuffer_console.png :)
21:07sven*uart adapter
21:10roxfancan you make it more burry?
21:11svenyeah, I need to convert a better font. and this hdmi capture thing isn't all that great either.
21:18svenlooks like it's mostly the capture card
21:19sventhat font does look a lot nicer though, thanks!
21:19maximus64oh you already got FB console done lol I was working on that part as well
21:20svenjust wrote it in the past two hours or so :)
21:21maximus64yea that why I pick that one. Easy and something I know how to do :p
21:21svendidn't want to duplicate any work, just wanted to get my hands dirty
21:21svenexactly :)
21:21svenyou can review my code if you want to though
21:22maximus64yea I can take a look :)
21:22davidrysk[m]is there a good way to browse lkml archives?
21:24maximus64I have a macbook that I can try on
21:25svensure, let me just clean this up a little bit and I'll push it
21:26VinDuv has quit [Quit: Leaving.]
21:30svenfirst draft, still needs some cleanup :)
21:31maximus64I just using my hack up GoodFET that only have FT232R and some logic buffer for 1.2 logic
21:32svenI use a m1 MacBook Air and a m1 Mac mini connected with a usb-c cable and marcan's macvdmtool
21:32sventhis makes for a really nice development workflow
21:32maximus64very expensive adapter lol
21:32svenyeah :P
21:33svenbut totally worth it
21:33svenmaximus64: I think you need to run makefont.sh once fwiw
21:33sventhat still needs fixing
21:33roxfan has quit [Remote host closed the connection]
21:34j`eydavidrysk[m]: lore.kernel.org?
21:38roxfan has joined #asahi-dev
21:57acelogic has quit [Ping timeout: 272 seconds]
22:09maximus64sven: this is how it look on my macbook air: https://imgur.com/djiJ7Jw
22:09maximus64font is bit hard to read imo
22:09maximus64but it work :p
22:10svennice :)
22:10svenyeah, might be a good idea to increase the font size a little bit
22:14maximus64hmm there is some weird bug that I can't no longer load linux
22:14svenuh oh :D
22:14svenhow did I manage to break that?
22:15maximus64not sure probably bug that already there. Let me get the log
22:17svenhuh, weird
22:18maximus64this is chainload another m1n1 and then try to boot linux
22:18maximus64let me build m1n1 from main and retest
22:18svenstrange, start_secondaries also seems to fail for me
22:20maximus64work find with main build after chainload
22:21svenugh, so, the secondary cores call printf so there might be a race somewhere.
22:23svenyeah, it's definitely some race
22:24svenremoving all printfs from the secondaries seems to fix it
22:24svenI'll take a look tomorrow, too tired right now for that ;)
22:25maximus64good nite :)
22:26maximus64assuming it night time for you heh
22:26svenyeah, half an hour to midnight ;)
22:26svengood night!
23:12qyousef1 has joined #asahi-dev
23:14qyousef has quit [Ping timeout: 240 seconds]
…