Re: [PATCH v2] arm64: dts: rockchip: add rk3399 UART DMAs
From: Robin Murphy
Date: Wed Mar 27 2019 - 08:10:14 EST
On 26/03/2019 13:49, Katsuhiro Suzuki wrote:
Hello Robin,
Sorry for inconvenience. Since I don't adhere enabling DMA for UARTs,
please revert my patch if you need.
I found a little time to fire up the board again this morning, so I gave
this another try to double-check - in fact this time I only saw it fail
3 times in 15 reboots. So something's certainly not quite right, but
it's not quite as terrible as the first try implied.
My suspicion at this point is that the DMA implementation might be
losing characters occasionally, and obviously the bluetooth firmware
transfer is going to be a lot more sensitive to that than a text console is.
BTW, there are DMA properties in RK3328 device-tree like as this patch.
RK3328 UART DMA could not work correctly too...??
Quite possibly, although my 3328 box doesn't have any UARTS connected or
exposed other than the standard debug console, so I can't easily
investigate there. I do have a 3288 box with similar serial bluetooth to
my 3399 which might be worth digging out for comparison with an
up-to-date kernel.
Robin.
Best Regards,
Katsuhiro Suzuki
On 2019/03/26 20:48, Robin Murphy wrote:
On 25/03/2019 12:34, Heiko Stuebner wrote:
Am Donnerstag, 21. MÃrz 2019, 17:22:44 CET schrieb Katsuhiro Suzuki:
Add UART dma channels as specified by the rk3399 TRM.
Refer:
RK3399 TRM V1.4: Chapter 12 DMA Controller
Signed-off-by: Katsuhiro Suzuki <katsuhiro@xxxxxxxxxxxxx>
applied for 5.2
As a heads-up, I did manage to try my board with this patch applied
over the weekend, and it makes probing the bluetooth adapter fail with
communication errors, so I'm not sure the 8250 and pl330 drivers are
really cooperating well enough :(
Robin.