Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2107426rdb; Thu, 7 Dec 2023 20:08:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhZJ2FF4Yh/tU3n3oyEeqRSpGqLBdXo/3gw082oUfPIrhG+oEhuwOy5tTj2GuWdwzwvCom X-Received: by 2002:a17:902:da83:b0:1d0:5ed4:4bf with SMTP id j3-20020a170902da8300b001d05ed404bfmr4278874plx.54.1702008503411; Thu, 07 Dec 2023 20:08:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702008503; cv=none; d=google.com; s=arc-20160816; b=YL3oXsvZbxhl91RTcpdEVylFgIkn3Zs4SlY5LnsG/N1yLcKXSDEK/lgiw19liWC/Bf mboiy+wrVlY45qjPriDYQeUfBliYMtEGG/bAcgIO4+ON7vgJ198AkHzZOc24y1tO+j/X Gw2TaOKY4ML68o6HcXSz7EMN1f2/FHvrcoCIMUx21b7VK+odA8iIAmCc5QTyLX0Hmsgk mL7UtZUqN0nTq8sQprDaZ6PtjO4b9eUsbwB0Al8pFn2y9EfXsc71srZ1mGLFDzuaTpqP jNSBdvhcCPGRxLirh/gcsf4dt0LeDZz6bngHGCT6Wipwzr0S23aV/ptpibznvtNGqFke SYKA== 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; bh=P+GV+j7NWPYurd12Gvxqcrix3wu1PI4doFf2AQj8t2Y=; fh=ecHc0Lmu8ISbK7Xgq8357ATHXVnRlWVw5/p5sNVYyh4=; b=wilytsZwl8FSR7N+57lZj6jhwuypLHhLntCbI8MZMx5QFRPx3pHRBRUnD1fDwIfJFF iNidqomBWujRJqbVnvUvq+Hfz848xU5LfKYoZq/Cb/Oad0jbnXWhSbUwaLYDDLXsfNjV +bYrGy6QF1G2BclYmgP6KJqTHMx1JUD0009Rji0T28JADfmZMcPrNC+GxW0nvke7grm6 w7nUsujiJtBrZSNmR+GkvYXZ9MBoZhoGyCZYK401snSiv6G9COg7+Xcix/qt7ugMqDQH O7F1uFCebQXGEUhLcWzIEF0v/zK/REn1xs/45XgrA6bEZ0dLH6Nx6ZmICDoDhKOc/Yt9 wREA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id p19-20020a170902b09300b001d07b6a0aeasi831789plr.325.2023.12.07.20.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 20:08:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 434FC8229F17; Thu, 7 Dec 2023 20:08:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573110AbjLHEIH (ORCPT + 99 others); Thu, 7 Dec 2023 23:08:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjLHEIG (ORCPT ); Thu, 7 Dec 2023 23:08:06 -0500 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82D6A1716; Thu, 7 Dec 2023 20:08:12 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1rBS9Z-008Ijk-He; Fri, 08 Dec 2023 12:07:54 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 08 Dec 2023 12:08:03 +0800 Date: Fri, 8 Dec 2023 12:08:03 +0800 From: Herbert Xu To: Bharat Bhushan Cc: bbrezillon@kernel.org, arno@natisbad.org, schalla@marvell.com, davem@davemloft.net, alobakin@pm.me, tj@kernel.org, masahiroy@kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto/octeontx2: By default allocate one CPT LF per CPT VF Message-ID: References: <20231129154133.1529898-1-bbhushan2@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231129154133.1529898-1-bbhushan2@marvell.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 07 Dec 2023 20:08:20 -0800 (PST) On Wed, Nov 29, 2023 at 09:11:33PM +0530, Bharat Bhushan wrote: > There are limited number CPT LFs (example 64 LFs on cn10k) and > these LFs are allocated/attached to CPT VF on its creation. > cptpf sysfs parameter "kvf_limits" defines number of CPT LFs > per CPT VF. Default "kvf_limits" is initialized to zero and if > kvf_limits is zero then number of LF allocated are equal to > online cpus in system. > > For example on 24 core system, 24 CPT LFs will be attached per VF. > That means no CPT LF available when creating more than 2 CPT VFs > on system which have total 64 LFs. Although VFs gets created but > no LF attached to it. > > There seems no reason to default allocate as many LFs as many > online cpus in system. This patch initializes "kvf_limits" to > one to limit one LF allocated per CPT VF. "kvf_limits" can > be changed in range of 1 to number-of-online-cpus via sysfs. > > Signed-off-by: Bharat Bhushan > --- > drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c | 1 + > drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 3 +-- > 2 files changed, 2 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt