Re: [PATCH v2] scsi: NCR5380: Mark expected switch fall-through

2019-02-28 Thread Michael Schmitz
abel and retain reason for fall-through in comment as requested by Michael Schmitz. drivers/scsi/NCR5380.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index 01c23d27f290..985d1c053578 100644 --- a/drivers/scsi

Re: [PATCH v8 01/25] scsi/atari_scsi: Don't select CONFIG_NVRAM

2018-12-29 Thread Michael Schmitz
Christophe, Am 30.12.2018 um 05:55 schrieb LEROY Christophe: Michael Schmitz a écrit : Hi Finn, Am 29.12.2018 um 14:06 schrieb Finn Thain: On Fri, 28 Dec 2018, LEROY Christophe wrote: diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c index 89f5154c40b6..99e5729d910d

Re: [PATCH v8 01/25] scsi/atari_scsi: Don't select CONFIG_NVRAM

2018-12-28 Thread Michael Schmitz
Tested-by: Christian T. Steigies Acked-by: Michael Schmitz --- This patch temporarily disables CONFIG_NVRAM on Atari, to prevent build failures when bisecting the rest of this patch series. It gets enabled again with the introduction of CONFIG_HAVE_ARCH_NVRAM_OPS, once the nvram_* global functions

Re: [PATCH v8 01/25] scsi/atari_scsi: Don't select CONFIG_NVRAM

