#
#asahi-dev · 2023-10-27 03:58
marcanCHAN_BUSWIDTH[1] = 0xf21 (WORD=1(W_16BIT), FRAME=2(F_4_WORDS))
#asahi-dev · 2023-10-27 03:58
marcanCHAN_BUSWIDTH[0] = 0x22 (WORD=2(W_32BIT), FRAME=2(F_4_WORDS))
#asahi-dev · 2023-10-27 03:58
marcanon j314:
#asahi-dev · 2023-10-27 01:27
marcanif it doesn't we'll need some other way to maintain frame alignment
#asahi-dev · 2023-10-27 01:27
marcanany idea if maybe macOS does something else there and it supports other window sizes? guess I need to trace it
#asahi-dev · 2023-10-27 01:26
marcanpovik: looks like after suspend/resume sometimes ivsense data gets "torn". on this model it's 8 channels (4c x I/V), but I noticed admac only knows window sizes up to 4, so maybe that's why sometimes it gets split down the middle when we have partial reads due to a suspend/resume?
#asahi-dev · 2023-10-26 18:07
opticronthere's also this page from the project originator, but it's a bit more stale: https://github.com/amarioguy/AppleWOAProject/blob/gh-pages/index.md
#asahi-dev · 2023-10-26 17:49
czathanks for the link!
#asahi-dev · 2023-10-26 17:49
czai should give that a go, it probably can get windows way further than i'll ever do on my own, especially with no knowledge about the platform :p
#asahi-dev · 2023-10-26 17:49
czai see, someone had that idea before me, not surprised
#asahi-dev · 2023-10-26 17:48
j`eyhttps://github.com/AppleWOA
#asahi-dev · 2023-10-26 17:48
czathough the bootloader was light work compared to this, some minor memory related stuff + weird framebuffer format
#asahi-dev · 2023-10-26 17:47
czai worked on porting a bootloader to m1 a few days ago and now i wanted to see how far windows can get
#asahi-dev · 2023-10-26 17:46
czathe thing im trying to run under m1n1? yep lol
#asahi-dev · 2023-10-26 17:46
j`eyis this windows or something
#asahi-dev · 2023-10-26 17:45
czaill give that a go now that my code is actually being run :^)
#asahi-dev · 2023-10-26 17:45
czayep that's exactly what it says after it reconnects to the proxy, thank you for that!
#asahi-dev · 2023-10-26 17:43
j`eyif you see the output of the chainload, it should say something about being at EL2
#asahi-dev · 2023-10-26 17:43
czai'll give that a go, thanks!
#asahi-dev · 2023-10-26 17:42
czai knew i was doing something wrong because none of my changes were actually there
#asahi-dev · 2023-10-26 17:42
czaah, that makes a lot more sense
#asahi-dev · 2023-10-26 17:41
j`eyif you use proxyclient/tools/chainload.py
#asahi-dev · 2023-10-26 17:41
j`eyyes it can
#asahi-dev · 2023-10-26 17:40
czawhich does not contain my changes
#asahi-dev · 2023-10-26 17:40
czabecause if not, then any exceptions from the underlying os will be caught by stage 1 m1n1
#asahi-dev · 2023-10-26 17:40
czaso now, can the chainloaded m1n1 that's running under the hypervisor run as a hypervisor itself?
#asahi-dev · 2023-10-26 17:39
j`eyyep
#asahi-dev · 2023-10-26 17:39
czait seems to me that when i use the run_guest.py script, whatever payload i provide is what is run under the hypervisor, is that correct?
#asahi-dev · 2023-10-26 17:38
czaim using the run_guest.py script already, but i think im just misunderstanding the boot process
#asahi-dev · 2023-10-26 17:37
j`eyas well as the wiki, it has some info about this
#asahi-dev · 2023-10-26 17:37
j`eycza: take a look at the proxyclient/tools/run_guest.py and proxyclient/tools/run_guest_kernel.sh scripts
#asahi-dev · 2023-10-26 17:36
czabut i want the newly built m1n1 to act as the hypervisor
#asahi-dev · 2023-10-26 17:36
czasorry if i cant explain what im talking about
#asahi-dev · 2023-10-26 17:36
czaalright, what im wondering about is after loading my new payload with newly built m1n1 and uboot how do i get this *whole thing* to run under the m1n1 i just chainloaded?
#asahi-dev · 2023-10-26 17:35
j`eyyeah
#asahi-dev · 2023-10-26 17:34
czaso the proxy mode i get by using -v boot args comes from stage 1?
#asahi-dev · 2023-10-26 17:34
j`eym1n1 stage1 -> proxy mode -> chainload stage2 m1n1 and then load u-boot
#asahi-dev · 2023-10-26 17:33
j`eyyou can chainload m1n1 via the proxy, yeah
#asahi-dev · 2023-10-26 17:33
czaor do i have to put it on the efi partition for stage 1 to chainload? that sounds like it will take a lot of time to test a single build
#asahi-dev · 2023-10-26 17:32
czaso i can run the uefi os under the newly built hypervisor
#asahi-dev · 2023-10-26 17:32
czais there an easy way to run the new build of m1n1 as the hypervisor?
#asahi-dev · 2023-10-26 17:31
j`eynot sure if the proxy can handle that, but you could edit m1n1 itself to do it
#asahi-dev · 2023-10-26 17:29
czaso i wanted to somehow work around that and return the value from one of these registers
#asahi-dev · 2023-10-26 17:29
czayeah i figured that out, the esr was weird but there seems to be an apple PMU equivalent
#asahi-dev · 2023-10-26 17:29
j`eycza: the apple cpu's have a non archtiectural PMU, so I guess that register just isnt there
#asahi-dev · 2023-10-26 17:25
czahello, i was wondering if anyone could tell me what's the recommended way to hack on m1n1? im trying to add a few things to the hypervisor but im not sure what would be the fastest way to test out my changes. im looking into handling some missing system registers like PMCCNTR_EL0 (reading it gives me a sync abort), is there perhaps a way to handle that using the proxy? im not very well versed with aarch64 and apple platforms but i'm
#asahi-dev · 2023-10-23 20:09
marcandoesn't have the conclusion though
#asahi-dev · 2023-10-23 20:08
marcanstory is in https://people.freedesktop.org/~cbrill/dri-log/?channel=freedesktop&highlight_names=&date=2023-10-23&show_html=true
#asahi-dev · 2023-10-23 20:03
marcanso initially it appeared as if the data was stale
#asahi-dev · 2023-10-23 20:03
marcanit was a migration so my guess is the mirroring process got stopped accidentally at some point, and they figured out how to sync the missing data from the old cluster

plus ›