Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1011313ybe; Fri, 13 Sep 2019 09:41:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoG2UKib1p1CnLII4jwgfi0QAKYZZR6d/Oh/yszAckPv+mRt8arlTizuvR0xaYnyC56dgM X-Received: by 2002:aa7:c1d0:: with SMTP id d16mr38260397edp.82.1568392867393; Fri, 13 Sep 2019 09:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568392867; cv=none; d=google.com; s=arc-20160816; b=Y4JMKWzFe8bS7N7koj9LqoduSW5wRCTMzrskVvBgImqxniTTEVJvpU+758xZm6wgnT lS06i9NKpaulJe898rLl3Ps+P23mjrSkYyqgqS3lFDCYoanT/yp6KAGe91UB0WwvTtg6 jLt77EbVGVLg5+BlY8zHMma8BH8H3a8rc8VT4zj9F6SUoQTNn2DsHG6c/JXzv6ygLwy+ EjBvHt+jitDMrR9vz6lBpjujQ/V2WAxNrrnmv+3RJ7pOxuOUq8DKrFHG3XxMGbLEkmYX uiSRU4QgKFdBoOvRZ2MAdP9NnoZNAhR97OR/KH+dF3WxzmIMNUVWxvfcj3RrLCG9tVbc 6TFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YR/vHc0/aYOgQ7htuSAKCOpYZUSwbX4XADi3ha+KA8Q=; b=tRX39a/Ovjro3LmwgoRCCQnj7mg0bpfopT0E+S+nEaB02AwnGJFZ/d6OzSJiU9nisN X5QGRXXLqAKyF2TkQLyNQ7hP74p3r6cmqtyDPDM+8YIcfi01eFxT6xRQHlkDqSxeLmeR VZqHJnJ5+T7Ykt/KpjMs8nreOMkjBoPqyp7Eggy71c/TVsm87FjoNyMIfi4RRy+h0lT9 g1inUdAtT/1bt8HQngSGz5d7ujVaJkb7iMu9DhPeXmEGZm736JcdaTVQE4TEuH+y5cwh rtDqREXZQG0IKX7YZZ2JSBh0paMhW3EZZE4OMxuHjLnFvAwXbha60gY9emLdf7poTNz+ N5FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Leu/DrQJ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o46si18316682edc.124.2019.09.13.09.40.44; Fri, 13 Sep 2019 09:41:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Leu/DrQJ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391535AbfIMPZv (ORCPT + 99 others); Fri, 13 Sep 2019 11:25:51 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33460 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391435AbfIMPZn (ORCPT ); Fri, 13 Sep 2019 11:25:43 -0400 Received: by mail-wr1-f65.google.com with SMTP id u16so32546458wrr.0 for ; Fri, 13 Sep 2019 08:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YR/vHc0/aYOgQ7htuSAKCOpYZUSwbX4XADi3ha+KA8Q=; b=Leu/DrQJjKKYfvqHogFl3YpcT43VdEBKD/+N9xaZ5aX1MwS8dy5gsahY0TJNorpYbj RCM87o79r3lSZplmrXS7UrRD6815d9/SoKwUkCjFRlnYWOrDccnYMBMOP/LZQ2sCY/Sd XVdH/57tU+/Oh19meKnLhqO3VPgF/2Ob1PKAPKmvhbIbkr6gplGq24WEvwL7ekeu7bYh c1H3omILP/rlmpUkgQkyAarA4r4hlL+byuhBCLJ3Us5c4oY2LnWwh05rO3TQDL5yA4za p/jZNguN1Tr1Z09DdtxeI3uGrpp5XCyGPCGiajOWr+3JV9Jj7tcMTH9jSaTQo1yIrybV W5+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YR/vHc0/aYOgQ7htuSAKCOpYZUSwbX4XADi3ha+KA8Q=; b=iq9fwssNDz/5LDcu5vZ1V95KFyT7s+fqRE8nXwflV8+fUxV5vVJWKi6hqRwn7NMhlP 3loGCuyvfnD640KzfDMAg6dgenck+r1IRO9ZPoijo/hU2eZTaXyIcp4MlstY6H9h67ON 1sP4ODBRK6lst8B/IygDdH1d/yF4WFVL16Acm7SQp7ia2j8debTrru4j1SXG5+Cd1NK/ qqQ6r9BcFAeHcgrWwZ9Bf5AwON8YLGbJN6ZjdlGLZITfMJrM28ew5ph/yNwY/qphC89v mlqZ9bBOwPryzowKzTc/EA5eaPmOn54VH1BZ8vdFgx9K2lPNF3qOU3lFzLy5Tcdi5V89 6suQ== X-Gm-Message-State: APjAAAXH8KkpzE6GHHVkoPq/j754HpJ7eo+uruEX1OoRW/4vlv54Ljf6 Ch/MDgzRl0Tv8B6SZd6cjInl3g== X-Received: by 2002:adf:bb0a:: with SMTP id r10mr28521700wrg.13.1568388342113; Fri, 13 Sep 2019 08:25:42 -0700 (PDT) Received: from localhost.localdomain (69.red-83-35-113.dynamicip.rima-tde.net. [83.35.113.69]) by smtp.gmail.com with ESMTPSA id d9sm48717728wrc.44.2019.09.13.08.25.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Sep 2019 08:25:41 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, gregkh@linuxfoundation.org, arnd@arndb.de, srinivas.kandagatla@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 5/5] misc: fastrpc: revert max init file size back to 2MB Date: Fri, 13 Sep 2019 17:25:32 +0200 Message-Id: <20190913152532.24484-6-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913152532.24484-1-jorge.ramirez-ortiz@linaro.org> References: <20190913152532.24484-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Srinivas Kandagatla --- drivers/misc/fastrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 40b48db032b5..ee6de5d9993d 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -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 INIT_MEMLEN_MAX (8 * 1024 * 1024) #define FASTRPC_DEVICE_NAME "fastrpc" #define ADSP_MMAP_ADD_PAGES 0x1000 -- 2.23.0