Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2128862ybt; Fri, 3 Jul 2020 01:19:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFGisjECP9w/ewQZmx64kO0dLgWMl2WBzjuF1a53WO4+USfKOylfdm1KdjhDI/NFlUZSIW X-Received: by 2002:a17:906:ce3c:: with SMTP id sd28mr28557916ejb.382.1593764390707; Fri, 03 Jul 2020 01:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593764390; cv=none; d=google.com; s=arc-20160816; b=YrFMSG9JJjEh0tv6Ig8La5pjScssbIqYycWqnRY0dn/TLGs6QxJDkEtZ+WXlced8H6 cqO/D/9fWypjuaTC9fUlti9CrBhMEt5fCeIe7x7VmUbFTYGRknGRcZ8Irb1Ms8hl3S9z n7W4EaJBpl2QNgiPzZZ3IFmzksgnjz3QxsOK1BKpUAbaDys04chfMazvNQkKerXJec4z YRizpYEwGbJc3Pep74eyDe+Kws6JBPHtGnnM1NUethBHWGftjekmvLANEfu4Wjt9O81k KgtGFH6z0c57St07Eg9LMos6Fd2Z1JHT1H63kj6l83BpE/jiaEww33/agWEA7PHY+wh9 KEaQ== 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:references:cc:to :subject; bh=4izm+3CZM+YtGpEjlCyKLoIBu4UkzUBSp3nIH8HHcrg=; b=AHVUAMIgJMPC2ftwVbYL8/aV5NZh0YPEyjNFDVfjL+nDsqKPX3nbt1bP564MDJ8Wwy lLteamPDMNWG0R1dEqTJpcPOzGYMVy6LwfNSHkkD72kOZiN7d4KebAn4obr9fb6zLNTv FU0pewBSQuk5mQX5K7WkQaypZiHl9AdYYYDlen6XuVUSQwts6A3zP4YmGmx26BpNqg6Q o9UczVrDPjts6Q69VqWOb5VzmByLrb3SmEgiRxFFIbEpRd4Ol+OGwAf3ykUwXbZO/cN4 HVMK6TMoIzoOrxZNVGfgHbaF+3U+ycdffnTxE8EqKulivKZE6YEFWFh8O9+Z2JNmoZQJ K15g== 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 p10si7252789eds.221.2020.07.03.01.19.17; Fri, 03 Jul 2020 01:19:50 -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 S1726053AbgGCIS6 (ORCPT + 99 others); Fri, 3 Jul 2020 04:18:58 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:45700 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726801AbgGCIS6 (ORCPT ); Fri, 3 Jul 2020 04:18:58 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 0C593F446943C005C098 for ; Fri, 3 Jul 2020 16:18:57 +0800 (CST) Received: from [127.0.0.1] (10.67.102.118) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Fri, 3 Jul 2020 16:18:54 +0800 Subject: Re: [PATCH 2/5] crypto:hisilicon/sec2 - update busy processing logic To: Herbert Xu CC: References: <1593167529-22463-1-git-send-email-liulongfang@huawei.com> <1593167529-22463-3-git-send-email-liulongfang@huawei.com> <20200703041440.GA7858@gondor.apana.org.au> From: liulongfang Message-ID: <9a1eff92-537b-60e3-c840-206915d69019@huawei.com> Date: Fri, 3 Jul 2020 16:18:54 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200703041440.GA7858@gondor.apana.org.au> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.118] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020/7/3 12:14, Herbert Xu Wrote: > 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, OK, I will apply MAY_BACKLOG in the next version soon. thanks, Longfang .