WSL2-Linux-Kernel/drivers
Vivek Gautam b48522b788 iommu/arm-smmu: Error out only if not enough context interrupts
commit d1e20222d5 upstream.

Currently we check if the number of context banks is not equal to
num_context_interrupts. However, there are booloaders such as, one
on sdm845 that reserves few context banks and thus kernel views
less than the total available context banks.
So, although the hardware definition in device tree would mention
the correct number of context interrupts, this number can be
greater than the number of context banks visible to smmu in kernel.
We should therefore error out only when the number of context banks
is greater than the available number of context interrupts.

Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Suggested-by: Tomasz Figa <tfiga@chromium.org>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
[will: drop useless printk]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Cc: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-05 09:26:34 +02:00
..
accessibility
acpi ACPI / EC: Use ec_no_wakeup on more Thinkpad X1 Carbon 6th systems 2018-08-24 13:09:20 +02:00
amba ARM: amba: Don't read past the end of sysfs "driver_override" buffer 2018-05-01 12:58:21 -07:00
android ANDROID: binder: prevent transactions into own process. 2018-05-01 12:58:20 -07:00
ata libahci: Fix possible Spectre-v1 pmp indexing in ahci_led_store() 2018-08-24 13:09:00 +02:00
atm atm: zatm: Fix potential Spectre v1 2018-07-22 14:28:43 +02:00
auxdisplay auxdisplay: fix broken menu 2018-07-03 11:24:56 +02:00
base x86/speculation/l1tf: Add sysfs reporting for l1tf 2018-08-15 18:12:50 +02:00
bcma
block nbd: handle unexpected replies better 2018-09-05 09:26:25 +02:00
bluetooth Bluetooth: hci_serdev: Init hci_uart proto_lock to avoid oops 2018-08-15 18:12:49 +02:00
bus drivers/perf: arm-ccn: don't log to dmesg in event_init 2018-08-03 07:50:31 +02:00
cdrom cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:52:34 +02:00
char random: mix rdrand with entropy sent in from userspace 2018-08-03 07:50:42 +02:00
clk clk: sunxi-ng: Fix missing CLK_SET_RATE_PARENT in ccu-sun4i-a10.c 2018-08-17 21:01:11 +02:00
clocksource clocksource/drivers/imx-tpm: Correct some registers operation flow 2018-06-21 04:02:40 +09:00
connector
cpufreq cpufreq: intel_pstate: Register when ACPI PCCH is present 2018-07-25 11:25:08 +02:00
cpuidle cpuidle: powernv: Fix promotion from snooze if next state disabled 2018-07-03 11:24:51 +02:00
crypto crypto: vmx - Use skcipher for ctr fallback 2018-09-05 09:26:23 +02:00
dax dev-dax: check_vma: ratelimit dev_info-s 2018-08-24 13:09:08 +02:00
dca
devfreq PM / devfreq: Fix potential NULL pointer dereference in governor_store 2018-04-12 12:32:13 +02:00
dio
dma dmaengine: k3dma: Off by one in k3_of_dma_simple_xlate() 2018-08-24 13:09:08 +02:00
dma-buf dma-buf: remove redundant initialization of sg_table 2018-06-05 11:41:57 +02:00
edac EDAC: Add missing MEM_LRDDR4 entry in edac_mem_types[] 2018-08-24 13:08:55 +02:00
eisa
extcon extcon: intel-cht-wc: Set direction and drv flags for V5 boost GPIO 2018-04-24 09:36:29 +02:00
firewire firewire-ohci: work around oversized DMA reads on JMicron controllers 2018-04-26 11:02:03 +02:00
firmware fw_cfg: fix driver remove 2018-08-17 21:01:11 +02:00
fmc
fpga fpga-manager: altera-ps-spi: preserve nCONFIG state 2018-05-01 12:58:24 -07:00
fsi
gpio gpiolib-acpi: make sure we trigger edge events at least once on boot 2018-09-05 09:26:32 +02:00
gpu drm/imx: imx-ldb: check if channel is enabled before printing warning 2018-09-05 09:26:24 +02:00
hid HID: wacom: Correct touch maximum XY of 2nd-gen Intuos 2018-08-24 13:09:11 +02:00
hsi
hv Drivers: hv: vmbus: do not mark HV_PCIE as perf_device 2018-04-19 08:56:16 +02:00
hwmon hwmon: (nct6775) Fix loop limit 2018-08-24 13:08:56 +02:00
hwspinlock
hwtracing intel_th: Use correct device when freeing buffers 2018-06-05 11:41:59 +02:00
i2c i2c/mux, locking/core: Annotate the nested rt_mutex usage 2018-09-05 09:26:29 +02:00
ide cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:52:34 +02:00
idle intel_idle: Graceful probe failure when MWAIT is disabled 2018-08-09 12:16:39 +02:00
iio iio: pressure: bmp280: fix relative humidity unit 2018-08-24 13:09:05 +02:00
infiniband RDMA/mlx5: Fix memory leak in mlx5_ib_create_srq() error path 2018-08-24 13:09:16 +02:00
input Input: synaptics-rmi4 - fix axis-swap behavior 2018-08-24 13:08:56 +02:00
iommu iommu/arm-smmu: Error out only if not enough context interrupts 2018-09-05 09:26:34 +02:00
ipack
irqchip irqchip/ls-scfg-msi: Map MSIs in the iommu 2018-08-03 07:50:24 +02:00
isdn isdn: Disable IIOCDBGVAR 2018-08-22 07:46:11 +02:00
leds leds: pm8058: Silence pointer to integer size warning 2018-03-19 08:42:50 +01:00
lightnvm lightnvm: pblk: warn in case of corrupted write buffer 2018-08-03 07:50:25 +02:00
macintosh drivers: macintosh: rack-meter: really fix bogus memsets 2018-05-30 07:52:27 +02:00
mailbox
mcb
md md/raid10: fix that replacement cannot complete recovery after reassemble 2018-08-24 13:09:08 +02:00
media media: si470x: fix __be16 annotations 2018-08-03 07:50:41 +02:00
memory memory: tegra: Apply interrupts mask per SoC 2018-08-03 07:50:38 +02:00
memstick
message scsi: mptfusion: Add bounds check in mptctl_hp_targetinfo() 2018-05-25 16:17:47 +02:00
mfd mfd: cros_ec: Fail early if we cannot identify the EC 2018-08-03 07:50:27 +02:00
misc mei: don't update offset in write 2018-09-05 09:26:33 +02:00
mmc mmc: pwrseq: Use kmalloc_array instead of stack VLA 2018-08-03 07:50:37 +02:00
mtd mtd: dataflash: Use ULL suffix for 64-bit constants 2018-08-24 13:09:04 +02:00
mux mux: core: fix double get_device() 2018-01-17 09:45:27 +01:00
net drivers: net: lmc: fix case value for target abort error 2018-09-05 09:26:32 +02:00
nfc NFC: pn533: Fix wrong GFP flag usage 2018-08-24 13:09:06 +02:00
ntb ntb_transport: Fix bug with max_mw_size parameter 2018-04-26 11:02:13 +02:00
nubus
nvdimm linvdimm, pmem: Preserve read-only setting for pmem devices 2018-07-03 11:24:58 +02:00
nvme nvme: fix handling of metadata_len for NVME_IOCTL_IO_CMD 2018-08-24 13:09:21 +02:00
nvmem nvmem: Don't let a NULL cell_id for nvmem_cell_get() crash us 2018-08-24 13:09:14 +02:00
of of: platform: stop accessing invalid dev in of_platform_device_destroy 2018-07-03 11:24:52 +02:00
oprofile
parisc parisc/pci: Switch LBA PCI bus from Hard Fail to Soft Fail mode 2018-05-30 07:52:28 +02:00
parport parport_pc: Add support for WCH CH382L PCI-E single parallel port card. 2018-04-08 14:26:31 +02:00
pci PCI: pciehp: Fix unprotected list iteration in IRQ handler 2018-08-24 13:09:23 +02:00
pcmcia PCMCIA / PM: Avoid noirq suspend aborts during suspend-to-idle 2018-05-30 07:52:39 +02:00
perf drivers/perf: xgene_pmu: Fix IOB SLOW PMU parser error 2018-08-24 13:08:59 +02:00
phy phy: phy-mtk-tphy: use auto instead of force to bypass utmi signals 2018-08-15 18:12:48 +02:00
pinctrl pinctrl: nsp: Fix potential NULL dereference 2018-08-24 13:09:17 +02:00
platform platform/x86: asus-wmi: Fix NULL pointer dereference 2018-07-08 15:30:53 +02:00
pnp
power power: supply: ltc2941-battery-gauge: Fix temperature units 2018-05-30 07:52:38 +02:00
powercap
pps
ps3
ptp ptp: fix missing break in switch 2018-07-25 11:25:10 +02:00
pwm pwm: lpss: platform: Save/restore the ctrl register over a suspend/resume 2018-07-03 11:25:03 +02:00
rapidio
ras
regulator regulator: Don't return or expect -errno from of_map_mode() 2018-08-03 07:50:40 +02:00
remoteproc remoteproc: qcom: Fix potential device node leaks 2018-06-21 04:02:48 +09:00
reset
rpmsg rpmsg: smd: do not use mananged resources for endpoints and channels 2018-07-03 11:24:59 +02:00
rtc rtc: tps65910: fix possible race condition 2018-08-03 07:50:32 +02:00
s390 vfio: ccw: fix error return in vfio_ccw_sch_event 2018-08-24 13:08:55 +02:00
sbus
scsi scsi: vmw_pvscsi: Return DID_RESET for status SAM_STAT_COMMAND_TERMINATED 2018-09-05 09:26:32 +02:00
sfi
sh
sn
soc soc: imx: gpc: restrict register range for regmap access 2018-08-24 13:09:19 +02:00
spi spi: meson-spicc: Fix error handling in meson_spicc_probe() 2018-08-03 07:50:38 +02:00
spmi
ssb
staging media: staging: omap4iss: Include asm/cacheflush.h after generic includes 2018-09-05 09:26:28 +02:00
target scsi: target: iscsi: cxgbit: fix max iso npdu calculation 2018-09-05 09:26:24 +02:00
tc
tee tee: check shm references are consistent in offset/size 2018-06-21 04:02:54 +09:00
thermal thermal: exynos: fix setting rising_threshold for Exynos5433 2018-08-03 07:50:37 +02:00
thunderbolt thunderbolt: Prevent crash when ICM firmware is not running 2018-04-24 09:36:29 +02:00
tty pty: fix O_CLOEXEC for TIOCGPTPEER 2018-08-24 13:08:55 +02:00
uio uio_hv_generic: check that host supports monitor page 2018-04-12 12:32:19 +02:00
usb usb: gadget: f_uac2: fix endianness of 'struct cntrl_*_lay3' 2018-09-05 09:26:26 +02:00
uwb
vfio vfio/type1: Fix task tracking for QEMU vCPU hotplug 2018-08-03 07:50:23 +02:00
vhost vhost: reset metadata cache when initializing new IOTLB 2018-08-22 07:46:09 +02:00
video backlight: pwm_bl: Don't use GPIOF_* with gpiod_get_direction 2018-08-03 07:50:38 +02:00
virt
virtio virtio_balloon: fix another race between migration and ballooning 2018-08-06 16:20:49 +02:00
vlynq
vme
w1 1wire: family module autoload fails because of upper/lower case mismatch. 2018-07-03 11:24:47 +02:00
watchdog watchdog: da9063: Fix updating timeout value 2018-08-03 07:50:24 +02:00
xen xen/scsiback: add error handling for xenbus_printf 2018-08-24 13:09:01 +02:00
zorro zorro: Set up z->dev.dma_mask for the DMA API 2018-05-30 07:52:30 +02:00
Kconfig
Makefile usb: build drivers/usb/common/ when USB_SUPPORT is set 2018-02-25 11:07:53 +01:00