2022-02-21
00:20al3xtjames has quit [Quit: Ping timeout (120 seconds)]
00:20al3xtjames has joined #asahi-dev
00:52axboe_ has joined #asahi-dev
00:56axboe_ is now known as axboe
01:14off^ has joined #asahi-dev
02:38chadmed has quit [Ping timeout: 480 seconds]
03:24PhilippvK has joined #asahi-dev
03:27phiologe has quit [Ping timeout: 480 seconds]
03:38kov has quit [Quit: Coyote finally caught me]
03:38kov has joined #asahi-dev
04:04axboe has quit [Quit: Lost terminal]
04:07axboe has joined #asahi-dev
04:41hays has quit [Remote host closed the connection]
04:57chadmed has joined #asahi-dev
06:23marcansigh, okay, the magic ARM "don't speculate in untranslated mode" stuff doesn't apply with EL2 translation enabled I guess
07:42marcanand 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)
07:42marcanif 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
07:50marcanI got one on j314s, but it was under the HV and I think explainable by what I just fixed in m1n1
07:50willemml has joined #asahi-dev
07:53as400[m]marcan: for me it seems like errors went away when I changed from extlinux booting to systemd boot. Last 10, or so, boots with systemd were ok. Will report if this happens again.
07:55the_lanetly_052 has joined #asahi-dev
08:04marcannot today, probably tomorrow, though there isn't that much to do in u-boot... so probably mostly like installer/releng
08:08marcanapparently there's no way for a guest to invoke the magic speculation restriction rules that would normally happen for bare metal with no translation
08:09marcanso now the HV explicitly unmaps the TZ carveouts for stage 2 as it already does for stage 1 for the same reason
08:11mpsI'm keeping u-boot patches for terminus fonts, took video patches from u-boot mailing list and added terminus 12x24
08:12marcanthough ideally it would select at runtime depending on display density... which isn't specified in the DT right now
08:29j`eymarcan: sorry still a bit confused, what will need to make it such that this if condition is true https://github.com/AsahiLinux/m1n1/blob/main/src/main.c#L64
08:29jannaumarcan: https://lore.kernel.org/u-boot/20220209211622.23599-1-j@jannau.net/ supports x2r10g10b10 to the bmp code
08:30marcanj`ey: 16:41:31 <@marcan> [...] (nvram boot-args=-v and disable nvram restrictions in bputil)
08:31sventhat variable actually means something like "display enabled" which is true if "verbose boot is disabled"
08:39the_lanetly_052 has quit [Ping timeout: 480 seconds]
08:44kettenisalthough CONFIG_NO_FB_CLEAR and CONFIG_SYS_WHITE_ON_BLACK are probably candidates for upstreaming anyway
08:59mazmarcan: I miss some of the context, but a guest can always restrict speculation on some memory range by mapping it as device, provided thatt the hypervisor doesn't set HCR_EL2.FWB.
09:03bluerise has quit [Ping timeout: 480 seconds]
09:06mpskettenis: iirc sjg1 had some some comments on apritzel's patches, and I didn't had time to check last 3 in series
09:07mpsbut I'm using first five of his patches on M1 u-boot and also on two different chromebooks, works fine on all three
09:18coder_kalyan has joined #asahi-dev
09:18gpanders_ has quit [Read error: Connection reset by peer]
09:18coder_kalyan_ has quit [Read error: Connection reset by peer]
09:18gpanders_ has joined #asahi-dev
09:23willemml has quit [Quit: willemml]
09:55MajorBiscuit has joined #asahi-dev
13:00marcanmaz: but can't get the magic restricted speculation that you get with translation disabled entirely
13:02thevar1able has joined #asahi-dev
13:02marcankettenis: yeah, I'm not too worried about carrying a few cosmetic patches here and there as long as they aren't hard to rebase
13:35mazmarcan: MMU off at S1 gives you device memory, which is not speculated. But that relies on S2 not using FWB.
13:41kettenismarcan: is that margin diff to work around the rounded corners at the top of the display on the new laptops?
13:46_jannau_yes, the U from U-boot in the top left corner is in the rounded corner on the macbook pro 14"
13:46bluerise has joined #asahi-dev
13:48kettenisshouldn't we adjust the start of the framebuffer on the laptops to avoid the top with the rounded corners and the notch though?
13:51grgy has left #asahi-dev [WeeChat 3.4]
13:56mazmarcan: with S1 disabled, the strongest memory attribute wins. if that's not what you are seeing, then that's a violation of the architecture. that's c;early described in the VMSA spec.
13:57mazactually, S1 beng enabled or not doesn't matter. the combination of the two levels of translations should apply irrespective of that. only FWB is allows to change that.
14:00thevar1able has quit [Ping timeout: 480 seconds]
14:01marcanFor all other accesses, when stage 1 address translation is disabled, the assigned attributes depend
14:02marcanthe only reason that doesn't explode all over the place is the later subsection "Behavior of instruction fetches when all associated stages of translation are disabled
14:02marcanwhich limits speculation to allow software to guarantee the CPU does not speculate into memory it shouldn't, but *only* if *all* stages of translation are disabled
14:02marcanso if you have S2 and no S1, and S2 says it's normal memory, you end up with normal memory, and things explode randomly
14:06marcanbasically, tl;dr it's illegal to map read-sensitive or read-illegal memory as Normal memory into the guest if the guest ever plans to run with translation disabled, because there is no way for it to stop the CPU from speculating into it otherwise
14:48yuyichao has quit [Ping timeout: 480 seconds]
14:56yuyichao has joined #asahi-dev
15:11klaus has joined #asahi-dev
15:40klaus has quit [Quit: Konversation terminated!]
15:58marcanthe code is a heuristic to avoid per-platform code (for now); we do have "is there a notch" in the ADT. it checks that, then rounds down the height to an integer 16:N aspect
15:58marcan(since we know these screens are 16:10 notchless, and one would hope Apple will stick to even dimensions plus notch)
16:10kettenismarcan: the margin might still make sense for overscan on hdmi tv's, but with a larger font that issue largely disappears as well I guess
16:10VinDuvSo if m1n1 displays something at the top of the screen, it will stay visible indefinitely in the booted OS?
16:11WhyNotHugo has quit [Remote host closed the connection]
16:11coder_kalyan has quit [Remote host closed the connection]
16:11gpanders_ has quit [Remote host closed the connection]
16:12coder_kalyan has joined #asahi-dev
16:12WhyNotHugo has joined #asahi-dev
16:12gpanders_ has joined #asahi-dev
16:13Dcow[m]would be great to have option to use notch area (left and right side from the notch) as separate screen
16:51willemml has joined #asahi-dev
16:58coder_kalyan has quit [Remote host closed the connection]
16:58gpanders_ has quit [Remote host closed the connection]
16:58WhyNotHugo has quit [Remote host closed the connection]
17:04coder_kalyan has joined #asahi-dev
17:04WhyNotHugo has joined #asahi-dev
17:04gpanders_ has joined #asahi-dev
17:14willemml has quit [Quit: willemml]
17:28phiologe has joined #asahi-dev
17:29willemml has joined #asahi-dev
17:30PhilippvK has quit [Ping timeout: 480 seconds]
17:37PhilippvK has joined #asahi-dev
17:37willemml has quit [Read error: Connection reset by peer]
17:40phiologe has quit [Ping timeout: 480 seconds]
17:47svenhm, looks like usb 3 actually won’t be very painful. Still needs some tunables though afaict
17:48svenonly annoying part is that we probably need to know the orientation of the plug which we can get from the tipd chip - but that subsystem is ofc separate from the usb-role-switch stuff that triggers the phy_set_mode in dwc3
17:49svenbut as a first hack it should be enough to call typec_set_orientation before the usb role switch stuff in the tipd driver :D
18:47___nick___ has joined #asahi-dev
18:48___nick___ has quit []
18:49___nick___ has joined #asahi-dev
18:56roxfan2 is now known as roxfan
19:08the_lanetly_052 has joined #asahi-dev
19:51MajorBiscuit has quit [Quit: WeeChat 3.4]
20:01the_lanetly_052 has quit [Ping timeout: 480 seconds]
20:48mini has quit [Quit: ZNC closing...]
20:50mini has joined #asahi-dev
20:58CME has joined #asahi-dev
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:46sirn- has joined #asahi-dev
21:48sirn has quit [singleton.oftc.net coherence.oftc.net]
21:48sirn- is now known as sirn
21:58hays has joined #asahi-dev
23:31manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
23:31manawyrm has joined #asahi-dev