]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cxl: Handle num_of_processes larger than can fit in the SPA
authorIan Munsie <imunsie@au1.ibm.com>
Wed, 4 May 2016 04:46:30 +0000 (14:46 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:54:09 +0000 (21:54 +1000)
commit895a79805c287df73142f1b424b22ea5190734c2
treed798a517ec54ead3e934c72f5640c9246f9fa7d1
parent171cb719dacd0f102b39bd5ab5eea0ce11813853
cxl: Handle num_of_processes larger than can fit in the SPA

num_of_process is a 16 bit field, theoretically allowing an AFU to
support 16K processes, however the scheduled process area currently has
a maximum size of 1MB, which limits the maximum number of processes to
7704.

Some AFUs may not necessarily care what the limit is and just want to be
able to use the maximum by setting the field to 16K. To allow these to
work, detect this situation and use the maximum size for the SPA.

Downgrade the WARN_ON to a dev_warn.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/native.c