opnsense-src/sys/compat/linuxkpi/common/include/asm
Kyle Evans 816b72bd2f linuxkpi: work with numpages > 1 in the set_pages_*() KPIs
These calls are used for buddy pages at least in drm's ttm_pool, which
leads to a panic when we invoke lowmem handlers and drm tries to shrink
the pool.

Cope with numpages > 1 by traversing the contiguous pages and executing
the adjustment there, as well, as suggested by markj@.  Previous
versions have tried to use the corresponding `set_memory_*()` functions,
but it is believed that not updating `md.pat_mode` breaks subsequent
userspace mappings in ways that may result in things like screen tearing
or other artifacts when running i915kms.

This stabilized my amdgpu laptop running two VMs, chromium and a
concurrent buildworld.

Reviewed by:	bz, markj

(cherry picked from commit 67f7f2781daa9bd398b424ffe2bd0be67f37f03d)
(cherry picked from commit 8dad29555a5807bf21941807752e1589e20312de)
2026-09-23 11:26:47 +02:00
..
fpu
atomic-long.h
atomic.h
atomic64.h
barrier.h
byteorder.h
cpu_device_id.h linuxkpi: Define VFM_*() macros in <asm/cpu_device_id.h> 2026-04-30 20:07:13 +02:00
cpufeature.h
fcntl.h
hypervisor.h
intel-family.h linuxkpi: Define VFM_*() macros in <asm/cpu_device_id.h> 2026-04-30 20:07:13 +02:00
io.h
iosf_mbi.h
memtype.h
msr.h
neon.h
pgtable.h linuxkpi: Define PMD_SHIFT 2026-04-22 20:57:01 +00:00
processor.h
set_memory.h linuxkpi: work with numpages > 1 in the set_pages_*() KPIs 2026-09-23 11:26:47 +02:00
smp.h
topology.h linuxkpi: Add the topology_*() functions 2025-08-09 14:26:24 +02:00
types.h
uaccess.h
unaligned.h linuxkpi: Add get_unaligned_le64() 2026-04-22 20:56:55 +00:00