drivers/crypto/intel/qat/qat_common/adf_gen4_ras.h
Source file repositories/reference/linux-study-clean/drivers/crypto/intel/qat/qat_common/adf_gen4_ras.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/intel/qat/qat_common/adf_gen4_ras.h- Extension
.h- Size
- 29937 bytes
- Lines
- 826
- Domain
- Driver Families
- Bucket
- drivers/crypto
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bits.h
Detected Declarations
struct adf_ras_ops
Annotated Snippet
#ifndef ADF_GEN4_RAS_H_
#define ADF_GEN4_RAS_H_
#include <linux/bits.h>
struct adf_ras_ops;
/* ERRSOU0 Correctable error mask*/
#define ADF_GEN4_ERRSOU0_BIT BIT(0)
/* HI AE Correctable error log */
#define ADF_GEN4_HIAECORERRLOG_CPP0 0x41A308
/* HI AE Correctable error log enable */
#define ADF_GEN4_HIAECORERRLOGENABLE_CPP0 0x41A318
#define ADF_GEN4_ERRSOU1_HIAEUNCERRLOG_CPP0_BIT BIT(0)
#define ADF_GEN4_ERRSOU1_HICPPAGENTCMDPARERRLOG_BIT BIT(1)
#define ADF_GEN4_ERRSOU1_RIMEM_PARERR_STS_BIT BIT(2)
#define ADF_GEN4_ERRSOU1_TIMEM_PARERR_STS_BIT BIT(3)
#define ADF_GEN4_ERRSOU1_RIMISCSTS_BIT BIT(4)
#define ADF_GEN4_ERRSOU1_BITMASK ( \
(ADF_GEN4_ERRSOU1_HIAEUNCERRLOG_CPP0_BIT) | \
(ADF_GEN4_ERRSOU1_HICPPAGENTCMDPARERRLOG_BIT) | \
(ADF_GEN4_ERRSOU1_RIMEM_PARERR_STS_BIT) | \
(ADF_GEN4_ERRSOU1_TIMEM_PARERR_STS_BIT) | \
(ADF_GEN4_ERRSOU1_RIMISCSTS_BIT))
/* HI AE Uncorrectable error log */
#define ADF_GEN4_HIAEUNCERRLOG_CPP0 0x41A300
/* HI AE Uncorrectable error log enable */
#define ADF_GEN4_HIAEUNCERRLOGENABLE_CPP0 0x41A320
/* HI CPP Agent Command parity error log */
#define ADF_GEN4_HICPPAGENTCMDPARERRLOG 0x41A310
/* HI CPP Agent Command parity error logging enable */
#define ADF_GEN4_HICPPAGENTCMDPARERRLOGENABLE 0x41A314
/* RI Memory parity error status register */
#define ADF_GEN4_RIMEM_PARERR_STS 0x41B128
/* RI Memory parity error reporting enable */
#define ADF_GEN4_RI_MEM_PAR_ERR_EN0 0x41B12C
/*
* RI Memory parity error mask
* BIT(0) - BIT(3) - ri_iosf_pdata_rxq[0:3] parity error
* BIT(4) - ri_tlq_phdr parity error
* BIT(5) - ri_tlq_pdata parity error
* BIT(6) - ri_tlq_nphdr parity error
* BIT(7) - ri_tlq_npdata parity error
* BIT(8) - BIT(9) - ri_tlq_cplhdr[0:1] parity error
* BIT(10) - BIT(17) - ri_tlq_cpldata[0:7] parity error
* BIT(18) - set this bit to 1 to enable logging status to ri_mem_par_err_sts0
* BIT(19) - ri_cds_cmd_fifo parity error
* BIT(20) - ri_obc_ricpl_fifo parity error
* BIT(21) - ri_obc_tiricpl_fifo parity error
* BIT(22) - ri_obc_cppcpl_fifo parity error
* BIT(23) - ri_obc_pendcpl_fifo parity error
* BIT(24) - ri_cpp_cmd_fifo parity error
* BIT(25) - ri_cds_ticmd_fifo parity error
* BIT(26) - riti_cmd_fifo parity error
* BIT(27) - ri_int_msixtbl parity error
* BIT(28) - ri_int_imstbl parity error
* BIT(30) - ri_kpt_fuses parity error
*/
#define ADF_GEN4_RIMEM_PARERR_STS_UNCERR_BITMASK \
(BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(5) | \
BIT(7) | BIT(10) | BIT(11) | BIT(12) | BIT(13) | \
BIT(14) | BIT(15) | BIT(16) | BIT(17) | BIT(18) | BIT(19) | \
BIT(20) | BIT(21) | BIT(22) | BIT(23) | BIT(24) | BIT(25) | \
BIT(26) | BIT(27) | BIT(28) | BIT(30))
#define ADF_GEN4_RIMEM_PARERR_STS_FATAL_BITMASK \
(BIT(4) | BIT(6) | BIT(8) | BIT(9))
/* TI CI parity status */
#define ADF_GEN4_TI_CI_PAR_STS 0x50060C
/* TI CI parity reporting mask */
#define ADF_GEN4_TI_CI_PAR_ERR_MASK 0x500608
/*
* TI CI parity status mask
* BIT(0) - CdCmdQ_sts patiry error status
* BIT(1) - CdDataQ_sts parity error status
* BIT(3) - CPP_SkidQ_sts parity error status
* BIT(7) - CPP_SkidQ_sc_sts parity error status
Annotation
- Immediate include surface: `linux/bits.h`.
- Detected declarations: `struct adf_ras_ops`.
- Atlas domain: Driver Families / drivers/crypto.
- Implementation status: source implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.