* Query: DMA device assigned to remoteproc usage by Linux
@ 2024-12-23 17:57 Mukesh Ojha
2025-01-20 6:39 ` Mukesh Ojha
0 siblings, 1 reply; 2+ messages in thread
From: Mukesh Ojha @ 2024-12-23 17:57 UTC (permalink / raw)
To: linux-remoteproc; +Cc: mathieu.poirier, andersson, linux-kernel
Hi All,
Wanted to check if we have encountered remoteproc use case where a device
with dma is assigned to a remoteproc with its own streamid and iommu
translation context. This DMA device can have a selective DMA range
within the remoteproc carveout memory that needs to be iommu mapped
before the remoteproc is up.
Do we have any example in remoteproc that handles such scenario where
device dma (assigned to remoteproc) has its iommu setup by Linux (since
the iommu is under its control) ?
I was exploring some of the remoteproc drivers but did not find anything
close to DMA use case and from where remoteproc should get this ddr range ?
device tree ? or rsc table ? if rsc table then which among the below ?
enum fw_resource_type {
RSC_CARVEOUT = 0,
RSC_DEVMEM = 1,
RSC_TRACE = 2,
RSC_VDEV = 3,
RSC_LAST = 4,
RSC_VENDOR_START = 128,
RSC_VENDOR_END = 512,
-Mukesh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Query: DMA device assigned to remoteproc usage by Linux
2024-12-23 17:57 Query: DMA device assigned to remoteproc usage by Linux Mukesh Ojha
@ 2025-01-20 6:39 ` Mukesh Ojha
0 siblings, 0 replies; 2+ messages in thread
From: Mukesh Ojha @ 2025-01-20 6:39 UTC (permalink / raw)
To: linux-remoteproc; +Cc: mathieu.poirier, andersson, linux-kernel
On Mon, Dec 23, 2024 at 11:27 PM Mukesh Ojha
<mukesh.ojha@oss.qualcomm.com> wrote:
>
> Hi All,
>
> Wanted to check if we have encountered remoteproc use case where a device
> with dma is assigned to a remoteproc with its own streamid and iommu
> translation context. This DMA device can have a selective DMA range
> within the remoteproc carveout memory that needs to be iommu mapped
> before the remoteproc is up.
>
> Do we have any example in remoteproc that handles such scenario where
> device dma (assigned to remoteproc) has its iommu setup by Linux (since
> the iommu is under its control) ?
>
> I was exploring some of the remoteproc drivers but did not find anything
> close to DMA use case and from where remoteproc should get this ddr range ?
>
> device tree ? or rsc table ? if rsc table then which among the below ?
Resurfacing this in case it was missed during the New Year vacation period.
-Mukesh
>
> enum fw_resource_type {
> RSC_CARVEOUT = 0,
> RSC_DEVMEM = 1,
> RSC_TRACE = 2,
> RSC_VDEV = 3,
> RSC_LAST = 4,
> RSC_VENDOR_START = 128,
> RSC_VENDOR_END = 512,
>
>
> -Mukesh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-20 6:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-23 17:57 Query: DMA device assigned to remoteproc usage by Linux Mukesh Ojha
2025-01-20 6:39 ` Mukesh Ojha
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 read-only IMAP folder(s) and NNTP newsgroup(s).