Re: [PATCH] scsi_debug: Fix endianess in partition table

2013-02-12 Thread Martin Peschke
On Mon, 2013-02-11 at 18:34 +0100, Martin Peschke wrote: > Both start_sect and nr_sects in struct partition are __le32 and > require cpu_to_le32() on assignment. Steffen Maier has pointed me at: block/partitions/msdos.c: return (sector_t)get_unaligned_le32(&p->start_sect); Unfortunately, b

Test mail

2013-02-12 Thread Anand Kumar S - ERS, HCL Tech
::DISCLAIMER:: The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmiss

[PATCH 00/15] Support for PMC 8081/8088/8089 controllers.

2013-02-12 Thread Anand
James/Linux-scsi, The following patchset provides support for PMC 8081/88/89 series of controllers. >From 9c620d9273640b416054ba76cd267aebaf455ed2 Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Thu, 7 Feb 2013 17:03:42 +0530 Subject: [PATCH 00/15] Support for PMC 8081/8088/8089 controllers.

[PATCH 01/15] pm80xx: fix for memory region free

2013-02-12 Thread Anand
>From 56ee53f01663fa479c0624b81e36545ea5b1ab94 Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Mon, 4 Feb 2013 12:10:02 +0530 Subject: [PATCH 01/15] pm80xx: fix for memory region free All memory regions are allocated based on variables total_len and alignment but free was based on element_size.

[PATCH 02/15] pm80xx: Added vendor and device ids for SPCv/ve controllers

2013-02-12 Thread Anand
>From edeb2b4b89ff6c7ddbb73366a2b4f6a86815d8eb Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Mon, 4 Feb 2013 12:15:28 +0530 Subject: [PATCH 02/15] pm80xx: Added vendor and device ids for SPCv/SPCve controllers Updated of pci id table with device, vendor, subdevice and subvendor ids for 8081,

[PATCH 03/15] pm80xx: Added and modified structures, variables and macros for SPCv/ve

2013-02-12 Thread Anand
>From 5afe6aff983aed38a46bdc9ec26d1035d79d9bb0 Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Mon, 4 Feb 2013 13:46:35 +0530 Subject: [PATCH 03/15] pm80xx: Added and modified structures, variables and macros for SPCv/ve Added SPCv/ve related macros. Updated macros, hba info structure and other

[PATCH 04/15] pm80xx: Structure and variable name update for SPC

2013-02-12 Thread Anand
>From a08478c7c29817c887469192069dbce8463a5730 Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Mon, 4 Feb 2013 14:26:19 +0530 Subject: [PATCH 04/15] pm80xx: Structure and variable name update for SPC Update of structure and variable names for SPC hardware functionalities. Signed-off-by: Sakthiv

[PATCH 05/15] pm80xx: Multiple inbound/outbound queue

2013-02-12 Thread Anand
>From ea8e9d56a8f94fbf1963d9b56783a3f1cb743c1f Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Mon, 4 Feb 2013 16:31:43 +0530 Subject: [PATCH 05/15] pm80xx: Multiple inbound/outbound queue configuration Memory allocation and configuration of multiple inbound and outbound queues. Signed-off-by:

[PATCH 06/15] pm80xx: Updated common functions common for SPC and SPCv/ve

2013-02-12 Thread Anand
>From 3fd0f7b1b3d82fc3a55dbfad6e9708ad64f17369 Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Mon, 4 Feb 2013 17:32:34 +0530 Subject: [PATCH 06/15] pm80xx: Updated common functions common for SPC and SPCv/ve Update of function prototype for common function to SPC and SPCv/ve. Multiple queues im

[PATCH 07/15] pm80xx: MSI-X implementation for using 64 interrupts

2013-02-12 Thread Anand
>From 952973b812c65eb2a7d70ed8c333b7837fb39191 Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Mon, 4 Feb 2013 18:02:22 +0530 Subject: [PATCH 07/15] pm80xx: MSI-X implementation for using 64 interrupts Implementation of 64 interrupt handlers and tasklets to support upto 64 interrupt for the devi

[PATCH 07/15] pm80xx: MSI-X implementation for using 64 interrupts

2013-02-12 Thread Anand
>From 952973b812c65eb2a7d70ed8c333b7837fb39191 Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Mon, 4 Feb 2013 18:02:22 +0530 Subject: [PATCH 07/15] pm80xx: MSI-X implementation for using 64 interrupts Implementation of 64 interrupt handlers and tasklets to support upto 64 interrupt for the devi

