Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp251511rdb; Sat, 27 Jan 2024 05:16:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7p/wgW8NsZQ2tZcqBrwbXeZ8lVf4ccyPSgOoOncmEOz/zwSR+kUXvjaigqPGclmKLIA7c X-Received: by 2002:a05:6a20:12c1:b0:199:d648:7d87 with SMTP id v1-20020a056a2012c100b00199d6487d87mr1949989pzg.81.1706361380132; Sat, 27 Jan 2024 05:16:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706361380; cv=pass; d=google.com; s=arc-20160816; b=UNK9ggZ8UMLFFviCg+UyDydzB6bIgcW3nDspbT6b87WNI2h0hokuUYBD65lmb5RTTK KZCNJLjIL9ahWuR9d4v0Xz7Fs5sOZ4sei1tlJVZp1Fb5sHw6NGnVu5QszSETUdhvwsxN emgdn/zCCB8DuSs2FrRfTL7NGfSULG0TAkM9LFU64CuoV0d1ka6CpWm/U+wzs/dJhSDQ eQzVQST8iyF2y8uzUaFkU/g668C5dUuz+mNw0WyK55kZB7BorIRvceZ5euhju8zsjXiE vmrAwq1N+QFfM/I4gzHLK7JAHZPkHY/2HbrSPeUCHrOshf0HvMxeVY3f5aRkh0zEm8dL oygA== 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=ZXvKZPcEFPaRWoBolQS54wfImBo5GxdO/Qk0ADZ5Y60=; fh=vx3lhpsciA8zYyn/NyPi4Bc8+WmiLLHI+w5OP2V6wSc=; b=pFutgUR9j1OWQLaVBtrCUgmMwtcJnP1WedIkrGKGtNm35QqEARnxdJnfAZWFF2llOb Mqx6fpoqJeoRHJxySpcGzyTo/NeQ3nXI3276ozujqSfdfyDcW9nGCUWBx8JPLQsOUvFW fvjXvBG36pdBTLSRadxjc9GRfr24LkakxrlYs9FFiXlDgbXXSOSA1Od7e1r+jNDe6aLu 6RLRt6tYCyizy1BcE7wPp68IWypOsB8MC7t0Wo/F3GUtDQ/wMgPCtMeEUgY+ktPb2XKP Vl9B4p4eX9r2ch5tUBIZv9j6xGzVbz8b3kkgHs7t6G+ymzSFUpsaj/rKXltSfsz4b1zY CsoQ== 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-crypto+bounces-1696-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q73-20020a632a4c000000b005cfb260af75si2700766pgq.439.2024.01.27.05.16.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 05:16:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1696-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-crypto+bounces-1696-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1696-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C64562847C9 for ; Sat, 27 Jan 2024 13:16:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99ACE25615; Sat, 27 Jan 2024 13:16:18 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (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 018BF25603; Sat, 27 Jan 2024 13:16:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706361378; cv=none; b=bTzEvK2/EAayWvsp+Mpjwnu0AANO+vJGXLSJud5MCqTHpCSmyghh/3akyLUytk+YcjsogI18ryIU4L+iMFlUYVocK3v4OrSawVizMfhmjppWh2CUE51QnPY3uYH9w679brD9CNgIHs9GdNg7/S2wLJoBi5hAFeBznqFxvmjATu8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706361378; c=relaxed/simple; bh=A83iSRlSoaDN53FDesl5lhj/DqkiysP0gEydd/giHWY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=pG4L1aDjGNvs9gt8BMY2glbr/8QGQU/gSxOmHmtEKBdD3ipkkKHpZnxTLtkLePTz9qg1RVH/CQH41volTvseBKipkYY71KIIUNmXcwjeNVh8U9fGeNcL0uEmJ4RWHIrOyxzrcihkwSFaLWmONZunKMn6HCV5bFhGNHGaLtIpS8c= 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.188 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.254]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4TMZmH4bJkzXgft; Sat, 27 Jan 2024 21:14:55 +0800 (CST) Received: from kwepemm600009.china.huawei.com (unknown [7.193.23.164]) by mail.maildlp.com (Postfix) with ESMTPS id 9548218001C; Sat, 27 Jan 2024 21:16:12 +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; Sat, 27 Jan 2024 21:16:12 +0800 From: Weili Qian To: CC: , , Subject: [PATCH 0/3] crypto: hisilicon/qm - add stop function and obtain queue status Date: Sat, 27 Jan 2024 21:15:27 +0800 Message-ID: <20240127131530.64617-1-qianweili@huawei.com> X-Mailer: git-send-email 2.33.0 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) 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. 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 | 171 +++++++++++++------- include/linux/hisi_acc_qm.h | 18 ++- 6 files changed, 179 insertions(+), 60 deletions(-) -- 2.33.0