Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp409433pxj; Fri, 11 Jun 2021 02:08:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzsBxWoHiY8wxTSbfNJDxEx7WUo3Gcse0J427b3c4Wl2IARCm0lxksJhU8k8AJp8YEqDT2 X-Received: by 2002:a17:907:7848:: with SMTP id lb8mr2802730ejc.494.1623402491223; Fri, 11 Jun 2021 02:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623402491; cv=none; d=google.com; s=arc-20160816; b=DWDXJAXpaIXfBC1OABnwFPIqatjJFPIQGKc5U4FpUnhGvfzHiU8EwM5OIrG4LUGS9Q DMdoypTxYB6oGvng9alWEJxSZ/KpJ+UpApf7cfNreLpDK8Uyy6TQ/+gtlvcnRhv/xu45 1b6E9u5XWlUjM867/VeEkCSVGQmbD/PMhQSVW9LSdVy2nIBgAI7aq93QNiiHyjxLfEPj uIINSdCUTvc6re+wgWIF3PCigT6fkeSin4imFIYdBtHpMdpFbjLBNOp9N2DEMISvn40w zECAUQqm1qXDWBBGl4JAHEwAqwD9vpB+HKZ1Nd3UtmdlVUkCf7ow1CH0njXRLFVqP/9C tdYQ== 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=1xclAkYlERPvAoooBW0npWK0K6kHajZdTKYIlnoEFuQ=; b=Bky1+eS2LvznL1vowDdUIWO5Rib2knUnp8/WHP6mUzYdUjXbdIa5thau8zynwDMroT du+iKMmexhPDdjgJgXrqqjNBuxUK/g9Z5x9fSacy1BCChYdzLZuwERotJ0flK2qG/abb MvvWgedSYfcDyUrYouCHjPNfzPVoHsAP/18O+WhIPhkcDBekbr1J6R/5wf6P5MMoYrNk nluLxDhr9U21GTRmuGkZz3+fV8gzwly3eLDYl9hkV8+Gd4iaJB5+IPs64h9N1qgFMwH+ BaEmH6UXnFW608BQGVRYvBxDG1J66dtgGd3+N9uU3EwkJRBQOjDJPsNDRhaU+47PUpBf AA6A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si4073434ejk.640.2021.06.11.02.07.40; Fri, 11 Jun 2021 02:08:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231494AbhFKJJS (ORCPT + 99 others); Fri, 11 Jun 2021 05:09:18 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:4033 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231145AbhFKJJI (ORCPT ); Fri, 11 Jun 2021 05:09:08 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G1Zbq2DwqzWsnD; Fri, 11 Jun 2021 17:02:15 +0800 (CST) Received: from dggpeml500012.china.huawei.com (7.185.36.15) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 11 Jun 2021 17:07:08 +0800 Received: from huawei.com (10.69.192.56) by dggpeml500012.china.huawei.com (7.185.36.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 11 Jun 2021 17:07:08 +0800 From: Kai Ye To: CC: , , , Subject: [PATCH 0/8] crypto: hisilicon - supports to configure function's QoS for ACC Date: Fri, 11 Jun 2021 17:06:42 +0800 Message-ID: <1623402410-63906-1-git-send-email-yekai13@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500012.china.huawei.com (7.185.36.15) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Based on the Token bucket algorithm. The QM can limit the throughput of functions in Kunpeng930. By the device debugfs node that named "alg_qos", the ACC driver supports to configue each function's QoS in the host. Based on the communication between pf and vf, the driver supports reading each function's QoS in the host and VM also by the debugfs node. Kai Ye (8): crypto: hisilicon/qm - supports writing QoS int the Host crypto: hisilicon/qm - add the "alg_qos" file node crypto: hisilicon/qm - merges the work initialization process into a single function crypto: hisilicon/qm - add pf ping single vf function crypto: hisilicon/qm - supports to inquiry each function's QoS crypto: hisilicon/sec - adds the max shaper type rate crypto: hisilicon/hpre - adds the max shaper type rate crypto: hisilicon/zip - adds the max shaper type rate drivers/crypto/hisilicon/hpre/hpre_main.c | 7 + drivers/crypto/hisilicon/qm.c | 909 +++++++++++++++++++++++------- drivers/crypto/hisilicon/qm.h | 14 + drivers/crypto/hisilicon/sec2/sec_main.c | 7 + drivers/crypto/hisilicon/zip/zip_main.c | 11 + 5 files changed, 757 insertions(+), 191 deletions(-) -- 2.7.4