Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1784324pxb; Mon, 20 Sep 2021 05:22:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcEb8LvxuMcsn8rzgpN6q3EBwSS1/p0P0CKcw86QDB0mJszSYY9qh9MpYDBOUi/mYXxsJ5 X-Received: by 2002:a6b:7a0a:: with SMTP id h10mr3915780iom.20.1632140524808; Mon, 20 Sep 2021 05:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632140524; cv=none; d=google.com; s=arc-20160816; b=hT3OABu4LGjwVDd7l/P/MeAOaVHr+r3jBP2zQtuMtQX3TEiEGhMQABcKLknPijj+qf VszhIec2J1ybaOZ5AP0YX37hwcZFQjobhYw6IyCd8vhEn8sKSFwI3vizGE1ns/B0cxbp yuSUDbo4I9OHybTo3olp6TC3nmNQ8uH+bbo4dWOVn4loS1i1zk9yp/byXZ9fcrFG8YE6 maAK+DgfTynwUZJRmhl6qxNAHVXLk2IFon5N6h+GQK2U6k6yG3SkRKEWGZ4rn8NZOlLa /nroE1+d4bWmLKO77v8lqKBacbB5tMHntP1lUOoP2SE5LZ/mBDjinWAgljkzJ7/Hox6t WgOw== 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=p3KBzpCX79zdSU54r+L4bMEK5UJRwcecQ5xfJY06aVw=; b=mX+VQ4LCIjMgqvjmo6/Z8Vt7PtSYYTWjmgo0nMAj3S1swxYqXM5OqnzLO8WsR7h/ob v1PLsEK0Uqj4TcRpvGOlahxb7h7LKEHtK6X2DIF3CjEvSi9vIBMRRYPYMEbUNJX2yG9C 7z11aILHtrDmPCBurJf1M4Qo5+X6Y/kXPJH4zAUMyfl/2AQSv9mWJL1E7zbBkrYKpMHU H9Ld9MJGsdMCC31rGwh4aEBlvZL9D85gruTyZ/6h0a9hPEXMPKorTmS8BDMe4KOw3fKl XOvPt0DHJeAwURSZ6bgg+4Z4Rf+Z6Ttlm3vjUA3NxoHj4S35fIaVwkTkPF2VP3m0Pv7q vOqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J6IrkpNH; 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 h5si13903598jar.102.2021.09.20.05.21.48; Mon, 20 Sep 2021 05:22:04 -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=J6IrkpNH; 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 S235274AbhITHxi (ORCPT + 99 others); Mon, 20 Sep 2021 03:53:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:57586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235359AbhITHwr (ORCPT ); Mon, 20 Sep 2021 03:52:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 66B8960FF2; Mon, 20 Sep 2021 07:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632124280; bh=zjM/MTscwltcL8YCPcuFkxfuK+EJqGaD1Adm0/N+pVk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J6IrkpNH65oVZIUchWF2GQ3UYDTZyp7+n+xPusCB8Y0eMGeW+AHOgawO6RWvtOpnA m31r41ki8xRawaz9hDN/L/i535w+l9mkPJlm6DLQT36M912LI+Y/vyQX6CCCakxnSa fYSzB1x4uDWRM5/6AG5yUlGD7jk81iRwhAPa1hBc= Date: Mon, 20 Sep 2021 09:51:18 +0200 From: Greg KH To: Jeya R Cc: linux-arm-msm@vger.kernel.org, srinivas.kandagatla@linaro.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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1632123274-32054-1-git-send-email-jeyr@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? And is this an issue now, or can this wait to 5.16-rc1? thanks, greg k-h