#
✕ nick:marcan
#asahi-dev · 2022-02-21 14:01
marcanInstruction access
#asahi-dev · 2022-02-21 14:01
marcanon whether the access is a data access or an instruction access, as follows:
#asahi-dev · 2022-02-21 14:01
marcanFor all other accesses, when stage 1 address translation is disabled, the assigned attributes depend
#asahi-dev · 2022-02-21 14:01
marcanmaz: D5.2.9 The effects of disabling a stage of address translation
#asahi-dev · 2022-02-21 13:51
marcanI'll give it a try
#asahi-dev · 2022-02-21 13:51
marcanmight make sense
#asahi-dev · 2022-02-21 13:51
marcanthough I guess we could outright do it for the whole FB in m1n1, including for linux? hm
#asahi-dev · 2022-02-21 13:50
marcanbut then it's device-specific
#asahi-dev · 2022-02-21 13:50
marcanthat's another way, yes
#asahi-dev · 2022-02-21 13:47
marcane.g. if someone hooks it up to a TV
#asahi-dev · 2022-02-21 13:46
marcanbut also a good idea for HDMI overscan on the Mini, which is unpredictable
#asahi-dev · 2022-02-21 13:46
marcankettenis: yes
#asahi-dev · 2022-02-21 13:46
marcanmaz: that's not my reading of the ARM nor what I see in practice
#asahi-dev · 2022-02-21 13:02
marcankettenis: yeah, I'm not too worried about carrying a few cosmetic patches here and there as long as they aren't hard to rebase
#asahi-dev · 2022-02-21 13:01
marcanwith stage 1 translation disabled you get whatever stage 2 says instead
#asahi-dev · 2022-02-21 13:00
marcanmaz: but can't get the magic restricted speculation that you get with translation disabled entirely
#asahi-dev · 2022-02-21 08:32
marcaniBoot does that
#asahi-dev · 2022-02-21 08:32
marcan(or '' to disable it if it was enabled already)
#asahi-dev · 2022-02-21 08:31
marcanit does the right thing
#asahi-dev · 2022-02-21 08:31
marcanyou can also just pass -v to chainload
#asahi-dev · 2022-02-21 08:30
marcanj`ey: 16:41:31 <@marcan> [...] (nvram boot-args=-v and disable nvram restrictions in bputil)
#asahi-dev · 2022-02-21 08:29
marcanyeah
#asahi-dev · 2022-02-21 08:22
marcanI guess it's supposed to mean "graphical display" (as opposed to text)
#asahi-dev · 2022-02-21 08:22
marcanthat field in boot_args is kind of backwards
#asahi-dev · 2022-02-21 08:22
marcanj`ey: if there *is* a console
#asahi-dev · 2022-02-21 08:21
marcanforce pushed :p
#asahi-dev · 2022-02-21 08:21
marcanwhoops
#asahi-dev · 2022-02-21 08:15
marcanhey, I usually zoom in my editor!
#asahi-dev · 2022-02-21 08:13
marcanhm, but it's a static choice... might have to see about making it dynamic somehow...
#asahi-dev · 2022-02-21 08:12
marcanthough ideally it would select at runtime depending on display density... which isn't specified in the DT right now
#asahi-dev · 2022-02-21 08:11
marcanah, I might want that, the font is tiny :)
#asahi-dev · 2022-02-21 08:09
marcanso now the HV explicitly unmaps the TZ carveouts for stage 2 as it already does for stage 1 for the same reason
#asahi-dev · 2022-02-21 08:08
marcanapparently there's no way for a guest to invoke the magic speculation restriction rules that would normally happen for bare metal with no translation
#asahi-dev · 2022-02-21 08:08
marcanit was a HV problem
#asahi-dev · 2022-02-21 08:08
marcanyeah, I saw that
#asahi-dev · 2022-02-21 08:04
marcannot today, probably tomorrow, though there isn't that much to do in u-boot... so probably mostly like installer/releng
#asahi-dev · 2022-02-21 07:50
marcanI got one on j314s, but it was under the HV and I think explainable by what I just fixed in m1n1
#asahi-dev · 2022-02-21 07:43
marcanas400[m]: on the hypervisor?
#asahi-dev · 2022-02-21 07:42
marcanmaz: I think that should cover your use case?
#asahi-dev · 2022-02-21 07:42
marcanif verbose mode *is* set then it also adds a 5-second proxy attempt timeout before launching payloads; you need to enumerate USB *and* open the device (either is fine) to break out of the timeout
#asahi-dev · 2022-02-21 07:42
marcanand pushed a bunch of m1n1 changes to add a RELEASE=1 build mode, which disables the text console by default unless a fallback to proxy occurs, or unless verbose boot mode is set (nvram boot-args=-v and disable nvram restrictions in bputil)
#asahi-dev · 2022-02-21 07:41
marcankettenis: pushed some misc video things to u-boot:releng/misc
#asahi-dev · 2022-02-21 06:23
marcansigh, okay, the magic ARM "don't speculate in untranslated mode" stuff doesn't apply with EL2 translation enabled I guess
#asahi-dev · 2022-02-21 06:03
marcanmaybe the way I map things in the HV upgrades untranslated to allow speculation?
#asahi-dev · 2022-02-21 05:59
marcaner... translation is not yet enabled, how did this happen?
#asahi-dev · 2022-02-21 05:57
marcanhm, wait, I do see it trying to adjust the memmap?
#asahi-dev · 2022-02-21 05:56
marcanotherwise CPU speculation can trigger SErrors, I just got one such failure under the HV
#asahi-dev · 2022-02-21 05:55
marcanit needs to map only valid RAM
#asahi-dev · 2022-02-21 05:55
marcanthat's not good :(
#asahi-dev · 2022-02-21 05:55
marcankettenis: u-boot currently maps all physical RAM, right?

plus ›