Allow sbld allocation to fail when PMAP_CANFAIL.
authorgkoehler <gkoehler@openbsd.org>
Tue, 4 Jun 2024 17:31:59 +0000 (17:31 +0000)
committergkoehler <gkoehler@openbsd.org>
Tue, 4 Jun 2024 17:31:59 +0000 (17:31 +0000)
commit9e6587aee4fdcf19b18481dd57a0bfad1c63c29c
tree9ed1b6f3fac3a2fb5ab1ae906816356ce388c1e6
parent92119d768f45cf44645fc7f9c2fe90112b6d3f97
Allow sbld allocation to fail when PMAP_CANFAIL.

pool_get in powerpc64's pmap might fail when uvm_km_pages.free == 0.
This might cause KASSERT(slbd) to panic 'kernel diagnostic assertion
"sbld" failed'.  Remove this KASSERT and add a check for PMAP_CANFAIL.
pmap_enter calls without PMAP_CANFAIL might still panic.

ok mpi@ jca@
sys/arch/powerpc64/powerpc64/pmap.c