Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp71646ybx; Thu, 31 Oct 2019 23:13:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFNXo3ltAXCVoT0FpdCAv6pzMICsUv6ATa56KzgUJD8s6PVCvOQ9VJG4jNKgML/YWK978d X-Received: by 2002:a50:fd1a:: with SMTP id i26mr10575789eds.272.1572588836553; Thu, 31 Oct 2019 23:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572588836; cv=none; d=google.com; s=arc-20160816; b=n5JxWWTkV4g0moceIX8I/Vwd4tybT4oh2knWNUl8zc06+AtgwOk3p9USvzjTgDPFdh ekoczRwX5+ZrPGNQT17KAWIgZZKVGBQtTreXuQlmsvFo1DRzpepAk3s5/zjBp+qc9agp 5H2FFTvexb19b5xJ3/yIY9j6hTi4hbSRLkKh8XxY8HfNUbFUyTJSc8LqeBV9Su4y/WTs xcuKFlfM18cLNeriJHRqL3+wgXoCSH7wq8SgZ+H3Of6XOzTji3F4MsgP+AV6eylwaazY xZHZAWp7yZYG5BrY027rrHPy+PHrgfX5KEAZem1Isvy73TbD84/KWedPTzA6bmeXH/gE fGWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bd51HHvaHRnURa40/gAMHIOFrZWHOwE/qhYLsUIJalw=; b=SR2k8JMYCddj1gyyJtE8bm9IXnR4x1CiNybdgeKFZMYxTW1fjuaez0SDdgyRRwrzFZ aD/LreDWQqTSvC70wWMy/t1jNFhsz7afa7Q+kMxrbnEee4ptcbl6Cw9EkXUAapJiuejg 1HBROWw4HaGZx02BoPEuza9DYIHxD5WV6evyufmH581dKtrSIC7Pxuk4awmTaUyBfYB2 B91U3eTYEdJUr41w+ZNongHU0AEDXvpcqcoQ5KQPK+szCzhe4Y8aogehDsoM81HeKLnf e+a2PRV/UUxonGWzC1XnSuJDGvhlJaok3YjacJW1ctIlWKf2wxf9tzY130HrJmUbp0wM U5vA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8si4930161ejm.162.2019.10.31.23.13.32; Thu, 31 Oct 2019 23:13:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728369AbfKAGNT (ORCPT + 99 others); Fri, 1 Nov 2019 02:13:19 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:37788 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbfKAGNT (ORCPT ); Fri, 1 Nov 2019 02:13:19 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1iQQBR-00020U-4x; Fri, 01 Nov 2019 14:13:17 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1iQQBQ-0004vW-V3; Fri, 01 Nov 2019 14:13:16 +0800 Date: Fri, 1 Nov 2019 14:13:16 +0800 From: Herbert Xu To: Zhou Wang Cc: "David S. Miller" , linux-crypto@vger.kernel.org, Shukun Tan Subject: Re: [PATCH] crypto: hisilicon - fix to return sub-optimal device when best device has no qps Message-ID: <20191101061316.ks34f6mn6d3hxoxz@gondor.apana.org.au> References: <1572058816-185603-1-git-send-email-wangzhou1@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1572058816-185603-1-git-send-email-wangzhou1@hisilicon.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sat, Oct 26, 2019 at 11:00:16AM +0800, Zhou Wang wrote: > Currently find_zip_device() finds zip device which has the min NUMA > distance with current CPU. > > This patch modifies find_zip_device to return sub-optimal device when best > device has no qps. This patch sorts all devices by NUMA distance, then > finds the best zip device which has free qp. > > Signed-off-by: Zhou Wang > Signed-off-by: Shukun Tan > --- > drivers/crypto/hisilicon/qm.c | 21 ++++++++++ > drivers/crypto/hisilicon/qm.h | 2 + > drivers/crypto/hisilicon/zip/zip_main.c | 74 ++++++++++++++++++++++++--------- > 3 files changed, 77 insertions(+), 20 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