2021-02-20
01:01linuxgemini has quit [Read error: Connection reset by peer]
01:05qyousef has quit [Ping timeout: 272 seconds]
01:06qyousef has joined #asahi-dev
01:31blward has joined #asahi-dev
01:34blward is now known as blward_
01:35blward_ has quit [Client Quit]
01:37blward has joined #asahi-dev
01:51blward has quit [Quit: Connection closed]
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:22Emantor has joined #asahi-dev
03:08phiologe has joined #asahi-dev
03:08PhilippvK has quit [Ping timeout: 260 seconds]
04:06amw has joined #asahi-dev
04:10amw has quit [Ping timeout: 240 seconds]
04:24_whitelogger has joined #asahi-dev
04:37TellowKrinkle[m] has joined #asahi-dev
04:54odmir has quit [Remote host closed the connection]
05:09amw has joined #asahi-dev
05:24amw has quit [Read error: Connection reset by peer]
05:27amw has joined #asahi-dev
05:52amw has quit [Ping timeout: 240 seconds]
06:02amw has joined #asahi-dev
06:08amw has quit [Ping timeout: 264 seconds]
07:47mxw39 has quit [Quit: Konversation terminated!]
07:49mxw39 has joined #asahi-dev
08:48VinDuv has joined #asahi-dev
08:48svenso.. is there a kext or something that would allow be to dump MMIO ranges from within Mac OS?
08:49svenand I assume there's no simple way to just cross-compile the Linux kernel on Mac OS without using a VM?
09:05VinDuvAssuming you can still load unsigned kexts on M1 Macs by disabling SIP, you could try writing one I think
09:16bgb has joined #asahi-dev
09:20svenI'm not talking about existing signed kexts, I'm wondering if anyone has already written something like this :-)
09:27arvimal has quit [Remote host closed the connection]
09:33VinDuvok I tried copying some headers from my Linux VM and it complains that file2alias.c redefines uuid_t :-/
09:36vimal has joined #asahi-dev
09:42dhewgi know that you can build openwrt on fappleos, including cross compiling a linux kernel. maybe that helps?
09:43dhewgmaybe add a m1 target to openwrt, that might be the fastest way to cross build a kernel heh
09:44bgb has quit [Ping timeout: 272 seconds]
09:48vimal has quit [Remote host closed the connection]
09:58vimal has joined #asahi-dev
10:03j`eyVinDuv: https://lore.kernel.org/linux-arm-kernel/15147ffb-7e67-b607-266d-f56599ecafd1@john-millikin.com/
10:30bgb has joined #asahi-dev
10:42vimal has quit [Remote host closed the connection]
11:00VinDuvok, arm64 defconfig seems to cross-compile fine with the sed patch in gen_vdso_offsets.sh, the uuid_t rename in file2alias.c, and homebrew’s openssl
11:38linuxgemini has joined #asahi-dev
12:39bgb has quit [Ping timeout: 272 seconds]
13:03Namidairo has quit [Read error: Connection reset by peer]
13:04Namidairo has joined #asahi-dev
14:07bgb has joined #asahi-dev
14:08odmir has joined #asahi-dev
14:16modwizcodesven: Earlier something called DirectHW was mentioned https://github.com/PureDarwin/DirectHW
14:18modwizcodeI thought I was making some progress on trying to determine how the SMMU thing works corellium has a blog post that is... almost helpful :p. I've shifted back to thinking it might be just the TLB we're looking at
14:19modwizcodeThe SMMU spec for ARM is difficult because it has a few different memory spaces not a single map, but the values that you see line up with "
14:19modwizcode"implementation defined space" which at first I thought was a deadend but actually that's where ARM encourages you to provide a view of the TLB
14:20modwizcodeso that would line up.
14:20modwizcodeSome of the zero registers also line up perfectly with "write only" registers. Although others... don't?
14:23snalty has quit [Ping timeout: 256 seconds]
14:27modwizcodeSo that leads me to think it's completely unrelated again, especially because even if it does match up it's only "Global register space 0" not anything else, which would seem useless to a guest or anything.
14:59bgb has quit [Ping timeout: 272 seconds]
15:00bgb has joined #asahi-dev
15:04bgb has quit [Ping timeout: 265 seconds]
15:19rafaelmartins_ is now known as rafaelmartins
15:23bgb has joined #asahi-dev
15:27bgb has quit [Ping timeout: 240 seconds]
15:31pakl[m] has joined #asahi-dev
15:38modwizcodeif you just search it up you can find some rather similar errors https://gist.github.com/modwizcode/493380e2406fd0cea18880614700af4b
16:00nirusu[m] has quit [Quit: Idle for 30+ days]
16:00bsandro has quit [Quit: leaving]
16:26davidrysk[m]sven, modwizcode: DirectHW is basically a kext that allows for direct hardware access to I/O. It would need some adaptation for M1, but it should be a good example of how to get information between kernel and user space
16:26davidrysk[m]flashrom is able to use the existing DirectHW on a pre-T2 Intel Mac
16:51svenwould be useful to have that working on m1 Macs to see how Mac OS configured some MMIO ranges
16:51svenmodwizcode: yeah, dunno. I'm probably not going to spend any more time on that SMMU for now since it's only used for three devices
17:33davidrysk[m]sven: do you have xcode?
17:38snalty has joined #asahi-dev
18:23modwizcodesven: understandable, it doesn't seem important at the moment anyway.
19:36irradiated_lemmiis there a reason the https://github.com/AsahiLinux/gpu repo has issues turned off?
20:02KindOne has quit [Ping timeout: 272 seconds]
20:04KindOne has joined #asahi-dev
20:49irradiated_lemmiah ok, thanks!]
21:38VinDuv has quit [Quit: Leaving.]