Date: Wed, 08 Jan 2020 13:37:37 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 204521] [new driver] [request] Port rtsx from OpenBSD to FreeBSD Message-ID: <bug-204521-227-Qr0409ivFa@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-204521-227@https.bugs.freebsd.org/bugzilla/> References: <bug-204521-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204521 --- Comment #34 from Gary Jennejohn <gljennjohn@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204521-227-Qr0409ivFa>
