Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2766229pxb; Tue, 21 Sep 2021 07:14:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylabP273ERzQFrLjPoYc18ArKlo/BZh5WUslud2keXO0aOdtQvd1RpBpvPZ7WydVVMDO9f X-Received: by 2002:a05:6e02:f94:: with SMTP id v20mr22888581ilo.148.1632233664149; Tue, 21 Sep 2021 07:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632233664; cv=none; d=google.com; s=arc-20160816; b=opboNUFp07XQX/jfu9QMf7XtMigcHNtiG8rHidy73BGd4H/fvW5M5TrdX5JwhziVzL dJoXMXAkTX8oxdzkauDBRcENvN5E1Yu6KPJ4VZ8vBEtDJBEQTGJZalvySHTuIq1GygH5 HNsdmlKbXbhAkipfQaDIvGJ4Ugia+NpuCe+tGD1ypp3h39wpg2X83eCusdelHPKxcBri qLaWAzBux6Qs3rLfiyMWNP+yq3x4epTsrq2Xr6zS8ZTT+uBBLprDlgPCcr5+svb3JNxK vlpxnHzCGidgq7FbRjcc5ChZroiRhbqG0+Uolpc2IbOCXCjnowGmocJRVSOEci70h3sa E7wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hD1bFWSPCFny3HiwvFL5QDbyHEIBr7deNpPdYn+b3qU=; b=c9oaHzqQ1J/1AC1WEDu5rZ+vmXDiDLkhnFDjZaIro5ZL76FzlWNw75klAbHrmNqOmw YsFD0/GKLtRgngAFGGo12vYCADCAwHEC4dRvuNDay9EkxLzyc9HEo1IIX2A0xj2oTiUC vWiCCH/YvNBS+lrGew/r/hCk5TSyKT4yhCZaPWGKnuE0pmqXOZ+QQZpSVHV8XT0r7Ael uI3nBb5xYi3iAlKhaSwrTcYdxoH0KJwNZIPGnadpxkgs/h7ULpAzBXN6DmVhuJ4dhY5c x+7y+7V/+qz6Cce+yAp7EXPR+C1ZXy/69momuWshCYO9KBTswfmscLcHPaByYfoOHgWA TqUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TesjUNQq; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si9991871ilh.150.2021.09.21.07.14.08; Tue, 21 Sep 2021 07:14:24 -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=@linuxfoundation.org header.s=korg header.b=TesjUNQq; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233483AbhIUOOF (ORCPT + 99 others); Tue, 21 Sep 2021 10:14:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:53946 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231781AbhIUOOB (ORCPT ); Tue, 21 Sep 2021 10:14:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A7E561156; Tue, 21 Sep 2021 14:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632233551; bh=tPA3el9irNElL1kdVA4YUgpKpVtEb9WJ+dYaBXABR08=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TesjUNQqhg1fpjbuKkY32BUxHO740dsFrOOPxRx2m0EV7CxVdQcvCxgsqjgg41iya rkWUb8DY9Y+6ltFSM8EbIepuQucvlVjJ2gJ6YeiPnd+bPfqPVJckUnajb/Qwo13Vyj ZKfTJbqmhNUXKjnt9tIDPnjsG8xM3cnHELEOIE+g= Date: Tue, 21 Sep 2021 16:12:27 +0200 From: Greg KH To: Srinivas Kandagatla Cc: Jeya R , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, fastrpc.upstream@qti.qualcomm.com Subject: Re: [PATCH] misc: fastrpc: Update number of max fastrpc sessions Message-ID: References: <1632123274-32054-1-git-send-email-jeyr@codeaurora.org> <88370a7c-9e28-ae1b-2f48-bc38a8cff78f@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <88370a7c-9e28-ae1b-2f48-bc38a8cff78f@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 20, 2021 at 01:53:39PM +0100, Srinivas Kandagatla wrote: > > > 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. Ok, can I get a reviewed-by: for this?