Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2795258pxb; Tue, 21 Sep 2021 07:51:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBNw21XIVfGl51BVgOdKGs0A+9sIG/LC6vWodVbte+Xz/yBg3Y9mr5gbZLlJKRARq4WWVP X-Received: by 2002:a02:242d:: with SMTP id f45mr284502jaa.135.1632235878505; Tue, 21 Sep 2021 07:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632235878; cv=none; d=google.com; s=arc-20160816; b=XLupU5X1Ll+/QKqJM/5wv8UCAmCNhXqVd+eLLLHvXPz+ewdXDskB6+UOFct7x+Nmlw D5CuhbyNDYGJt5D27AsY0jTZTRjEPB0IBfJrnepZWJX8bCTsf19zm+wrpirY/GCwHvN6 i4zJLP3FbseeHSrlTsxTfTKMbduc4JLKeaS5eNdJNw6k+pJRebvOVTgCLU12haJVIGwY Bvt82dsJwABBTy6Up7lv3WUupYVBIyKu1XcO7tfd1u5zMxpxin7Ja6r0Jp7Zk51MUQO/ BDpmMXeWac8/RF6Pwax19BJcfydClqiuSA1YafZKDNgv08UloQAIlP1v31eIIGeUJWG0 fzoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=kbJXvFoSEvxHLyKnjMflLly9fly3CInLB69cwVX7xdo=; b=T5iNCu1n8wyRGPC7eaoXV+fxplEaCYAbJVJXS2nFzv9XQM3tjD7e5semtHzT7CYJJn bVqfAXABVHNpJ4+ycF+1uwPhJ3ma8N4inPoApwiqKQGE43VsXAxQXRmD4telNGoflKhj 1hNOUOUtTfbogBakw/xgzMKt6dHffFFaAzIXyGEzOicBShpG9kFIE/OyNsHtjOIIKwpu 3v6gI8G71xtThqcAC848wH7WIRZeQRDSHAEE/neU+15d1aJjShlRywlvtlHxynR0o0TA Qv9nAYQ6OhBMqhRcrWgE9nb9Nb88ZQPPWwO3/F7Oy/dLBWz/n3FhOiU/iEOuQWos+f0Y x/Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tYSW29ye; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si15468694jac.2.2021.09.21.07.51.06; Tue, 21 Sep 2021 07:51:18 -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; dkim=pass header.i=@linaro.org header.s=google header.b=tYSW29ye; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233718AbhIUOvc (ORCPT + 99 others); Tue, 21 Sep 2021 10:51:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233644AbhIUOva (ORCPT ); Tue, 21 Sep 2021 10:51:30 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0405AC061574 for ; Tue, 21 Sep 2021 07:50:02 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id c21so73915401edj.0 for ; Tue, 21 Sep 2021 07:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=kbJXvFoSEvxHLyKnjMflLly9fly3CInLB69cwVX7xdo=; b=tYSW29yeUWqRzvnjRGrKTSE4VCN2prpGK7avcSPiX2hbcRhvWIe4eHsRIhzvW8dvhD RZodQF8gcy1FmSyHcT23rkhFTt/PN07lWVwTqlpzJy75LA/OoASnp3OWGCaJfa6knqym ubaciDfYlukBacgpGy/L5aMfhOEu4BE9h1H7T1H2sr++0Wq3AgrjP6P1I7UHWxLKIzaB Ab+8QS/YW8jzKhc+QLeBQrI3Q3b2K/CiUn4u4azS8Glw0t9bJO7ou252ZP9z8wVNnOEv HS+u1hhY/IqkfgCixx282iGqUFuSj/YljbeRStdmqTjBGJi/RZykK/kM7xdzkObl7PYi 3Emw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kbJXvFoSEvxHLyKnjMflLly9fly3CInLB69cwVX7xdo=; b=w+TvKPqUcKSp9MrHirdalcHwodB4MZBp926JldaFBCefAZtVr83A4MUt1RrBvNLfAV nj1w6iO0C0Qgf4n6y9DpnMTEkxSiv8R6KldbzpvCz9R6NSC5ETQPCr3d3/djrejSaHFR 6D6P71VE54OKT8Rxh88f7lkhTPB77BhZjhzM5cJ8XV6i8sncYuBMmjX7vMVa3evhUK4Z j/73ML3vmu6YurNOthJWQkLKurNk7IT+7g0BSIW0qhFnni5Rf02uooOtFzHewe21Rfxh rN7VyEcIvKFz9bu9Mzu2zsknrXAqroHSvjq7rXS+R48Y3fVN0ou6jFzXb5Qfov6XmSmD KHCQ== X-Gm-Message-State: AOAM530WWUc+zcau8zz12a6XSw/GYEQ6IvuCdBKru4qenzRPySfkWyWA HMhFLWR+ffwwYfcFg0QpIWsdRQ== X-Received: by 2002:a17:906:3693:: with SMTP id a19mr35581281ejc.237.1632235658651; Tue, 21 Sep 2021 07:47:38 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id t24sm8675788edr.84.2021.09.21.07.47.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Sep 2021 07:47:38 -0700 (PDT) Subject: Re: [PATCH] misc: fastrpc: Update number of max fastrpc sessions To: Jeya R , linux-arm-msm@vger.kernel.org Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, fastrpc.upstream@qti.qualcomm.com References: <1632123274-32054-1-git-send-email-jeyr@codeaurora.org> From: Srinivas Kandagatla Message-ID: Date: Tue, 21 Sep 2021 15:47:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1632123274-32054-1-git-send-email-jeyr@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/09/2021 08:34, Jeya R wrote: > 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 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 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 >