Re: [PATCH-v2 11/12] xen-scsiback: Convert to percpu_ida tag allocation

2016-01-25 Thread Nicholas A. Bellinger
On Mon, 2016-01-25 at 16:42 +0100, Juergen Gross wrote: > On 25/01/16 09:11, Nicholas A. Bellinger wrote: > > From: Nicholas Bellinger > > > > Cc: Juergen Gross > > Cc: Hannes Reinecke > > Cc: David Vrabel > > Signed-off-by: Nicholas Bellinger > > Could you please rebase to current version?

[PATCH] ncr5380: Don't re-enter NCR5380_select() when aborting a command

2016-01-25 Thread Finn Thain
Fixes: 707d62b37fbb ("ncr5380: Fix EH during arbitration and selection") Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.c |2 +- drivers/scsi/atari_NCR5380.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: linux/drivers/scsi/NCR5380.c ===

[PATCH] ncr5380: Correctly clear command pointers and lists after bus reset

2016-01-25 Thread Finn Thain
Commands subject to exception handling have to be returned to the scsi mid-layer. Make sure that the various command pointers and command lists in the low-level driver are correctly cleansed of the affected commands. This fixes bugs that I accidentally introduced in commit 62717f537e1b ("ncr5380:

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

2016-01-25 Thread Finn Thain
On Mon, 25 Jan 2016, Geert Uytterhoeven wrote: > > In principle I think that Linux drivers should not carry workarounds > > for emulators. > > Please consider ARAnyM is the current m68k workhorse, so it would be > nice to handle this someway. AFAICT atari_scsi on aranym never did anything use

[PATCH 03/22] scsi: Fix dependencies for !HAS_IOMEM and !HAS_DMA archs

2016-01-25 Thread Richard Weinberger
Not every arch has io or DMA memory. So, unbreak the build by fixing the dependencies. Signed-off-by: Richard Weinberger --- drivers/scsi/hisi_sas/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/hisi_sas/Kconfig b/drivers/scsi/hisi_sas/Kconfig index 37a0c71..f9157f4 1006

[PATCH, RESEND 3] qla2xxx: Remove use of 'struct timeval'

2016-01-25 Thread Arnd Bergmann
From: Tina Ruchandani struct register_host_info stores a 64-bit UTC system time timestamp. This patch removes the use of 'struct timeval' to obtain that timestamp as its tv_sec value will overflow on 32-bit systems in year 2038 beyond. The patch uses ktime_get_real_seconds() which returns a 64-bi

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 v2 01/23] devicetree: bindings: hisi_sas: add v2 HW bindings

2016-01-25 Thread Rob Herring
On Tue, Jan 26, 2016 at 01:21:50AM +0800, j00310691 wrote: > From: John Garry > > Add the dt bindings for HiSi SAS controller v2 HW. > > The main difference in the controller from dt perspective > is interrupts. The v2 controller does not have dedicated > fatal and broadcast interrupts - they ar

[RESEND PATCH v2 07/23] hisi_sas: add bare v2 hw driver

2016-01-25 Thread John Garry
Just add enough to build and init the module. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/Makefile | 2 +- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 48 ++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 drivers/scsi/hisi_sas/h

[RESEND PATCH v2 10/23] hisi_sas: add init_id_frame_v2_hw()

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 40 ++ 1 file changed, 40 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index da9c375..6f05333 100644 --- a/drivers/scsi/hisi_sas/h

[RESEND PATCH v2 11/23] hisi_sas: add v2 phy init code

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 6f05333..1990d65 100644 --- a/drivers/scsi/hisi_sas/h

[RESEND PATCH v2 04/23] hisi_sas: reduce max itct entries

2016-01-25 Thread John Garry
Since v2 hw only supports 2048 itct entries, as opposed to 4096 for v1 hw, set the max itct entries to the lower of the two. It is not anticipated that any device with v1 will ever require to connect > 2048 devices. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- 1 file c

