dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/4] Add ADSP and CDSP support on Kaanapali SoC
@ 2025-12-11 10:09 Kumari Pallavi
  2025-12-11 10:09 ` [PATCH v6 1/4] dt-bindings: misc: qcom, fastrpc: Add compatible for Kaanapali Kumari Pallavi
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Kumari Pallavi @ 2025-12-11 10:09 UTC (permalink / raw)
  To: kpallavi, srini, amahesh, arnd, gregkh, robh, krzk+dt, conor+dt
  Cc: Kumari Pallavi, quic_bkumar, ekansh.gupta, linux-kernel,
	quic_chennak, dri-devel, linux-arm-msm, devicetree, jingyi.wang,
	aiqun.yu, ktadakam

Introduces support for new DSP IOVA formatting and hardware-specific
configuration required to enable ADSP and CDSP functionality on the
Kaanapali SoC.

Add support for a new IOVA formatting scheme by adding a sid_pos to the DSP
driver. Sid_pos standardizes the placement of the stream ID (SID) within the
physical address, which is required for DSPs to operate correctly on
Kaanapali. DSP currently supports 32-bit IOVA (32-bit PA + 4-bit SID) for
both Q6 and user DMA (uDMA) access.
This is being upgraded to 34-bit PA + 4-bit SID due to a hardware revision
in CDSP for Kaanapali SoC, which expands the DMA addressable range.
To support CDSP operation, this series updates the DMA mask configuration
to reflect the expanded DMA addressable range.

Patch [v5]:https://lore.kernel.org/all/20251202060628.1869967-1-kumari.pallavi@oss.qualcomm.com/

Changes in v6:
  - Update the commit messages and drop the unnecessary items from bindings
  - Add the function fastrpc_compute_dma_addr as the wrapper for more readability
  - Update the comments for better visiblity and use of GENMASK to avoids 
    subtle precedence pitfalls
  - Renamed the dma_addr_bits_extended to dma_addr_bits_cdsp to highlight 
    maintainability

Changes in v5:
  - Update the commit message to clearly explain the background of the change
  - Use the proper format specifier (%pad) for printing dma_addr_t instead of %llx
  - Remove unnecessary NULL assignments where not required
  - Rearrange code for proper alignment and style compliance

Changes in v4:
  - Resolve warnings reported by make dt_bindings_check
  - Convert the data type of the dma_addr to dma_addr_t
  - Replace the macro with an inline function for more readability
  - Rename the cdsp_dma_bits to dma_addr_bits_extended and default_dma_bits
    to the dma_addr_bits_default for more clarity

Changes in v3:
  - dt-bindings documentation update to support Kaanapali Soc
  - update comments to ensure clarity
  - Read SoC-specific data by matching the SoC’s .compatible field
    in the driver’s of_device_id match table instead of root node
  - Rename the dma_mask to the dma_bits for more clarity and set it's
    value based on the dsp_default_dma_bits instead of hardcode to 32

Changes in v2:
  - Rename phys to dma_addr for clarity
  - Remove iova_format, add soc_data with sid_pos in channel ctx
  - Remove sid_pos and pa_bits from the session ctx

Kumari Pallavi (4):
  dt-bindings: misc: qcom,fastrpc: Add compatible for Kaanapali
  misc: fastrpc: Rename phys to dma_addr for clarity
  misc: fastrpc: Add support for new DSP IOVA formatting
  misc: fastrpc: Update dma_bits for CDSP support on Kaanapali SoC

 .../bindings/misc/qcom,fastrpc.yaml           |   7 +-
 drivers/misc/fastrpc.c                        | 141 +++++++++++++-----
 2 files changed, 107 insertions(+), 41 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-12-11 15:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-11 10:09 [PATCH v6 0/4] Add ADSP and CDSP support on Kaanapali SoC Kumari Pallavi
2025-12-11 10:09 ` [PATCH v6 1/4] dt-bindings: misc: qcom, fastrpc: Add compatible for Kaanapali Kumari Pallavi
2025-12-11 15:41   ` [PATCH v6 1/4] dt-bindings: misc: qcom,fastrpc: " Rob Herring
2025-12-11 10:09 ` [PATCH v6 2/4] misc: fastrpc: Rename phys to dma_addr for clarity Kumari Pallavi
2025-12-11 10:09 ` [PATCH v6 3/4] misc: fastrpc: Add support for new DSP IOVA formatting Kumari Pallavi
2025-12-11 13:38   ` Dmitry Baryshkov
2025-12-11 10:09 ` [PATCH v6 4/4] misc: fastrpc: Update dma_bits for CDSP support on Kaanapali SoC Kumari Pallavi
2025-12-11 13:38   ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).