Revert "serial: 8250_dma: don't bother DMA with small transfers"
Subsystems (2)
PATCH v2 1/1 Revert "serial: 8250_dma: don't bother DMA with small transfers"
This reverts commit 9119fba0cfeda6d415c9f068df66838a104b87cb.
This commit prevents from sending "big" file using Bluetooth. When sending a lot of data quickly through the Bluetooth interface, and after a variable amount of data sent, transfer fails with error:
kernel: [ 415.247453] Bluetooth: hci0 hardware error 0x00
Found on T100TA.
After reverting this commit, send works fine for any file size.
---
v2: Re-send to correct people
drivers/tty/serial/8250/8250_dma.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/tty/serial/8250/8250_dma.c +0 -4
@@ -77,10 +77,6 @@ int serial8250_tx_dma(struct uart_8250_port *p)return 0 ; dma->tx_size =CIRC_CNT_TO_END (xmit->head, xmit->tail,UART_XMIT_SIZE ); -if (dma->tx_size < p->port.fifosize) { - ret = -EINVAL ; - goto err; - } desc = dmaengine_prep_slave_single(dma->txchan, dma->tx_addr + xmit->tail,
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 9 lines · Frederic Danis
This reverts commit
9119fba0cfeda6d415c9f068df66838a104b87cb.This commit prevents from sending "big" file using Bluetooth. When sending a lot of data quickly through the Bluetooth interface, and after a variable amount of data sent, transfer fails with error:
kernel: [ 415.247453] Bluetooth: hci0 hardware error 0x00Found on T100TA.
Quoted 8 lines
After reverting this commit, send works fine for any file size.
Signed-off-by Frederic Danis <[email protected]>---
v2: Re-send to correct peopledrivers/tty/serial/8250/8250_dma.c | 4 ---- 1 file changed, 4 deletions(-)
Andy, any objections?
Frederic, don't you want to see this backported to 4.0 and newer?
thanks,
greg k-h
Hello Greg,
Quoted 16 lines · Greg KH
Quoted 15 lines · Frederic Danis
This reverts commit
9119fba0cfeda6d415c9f068df66838a104b87cb.This commit prevents from sending "big" file using Bluetooth. When sending a lot of data quickly through the Bluetooth interface, and after a variable amount of data sent, transfer fails with error:
kernel: [ 415.247453] Bluetooth: hci0 hardware error 0x00Found on T100TA.
After reverting this commit, send works fine for any file size.
Signed-off-by Frederic Danis <[email protected]>---
v2: Re-send to correct people
Quoted 6 lines
Quoted 2 lines
drivers/tty/serial/8250/8250_dma.c | 4 ---- 1 file changed, 4 deletions(-)Andy, any objections?
Frederic, don't you want to see this backported to 4.0 and newer?
Yes, you're right, unless Andy has any objection this should be good
Regards
Fred
Hello Greg,
Quoted 6 lines · Frederic Danis
Quoted 4 lines
Andy, any objections?
Frederic, don't you want to see this backported to 4.0 and newer?
Yes, you're right, unless Andy has any objection this should be good
This is first time for me that patch may be applied to previous kernel.
Is there something specific I should do to allow this patch to be applied and backported to 4.0 and newer ?
Regards
Fred
Signature · 2 lines
Frederic Danis Open Source Technology Center [email protected] Intel Corporation
Quoted 8 lines · Frederic Danis
Hello Greg,
Quoted 5 lines · Frederic Danis
Quoted 4 lines
Andy, any objections?
Frederic, don't you want to see this backported to 4.0 and newer?
Quoted 8 lines
Quoted 2 lines
Yes, you're right, unless Andy has any objection this should be good
This is first time for me that patch may be applied to previous kernel.
Is there something specific I should do to allow this patch to be applied and backported to 4.0 and newer ?
Earlier we use to Cc: [email protected]
(I don't know if it's still a case)
Now the tag Fixes: is in use, like you may add the following line to th e commit message:
transfers)
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
Quoted 4 lines · Frederic Danis
This is first time for me that patch may be applied to previous kernel.
Is there something specific I should do to allow this patch to be applied and backported to 4.0 and newer ?
You can find the instructions at Documentation/stable_kernel_rules.txt
Quoted 13 lines · Greg KH
Quoted 12 lines · Frederic Danis
This reverts commit
9119fba0cfeda6d415c9f068df66838a104b87cb.This commit prevents from sending "big" file using Bluetooth. When sending a lot of data quickly through the Bluetooth interface, and
after a variable amount of data sent, transfer fails with error:kernel: [ 415.247453] Bluetooth: hci0 hardware error 0x00Found on T100TA.
After reverting this commit, send works fine for any file size.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Frederic Danis <[email protected]>---
v2: Re-send to correct peopledrivers/tty/serial/8250/8250_dma.c | 4 ---- 1 file changed, 4 deletions(-)Andy, any objections?
No.
P.S. Unfortunately it's not easy to reproduce on our side, so I trust Frederic on this.
Quoted 6 lines
Frederic, don't you want to see this backported to 4.0 and newer?
thanks,
greg k-h
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy