Switch to an MI implementation of kmap_atomic() and implement
authorkettenis <kettenis@openbsd.org>
Wed, 28 Jul 2021 13:28:04 +0000 (13:28 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 28 Jul 2021 13:28:04 +0000 (13:28 +0000)
commit49a189d2df0ba95cbc0b31c4ac61af31ebd25cbb
tree8376ed0ed7253020d276cb411454132ea34ce4c5
parent5486a9fbdcd20dd7cf458d7fcf407fe50ad6b1f9
Switch to an MI implementation of kmap_atomic() and implement
kmap_atomic_prot().  Use this to unstub ttm_copy_io_ttm_page()
and ttm_copy_ttm_io_page().  This fixes suspend/resume of machines
with certain radeondrm(4) hardware.

Based on a diff from jsg@.  Tested by Edd Barrett and Alf Schlichting.
ok jsg@
sys/dev/pci/drm/drm_linux.c
sys/dev/pci/drm/include/linux/highmem.h
sys/dev/pci/drm/ttm/ttm_bo_util.c