[PATCH 3.16.y-ckt 116/170] scsi: Fix error handling in SCSI_IOCTL_SEND_COMMAND

2014-11-11 Thread Luis Henriques
3.16.7-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara j...@suse.cz commit 84ce0f0e94ac97217398b3b69c21c7a62ebeed05 upstream. When sg_scsi_ioctl() fails to prepare request to submit in blk_rq_map_kern() we jump to a label where

Re: [PATCH 1/1] be2iscsi: add block valid bit to iBFT flag

2014-11-11 Thread Vikas Chaudhary
On 10/11/14 11:37 pm, Minh Duc Tran minhduc.t...@emulex.com wrote: Adding Vikas to verify if qla4xxx has the same issue. On 11/10/2014 12:52 AM, Minh Duc Tran wrote: From: Minh Tran minhduc.t...@emulex.com mailto:minhduc.t...@emulex.com We are starting to see problems with

Re: [PATCH v2 06/36] ncr5380: Remove more useless prototypes

2014-11-11 Thread Hannes Reinecke
On 11/09/2014 01:19 PM, Finn Thain wrote: Ping... Ok, disregard the .proc_name issue for now. Reviewed-by: Hannes Reinecke h...@suse.de Cheers, Hannes -- Dr. Hannes Reinecke zSeries Storage h...@suse.de +49 911 74053 688 SUSE LINUX GmbH,

Re: [PATCH 3/7] megaraid_sas : Do not process IOCTLs and SCSI commands during driver removal

2014-11-11 Thread Tomas Henzl
On 11/10/2014 01:21 PM, sumit.sax...@avagotech.com wrote: Do not process any SCSI and IOCTL command further(return them with appropriate return values to callers), while driver removal is in progress/PCI shutdown is invoked. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com

Re: [PATCH 1/7] megaraid_sas : Driver version upgrade

2014-11-11 Thread Tomas Henzl
On 11/10/2014 01:21 PM, sumit.sax...@avagotech.com wrote: megaraid_sas driver version upgrade Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas.h | 2 +- drivers/scsi/megaraid/megaraid_sas_base.c | 2 +- 2 files changed, 2 insertions(+), 2

Re: [PATCH 4/7] megaraid_sas : Online Firmware upgrade suppport for Extended VD feature

2014-11-11 Thread Tomas Henzl
On 11/10/2014 01:21 PM, sumit.sax...@avagotech.com wrote: This patch provides driver compatibility for updating firmware online to upgrade legacy(64 VD) firmware to Extended VD firmware and viceversa. Currently, at driver load time only, driver will check whether Firmware is legacy or 240

Re: [PATCH 03/11] scsi: remove ordered_tags scsi_device field

2014-11-11 Thread Hannes Reinecke
On 11/10/2014 04:56 PM, Christoph Hellwig wrote: Remove the ordered_tags field, we haven't been issuing ordered tags based on it since the big barrier rework in 2010. Signed-off-by: Christoph Hellwig h...@lst.de Reviewed-by: Bart Van Assche bvanass...@acm.org Reviewed-by: Martin K. Petersen

Re: [PATCH 05/11] scsi: remove abuses of scsi_populate_tag

2014-11-11 Thread Hannes Reinecke
On 11/10/2014 04:56 PM, Christoph Hellwig wrote: Unless we want to build a SPI tag message we should just check SCMD_TAGGED instead of reverse engineering a tag type through the use of scsi_populate_tag_msg. Also rename the function to spi_populate_tag_msg, make it behave like the other spi

Re: [PATCH 09/11] scsi: don't set tagging state from scsi_adjust_queue_depth

2014-11-11 Thread Hannes Reinecke
On 11/10/2014 04:56 PM, Christoph Hellwig wrote: Remove the tagged argument from scsi_adjust_queue_depth, and just let it handle the queue depth. For most drivers those two are fairly separate, given that most modern drivers don't care about the SCSI tagged status of a command at all, and

Re: [PATCH 10/11] scsi: don't force tagged_supported in drivers

2014-11-11 Thread Hannes Reinecke
On 11/10/2014 04:56 PM, Christoph Hellwig wrote: Now that we also get proper values in cmd-request-tag for untagged commands, there is no need to force tagged_supported to on in drivers that need host-wide tags. Signed-off-by: Christoph Hellwig h...@lst.de Reviewed-by: Hannes Reinecke

