]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
misc: fastrpc: revert max init file size back to 2MB
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Wed, 9 Oct 2019 14:41:23 +0000 (15:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 13:28:12 +0000 (15:28 +0200)
With the integration of the mmap/unmap functionality, it is no longer
necessary to allow large memory allocations upfront since they can be
handled during runtime.

Tested on QCS404 with CDSP Neural Processing test suite.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20191009144123.24583-6-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/fastrpc.c

index eef2cdc00672a5362a2f255ddb5dbe2e2113c3d6..b6420aae45b939cd62d4ed331351fbad1f9365d6 100644 (file)
@@ -32,7 +32,7 @@
 #define FASTRPC_CTX_MAX (256)
 #define FASTRPC_INIT_HANDLE    1
 #define FASTRPC_CTXID_MASK (0xFF0)
-#define INIT_FILELEN_MAX (64 * 1024 * 1024)
+#define INIT_FILELEN_MAX (2 * 1024 * 1024)
 #define FASTRPC_DEVICE_NAME    "fastrpc"
 #define ADSP_MMAP_ADD_PAGES 0x1000