Add Support for Cavium Cryptographic Accelerarion Unit
Subsystems (2)
PATCH 1/3 drivers: crypto: Add Support for Octeon-tx CPT Engine
In reply to [email protected]From: George Cherian <[email protected]>
Enable the Physical Function diver for the Cavium Crypto Engine (CPT) found in Octeon-tx series of SoC's. CPT is the Cryptographic Acceleration Unit. CPT includes microcoded GigaCypher symmetric engines (SEs) and asymmetric engines (AEs).
--- drivers/crypto/cavium/cpt/Kconfig | 22 + drivers/crypto/cavium/cpt/Makefile | 2 + drivers/crypto/cavium/cpt/cpt.h | 90 +++ drivers/crypto/cavium/cpt/cpt_common.h | 377 +++++++++++++ drivers/crypto/cavium/cpt/cpt_hw_types.h | 940 +++++++++++++++++++++++++++++++ drivers/crypto/cavium/cpt/cpt_main.c | 891 +++++++++++++++++++++++++++++ drivers/crypto/cavium/cpt/cpt_pf_mbox.c | 174 ++++++ 7 files changed, 2496 insertions(+) create mode 100644 drivers/crypto/cavium/cpt/Kconfig create mode 100644 drivers/crypto/cavium/cpt/Makefile create mode 100644 drivers/crypto/cavium/cpt/cpt.h create mode 100644 drivers/crypto/cavium/cpt/cpt_common.h create mode 100644 drivers/crypto/cavium/cpt/cpt_hw_types.h create mode 100644 drivers/crypto/cavium/cpt/cpt_main.c create mode 100644 drivers/crypto/cavium/cpt/cpt_pf_mbox.c
drivers/crypto/cavium/cpt/Kconfig new file +22 -0
@@ -0,0 +1,22 @@ +# +# Cavium crypto device configuration +# + +config CRYPTO_DEV_CPT + tristate + select HW_RANDOM_OCTEON + select CRYPTO_AES + select CRYPTO_DES + select CRYPTO_BLKCIPHER + select FW_LOADER + +config OCTEONTX_CPT_PF + tristate "Octeon-tx CPT Physical function driver" + depends on ARCH_THUNDER + select CRYPTO_DEV_CPT + help + Support for Cavium CPT block found in octeon-tx series of + processors. + + To compile this as a module, choose M here: the module will be + called cptpf.
drivers/crypto/cavium/cpt/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +obj-$(CONFIG_OCTEONTX_CPT_PF) += cptpf.o +cptpf-objs := cpt_main.o cpt_pf_mbox.o
drivers/crypto/cavium/cpt/cpt.h new file +90 -0
90 lines not on this page · raw message
drivers/crypto/cavium/cpt/cpt_common.h new file +377 -0
377 lines not on this page · raw message
drivers/crypto/cavium/cpt/cpt_hw_types.h new file +940 -0
940 lines not on this page · raw message
drivers/crypto/cavium/cpt/cpt_main.c new file +891 -0
891 lines not on this page · raw message
drivers/crypto/cavium/cpt/cpt_pf_mbox.c new file +174 -0
174 lines not on this page · raw message
Signature · 1 line
2.1.4
cover Add Support for Cavium Cryptographic Accelerarion Unit
From: George Cherian <[email protected]>
This series adds the support for Cavium Cryptographic Accelerarion Unit (CPT) CPT is available in Octeon-Tx SoC series.
George Cherian (3):
drivers: crypto: Add Support for Octeon-tx CPT Engine
drivers: crypto: Add the Virtual Function driver for CPT
drivers: crypto: Enable CPT options crypto for build
drivers/crypto/Kconfig | 1 + drivers/crypto/Makefile | 1 + drivers/crypto/cavium/cpt/Kconfig | 32 + drivers/crypto/cavium/cpt/Makefile | 4 + drivers/crypto/cavium/cpt/cpt.h | 90 +++ drivers/crypto/cavium/cpt/cpt_common.h | 377 ++++++++++ drivers/crypto/cavium/cpt/cpt_hw_types.h | 940 +++++++++++++++++++++++ drivers/crypto/cavium/cpt/cpt_main.c | 891 ++++++++++++++++++++++ drivers/crypto/cavium/cpt/cpt_pf_mbox.c | 174 +++++ drivers/crypto/cavium/cpt/cptvf.h | 255 +++++++ drivers/crypto/cavium/cpt/cptvf_algs.c | 446 +++++++++++ drivers/crypto/cavium/cpt/cptvf_algs.h | 159 ++++ drivers/crypto/cavium/cpt/cptvf_main.c | 1038 ++++++++++++++++++++++++++ drivers/crypto/cavium/cpt/cptvf_mbox.c | 208 ++++++ drivers/crypto/cavium/cpt/cptvf_reqmanager.c | 655 ++++++++++++++++ drivers/crypto/cavium/cpt/request_manager.h | 221 ++++++ 16 files changed, 5492 insertions(+) create mode 100644 drivers/crypto/cavium/cpt/Kconfig create mode 100644 drivers/crypto/cavium/cpt/Makefile create mode 100644 drivers/crypto/cavium/cpt/cpt.h create mode 100644 drivers/crypto/cavium/cpt/cpt_common.h create mode 100644 drivers/crypto/cavium/cpt/cpt_hw_types.h create mode 100644 drivers/crypto/cavium/cpt/cpt_main.c create mode 100644 drivers/crypto/cavium/cpt/cpt_pf_mbox.c create mode 100644 drivers/crypto/cavium/cpt/cptvf.h create mode 100644 drivers/crypto/cavium/cpt/cptvf_algs.c create mode 100644 drivers/crypto/cavium/cpt/cptvf_algs.h create mode 100644 drivers/crypto/cavium/cpt/cptvf_main.c create mode 100644 drivers/crypto/cavium/cpt/cptvf_mbox.c create mode 100644 drivers/crypto/cavium/cpt/cptvf_reqmanager.c create mode 100644 drivers/crypto/cavium/cpt/request_manager.h
Signature · 1 line
2.1.4
PATCH 2/3 drivers: crypto: Add the Virtual Function driver for CPT
From: George Cherian <[email protected]>
Enable the CPT VF driver. CPT is the cryptographic Accelaration Unit in Octeon-tx series of processors.
--- drivers/crypto/cavium/cpt/Kconfig | 10 + drivers/crypto/cavium/cpt/Makefile | 2 + drivers/crypto/cavium/cpt/cptvf.h | 255 +++++++ drivers/crypto/cavium/cpt/cptvf_algs.c | 446 +++++++++++ drivers/crypto/cavium/cpt/cptvf_algs.h | 159 ++++ drivers/crypto/cavium/cpt/cptvf_main.c | 1038 ++++++++++++++++++++++++++ drivers/crypto/cavium/cpt/cptvf_mbox.c | 208 ++++++ drivers/crypto/cavium/cpt/cptvf_reqmanager.c | 655 ++++++++++++++++ drivers/crypto/cavium/cpt/request_manager.h | 221 ++++++ 9 files changed, 2994 insertions(+) create mode 100644 drivers/crypto/cavium/cpt/cptvf.h create mode 100644 drivers/crypto/cavium/cpt/cptvf_algs.c create mode 100644 drivers/crypto/cavium/cpt/cptvf_algs.h create mode 100644 drivers/crypto/cavium/cpt/cptvf_main.c create mode 100644 drivers/crypto/cavium/cpt/cptvf_mbox.c create mode 100644 drivers/crypto/cavium/cpt/cptvf_reqmanager.c create mode 100644 drivers/crypto/cavium/cpt/request_manager.h
drivers/crypto/cavium/cpt/Kconfig +10 -0
@@ -20,3 +20,13 @@ config OCTEONTX_CPT_PF To compile this as a module, choose M here: the module will be called cptpf. +config OCTEONTX_CPT_VF + tristate "Octeon-tx CPT Virtual function driver" + depends on ARCH_THUNDER + select CRYPTO_DEV_CPT + help + Support for Cavium CPT Virtual function found in octeon-tx + series of processors. + + To compile this as a module, choose M here: the module will be + called cptvf.
drivers/crypto/cavium/cpt/Makefile +2 -0
@@ -1,2 +1,4 @@ obj-$(CONFIG_OCTEONTX_CPT_PF) += cptpf.o cptpf-objs := cpt_main.o cpt_pf_mbox.o +obj-$(CONFIG_OCTEONTX_CPT_VF) += cptvf.o +cptvf-objs := cptvf_main.o cptvf_reqmanager.o cptvf_mbox.o cptvf_algs.o
drivers/crypto/cavium/cpt/cptvf.h new file +255 -0
255 lines not on this page · raw message
drivers/crypto/cavium/cpt/cptvf_algs.c new file +446 -0
446 lines not on this page · raw message
drivers/crypto/cavium/cpt/cptvf_algs.h new file +159 -0
159 lines not on this page · raw message
drivers/crypto/cavium/cpt/cptvf_main.c new file +1038 -0
1,038 lines not on this page · raw message
drivers/crypto/cavium/cpt/cptvf_mbox.c new file +208 -0
208 lines not on this page · raw message
drivers/crypto/cavium/cpt/cptvf_reqmanager.c new file +655 -0
655 lines not on this page · raw message
drivers/crypto/cavium/cpt/request_manager.h new file +221 -0
221 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH 3/3 drivers: crypto: Enable CPT options crypto for build
In reply to [email protected]From: George Cherian <[email protected]>
Add the CPT options in crypto Kconfig and update the crypto Makefile
--- drivers/crypto/Kconfig | 1 + drivers/crypto/Makefile | 1 + 2 files changed, 2 insertions(+)
drivers/crypto/Kconfig +1 -0
@@ -484,6 +484,7 @@ config CRYPTO_DEV_MXS_DCP will be called mxs-dcp. source "drivers/crypto/qat/Kconfig" +source "drivers/crypto/cavium/cpt/Kconfig" config CRYPTO_DEV_QCE tristate "Qualcomm crypto engine accelerator"
drivers/crypto/Makefile +1 -0
@@ -32,3 +32,4 @@ obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/ obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sunxi-ss/ obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rockchip/ obj-$(CONFIG_CRYPTO_DEV_CHELSIO) += chelsio/ +obj-$(CONFIG_CRYPTO_DEV_CPT) += cavium/cpt/
Signature · 1 line
2.1.4
Re: [PATCH 1/3] drivers: crypto: Add Support for Octeon-tx CPT Engine
In reply to [email protected]Quoted 8 lines · On 11/18/2016 07:00 AM, [email protected] wrote:
From: George Cherian <[email protected]>
Enable the Physical Function diver for the Cavium Crypto Engine (CPT) found in Octeon-tx series of SoC's. CPT is the Cryptographic Acceleration Unit. CPT includes microcoded GigaCypher symmetric engines (SEs) and asymmetric engines (AEs).
Signed-off-by George Cherian <[email protected]>
How was this tested?
Quoted 23 lines
--- drivers/crypto/cavium/cpt/Kconfig | 22 + drivers/crypto/cavium/cpt/Makefile | 2 + drivers/crypto/cavium/cpt/cpt.h | 90 +++ drivers/crypto/cavium/cpt/cpt_common.h | 377 +++++++++++++ drivers/crypto/cavium/cpt/cpt_hw_types.h | 940 +++++++++++++++++++++++++++++++ drivers/crypto/cavium/cpt/cpt_main.c | 891 +++++++++++++++++++++++++++++ drivers/crypto/cavium/cpt/cpt_pf_mbox.c | 174 ++++++ 7 files changed, 2496 insertions(+)create mode 100644
drivers/crypto/cavium/cpt/Kconfigcreate mode 100644drivers/crypto/cavium/cpt/Makefilecreate mode 100644drivers/crypto/cavium/cpt/cpt.hcreate mode 100644drivers/crypto/cavium/cpt/cpt_common.hcreate mode 100644drivers/crypto/cavium/cpt/cpt_hw_types.hcreate mode 100644drivers/crypto/cavium/cpt/cpt_main.ccreate mode 100644drivers/crypto/cavium/cpt/cpt_pf_mbox.cdrivers/crypto/cavium/cpt/Kconfig new file +0
-0
drivers/crypto/cavium/cpt/Kconfig line 7
Quoted 7 lines
drivers/crypto/cavium/cpt/Kconfig new file +7
-0@@ -0,0 +1,22 @@ +# +# Cavium crypto device configuration +# + +config CRYPTO_DEV_CPT + tristate + select HW_RANDOM_OCTEON
This makes no sense. HW_RANDOM_OCTEON is for a mips64 based SOC and isn't present on devices that have this crypto block. Why select this?
Quoted 41 lines
drivers/crypto/cavium/cpt/Kconfig new file +15
-0+ select CRYPTO_AES + select CRYPTO_DES + select CRYPTO_BLKCIPHER + select FW_LOADER + +config OCTEONTX_CPT_PF + tristate "Octeon-tx CPT Physical function driver" + depends on ARCH_THUNDER + select CRYPTO_DEV_CPT + help + Support for Cavium CPT block found in octeon-tx series of + processors. + + To compile this as a module, choose M here: the module will be + called cptpf.drivers/crypto/cavium/cpt/Makefile new file +2
-0@@ -0,0 +1,2 @@ +obj-$(CONFIG_OCTEONTX_CPT_PF) += cptpf.o +cptpf-objs := cpt_main.o cpt_pf_mbox.odrivers/crypto/cavium/cpt/cpt.h new file +12
-0@@ -0,0 +1,90 @@ +/* +* Copyright (C) 2016 Cavium, Inc. +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of version 2 of the GNU General Public License +* as published by the Free Software Foundation. +*/ + +#ifndef __CPT_H +#define __CPT_H + +#include "cpt_common.h"
drivers/crypto/cavium/cpt/cpt.h line 22
Quoted 10 lines
drivers/crypto/cavium/cpt/cpt.h new file +10
-0+ +#define BASE_PROC_DIR "cavium" + +#define PF 0 +#define VF 1 + +struct cpt_device ; + +struct microcode { +uint8_t is_mc_valid;
s/uint8_t/u8/ ??
That could be done everywhere.
[...]
Quoted 38 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +32
-0@@ -0,0 +1,377 @@ +/* +* Copyright (C) 2016 Cavium, Inc. +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of version 2 of the GNU General Public License +* as published by the Free Software Foundation. +*/ + +#ifndef __CPT_COMMON_H +#define __CPT_COMMON_H + +#include <asm/byteorder.h> +#include <linux/uaccess.h> +#include <linux/types.h> +#include <linux/spinlock.h> +#include <linux/pci.h> +#include <linux/cpumask.h> +#include <linux/string.h> +#include <linux/pci_regs.h> +#include <linux/delay.h> +#include <linux/printk.h> +#include <linux/sched.h> +#include <linux/completion.h> +#include <asm/arch_timer.h> +#include <linux/types.h> + +#include "cpt_hw_types.h" + +/* configuration space offsets */ +#ifndef PCI_VENDOR_ID +#define PCI_VENDOR_ID 0x00/* 16 bits */ +#endif
drivers/crypto/cavium/cpt/cpt_common.h line 42
Quoted 10 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +10
-0+#ifndef PCI_DEVICE_ID +#define PCI_DEVICE_ID 0x02/* 16 bits */ +#endif +#ifndef PCI_REVISION_ID +#define PCI_REVISION_ID 0x08/* Revision ID */ +#endif +#ifndef PCI_CAPABILITY_LIST +#define PCI_CAPABILITY_LIST 0x34/* first capability list entry */ +#endif +
Standard PCI core functions give you access to all that information, use pdev->device, pdev->revision, etc. instead of reinventing the wheel here with all these #defines.
drivers/crypto/cavium/cpt/cpt_common.h line 44
Quoted 2 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +2
-0+/* Device ID */ +#define PCI_VENDOR_ID_CAVIUM 0x177d
This is defined in pci_ids.h, use value from there instead of placing a duplicate definition here.
Quoted 20 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +20
-0+#define CPT_81XX_PCI_PF_DEVICE_ID 0xa040 +#define CPT_81XX_PCI_VF_DEVICE_ID 0xa041 + +#define PASS_1_0 0x0 + +/* CPT Models ((Device ID<<16)|Revision ID) */ +/* CPT models */ +#define CPT_81XX_PASS1_0 ((CPT_81XX_PCI_PF_DEVICE_ID << 8) | PASS_1_0) +#define CPTVF_81XX_PASS1_0 ((CPT_81XX_PCI_VF_DEVICE_ID << 8) | PASS_1_0) + +#define PF 0 +#define VF 1 + +#define DEFAULT_DEVICE_QUEUES CPT_NUM_QS_PER_VF + +#define SUCCESS (0) +#define FAIL (1) + +#ifndef ROUNDUP4 +#define ROUNDUP4 (val) (((val) + 3) & 0xfffffffc)
drivers/crypto/cavium/cpt/cpt_common.h line 74
Quoted 10 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +10
-0+#endif + +#ifndef ROUNDUP8 +#define ROUNDUP8 (val) (((val) + 7) & 0xfffffff8) +#endif + +#ifndef ROUNDUP16 +#define ROUNDUP16 (val) (((val) + 15) & 0xfffffff0) +#endif +
kernel.h has round_up(), use that instead of defining all these.
drivers/crypto/cavium/cpt/cpt_common.h line 76
Quoted 2 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +2
-0+#define ERR_ADDR_LEN 8 +
What is that for? It looks unused.
[...]
Quoted 15 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +15
-0+/*###### PCIE EP-Mode Configuration Registers #########*/ +#define PCIEEP0_CFG000 (0x0) +#define PCIEEP0_CFG002 (0x8) +#define PCIEEP0_CFG011 (0x2C) +#define PCIEEP0_CFG020 (0x50) +#define PCIEEP0_CFG025 (0x64) +#define PCIEEP0_CFG030 (0x78) +#define PCIEEP0_CFG044 (0xB0) +#define PCIEEP0_CFG045 (0xB4) +#define PCIEEP0_CFG082 (0x148) +#define PCIEEP0_CFG095 (0x17C) +#define PCIEEP0_CFG096 (0x180) +#define PCIEEP0_CFG097 (0x184) +#define PCIEEP0_CFG103 (0x19C) +#define PCIEEP0_CFG460 (0x730)
drivers/crypto/cavium/cpt/cpt_common.h line 269
Quoted 10 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +10
-0+#define PCIEEP0_CFG461 (0x734) +#define PCIEEP0_CFG462 (0x738) + +/*####### PCIe EP-Mode SR-IOV Configuration Registers #####*/ +#define PCIEEPVF0_CFG000 (0x0) +#define PCIEEPVF0_CFG002 (0x8) +#define PCIEEPVF0_CFG011 (0x2C) +#define PCIEEPVF0_CFG030 (0x78) +#define PCIEEPVF0_CFG044 (0xB0) +
Where are all those defines used? What are they for?
That's all I can look at for now.
David.
Re: [PATCH 1/3] drivers: crypto: Add Support for Octeon-tx CPT Engine
Hi David,
Thanks for the review.
Quoted 8 lines · David Daney
Quoted 7 lines · On 11/18/2016 07:00 AM, [email protected] wrote:
From: George Cherian <[email protected]>
Enable the Physical Function diver for the Cavium Crypto Engine (CPT) found in Octeon-tx series of SoC's. CPT is the Cryptographic Acceleration Unit. CPT includes microcoded GigaCypher symmetric engines (SEs) and asymmetric engines (AEs).
Quoted 4 lines
Quoted 1 line
Signed-off-by George Cherian <[email protected]>How was this tested?
Using ecryptfs and dm-crypt.
Quoted 21 lines
Quoted 21 lines
--- drivers/crypto/cavium/cpt/Kconfig | 22 + drivers/crypto/cavium/cpt/Makefile | 2 + drivers/crypto/cavium/cpt/cpt.h | 90 +++ drivers/crypto/cavium/cpt/cpt_common.h | 377 +++++++++++++ drivers/crypto/cavium/cpt/cpt_hw_types.h | 940 +++++++++++++++++++++++++++++++ drivers/crypto/cavium/cpt/cpt_main.c | 891 +++++++++++++++++++++++++++++ drivers/crypto/cavium/cpt/cpt_pf_mbox.c | 174 ++++++ 7 files changed, 2496 insertions(+)create mode 100644
drivers/crypto/cavium/cpt/Kconfigcreate mode 100644drivers/crypto/cavium/cpt/Makefilecreate mode 100644drivers/crypto/cavium/cpt/cpt.hcreate mode 100644drivers/crypto/cavium/cpt/cpt_common.hcreate mode 100644drivers/crypto/cavium/cpt/cpt_hw_types.hcreate mode 100644drivers/crypto/cavium/cpt/cpt_main.ccreate mode 100644drivers/crypto/cavium/cpt/cpt_pf_mbox.c
Quoted 16 lines
drivers/crypto/cavium/cpt/Kconfig line 7
Quoted 13 lines
drivers/crypto/cavium/cpt/Kconfig new file +7
-0@@ -0,0 +1,22 @@ +# +# Cavium crypto device configuration +# + +config CRYPTO_DEV_CPT + tristate + select HW_RANDOM_OCTEONThis makes no sense.
HW_RANDOM_OCTEONis for a mips64 based SOC and isn't present on devices that have this crypto block. Why select this?
Yeah true... I actually wanted to this one instead |CONFIG_HW_RANDOM_CAVIUM|
Quoted 56 lines
Quoted 43 lines
drivers/crypto/cavium/cpt/Kconfig new file +15
-0+ select CRYPTO_AES + select CRYPTO_DES + select CRYPTO_BLKCIPHER + select FW_LOADER + +config OCTEONTX_CPT_PF + tristate "Octeon-tx CPT Physical function driver" + depends on ARCH_THUNDER + select CRYPTO_DEV_CPT + help + Support for Cavium CPT block found in octeon-tx series of + processors. + + To compile this as a module, choose M here: the module will be + called cptpf.drivers/crypto/cavium/cpt/Makefile new file +2
-0@@ -0,0 +1,2 @@ +obj-$(CONFIG_OCTEONTX_CPT_PF) += cptpf.o +cptpf-objs := cpt_main.o cpt_pf_mbox.odrivers/crypto/cavium/cpt/cpt.h new file +4
-0@@ -0,0 +1,90 @@ +/* +* Copyright (C) 2016 Cavium, Inc. +* +* This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License
+ * as published by the Free Software Foundation.
+ */drivers/crypto/cavium/cpt/cpt.h new file +5
-0+ +#ifndef __CPT_H +#define __CPT_H + +#include "cpt_common.h" drivers/crypto/cavium/cpt/cpt.h line 22
Quoted 10 lines
drivers/crypto/cavium/cpt/cpt.h new file +10
-0+ +#define BASE_PROC_DIR "cavium" + +#define PF 0 +#define VF 1 + +struct cpt_device ; + +struct microcode { +uint8_t is_mc_valid;s/uint8_t/u8/ ??
Quoted 1 line
That could be done everywhere.
will do
Quoted 55 lines
[...]
Quoted 39 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +4
-0@@ -0,0 +1,377 @@ +/* +* Copyright (C) 2016 Cavium, Inc. +* +* This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License
+ * as published by the Free Software Foundation.
+ */drivers/crypto/cavium/cpt/cpt_common.h new file +25
-0+ +#ifndef __CPT_COMMON_H +#define __CPT_COMMON_H + +#include <asm/byteorder.h> +#include <linux/uaccess.h> +#include <linux/types.h> +#include <linux/spinlock.h> +#include <linux/pci.h> +#include <linux/cpumask.h> +#include <linux/string.h> +#include <linux/pci_regs.h> +#include <linux/delay.h> +#include <linux/printk.h> +#include <linux/sched.h> +#include <linux/completion.h> +#include <asm/arch_timer.h> +#include <linux/types.h> + +#include "cpt_hw_types.h" + +/* configuration space offsets */ +#ifndef PCI_VENDOR_ID +#define PCI_VENDOR_ID 0x00/* 16 bits */ +#endif drivers/crypto/cavium/cpt/cpt_common.h line 42
Quoted 10 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +10
-0+#ifndef PCI_DEVICE_ID +#define PCI_DEVICE_ID 0x02/* 16 bits */ +#endif +#ifndef PCI_REVISION_ID +#define PCI_REVISION_ID 0x08/* Revision ID */ +#endif +#ifndef PCI_CAPABILITY_LIST +#define PCI_CAPABILITY_LIST 0x34/* first capability list entry */ +#endif +Standard PCI core functions give you access to all that information, use
pdev->device,pdev->revision, etc. instead of reinventing the wheel here with all these #defines.
Quoted 5 lines
drivers/crypto/cavium/cpt/cpt_common.h line 44
Quoted 2 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +2
-0+/* Device ID */ +#define PCI_VENDOR_ID_CAVIUM 0x177dThis is defined in
pci_ids.h, use value from there instead of placing a duplicate definition here.
okay will remove them
Quoted 69 lines
Quoted 21 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +9
-0+#define CPT_81XX_PCI_PF_DEVICE_ID 0xa040 +#define CPT_81XX_PCI_VF_DEVICE_ID 0xa041 + +#define PASS_1_0 0x0 + +/* CPT Models ((Device ID<<16)|Revision ID) */ +/* CPT models */ +#define CPT_81XX_PASS1_0 ((CPT_81XX_PCI_PF_DEVICE_ID << 8) | PASS_1_0) +#define CPTVF_81XX_PASS1_0 ((CPT_81XX_PCI_VF_DEVICE_ID << 8) |
PASS_1_0)drivers/crypto/cavium/cpt/cpt_common.h new file +11
-0+ +#define PF 0 +#define VF 1 + +#define DEFAULT_DEVICE_QUEUES CPT_NUM_QS_PER_VF + +#define SUCCESS (0) +#define FAIL (1) + +#ifndef ROUNDUP4 +#define ROUNDUP4 (val) (((val) + 3) & 0xfffffffc)drivers/crypto/cavium/cpt/cpt_common.h line 74
Quoted 10 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +10
-0+#endif + +#ifndef ROUNDUP8 +#define ROUNDUP8 (val) (((val) + 7) & 0xfffffff8) +#endif + +#ifndef ROUNDUP16 +#define ROUNDUP16 (val) (((val) + 15) & 0xfffffff0) +#endif +
kernel.hhasround_up(), use that instead of defining all these.drivers/crypto/cavium/cpt/cpt_common.h line 76
Quoted 2 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +2
-0+#define ERR_ADDR_LEN 8 +What is that for? It looks unused.
[...]
Quoted 15 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +15
-0+/*###### PCIE EP-Mode Configuration Registers #########*/ +#define PCIEEP0_CFG000 (0x0) +#define PCIEEP0_CFG002 (0x8) +#define PCIEEP0_CFG011 (0x2C) +#define PCIEEP0_CFG020 (0x50) +#define PCIEEP0_CFG025 (0x64) +#define PCIEEP0_CFG030 (0x78) +#define PCIEEP0_CFG044 (0xB0) +#define PCIEEP0_CFG045 (0xB4) +#define PCIEEP0_CFG082 (0x148) +#define PCIEEP0_CFG095 (0x17C) +#define PCIEEP0_CFG096 (0x180) +#define PCIEEP0_CFG097 (0x184) +#define PCIEEP0_CFG103 (0x19C) +#define PCIEEP0_CFG460 (0x730)drivers/crypto/cavium/cpt/cpt_common.h line 269
Quoted 10 lines
drivers/crypto/cavium/cpt/cpt_common.h new file +10
-0+#define PCIEEP0_CFG461 (0x734) +#define PCIEEP0_CFG462 (0x738) + +/*####### PCIe EP-Mode SR-IOV Configuration Registers #####*/ +#define PCIEEPVF0_CFG000 (0x0) +#define PCIEEPVF0_CFG002 (0x8) +#define PCIEEPVF0_CFG011 (0x2C) +#define PCIEEPVF0_CFG030 (0x78) +#define PCIEEPVF0_CFG044 (0xB0) +Where are all those defines used? What are they for?
Quoted 2 lines
That's all I can look at for now.
I will address your comments in next version.
Quoted 2 lines
David.
kbuild test robot
build botRe: [PATCH 3/3] drivers: crypto: Enable CPT options crypto for build
In reply to [email protected]reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree…
Hi George,
[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.9-rc5 next-20161117]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/gcherianv-gmail-com/Add-Support-for-Cavium-Cryptographic-Accelerarion-Unit/20161119-005337 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master config: arm64-allmodconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64
All error/warnings (new ones prefixed by >>):
warning: (CRYPTO_DEV_CPT) selects HW_RANDOM_OCTEON which has unmet direct dependencies (HW_RANDOM && CAVIUM_OCTEON_SOC)
In file included from drivers/crypto/cavium/cpt/cpt_common.h:27:0,
from drivers/crypto/cavium/cpt/cpt.h:12,
from drivers/crypto/cavium/cpt/cpt_main.c:19:
>> drivers/crypto/cavium/cpt/cpt_hw_types.h:439:2: warning: no semicolon at end of struct or union
} s;
^
>> drivers/crypto/cavium/cpt/cpt_hw_types.h:608:3: error: expected ',', ';' or '}' before 'uint64_t'
uint64_t reserved_0_5:6;
^~~~~~~~ drivers/crypto/cavium/cpt/cpt_main.c:236:13: warning: 'cpt_enable_all_interrupts' defined but not used [-Wunused-function]
static void cpt_enable_all_interrupts(struct cpt_device *cpt)
^~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/crypto/cavium/cpt/cpt_common.h:27:0,
from drivers/crypto/cavium/cpt/cpt.h:12,
from drivers/crypto/cavium/cpt/cpt_pf_mbox.c:11:
>> drivers/crypto/cavium/cpt/cpt_hw_types.h:439:2: warning: no semicolon at end of struct or union
} s;
^
>> drivers/crypto/cavium/cpt/cpt_hw_types.h:608:3: error: expected ',', ';' or '}' before 'uint64_t'
uint64_t reserved_0_5:6;
^~~~~~~~
--
>> drivers/char/hw_random/octeon-rng.c:19:31: fatal error: asm/octeon/octeon.h: No such file or directory
#include <asm/octeon/octeon.h>
^compilation terminated.
vim +608 drivers/crypto/cavium/cpt/cpt_hw_types.h
fcb2dbd1 George Cherian 2016-11-18 433 uint64_t reserved_48_63:16;
fcb2dbd1 George Cherian 2016-11-18 434 uint64_t bstatus:48
fcb2dbd1 George Cherian 2016-11-18 435 #else /* Word 0 - Little Endian */
fcb2dbd1 George Cherian 2016-11-18 436 uint64_t bstatus:48;
fcb2dbd1 George Cherian 2016-11-18 437 uint64_t reserved_48_63:16;
fcb2dbd1 George Cherian 2016-11-18 438 #endif /* Word 0 - End */
fcb2dbd1 George Cherian 2016-11-18 @439 } s;
fcb2dbd1 George Cherian 2016-11-18 440 struct cptx_pf_exe_bist_status_cn81xx {
fcb2dbd1 George Cherian 2016-11-18 441 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
fcb2dbd1 George Cherian 2016-11-18 442 uint64_t reserved_16_63:48;
fcb2dbd1 George Cherian 2016-11-18 443 uint64_t bstatus:16;
fcb2dbd1 George Cherian 2016-11-18 444 #else /* Word 0 - Little Endian */
fcb2dbd1 George Cherian 2016-11-18 445 uint64_t bstatus:16;
fcb2dbd1 George Cherian 2016-11-18 446 uint64_t reserved_16_63:48;
fcb2dbd1 George Cherian 2016-11-18 447 #endif /* Word 0 - End */
fcb2dbd1 George Cherian 2016-11-18 448 } cn81xx;
fcb2dbd1 George Cherian 2016-11-18 449 };
fcb2dbd1 George Cherian 2016-11-18 450
fcb2dbd1 George Cherian 2016-11-18 451 /**
fcb2dbd1 George Cherian 2016-11-18 452 * Register (NCB) cpt#_pf_exe_ctl
fcb2dbd1 George Cherian 2016-11-18 453 *
fcb2dbd1 George Cherian 2016-11-18 454 * CPT PF Engine Control Register
fcb2dbd1 George Cherian 2016-11-18 455 * This register enables the engines.
fcb2dbd1 George Cherian 2016-11-18 456 * cptx_pf_exe_ctl_s
fcb2dbd1 George Cherian 2016-11-18 457 * Word0
fcb2dbd1 George Cherian 2016-11-18 458 * enable:64 [63:0](R/W) Individual enables for each of the engines.
fcb2dbd1 George Cherian 2016-11-18 459 */
fcb2dbd1 George Cherian 2016-11-18 460 union cptx_pf_exe_ctl {
fcb2dbd1 George Cherian 2016-11-18 461 uint64_t u;
fcb2dbd1 George Cherian 2016-11-18 462 struct cptx_pf_exe_ctl_s {
fcb2dbd1 George Cherian 2016-11-18 463 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
fcb2dbd1 George Cherian 2016-11-18 464 uint64_t enable:64;
fcb2dbd1 George Cherian 2016-11-18 465 #else /* Word 0 - Little Endian */
fcb2dbd1 George Cherian 2016-11-18 466 uint64_t enable:64;
fcb2dbd1 George Cherian 2016-11-18 467 #endif /* Word 0 - End */
fcb2dbd1 George Cherian 2016-11-18 468 } s;
fcb2dbd1 George Cherian 2016-11-18 469 };
fcb2dbd1 George Cherian 2016-11-18 470
fcb2dbd1 George Cherian 2016-11-18 471 /**
fcb2dbd1 George Cherian 2016-11-18 472 * Register (NCB) cpt#_pf_q#_ctl
fcb2dbd1 George Cherian 2016-11-18 473 *
fcb2dbd1 George Cherian 2016-11-18 474 * CPT Queue Control Register
fcb2dbd1 George Cherian 2016-11-18 475 * This register configures queues. This register should be changed only
fcb2dbd1 George Cherian 2016-11-18 476 * when quiescent (see CPT()_VQ()_INPROG[INFLIGHT]).
fcb2dbd1 George Cherian 2016-11-18 477 * cptx_pf_qx_ctl_s
fcb2dbd1 George Cherian 2016-11-18 478 * Word0
fcb2dbd1 George Cherian 2016-11-18 479 * reserved_60_63:4 [63:60] reserved.
fcb2dbd1 George Cherian 2016-11-18 480 * aura:12; [59:48](R/W) Guest-aura for returning this queue's
fcb2dbd1 George Cherian 2016-11-18 481 * instruction-chunk buffers to FPA. Only used when [INST_FREE] is set.
fcb2dbd1 George Cherian 2016-11-18 482 * For the FPA to not discard the request, FPA_PF_MAP() must map
fcb2dbd1 George Cherian 2016-11-18 483 * [AURA] and CPT()_PF_Q()_GMCTL[GMID] as valid.
fcb2dbd1 George Cherian 2016-11-18 484 * reserved_45_47:3 [47:45] reserved.
fcb2dbd1 George Cherian 2016-11-18 485 * size:13 [44:32](R/W) Command-buffer size, in number of 64-bit words per
fcb2dbd1 George Cherian 2016-11-18 486 * command buffer segment. Must be 8*n + 1, where n is the number of
fcb2dbd1 George Cherian 2016-11-18 487 * instructions per buffer segment.
fcb2dbd1 George Cherian 2016-11-18 488 * reserved_11_31:21 [31:11] Reserved.
fcb2dbd1 George Cherian 2016-11-18 489 * cont_err:1 [10:10](R/W) Continue on error.
fcb2dbd1 George Cherian 2016-11-18 490 * 0 = When CPT()_VQ()_MISC_INT[NWRP], CPT()_VQ()_MISC_INT[IRDE] or
fcb2dbd1 George Cherian 2016-11-18 491 * CPT()_VQ()_MISC_INT[DOVF] are set by hardware or software via
fcb2dbd1 George Cherian 2016-11-18 492 * CPT()_VQ()_MISC_INT_W1S, then CPT()_VQ()_CTL[ENA] is cleared. Due to
fcb2dbd1 George Cherian 2016-11-18 493 * pipelining, additional instructions may have been processed between the
fcb2dbd1 George Cherian 2016-11-18 494 * instruction causing the error and the next instruction in the disabled
fcb2dbd1 George Cherian 2016-11-18 495 * queue (the instruction at CPT()_VQ()_SADDR).
fcb2dbd1 George Cherian 2016-11-18 496 * 1 = Ignore errors and continue processing instructions.
fcb2dbd1 George Cherian 2016-11-18 497 * For diagnostic use only.
fcb2dbd1 George Cherian 2016-11-18 498 * inst_free:1 [9:9](R/W) Instruction FPA free. When set, when CPT reaches the
fcb2dbd1 George Cherian 2016-11-18 499 * end of an instruction chunk, that chunk will be freed to the FPA.
fcb2dbd1 George Cherian 2016-11-18 500 * inst_be:1 [8:8](R/W) Instruction big-endian control. When set, instructions,
fcb2dbd1 George Cherian 2016-11-18 501 * instruction next chunk pointers, and result structures are stored in
fcb2dbd1 George Cherian 2016-11-18 502 * big-endian format in memory.
fcb2dbd1 George Cherian 2016-11-18 503 * iqb_ldwb:1 [7:7](R/W) Instruction load don't write back.
fcb2dbd1 George Cherian 2016-11-18 504 * 0 = The hardware issues NCB transient load (LDT) towards the cache,
fcb2dbd1 George Cherian 2016-11-18 505 * which if the line hits and is is dirty will cause the line to be
fcb2dbd1 George Cherian 2016-11-18 506 * written back before being replaced.
fcb2dbd1 George Cherian 2016-11-18 507 * 1 = The hardware issues NCB LDWB read-and-invalidate command towards
fcb2dbd1 George Cherian 2016-11-18 508 * the cache when fetching the last word of instructions; as a result the
fcb2dbd1 George Cherian 2016-11-18 509 * line will not be written back when replaced. This improves
fcb2dbd1 George Cherian 2016-11-18 510 * performance, but software must not read the instructions after they are
fcb2dbd1 George Cherian 2016-11-18 511 * posted to the hardware. Reads that do not consume the last word of a
fcb2dbd1 George Cherian 2016-11-18 512 * cache line always use LDI.
fcb2dbd1 George Cherian 2016-11-18 513 * reserved_4_6:3 [6:4] Reserved.
fcb2dbd1 George Cherian 2016-11-18 514 * grp:3; [3:1](R/W) Engine group.
fcb2dbd1 George Cherian 2016-11-18 515 * pri:1; [0:0](R/W) Queue priority.
fcb2dbd1 George Cherian 2016-11-18 516 * 1 = This queue has higher priority. Round-robin between higher
fcb2dbd1 George Cherian 2016-11-18 517 * priority queues.
fcb2dbd1 George Cherian 2016-11-18 518 * 0 = This queue has lower priority. Round-robin between lower
fcb2dbd1 George Cherian 2016-11-18 519 * priority queues.
fcb2dbd1 George Cherian 2016-11-18 520 */
fcb2dbd1 George Cherian 2016-11-18 521 union cptx_pf_qx_ctl {
fcb2dbd1 George Cherian 2016-11-18 522 uint64_t u;
fcb2dbd1 George Cherian 2016-11-18 523 struct cptx_pf_qx_ctl_s {
fcb2dbd1 George Cherian 2016-11-18 524 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
fcb2dbd1 George Cherian 2016-11-18 525 uint64_t reserved_60_63:4;
fcb2dbd1 George Cherian 2016-11-18 526 uint64_t aura:12;
fcb2dbd1 George Cherian 2016-11-18 527 uint64_t reserved_45_47:3;
fcb2dbd1 George Cherian 2016-11-18 528 uint64_t size:13;
fcb2dbd1 George Cherian 2016-11-18 529 uint64_t reserved_11_31:21;
fcb2dbd1 George Cherian 2016-11-18 530 uint64_t cont_err:1;
fcb2dbd1 George Cherian 2016-11-18 531 uint64_t inst_free:1;
fcb2dbd1 George Cherian 2016-11-18 532 uint64_t inst_be:1;
fcb2dbd1 George Cherian 2016-11-18 533 uint64_t iqb_ldwb:1;
fcb2dbd1 George Cherian 2016-11-18 534 uint64_t reserved_4_6:3;
fcb2dbd1 George Cherian 2016-11-18 535 uint64_t grp:3;
fcb2dbd1 George Cherian 2016-11-18 536 uint64_t pri:1;
fcb2dbd1 George Cherian 2016-11-18 537 #else /* Word 0 - Little Endian */
fcb2dbd1 George Cherian 2016-11-18 538 uint64_t pri:1;
fcb2dbd1 George Cherian 2016-11-18 539 uint64_t grp:3;
fcb2dbd1 George Cherian 2016-11-18 540 uint64_t reserved_4_6:3;
fcb2dbd1 George Cherian 2016-11-18 541 uint64_t iqb_ldwb:1;
fcb2dbd1 George Cherian 2016-11-18 542 uint64_t inst_be:1;
fcb2dbd1 George Cherian 2016-11-18 543 uint64_t inst_free:1;
fcb2dbd1 George Cherian 2016-11-18 544 uint64_t cont_err:1;
fcb2dbd1 George Cherian 2016-11-18 545 uint64_t reserved_11_31:21;
fcb2dbd1 George Cherian 2016-11-18 546 uint64_t size:13;
fcb2dbd1 George Cherian 2016-11-18 547 uint64_t reserved_45_47:3;
fcb2dbd1 George Cherian 2016-11-18 548 uint64_t aura:12;
fcb2dbd1 George Cherian 2016-11-18 549 uint64_t reserved_60_63:4;
fcb2dbd1 George Cherian 2016-11-18 550 #endif /* Word 0 - End */
fcb2dbd1 George Cherian 2016-11-18 551 } s;
fcb2dbd1 George Cherian 2016-11-18 552 /* struct cptx_pf_qx_ctl_s cn; */
fcb2dbd1 George Cherian 2016-11-18 553 };
fcb2dbd1 George Cherian 2016-11-18 554
fcb2dbd1 George Cherian 2016-11-18 555 /**
fcb2dbd1 George Cherian 2016-11-18 556 * Register (NCB) cpt#_pf_g#_en
fcb2dbd1 George Cherian 2016-11-18 557 *
fcb2dbd1 George Cherian 2016-11-18 558 * CPT PF Group Control Register
fcb2dbd1 George Cherian 2016-11-18 559 * This register configures engine groups.
fcb2dbd1 George Cherian 2016-11-18 560 * cptx_pf_gx_en_s
fcb2dbd1 George Cherian 2016-11-18 561 * Word0
fcb2dbd1 George Cherian 2016-11-18 562 * en: 64; [63:0](R/W/H) Engine group enable. One bit corresponds to each
fcb2dbd1 George Cherian 2016-11-18 563 * engine, with the bit set to indicate this engine can service this group.
fcb2dbd1 George Cherian 2016-11-18 564 * Bits corresponding to unimplemented engines read as zero, i.e. only bit
fcb2dbd1 George Cherian 2016-11-18 565 * numbers less than CPT()_PF_CONSTANTS[AE] + CPT()_PF_CONSTANTS[SE] are
fcb2dbd1 George Cherian 2016-11-18 566 * writable. AE engine bits follow SE engine bits.
fcb2dbd1 George Cherian 2016-11-18 567 * E.g. if CPT()_PF_CONSTANTS[AE] = 0x1, and CPT()_PF_CONSTANTS[SE] = 0x2,
fcb2dbd1 George Cherian 2016-11-18 568 * then bits <2:0> are read/writable with bit <2> corresponding to AE<0>,
fcb2dbd1 George Cherian 2016-11-18 569 * and bit <1> to SE<1>, and bit<0> to SE<0>. Before disabling an engine,
fcb2dbd1 George Cherian 2016-11-18 570 * the corresponding bit in each group must be cleared. CPT()_PF_EXEC_BUSY
fcb2dbd1 George Cherian 2016-11-18 571 * can then be polled to determing when the engine becomes idle.
fcb2dbd1 George Cherian 2016-11-18 572 * At the point, the engine can be disabled.
fcb2dbd1 George Cherian 2016-11-18 573 */
fcb2dbd1 George Cherian 2016-11-18 574 union cptx_pf_gx_en {
fcb2dbd1 George Cherian 2016-11-18 575 uint64_t u;
fcb2dbd1 George Cherian 2016-11-18 576 struct cptx_pf_gx_en_s {
fcb2dbd1 George Cherian 2016-11-18 577 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
fcb2dbd1 George Cherian 2016-11-18 578 uint64_t en:64;
fcb2dbd1 George Cherian 2016-11-18 579 #else /* Word 0 - Little Endian */
fcb2dbd1 George Cherian 2016-11-18 580 uint64_t en:64;
fcb2dbd1 George Cherian 2016-11-18 581 #endif /* Word 0 - End */
fcb2dbd1 George Cherian 2016-11-18 582 } s;
fcb2dbd1 George Cherian 2016-11-18 583 };
fcb2dbd1 George Cherian 2016-11-18 584
fcb2dbd1 George Cherian 2016-11-18 585 /**
fcb2dbd1 George Cherian 2016-11-18 586 * Register (NCB) cpt#_vq#_saddr
fcb2dbd1 George Cherian 2016-11-18 587 *
fcb2dbd1 George Cherian 2016-11-18 588 * CPT Queue Starting Buffer Address Registers
fcb2dbd1 George Cherian 2016-11-18 589 * These registers set the instruction buffer starting address.
fcb2dbd1 George Cherian 2016-11-18 590 * cptx_vqx_saddr_s
fcb2dbd1 George Cherian 2016-11-18 591 * Word0
fcb2dbd1 George Cherian 2016-11-18 592 * reserved_49_63:15 [63:49] Reserved.
fcb2dbd1 George Cherian 2016-11-18 593 * ptr:43 [48:6](R/W/H) Instruction buffer IOVA <48:6> (64-byte aligned).
fcb2dbd1 George Cherian 2016-11-18 594 * When written, it is the initial buffer starting address; when read,
fcb2dbd1 George Cherian 2016-11-18 595 * it is the next read pointer to be requested from L2C. The PTR field
fcb2dbd1 George Cherian 2016-11-18 596 * is overwritten with the next pointer each time that the command buffer
fcb2dbd1 George Cherian 2016-11-18 597 * segment is exhausted. New commands will then be read from the newly
fcb2dbd1 George Cherian 2016-11-18 598 * specified command buffer pointer.
fcb2dbd1 George Cherian 2016-11-18 599 * reserved_0_5:6 [5:0] Reserved.
fcb2dbd1 George Cherian 2016-11-18 600 *
fcb2dbd1 George Cherian 2016-11-18 601 */
fcb2dbd1 George Cherian 2016-11-18 602 union cptx_vqx_saddr {
fcb2dbd1 George Cherian 2016-11-18 603 uint64_t u;
fcb2dbd1 George Cherian 2016-11-18 604 struct cptx_vqx_saddr_s {
fcb2dbd1 George Cherian 2016-11-18 605 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
fcb2dbd1 George Cherian 2016-11-18 606 uint64_t reserved_49_63:15;
fcb2dbd1 George Cherian 2016-11-18 607 uint64_t ptr:43
fcb2dbd1 George Cherian 2016-11-18 @608 uint64_t reserved_0_5:6;
fcb2dbd1 George Cherian 2016-11-18 609 #else /* Word 0 - Little Endian */
fcb2dbd1 George Cherian 2016-11-18 610 uint64_t reserved_0_5:6;
fcb2dbd1 George Cherian 2016-11-18 611 uint64_t ptr:43;:::::: The code at line 608 was first introduced by commit
:::::: fcb2dbd14b3247c53056bc2b78e907c569da1d44 drivers: crypto: Add Support for Octeon-tx CPT Engine
:::::: TO: George Cherian <[email protected]> :::::: CC: 0day robot <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation