Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1677860pxb; Mon, 20 Sep 2021 02:38:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRfY6jJe8s+d3f6wNiu9vQ5jVVNVeeBdaumDNxYr8raTLfaAB/AEiN+nT/pRCkjHA0XFTC X-Received: by 2002:a05:6e02:1561:: with SMTP id k1mr15822240ilu.302.1632130692827; Mon, 20 Sep 2021 02:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632130692; cv=none; d=google.com; s=arc-20160816; b=XCEjZUen1Lt0thqvnGqIjaBl2Cy5kyoltMyFhebxrw/KYCthmof+/bEAv2mkUSFivv m+AhSqH0gTaZSTyQOu1camxvcx8otrPK491v3UFclcx8p+iUTVPrVcX+GW3TSMKJFB9R HZDm0AskvQZFG1NNINTJt7dIYEBWR1pei/BSMlXKfhjvMl3/gR2EQb2G/kjUz6mMHNKl wj3qWtSIsqGGMkoUGeOZxatZmDPK18ZWF6lKsLk5iGdQZ+Vbk3NOIfnrRryWlUaTc9g1 5XlKMOtul0aWBYB08LN/vOSCJuHf1InzJQXhdJREzF/xAZ8HGnWZc9dVLzHdThuQZPS6 QtQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=guDqP9mzbCK3jhnLaJQu4vGACyNS8E3H6yhUxUqNr2g=; b=j6j1hjWhh/64Lir57mHNPlNN+gus68m4Lx7+mzI/enLFO81GSfSEseKUM3HoOcdugU LvjwCYHOhPP7NfoUBaNFhQDoVYLhJ87T8KmmQiA6xYjQY5otgILmxuxbs6guWuQ1dYP2 e08KhWwn3C7vhs9NDxRFyczUsNEsE8SuCfpPGRz6uI134RtMCmIWfKRQeZ2gzylRYiwy KjIm/kyY2es+XbYX48Us/YJrHRS13EI7w9nCGrOCtNN8rczU1dcFzqRvu8LxgXRSeqb9 wwU61qbt20lAvymONBJrb4r0lS02SEJlFqtwvp7oX8HtsKmn+rxFIUZ/18FmnDY60ng6 UBeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si14473903jam.29.2021.09.20.02.37.59; Mon, 20 Sep 2021 02:38:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229565AbhITHgT (ORCPT + 99 others); Mon, 20 Sep 2021 03:36:19 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:37111 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbhITHgR (ORCPT ); Mon, 20 Sep 2021 03:36:17 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 20 Sep 2021 00:34:51 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 20 Sep 2021 00:34:49 -0700 X-QCInternal: smtphost Received: from ekangupt-linux.qualcomm.com ([10.204.67.11]) by ironmsg01-blr.qualcomm.com with ESMTP; 20 Sep 2021 13:04:39 +0530 Received: by ekangupt-linux.qualcomm.com (Postfix, from userid 2319895) id 3DFE542C0; Mon, 20 Sep 2021 13:04:38 +0530 (IST) From: Jeya R To: linux-arm-msm@vger.kernel.org, srinivas.kandagatla@linaro.org Cc: Jeya R , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, fastrpc.upstream@qti.qualcomm.com Subject: [PATCH] misc: fastrpc: Update number of max fastrpc sessions Date: Mon, 20 Sep 2021 13:04:34 +0530 Message-Id: <1632123274-32054-1-git-send-email-jeyr@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For latest chipsets, upto 13 fastrpc sessions can be supported. This includes 12 compute sessions and 1 cpz session. Not updating this might result to out of bounds memory access issues if more than 9 context bank nodes are added to the DT file. Signed-off-by: Jeya R --- 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 beda610..bd7811e 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -24,7 +24,7 @@ #define SDSP_DOMAIN_ID (2) #define CDSP_DOMAIN_ID (3) #define FASTRPC_DEV_MAX 4 /* adsp, mdsp, slpi, cdsp*/ -#define FASTRPC_MAX_SESSIONS 9 /*8 compute, 1 cpz*/ +#define FASTRPC_MAX_SESSIONS 13 /*12 compute, 1 cpz*/ #define FASTRPC_ALIGN 128 #define FASTRPC_MAX_FDLIST 16 #define FASTRPC_MAX_CRCLIST 64 -- 2.7.4