Add support for the BAM-DMUX WWAN modem data path on Shikra.#703
Add support for the BAM-DMUX WWAN modem data path on Shikra.#703quic-vishsant wants to merge 4 commits into
Conversation
SMEM_SMSM_SIZE_INFO (id 419) is not populated by the boot firmware on Qualcomm Shikra SoC. The SMSM driver falls back to SMSM_DEFAULT_NUM_HOSTS when this segment is absent, which causes SMEM_SMSM_CPU_INTR_MASK (id 333) to be allocated with the wrong size. SMEM_SMSM_CPU_INTR_MASK is sized as SMSM_DEFAULT_NUM_ENTRIES * SMSM_DEFAULT_NUM_HOSTS * sizeof(u32). With SMSM_DEFAULT_NUM_ENTRIES fixed at 8, the current SMSM_DEFAULT_NUM_HOSTS of 3 allocates 96 bytes. Qualcomm Shikra SoC modem firmware expects 160 bytes, requiring SMSM_DEFAULT_NUM_HOSTS to be 5. The size mismatch causes the modem to crash on boot with "smsm.c: Bad pointer from smem_alloc". Increase SMSM_DEFAULT_NUM_HOSTS to 5 to match the modem firmware expectation and prevent the boot crash. Co-developed-by: Deepak Kumar Singh <deepak.singh@oss.qualcomm.com> Signed-off-by: Deepak Kumar Singh <deepak.singh@oss.qualcomm.com> Signed-off-by: Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260611-qcom-smsm-default-num-hosts-v1-1-423b8a25945a@oss.qualcomm.com
…tree The driver hardcodes IRQF_TRIGGER_HIGH when registering the BAM interrupt, which overrides the trigger type specified in the device tree. On Qualcomm Shikra SoC, the A2 BAM signals an edge interrupt to the apps processor; registering it as level-high causes the interrupt to not fire, resulting in missed DMA completions. Use IRQF_TRIGGER_NONE instead, which causes the kernel to use the trigger type already configured by platform_get_irq() when it parsed the device tree interrupts property. This makes the driver platform-agnostic. Fixes: e7c0fe2 ("dmaengine: add Qualcomm BAM dma driver") Co-developed-by: Deepak Kumar Singh <deepak.singh@oss.qualcomm.com> Signed-off-by: Deepak Kumar Singh <deepak.singh@oss.qualcomm.com> Signed-off-by: Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260611-qcom-bam-dma-irq-trigger-v1-1-21c216e00b2a@oss.qualcomm.com
Add required nodes to enable the upstream BAM-DMUX WWAN driver on Qualcomm Shikra SoC. The SMSM (Shared Memory State Machine) node provides the power control signaling between the AP and modem for BAM-DMUX. The BAM DMA controller node describes the A2 modem BAM hardware as a standard DMA controller. The BAM-DMUX node references the DMA channels and the pc/pc-ack interrupt lines from the modem SMSM entry for power control signaling. Signed-off-by: Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260611-qcom-shikra-dts-bam-dmux-v1-1-43d0b43d41ef@oss.qualcomm.com
Enable the BAM Data Multiplexer WWAN driver as a module to support modem data channels on Qualcomm Shikra SoC. The driver is also used by other platforms with A2 BAM hardware such as MSM8916 and MSM8939. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260611-qcom-arm64-defconfig-bam-dmux-v1-1-599190f17fc9@oss.qualcomm.com
|
"qli-2.0 GA Critical Fix" |
PR #703 — validate-patchPR: #703
Final Summary
Note: The lore links are well-formed and follow the standard message-ID format. The patches appear to have been posted to the mailing list within the last few hours, so lore.kernel.org indexing delay is expected. Once indexed, the links should resolve correctly.
|
PR #703 — checker-log-analyzerPR: #703
Detailed report: Full report
|
Fix SMSM default host count: upstream default of 3 allocates wrong
size for Shikra modem firmware which expects num_hosts=5, causing
modem boot crash "smsm.c: Bad pointer from smem_alloc"
Fix BAM DMA IRQ trigger: driver hardcodes IRQF_TRIGGER_HIGH,
overriding the DT-specified edge trigger needed by Shikra A2 BAM
Add shikra.dtsi nodes: bam_dmux_dma (inside soc) and bam-dmux
(root level, before clocks)
Enable CONFIG_QCOM_BAM_DMUX=m in defconfig
Lore links:
https://lore.kernel.org/all/20260611-qcom-smsm-default-num-hosts-v1-1-423b8a25945a@oss.qualcomm.com/
https://lore.kernel.org/all/20260611-qcom-bam-dma-irq-trigger-v1-1-21c216e00b2a@oss.qualcomm.com/
https://lore.kernel.org/all/20260611-qcom-shikra-dts-bam-dmux-v1-1-43d0b43d41ef@oss.qualcomm.com/
https://lore.kernel.org/all/20260611-qcom-arm64-defconfig-bam-dmux-v1-1-599190f17fc9@oss.qualcomm.com/
CRs-Fixed: 4569396