Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2010568ybt; Thu, 2 Jul 2020 21:15:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrF+lO0WXx0hR5hj1QaGGG1W+DNIqvWKXajcNBw1zfmqYNF7KON5klJWpxeYP2iVgLnyM7 X-Received: by 2002:a17:906:ce3c:: with SMTP id sd28mr27893394ejb.382.1593749709162; Thu, 02 Jul 2020 21:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593749709; cv=none; d=google.com; s=arc-20160816; b=P+IgB+2oen2/CHhBEbXbRmTRaiAqEf1rD9P7lDg8Uu9o6w1WyhH3o3v2DeM9NjCqrF x9gVat3byrUX7l14JGmbBOY1qWyAd/tK8qSuZr34pLdjoBNTDoGc5/68h9gBbpnClte+ xl6olATIBY8a9gi1bcOFfRSBsaQH2d0lJGzzGUWpvFgtFK59DjyZgrUqaz58aFediJ20 82uWetg9hsj8O8TLKlmBMeshBjK0SAmBdAPvFqx4RUcOdZO+ltRxWjunriWPEMkeh1oD UUu4J0WDGo1zHPUeA8b8NzPYuKxn7rENifSVALaFvYJHzg0umHI7ls1b5EJyIHI31oAm 8itw== 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=xcvKD2PA8UyLjPLA7fJ1bvxgdAulOhu3zOMB10xZB/o=; b=XmLnhnQmDGubSzYuUfkdSoJhGzgsb+yHP0I3ju8Dzmf3wZc2Ehi8W4qWzAa/E2psHH gYu4NqT3Q5Y2a63XZ34EB4GwJAit9JQRP/fS1Mxupgy9Yg20oC1tS5+ElI4pyucWWynK MBhOHfCee8/MBRHHMI5i0R52rdHYVR9JSBKHYqnD86WArk9T2drYFljRXd66Idvzs1Ig r+/bZIRNRVi7qomv8+RzAc9fDtL9vFVXUJWzTVndM+M/v0g+cxda5XUa+4YOMPFo2elY AQ4P9TwORjQY9cpyWluSNDo+WQXjXBRVL5JAiw+N8y6Z8s0NG9MrsN/xAeB19V2y4s0T 7XlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si7174856edn.453.2020.07.02.21.14.45; Thu, 02 Jul 2020 21:15:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725648AbgGCEOn (ORCPT + 99 others); Fri, 3 Jul 2020 00:14:43 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:40062 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725294AbgGCEOn (ORCPT ); Fri, 3 Jul 2020 00:14:43 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jrD60-0007hS-S2; Fri, 03 Jul 2020 14:14:42 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 03 Jul 2020 14:14:40 +1000 Date: Fri, 3 Jul 2020 14:14:40 +1000 From: Herbert Xu To: Longfang Liu Cc: linux-crypto@vger.kernel.org Subject: Re: [PATCH 2/5] crypto:hisilicon/sec2 - update busy processing logic Message-ID: <20200703041440.GA7858@gondor.apana.org.au> References: <1593167529-22463-1-git-send-email-liulongfang@huawei.com> <1593167529-22463-3-git-send-email-liulongfang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1593167529-22463-3-git-send-email-liulongfang@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Jun 26, 2020 at 06:32:06PM +0800, Longfang Liu wrote: > From: Kai Ye > > As before, if a SEC queue is at the 'fake busy' status, > the request with a 'fake busy' flag will be sent into hardware > and the sending function returns busy. After the request is > finished, SEC driver's call back will identify the 'fake busy' flag, > and notifies the user that hardware is not busy now by calling > user's call back function. > > Now, a request sent into busy hardware will be cached in the > SEC queue's backlog, return '-EBUSY' to user. > After the request being finished, the cached requests will > be processed in the call back function. to notify the > corresponding user that SEC queue can process more requests. > > Signed-off-by: Kai Ye > Reviewed-by: Longfang Liu Why does this driver not take MAY_BACKLOG into account? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt