OSDN Git Service

fsi: sbefifo: Bump max command length
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 7 Aug 2018 01:51:52 +0000 (11:51 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 8 Aug 2018 05:44:47 +0000 (15:44 +1000)
commit15e2a7218c2788d79c5633336d17cb9428c221e7
tree97b666b910312ffb131d7af3ca8784c56bbd148c
parentaa1221b2584f06066d1e6b22ef7950fb12d94864
fsi: sbefifo: Bump max command length

Otherwise cronus putmem fails istep and BML fails to upload skiboot

To do that, we still use our one-page command buffer for small commands
for speed, and for anything bigger, with a limit of 1MB plus a page,
we vmalloc a temporary buffer.

The limit was chosen because Cronus will break up any data transfer
into 1M chunks (the extra page is for the command header).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
drivers/fsi/fsi-sbefifo.c