2021-05-30
02:23PhilippvK has joined #asahi-dev
02:26phiologe has quit [Ping timeout: 480 seconds]
03:57PthariensFlame has joined #asahi-dev
03:59PthariensFlame has quit []
05:19VinDuv has joined #asahi-dev
06:40egavinc has joined #asahi-dev
06:57egavinc has quit [Quit: Leaving]
09:43svenit crashes in video_clear shortly afterwards. didn't have time to debug what's going on and just disabled the framebuffer for now :D
09:56EER has joined #asahi-dev
12:03klltkr has joined #asahi-dev
12:24bps has quit [Ping timeout: 480 seconds]
12:36svenhttps://f.svpe.de/d30e6d91527db3ab66dcd9ae394f650d3888900d6967bb8e891cb3cbe03610f6_pmgr_clocks.txt
13:03VinDuv has quit [Quit: Leaving.]
13:03bps has joined #asahi-dev
13:32egavinc has joined #asahi-dev
14:52VinDuv has joined #asahi-dev
15:20jannauEmantor: which kernel did you use for the hypervisor? I have no luck with xnu-7195.121.3~9/DEVELOPMENT_ARM64_T8101 it fails early over an assertion: https://gist.github.com/jannau/d27a43515909abb6485ca75367c388f6
15:25EmantorUnfortunately mu 5.12.4 kernel has borked xhci support on the ASMedia Chip, so my USB dies from time to tim -_-. Still waiting for the NixOS channel to advance…
15:29EmantorYes, Darwin Kernel Version 20.5.0: Sat May 8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/DEVELOPMENT_ARM64_T8101 looks to be the same.
15:36jannauti fails to find com.apple.iokit.IOACPIFamily as dependency for com.apple.driver.AppleHPET
15:38EmantorAre you missing the kmutil inspect line? I also updated the sources line to the original kernelshamans blog entry for the cache creation.
15:39EmantorCould be that you need another `-r /Library/Developer/KDKs/KDK_11.4_20F71.kdk/System/Library/KernelExtensions` or something like that.
15:41jannauyes, my fault it was printing a different error without and it looked garbled but was only a typo in the path
15:43Emantorhm, you are running the same commandline with -- "cpus=1 debug=0x14e…" as in the wiki entry? Than I am out of ideads.
15:45jannauyes. the only idea I have is to do everything from the second mac os install with relaxed security
15:48EmantorI did everything on the "primary" macOS installation, since the development/Linux one isn't accessible with m1n1 running.
15:49jannauok, I did the same. switching between m1n1 and mac os on the secondary install is not that much more inconvenient than booting the primary mac os install
16:02NicoK has joined #asahi-dev
16:08bps has quit [Ping timeout: 480 seconds]
16:16NicoK has quit [Remote host closed the connection]
16:20bps has joined #asahi-dev
16:28klltkr has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
17:42bloom% DYLD_LIBRARY_PATH=/Users/bloom/mesa/build/src/gallium/targets/libgl-xlib/ deqp-runner run --caselist ~/VK-GL-CTS/android/cts/master/gles2-master.txt --deqp ~/VK-GL-CTS/bld/modules/gles2/deqp-gles2 --output scissor-run -- --deqp-visibility=hidden --deqp-surface-width=256 --deqp-surface-height=256
18:20jannauEmantor, marcan: apparently I hadn't ctrr disabled. not sure how it got enabled. working now
18:37klltkr has joined #asahi-dev
18:46Emantorthere seems to be code to handle ctrr lockdown in the darwin kernel, see https://github.com/apple/darwin-xnu/blob/a1babec6b135d1f35b2590a1990af3c5c5393479/osfmk/arm64/amcc_rorgn.c#L553 foe example
18:50Emantorhttps://github.com/apple/darwin-xnu/blob/8f02f2a044b9bb1ad951987ef5bab20ec9486310/osfmk/arm64/cpu.c#L847 indicates that this needs to be done by the first cpu being started in the cluster.
18:53svenessentially you setup a memory region and from the on only code from that region is allowed to run in kernel mode
18:53sventhen there's a second set of registers in the memory controller that disallow writes to that region
18:55EmantorThe code looks like this has to be reconfigured after sleep since the MMU lock state is lost.
18:55VinDuvCTRR being per cluster doesn’t means it’s not already enabled on the cluster that contains the boot CPU
18:57EmantorVinDuv: Yes, but how does iBoot know which pages are to be protected? code looks like its configurable and setup by the kernel itself.
18:59Emantorright, since the macho is loaded. To me kernel loading still is "copy bytes over there, jump to it.". Hm, idk.
19:02sven"Thus, the regions that are locked down are all __TEXT segments of coprocessor firmwares; this strongly suggests that Apple has added a new mitigation to make coprocessor __TEXT segments read-only in physical memory, similar to KTRR on the AMCC (probably Apple's memory controller) but for coprocessor firmwares instead of just the AP kernel. This
19:10svenactually, siguza documented it. looks it's XNU itself which setups KTRR https://siguza.github.io/KTRR/
19:34al3xtjames has quit [Quit: The Lounge - https://thelounge.chat]
19:34al3xtjames has joined #asahi-dev
19:41bps has quit [Read error: No route to host]
19:41bps has joined #asahi-dev
19:46VinDuv has quit [Quit: Leaving.]
20:27nicok113 has joined #asahi-dev
20:29klltkr has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
20:35nicok113 has quit [Quit: Leaving]
21:08EER has quit [Remote host closed the connection]
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:09thunfisch has quit [Quit: frrrp!]
22:09thunfisch has joined #asahi-dev
22:10thunfisch has quit []
22:10thunfisch has joined #asahi-dev
23:46yrlf has joined #asahi-dev