#asahi-dev · 2022-12-15 11:28
null... and the policy in general is simply "Do not expose IMP-DEF stuff to lower ELs"#asahi-dev · 2022-12-15 11:28
ChaosPrincesshey, if the 3 sparc-lovers would have been itc, they would be very upset#asahi-dev · 2022-12-15 11:27
nullmarcan: sure, I'm just trying to say that in general it doesn't work, and to make it work requires a lot more finesse than may be initially obvious, since you need to reliably inform both ends, etc#asahi-dev · 2022-12-15 11:27
mazChaosPrincess: that's owing to its SPARC heritage. nobody forced them to build shit HW... ;-)#asahi-dev · 2022-12-15 11:27
nullor any hypervisor, since when running at EL1 we don't know the hypervisor#asahi-dev · 2022-12-15 11:27
marcannull: IIRC you can actually control whether VMs trap to EL2 or not for this#asahi-dev · 2022-12-15 11:27
ChaosPrincessmaz: ok, i might have misremembered since i cant find it, but there is definitely that fujitsu arm that already has tso#asahi-dev · 2022-12-15 11:26
karpouzisven: actually, the m1 wasn't bad - built in ~15min#asahi-dev · 2022-12-15 11:26
nullyes#asahi-dev · 2022-12-15 11:26
marcanoh like kvm VMs?#asahi-dev · 2022-12-15 11:26
nullLikewise, so does advertising it#asahi-dev · 2022-12-15 11:26
nullEnabling the IMP-DEF bit *within* the kernel for this goes against the very strong upstream policy that we do not do so, doesn't work in VMs and so on (because it'll trap to the hypervisor)#asahi-dev · 2022-12-15 11:26
mazthe distinction is that Linux itself doesn't need to know. the whole VM is TSO, end of story.#asahi-dev · 2022-12-15 11:25
marcanhm, what's the distinction exactly?#asahi-dev · 2022-12-15 11:25
mazmarcan: I wonder if we can somehow make the TSO stuff a VM property instead of a per-process thing.#asahi-dev · 2022-12-15 11:25
marcanmaz: so what you're saying is we should just enable it downstream and let the gamer voices eventually become loud enough to annoy upstream into finding a solution ;)#asahi-dev · 2022-12-15 11:23
mazthe direction of travel so far is the exact opposite.#asahi-dev · 2022-12-15 11:23
mazChaosPrincess: you obviously have better information on the architecture than I do...#asahi-dev · 2022-12-15 11:22
ChaosPrincessprobably argue that tso support is coming to new arm64 anyway, just that apple uses a non-standard switch#asahi-dev · 2022-12-15 11:22
svenit's a good idea to build it on the M1 though because those machine make for a fast build machine ;)#asahi-dev · 2022-12-15 11:22
karpouziplenty of buildserver around, thanks for the reminder#asahi-dev · 2022-12-15 11:22
karpouziah i guess i don't technically have to build it on the m1 oops#asahi-dev · 2022-12-15 11:21
svenkarpouzi: ccache + fast-ish VM for building works for me#asahi-dev · 2022-12-15 11:21
karpouzitso = timesharing option?#asahi-dev · 2022-12-15 11:21
ChaosPrincessif process.name == 'fex': enable_tso() :P#asahi-dev · 2022-12-15 11:21
marcanI get your point but I don't see how you could possibly do both#asahi-dev · 2022-12-15 11:21
karpouziquick question... if you're working with different versions of the kernel, ie different branches of the same linux git repo, is the best way to save build time... to have duplicate linux repos? or is there another technique#asahi-dev · 2022-12-15 11:21
marcanyeah okay, any better ideas besides crippling performance of x86 emulation? :p#asahi-dev · 2022-12-15 11:20
maz(see, we're getting there! ;-)#asahi-dev · 2022-12-15 11:20
maz... and will be used by everyone because it will hide bugs.#asahi-dev · 2022-12-15 11:20
marcanthis is intended for x86 emulators#asahi-dev · 2022-12-15 11:19
mazthe main issue is that SW that fails without TSO and works with it will simply always enable it instead of debugging the stuff.#asahi-dev · 2022-12-15 11:19
marcanuh... effective fork of the whole userspace ABI?#asahi-dev · 2022-12-15 11:18
mazmarcan: gut feeling: at best, you'll get ignored. at worse, this will go down into a flame war around an effective fork of the whole userspace ABI... and all the variants in between.#asahi-dev · 2022-12-15 11:16
marcanmaz: re TSO, how much pushback do you think I'll get for trying to get it added to prctl? :p#asahi-dev · 2022-12-15 11:11
karpouzity! i am still in the 'setting up' phase with this kit, will ping when ready#asahi-dev · 2022-12-15 11:10
svenkarpouzi: heikki usually replies pretty quickly to emails and feel free to ask me here as well. I've already spent quite some time banging my head against usb and typec#asahi-dev · 2022-12-15 11:10
svenmaz: I didn't want to scare karpouzi away before they even started ;)#asahi-dev · 2022-12-15 11:09
karpouziwarning appreciated#asahi-dev · 2022-12-15 11:09
maz(understatement of 2022)#asahi-dev · 2022-12-15 11:09
svenbut then again, so is everything USB related#asahi-dev · 2022-12-15 11:09
svenfair warning, that subsystem is a bit strange#asahi-dev · 2022-12-15 11:08
karpouziwill check it out, sven, thanks!#asahi-dev · 2022-12-15 10:54
svenif you want to work on something relatively independent: we'll probably need something like https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/usb/typec/altmodes/displayport.c for thunderbolt.c #asahi-dev · 2022-12-15 10:42
karpouzihmm looks like it#asahi-dev · 2022-12-15 10:41
karpouziis it still true that the latest DP/TB3 branch is atcphc-20221130?#asahi-dev · 2022-12-15 10:40
karpouzithe mac mini finally arrived#asahi-dev · 2022-12-15 08:20
sven*there was#asahi-dev · 2022-12-15 08:19
svenI think Bluetooth had to go through the bt tree because I introduced that generic BT controller binding and they was already at least one follow up commit based on that