2018-12-28 Thread Michael Schmitz
Hi Finn, Am 29.12.2018 um 15:34 schrieb Finn Thain: On Sat, 29 Dec 2018, Michael Schmitz wrote: IS_BUILTIN(CONFIG_NVRAM) is probably what Christophe really meant to suggest. Or (really going out on a limb here): IS_BUILTIN(CONFIG_NVRAM) || ( IS_MODULE(CONFIG_ATARI_SCSI) && IS

Re: [PATCH v8 01/25] scsi/atari_scsi: Don't select CONFIG_NVRAM

2018-12-28 Thread Michael Schmitz
Hi Finn, Am 29.12.2018 um 14:06 schrieb Finn Thain: On Fri, 28 Dec 2018, LEROY Christophe wrote: diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c index 89f5154c40b6..99e5729d910d 100644 --- a/drivers/scsi/atari_scsi.c +++ b/drivers/scsi/atari_scsi.c @@ -755,9 +755,10 @@ static

Re: [PATCH RFC 00/15] Zero ****s, hugload of hugs <3

2018-11-30 Thread Michael Schmitz
Am 01.12.2018 um 09:12 schrieb Jens Axboe: On 11/30/18 12:56 PM, Davidlohr Bueso wrote: On Fri, 30 Nov 2018, Kees Cook wrote: On Fri, Nov 30, 2018 at 11:27 AM Jarkko Sakkinen wrote: In order to comply with the CoC, replace with a hug. I hope this is some kind of joke. How would anyon

Re: [PATCH 02/41] scsi: NCR5380: Mark expected switch fall-through

2018-11-28 Thread Michael Schmitz
Gustavo, Am 28.11.18 um 17:24 schrieb Gustavo A. R. Silva: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case, I replaced "Fall through to reject > message" > with a "fall through" annotation at

Re: DISABLE_CLUSTERING in scsi drivers

2018-11-26 Thread Michael Schmitz
Am 26.11.2018 um 20:50 schrieb Christoph Hellwig: On Thu, Nov 22, 2018 at 10:11:33AM +1300, Michael Schmitz wrote: Christoph, for Atari SCSI, commands can only be merged if the physical addresses of all buffers are contiguous (limitation of the Falcon DMA engine). Documentation/scsi

Re: DISABLE_CLUSTERING in scsi drivers

2018-11-21 Thread Michael Schmitz
Christoph, for Atari SCSI, commands can only be merged if the physical addresses of all buffers are contiguous (limitation of the Falcon DMA engine). Documentation/scsi/scsi_mid_low_api.tx does not spell out whether that is the case. Atari SCSI disables scatter/gather, so if that's sufficient to c

Re: [PATCH v2 3/6] esp_scsi: Grant disconnect privilege for untagged commands

2018-10-14 Thread Michael Schmitz
On 15/10/18 04:47, Christoph Hellwig wrote: + *p++ = IDENTIFY(lp && (tp->flags & ESP_TGT_DISCONNECT), lun); I think lp should always be non-NULL here. That indeed appears to be the case these days. So we can't rely on !lp to detect when probing the bus any longer. What else would be a

Re: [PATCH v2 1/6] zorro_esp: Limit DMA transfers to 65535 bytes

2018-10-14 Thread Michael Schmitz
ailed command and a "DMA length is zero" error. Fixes: 3109e5ae0311 Signed-off-by: Finn Thain Cc: Michael Schmitz Tested-by: Michael Schmitz Reviewed-by: Michael Schmitz --- drivers/scsi/zorro_esp.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/scs

Re: [PATCH 0/6] mac_esp, zorro_esp, esp_scsi: Various improvements

2018-10-13 Thread Michael Schmitz
+++ 4 files changed, 201 insertions(+), 412 deletions(-) For Amiga zorro-esp: Tested-by: Michael Schmitz

Re: [PATCH 6/6] esp_scsi: Optimize PIO loops

2018-10-12 Thread Michael Schmitz
Hi Finn, Am 13.10.2018 um 17:09 schrieb Finn Thain: On Sat, 13 Oct 2018, Michael Schmitz wrote: Hi Finn, Am 13.10.2018 um 13:51 schrieb Finn Thain: Avoid function calls in the inner PIO loops. On a Centris 660av this improves throughput for sequential read transfers by about 40% and

Re: [PATCH 6/6] esp_scsi: Optimize PIO loops

2018-10-12 Thread Michael Schmitz
Hi Finn, Am 13.10.2018 um 13:51 schrieb Finn Thain: Avoid function calls in the inner PIO loops. On a Centris 660av this improves throughput for sequential read transfers by about 40% and sequential write by about 10%. Unfortunately it is not possible to have method calls like esp_write8() plac

Re: [PATCH v9] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-18 Thread Michael Schmitz
Hi Martin, thank you so much! Ben - please drop the Amiga SCSI patch for Debian testing from kernel version 4.18! Cheers, Michael Am 19.04.2018 um 16:01 schrieb Martin K. Petersen: > > Michael, > >> Anything else needed for linux-scsi? > > Applied to 4.18/scsi-queue. Thanks! >

Re: [PATCH v9] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-16 Thread Michael Schmitz
Thanks guys! Anything else needed for linux-scsi? Cheers, Michael On Mon, Apr 16, 2018 at 10:34 PM, John Paul Adrian Glaubitz wrote: > On 04/16/2018 11:26 AM, Christian T. Steigies wrote: >> >> On Thu, Apr 12, 2018 at 01:53:26PM +1200, Michael Schmitz wrote: >>> &

[PATCH v9] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-11 Thread Michael Schmitz
From: Michael Schmitz New combined SCSI driver for all ESP based Zorro SCSI boards for m68k Amiga. Code largely based on board specific parts of the old drivers (blz1230.c, blz2060.c, cyberstorm.c, cyberstormII.c, fastlane.c which were removed after the 2.6 kernel series for lack of maintenance

Re: [PATCH v8] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-11 Thread Michael Schmitz
Hi Geert, On Wed, Apr 11, 2018 at 8:56 PM, Geert Uytterhoeven wrote: > Hi Michael, > > On Wed, Apr 11, 2018 at 10:36 AM, Michael Schmitz > wrote: >> From: Michael Schmitz >> >> New combined SCSI driver for all ESP based Zorro SCSI boards for >> m68k A

Re: [PATCH v7] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-11 Thread Michael Schmitz
Hi Geert, Christoph, Am 11.04.2018 um 20:30 schrieb Geert Uytterhoeven: > Hi Christoph, > > On Wed, Apr 11, 2018 at 10:11 AM, Christoph Hellwig > wrote: >> On Wed, Apr 11, 2018 at 10:03:12AM +0200, Geert Uytterhoeven wrote: That would be cool. Would that still be in time for the 4.17 merge

Re: [PATCH v7] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-11 Thread Michael Schmitz
Hi Geert, Am 11.04.2018 um 18:51 schrieb Geert Uytterhoeven: > Hi Michael, > > On Tue, Apr 10, 2018 at 11:50 PM, Michael Schmitz > wrote: >>>> Short of a complete rewrite of the Zorro driver support code to be >>>> closer to what PCI does, I don&#x

[PATCH v8] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-11 Thread Michael Schmitz
From: Michael Schmitz New combined SCSI driver for all ESP based Zorro SCSI boards for m68k Amiga. Code largely based on board specific parts of the old drivers (blz1230.c, blz2060.c, cyberstorm.c, cyberstormII.c, fastlane.c which were removed after the 2.6 kernel series for lack of maintenance

Re: [PATCH v7] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-10 Thread Michael Schmitz
Michael On Tue, Apr 10, 2018 at 8:18 PM, Geert Uytterhoeven wrote: > Hi Michael, > > On Tue, Apr 10, 2018 at 4:16 AM, Michael Schmitz wrote: >> On Mon, Apr 9, 2018 at 7:50 PM, Christoph Hellwig wrote: >>> On Sun, Apr 08, 2018 at 02:45:32PM +1200, Michael Schmitz wrote

Re: [PATCH v7] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-09 Thread Michael Schmitz
ael On Mon, Apr 9, 2018 at 7:50 PM, Christoph Hellwig wrote: > On Sun, Apr 08, 2018 at 02:45:32PM +1200, Michael Schmitz wrote: >> New combined SCSI driver for all ESP based Zorro SCSI boards for >> m68k Amiga. >> >> Code largely based on board specific pa

[PATCH v7] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-07 Thread Michael Schmitz
ute kernel virtual address esp->cmd_block in PIO transfer call if DMA address is esp->cmd_block_dma and phase is message in. PIO code taken from mac_esp.c where the reselection timeout issue was debugged and fixed first, with minor macro and function rename. Signed-off-by: Michael Schmitz Re

Re: [PATCH v6] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-07 Thread Michael Schmitz
Hi Finn, Am 07.04.2018 um 22:19 schrieb Finn Thain: > On Sat, 7 Apr 2018, Michael Schmitz wrote: > >>> >>> CHECK /home/fthain/src/kernel.org/linux/drivers/scsi/zorro_esp.c >>> drivers/scsi/zorro_esp.c:274:14: warning: cast removes address space of >>&g

Re: [PATCH v6] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-07 Thread Michael Schmitz
Hi Finn, Am 07.04.2018 um 12:59 schrieb Finn Thain: > On Sat, 7 Apr 2018, Michael Schmitz wrote: > >> Changes since v5: >> >> Christoph Hellwig: >> >> - fix comment style >> - drop initialization to zero in driver data init >> - fix alignment in

[PATCH v6] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-06 Thread Michael Schmitz
ute kernel virtual address esp->cmd_block in PIO transfer call if DMA address is esp->cmd_block_dma and phase is message in. PIO code taken from mac_esp.c where the reselection timeout issue was debugged and fixed first, with minor macro and function rename. Signed-off-by: Michael Schmitz Re

Re: [PATCH v5] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-04-04 Thread Michael Schmitz
Hi Christoph, thank you for taking the time to review and comment - my responses inline below. Am 03.04.2018 um 19:45 schrieb Christoph Hellwig: > Just a few style comments: > >> +static int zorro_esp_irq_pending(struct esp *); >> +static int cyber_esp_irq_pending(struct esp *); >> +static int f

[PATCH v5] scsi: new zorro_esp.c for Amiga Zorro NCR53C9x boards

2018-03-30 Thread Michael Schmitz
From: Michael Schmitz New combined SCSI driver for all ESP based Zorro SCSI boards for m68k Amiga. Code largely based on board specific parts of the old drivers (blz1230.c, blz2060.c, cyberstorm.c, cyberstormII.c, fastlane.c which were removed after the 2.6 kernel series for lack of maintenance

Re: [PATCH v4] m68k/amiga - Amiga Zorro NCR53C9x boards: new zorro_esp.c

2018-03-19 Thread Michael Schmitz
Hi Kars, thanks, I've fixed that typo. Cheers, Michael Am 19.03.2018 um 03:51 schrieb Kars de Jong: > Hi Michael, > > 2018-03-17 2:16 GMT+01:00 Michael Schmitz : >> From: Michael Schmitz >> >> New combined SCSI driver for all ESP based Zorro SCSI boar

[PATCH v4] m68k/amiga - Amiga Zorro NCR53C9x boards: new zorro_esp.c

2018-03-16 Thread Michael Schmitz
From: Michael Schmitz New combined SCSI driver for all ESP based Zorro SCSI boards for m68k Amiga. Code largely based on board specific parts of the old drivers (blz1230.c, blz2060.c, cyberstorm.c, cyberstormII.c, fastlane.c which were removed after the 2.6 kernel series for lack of maintenance

Re: [PATCH v3] m68k/amiga - Amiga Zorro NCR53C9x boards: new zorro_esp.c

2018-03-16 Thread Michael Schmitz
in: > On Wed, 14 Mar 2018, Michael Schmitz wrote: > >>> Please pass "addr" and "fifo" as macro parameters, too, so it's easier >>> for the reviewer to notice they are used. >> Yes, I can do that (meaning Finn would need to make the same change to

Re: [PATCH v3] m68k/amiga - Amiga Zorro NCR53C9x boards: new zorro_esp.c

2018-03-14 Thread Michael Schmitz
Hi Geert, Am 14.03.2018 um 21:30 schrieb Geert Uytterhoeven: > Hi Michael, > > On Wed, Mar 14, 2018 at 9:23 AM, Michael Schmitz wrote: >> thanks for the review - largely uncontroversial except for the volatile... > > The presence of volatile in drivers is always con

Re: [PATCH v3] m68k/amiga - Amiga Zorro NCR53C9x boards: new zorro_esp.c

2018-03-14 Thread Michael Schmitz
; -Tuomas > > From: linux-m68k-ow...@vger.kernel.org on > behalf of Michael Schmitz > Sent: 12 March 2018 09:26:40 > To: linux-scsi@vger.kernel.org > Cc: linux-m...@vger.kernel.org; da...@davemloft.net; ge...@linux-m68k.org; > fth...@telegr

Re: [PATCH v3] m68k/amiga - Amiga Zorro NCR53C9x boards: new zorro_esp.c

2018-03-14 Thread Michael Schmitz
Hi Geert, thanks for the review - largely uncontroversial except for the volatile... Am 14.03.2018 um 20:49 schrieb Geert Uytterhoeven: >> +/* Blizzard 1230 DMA interface */ >> + >> +struct blz1230_dma_registers { >> + volatile unsigned char dma_addr;/* DMA address [0x] >>

Re: [PATCH v3] m68k/amiga - Amiga Zorro NCR53C9x boards: new zorro_esp.c

2018-03-13 Thread Michael Schmitz
Hi Finn, Am 12.03.2018 um 22:04 schrieb Finn Thain: >> +if (addr == esp->command_block_dma) >> +addr = (u32) esp->command_block; > > Since you've removed the alternative branch and phys_to_virt(), I suggest > you do this at function invocation... (see below) Keeps it together w

[PATCH v3] m68k/amiga - Amiga Zorro NCR53C9x boards: new zorro_esp.c

2018-03-12 Thread Michael Schmitz
From: Michael Schmitz New combined SCSI driver for all ESP based Zorro SCSI boards for m68k Amiga. Code largely based on board specific parts of the old drivers (blz1230.c, blz2060.c, cyberstorm.c, cyberstormII.c, fastlane.c which were removed after the 2.6 kernel series for lack of maintenance

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-09 Thread Michael Schmitz
Hi Finn, Geert, > + /* We are passed DMA addresses i.e. physical addresses, but must > use > +* kernel virtual addresses here, so remap to virtual. This is > easy > +* enough for the case of residual bytes of an extended message in > +* trans

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-07 Thread Michael Schmitz
Tuomas, Am 06.03.2018 um 04:31 schrieb Tuomas Vainikka: >>> I think you are talking about esp->regs? For esp->dma_regs, the >>> ioremap is >>> conditional on ent->id, but the unmap is not. >> The details of the ioremap are conditional on the ID, but the fact >> that the ioremap happens (and hence

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-07 Thread Michael Schmitz
Hi Geert, fine, I'll rely on the base address and the z->rom.er_Type value to pick the correct config data. Cheers, Michael On Wed, Mar 7, 2018 at 9:06 PM, Geert Uytterhoeven wrote: > Hi Michael, > > On Wed, Mar 7, 2018 at 8:55 AM, Michael Schmitz wrote: >> OK, in

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-06 Thread Michael Schmitz
iable to distinguish between Zorro II and Zorro III boards? Cheers, Michael Am 06.03.2018 um 20:43 schrieb Geert Uytterhoeven: > Hi Michael, > > On Tue, Mar 6, 2018 at 2:11 AM, Michael Schmitz wrote: >> Index 1 should have been ZORRO_PROD_PHASE5_CYBERSTORM_MK_II, I've

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-06 Thread Michael Schmitz
Hi Finn, Am 07.03.2018 um 13:54 schrieb Finn Thain: > On Wed, 7 Mar 2018, Michael Schmitz wrote: > >> The major obstacle now seems to be dynamic allocation of the driver >> private data and storing a pointer to that in a way that it can be >> retrieved us

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-06 Thread Michael Schmitz
Hi Geert, On Tue, Mar 6, 2018 at 8:48 PM, Geert Uytterhoeven wrote: > BTW, please call the probe/remove functions zorro_esp_probe() resp. > zorro_esp_remove(). Fair enough. + if (!host) { + pr_err(PFX "No host detected; board configuration problem?\n");

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-06 Thread Michael Schmitz
onents/ncr/scsi/53CF94_96-2_Fast_SCSI_Controller_Data_Manual_Apr1993.pdf Cheers, Michael On Tue, Mar 6, 2018 at 9:37 PM, Finn Thain wrote: > On Tue, 6 Mar 2018, Michael Schmitz wrote: > >> The whole !write branch will never be executed, and I could just omit it >> entirely

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-05 Thread Michael Schmitz
Hi Finn, Am 06.03.2018 um 16:04 schrieb Finn Thain: > On Tue, 6 Mar 2018, Michael Schmitz wrote: > >>>> +static void zorro_esp_send_pio_cmd(struct esp *esp, u32 addr, u32 >>>> esp_count, >>>> +u32 dma_count, int

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-05 Thread Michael Schmitz
Hi Geert, thanks, will comment on a few points that were not already raised by Finn below. On Tue, Mar 6, 2018 at 12:29 AM, Geert Uytterhoeven wrote: >> +static struct zorro_driver_data { >> + const char *name; >> + unsigned long offset; >> + unsigned long dma_offset; >> +

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-05 Thread Michael Schmitz
erent driver_data contents? Cheers, Michael On Mon, Mar 5, 2018 at 9:02 PM, Kars de Jong wrote: > 2018-03-04 0:54 GMT+01:00 Michael Schmitz : >> +static struct zorro_device_id zorro_esp_zorro_tbl[] = { >> + { >> + .id = ZORRO_PROD_PHASE

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-04 Thread Michael Schmitz
Hi Finn, On Mon, Mar 5, 2018 at 2:01 PM, Finn Thain wrote: > On Mon, 5 Mar 2018, Michael Schmitz wrote: > >> >> +fail_unmap_dma_regs: >> >> + if (ioaddr > 0xff) >> >> + iounmap(esp->dma_regs); >> > >> > I think

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-04 Thread Michael Schmitz
Hi Finn, >> >> +#define ZORRO_ESP_GET_PRIV(esp) ((struct zorro_esp_priv *) \ >> >> + &zorro_esp_private_data[(esp->host->host_no)]) >> >> + >> > >> > How do you know that host_no won't exceed the array bounds? >> > Why not use dev_{set,get}_drvdata(esp->dev)? -- much as ma

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-04 Thread Michael Schmitz
Hi Finn, >> +/* zorro_esp.c: ESP front-end for Amiga ZORRO SCSI systems. >> + * >> + * Copyright (C) 1996 Jesper Skov (js...@cygnus.co.uk) >> + * >> + * Copyright (C) 2011,2018 Michael Schmitz (schm...@debian.org) for >> + * migration to ESP SCS

Re: [PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-04 Thread Michael Schmitz
Hi Finn, thanks for your review! Am 04.03.2018 um 15:55 schrieb Finn Thain: > On Sun, 4 Mar 2018, Michael Schmitz wrote: > >> From: Michael Schmitz >> >> New combined SCSI driver for all ESP based Zorro SCSI boards for >> m68k Amiga. >> > > Nice wor

[PATCH 2/2] m68k/amiga - Zorro ESP: new zorro_esp.c

2018-03-03 Thread Michael Schmitz
From: Michael Schmitz New combined SCSI driver for all ESP based Zorro SCSI boards for m68k Amiga. Code largely based on board specific parts of the old drivers (blz1230.c, blz2060.c, cyberstorm.c, cyberstormII.c, fastlane.c which were removed after the 2.6 kernel series for lack of maintenance

[PATCH 1/2] m68k/amiga - Zorro ESP SCSI Makefile/Kconfig support

2018-03-03 Thread Michael Schmitz
From: Michael Schmitz Add Kconfig option and Makefile entries for new Amiga Zorro ESP SCSI driver (combining old blz1230, blz2060, cyberstorm and fastlane SCSI drivers that were removed for lack of maintenance after 2.6) Signed-off-by: Michael Schmitz --- drivers/scsi/Kconfig | 16

[PATCH 0/2] Revive Amiga Zorro ESP SCSI driver

2018-03-03 Thread Michael Schmitz
At long last, revive the driver for m68k Amiga Zorro boards based on the Qlogic ESP SCSI chip, which were in-tree as separate drivers (blz1230.c, blz2060.c, cyberstorm.c, cyberstormII.c, fastlane.c) until the rewrite of the ESP core code after 2.6.x. A previous rewrite of the Zorro ESP SCSI driver

Re: [PATCH v3 0/4] g_NCR5380: PDMA fixes and cleanup

2017-06-27 Thread Michael Schmitz
Ondrej, could this be a partial write (target did not transfer the last byte)? One would suppose the chip posts a phase mismatch in that case ... Cheers, Michael Am 27.06.2017 um 18:28 schrieb Ondrej Zary: > On Monday 26 June 2017, Ondrej Zary wrote: >> On Monday 26 June 2017 09:30:33

Re: [PATCH] m68k/atari: atari_scsi.c - use m68k_realnum_memory for FastRAM test

2017-06-05 Thread Michael Schmitz
Hi Christian Am 06.06.2017 um 07:17 schrieb Christian T. Steigies: > On Mon, Jun 05, 2017 at 07:37:59PM +1200, Michael Schmitz wrote: >> m68k_num_memory is unsuitable to test for the presence of FastRAM >> on CT60 if the kernel is located in FastRAM: in arch/m68k/mm/motorola.c >

[PATCH] m68k/atari: atari_scsi.c - use m68k_realnum_memory for FastRAM test

2017-06-05 Thread Michael Schmitz
. Tested by Christian Steiges on his Falcon with kernel loaded in FastRAM - could you please reply with your Tested-by tag, Christian? Signed-off-by: Michael Schmitz --- drivers/scsi/atari_scsi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/atari_scsi.c b

Re: [PATCH] scsi/mac_esp: Replace bogus memory barrier with spinlock

2017-04-24 Thread Michael Schmitz
Martin, looks good to me, so: Reviewed-By: Michael Schmitz Am 25.04.2017 um 10:29 schrieb Martin K. Petersen: > > Finn, > >> Commit da244654c66e ("[SCSI] mac_esp: fix for quadras with two esp chips") >> added mac_scsi_esp_intr() to handle the IRQ lines from

Re: [PATCH] scsi/mac_esp: Replace bogus memory barrier with spinlock

2017-04-24 Thread Michael Schmitz
Hi Martin, I must have missed that one - where was it posted to? Cheers, Michael Am 25.04.2017 um 10:29 schrieb Martin K. Petersen: > > Finn, > >> Commit da244654c66e ("[SCSI] mac_esp: fix for quadras with two esp chips") >> added mac_scsi_esp_intr() to handle the IRQ lines from a pa

Re: [PATCH 0/6] ncr5380: Miscellaneous minor patches

2017-01-29 Thread Michael Schmitz
been tested as well. No change in the weird behaviour of my SCSI-SATA adapter, but perhaps that wasn't unexpected. Targets: Disks Seagate ST34520W and IBM DORS-32160W, CD-ROM Plextor PX-40TS. Tested-by: Michael Schmitz > > > Finn Thain (6): > ncr5380: Shorten host info str

Re: [PATCH 0/6] ncr5380: Miscellaneous minor patches

2017-01-25 Thread Michael Schmitz
Martin, Finn, I'll get to that on the weekend - Auckland Anniversary Day coming up so plenty of time. Cheers, Michael Am 26.01.2017 um 12:25 schrieb Martin K. Petersen: >> "Finn" == Finn Thain writes: > > Finn> Michael, Ondrej, can I get you to review/test please? > > Pretty plea

Re: esp_scsi QTAG in FAS216

2016-11-01 Thread Michael Schmitz
Hi Finn, Am 01.11.2016 um 12:47 schrieb Finn Thain: > > On Tue, 1 Nov 2016, Michael Schmitz wrote: > >>> I had tried to set that bit in zorro_esp_slave_configure but had not >>> done a proper job of it - I'd only set esp->config3 and forgot to set >&

Re: esp_scsi QTAG in FAS216

2016-10-31 Thread Michael Schmitz
Hi Finn, > I had tried to set that bit in zorro_esp_slave_configure but had not > done a proper job of it - I'd only set esp->config3 and forgot to set > tp->esp_config3. Time to retest this ... I don't think it's quite that easy - the ESP_CONFIG3_TENB bit needs to be set for all targets if at le

Re: esp_scsi QTAG in FAS216

2016-10-31 Thread Michael Schmitz
Hi Finn, Am 30.10.2016 um 15:33 schrieb Finn Thain: > > On Sat, 29 Oct 2016, I wrote: > >> >> On Sun, 13 Apr 2014, David Miller wrote: >> >>> >>> But oddly in the NCR53CX docs: >>> >>> >>> http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR53C9X.txt >>> >>> it speaks as if E

Re: [PATCH v2 00/12] Fixes, cleanup and g_NCR5380_mmio/g_NCR5380 merger

2016-10-09 Thread Michael Schmitz
t; scsi/ncr5380: Expedite register polling > scsi/ncr5380: Use correct types for DMA routines > scsi/ncr5380: Suppress unhelpful "interrupt without IRQ bit" message Tested on Atari SCSI (Falcon) - no regressions. Tested-by: Michael Schmitz -- To unsubscribe from this list: sen

Re: status of NCR5380-based ISA drivers

2016-09-12 Thread Michael Schmitz
Christoph, I test the atari_scsi front end - haven't got any ISA cards handy. Probably no ISA slots on my PC main board either ... Cheers, Michael Am 12.09.2016 um 05:12 schrieb Christoph Hellwig: > Hi all, > > you seem to the currently active NCR580 cabal. Which frontends to NCR5380

Re: [PATCH 00/22] ncr5380: Eliminate macros, reduce code duplication, fix bugs etc

2016-03-19 Thread Michael Schmitz
Finn, tested successfully on Atari Falcon, so: Tested-by: Michael Schmitz Am 14.03.2016 um 17:27 schrieb Finn Thain: > This patch series has more macro elimination and some tweaks to the > DMA hooks so that all the wrapper drivers can share the same core > DMA algorithm. This res

Re: [PATCH v4 34/78] atari_NCR5380: Use arbitration timeout

2016-01-25 Thread Michael Schmitz
Hi Geert, On Mon, Jan 25, 2016 at 9:05 PM, Geert Uytterhoeven wrote: >>> Perhaps this is an ARAnyM quirk? > >> The MR_ARBITRATE bit should remain set until the driver clears it (or the >> reset logic clears it). But it looks like aranym simply discards writes to >> the mode register, such that r

Re: [PATCH v3 00/77] More fixes, cleanup and modernization for NCR5380 drivers

2015-12-31 Thread Michael Schmitz
Hi Finn, I've tested this series thoroughly on my Atari Falcon - no regressions, runs stable and is quite responsive. No SCSI lock-ups that had plagued the old driver (before your rewrites). Please add my Tested-by: Michael Schmitz Cheers, Michael Am 22.12.15 um 14:17 schrieb

Re: [PATCH v3 66/77] ncr5380: Fix soft lockups

2015-12-22 Thread Michael Schmitz
I'd like to think that, too - probably true for the Atari TT SCSI case (can do scatter-gather, can do more than one command per LUN). Worse for the Falcon SCSI which is the only one I can test (no scatter-gather, one command per LUN, interrupt shared with IDE and IDE driver locked out while SCSI co

Re: [PATCH 10/71] atari_NCR5380: Remove RESET_BOOT, CONFIG_ATARI_SCSI_TOSHIBA_DELAY and CONFIG_ATARI_SCSI_RESET_BOOT

2015-11-18 Thread Michael Schmitz
Hi Finn, Am 19.11.2015 um 17:05 schrieb Finn Thain: > w > On Thu, 19 Nov 2015, Michael Schmitz wrote: > >> Hi Finn, >> >> Am 18.11.2015 um 21:35 schrieb Finn Thain: >> >>> The bus reset may raise an interrupt. That would be new behaviour for >>>

Re: [PATCH 10/71] atari_NCR5380: Remove RESET_BOOT, CONFIG_ATARI_SCSI_TOSHIBA_DELAY and CONFIG_ATARI_SCSI_RESET_BOOT

2015-11-18 Thread Michael Schmitz
Hi Finn, Am 18.11.2015 um 21:35 schrieb Finn Thain: > The bus reset may raise an interrupt. That would be new behaviour for > atari_scsi only when CONFIG_ATARI_SCSI_RESET_BOOT=n. The ST DMA interrupt > is not assigned to atari_scsi at this stage, so > CONFIG_ATARI_SCSI_RESET_BOOT=y may well be pr

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-18 Thread Michael Schmitz
Hi Finn, >>> >>> I have compile-tested all patches to all NCR5380 drivers (x86, ARM, >>> m68k) and regression tested mac_scsi and dmx3191d modules on suitable >>> hardware. Testing the mac_scsi and dmx3191d modules provides only >>> limited coverage. It would be good to see some testing of ISA

Re: [PATCH v4] scsi: NCR5380: harmonize jiffies conversion with msecs_to_jiffies

2015-02-05 Thread Michael Schmitz
count to the ms * HZ / 1000 form was overlooked. As no change to the original (i,e. 1997 vintage) driver behaviour is introduced, I don't think further testing is required. Acked-by: Michael Schmitz On 05/02/15 07:30, Nicholas Mc Guire wrote: > Instances of var * HZ / 1000 are rep

Re: [PATCH v2] scsi: NCR5380: use msecs_to_jiffies for conversions

2015-02-01 Thread Michael Schmitz
Hi Nicholas, >> The values for USLEEP_* are taken to be in units jiffies, according to >> comments in NCR5380.c. Replacing them by the msecs_to_jiffies conversion >> is in fact wrong. >> >> Please drop the changes to g_NCR5380.c for that reason. >> > > right the comment indicates it should be jiff

Re: [PATCH v2] scsi: NCR5380: use msecs_to_jiffies for conversions

2015-01-31 Thread Michael Schmitz
Finn, Nicholas, On Sat, 31 Jan 2015, Nicholas Mc Guire wrote: This is only an API consolidation to make things more readable. Instances of var * HZ / 1000 are replaced by msecs_to_jiffies(var). ... and some instances of "value" are replaced by "msecs_to_jiffies(value)" which seems to b

Re: [PATCH v2 22/36] atari_scsi: Fix atari_scsi deadlocks on Falcon

2014-11-07 Thread Michael Schmitz
Finn, Index: linux/drivers/scsi/atari_NCR5380.c === --- linux.orig/drivers/scsi/atari_NCR5380.c 2014-10-27 16:25:36.0 +1100 +++ linux/drivers/scsi/atari_NCR5380.c 2014-10-27 16:25:45.0 +1100 @@ -879,10 +879,10

Re: [PATCH v2 22/36] atari_scsi: Fix atari_scsi deadlocks on Falcon

2014-11-07 Thread Michael Schmitz
stdma_others_waiting( void ); int stdma_islocked( void ); -void *stdma_locked_by( void ); +int stdma_is_locked_by(irq_handler_t); void stdma_init( void ); /* End of Prototypes ******/ Acked-by: Michael Schmitz Index: linux/d

Re: [PATCH v2 00/36] Fixes, cleanups and modernization for NCR5380 drivers

2014-11-06 Thread Michael Schmitz
Hi Finn, >> Leaves the current instability - I did some work on the CT60 accelerator >> (reflashed the firmware so I can use the CTPCI board). This might have >> caused the system to become more unstable. Needs more investigation. > > I gather from the emails we've exchanged that the "current" ins

Re: [PATCH v2 00/36] Fixes, cleanups and modernization for NCR5380 drivers

2014-11-05 Thread Michael Schmitz
David, Geert, my Falcon has some variant of this clock patch installed - it may not be precisely the one described but reasonably close. It also has one of the old 030 accelerator tricks (clock doubling of the 030 if the CPU does not do bus cycles - named Skunk) fitted; the clock patch was install

Re: [PATCH v2 00/36] Fixes, cleanups and modernization for NCR5380 drivers

2014-11-04 Thread Michael Schmitz
Hi Finn, > Thanks for testing. > > "No regressions over v1" means "no regressions", right? > > > > Well, what would I compare the driver performance to? With your patches to > sort out locking races, the driver is more stable than I've ever seen it in > years. That's a definite win. Big improveme

Re: [PATCH v2 00/36] Fixes, cleanups and modernization for NCR5380 drivers

2014-11-01 Thread Michael Schmitz
sting on Sun 3, Atari ST and/or Atari TT would be nice (I don't have the hardware). Tested atari_scsi on Falcon / CT60 hardware - no regressions over v1 that I've seen. Tested-by: Michael Schmitz There are old bugs relating to exception handling and autosense in the core NCR5380 d

Re: [PATCH 23/29] atari_scsi: Convert to platform device

2014-10-26 Thread Michael Schmitz
Finn, On Mon, 20 Oct 2014, Michael Schmitz wrote: Hi Finn, not certain it is related to this exact patch - the driver crashes pretty much on the spot when selecting the first target on the bus. If it isn't that exact patch then it will probably be one of the other atari

Re: [PATCH 23/29] atari_scsi: Convert to platform device

2014-10-20 Thread Michael Schmitz
Hi Finn, >> not certain it is related to this exact patch - the driver crashes >> pretty much on the spot when selecting the first target on the bus. > > If it isn't that exact patch then it will probably be one of the other > atari_scsi patches. Most of the other relevant stuff was covered by my

Re: [PATCH 23/29] atari_scsi: Convert to platform device

2014-10-20 Thread Michael Schmitz
Hi Finn, not certain it is related to this exact patch - the driver crashes pretty much on the spot when selecting the first target on the bus. Panic log: Atari SCSI: resetting the SCSI bus... done scsi host0: Atari native SCSI, io_port 0x0, n_io_port 0, base 0x0, irq 0, can_queue 8, cmd_per_

Re: [PATCH 23/29] atari_scsi: Convert to platform device

2014-10-06 Thread Michael Schmitz
Hi Finn, Can these be handled through the platform_device's resources? I don't know. Should be possible - I've seen that used in the ISP116x HCD driver (arch-dependent post-register access delay function passed via platform data). Yes, possible, but is it desir

Re: [PATCH 23/29] atari_scsi: Convert to platform device

2014-10-04 Thread Michael Schmitz
Finn, On Fri, 3 Oct 2014, Geert Uytterhoeven wrote: + if (ATARIHW_PRESENT(TT_SCSI)) { + atari_scsi_reg_read = atari_scsi_tt_reg_read; + atari_scsi_reg_write = atari_scsi_tt_reg_write; + } else if (ATARIHW_PRESENT(ST_SCSI)) { + atari_scsi

Re: esp_scsi QTAG in FAS216

2014-05-25 Thread Michael Schmitz
Hi Geert, > [sorry for the long delay] Tell me about it :-) I haven't had a good idea how to address this problem so rather kept mum about it. > On Mon, Apr 14, 2014 at 10:51 AM, Michael Schmitz > wrote: >> Not sure my patch had ever made it into Geert's m68k-queue

Re: [PATCH] MAINTAINERS: add an entry for all the NCR5380 drivers

2014-05-06 Thread Michael Schmitz
Acked-by: Michael Schmitz On Mon, May 5, 2014 at 5:35 PM, Finn Thain wrote: > > Signed-off-by: Finn Thain > Cc: Michael Schmitz > > --- > > As requested: > http://marc.info/?l=linux-arm-kernel&m=139853302724112&w=2 > > diff --git a/MAINTAINERS b/MAINT

[PATCH v2] m68k/atari - atari_scsi: change abort/reset return codes

2014-05-02 Thread Michael Schmitz
Finn Thain for the Sun3 part and cleaning up the header files. After the header cleanup, the initio.h include (!) can be dropped from sun3_scsi.h now. Signed-off-by: Michael Schmitz Signed-off-by: Finn Thain Acked-by: Sam Creasey Cc: Geert Uytterhoeven Cc: James E.J. Bottomley Cc: linux-scsi

Re: [PATCH v2 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-04-30 Thread Michael Schmitz
Hi James, Perhaps Michael and Sam would be interested in sharing the role, for atari and sun3 NCR5380 drivers (?) If you insist ... (kidding - I"m OK with it if James thinks it's worth it) As long as you understand how it works and how to fix it, the more the merrier. It gives me more people

Re: [PATCH v2 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-04-28 Thread Michael Schmitz
Finn, On Tue, Apr 29, 2014 at 2:22 PM, Finn Thain wrote: > > On Sat, 26 Apr 2014, James Bottomley wrote: > >> OK, so this is a pretty big change to an unmaintained driver. I'll take >> it if you're willing to maintain the driver afterwards ... in which case >> I need another patch to add you to

Re: [PATCH v2 10/12] scsi/NCR5380: remove unused macro definitions

2014-04-25 Thread Michael Schmitz
Acked-by: MIchael Schmitz Remove the unused (and divergent) debugging macro definitions from the sun3_NCR5380 and atari_NCR5380 drivers. These drivers have been converted to use the common macros in NCR5380.h. Signed-off-by: Finn Thain --- drivers/scsi/atari_scsi.h | 93

Re: [PATCH v2 08/12] scsi/NCR5380: adopt dprintk()

2014-04-25 Thread Michael Schmitz
Acked-by: Michael Schmitz All NCR5380 drivers already include the NCR5380.h header. Better to adopt those macros rather than have three variations on them. Moreover, the macros in NCR5380.h are preferable because the atari_NCR5380 and sun3_NCR5380 versions are inflexible. For example, they

Re: [PATCH v2 07/12] scsi/NCR5380: adopt NCR5380_dprint() and NCR5380_dprint_phase()

2014-04-25 Thread Michael Schmitz
Acked-by: Michael Schmitz All NCR5380 drivers already include the NCR5380.h header. Better to adopt those macros rather than have three variations on them. Moreover, the macros in NCR5380.h are preferable anyway: the atari_NCR5380 and sun3_NCR5380 versions are inflexible. For example, they

Re: esp_scsi QTAG in FAS216

2014-04-14 Thread Michael Schmitz
ter. This should allow proper recognition of 3 byte reselection on all esp100a and later chips. Reported-by: Kars de Jong Reported-by: Michael Schmitz Signed-off-by: David S. Miller diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c index 55548dc..16f69e0 100644 --- a/drivers/scsi/

Re: esp_scsi QTAG in FAS216

2014-04-14 Thread Michael Schmitz
reselection on all esp100a and later chips. Reported-by: Kars de Jong Reported-by: Michael Schmitz Signed-off-by: David S. Miller diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c index 55548dc..16f69e0 100644 --- a/drivers/scsi/esp_scsi.c +++ b/drivers/scsi/esp_scsi.c @@ -2160,7

Re: esp_scsi QTAG in FAS216

2014-04-13 Thread Michael Schmitz
Hi Kars, thanks for the PDFs! > Bit 2 SCSI-2 > > Setting this bit allows the FSC to support two new features adopted in > SCSI-2: the 3-byte message exchange for Tagged-Queueing and Group 2 > commands. These features can also be set independently in the Config 3 > register. > > Tagged-Queueing >

Re: esp_scsi QTAG in FAS216

2014-04-10 Thread Michael Schmitz
Hello Kars, >> > I've never seen a formula for any ESP or FAS chip for the timeout >> > other than the one mentioned in huge comment in >> > esp_set_clock_params(), although I do see the 7668 instead of 8192 >> > factor being used in the old NCR53C9x driver. >> >> I haven't gone far enough back i

Re: esp_scsi QTAG in FAS216

2014-04-06 Thread Michael Schmitz
Hello Dave, Tuomas, >> Also, looking at the timeout formulae in the old NCR53C9x.c driver, >> the values would be different for FAS216. Why was this dropped from >> the modern esp_scsi? > > I've never seen a formula for any ESP or FAS chip for the timeout > other than the one mentioned in huge com

  1   2   >