From patchwork Sat Dec 22 07:51:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Wang X-Patchwork-Id: 154436 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2453195ljp; Sat, 22 Dec 2018 15:36:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN6RMlEiP66HC+aesiYDD0Cg13Eesg0o/vgTBIbHnuDLXERucVpTOHGkcyImmleXNkhKZAmA X-Received: by 2002:a63:104d:: with SMTP id 13mr7616061pgq.303.1545521767802; Sat, 22 Dec 2018 15:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545521767; cv=none; d=google.com; s=arc-20160816; b=CcUlR0+1Pmqr4tp9QNUnybRX4YkKTXRT8XciXlT/wOz26EyjYiY04b/KhBZPA5MHXP x11D8ClzPrr1xqHBNanNahPuFTlMCC/q3bLmoNYZnzsBYOSsV2gWYlWlaJPSZp6HS9P/ 9J+l6CXVVlIoeg126IGRJQSQcVx4uvVJT6OlvZMIsoLlvvtvL/UKsMQSuGLy2+Rw4f56 s0D5tNM+IXj1YugWNokSe0mHYBxQN+U+tH5aDyzcgQ0nBWgJgi+zCzX3ZJPpYvDUqjU5 mYX4s/FaFYiUT29u5EwWW5uQLLs+dLEPWwa6u7U6/q1JTk4+5+hejqvkoKC8fGQbpyIB sY4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=POnZ7qkO1kjDxxKbGNYQQewGpI/uTsJH1unDCzSQpps=; b=KnG+pQbpq7/IhsC3E+8JUtMieHMYe9bemKgGPuQMIQwbsr5JP60FCgSAcj7RUyKoo6 f8jEHeut+0AL86PE0ryqRBV/negKOt1dGQ5s20MeGqf4nEsvlbl6eI+8qcV1rHUw569g lyqPOsVaqdKDnpiz43XeTofYXeE1Xi3gHOok2S4bLc2MtM7oyebTND3CFh4VBF/idjDH ppHLX4LIB7S8HIy7Gafp81JsWDHomEzKeIIdrYOvfx28+NvTQPqe+a0wJFOAv83G8E35 n7U7lJuzooaZYygZPYPI7AmxK1IIpxRcSspFP0LRs7zdSh4HrLSPTPoQwnSR/USPrBRy VMXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si7466637pfb.237.2018.12.22.15.36.07; Sat, 22 Dec 2018 15:36:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392972AbeLVXgF (ORCPT + 2 others); Sat, 22 Dec 2018 18:36:05 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:16654 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2391187AbeLVXgF (ORCPT ); Sat, 22 Dec 2018 18:36:05 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id F2146D749A8CC; Sat, 22 Dec 2018 15:50:50 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.408.0; Sat, 22 Dec 2018 15:50:45 +0800 From: Zhou Wang To: Herbert Xu , "David S . Miller" , CC: , , Zhou Wang Subject: [PATCH 1/4] Documentation: Add debugfs doc for hisi_zip Date: Sat, 22 Dec 2018 15:51:42 +0800 Message-ID: <1545465105-133138-2-git-send-email-wangzhou1@hisilicon.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1545465105-133138-1-git-send-email-wangzhou1@hisilicon.com> References: <1545465105-133138-1-git-send-email-wangzhou1@hisilicon.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add debugfs descriptions for HiSilicon ZIP and QM driver. Signed-off-by: Zhou Wang Reviewed-by: Jonathan Cameron --- Documentation/ABI/testing/debugfs-hisi-zip | 50 ++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/ABI/testing/debugfs-hisi-zip -- 2.8.1 diff --git a/Documentation/ABI/testing/debugfs-hisi-zip b/Documentation/ABI/testing/debugfs-hisi-zip new file mode 100644 index 0000000..a7c63e6 --- /dev/null +++ b/Documentation/ABI/testing/debugfs-hisi-zip @@ -0,0 +1,50 @@ +What: /sys/kernel/debug/hisi_zip//comp_core[01]/regs +Date: Nov 2018 +Contact: linux-crypto@vger.kernel.org +Description: Dump of compression cores related debug registers. + Only available for PF. + +What: /sys/kernel/debug/hisi_zip//decomp_core[0-5]/regs +Date: Nov 2018 +Contact: linux-crypto@vger.kernel.org +Description: Dump of decompression cores related debug registers. + Only available for PF. + +What: /sys/kernel/debug/hisi_zip//clear_enable +Date: Nov 2018 +Contact: linux-crypto@vger.kernel.org +Description: Compression/decompression core debug registers read clear + control. 1 means enable register read clear, otherwise 0. + Writing to this file has no functional effect, only enable or + disable counters clear after reading of these registers. + Only available for PF. + +What: /sys/kernel/debug/hisi_zip//current_qm +Date: Nov 2018 +Contact: linux-crypto@vger.kernel.org +Description: One ZIP controller has one PF and multiple VFs, each function + has a QM. Select the QM which below qm refers to. + Only available for PF. + +What: /sys/kernel/debug/hisi_zip//qm/qm_regs +Date: Nov 2018 +Contact: linux-crypto@vger.kernel.org +Description: Dump of QM related debug registers. + Available for PF and VF in host. VF in guest currently only + has one debug register. + +What: /sys/kernel/debug/hisi_zip//qm/current_q +Date: Nov 2018 +Contact: linux-crypto@vger.kernel.org +Description: One QM may contain multiple queues. Select specific queue to + show its debug registers in above qm_regs. + Only available for PF. + +What: /sys/kernel/debug/hisi_zip//qm/clear_enable +Date: Nov 2018 +Contact: linux-crypto@vger.kernel.org +Description: QM debug registers(qm_regs) read clear control. 1 means enable + register read clear, otherwise 0. + Writing to this file has no functional effect, only enable or + disable counters clear after reading of these registers. + Only available for PF.