* Question on allocating to USB devices
@ 2021-02-25 8:07 Noam Liron
0 siblings, 0 replies; only message in thread
From: Noam Liron @ 2021-02-25 8:07 UTC (permalink / raw)
To: dmaengine
I am working on a SOC which it's RAM starts at 0x200M. For some reason I need to limit the DMA allocations up to 0x220M, and I've done it by creating a shared DMA pool in the DTS:
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
reserved: buffer@0 {
compatible = "shared-dma-pool";
no-map;
reg = <0x2 0x0 0x0 0x1000000>;
}
which each platform driver in the DTS uses, by referencing the pool:
memory-region = <&reserved>;
But how can I enforce allocation from this pool (or other reserved area) of usb devices such as usb2eth dongle? After all they are also devices (probed at usbnet_probe) that allocate DMA, but are not represented at the DTS.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-25 8:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-25 8:07 Question on allocating to USB devices Noam Liron
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).