#
✕ nick:nickchan
#asahi-dev · 2026-02-11 03:33
nickchanand if users stack another layer of NV on that it would be even worse
#asahi-dev · 2026-02-11 03:33
nickchanand that's not ideal because nv performance is bad
#asahi-dev · 2026-02-11 03:29
nickchannot a high bar but just show how much it is possible to get away with
#asahi-dev · 2026-02-11 03:28
nickchan(context: obviously EL1/vEL2 linux VM worked under macOS somehow)
#asahi-dev · 2026-02-11 03:25
nickchan(they emulated smmu)
#asahi-dev · 2026-02-11 03:25
nickchanyes this is cursed but honestly that's just qualcomm level of cursedness from perspective of linux
#asahi-dev · 2026-02-11 03:25
nickchanit would need some sort of virtual smmu though
#asahi-dev · 2026-02-11 03:24
nickchanthis is why I said EL1
#asahi-dev · 2026-02-11 03:24
nickchanbecause no RWX
#asahi-dev · 2026-02-11 03:24
nickchannicolas17: that will never work
#asahi-dev · 2026-02-11 03:23
nickchanbut this is way too cursed and complex given that all the custom registers need to be save/restored too
#asahi-dev · 2026-02-11 03:23
nickchanit's always possible to have m1n1 running under sptm and put linux in EL1 and use NV to say it's EL2 but way way too cursed
#asahi-dev · 2026-02-11 03:20
nickchanthe way it's implemented is mrs still works but msr will undef
#asahi-dev · 2026-02-11 03:19
nickchanas garbage as this is this is still better than qhat qualcomm is doing
#asahi-dev · 2026-02-11 03:19
nickchan11.2
#asahi-dev · 2026-02-11 03:16
nickchanon "laptops"
#asahi-dev · 2026-02-11 03:15
nickchanregarding EL2
#asahi-dev · 2026-02-11 03:15
nickchannicolas17: but it's unlikely lobbying would do a thing given the kind of stuff qualcomm can get away with
#asahi-dev · 2026-02-11 03:13
nickchanBut rat race is not happening given absolutely nothing has happened to ios 17.0's sptm
#asahi-dev · 2026-02-11 03:13
nickchaneither that or rat race
#asahi-dev · 2026-02-11 03:12
nickchanMacOs won't have the graphics drivers
#asahi-dev · 2026-02-11 03:11
nickchannicolas17: think so and it is especially a dealbreaker because there's no sane way to reproduce muvm
#asahi-dev · 2026-02-11 03:10
nickchanand this is a dealbreaker even for just running linux
#asahi-dev · 2026-02-11 03:09
nickchanno hyoervisor will work right without that
#asahi-dev · 2026-02-11 03:09
nickchanmost worringly, SYS_IMP_APL_VM_TMR_FIQ_ENA_EL2 is on the disabled list
#asahi-dev · 2026-02-11 03:08
nickchanthis includes things like Apple Generic Timer, but
#asahi-dev · 2026-02-11 03:08
nickchana lot of other registers are also disabled
#asahi-dev · 2026-02-08 15:01
nickchan🎉
#asahi-dev · 2026-02-07 13:12
nickchanthat's the two impdefs used by linux
#asahi-dev · 2026-02-07 13:11
nickchana question more important for linux is whether ACTLR_EL1[1] or HACR_EL2[56] is writable
#asahi-dev · 2026-02-07 13:08
nickchan0 should be the correct value for armv8.6 (by extension armv9.2) compliant behavior
#asahi-dev · 2026-02-07 12:18
nickchanagtcntrdir_el1 string exist in t8132 kernel
#asahi-dev · 2026-02-07 09:53
nickchanI keep git stashing and poping because of that 🙃
#asahi-dev · 2026-02-07 09:35
nickchankvm won't exactly like another EC == 0x3f 🙃
#asahi-dev · 2026-02-07 09:34
nickchanhave you checked the ESR_EL1.EC
#asahi-dev · 2026-02-07 09:32
nickchanas in what happens when CNTFRQ_EL0/CNTPCT_EL0 is read in EL0 with that bit set or not
#asahi-dev · 2026-02-07 09:32
nickchanjannau: though what do you mean by trap control
#asahi-dev · 2026-02-07 09:27
nickchanwith VHE schematics program AGTCNTRDIR_EL1 and AGTCNTRDIR_EL12 to identical values in m1n1 EL2 and it will be consistent for kvm
#asahi-dev · 2026-02-07 09:23
nickchanand if AGTCNTRDIR_EL1 and AGTCNTRDIR_EL12 (from EL2 pov) is consistent then the state of HCR_EL2.TGE should not matter for counter
#asahi-dev · 2026-02-07 09:22
nickchanguest can't use the register then
#asahi-dev · 2026-02-07 09:21
nickchanjannau: i think kvm can ignore those registers since it sets TIDCP
#asahi-dev · 2026-02-07 09:17
nickchanprogram both AGTCNTRDIR_EL1 and AGTCNTRDIR_EL12 and it should be fine though
#asahi-dev · 2026-02-07 09:15
nickchanFor linux the EL0 and EL1/2 counter frequency should be aligned
#asahi-dev · 2026-02-06 16:28
nickchanso basically now i need to get the region code into FDT to handle things 100% correctly which is even more complexity
#asahi-dev · 2026-02-06 16:27
nickchanand this is determined by a value written into pmu nvram on shutdown
#asahi-dev · 2026-02-06 16:27
nickchanChina devices should have a battery indicator in offline charging and other devices do not
#asahi-dev · 2026-02-06 16:27
nickchanwhich is whether offline charging should have a battery indicator (like android) or not
#asahi-dev · 2026-02-06 16:26
nickchannow i am in the power off simulation behavior stage (physically cannot be off when plugged in) where China devices *should* behave differently than other devices
#asahi-dev · 2026-02-06 16:26
nickchanthough the more i look into it the more cursed it gets
#asahi-dev · 2026-02-06 16:26
nickchani did find a solution for t8015 shutdown compatible issue looking at other drivers all i need to do is declare another array of mfd_cell for t8015

plus ›