[RESEND PATCH v2 00/23] HiSilicon SAS v2 hw support

2016-01-25 Thread John Garry
This patchset introduces support for the HiSi SAS v2 hw. The major difference between v1 and v2 hw is support for SATA/STP. Known limitation: - We cannot connect a SATA disk through an expander which enables DMA setup auto-activate, as our controller does not support this feature. Directly con

[RESEND PATCH v2 18/23] hisi_sas: add v2 code to send smp command

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 71 ++ 1 file changed, 71 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index ab6ea25..2c6a753 100644 --- a/drivers/scsi/hisi_sas/h

[RESEND PATCH v2 20/23] hisi_sas: add v2 path to send ATA command

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 4 + drivers/scsi/hisi_sas/hisi_sas_main.c | 8 ++ drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 162 + 3 files changed, 174 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/driver

[RESEND PATCH v2 03/23] hisi_sas: set max commands as configurable

2016-01-25 Thread John Garry
Since v2 hardware permits different numbers of commands to v1, set this as configurable in hisi_sas_hw. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- drivers/scsi/hisi_sas/hisi_sas_main.c | 24 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 3

[RESEND PATCH v2 15/23] hisi_sas: add v2 SATA interrupt handler

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 100 + 1 file changed, 100 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 5af2069..c4a887c 100644 --- a/drivers/scsi/hisi_sas/

[RESEND PATCH v2 09/23] hisi_sas: add v2 hw init

2016-01-25 Thread John Garry
Add code to initialise the hardware. Support is also added to deal with the "am-max-transmissions" (amt) limitation in hip06 controller #1. This is how many connection requests we can send on the system bus before waiting for a response. Due to chip bus design, controller #1 is limited to 32 amt,

[RESEND PATCH v2 17/23] hisi_sas: add v2 path to send ssp frame

2016-01-25 Thread John Garry
Include code to prep ssp frame and deliver to hardware. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 185 + 1 file changed, 185 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c i

[RESEND PATCH v2 22/23] hisi_sas: add v2 tmf functions

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 481aff9..58e1956 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v2_

[RESEND PATCH v2 08/23] hisi_sas: add v2 register definitions

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 237 + 1 file changed, 237 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 0f7f2af..31e4fdc 100644 --- a/drivers/scsi/hisi_sas/

[RESEND PATCH v2 02/23] hisi_sas: relocate DEV_IS_EXPANDER

2016-01-25 Thread John Garry
Relocate DEV_IS_EXPANDER to hisi_sas.h as it will be required for v2 hw support. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 4 drivers/scsi/hisi_sas/hisi_sas_main.c | 4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/hisi_sas/hisi

[RESEND PATCH v2 12/23] hisi_sas: add v2 int init and phy up handler

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 171 + 1 file changed, 171 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 1990d65..a7b83bd 100644 --- a/drivers/scsi/hisi_sas/

[RESEND PATCH v2 01/23] devicetree: bindings: hisi_sas: add v2 HW bindings