[PATCH 09/15] pm80xx: SPCv/ve specific changes in common files

2013-02-12 Thread Anand
>From 14c5d89e766cab606b067d0ded2baa8836414e8a Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Tue, 5 Feb 2013 11:00:39 +0530 Subject: [PATCH 09/15] pm80xx: SPCv/ve specific changes in common files Changing common functionalities for SPCv/ve operations. Conditional checks for SPC specific operat

[PATCH 10/15] pm80xx: SPC new firmware changes for device id 0x8081 alone

2013-02-12 Thread Anand
>From 954868e338b75c829fb85e6596383b26e34b56e3 Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Tue, 5 Feb 2013 11:18:23 +0530 Subject: [PATCH 10/15] pm80xx: SPC new firmware changes for device id 0x8081 alone Additional bar shift for new SPC firmware, applicable to device id 0x8081 only. Signe

[PATCH 00/15] Support for PMC 8081/8088/8089 controllers

2013-02-12 Thread Anand
James/Linux-scsi, The following patchset provides support for PMC 8081/88/89 series of controllers. >From 9c620d9273640b416054ba76cd267aebaf455ed2 Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Thu, 7 Feb 2013 17:03:42 +0530 Subject: [PATCH 00/15] Support for PMC 8081/8088/8089 controllers.

[PATCH 11/15] pm80xx: Firmware flash memory free fix, with addition of new memory, region for it

2013-02-12 Thread Anand
>From d3f1b3ea4b638f154a7979773f6a839fa455564b Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Tue, 5 Feb 2013 11:06:51 +0530 Subject: [PATCH 11/15] pm80xx: Firmware flash memory free fix, with addition of new memory region for it Performing pci_free_consistent in tasklet had result in a core

[PATCH 12/15] pm80xx: Changed module name and debug messages update

2013-02-12 Thread Anand
>From 78eaee73dd18671795fb6781bb34dc4c5e3410ce Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Tue, 5 Feb 2013 11:48:05 +0530 Subject: [PATCH 12/15] pm80xx: Changed module name and debug messages update Changed name in driver to pm80xx. Updated debug messages. Signed-off-by: Sakthivel K Signed

[PATCH 13/15] pm80xx: WWN Modification for PM8081/88/89 controllers

2013-02-12 Thread Anand
>From 43681f8bc5a857318ead1a9173d6b796f238738c Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Tue, 5 Feb 2013 12:07:19 +0530 Subject: [PATCH 13/15] pm80xx: WWN Modification for PM8081/88/89 controllers Individual WWN read operations based on controller. PM8081 - Read WWN from Flash VPD. PM8088/

[PATCH 14/15] pm80xx: NCQ error handling changes

2013-02-12 Thread Anand
>From 97d4edce607941e931b77d1fed12096294ff6c8e Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Wed, 6 Feb 2013 17:27:22 +0530 Subject: [PATCH 14/15] pm80xx: NCQ error handling changes Handled NCQ errors in the low level driver as the FW is not providing the faulty tag for NCQ errors for libsas t

[PATCH 15/15] pm80xx: thermal, sas controller config and error handling update

2013-02-12 Thread Anand
>From 9c620d9273640b416054ba76cd267aebaf455ed2 Mon Sep 17 00:00:00 2001 From: Sakthivel K Date: Wed, 6 Feb 2013 17:39:43 +0530 Subject: [PATCH 15/15] pm80xx: thermal, sas controller config and error handling update Modified thermal configuration to happen after interrupt registration Added SAS c

[PATCH v3 1/5] virtio-scsi: redo allocation of target data

2013-02-12 Thread Paolo Bonzini
virtio_scsi_target_state is now empty, but we will find new uses for it in the next few patches. However, dropping the sglist lets us turn the array-of-pointers into a simple array, which simplifies the allocation. However, we do not leave the virtio_scsi_target_state structs in the flexible arra

[PATCH v3 2/5] virtio-scsi: pass struct virtio_scsi to virtqueue completion function

2013-02-12 Thread Paolo Bonzini
This will be needed soon in order to retrieve the per-target struct. Cc: linux-scsi@vger.kernel.org Signed-off-by: Paolo Bonzini --- drivers/scsi/virtio_scsi.c | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virti

[PATCH v3 4/5] virtio-scsi: introduce multiqueue support

2013-02-12 Thread Paolo Bonzini
This patch adds queue steering to virtio-scsi. When a target is sent multiple requests, we always drive them to the same queue so that FIFO processing order is kept. However, if a target was idle, we can choose a queue arbitrarily. In this case the queue is chosen according to the current VCPU,

