mirror-linux/drivers
Srinivasan Shanmugam de8955508b drm/amdgpu/ttm: Pin 4K MMIO_REMAP Singleton BO at Init v2
MMIO_REMAP (HDP flush page) is a hardware I/O window exposed via a PCI
BAR.  It must not migrate or be evicted.

Allocate a single 4 KB GEM BO in AMDGPU_GEM_DOMAIN_MMIO_REMAP during TTM
initialization when the hardware exposes a remap bus address and the
host page size is <= 4 KiB. Reserve the BO and pin it at the TTM level
so it remains fixed for its lifetime. No CPU mapping is established
here.

On teardown, reserve, unpin, and free the BO if present.

This prepares the object to be shared (e.g., via dma-buf) without
triggering placement changes or no CPU-access migration

v2: Added extra NULL checks

Suggested-by: Christian König <christian.koenig@amd.com>
Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-12-08 13:56:34 -05:00
..
accel accel/amdxdna: Fix deadlock between context destroy and job timeout 2025-11-13 09:10:43 -08:00
accessibility
acpi cxl and related fixes for v6.18-rc6 2025-11-14 13:25:00 -08:00
amba
android
ata
atm
auxdisplay
base regmap: Fixes for v6.18 2025-11-01 10:45:39 -07:00
bcma
block block-6.18-20251031 2025-10-31 12:57:19 -07:00
bluetooth Bluetooth: btrtl: Avoid loading the config file on security chips 2025-11-11 09:06:57 -05:00
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector
counter
cpufreq cpufreq: intel_pstate: Check IDA only before MSR_IA32_PERF_CTL writes 2025-11-12 17:59:37 +01:00
cpuidle RISC-V updates for v6.18-rc5 2025-11-06 15:44:18 -08:00
crypto crypto: hisilicon/qm - Fix device reference leak in qm_get_qos_value 2025-11-06 14:29:49 +08:00
cxl cxl: Adjust offset calculation for poison injection 2025-11-07 09:22:10 -07:00
dax
dca
devfreq
dibs
dio
dma
dma-buf Extra drm-misc-next for v6.19-rc1: 2025-12-02 18:09:08 +10:00
dpll
edac EDAC/altera: Use INTTEST register for Ethernet and USB SBE injection 2025-11-11 14:59:04 +01:00
eisa
extcon
firewire firewire: core: fix to update generation field in topology map 2025-11-16 21:30:26 +09:00
firmware
fpga
fsi
fwctl
gnss
gpio gpio: tb10x: Drop unused tb10x_set_bits() function 2025-11-06 18:19:44 +01:00
gpu drm/amdgpu/ttm: Pin 4K MMIO_REMAP Singleton BO at Init v2 2025-12-08 13:56:34 -05:00
greybus
hid
hsi
hte
hv
hwmon hwmon: (gpd-fan) initialize EC on driver load for Win 4 2025-11-12 11:54:37 -08:00
hwspinlock
hwtracing
i2c i2c: muxes: pca954x: Fix broken reset-gpio usage 2025-11-03 18:04:15 +01:00
i3c
idle
iio
infiniband mlx5: Fix default values in create CQ 2025-11-11 15:12:18 +01:00
input
interconnect
iommu iommufd: Make vfio_compat's unmap succeed if the range is already empty 2025-11-05 15:11:26 -04:00
ipack
irqchip irqchip/riscv-intc: Add missing free() callback in riscv_intc_domain_ops 2025-11-14 16:52:34 +01:00
isdn isdn: mISDN: hfcsusb: fix memory leak in hfcsusb_probe() 2025-10-31 17:39:14 -07:00
leds
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc
mmc mmc: dw_mmc-rockchip: Fix wrong internal phase calculate 2025-11-11 17:47:47 +01:00
most
mtd
mux
net virtio-net: fix incorrect flags recording in big mode 2025-11-13 13:16:30 +01:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci pci-v6.18-fixes-5 2025-11-14 15:45:31 -08:00
pcmcia
peci
perf
phy
pinctrl
platform platform-drivers-x86 for v6.18-3 2025-11-05 11:08:10 -08:00
pmdomain pmdomain: imx: Fix reference count leak in imx_gpc_remove 2025-11-04 17:29:00 +01:00
pnp
power
powercap
pps
ps3
ptp ptp: Allow exposing cycles only for clocks with free-running counter 2025-10-31 16:27:40 -07:00
pwm
rapidio
ras
regulator regulator: fixed: fix GPIO descriptor leak on register failure 2025-11-05 11:56:16 +00:00
remoteproc
reset
rpmsg
rtc rtc: rx8025: fix incorrect register reference 2025-11-08 20:56:12 +01:00
s390
sbus
scsi
sh
siox
slimbus
soc net: ethernet: ti: netcp: Standardize knav_dma_open_channel to return NULL on error 2025-11-04 19:15:36 -08:00
soundwire
spi spi: Add TODO comment about ACPI GPIO setup 2025-11-10 14:03:53 +00:00
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
ufs
uio
usb
vdpa mlx5: Fix default values in create CQ 2025-11-11 15:12:18 +01:00
vfio vfio/xe: Add device specific vfio_pci driver variant for Intel graphics 2025-12-01 09:45:48 +01:00
vhost
video Linux 6.18-rc6 2025-11-21 08:55:08 +10:00
virt
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile