Pin the default framebuffer. The Linux drm code no longer does this since
authorkettenis <kettenis@openbsd.org>
Thu, 9 Feb 2023 17:18:21 +0000 (17:18 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 9 Feb 2023 17:18:21 +0000 (17:18 +0000)
commite028d9005c921fcba4e8dec9c1b878d2ab0ffbde
treecf5ef5c9bec4b057ab347ed9cbd2e6d3819aaab8
parent82625ff8f2e7c3ac782958440210b6953586aeb5
Pin the default framebuffer.  The Linux drm code no longer does this since
they switched to using a shadow framebuffer and only pin the hardware
framebuffer when flushing the shadow framebuffer.  But our wdisplay(4)
and rasops(9) code expects the hardware framebuffer to be always
accessible at the same address.

Fixes the regression introduced by amdgpu_object.c rev 1.12.

ok jsg@
sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c