From: Rahul T R <[email protected]> The C6x DSP can address 48-bit memory space through the Region Address Translator (RAT) unit, and the C7x DSP has a native 48-bit address bus. RAT is usually programmed by the firmware itself. Configure the remoteproc device DMA mask to 48 bits to enable full addressing capability for DMA operations.
Signed-off-by: Rahul T R <[email protected]> Signed-off-by: Beleswar Padhi <[email protected]> --- drivers/remoteproc/ti_k3_dsp_remoteproc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/remoteproc/ti_k3_dsp_remoteproc.c b/drivers/remoteproc/ti_k3_dsp_remoteproc.c index d6ceea6dc920e..c0ccf87dbb6fe 100644 --- a/drivers/remoteproc/ti_k3_dsp_remoteproc.c +++ b/drivers/remoteproc/ti_k3_dsp_remoteproc.c @@ -154,6 +154,10 @@ static int k3_dsp_rproc_probe(struct platform_device *pdev) dev_info(dev, "configured DSP for remoteproc mode\n"); } + ret = dma_coerce_mask_and_coherent(&rproc->dev, DMA_BIT_MASK(48)); + if (ret) + dev_warn(dev, "Failed to set DMA mask (%d)\n", ret); + ret = devm_rproc_add(dev, rproc); if (ret) return dev_err_probe(dev, ret, "failed to add register device with remoteproc core\n"); -- 2.34.1