Re: [PATCH 11/11] ufs: remove spurious scsi_set_tag_type call

2014-11-11 Thread Hannes Reinecke
On 11/10/2014 04:56 PM, Christoph Hellwig wrote: ufs never looks at the tag type, so there is no need to set it either. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/ufs/ufshcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c

Re: [PATCH 2/6] scsi: remove scsi_next_command

2014-11-11 Thread Christoph Hellwig
On Thu, Nov 06, 2014 at 04:34:13PM +0100, Christoph Hellwig wrote: On Thu, Nov 06, 2014 at 09:21:05AM +0100, Hannes Reinecke wrote: Hmm? Isn't there a scsi_put_comand() too many? You dropped it from the 'if' branch, moved it out of the condition, but kept in in the 'else' branch ... The

Re: [PATCH 2/2] virtio_scsi: support multi hw queue of blk-mq

2014-11-11 Thread Paolo Bonzini
On 10/11/2014 17:05, Christoph Hellwig wrote: a) there is no multiath support for it, and we simply can't break existing setups that use. b) there is no support for I/O schedulers at all. This might be okay for virtio-scsi, where in general you have a host scheduler, but for

RE: [PATCH 01/10] scsi: Use real functions for logging

2014-11-11 Thread Elliott, Robert (Server Storage)
-Original Message- From: Hannes Reinecke [mailto:h...@suse.de] Sent: Tuesday, 04 November, 2014 2:07 AM ... diff --git a/drivers/scsi/scsi_logging.c b/drivers/scsi/scsi_logging.c ... @@ -0,0 +1,119 @@ +/* + * scsi_logging.c + * + * Copyright (C) 2014 SUSE Linux Products GmbH +

Re: [PATCH 2/6] scsi: remove scsi_next_command

2014-11-11 Thread Hannes Reinecke
On 11/11/2014 05:37 PM, Christoph Hellwig wrote: On Thu, Nov 06, 2014 at 04:34:13PM +0100, Christoph Hellwig wrote: On Thu, Nov 06, 2014 at 09:21:05AM +0100, Hannes Reinecke wrote: Hmm? Isn't there a scsi_put_comand() too many? You dropped it from the 'if' branch, moved it out of the

Re: [PATCH 01/10] scsi: Use real functions for logging

2014-11-11 Thread Hannes Reinecke
On 11/11/2014 06:38 PM, Elliott, Robert (Server Storage) wrote: -Original Message- From: Hannes Reinecke [mailto:h...@suse.de] Sent: Tuesday, 04 November, 2014 2:07 AM ... diff --git a/drivers/scsi/scsi_logging.c b/drivers/scsi/scsi_logging.c ... @@ -0,0 +1,119 @@ +/* + *

Re: BUG in scsi_lib.c due to a bad commit

2014-11-11 Thread Bjorn Helgaas
[+cc Guenter, linux-scsi] On Tue, Nov 11, 2014 at 4:33 PM, Barto mister.free...@laposte.net wrote: Hello everyone, I notice a bug since kernel 3.17 ( and also with 3.18 branch ), a random hang at boot on some PC configurations, I did a git bisect and I found that the culprit is :

[PATCH 3.10 098/123] scsi: Fix error handling in SCSI_IOCTL_SEND_COMMAND

2014-11-11 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara j...@suse.cz commit 84ce0f0e94ac97217398b3b69c21c7a62ebeed05 upstream. When sg_scsi_ioctl() fails to prepare request to submit in blk_rq_map_kern() we jump to a label where we just

[PATCH 3.14 168/203] scsi: Fix error handling in SCSI_IOCTL_SEND_COMMAND

2014-11-11 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara j...@suse.cz commit 84ce0f0e94ac97217398b3b69c21c7a62ebeed05 upstream. When sg_scsi_ioctl() fails to prepare request to submit in blk_rq_map_kern() we jump to a label where we just

Re: BUG in scsi_lib.c due to a bad commit

2014-11-11 Thread Guenter Roeck
On 11/11/2014 04:17 PM, Bjorn Helgaas wrote: [+cc Guenter, linux-scsi] On Tue, Nov 11, 2014 at 4:33 PM, Barto mister.free...@laposte.net wrote: Hello everyone, I notice a bug since kernel 3.17 ( and also with 3.18 branch ), a random hang at boot on some PC configurations, I did a git bisect

[PATCH 3.17 249/319] scsi: Fix error handling in SCSI_IOCTL_SEND_COMMAND

2014-11-11 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara j...@suse.cz commit 84ce0f0e94ac97217398b3b69c21c7a62ebeed05 upstream. When sg_scsi_ioctl() fails to prepare request to submit in blk_rq_map_kern() we jump to a label where we just

[V2 PATCH 1/4] scsi:stex.c Support to Pegasus series.

2014-11-11 Thread Charles Chiou
From 5fdb4203c09d6896e7b71a8f839e46e84234eeb9 Mon Sep 17 00:00:00 2001 From: Charles Chiou charles.ch...@tw.promise.com Date: Wed, 5 Nov 2014 14:18:43 +0800 Subject: [PATCH 1/4] scsi:stex.c Support to Pegasus series. Pegasus is a high performace hardware RAID solution designed to unleash the

[PATCH 2/4] scsi:stex.c Add hotplug support

2014-11-11 Thread Charles Chiou
From 070dfd671f4cefb2d54563b77b9c80a8c82f260a Mon Sep 17 00:00:00 2001 From: Charles Chiou charles.ch...@tw.promise.com Date: Wed, 5 Nov 2014 17:18:37 +0800 Subject: [PATCH 2/4] scsi:stex.c Add hotplut support 1. Add hotplug support. Pegasus support surprise remove. To this, I use

[V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-11 Thread Charles Chiou
From 5eac0f3209e0857c983c986786a68eac0d67247b Mon Sep 17 00:00:00 2001 From: Charles Chiou charles.ch...@tw.promise.com Date: Wed, 5 Nov 2014 19:29:46 +0800 Subject: [PATCH 3/4] scsi:stex.c Add reboot support 1. Add reboot support, Pegasus devices should be notified that the host is going to

[V2 PATCH 4/4] scsi:stex.c Add S3/S4 support

2014-11-11 Thread Charles Chiou
From d0bc6b814e5a16bea639bbdfad992a5593bf3420 Mon Sep 17 00:00:00 2001 From: Charles Chiou charles.ch...@tw.promise.com Date: Fri, 7 Nov 2014 10:15:18 +0800 Subject: [PATCH 4/4] scsi:stex.c Add S3/S4 support 1. Add S3/S4 support, add .suspend and .resume function in pci_driver. 2. Pegasus take

[PATCH] st: set owner in struct device_driver

2014-11-11 Thread Seymour, Shane M
After moving from from branch next-20141106 to next-2014 to pick up recent changes to the st driver I found that the following message was being logged by the kernel (for many other modules as well): Driver 'st' needs an owner There was a change in driver_register to check the struct

[PATCH v3 04/37] ncr5380: Remove unused macros

2014-11-11 Thread Finn Thain
Some macros are never evaluated (i.e. FOO, USLEEP, SCSI2 and USE_WRAPPER; and in some drivers, NCR5380_intr and NCR5380_proc_info). DRIVER_SETUP serves no purpose anymore. Remove these macro definitions. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke

[PATCH v3 03/37] ncr5380: Fix compiler warnings and __setup options

2014-11-11 Thread Finn Thain
Some __setup() options mentioned in Documentation/scsi don't work because a few lines of code went missing sometime since Linux 2.4. Fix the options and thus fix some compiler warnings for both the non-modular case, CC drivers/scsi/dtc.o drivers/scsi/dtc.c:176:20: warning: 'dtc_setup'

[PATCH v3 00/37] Fixes, cleanups and modernization for NCR5380 drivers

2014-11-11 Thread Finn Thain
This patch series has fixes for bugs and compiler warnings as well as code cleanup and modernization. It covers all ten NCR5380 drivers and the three core NCR5380 drivers so it's fairly large. These patches remove a lot of duplicated code and C pre-processor abuse. There are also patches for

[PATCH v3 02/37] ncr5380: Remove unused hostdata fields

2014-11-11 Thread Finn Thain
Remove unused fields from hostdata structs declared with the NCR5380_implementation_fields macro. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de --- drivers/scsi/dmx3191d.c |4 ++-- drivers/scsi/mac_scsi.c | 33

[PATCH v3 01/37] ncr5380: Use printk() not pr_debug()

2014-11-11 Thread Finn Thain
Having defined NDEBUG, and having set the console log level, I'd like to see some output. Don't use pr_debug(), it's annoying to have to define DEBUG as well. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de Tested-by: Michael Schmitz

[PATCH v3 06/37] ncr5380: Remove more useless prototypes

2014-11-11 Thread Finn Thain
Make use of the host template static initializer instead of assigning handlers at run-time. Move __maybe_unused qualifiers from declarations to definitions. Move the atari_scsi_bus_reset() wrapper after the definition of NCR5380_bus_reset(). All of the host template handler prototypes are now

[PATCH v3 07/37] ncr5380: Cleanup TAG_NEXT and TAG_NONE macros

2014-11-11 Thread Finn Thain
Both atari_NCR5380.c and sun3_NCR5380.c core drivers #undef TAG_NONE and then redefine it. But the original definition is unused because NCR5380.c lacks support for tagged queueing. So just define it once. The TAG_NEXT macro only appears in the arguments to NCR5380_select() calls. But that

[PATCH v3 08/37] ncr5380: Remove redundant AUTOSENSE macro

2014-11-11 Thread Finn Thain
Every NCR5380 driver sets AUTOSENSE so it need not be optional (and the mid-layer expects it). Remove this redundant macro to improve readability. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de Tested-by: Michael Schmitz schmitz...@gmail.com ---

[PATCH v3 21/37] mac_scsi: Convert to platform device

2014-11-11 Thread Finn Thain
Convert mac_scsi to platform device and eliminate scsi_register(). Platform resources for chip registers now follow the documentation. This should fix issues with the Mac IIci (and possibly other models too). Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke

[PATCH v3 23/37] atari_scsi: Convert to platform device

2014-11-11 Thread Finn Thain
Convert atari_scsi to platform device and eliminate scsi_register(). Validate __setup options later on so that module options are checked as well. Remove the comment about the scsi mid-layer disabling the host irq as it is no longer true (AFAICT). Also remove the obsolete slow interrupt stuff

[PATCH v3 14/37] ncr5380: Remove pointless compiler command line override macros

2014-11-11 Thread Finn Thain
Compile-time override of scsi host defaults is pointless for drivers that provide module parameters and __setup options for that. Too many macros make the code hard to read so remove them. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de Tested-by:

[PATCH v3 16/37] ncr5380: Drop legacy scsi.h include

2014-11-11 Thread Finn Thain
Convert Scsi_Cmnd to struct scsi_cmnd and drop the #include scsi.h. The sun3_NCR5380.c core driver already uses struct scsi_cmnd so converting the other core drivers reduces the diff which makes them easier to unify. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes

[PATCH v3 05/37] ncr5380: Remove useless prototypes

2014-11-11 Thread Finn Thain
Add missing static qualifiers and remove the now pointless prototypes. The NCR5380_* prototypes are all declared in NCR5380.h and renamed using macros. Further declarations are redundant (some are completely unused). Remove them. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by:

[PATCH v3 29/37] atari_NCR5380: Refactor Falcon locking

2014-11-11 Thread Finn Thain
Simplify falcon_release_lock_if_possible() by making callers responsible for disabling local IRQ's, which they must do anyway to correctly synchronize the ST DMA lock with core driver data structures. Move this synchronization logic to the core driver with which it is tightly coupled. Other LLD's

[PATCH v3 36/37] atari_NCR5380: Remove RESET_RUN_DONE macro

2014-11-11 Thread Finn Thain
There's no need to run the cmd-done callback for aborted commands. Remove the old EH code and the RESET_RUN_DONE macro. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de Tested-by: Michael Schmitz schmitz...@gmail.com --- drivers/scsi/atari_NCR5380.c

[PATCH v3 26/37] sun3_scsi: Move macro definitions

2014-11-11 Thread Finn Thain
The #defines in sun3_scsi.h are intended to influence subsequent #includes in sun3_scsi.c. IMHO, that's too convoluted. Move sun3_scsi.h macro definitions to sun3_scsi.c, consistent with other NCR5380 drivers. Omit the unused NCR5380_local_declare() and NCR5380_setup() macros. Signed-off-by:

[PATCH v3 12/37] ncr5380: Cleanup host info() methods

2014-11-11 Thread Finn Thain
If the host-info() method is not set, then host-name is used by default. For atari_scsi, that is exactly the same text. So remove the redundant info() method. Keep sun3_scsi.c in line with atari_scsi. Some NCR5380 drivers return an empty string from the info() method (arm/cumana_1.c arm/oak.c

[PATCH v3 11/37] ncr5380: Remove NCR5380_STATS

2014-11-11 Thread Finn Thain
The NCR5380_STATS option is only enabled by g_NCR5380 yet it adds clutter to all three core drivers. The atari_NCR5380.c and sun3_NCR5380.c core drivers have a slightly different implementation of the NCR5380_STATS option. Out of all ten NCR5380 drivers, only one of them (g_NCR5380) actually has

[PATCH v3 33/37] atari_NCR5380: Introduce FLAG_TAGGED_QUEUING

2014-11-11 Thread Finn Thain
The static variable setup_use_tagged_queuing is declared in mac_scsi.c, sun3_scsi.c and atari_scsi.c and doesn't belong in the core driver. None of the other NCR5380 drivers suffer from this layering issue which makes merging the core drivers more difficult and will likely hinder plans for future

[PATCH v3 37/37] atari_NCR5380: Fix transfered typo

2014-11-11 Thread Finn Thain
Signed-off-by: Finn Thain fth...@telegraphics.com.au --- drivers/scsi/atari_NCR5380.c |8 1 file changed, 4 insertions(+), 4 deletions(-) Index: linux/drivers/scsi/atari_NCR5380.c === ---

[PATCH v3 24/37] atari_scsi: Remove header

2014-11-11 Thread Finn Thain
The #defines in atari_scsi.h are intended to influence subsequent #includes in atari_scsi.c. IMHO, that's too convoluted. Remove atari_scsi.h by moving those macro definitions to atari_scsi.c, consistent with other NCR5380 drivers. Signed-off-by: Finn Thain fth...@telegraphics.com.au

[PATCH v3 13/37] ncr5380: Move static PDMA spin counters to host data

2014-11-11 Thread Finn Thain
Static variables from dtc.c and pas16.c should not appear in the core NCR5380.c driver. Aside from being a layering issue this worsens the divergence between the three core driver variants (atari_NCR5380.c and sun3_NCR5380.c don't support PSEUDO_DMA) and it can mean multiple hosts share the same

[PATCH v3 17/37] dmx3191d: Use NO_IRQ

2014-11-11 Thread Finn Thain
Testing shows that the Domex 3191D card never asserts its IRQ. Hence it is non-functional with Linux (worse, the EH bugs in the core driver are fatal but that's a problem for another patch). Perhaps the DT-536 chip needs special setup? I can't find documentation for it. The NetBSD driver uses

[PATCH v3 31/37] sun3_scsi: Adopt atari_NCR5380 core driver and remove sun3_NCR5380.c

2014-11-11 Thread Finn Thain
Given the preceding changes to atari_NCR5380.c, this patch should not change behaviour of the sun3_scsi and sun3_scsi_vme modules. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de --- MAINTAINERS |1 drivers/scsi/sun3_NCR5380.c

[PATCH v3 19/37] mac_scsi: Add module option to Kconfig

2014-11-11 Thread Finn Thain
Allow mac_scsi to be built as a module. Replace the old validation of __setup options with code that validates both module and __setup options. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de --- drivers/scsi/Kconfig|2

[PATCH v3 25/37] sun3_scsi: Convert to platform device

2014-11-11 Thread Finn Thain
Convert sun3_scsi to platform device and eliminate scsi_register(). Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de Acked-by: Geert Uytterhoeven ge...@linux-m68k.org --- Changes since v1: - Use NO_IRQ instead of IRQ_NONE. - Move device IRQ and

[PATCH v3 35/37] atari_NCR5380: Move static co-routine variables to host data

2014-11-11 Thread Finn Thain
Unlike NCR5380.c, the atari_NCR5380.c core driver is limited to a single instance because co-routine state is stored globally. Fix this by removing the static scsi host pointer. For the co-routine, obtain this pointer from the work_struct pointer instead. For the interrupt handler, obtain it from

[PATCH v3 27/37] ncr5380: Remove ENABLE_IRQ/DISABLE_IRQ macros

2014-11-11 Thread Finn Thain
atari_NCR5380.c enables its IRQ when it is already enabled. Sun3 doesn't use the ENABLE_IRQ/DISABLE_IRQ cruft. Remove it. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de Tested-by: Michael Schmitz schmitz...@gmail.com ---

[PATCH v3 20/37] mac_scsi: Cleanup PDMA code

2014-11-11 Thread Finn Thain
Fix whitespace, remove pointless volatile qualifiers and improve code style by use of INPUT_DATA_REG and OUTPUT_DATA_REG macros. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de --- drivers/scsi/mac_scsi.c | 122

[PATCH v3 32/37] atari_NCR5380: Merge from NCR5380.c

2014-11-11 Thread Finn Thain
The NCR5380.c core driver has moved on since the atari_NCR5380.c fork. Some of those changes are also relevant to atari_NCR5380.c so apply them there as well. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de Tested-by: Michael Schmitz

[PATCH v3 30/37] atari_NCR5380: Merge from sun3_NCR5380.c

2014-11-11 Thread Finn Thain
There is very little difference between the sun3_NCR5380.c core driver and atari_NCR5380.c. The former is a fork of the latter. Merge the sun3_NCR5380.c core driver into atari_NCR5380.c so that sun3_scsi.c can adopt the latter and the former can be deleted. Signed-off-by: Finn Thain

[PATCH v3 09/37] ncr5380: Remove duplicate comments

2014-11-11 Thread Finn Thain
The LIMIT_TRANSFERSIZE, PSEUDO_DMA, PARITY and UNSAFE options are all documented in the core drivers where they are used. The same goes for the chip databook reference. Remove the duplicate comments. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de

[PATCH v3 15/37] ncr5380: Remove *_RELEASE macros

2014-11-11 Thread Finn Thain
The *_RELEASE macros don't tell me anything. In some cases the version in the macro contradicts the version in the comments. Anyway, the Linux kernel version is sufficient information. Remove these macros to improve readability. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by:

[PATCH v3 22/37] atari_scsi: Fix atari_scsi deadlocks on Falcon

2014-11-11 Thread Finn Thain
Don't disable irqs when waiting for the ST DMA lock; its release may require an interrupt. Introduce stdma_try_lock() for use in soft irq context. atari_scsi now tells the SCSI mid-layer to defer queueing a command if the ST DMA lock is not available, as per Michael's patch:

[PATCH v3 18/37] mac_scsi: Remove header

2014-11-11 Thread Finn Thain
The #defines in mac_scsi.h are intended to influence subsequent #includes in mac_scsi.c. IMHO, that's too convoluted. Remove mac_scsi.h by moving those macro definitions to mac_scsi.c, consistent with other NCR5380 drivers. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes

[PATCH v3 28/37] atari_NCR5380: Refactor Falcon special cases

2014-11-11 Thread Finn Thain
Make the atari_NCR5380.c core driver usable by sun3_scsi, mac_scsi and others by moving some of the Falcon-specific code out of the core driver: !IS_A_TT, atari_read_overruns and falcon_dont_release. Replace these with hostdata variables and flags. FLAG_CHECK_LAST_BYTE_SENT is unused in

[PATCH v3 10/37] ncr5380: Fix SCSI_IRQ_NONE bugs

2014-11-11 Thread Finn Thain
Oak scsi doesn't use any IRQ, but it sets irq = IRQ_NONE rather than SCSI_IRQ_NONE. Problem is, the core NCR5380 driver expects SCSI_IRQ_NONE if it is to issue IDENTIFY commands that prevent target disconnection. And, as Geert points out, IRQ_NONE is part of enum irqreturn. Other drivers, when

[PATCH v3 34/37] atari_NCR5380: Move static TagAlloc array to host data

2014-11-11 Thread Finn Thain
The atari_NCR5380.c core driver keeps some per-host data in a static variable which limits the driver to a single instance. Fix this by moving TagAlloc to the hostdata struct. Signed-off-by: Finn Thain fth...@telegraphics.com.au Reviewed-by: Hannes Reinecke h...@suse.de Tested-by: Michael Schmitz