From patchwork Sat Nov 12 02:12:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "yekai (A)" X-Patchwork-Id: 1537 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1075522wru; Fri, 11 Nov 2022 18:34:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf69/l7E6xMSAYwsdr2jf9c0iOoGAEeqZGSUI219Ur+eygbloZ7vbmBHgcXc+7gJ8TTOLMiE X-Received: by 2002:a62:1c06:0:b0:56c:6e7:82ea with SMTP id c6-20020a621c06000000b0056c06e782eamr5219487pfc.52.1668220492103; Fri, 11 Nov 2022 18:34:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668220492; cv=none; d=google.com; s=arc-20160816; b=d+DCo9VEcRYk0sa/yy27cYGxnKzhXxZPi1w1rnkaZQZuggb513wEwifyOq8eTuVgK/ XV9qaJ4XBbuTTMiLF8/xtdJFIgjwNhIhz7l+8hEOP3K7k1kLsT7J2JfvYQI714bced/F ThdmouIJJqBz/k/08dsmmBuh2STV0b8Rpd/cpNgL/To7V6qPBwdVYXhYUoAJcbtevxlj 8pspCr16rapEgjqKHO0FCfPIVprjTr9pVu14AZ3Jn/hB8CcMT75vin6gjstmtCxJC4uQ LWRX83cNiwTO6yhxZ6VziSc40TefrQl4sBhjuH/IxktnUfaz/VbUKtcZLMghm4CNucrZ LPKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=8zA0kI5+LM1NbUmgLrJmY5Nd3E/+UIkOJVThDawLXfQ=; b=XbTi7DsFTQBvLs6HesdG/BQIUdankp4dTINQJuBgsXbHpXbm1+GTg2HDJbANjDTcNW V94cQW7GPUYPCNrg6L1Rs4w/gw/eaavz7Q8n4cNxq964x0QNZbKCrDh1j/BrCm7ztOjT BiDr8RRK638YIUDR9IjQB7kmbtAklDnkcoRsQpGIQaFNUx0wFq5LfXFvR6r414dMAFAb cgU9aCpSesJQrfDYPBKH6qhdxNObmgje+nuLXwyNzCB1tUSpywQY9fJXQs8YaLUIeNSb 4AJ2s8sIePvLqDANybcB5gDTaiEHNGDRpcezMZrnyFtglTw3jCCezc5cdO8q0N6osCES mmsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v20-20020a631514000000b0045769b0c418si4101498pgl.89.2022.11.11.18.34.39; Fri, 11 Nov 2022 18:34:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234503AbiKLCTQ (ORCPT + 99 others); Fri, 11 Nov 2022 21:19:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233445AbiKLCTJ (ORCPT ); Fri, 11 Nov 2022 21:19:09 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C58B52F390; Fri, 11 Nov 2022 18:19:06 -0800 (PST) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4N8K1X6qsXzJnfs; Sat, 12 Nov 2022 10:16:00 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500025.china.huawei.com (7.185.36.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 12 Nov 2022 10:19:05 +0800 Received: from huawei.com (10.67.165.24) by dggpeml100012.china.huawei.com (7.185.36.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 12 Nov 2022 10:19:04 +0800 From: Kai Ye To: CC: , , Subject: [PATCH v3 0/4] crypto: hisilicon/qm - reconstruct and optimize the debugfs code Date: Sat, 12 Nov 2022 02:12:49 +0000 Message-ID: <20221112021253.34862-1-yekai13@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml100012.china.huawei.com (7.185.36.121) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749255970725602108?= X-GMAIL-MSGID: =?utf-8?q?1749255970725602108?= Split a debugfs.c from qm to reduce the qm code complexity. And optimize the process of the command dumping. Some optimizations on command dumping in debugfs.c file code. changes v1->v2: - delete a redundant line. changes v2->v3: - adjusting the patch sequence. modify a comment. Kai Ye (4): crypto: hisilicon/qm - delete redundant null assignment operations crypto: hisilicon/qm - modify the process of regs dfx crypto: hisilicon/qm - split a debugfs.c from qm crypto: hisilicon/qm - the command dump process is modified drivers/crypto/hisilicon/Makefile | 2 +- drivers/crypto/hisilicon/debugfs.c | 1147 +++++++++++++++++ drivers/crypto/hisilicon/hpre/hpre_main.c | 7 +- drivers/crypto/hisilicon/qm.c | 1360 ++------------------- drivers/crypto/hisilicon/qm_common.h | 87 ++ drivers/crypto/hisilicon/sec2/sec_main.c | 7 +- drivers/crypto/hisilicon/zip/zip_main.c | 7 +- include/linux/hisi_acc_qm.h | 8 +- 8 files changed, 1356 insertions(+), 1269 deletions(-) create mode 100644 drivers/crypto/hisilicon/debugfs.c create mode 100644 drivers/crypto/hisilicon/qm_common.h