Discussion:
Implementation of _bus_dmamap_load_raw for MIPs
Vennila
2013-11-05 04:25:26 UTC
Permalink
Hi,

In current release, implementation of _bus_dmamap_load_raw() for MIPs in
/sys/arch/mips/mips/bus_dma.c is MISSING.

int
_bus_dmamap_load_raw(bus_dma_tag_t t, bus_dmamap_t map,
bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
{

panic("_bus_dmamap_load_raw: not implemented");
}

But it is used by WLAN code.
Reference:
In sys/dev/ic/arn9003.c, ar9003_dma_alloc() => ar9003_tx_alloc() =>
bus_dmamap_load_raw()

Please help us to get implementation of bus_dmamap_load_raw() by providing
the required commit details.

Thanks & Regards,
Vennila



--
View this message in context: http://netbsd.2816.n7.nabble.com/Implementation-of-bus-dmamap-load-raw-for-MIPs-tp290172.html
Sent from the port-mips mailing list archive at Nabble.com.
Vennila
2013-11-18 03:56:50 UTC
Permalink
Kindly provide your inputs regarding _bus_dmamap_load_raw() implementation.



--
View this message in context: http://netbsd.2816.n7.nabble.com/Implementation-of-bus-dmamap-load-raw-for-MIPs-tp290172p290952.html
Sent from the port-mips mailing list archive at Nabble.com.
anandr
2013-12-10 05:55:43 UTC
Permalink
Hi all,

Can you please provide us inputs for implementation of _bus_dmamap_load_raw
function.
Also please clarify whether we can use the src/sys/dev/ic/athn.c driver
provided in the Netbsd current source code for bringing up 802.11bgn
chipsets.

Thanks in advance

Regards,
Anand.



--
View this message in context: http://netbsd.2816.n7.nabble.com/Implementation-of-bus-dmamap-load-raw-for-MIPs-tp290172p292353.html
Sent from the port-mips mailing list archive at Nabble.com.
Vennila
2014-01-31 08:06:57 UTC
Permalink
Hi everyone,


Kindly help us to resolve this issue. We are stuck with the dma
implementation for MIPS and not able to proceed further.

Thanks in advance.

Regards,
Vennila



--
View this message in context: http://netbsd.2816.n7.nabble.com/Implementation-of-bus-dmamap-load-raw-for-MIPs-tp290172p295277.html
Sent from the port-mips mailing list archive at Nabble.com.
Manuel Bouyer
2014-01-31 10:54:59 UTC
Permalink
Post by Vennila
Hi everyone,
Kindly help us to resolve this issue. We are stuck with the dma
implementation for MIPS and not able to proceed further.
What is your problem ?
--
Manuel Bouyer <***@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
Vennila
2014-02-03 04:22:20 UTC
Permalink
Hi,

Implementation of _bus_dmamap_load_raw() API is missing for MIPS
architecture and so porting of athn code from current release results in
issue in dma allocation.

Kindly help us providing the required API definition.


Thanks & Regards,
Vennila



--
View this message in context: http://netbsd.2816.n7.nabble.com/Implementation-of-bus-dmamap-load-raw-for-MIPs-tp290172p295462.html
Sent from the port-mips mailing list archive at Nabble.com.
Matt Thomas
2014-02-03 19:19:44 UTC
Permalink
Post by Vennila
Hi,
Implementation of _bus_dmamap_load_raw() API is missing for MIPS
architecture and so porting of athn code from current release results in
issue in dma allocation.
Kindly help us providing the required API definition.
There's a reason for why there is no support for bus_dmamap_load_raw.
The instructions used by bus_dmamap_sync on mips use virtual addresses
for working on the cache. Since _raw operates on physical addresses,
there are no physical addresses.

Instead of doing raw, you can use bus_dmamem_map and bus_dmamap_load
to get a working dmamap.

That all being said, I just a committed a version of bus_dmamap_load_raw
which might work for you. It's completely untested so have fun!
Vennila
2014-02-04 06:15:49 UTC
Permalink
Hi,

Thanks for your reply.


Regards,
Vennila




--
View this message in context: http://netbsd.2816.n7.nabble.com/Implementation-of-bus-dmamap-load-raw-for-MIPs-tp290172p295506.html
Sent from the port-mips mailing list archive at Nabble.com.

Loading...