Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp196813rdh; Wed, 7 Feb 2024 01:53:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQ1ewYWN5V3+ND6+S+r+XdgHPBLqxZTdGchCIhIgJ2F4nt+onNvUcuGp8lTj5WPWmrpFYI X-Received: by 2002:a05:6214:212a:b0:68c:a560:edaf with SMTP id r10-20020a056214212a00b0068ca560edafmr5565886qvc.18.1707299599110; Wed, 07 Feb 2024 01:53:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707299599; cv=pass; d=google.com; s=arc-20160816; b=BEH2bp1Hklu/hhDZy0sRZRSA4vJC7vueCJWecXgn2TIm8811uBJf9+G6MZEmbzaK9E YHLKs7DY1Q9eNcsoSx7RdWcLGM+I9X/mWRbQZCmzPiTHDhSmyIBwC2VaV220t1AzuEEH rWxqjY0SzNpdDspYtIPe6nMng3x6XMKuNHGNLUkVz3Gc7xuRO4WRdM5JMZPHGNJ/k3D5 aV5s5YAk7yHJ2BmTqdJNn3lqPHZPwlgB5/j0Z7BV5LPTZlyD32Tdu05Wf0dpcoeHwsTu +X9bN7QiMST1TzMU8Jp1kX+TtuEZ5AfATEFpxnNbr+u+LQdH1z/6trzjWgcMTv4rzP2K mPaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=F1gihjoVvrTDenSaGM5fQPpwVGIlkv5B0UIsw+vbMVs=; fh=tX2nRO8QVYcE2b2PT/BrUmmgirUpiKvxCIs9XtXoRdI=; b=AJPpiY3rPQF4tbcXfH40KqFdDwd5QAH+1zQlu7Y0eGazuxE0p7afUu52peq4vD1QJ1 W8UnpS24efNE6PAQu7SVwx0YOwE/yxdWfmznAoAqY4SUaa/+7Qxc8kKaWxBjA+WbN437 KHzj6uCpeP9tMbLFyUU5v27SOXDV4eeYOUvyUzIJ7IhlwIIGrt5DA2o50JwuKhC0J5Ws x/2rue89LXgQYQSBJgQuw0/EN6uuR5AR3snmTqhS1/iSZn6g9tC4brfyWkph7y6FNGXF 9TvxgXXYgSmh4tjl2cWnF8oDGJRtnK0IxqGiljtafWxk993krqKq38VJrg0QE7tu4CQ0 iNhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-56258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=2; AJvYcCUMwh7LHH2tcKRLRZ6/eZYvgFo+kqKoqUe96LV3hGOmbGVdhLksgRRr0zJEe2AzzZPjaZrYKLGjP6K8g6evvmVwDUWhvGs4L8OJuUrY9w== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id n4-20020ad444a4000000b0068cb44c372asi762377qvt.555.2024.02.07.01.53.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 01:53:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-56258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8648A1C21B7B for ; Wed, 7 Feb 2024 09:53:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B7632C6A7; Wed, 7 Feb 2024 09:52:02 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (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 B127528DBC; Wed, 7 Feb 2024 09:51:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707299521; cv=none; b=cHjzoOguRCz54II57j804Fg2i0q38FBLAmp7TLsRBDXvP62QtRk5xoHjYjsyuXDtpl8yQsLHrxHGsFNC2ybNSDUlxWpLwEmOX+40y2v7N+qNF0QyhC08Gu1hj7gVc8kp3d7g+NBOggEk8T5ovOZmMUKDbTRqzaHo25uAIS0O3kI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707299521; c=relaxed/simple; bh=XqdeSA/6t257zdspDNBGkqLK9I4Kn390CRGdDF1TMJk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=A0E3RxBn8THJcMODZ9yJYQjOMU9kPOJrzLWKB/e895MuFXlx9mS8yaR26Ss+8VrVhae3Yi66LDQnHR1qeYPasyhyMo0FIY2bRPyVoLGBdTqpk5N6UtM3ePPPIMm1ecIBcyZXXrvS9srRFMNac+aFDgLJrVZG52cu0ai/DSL7ahY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4TVFhg0wJpz29lTN; Wed, 7 Feb 2024 17:49:55 +0800 (CST) Received: from kwepemm600009.china.huawei.com (unknown [7.193.23.164]) by mail.maildlp.com (Postfix) with ESMTPS id ACB021404F7; Wed, 7 Feb 2024 17:51:51 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm600009.china.huawei.com (7.193.23.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 7 Feb 2024 17:51:51 +0800 From: Weili Qian To: CC: , , Subject: [PATCH v2 0/3] crypto: hisilicon/qm - add stop function and obtain queue status Date: Wed, 7 Feb 2024 17:50:58 +0800 Message-ID: <20240207095101.37280-1-qianweili@huawei.com> X-Mailer: git-send-email 2.33.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600009.china.huawei.com (7.193.23.164) Patch #1 supports stopping function by sending mailbox to device, device directly flush out function data. Patch #2 supports users to obtain the queue stopping result by querying the debug file. Patch #3 changes function type. Changed in v2: - Remove redundant check in patch#2. - The loop exit condition is modified to prevent no log output when timeout. Weili Qian (3): crypto: hisilicon/qm - add stop function by hardware crypto: hisilicon/qm - obtain stop queue status crypto: hisilicon/qm - change function type to void Documentation/ABI/testing/debugfs-hisi-hpre | 15 ++ Documentation/ABI/testing/debugfs-hisi-sec | 15 ++ Documentation/ABI/testing/debugfs-hisi-zip | 15 ++ drivers/crypto/hisilicon/debugfs.c | 5 + drivers/crypto/hisilicon/qm.c | 184 +++++++++++++------- include/linux/hisi_acc_qm.h | 10 +- 6 files changed, 183 insertions(+), 61 deletions(-) -- 2.33.0