Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1962152pxb; Mon, 20 Sep 2021 09:04:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxya8FwjPdUpPVJ8dlEwHCqfYJvtK2xh6Fi97zPMN4xZ/xlhg7CGCCMWRHgwOxY7vRCs8uI X-Received: by 2002:a05:6638:1389:: with SMTP id w9mr19879155jad.138.1632153848477; Mon, 20 Sep 2021 09:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632153848; cv=none; d=google.com; s=arc-20160816; b=gbT7Hza6oYrOa33I4l2Y6iAHIxk69hIq6Yi6SV1PEr5UfxXBzi3nD/cUDpgLj0X6Dl sHpXNPKbuPiLuZxQuHA48Qu1x1bjwZk7vsCr9oo4a0p2RyomD4coHP1BLVVaC6Cdgjsn kdvGMgtd/3Ah5tHGqj5FL2GVTZ5ZNMxyUf5EIX/blJ40irOeWajk1ylA35+JblwzHTAF aOY4/O6coCgAsjoBWhbiCMkSveIJQXTr9GQfMfbk5SWYTkgD7YDzhasABc8m4nETzbZ6 r22PCiyLETZe/aYxdtK0c41J6T4Wb7CXa2nnVBHp3aiVBIMEJl9izeTBvzF9F1xg7m97 pdkQ== 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=EtHYpsyKq+obMQJvRNPJVQMXf1iuDZUh4kTqBS/uYM8=; b=qpd8iVmwe9HMkhqxkI7dUrq+lAIrnPlqeEc6WP3S5H3NtuDPhJW9EsUHybB2EWALTv mj4CgETftcvDGJV2/MiEu0now6cDHzwIldbMa7E+086oKWgpJPrqvgVHQxPxLGDExKLD yWsW5VppDXokB2mw5aKj2B6uuaOUfn3kyqRGZxdL0uPoPghoUQDmazVByl+pFz50RsTn PiLR2L7/WSBMbw0syvOR4H/IFJFrXNkyZK/FFCTcLqjawGqV8JHYePPbE65LRfGYOaVo iZRtJf7m1WkiI6JkWz83IHC4vx4emI41X0aoWx9jJie54/r6tK8VwSCecmREgmbTiNsc inBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nNONN3xb; 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 w8si4186395ilu.157.2021.09.20.09.03.54; Mon, 20 Sep 2021 09:04:08 -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=nNONN3xb; 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 S238858AbhITMzL (ORCPT + 99 others); Mon, 20 Sep 2021 08:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238869AbhITMzJ (ORCPT ); Mon, 20 Sep 2021 08:55:09 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B05F8C061762 for ; Mon, 20 Sep 2021 05:53:42 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id c22so60959418edn.12 for ; Mon, 20 Sep 2021 05:53:42 -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=EtHYpsyKq+obMQJvRNPJVQMXf1iuDZUh4kTqBS/uYM8=; b=nNONN3xb1H+5+JXdtkASL0DQ3moevZl1ILUbtQ81z5bCCIUzOVY1VDOtQdsjxPXU1R ng04/g42xmWszmb8jK0nJm+YZSMkQiLf0uF/aNBai0uwjR55S5Sm/SdHxFuGnmzafS/1 fbF9aZhVgBcHUneh1LdNMMK+P0ykoeVEC7kj3IHEE/2JlxRdihRfBSGa7qTVjrP9ma4J Y05ke1tqbhE3wCIyqtAvLMBHdp1bJ1jfJVdxN6a7DwxgWth8jbiHExKq5bDTUeatQHHa 6BK6l/6LXLR+XDmLD0hhQpSf9LtKNar7Fd2ul7SPE+GNjEU3dvTZBTSJntlSDr26Z1ug hUDA== 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=EtHYpsyKq+obMQJvRNPJVQMXf1iuDZUh4kTqBS/uYM8=; b=LUpyyNCpNqqpz8MMelU39yJt7KXGaHx8Us5WylejYbPUOEVC6VAj3oJu6rgstwIC63 +D83sCpC44rcidRi13v5n8FrRyPUV2jKdjAUcS6awVtnd2uUeMSyqGOBfL5bt/Z0S6Ri NZIN1Nie7jhy4QEBC6lG4x8yWbuLxDfftqWtyDPEcPVuFrzYdAlYESSi86KLOPKzOZbz JP5R+bIBcYucJ8bqHN1tPGXZR0XZA/MNV0sFZJeCYvuHvDos3IEwGTVX2/v60uS0jd/Q TvvYm9J94RnECfMpynezMhFVnYr5x+QIKZzPqGoY/N837vzFEoiO+NGGXdN+GmzTmlC2 baog== X-Gm-Message-State: AOAM5304OO8eKTAE/CHNvEvtUP+dOMKmylrWS/ZheDVr/2vwAyR7/GOz FGRNY7CDS175zKN5c78wjlx4XQ== X-Received: by 2002:a17:906:dbf2:: with SMTP id yd18mr14559102ejb.536.1632142421107; Mon, 20 Sep 2021 05:53:41 -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 bm1sm6171601ejb.38.2021.09.20.05.53.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Sep 2021 05:53:40 -0700 (PDT) Subject: Re: [PATCH] misc: fastrpc: Update number of max fastrpc sessions To: Greg KH , Jeya R Cc: linux-arm-msm@vger.kernel.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: <88370a7c-9e28-ae1b-2f48-bc38a8cff78f@linaro.org> Date: Mon, 20 Sep 2021 13:53:39 +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: 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:51, Greg KH wrote: > On Mon, Sep 20, 2021 at 01:04:34PM +0530, 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 >> --- >> 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 >> > > What happens if you run this on "older" chipsets? This change should not have any implications on the older chips, as the existing compute context bank device tree entries will not exceed 9. > > And is this an issue now, or can this wait to 5.16-rc1? We could wait take in 5.16-rc1, as its an enhancement to allow more compute context banks. --srini > > thanks, > > greg k-h >