2016-01-25 Thread John Garry
Add the dt bindings for HiSi SAS controller v2 HW. The main difference in the controller from dt perspective is interrupts. The v2 controller does not have dedicated fatal and broadcast interrupts - they are multiplexed on the channel interrupt. Each SAS v2 controller can issue upto 64 commands (

[RESEND PATCH v2 14/23] hisi_sas: add v2 channel interrupt handler

2016-01-25 Thread John Garry
This also includes broadcast handler. Unlike v1 hw, broadcast does not have its own dedicated interrupt. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 79 ++ 1 file changed, 79 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_

[RESEND PATCH v2 23/23] hisi_sas: update driver version to 1.1

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index f00b55b..9f08c0c 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/h

[RESEND PATCH v2 13/23] hisi_sas: add v2 phy down handler

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index a7b83bd..35ce7b6 100644 --- a/drivers/scsi/hisi_sas/h

[RESEND PATCH v2 16/23] hisi_sas: add v2 cq interrupt handler

2016-01-25 Thread John Garry
Also include slot_complete_v2_hw handler Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 190 + 1 file changed, 190 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index c4a887c..0

[RESEND PATCH v2 05/23] hisi_sas: add hisi_sas_err_record_v1

2016-01-25 Thread John Garry
Since the error record structure is different for v2 hw, make hisi_sas_err_record opaque and add hisi_sas_err_record_v1. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 12 +--- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 17 +++-- 2 files changed, 16 inse

[RESEND PATCH v2 21/23] hisi_sas: add v2 slot error handler

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 421 + 1 file changed, 421 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index cea0b36..481aff9 100644 --- a/drivers/scsi/hisi_sas/

[RESEND PATCH v2 06/23] hisi_sas: rename some fields in hisi_sas_itct

2016-01-25 Thread John Garry
Since hisi_sas_itct format is different between v1 and v2 hw, give more general names for some fields. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/

[RESEND PATCH v2 19/23] hisi_sas: add v2 code for itct setup and free

2016-01-25 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 92 ++ 1 file changed, 92 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 2c6a753..8b51acf 100644 --- a/drivers/scsi/hisi_sas/h

Re: [Y2038] [PATCH, RESEND 2] qla2xxx: Remove use of 'struct timeval'

2016-01-25 Thread Himanshu Madhani
Hi Arnd, On 1/22/16, 7:12 AM, "linux-scsi-ow...@vger.kernel.org on behalf of Arnd Bergmann" wrote: >On Friday 22 January 2016 15:28:32 Arnd Bergmann wrote: >> struct register_host_info stores a 64-bit UTC system time timestamp. >> This patch removes the use of 'struct timeval' to obtain that

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

2016-01-25 Thread Andreas Schwab
Geert Uytterhoeven writes: > Alternatively, we need to fix ARAnyM, or can make the creation of the > atari_scsi platform device conditional on not running under ARAnyM. Given the ncr5380 emulation in ARAnyM is just a stub, making it less a stub would be preferred. Andreas. -- Andreas Schwab,

[PATCH v3] mptlan: add checks for dma mapping errors

2016-01-25 Thread Alexey Khoroshilov
mpt_lan_sdu_send() and mpt_lan_post_receive_buckets() do not check if mapping dma memory succeed. The patch adds the checks and failure handling. v3: Fix resource deallocation (reported by Tomas Henzl). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshi

Re: [PATCH v2 00/23] HiSilicon SAS v2 hw support

2016-01-25 Thread John Garry
I'll re-send this patchset with my real name. I had my user name set to my company ID in my terminal. I did send a trail patchset to myself, but my mail client autochanged the ID to my real name so I never detected. John -- To unsubscribe from this list: send the line "unsubscribe linux-scsi

[PATCH v2 22/23] hisi_sas: add v2 tmf functions

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 481aff9..58e1956 100644 --- a/drivers/scsi/hi

[PATCH v2 12/23] hisi_sas: add v2 int init and phy up handler

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 171 + 1 file changed, 171 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 1990d65..a7b83bd 100644 --- a/dri

[PATCH v2 01/23] devicetree: bindings: hisi_sas: add v2 HW bindings

2016-01-25 Thread j00310691
From: John Garry Add the dt bindings for HiSi SAS controller v2 HW. The main difference in the controller from dt perspective is interrupts. The v2 controller does not have dedicated fatal and broadcast interrupts - they are multiplexed on the channel interrupt. Each SAS v2 controller can issue

[PATCH v2 00/23] HiSilicon SAS v2 hw support

2016-01-25 Thread j00310691
From: John Garry This patchset introduces support for the HiSi SAS v2 hw. The major difference between v1 and v2 hw is support for SATA/STP. Known limitation: - We cannot connect a SATA disk through an expander which enables DMA setup auto-activate, as our controller does not support this fe

[PATCH v2 21/23] hisi_sas: add v2 slot error handler

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 421 + 1 file changed, 421 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index cea0b36..481aff9 100644 --- a/dri

[PATCH v2 11/23] hisi_sas: add v2 phy init code

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 6f05333..1990d65 100644 --- a/driv

[PATCH v2 15/23] hisi_sas: add v2 SATA interrupt handler

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 100 + 1 file changed, 100 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 5af2069..c4a887c 100644 --- a/dri

[PATCH v2 17/23] hisi_sas: add v2 path to send ssp frame

2016-01-25 Thread j00310691
From: John Garry Include code to prep ssp frame and deliver to hardware. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 185 + 1 file changed, 185 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas

[PATCH v2 16/23] hisi_sas: add v2 cq interrupt handler

2016-01-25 Thread j00310691
From: John Garry Also include slot_complete_v2_hw handler Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 190 + 1 file changed, 190 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw

[PATCH v2 09/23] hisi_sas: add v2 hw init

2016-01-25 Thread j00310691
From: John Garry Add code to initialise the hardware. Support is also added to deal with the "am-max-transmissions" (amt) limitation in hip06 controller #1. This is how many connection requests we can send on the system bus before waiting for a response. Due to chip bus design, controller #1 is

[PATCH v2 23/23] hisi_sas: update driver version to 1.1

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index f00b55b..9f08c0c 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/driv

[PATCH v2 20/23] hisi_sas: add v2 path to send ATA command

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 4 + drivers/scsi/hisi_sas/hisi_sas_main.c | 8 ++ drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 162 + 3 files changed, 174 insertions(+) diff --git a/drivers/scsi/hisi_sas/

[PATCH v2 08/23] hisi_sas: add v2 register definitions

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 237 + 1 file changed, 237 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 0f7f2af..31e4fdc 100644 --- a/dri

[PATCH v2 10/23] hisi_sas: add init_id_frame_v2_hw()

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 40 ++ 1 file changed, 40 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index da9c375..6f05333 100644 --- a/driv

[PATCH v2 14/23] hisi_sas: add v2 channel interrupt handler

2016-01-25 Thread j00310691
From: John Garry This also includes broadcast handler. Unlike v1 hw, broadcast does not have its own dedicated interrupt. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 79 ++ 1 file changed, 79 insertions(+) diff --git a/drivers/scsi/hi

[PATCH v2 13/23] hisi_sas: add v2 phy down handler

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index a7b83bd..35ce7b6 100644 --- a/driv

[PATCH v2 02/23] hisi_sas: relocate DEV_IS_EXPANDER

2016-01-25 Thread j00310691
From: John Garry Relocate DEV_IS_EXPANDER to hisi_sas.h as it will be required for v2 hw support. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 4 drivers/scsi/hisi_sas/hisi_sas_main.c | 4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH v2 19/23] hisi_sas: add v2 code for itct setup and free

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 92 ++ 1 file changed, 92 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 2c6a753..8b51acf 100644 --- a/driv

