linux-stable/drivers
Yi Liu 8c6eabae38 iommufd: Add IOMMU_HWPT_INVALIDATE
In nested translation, the stage-1 page table is user-managed but cached
by the IOMMU hardware, so an update on present page table entries in the
stage-1 page table should be followed with a cache invalidation.

Add an IOMMU_HWPT_INVALIDATE ioctl to support such a cache invalidation.
It takes hwpt_id to specify the iommu_domain, and a multi-entry array to
support multiple invalidation data in one ioctl.

enum iommu_hwpt_invalidate_data_type is defined to tag the data type of
the entries in the multi-entry array.

Link: https://lore.kernel.org/r/20240111041015.47920-3-yi.l.liu@intel.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Co-developed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2024-01-11 12:55:04 -04:00
..
accel
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block
bluetooth Bluetooth: Fix deadlock in vhci_send_frame 2023-12-15 11:29:16 -05:00
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl cxl/pmu: Ensure put_device on pmu devices 2023-12-14 21:54:45 -08:00
dax
dca
devfreq
dio
dma
dma-buf
dpll
edac EDAC/versal: Read num_csrows and num_chans using the correct bitfield macro 2023-12-15 13:01:27 +01:00
eisa
extcon
firewire
firmware
fpga
fsi
gnss
gpio gpio: dwapb: mask/unmask IRQ when disable/enale it 2023-12-21 11:19:01 +01:00
gpu Merge tag 'drm-intel-fixes-2023-12-21' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes 2023-12-22 13:11:09 +10:00
greybus
hid hid-for-linus-2023121901 2023-12-18 16:47:21 -08:00
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c i2c: aspeed: Handle the coalesced stop conditions with the start conditions. 2023-12-19 21:54:57 +01:00
i3c
idle
iio Revert "iio: hid-sensor-als: Add light color temperature support" 2023-12-19 08:08:20 +01:00
infiniband
input Input updates for v6.7-rc6 2023-12-23 11:16:58 -08:00
interconnect
iommu iommufd: Add IOMMU_HWPT_INVALIDATE 2024-01-11 12:55:04 -04:00
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md dm audit: fix Kconfig so DM_AUDIT depends on BLK_DEV_DM 2023-12-18 13:11:05 -05:00
media
memory
memstick
message
mfd
misc
mmc
most
mtd
mux
net USB / Thunderbolt fixes for 6.7-rc7 2023-12-23 11:48:05 -08:00
nfc
ntb
nubus
nvdimm
nvme nvme-pci: fix sleeping function called from interrupt context 2023-12-19 12:41:05 -08:00
nvmem nvmem: brcm_nvram: store a copy of NVRAM content 2023-12-15 13:15:02 +01:00
of
opp
parisc
parport
pci Revert "PCI: acpiphp: Reassign resources on bridge if necessary" 2023-12-15 14:55:10 -06:00
pcmcia
peci
perf
phy phy fixes for 6.7 2023-12-17 09:19:27 -08:00
pinctrl pinctrl: at91-pio4: use dedicated lock class for IRQ 2023-12-21 09:05:02 +01:00
platform platform/x86/amd/pmc: Disable keyboard wakeup on AMD Framework 13 2023-12-18 15:08:19 +02:00
pmdomain
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 s390 updates for 6.7-rc7 2023-12-20 16:12:39 -08:00
sbus
scsi scsi: core: Always send batch on reset or error handling command 2023-12-18 21:09:41 -05:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
ufs scsi: ufs: core: Let the sq_lock protect sq_tail_slot access 2023-12-18 21:09:54 -05:00
uio
usb USB-serial device ids for 6.7-rc6 2023-12-22 09:59:30 +01:00
vdpa
vfio
vhost
video
virt
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile