]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc/mmu: Don't use the cache instructions to zero pages
authorJustin Hibbits <jhibbits@FreeBSD.org>
Tue, 19 May 2020 01:06:31 +0000 (01:06 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Tue, 19 May 2020 01:06:31 +0000 (01:06 +0000)
commit1da3138f68c7bea391954ce659352f3a77a6cd97
tree6f945424251da2d43e16bdc3b01bc94d8e31a720
parent2fdbcbea76f54ff0f4304845d65b9db9aab0152f
powerpc/mmu: Don't use the cache instructions to zero pages

A page (even physmem) can be marked as cache-inhibited.  Attempting to use
'dcbz' to zero a page mapped cache-inhibited triggers an alignment
exception, which is fatal in kernel.  This was seen when testing hardware
acceleration with X on POWER9.

At some point in the future, this should be changed to a more straight
forward zero loop instead of bzero(), and a similar change be made to the
other pmaps.

Reported by: pkubaj@
sys/powerpc/aim/mmu_radix.c