[PATCH v2 07/23] hisi_sas: add bare v2 hw driver

2016-01-25 Thread j00310691
From: John Garry Just add enough to build and init the module. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/Makefile | 2 +- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 48 ++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 driv

[PATCH v2 18/23] hisi_sas: add v2 code to send smp command

2016-01-25 Thread j00310691
From: John Garry Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 71 ++ 1 file changed, 71 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index ab6ea25..2c6a753 100644 --- a/driv

[PATCH v2 05/23] hisi_sas: add hisi_sas_err_record_v1

2016-01-25 Thread j00310691
From: John Garry Since the error record structure is different for v2 hw, make hisi_sas_err_record opaque and add hisi_sas_err_record_v1. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 12 +--- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 17 +++-- 2 fil

[PATCH v2 03/23] hisi_sas: set max commands as configurable

2016-01-25 Thread j00310691
From: John Garry Since v2 hardware permits different numbers of commands to v1, set this as configurable in hisi_sas_hw. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- drivers/scsi/hisi_sas/hisi_sas_main.c | 24 drivers/scsi/hisi_sas/his

[PATCH v2 06/23] hisi_sas: rename some fields in hisi_sas_itct

2016-01-25 Thread j00310691
From: John Garry Since hisi_sas_itct format is different between v1 and v2 hw, give more general names for some fields. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/scsi/hisi_sas/hisi_sa

Re: [PATCH v2] mptlan: add checks for dma mapping errors

2016-01-25 Thread Alexey Khoroshilov
On 25.01.2016 16:36, Tomas Henzl wrote: > On 23.1.2016 01:41, Alexey Khoroshilov wrote: >> mpt_lan_sdu_send() and mpt_lan_post_receive_buckets() do not check >> if mapping dma memory succeed. >> The patch adds the checks and failure handling. >> >> Found by Linux Driver Verification project (linuxt

[PATCH v2 04/23] hisi_sas: reduce max itct entries

2016-01-25 Thread j00310691
From: John Garry Since v2 hw only supports 2048 itct entries, as opposed to 4096 for v1 hw, set the max itct entries to the lower of the two. It is not anticipated that any device with v1 will ever require to connect > 2048 devices. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas

Re: [PATCH-v2 11/12] xen-scsiback: Convert to percpu_ida tag allocation

2016-01-25 Thread Juergen Gross
On 25/01/16 09:11, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > Cc: Juergen Gross > Cc: Hannes Reinecke > Cc: David Vrabel > Signed-off-by: Nicholas Bellinger Could you please rebase to current version? The patch won't apply. Juergen -- To unsubscribe from this list: send th

Re: [PATCH v2] mptlan: add checks for dma mapping errors

2016-01-25 Thread Tomas Henzl
On 23.1.2016 01:41, Alexey Khoroshilov wrote: > mpt_lan_sdu_send() and mpt_lan_post_receive_buckets() do not check > if mapping dma memory succeed. > The patch adds the checks and failure handling. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshi

Re: What partition should the MTMKPART argument specify? Was: Re: st driver doesn't seem to grok LTO partitioning

2016-01-25 Thread Emmanuel Florac
Le Sun, 24 Jan 2016 23:05:17 +0200 (EET) Kai Makisara écrivait: > Below is a test patch that implements the current behaviour with > non-negative argument (but works with LTOs etc.) and makes partition > zero size absolute value of argument (MB) if argument is negative. If > you want to test t

RE: [PATCH] drivers/scsi/emcctd: drivers/scsi/emcctd: Client driver implementation for EMC-Symmetrix GuestOS emulated Cut-Through Device

2016-01-25 Thread Singhal, Maneesh
Thanks a lot for detailed information. Appreciate it ! Regards Maneesh > -Original Message- > From: Johannes Thumshirn [mailto:jthumsh...@suse.de] > Sent: Monday, January 25, 2016 3:39 PM > To: Singhal, Maneesh > Cc: linux-scsi@vger.kernel.org; linux-ker...@vger.kernel.org; > jbottom...@o

Re: [PATCH] scsi: Allow activation of scsi-mq per-driver

2016-01-25 Thread Johannes Thumshirn
On Mon, Jan 25, 2016 at 02:05:25AM -0800, Christoph Hellwig wrote: > On Fri, Jan 22, 2016 at 02:41:28PM +0100, Johannes Thumshirn wrote: > > Allow the activation of the scsi-mq feature on a per-driver bassis as > > opposed > > to the current stack global (de)activation. > > > > This allows us to

Re: [PATCH] drivers/scsi/emcctd: drivers/scsi/emcctd: Client driver implementation for EMC-Symmetrix GuestOS emulated Cut-Through Device

2016-01-25 Thread Johannes Thumshirn
On Mon, Jan 25, 2016 at 09:30:47AM +, Singhal, Maneesh wrote: > Thanks Johannes for generously reviewing my patch. It indeed is going to > improve the thing a lot. I agree with all your comments so far, and will > submit a newer patch soon. > Since this is my first patch, I have couple of qu

Re: [PATCH] scsi: Allow activation of scsi-mq per-driver

2016-01-25 Thread Christoph Hellwig
On Fri, Jan 22, 2016 at 02:41:28PM +0100, Johannes Thumshirn wrote: > Allow the activation of the scsi-mq feature on a per-driver bassis as opposed > to the current stack global (de)activation. > > This allows us to have setups which can combine "slow" rotational media and > fast media on two diff

RE: [PATCH] drivers/scsi/emcctd: drivers/scsi/emcctd: Client driver implementation for EMC-Symmetrix GuestOS emulated Cut-Through Device

2016-01-25 Thread Singhal, Maneesh
Thanks Johannes for generously reviewing my patch. It indeed is going to improve the thing a lot. I agree with all your comments so far, and will submit a newer patch soon. Since this is my first patch, I have couple of questions regarding submitting the patch: 1. Is there a page/place where

Re: [PATCH] drivers/scsi/emcctd: drivers/scsi/emcctd: Client driver implementation for EMC-Symmetrix GuestOS emulated Cut-Through Device

2016-01-25 Thread Johannes Thumshirn
On Sat, Jan 23, 2016 at 05:51:50AM +, Singhal, Maneesh wrote: > Thanks for your time. My replies inlined... > [...] > > > + } > > > + > > > > You don't do any cleanup work at > > ctd_scsi_response_sanity_check_complete. You > > could just reutrn 0 here as well. > [MS>] Just avoidin

Re: [PATCH] drivers/scsi/emcctd: drivers/scsi/emcctd: Client driver implementation for EMC-Symmetrix GuestOS emulated Cut-Through Device

2016-01-25 Thread Johannes Thumshirn
On Sat, Jan 23, 2016 at 05:33:31AM +, Singhal, Maneesh wrote: > Hello Thumshirn. > Thanks for taking out time to review the patch. I appreciate that. Please > find my comments inlined. > [...] > > > > Wouldn't it be nice to have this in the Kconfig file? No user will ever > > look > > at t

Re: [PATCH] storvsc: use small sg_tablesize on x86

2016-01-25 Thread Olaf Hering
On Fri, Oct 02, Olaf Hering wrote: > On Thu, Oct 01, James Bottomley wrote: > > > On Thu, 2015-10-01 at 20:30 +, KY Srinivasan wrote: > > > > > +#if defined(CONFIG_X86_32) > > > Um, this is a bit architecture specific (I know Azure is x86, but > > still). Can you make the define check CONF

[PATCH-v2 08/12] sbp-target: Convert to TARGET_SCF_ACK_KREF I/O krefs

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Cc: Chris Boot Cc: Christoph Hellwig Cc: Hannes Reinecke Signed-off-by: Nicholas Bellinger --- drivers/target/sbp/sbp_target.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/target/sbp/sbp_target.c b/drive

[PATCH-v2 09/12] usb-gadget/tcm: Conversion to percpu_ida tag pre-allocation

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Cc: Sebastian Andrzej Siewior Cc: Andrzej Pietrasiewicz Signed-off-by: Nicholas Bellinger --- drivers/usb/gadget/function/f_tcm.c | 95 ++--- 1 file changed, 56 insertions(+), 39 deletions(-) diff --git a/drivers/usb/gadget/function/f_

[PATCH-v2 04/12] tcm_qla2xxx: Convert to target_alloc_session usage

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Cc: Himanshu Madhani Cc: Quinn Tran Signed-off-by: Nicholas Bellinger --- drivers/scsi/qla2xxx/qla_target.c | 8 +--- drivers/scsi/qla2xxx/qla_target.h | 2 +- drivers/scsi/qla2xxx/tcm_qla2xxx.c | 79 +++--- 3 files changed, 43 inse

[PATCH-v2 06/12] ib_srpt: Convert to target_alloc_session usage

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Cc: Vu Pham Cc: Sagi Grimberg Signed-off-by: Nicholas Bellinger --- drivers/infiniband/ulp/srpt/ib_srpt.c | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/

