From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CA8CBA26 for ; Fri, 29 Dec 2023 03:29:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au 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 1rJ3Z5-00FG9Q-Rp; Fri, 29 Dec 2023 11:29:40 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 29 Dec 2023 11:29:50 +0800 Date: Fri, 29 Dec 2023 11:29:50 +0800 From: Herbert Xu To: Damian Muszynski Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Giovanni Cabiddu Subject: Re: [PATCH] crypto: qat - generate dynamically arbiter mappings Message-ID: References: <20231222131804.8765-1-damian.muszynski@intel.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231222131804.8765-1-damian.muszynski@intel.com> On Fri, Dec 22, 2023 at 02:15:35PM +0100, Damian Muszynski wrote: > The thread-to-arbiter mapping describes which arbiter can assign jobs > to an acceleration engine thread. > The existing mappings are functionally correct, but hardcoded and not > optimized. > > Replace the static mappings with an algorithm that generates optimal > mappings, based on the loaded configuration. > > The logic has been made common so that it can be shared between all > QAT GEN4 devices. > > Signed-off-by: Damian Muszynski > Reviewed-by: Giovanni Cabiddu > --- > .../intel/qat/qat_420xx/adf_420xx_hw_data.c | 131 +++++++----------- > .../intel/qat/qat_4xxx/adf_4xxx_hw_data.c | 110 ++++++++++----- > .../intel/qat/qat_common/adf_accel_devices.h | 4 + > .../intel/qat/qat_common/adf_gen4_hw_data.c | 90 ++++++++++++ > .../intel/qat/qat_common/adf_gen4_hw_data.h | 12 ++ > 5 files changed, 235 insertions(+), 112 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