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) |
||
|---|---|---|
| .. | ||
| fpu | ||
| atomic-long.h | ||
| atomic.h | ||
| atomic64.h | ||
| barrier.h | ||
| byteorder.h | ||
| cpu_device_id.h | ||
| cpufeature.h | ||
| fcntl.h | ||
| hypervisor.h | ||
| intel-family.h | ||
| io.h | ||
| iosf_mbi.h | ||
| memtype.h | ||
| msr.h | ||
| neon.h | ||
| pgtable.h | ||
| processor.h | ||
| set_memory.h | ||
| smp.h | ||
| topology.h | ||
| types.h | ||
| uaccess.h | ||
| unaligned.h | ||