[PATCH v3 3/5] virtio-scsi: push vq lock/unlock into virtscsi_vq_done

2013-02-12 Thread Paolo Bonzini
Avoid duplicated code in all of the callers. Cc: linux-scsi@vger.kernel.org Signed-off-by: Paolo Bonzini --- drivers/scsi/virtio_scsi.c | 22 +- 1 files changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index 3dd

[PATCH v3 5/5] virtio-scsi: reset virtqueue affinity when doing cpu hotplug

2013-02-12 Thread Paolo Bonzini
From: Wanlong Gao Add hot cpu notifier to reset the request virtqueue affinity when doing cpu hotplug. Cc: linux-scsi@vger.kernel.org Signed-off-by: Wanlong Gao [ The version that doesn't get/put_online_cpus is now called __virtscsi_set_affinity - Paolo ] Signed-off-by: Paolo Bonzini --- dr

[PATCH v3 0/5] virtio-scsi multiqueue

2013-02-12 Thread Paolo Bonzini
This series implements virtio-scsi queue steering, which gives performance improvements of up to 50% (measured both with QEMU and tcm_vhost backends). The patches build on top of the new virtio APIs at http://permalink.gmane.org/gmane.linux.kernel.virtualization/18431; the new API simplifies the l

Re: [PATCH 06/23] qla2xxx: Update the FTP site references in the driver sources.

2013-02-12 Thread Chad Dupuis
On Mon, 11 Feb 2013, Xose Vazquez Perez wrote: Giridhar Malavali wrote: From: Giridhar Malavali Signed-off-by: Giridhar Malavali Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_init.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/qla2x

Re: [PATCH] scsi_debug: Fix endianess in partition table

2013-02-12 Thread Douglas Gilbert
On 13-02-12 04:03 AM, Martin Peschke wrote: On Mon, 2013-02-11 at 18:34 +0100, Martin Peschke wrote: Both start_sect and nr_sects in struct partition are __le32 and require cpu_to_le32() on assignment. Steffen Maier has pointed me at: block/partitions/msdos.c: return (sector_t)get_unali

[PATCH] qla2xxx: Update firmware link in Kconfig file.

2013-02-12 Thread Chad Dupuis
Signed-off-by: Giridhar Malavali Signed-off-by: Chad Dupuis --- drivers/scsi/qla2xxx/Kconfig |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/qla2xxx/Kconfig b/drivers/scsi/qla2xxx/Kconfig index 317a7fd..23d6072 100644 --- a/drivers/scsi/qla2xxx/Kconfig ++

Incorrect LBA Returned from scsi_get_lba() and blk_rq_pos() (Possible DIF Impact)

2013-02-12 Thread Sami Waheed
Hello, I am testing a SCSI/SAS target with a block size of 4K.I noticed that scsi_get_lba which calls blk_rq_pos is returning an incorrect LBA. The returned LBA value is 8x the actual LBA specified in the CDB: The following "end_request:" message is printed from blk-core.c: [ 812.451579] sd

Re: Incorrect LBA Returned from scsi_get_lba() and blk_rq_pos() (Possible DIF Impact)

2013-02-12 Thread Martin K. Petersen
> "Sami" == Sami Waheed writes: Sami> I am testing a SCSI/SAS target with a block size of 4K. I noticed Sami> that scsi_get_lba which calls blk_rq_pos is returning an incorrect Sami> LBA. The returned LBA value is 8x the actual LBA specified in the Sami> CDB: The block layer always uses 51

[PATCH] Use a more selective error recovery strategy based on device capabilities

2013-02-12 Thread Jeremy Linton
Ideally, Linux should not be sending task management commands to devices that don't support the given task mgmt operation. This patch uses the REPORT SUPPORTED TASK MGMT FUNCTIONS command to enable or disable error recovery paths for a given device. For older devices, we make an educated guess abo

RE: [PATCH] Use a more selective error recovery strategy based on device capabilities

2013-02-12 Thread Elliott, Robert (Server Storage)
I like that concept. Since TMFs are protocol specific, though, it is possible that the SCSI initiator port doesn't know how to send a TMF even though the device server supports that TMF. The SCSI Architecture Model (SAM-5) standard includes an annex listing a variety of SCSI Initiator Port a

Re: [PATCH] Use a more selective error recovery strategy based on device capabilities

2013-02-12 Thread Jeremy Linton
On 2/12/2013 2:57 PM, Elliott, Robert (Server Storage) wrote: > Ideally the device driver for the SCSI initiator port would report those > attributes, and higher level code would combine them with support > information from the device server (REPORT SUPPORTED TMF command, REPORT > SUPPORTED OPCODES

[PATCH 04/10] fnic: Fix SGEs limit

2013-02-12 Thread Hiral Patel
Driver allows IOs with more SGEs than max SGEs supported by Palo. The current max SGEs supported by the fnic driver is 1024. The current register settings on Palo supports a max of 256 only. Palo would return any IO with more than 256 SGEs with an error indicating INVALID_SGLS. Fnic driver shoul

[PATCH 03/10] fnic:fixing issues in device and firmware reset code

2013-02-12 Thread Hiral Patel
1. Handling overlapped firmware resets This fix serialize multiple firmware resets to avoid situation where fnic device fails to come up for link up event, when firmware resets are issued back to back. If there are overlapped firmware resets are issued, the firmware reset operat

[PATCH 05/10] fnic: fnic driver may hit BUG_ON on device reset

2013-02-12 Thread Hiral Patel
The issue was observed when LUN Reset is issued through IOCTL or sg_reset utility. fnic driver issues LUN RESET to firmware. On successful completion of device reset, driver cleans up all the pending IOs that were issued prior to device reset. These pending IOs are expected to be in ABTS_PENDING s

[PATCH 06/10] fnic: New debug flags and debug log messages

2013-02-12 Thread Hiral Patel
Added new fnic debug flags for identifying IO state at every stage of IO while debugging and also added more log messages for better debugging capability. Signed-off-by: Sesidhar Baddela Signed-off-by: Hiral Patel --- drivers/scsi/fnic/fnic.h | 31 --- drivers/scsi/fnic/fnic_io.

[PATCH 10/10] fnic: Incremented driver version

2013-02-12 Thread Hiral Patel
Incrementing driver versio after bug fixes and new feature commits. Signed-off-by: Brian Uchino Signed-off-by: Hiral Patel --- drivers/scsi/fnic/fnic.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/fnic/fnic.h b/drivers/scsi/fnic/fnic.h index acec42a..b6d1f

[PATCH 09/10] fnic: Kernel panic due to FIP mode misconfiguration

2013-02-12 Thread Hiral Patel
If switch configured in FIP and adapter configured in non-fip mode, driver panics while queueing FIP frame in non-existing fip_frame_queue. Added config check before queueing FIP frame in misconfiguration case to avoid kernel panic. Signed-off-by: Hiral Patel --- drivers/scsi/fnic/fnic_fcs.c |

[PATCH 08/10] fnic: FIP VLAN Discovery Feature Support

2013-02-12 Thread Hiral Patel
FIP VLAN discovery discovers the FCoE VLAN that will be used by all other FIP protocols as well as by the FCoE encapsulation for Fibre Channel payloads on the established virtual link. One of the goals of FC-BB-5 was to be as nonintrusive as possible on initiators and targets, and therefore FIP

[PATCH 07/10] fnic: Fnic Trace Utility

2013-02-12 Thread Hiral Patel
Fnic Trace utility is a tracing functionality built directly into fnic driver to trace events. The benefit that trace buffer brings to fnic driver is the ability to see what it happening inside the fnic driver. It also provides the capability to trace every IO event inside fnic driver to debug pani

Re: [scsi:misc 61/65] drivers/scsi/fnic/fnic_scsi.c:441:3: warning: cast from pointer to integer of different size

2013-02-12 Thread Hiral Patel (hiralpat)
Hi James, I have fixed fnic patches 3-10 for sparse and smatch errors. Thanks, Hiral On 1/29/13 10:26 PM, "kbuild test robot" wrote: >tree: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git misc >head: 52cb5cbe9b8ed89db0f8c9eeec8410fcfb0887fd >commit: 6f3b5679f2af1ef3becbf7832d2b

Re: [PATCH V6 0/4] [SCSI] ufs: Adds glue drivers to ufshcd

2013-02-12 Thread vinayak holikatti
Hi James, look like these patches are fine. Can you please integrate these patches in your tree. On Tue, Feb 5, 2013 at 10:17 PM, wrote: > From: Vinayak Holikatti > > This patch set adds following features > - Seggregate PCI specific code in ufshcd.c and corrected copyright > - Adds PCI glu