In my case , on OMAP3530 the SDIO xfer fails in 2 cases.
1. source buffer is not in DMA:able space.
2. source buffer address is not 4 buf aligned.
I wrote to linux-omap list to confirm this but it got lost in heavy traffic.
Changing to whole new platform you have all new MMC/SD host controller
h/w and driver.
I think these two limitations may not hold for your Freescale platform
and hence your marvell card works fine.
Hope this helps.
Regards,
Kalpesh
Hi Claud Yu,
> I porting the code to another platform (Freescale iMX31) with kernel
> 2.6.27.
> The problem is gone. The driver work perfect. I get the same
> performance as HTC G1 .
> I don't know what's problem with OMAP3530/2.6.29 combination. Maybe I
> could try another version OMAP3530 kernel.
on OMAP3530 the SDIO xfer fails in 2 cases.
1. source buffer is not in DMA:able space.
2. source buffer address is not 4 byte aligned.
Changing to whole new platform you have all new MMC/SD host controller
h/w and driver.
I think these two limitations may not hold for your Freescale platform
and hence your marvell card works fine.
Hope this helps.
Regards,
Kalpesh
>
> Claud Yu
I did not attempt it for Marvell 8688.
Workaround did fix DMA buffer problem by making the xfer work.
I have not measured performance yet.
Regards,
Kalpesh
> I haven't looked yet but I'll bet this implementation uses pre-
> allocated kmalloced buffers as you suggested.
>
Using kmalloced DMA:able buffer before calling
sdio_memcpy_fromio/sdio_memcpy_toio
is a workaround.
drivers/mmc/host/omap.c switches to PIO when DMA is not possible due
to constraints.
drivers/mmc/host/omap_hsmmc.c always attempts DMA. I tried
host->use_dma = 0, but it didn't work.
compare definition of function mmc_omap_prepare_data in both the drivers.
I believe you successfully ported these changes and things work.
Regards,
Kalpesh
> Finially I get a workable WL1251 driver with beagleboard. The tcp
> performance ~10 Mbps with iperf.
> The DMA workaround is work like Kalpesh's hint. But the size of DMA
> need to adjust.
Patches??
Steve
| Hi Claud Thanks for sharing your work. I sent you an email but it probably got lost. Is there any info on where I can find the source code which you used to compile insmod wl1251..ko insmod wl1251_sdio.ko Thanks very much -Thanh --- On Wed, 8/19/09, claud <clau...@gmail.com> wrote: |