[Bug 204521] [new driver] [request] Port rtsx from OpenBSD to FreeBSD

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 8 13:37:45 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204521

--- Comment #34 from Gary Jennejohn <gljennjohn at gmail.com> ---
I reimplemented rtsx_xfer_bounce() so that it's pretty much one-to-one the same
as the way OpenBSD does it.  But now the transfer always times out.  The DMA
addresses returned by the kernel all look good and are within the 32-bit range.

If anyone is interested I can attach my code.  It's full of ifdef's and trace
output.  Maybe other eyes can see what I can't.  I've looked at the code so
much that I may be blind to any errors.

Comparing OpenBSD with the code I'm using doesn't reveal any obvious errors. 
The DMA setup for using bounce buffers appears to be the same and the steps
preceeding the DMA transfer also seem identical.

I'm at a loss to explain why DMA in FreeBSD does not work.

What I haven't yet tried is to do the DMA setup like dwmmc.c does it.  Guess
I'll try that next.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list