Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1681181 > unrolled thread

Re: [PATCH v7 0/6] g_NCR5380: PDMA fixes and cleanup

Started byOndrej Zary <linux@rainbow-software.org>
First post2017-07-04 23:00 +0200
Last post2017-07-05 02:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v7 0/6] g_NCR5380: PDMA fixes and cleanup Ondrej Zary <linux@rainbow-software.org> - 2017-07-04 23:00 +0200
    Re: [PATCH v7 0/6] g_NCR5380: PDMA fixes and cleanup Finn Thain <fthain@telegraphics.com.au> - 2017-07-05 02:50 +0200

#1681181 — Re: [PATCH v7 0/6] g_NCR5380: PDMA fixes and cleanup

FromOndrej Zary <linux@rainbow-software.org>
Date2017-07-04 23:00 +0200
SubjectRe: [PATCH v7 0/6] g_NCR5380: PDMA fixes and cleanup
Message-ID<tZD5p-520-31@gated-at.bofh.it>
On Monday 03 July 2017 09:59:05 Finn Thain wrote:
> Ondrej, would you please test this new series?
>
> Changed since v1:
> - PDMA transfer residual is calculated earlier.
> - End of DMA flag check is now polled (if there is any residual).
>
> Changed since v2:
> - Bail out of transfer loops when Gated IRQ gets asserted.
> - Make udelay conditional on board type.
> - Drop sg_tablesize patch due to performance regression.
>
> Changed since v3:
> - Add Ondrej's workaround for corrupt WRITE commands on DTC boards.
> - Reset the 53c400 logic after any short PDMA transfer.
> - Don't fail the transfer if the 53c400 logic got a reset.
>
> Changed since v4:
> - Bail out of transfer loops when Gated IRQ gets asserted. (Again.)
> - Always call wait_for_53c80_registers() at end of transfer.
> - Drain chip buffers after PDMA receive is interrupted.
> - Rework residual calculation.
> - Add new patch to correct DMA terminology.
>
> Changed since v5:
> - Rework residual calculation to account for on-chip buffer swap.
> - Attempt to retain the disconnect/IRQ detection in the DTC436 workaround.
> - Move all DTC436 workarounds to final patch.
>
> Changed since v6:
> - Fix residual calculation for the buffer timeout case.
> - Iterate after sending final 128 bytes to check for buffer timeout.
> - Don't log the residual value when it is known to be zero.
>
>
> Finn Thain (2):
>   g_NCR5380: Cleanup comments and whitespace
>   g_NCR5380: Use unambiguous terminology for PDMA send and receive
>
> Ondrej Zary (4):
>   g_NCR5380: Fix PDMA transfer size
>   g_NCR5380: End PDMA transfer correctly on target disconnection
>   g_NCR5380: Re-work PDMA loops
>   g_NCR5380: Two DTC436 PDMA workarounds
>
>  drivers/scsi/g_NCR5380.c | 277
> ++++++++++++++++++++++++++--------------------- 1 file changed, 155
> insertions(+), 122 deletions(-)

Everything works fine! No corruption, no hangs, rescan-scsi-bus works.

Tested cards:
Canon FG2-5202 (53C400 chip, MMIO)
DTC-3181L (DTCT-436P chip, PIO)
HP C2502 (53C400A chip, PIO)

Tested devices:
QUANTUM  LP240S GM240S01X 4.6
IBM      DORS-32160       WA0A
SONY     CD-ROM CDU-415   1.1g
SONY     CD-ROM CDU-55S   1.0t

Tested-by: Ondrej Zary <linux@rainbow-software.org>

-- 
Ondrej Zary

[toc] | [next] | [standalone]


#1681232

FromFinn Thain <fthain@telegraphics.com.au>
Date2017-07-05 02:50 +0200
Message-ID<tZGFX-7lF-1@gated-at.bofh.it>
In reply to#1681181
On Tue, 4 Jul 2017, Ondrej Zary wrote:

> 
> Everything works fine! No corruption, no hangs, rescan-scsi-bus works.
> 
> Tested cards:
> Canon FG2-5202 (53C400 chip, MMIO)
> DTC-3181L (DTCT-436P chip, PIO)
> HP C2502 (53C400A chip, PIO)
> 
> Tested devices:
> QUANTUM  LP240S GM240S01X 4.6
> IBM      DORS-32160       WA0A
> SONY     CD-ROM CDU-415   1.1g
> SONY     CD-ROM CDU-55S   1.0t
> 
> Tested-by: Ondrej Zary <linux@rainbow-software.org>
> 

Great! Thanks for testing all of those revisions.

-- 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web