Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp121785ybx; Fri, 1 Nov 2019 00:17:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy3W9SCcQ43PvG9s7MoY64DjNu0JYXWUV2w3dXqzz+bDg4/HXI7fSyv2NJohDX5OkjGAvD X-Received: by 2002:a17:906:118d:: with SMTP id n13mr8050098eja.229.1572592666793; Fri, 01 Nov 2019 00:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572592666; cv=none; d=google.com; s=arc-20160816; b=PVfxkyrQt362NZPR4uvXE8PPHDbyJbNzzg1Weg1F0iohmr75CNRrW1UeskCbvauh9H odf1ybsnSgAXoXTQZC4BbJSnHOLDFh3TM8QMtw9pa0VAU1411RueSO5NQsmceKPGZbm3 lBQ0y4mvpFNPjTNF07vpERGC8rMm7D0OrM5cVZU0FHLL2NuF9CYeF6kYO7iNbCzvBX6E WWRMdWIQnFjkMDR1mmiAZCGYB1gR8oFVAbFcd6YAduwf1giGVfFsSvbCtKtazSr7JUoL qcF6Z/T5nyyiNYeM7trxeZ1jD10ryLFs+v4H4ikzfgjv7Q+uNk7LNZhhiHItiZaTqA8S tXcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=OEwvK4LYzGIV3F8EwmRrADVnkVudvVZos7XeeFtCrE8=; b=p7/ObkLzvoYGG5lM/U4Is5TtQgT8OCI7QwyXrfRrGpQYA5p2jXW1aMdOZJh6uJ/Mfc I7WphiYNqMMurtamjEMYVIhrfYurgbzT1zMF5re6p5wUwRtitxPDALfit6b9tIxfNZ++ m7JPOvcHQjZe2AGMc1gjkQDnYzdU1gPqGe8oFZG8tczBh4IC1SAhmCP3mC+yzsEd8bI1 PsopUlZypt60TG5CyztCAt5GK26Y7FP9BQhcDeOzStTPQXk6qa8o8NqBTnqjEu9PfmHH 2VbuT91bNeE59gGQuY/TTOBinzJo7WRP1OdA5foa/4aOh8ajQa0g21t0gdMQndQwI+OM rpfA== 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 w32si6110128edc.443.2019.11.01.00.17.08; Fri, 01 Nov 2019 00:17:46 -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 S1727053AbfKAHED (ORCPT + 99 others); Fri, 1 Nov 2019 03:04:03 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5677 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727038AbfKAHED (ORCPT ); Fri, 1 Nov 2019 03:04:03 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C64F18EF76902144B3F6; Fri, 1 Nov 2019 15:04:00 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Fri, 1 Nov 2019 15:03:52 +0800 Subject: Re: [PATCH] crypto: hisilicon - fix to return sub-optimal device when best device has no qps To: Herbert Xu References: <1572058816-185603-1-git-send-email-wangzhou1@hisilicon.com> <20191101061316.ks34f6mn6d3hxoxz@gondor.apana.org.au> CC: "David S. Miller" , , Shukun Tan From: Zhou Wang Message-ID: <5DBBD8D8.4010104@hisilicon.com> Date: Fri, 1 Nov 2019 15:03:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20191101061316.ks34f6mn6d3hxoxz@gondor.apana.org.au> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2019/11/1 14:13, Herbert Xu wrote: > 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. Thanks. >