cxl: Handle num_of_processes larger than can fit in the SPA

Michael Ellerman mpe at ellerman.id.au
Wed May 11 07:48:42 AEST 2016


On Wed, 2016-04-05 at 04:46:30 UTC, Ian Munsie wrote:
> From: Ian Munsie <imunsie at au1.ibm.com>
> 
> 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 at au1.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/eb8724b8dc99462a8fd1fa5734

cheers


More information about the Linuxppc-dev mailing list