Christophe Lombard
4108efb02d
cxl: Fix number of allocated pages in SPA
...
The scheduled process area is currently allocated before assigning the
correct maximum processes to the AFU, which will mean we only ever
allocate a fixed number of pages for the scheduled process area. This
will limit us to 958 processes with 2 x 64K pages. If we try to use more
processes than that we'd probably overrun the buffer and corrupt memory
or crash.
AFUs that require three or more interrupts per process will not be
affected as they are already limited to less processes than that, but we
could hit it on an AFU that requires 0, 1 or 2 interrupts per process,
or when using 4K pages.
This patch moves the initialisation of the num_procs to before the SPA
allocation so that enough pages will be allocated for the number of
processes that the AFU supports.
Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com>
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Cc: <stable@vger.kernel.org> # 3.18+
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-10-07 16:44:46 +11:00
..
altera-stapl
drivers/misc/altera-stapl/altera.c: remove extraneous KERN_INFO prefix
2015-06-25 17:00:38 -07:00
c2port
cb710
cxl
cxl: Fix number of allocated pages in SPA
2015-10-07 16:44:46 +11:00
echo
eeprom
Merge branch 'i2c/for-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
2015-09-08 16:16:26 -07:00
genwqe
mm: mark most vm_operations_struct const
2015-09-10 13:29:01 -07:00
ibmasm
lis3lv02d
misc: Drop owner assignment from i2c_driver
2015-08-10 08:37:35 +02:00
mei
mei: fix debugfs files leak on error path
2015-09-20 22:44:51 -07:00
mic
misc: mic: scif bug fix for vmalloc_to_page crash
2015-07-22 21:25:36 -07:00
sgi-gru
sgi-xp
mm: rename alloc_pages_exact_node() to __alloc_pages_node()
2015-09-08 15:35:28 -07:00
ti-st
misc: Drop owner assignment from i2c_driver
2015-08-10 08:37:35 +02:00
vmw_vmci
char: make misc_deregister a void function
2015-08-05 10:35:49 -07:00
ad525x_dpot-i2c.c
misc: Drop owner assignment from i2c_driver
2015-08-10 08:37:35 +02:00
ad525x_dpot-spi.c
ad525x_dpot-spi: Added Blank lines after declarations
2015-01-12 05:04:12 -08:00
ad525x_dpot.c
ad525x_dpot:Remove break after return
2015-01-12 05:04:12 -08:00
ad525x_dpot.h
apds990x.c
misc: Drop owner assignment from i2c_driver
2015-08-10 08:37:35 +02:00
apds9802als.c
arm-charlcd.c
atmel-ssc.c
Char/Misc driver patches for 3.19-rc1
2014-12-14 16:43:47 -08:00
atmel_tclib.c
bh1770glc.c
misc: Drop owner assignment from i2c_driver
2015-08-10 08:37:35 +02:00
bh1780gli.c
misc: bh1780: Add module aliases
2015-03-16 21:10:28 +01:00
bmp085-i2c.c
misc: Drop owner assignment from i2c_driver
2015-08-10 08:37:35 +02:00
bmp085-spi.c
bmp085.c
bmp085.h
cs5535-mfgpt.c
ds1682.c
misc: ds1682: clean up ds1682_eeprom_read() and ds1682_eeprom_write()
2015-08-05 13:53:39 -07:00
dummy-irq.c
enclosure.c
enclosure: fix WARN_ON removing an adapter in multi-path devices
2015-03-31 08:53:36 +03:00
fsa9480.c
hmc6352.c
hpilo.c
hpilo.h
ics932s401.c
ioc4.c
misc: ioc4: simplify wave period measurement in clock_calibrate
2015-01-12 05:04:11 -08:00
isl29003.c
misc: Drop owner assignment from i2c_driver
2015-08-10 08:37:35 +02:00
isl29020.c
Kconfig
ARM: qcom: Add coincell charger driver
2015-07-29 13:37:18 -07:00
kgdbts.c
clone: support passing tls argument via C rather than pt_regs magic
2015-06-25 17:00:38 -07:00
lattice-ecp3-config.c
lkdtm.c
Makefile
ARM: qcom: Add coincell charger driver
2015-07-29 13:37:18 -07:00
pch_phub.c
phantom.c
pti.c
qcom-coincell.c
ARM: qcom: Add coincell charger driver
2015-07-29 13:37:18 -07:00
spear13xx_pcie_gadget.c
Pratyush Anand has moved
2015-06-25 17:00:38 -07:00
sram.c
genalloc: add name arg to gen_pool_get() and devm_gen_pool_create()
2015-09-04 16:54:41 -07:00
ti_dac7512.c
tifm_7xx1.c
misc: tifm: match return type of wait_for_completion_timeout
2015-03-25 11:36:38 +01:00
tifm_core.c
tsl2550.c
misc: Drop owner assignment from i2c_driver
2015-08-10 08:37:35 +02:00
vexpress-syscfg.c
vmw_balloon.c
VMware balloon: Add support for balloon capabilities.
2015-08-05 13:17:53 -07:00