From patchwork Wed Oct 9 14:41:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 175623 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp855502ill; Wed, 9 Oct 2019 07:41:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzprQBTK++AkI/YHC+Np8vB8Hz8sffhwe/OaGN2wUdRfOjGE3zmpq1iFizICyHbW5xPmhwV X-Received: by 2002:a50:9f66:: with SMTP id b93mr3158975edf.236.1570632104367; Wed, 09 Oct 2019 07:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570632104; cv=none; d=google.com; s=arc-20160816; b=uysX8XH0rDQK2ScznoDjg6fLawqEZFEtir5yFL3/p+7KUa0oyZYSo+/JATCXHS3/q5 7eGk589fbVcRvLon4JGzOu1il6mTipptFtaiKAYncXhKWUTDfWVcqMw7Hshw8ceO3AiP U4BoHezW/SGxlw+jMo1ah1nG+HKkM26LBt2+SjfPIJn0xzbkIEd2tsnpre8AP+ZMxp0a QafCmYDlPhQqS4bo6zas1LWaVul4PIRIvsWilYhYFlfMeP2wzbjNEPLDyCJG/cp1gTTj Mz4P/D/6W/cp1hbxHjUnWQHwb/AZEPAfqOjMiYUXRF8srJ+EE0fp7CJSK9xEJpiu3rRS Qazg== 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=HkWnKjTS7NNaz0B8BlFiWfLhS4jldKU7yfNvUhiWaQM=; b=jRVOC7f/SCwumLsZnqgOR7KgyfJVSRCAOW5rJEhznUJK6pYJ00NxAkq5OWSZ7jhuKQ qpL4r0Wwe5gf+dnCSaIeZfNfHjLcSIE6HaJY7AgXDxLe5/N/imjdVOGwgiMYb3c6nzXD 3oMCOLmwohVqj8GylYn2wmBLPlGJv4LVyFRjEHL09aX9livRPgcmgOXCGZ9+xvAMBl53 HfLemDb6+IcAT9426tyR0JYR9RkXvgJzrQL8orMBaRKZ1sGVzIivAKWwscBXlwTZ1gbo 7NPf/WpKlY6oQOZTFuBDKVnOJ3SFM0omnDO8ux61pAY3OHbtxUdqrQuYLyC43M967s8U vFWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f7ss43sX; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 f8si1255859ejd.270.2019.10.09.07.41.44; Wed, 09 Oct 2019 07:41:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=f7ss43sX; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1731599AbfJIOlm (ORCPT + 15 others); Wed, 9 Oct 2019 10:41:42 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37927 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731584AbfJIOll (ORCPT ); Wed, 9 Oct 2019 10:41:41 -0400 Received: by mail-wr1-f67.google.com with SMTP id w12so3349291wro.5 for ; Wed, 09 Oct 2019 07:41:40 -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=HkWnKjTS7NNaz0B8BlFiWfLhS4jldKU7yfNvUhiWaQM=; b=f7ss43sXwKeRE+g80ck8yRpx+79MpXlAU1ICqgUsyPCZ2LLoVvxA6BOR3KRt21gjwW kj915Hpw47CWN/pKnCTCFjdRM/v5W+s/gP8vs150QmXsqlTTQOTwS72avXQMVZWJnN7w zKo+Hh6J9IYLXPkRfaF7Ab76QKgZTdMr2EHbyDJ9DLBwwO7YhAOjCf8xeg7skOoPZ1nv ya8FNp987bJwuINtL34bTWlctIy/qGZ5UVjvTb+h2al2y5U2fwK9m3feljXXWwWmPa36 LAFwBkOEVebcAmYlLeNYoSRxrgjlVI1E80f6VOPl5n2DSZaCAuOuebstfC8IHlKoC0RQ o8BA== 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=HkWnKjTS7NNaz0B8BlFiWfLhS4jldKU7yfNvUhiWaQM=; b=ZA9/pP8k5hDalysOafDCGD2ufuqo2f5sbwduvhN6bf75cwd9/SMR/hRBLEBWIfebCO YBlcBkTKmpeVmz4tAcEONqaTR/aBOX1oBONej4oOJ54ttSLtwaV99UgLHSCLuL9de0TS SdzlCgQObyCMVZK6waz1naJ8vAR2OIkXSnE9xegF6ygJCeSurG/g565bDGV43tM0f4ZB LjeQhSwUPSJ86T10ykK3iMhlymA31LRh+qL63JiB0QbjJhrWIGb8aosBxJHBtu8x3nZM JAnZ70lVXX0l3a3k/eMIhONlcBpbJf4XPiUUieL0NcLxm1w2iv5uHXCLBo6YkJwHpbD4 QV7g== X-Gm-Message-State: APjAAAUf7xifP95siQZ1MVlzNN8UDtj7OD3zxvhgsNnbvyF/qiRqqm1I YvEhUBeq7ZW5anohaDl3Npj2xA== X-Received: by 2002:adf:dfc4:: with SMTP id q4mr3238951wrn.302.1570632099807; Wed, 09 Oct 2019 07:41:39 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id b7sm3031770wrx.56.2019.10.09.07.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 07:41:36 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Jorge Ramirez-Ortiz , Srinivas Kandagatla Subject: [PATCH v3 5/5] misc: fastrpc: revert max init file size back to 2MB Date: Wed, 9 Oct 2019 15:41:23 +0100 Message-Id: <20191009144123.24583-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191009144123.24583-1-srinivas.kandagatla@linaro.org> References: <20191009144123.24583-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Jorge Ramirez-Ortiz 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 Signed-off-by: Srinivas Kandagatla --- drivers/misc/fastrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index eef2cdc00672..b6420aae45b9 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 FASTRPC_DEVICE_NAME "fastrpc" #define ADSP_MMAP_ADD_PAGES 0x1000