Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4327925rdb; Thu, 28 Dec 2023 19:32:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjS7CKAVAH07QvzJKVva1PF/snu39m75jVxXpAqQcJ660Uy3nHaKmRsF4KdggigTZZzA8q X-Received: by 2002:a05:6808:199b:b0:3bb:dfeb:54b9 with SMTP id bj27-20020a056808199b00b003bbdfeb54b9mr639208oib.81.1703820729665; Thu, 28 Dec 2023 19:32:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703820729; cv=none; d=google.com; s=arc-20160816; b=E5U2XwasI7w+hSjDWLLf5YfXRwGB+nZxakWiC2p0SMjwyL5ubY6ZWET/kZSq9TiK2n /tLkOuA7weMes7x3sR3tp7OW3PoCVxrYtwXu//waExrkPYclSNmLGkdF2r1+idtMIt6/ 67aCVa9Mgdltk9ldmMV1W4bFc7k4XdrAkaK39Q7tkAVjDPkkR4CFnYLbtqFmLbaAB5Zz Fonw57h8QxcXx76zMJsEfHqI+ui76oDfhWHs79zBSjOyX0T9SKePdIl5+C6XY8LRthHX XgwbDS05mgKeh5L3e/fylSUgO9DCdnyJiOOc3sqUaZhDRnyvX3bPMULHLlqOv2RJIRm1 tZDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=yV4m5uVjG5TDlnPqulFZTCi+mzraovn4UzQcw3jZIR4=; fh=a4LdwbRotdroEAgSVsvlE2mYRX9OlcsQ3eMeM10zb1s=; b=j9QmDrh+c1a9dhx18rMUMipbknz707aC6+ua/MDyoUlPP+2jU3UXZVdCHNwhBZw6o0 NBR+kvk95Z4UTnJbRVcMNY8h0GWxgKh+jE09RyH+3N3ljL0nuEfi9sEIk7R7d3grTkNs af+LNS5uCwWh5OjNpqNbCwt1WUksOkAobfkQBnteRraTEojTs91dKekrPBxG6v6zx92t PyBsQyyiIa/2ZC6svSGathv9z/mNm3BBog3f/MhkyPU0axQUj30Jq8+UzWnz0U4OfHFb Kv06LR1D4dLLjF2Umr+/YQSGZ2yNnGq7xS1ReQoVrdbQkqG9erKxOOd+AAm1ENgYumgx XuCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-1082-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1082-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f15-20020a056a00238f00b006d97bf37c26si12730196pfc.328.2023.12.28.19.32.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 19:32:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1082-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-1082-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1082-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0D986B22B5C for ; Fri, 29 Dec 2023 03:29:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDE9C17E2; Fri, 29 Dec 2023 03:29:45 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org 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