#
✕ nick:marcan
#asahi · 2021-05-15 09:24
marcanthanks!
#asahi · 2021-05-15 09:24
marcan(I should document this too...)
#asahi · 2021-05-15 09:24
marcanjannau: it's kind of ambiguous what to return on errors, depending on what kind of error, might be worth reviewing the failure paths, but not a priority right now
#asahi · 2021-05-15 09:19
marcanjannau: I was going to stream now but I spent some time on #-dev, so if you want to tweak that soonish I can merge it then :)
#asahi · 2021-05-15 09:19
marcaniodev can return errors as negative numbers
#asahi · 2021-05-15 01:35
marcanno worries if you don't get to it by the time I start working on the other stuff, I'll just merge it and tack that on as a separate commit
#asahi · 2021-05-15 01:35
marcanalmost exactly what I had in mind, I just want to change the dwc side API to take a pipe parameter instead of having two versions, and then put wrappers to call those in usb.c (this also gets rid of the ugly casts there)
#asahi · 2021-05-15 01:34
marcanjannau: that was a nice thing to wake up to, thanks :)
#asahi · 2021-05-14 17:08
marcannot sure, I only looked at the load :)
#asahi · 2021-05-14 16:45
marcan(also fixed some bugs in hv_vm)
#asahi · 2021-05-14 16:45
marcanand now we're back at pmgr kills me, except due to flushing issues I don't see the final mmio poke, so the next yak shave push is to add a flush function to the dwc code, but also while I'm at it I might as well look into doing the serial port properly... then emulate that properly...
#asahi · 2021-05-14 16:44
marcanfor now though I just bypassed those ranges, and also removed the PCIe nodes from the DT corresponding to the type C port the HV owns (xnu really didn't like dangling phandle refs)
#asahi · 2021-05-14 16:44
marcansven: not sure, pushing a dynamic ADT reg lookup thing into the yak shaving pile for tomorrow
#asahi · 2021-05-14 15:58
marcanso I guess I'm goingt to have to add emulation for that
#asahi · 2021-05-14 15:58
marcanthat gets it to a point... where it loads a floating point register from mmio (yes, really)
#asahi · 2021-05-14 15:57
marcan(on top of the thing I just pushed to support reg-reg offset mode for loads/stores)
#asahi · 2021-05-14 15:57
marcanhttps://mrcn.st/p/0T3urY0V :p
#asahi · 2021-05-14 15:57
marcanpipcet[m]: if you want quick and dirty mmiotrace, all you need is
#asahi · 2021-05-14 12:56
marcanbbl, dinner
#asahi · 2021-05-14 12:54
marcanSPRR_KMASK_EL2 _EL1 _EL12 and SPRR_UMASK_EL1 (and _EL2 and _EL12 iff that one is split)
#asahi · 2021-05-14 12:53
marcanyeah but that's just SPRR_KMASK_EL2 then
#asahi · 2021-05-14 12:53
marcanso KMASK works too
#asahi · 2021-05-14 12:53
marcanthough Apple likes to use KERN for the key stuff
#asahi · 2021-05-14 12:52
marcansince we already have UXN and PXN as de facto names for EL0 and "whoever is above"
#asahi · 2021-05-14 12:52
marcanor even just SPRR_UMASK_ and SPRR_PMASK_
#asahi · 2021-05-14 12:52
marcanso how about SPRR_SELF_MASK_ and SPRR_LOWER_MASK_
#asahi · 2021-05-14 12:50
marcanwhich is just confusing as heck
#asahi · 2021-05-14 12:50
marcanthough EL1 should be EL2 in EL2 mode because VHE
#asahi · 2021-05-14 12:50
marcanjust EL0_MASK I guess, too long otherwise?
#asahi · 2021-05-14 12:39
marcanseems kind of lame
#asahi · 2021-05-14 12:39
marcanand no paging
#asahi · 2021-05-14 12:39
marcanwould require guests to have contiguous RAM though...
#asahi · 2021-05-14 12:38
marcanthen yeah, shittyhv?
#asahi · 2021-05-14 12:38
marcanah
#asahi · 2021-05-14 12:38
marcanor does GXF also handle DART paging?
#asahi · 2021-05-14 12:38
marcanthe kernel would be dealing with DARTs, no?
#asahi · 2021-05-14 12:37
marcanGXF needs to protect itself from DMA
#asahi · 2021-05-14 12:37
marcansven: I would bet DAPF is for GXF
#asahi · 2021-05-14 12:36
marcanlike something that unlocks EL1 perms?
#asahi · 2021-05-14 12:36
marcansven: and you mean not like the VHE stuff?
#asahi · 2021-05-14 12:35
marcansven: accessible from.. EL2?
#asahi · 2021-05-14 12:35
marcanj`ey: there's a commented out #self.p.hv_map_vuart(0x2_35200000) in hv.py
#asahi · 2021-05-14 12:35
marcantarzeau_: https://mac.getutm.app/ works on macos
#asahi · 2021-05-14 12:34
marcanwas going to work on that and mmiotrace today, but emergencies took over my day...
#asahi · 2021-05-14 12:34
marcanjannau: the hypervisor can do stupid serial emulation right now which should work for earlycon, I'll improve it to not be that stupid soon so it can serve as proper vserial
#asahi · 2021-05-14 12:33
marcansven: SPRR_PERM_MASK_EL1?
#asahi · 2021-05-14 01:31
marcan(don't use a macos beta as your iBoot/firmware bundle for a Linux install long-term)
#asahi · 2021-05-14 01:30
marcanartemist: (modulo when they go and break betas, but yes, for release versions :))
#asahi · 2021-05-13 13:46
marcanfixed
#asahi · 2021-05-13 13:45
marcanthanks

plus ›