drivers/remoteproc/qcom_q6v5_mss.c
Source file repositories/reference/linux-study-clean/drivers/remoteproc/qcom_q6v5_mss.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/remoteproc/qcom_q6v5_mss.c- Extension
.c- Size
- 70464 bytes
- Lines
- 2910
- Domain
- Driver Families
- Bucket
- drivers/remoteproc
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/clk.hlinux/delay.hlinux/devcoredump.hlinux/dma-mapping.hlinux/interrupt.hlinux/kernel.hlinux/mfd/syscon.hlinux/module.hlinux/of.hlinux/of_reserved_mem.hlinux/of_platform.hlinux/platform_device.hlinux/pm_domain.hlinux/pm_runtime.hlinux/regmap.hlinux/regulator/consumer.hlinux/remoteproc.hlinux/reset.hlinux/soc/qcom/mdt_loader.hlinux/iopoll.hlinux/slab.hremoteproc_internal.hqcom_common.hqcom_pil_info.hqcom_q6v5.hlinux/firmware/qcom/qcom_scm.h
Detected Declarations
struct reg_infostruct qcom_mss_reg_resstruct rproc_hexagon_resstruct q6v5function q6v5_regulator_initfunction q6v5_regulator_enablefunction q6v5_regulator_disablefunction q6v5_clk_enablefunction q6v5_clk_disablefunction q6v5_pds_enablefunction q6v5_pds_disablefunction q6v5_external_bhs_enablefunction q6v5_external_bhs_disablefunction q6v5_xfer_mem_ownershipfunction q6v5_debug_policy_loadfunction q6v5_loadfunction q6v5_reset_assertfunction q6v5_reset_deassertfunction q6v5_rmb_pbl_waitfunction q6v5_rmb_mba_waitfunction q6v5_dump_mba_logsfunction q6v5proc_resetfunction q6v5proc_enable_qchannelfunction q6v5proc_disable_qchannelfunction q6v5proc_halt_axi_portfunction q6v5_mpss_init_imagefunction q6v5_phdr_validfunction q6v5_mba_loadfunction q6v5_mba_reclaimfunction q6v5_reload_mbafunction q6v5_mpss_loadfunction qcom_q6v5_dump_segmentfunction q6v5_startfunction q6v5_stopfunction qcom_q6v5_register_dump_segmentsfunction q6v5_panicfunction qcom_msa_handoverfunction q6v5_init_memfunction q6v5_init_clocksfunction q6v5_pds_attachfunction q6v5_pds_detachfunction q6v5_init_resetfunction q6v5_alloc_memory_regionfunction q6v5_probefunction q6v5_remove
Annotated Snippet
struct reg_info {
struct regulator *reg;
int uV;
int uA;
};
struct qcom_mss_reg_res {
const char *supply;
int uV;
int uA;
};
struct rproc_hexagon_res {
const char *hexagon_mba_image;
struct qcom_mss_reg_res *proxy_supply;
struct qcom_mss_reg_res *fallback_proxy_supply;
struct qcom_mss_reg_res *active_supply;
char **proxy_clk_names;
char **reset_clk_names;
char **active_clk_names;
char **proxy_pd_names;
int version;
bool need_mem_protection;
bool need_pas_mem_setup;
bool has_alt_reset;
bool has_mba_logs;
bool has_spare_reg;
bool has_qaccept_regs;
bool has_ext_bhs_reg;
bool has_ext_cntl_regs;
bool has_vq6;
};
struct q6v5 {
struct device *dev;
struct rproc *rproc;
void __iomem *reg_base;
void __iomem *rmb_base;
struct regmap *halt_map;
struct regmap *conn_map;
u32 halt_q6;
u32 halt_modem;
u32 halt_nc;
u32 halt_vq6;
u32 conn_box;
u32 ext_bhs;
u32 qaccept_mdm;
u32 qaccept_cx;
u32 qaccept_axi;
u32 axim1_clk_off;
u32 crypto_clk_off;
u32 force_clk_on;
u32 rscc_disable;
struct reset_control *mss_restart;
struct reset_control *pdc_reset;
struct qcom_q6v5 q6v5;
struct clk *active_clks[8];
struct clk *reset_clks[4];
struct clk *proxy_clks[4];
struct device *proxy_pds[3];
int active_clk_count;
int reset_clk_count;
int proxy_clk_count;
int proxy_pd_count;
struct reg_info active_regs[1];
struct reg_info proxy_regs[1];
struct reg_info fallback_proxy_regs[2];
int active_reg_count;
int proxy_reg_count;
int fallback_proxy_reg_count;
bool dump_mba_loaded;
size_t current_dump_size;
size_t total_dump_size;
phys_addr_t mba_phys;
size_t mba_size;
size_t dp_size;
phys_addr_t mdata_phys;
size_t mdata_size;
Annotation
- Immediate include surface: `linux/clk.h`, `linux/delay.h`, `linux/devcoredump.h`, `linux/dma-mapping.h`, `linux/interrupt.h`, `linux/kernel.h`, `linux/mfd/syscon.h`, `linux/module.h`.
- Detected declarations: `struct reg_info`, `struct qcom_mss_reg_res`, `struct rproc_hexagon_res`, `struct q6v5`, `function q6v5_regulator_init`, `function q6v5_regulator_enable`, `function q6v5_regulator_disable`, `function q6v5_clk_enable`, `function q6v5_clk_disable`, `function q6v5_pds_enable`.
- Atlas domain: Driver Families / drivers/remoteproc.
- 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.