[PATCH-v2 11/12] xen-scsiback: Convert to percpu_ida tag allocation

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Cc: Juergen Gross Cc: Hannes Reinecke Cc: David Vrabel Signed-off-by: Nicholas Bellinger --- drivers/xen/xen-scsiback.c | 163 - 1 file changed, 87 insertions(+), 76 deletions(-) diff --git a/drivers/xen/xen-scsiback.c b/d

[PATCH-v2 12/12] xen-scsiback: Convert to TARGET_SCF_ACK_KREF I/O krefs

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Cc: Juergen Gross Cc: Hannes Reinecke Cc: David Vrabel Signed-off-by: Nicholas Bellinger --- drivers/xen/xen-scsiback.c | 53 +++--- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/drivers/xen/xen-scsiback.c b/d

[PATCH-v2 10/12] usb-gadget/tcm: Convert to TARGET_SCF_ACK_KREF I/O krefs

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch drops struct usbg_cmd->kref internal kref-erence usage, for proper TARGET_SCF_ACK_KREF conversion. Cc: Sebastian Andrzej Siewior Cc: Andrzej Pietrasiewicz Signed-off-by: Nicholas Bellinger --- drivers/usb/gadget/function/f_tcm.c | 51 --

[PATCH-v2 05/12] tcm_fc: Convert to target_alloc_session usage

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Cc: Vasu Dev Signed-off-by: Nicholas Bellinger --- drivers/target/tcm_fc/tfc_sess.c | 44 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c index

[PATCH-v2 07/12] sbp-target: Conversion to percpu_ida tag pre-allocation

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Cc: Chris Boot Cc: Christoph Hellwig Cc: Hannes Reinecke Signed-off-by: Nicholas Bellinger --- drivers/target/sbp/sbp_target.c | 38 +- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/drivers/target/sbp/sbp_target.c

[PATCH-v2 00/12] target: target_alloc_session w/ percpu_ida+ACK_KREF conversion

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Hi folks, Here is -v2 series code for target_alloc_session() helper support using existing percpu-ida tag pre-allocation, along with a new (*callback)() for allowing fabric driver code to complete ahead of transport_register_session() finishing I_T nexus setup. This inc

[PATCH-v2 01/12] target: Add target_alloc_session() helper function

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Based on HCH's original patch, this adds a full version to support percpu-ida tag pre-allocation and callback function pointer into fabric driver code to complete session setup. Reported-by: Christoph Hellwig Cc: Sagi Grimberg Cc: Christoph Hellwig Cc: Hannes Reinecke

[PATCH-v2 03/12] vhost/scsi: Convert to target_alloc_session usage

2016-01-25 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Acked-by: Michael S. Tsirkin Signed-off-by: Nicholas Bellinger --- drivers/vhost/scsi.c | 99 ++-- 1 file changed, 41 insertions(+), 58 deletions(-) diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index 29cfc57.

[PATCH-v2 02/12] target: Convert demo-mode only drivers to target_alloc_session

2016-01-25 Thread Nicholas A. Bellinger
From: Christoph Hellwig Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Chris Boot Cc: Sebastian Andrzej Siewior Cc: Andrzej Pietrasiewicz Cc: Juergen Gross Signed-off-by: Nicholas Bellinger --- drivers/target/loopback/tcm_loop.c | 35 + drivers/target/sbp/sbp_targe

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

2016-01-25 Thread Geert Uytterhoeven
Hi Finn, On Mon, Jan 25, 2016 at 3:45 AM, Finn Thain wrote: > On Sun, 24 Jan 2016, Geert Uytterhoeven wrote: >> On Sun, Jan 3, 2016 at 6:05 AM, Finn Thain >> wrote: >> > Allow target selection to fail with a timeout instead of waiting in >> > infinite loops. This gets rid of the unused NCR_TIME