Save quite a bit of space by removing the existence of PTEDs. The
authorpatrick <patrick@openbsd.org>
Fri, 25 Jun 2021 12:40:29 +0000 (12:40 +0000)
committerpatrick <patrick@openbsd.org>
Fri, 25 Jun 2021 12:40:29 +0000 (12:40 +0000)
commit2322545b20b3ae8bfd87c910487ac6afb7a7ea5e
treeb6d78e3f26cf9164a061b537add9b3ee75cca25b
parent2b2b39576440dbef1091aebe8ce07850802e3d19
Save quite a bit of space by removing the existence of PTEDs.  The
dynamics of SMMU are a bit different to regular MMU usage, as we do
not need P->V lists or ref/mod emulation (with page access upgrade).
While in the future we might want to save cacheability modes, it is
not necessary right now.  Our PTED construct, which holds that kind
of information, is not needed.  With these gone, we save around 93%
of smmu(4)'s previous memory overhead.

Discussed with drahn@ kettenis@
sys/arch/arm64/dev/smmu.c
sys/arch/arm64/dev/smmuvar.h