Re: [PATCH V3 3/4] scsi: storvsc: Refactor the code in storvsc_channel_init()

2015-12-18 Thread Hannes Reinecke
On 12/13/2015 09:28 PM, K. Y. Srinivasan wrote: The function storvsc_channel_init() repeatedly interacts with the host to extract various channel properties. Refactor this code to eliminate code repetition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li

Re: [PATCH 08/15] be2iscsi: Fix VLAN support for IPv6 network

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:54 PM, Jitendra Bhivare wrote: From: Jitendra Configuring VLAN parameters through IPv6 interface was not supported in driver. Signed-off-by: Jitendra --- drivers/scsi/be2iscsi/be_iscsi.c |4 1 files

Re: [PATCH 12/15] be2iscsi: Fix IOPOLL implementation

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:55 PM, Jitendra Bhivare wrote: From: Jitendra OS not responding when running 2 port traffic on 72 CPUs system. be2iscsi IRQs gets affined to CPU0 when irqbalancer is disabled. be_iopoll processing completions in BLOCK_IOPOLL_SOFTIRQ hogged

Re: [PATCH 14/15] be2iscsi: Fix WRB leak in login/logout path

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:55 PM, Jitendra Bhivare wrote: From: Jitendra Login/Logout loop was hanging after few hours. /var/log/message showed that alloc_wrb_handle() function was not able to allocate any new WRB. Sep 11 11:25:22 Jhelum10 kernel: connection32513:0:

Re: [PATCH 09/15] be2iscsi: Fix to handle misconfigured optics events

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:55 PM, Jitendra Bhivare wrote: From: Jitendra Log messages for misconfigured transceivers reported by FW. Register async events that driver handles using MCC_CREATE_EXT ioctl. Errors messages for faulted/uncertified/unqualified optics are

Re: [PATCH V3 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-18 Thread Hannes Reinecke
On 12/13/2015 09:28 PM, K. Y. Srinivasan wrote: On the interrupt path, we repeatedly establish the pointer to the storvsc_device. Fix this. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Reviewed-by: Johannes Thumshirn

Re: [PATCH V3 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-18 Thread Hannes Reinecke
On 12/13/2015 09:28 PM, K. Y. Srinivasan wrote: For FC devices managed by this driver, atttach the appropriate transport template. This will allow us to create the appropriate sysfs files for these devices. With this we can publish the wwn for both the port and the node. Signed-off-by: K. Y.

Re: [PATCH 05/15] be2iscsi: Set mbox timeout to 30s

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:54 PM, Jitendra Bhivare wrote: From: Jitendra FW recommended timeout for all mbox command is 30s. Use msleep instead mdelay to relinquish CPU when polling for mbox completion. Signed-off-by: Jitendra ---

Re: [PATCH 04/15] be2iscsi: Fix to synchronize tag allocation using spin_lock

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:54 PM, Jitendra Bhivare wrote: From: Jitendra alloc_mcc_tag/free_mcc_tag is now done under mcc_lock spin_lock Signed-off-by: Jitendra --- drivers/scsi/be2iscsi/be_cmds.c |6 -- 1 files changed, 4

Re: [PATCH 03/15] be2iscsi: Fix to use atomic operations for tag_state

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:54 PM, Jitendra Bhivare wrote: From: Jitendra Replace lock based tag_state manipulations with atomic operations. Signed-off-by: Jitendra --- drivers/scsi/be2iscsi/be.h |2 +-

Re: [PATCH 01/15] be2iscsi: Fix soft lockup in mgmt_get_all_if_id path using bmbx

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:54 PM, Jitendra Bhivare wrote: From: Jitendra We are taking mbox_lock spinlock which disables pre-emption before we poll for mbox completion. Waiting there with spinlock held in excess of 20s will cause soft lockup. Actual fix is to change

Re: [PATCH 02/15] be2iscsi: Fix mbox synchronization replacing spinlock with mutex

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:54 PM, Jitendra Bhivare wrote: From: Jitendra This is second part of actual fix for soft lockup. All mbox cmds issued using BMBX and MCC are synchronized using mutex mbox_lock instead of spin_lock. Used mutex_lock_interruptible where ever

Re: [PATCH 11/15] be2iscsi: Fix return value for MCC completion

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:55 PM, Jitendra Bhivare wrote: From: Jitendra Change return value of completed MCC EBUSY to EINVAL. Signed-off-by: Jitendra --- drivers/scsi/be2iscsi/be_cmds.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [PATCH 15/15] be2iscsi: Update the driver version

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:55 PM, Jitendra Bhivare wrote: From: Jitendra Driver version: 11.0.0.0 Signed-off-by: Jitendra --- drivers/scsi/be2iscsi/be_main.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [PATCH 13/15] be2iscsi: Fix to process 25G link speed info from FW

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:55 PM, Jitendra Bhivare wrote: From: Jitendra Async link event provides port_speed info. Use the same to report in ISCSI_HOST_PARAM_PORT_SPEED query. Removed link status query IOCTL used to do the same. 25G and 40G are defined in kernel enum

Re: [PATCH 00/15] be2iscsi: driver update 11.0.0.0

2015-12-18 Thread Hannes Reinecke
Hi Jitendra, On 12/15/2015 04:54 PM, Jitendra Bhivare wrote: From: Jitendra This patch is generated against for-next branch. Jitendra (15): be2iscsi: Fix soft lockup in mgmt_get_all_if_id path using bmbx be2iscsi: Fix mbox synchronization replacing

Re: [PATCH v1 0/3] hpsa update

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:57 PM, Don Brace wrote: These patches are based on Linus's tree The changes are: - correct missing changes from snprintf to scnprintf in path_info_show by Rasmus Villemoes - fix reported bus for SAS transport devices - add in enclosure information Changes from

Re: [PATCH 10/15] be2iscsi: Add FW config validation

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:55 PM, Jitendra Bhivare wrote: From: Jitendra System crash in I+T card personality Fix to add validation for ULP in initiator mode, physical port number, and supported queue, icd, cid counts. Signed-off-by: Jitendra

Re: [PATCH 07/15] be2iscsi: Fix to remove shutdown entry point

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:54 PM, Jitendra Bhivare wrote: From: Jitendra Null pointer dereference in shutdown path after taking dump. Shutdown path is not needed as FW comes up clean every time during probe after issuing FUNCTION reset MBOX command. Signed-off-by:

Re: [PATCH RFC 1/2] drivers/base: add bus_device_iter_init, bus_device_iter_next, bus_device_iter_exit

2015-12-18 Thread Hannes Reinecke
On 12/08/2015 03:08 PM, Ewan D. Milne wrote: From: "Ewan D. Milne" These functions are needed to expose an iterator for SCSI usage. From a patch originally developed by David Jeffery Signed-off-by: Ewan D. Milne ---

Re: [PATCH V3 1/4] scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet

2015-12-18 Thread Hannes Reinecke
On 12/13/2015 09:28 PM, K. Y. Srinivasan wrote: The hv_fc_wwn_packet is exchanged over vmbus. Make the definition in Linux match the Window's definition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Johannes Thumshirn Reviewed-by: Long Li

Re: [PATCH 06/15] be2iscsi: Added return value check for mgmt_get_all_if_id

2015-12-18 Thread Hannes Reinecke
On 12/15/2015 04:54 PM, Jitendra Bhivare wrote: From: Jitendra Use of mutex_lock_interruptible can return -EINTR, handle and log the error. Signed-off-by: Jitendra --- drivers/scsi/be2iscsi/be_iscsi.c |7 ---

Re: [PATCH 1/1] mvsas: add SGPIO support to Marvell 94xx

2015-12-18 Thread Hannes Reinecke
On 11/13/2015 11:43 AM, Wilfried Weissmann wrote: add SGPIO support to Marvell 94xx Signed-off-by: Wilfried Weissmann --- drivers/scsi/mvsas/mv_94xx.c | 134 + drivers/scsi/mvsas/mv_94xx.h | 71 +

Re: [PATCH RFC 0/2] avoid crashing when reading /proc/scsi/scsi and simultaneously removing devices

2015-12-18 Thread Hannes Reinecke
On 12/08/2015 03:08 PM, Ewan D. Milne wrote: From: "Ewan D. Milne" The klist traversal used by the reading of /proc/scsi/scsi is not interlocked against device removal. It takes a reference on the containing object, but this does not prevent the device from being removed

Re: [PATCH RFC 2/2] scsi_proc: Change /proc/scsi/scsi to use bus device iterator

2015-12-18 Thread Hannes Reinecke
On 12/08/2015 03:08 PM, Ewan D. Milne wrote: From: "Ewan D. Milne" This prevents crashing due to accessing a removed element on the list, the iterator will now hold the correct reference. It was not sufficient to rely on the klist's reference on the containing device

Re: [PATCH 0/2] target: kthread login failure hung task + CAW use-after-free

2015-12-18 Thread Martin Svec
Hello Nick, should these patches be included in 4.1.x LTS series too?: Nicholas Bellinger (2): iscsi-target: Fix rx_login_comp hang after login failure target: Fix race for SCF_COMPARE_AND_WRITE_POST checking They are marked as #v3.10+ and #v3.12+ but I still don't see them in 4.1.15.

[PATCH 05/15] megaraid_sas: Update device Queue depth based on interface type

2015-12-18 Thread Sumit Saxena
This patch will update device Queue depth based on interface type(SAS, SATA..) for sysPDs. For Virtual disks(VDs), there will be no change in queue depth(will remain 256). To fetch interface type(SAS or SATA or FC..) of syspD, driver will send DCMD MR_DCMD_PD_GET_INFO per sysPD. Signed-off-by:

[PATCH 11/15] megaraid_sas: Make adprecovery variable atomic

2015-12-18 Thread Sumit Saxena
Make instance->adprecovery variable atomic and removes hba_lock spinlock while accessing instance->adprecovery. Signed-off-by: Sumit Saxena Signed-off-by: Kashyap Desai --- drivers/scsi/megaraid/megaraid_sas.h|2 +-

[PATCH 12/15] megaraid_sas: MFI adapter's OCR changes

2015-12-18 Thread Sumit Saxena
Optimized MFI adapters' OCR path, particularly megasas_wait_for_outstanding() function. Signed-off-by: Kashyap Desai Signed-off-by: Sumit Saxena --- drivers/scsi/megaraid/megaraid_sas_base.c | 104 +++-- 1 files

[PATCH 10/15] megaraid_sas: IO throttling support

2015-12-18 Thread Sumit Saxena
This patch will add capability in driver to tell firmware that it can throttle IOs in case Controller's Queue depth is downgraded post OFU (Online firmware upgrade). This feature will ensure firmware can be downgraded from higher queue depth to lower queue depth without needing system reboot.

[PATCH 08/15] megaraid_sas: Code optimization build_and_issue_cmd return-type

2015-12-18 Thread Sumit Saxena
build_and_issue_cmd should return SCSI_MLQUEUE_HOST_BUSY for few error case instead of returning 1. Signed-off-by: Sumit Saxena --- drivers/scsi/megaraid/megaraid_sas_base.c |9 ++--- drivers/scsi/megaraid/megaraid_sas_fusion.c |4 ++-- 2 files

[PATCH] megaraid_sas: fix kzalloc-simple.cocci warnings

2015-12-18 Thread kbuild test robot
drivers/scsi/megaraid/megaraid_sas_fusion.c:331:20-27: WARNING: kzalloc should be used for fusion -> cmd_list, instead of kmalloc/memset drivers/scsi/megaraid/megaraid_sas_fusion.c:342:24-31: WARNING: kzalloc should be used for fusion -> cmd_list [ i ], instead of kmalloc/memset Use kzalloc

Re: scsi-mq performance check

2015-12-18 Thread Hannes Reinecke
On 12/18/2015 03:58 PM, John Garry wrote: Hi, I have started to enable scsi-mq on the HiSilicon SAS driver. Are there hints/checks I should use to make sure it is configured correctly/optimally? In my initial testing I have seen some performance improvements, but none like what I have seen in

[PATCH 15/15] megaraid_sas: SPERC boot driver reorder

2015-12-18 Thread Sumit Saxena
This patch will add support for drive ordering for a particular set of device ID (0x005D, 0x005F) & subsystem vendor ID(0x1028). The driver sends down MR_DCMD_CTRL_BIOS_DATA_GET to obtain information about the boot drive and calculates the target ID & Channel ID. Instead of invoking

Re: [PATCH 07/15] megaraid_sas: Reply Descriptor Post Queue(RDPQ) support

2015-12-18 Thread kbuild test robot
Hi Sumit, [auto build test WARNING on scsi/for-next] [also build test WARNING on v4.4-rc5 next-20151218] url: https://github.com/0day-ci/linux/commits/Sumit-Saxena/megaraid_sas-Do-not-allow-PCI-access-during-OCR/20151218-213231 base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb

Re: scsi-mq performance check

2015-12-18 Thread Hannes Reinecke
On 12/18/2015 04:36 PM, John Garry wrote: On 18/12/2015 15:19, Bart Van Assche wrote: On 12/18/2015 04:08 PM, Hannes Reinecke wrote: On 12/18/2015 03:58 PM, John Garry wrote: Hi, I have started to enable scsi-mq on the HiSilicon SAS driver. Are there hints/checks I should use to make sure

[PATCH 00/15] megaraid_sas: Updates for scsi-next

2015-12-18 Thread Sumit Saxena
Sumit Saxena (15): megaraid_sas: Do not allow PCI access during OCR megaraid_sas: MFI IO timeout handling megaraid_sas: Syncing request flags macro names with firmware megaraid_sas: Task management support megaraid_sas: Update device Queue depth based on interface type megaraid_sas:

[PATCH 01/15] megaraid_sas: Do not allow PCI access during OCR

2015-12-18 Thread Sumit Saxena
This patch will do synhronization between OCR function and AEN function using "reset_mutex" lock. reset_mutex will be acquire only in first half of the AEN function which issue DCMD. Second half of the function calls SCSI API (scsi_add_device/scsi_remove_device) should be out of reset_mutex to

[PATCH 09/15] megaraid_sas: Dual Queue depth support

2015-12-18 Thread Sumit Saxena
This patch will add support for Dual Queue depth reported by firmware. Below are key points- 1. For iMR controllers, firmware will report two queue depths- 1. Controller wide Queue depth 2. LDIO Queue depth(240). Ofcourse, Controller wide Queue depth will be greater among two. Using this new

[PATCH 13/15] megaraid_sas: Introduce module parameter for SCSI command-timeout

2015-12-18 Thread Sumit Saxena
This patch will introduce module-parameter for SCSI command timeout value and fix setting of resetwaitime beyond a value. Signed-off-by: Kashyap Desai Signed-off-by: Sumit Saxena --- drivers/scsi/megaraid/megaraid_sas_base.c | 15

[PATCH 06/15] megaraid_sas: Fastpath region lock bypass

2015-12-18 Thread Sumit Saxena
Firmware will fill per LD data to tell driver that particular LD supports Region lock bypass or not. If yes, then Driver will send non FP LDIO to region lock bypass FIFO. With this change in driver, firmware will optimize certain code to improve performance. Signed-off-by: Kashyap Desai

[PATCH 07/15] megaraid_sas: Reply Descriptor Post Queue(RDPQ) support

2015-12-18 Thread Sumit Saxena
This patch will create reply queue pool for each MSI-x index and will provide array of all reply queue base address instead of single base address of legacy mode. Using this new interface Driver can support higher Queue depth allocating more reply queue as scattered DMA pool. If array mode is

[PATCH 14/15] megaraid_sas: SPERC OCR changes

2015-12-18 Thread Sumit Saxena
This patch will do some fixes in OCR path of SRIOV enabled series of Avago controllers. 1)Removing late detection HB. 2)Change in the behavior if the FW found in READY/OPERAETIONAL state. Signed-off-by: Uday Lingala Signed-off-by: Sumit Saxena

Re: scsi-mq performance check

2015-12-18 Thread Bart Van Assche
On 12/18/2015 04:08 PM, Hannes Reinecke wrote: On 12/18/2015 03:58 PM, John Garry wrote: Hi, I have started to enable scsi-mq on the HiSilicon SAS driver. Are there hints/checks I should use to make sure it is configured correctly/optimally? In my initial testing I have seen some performance

Re: scsi-mq performance check

2015-12-18 Thread John Garry
We have to lock due to how we reserve a slot in the delivery queue. We are looking to optimise this, but it's not straightforward. Perf is a good strategy, but, to be honest, I have not spent a lot of time looking at this so I'm looking for low hanging fruit initially. FYI, our hardware does

RE: [PATCH V3 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-18 Thread KY Srinivasan
> -Original Message- > From: Hannes Reinecke [mailto:h...@suse.de] > Sent: Friday, December 18, 2015 12:49 AM > To: KY Srinivasan ; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; oher...@suse.com; > jbottom...@parallels.com;

Re: [PATCH V3 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-18 Thread James Bottomley
On Fri, 2015-12-18 at 09:49 +0100, Hannes Reinecke wrote: > What I would like to see is a clear separation here: > - Disable FC disk handling if FC attributes are not configured > - Add a module parameter allowing to disable FC attributes even if > they are compiled in. Remember: this is a

RE: [PATCH V3 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-18 Thread KY Srinivasan
> -Original Message- > From: Hannes Reinecke [mailto:h...@suse.de] > Sent: Friday, December 18, 2015 12:52 AM > To: KY Srinivasan ; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; oher...@suse.com; > jbottom...@parallels.com;

Re: [PATCH V3 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-18 Thread James Bottomley
On Fri, 2015-12-18 at 16:20 +, KY Srinivasan wrote: > > > -Original Message- > > From: Hannes Reinecke [mailto:h...@suse.de] > > Sent: Friday, December 18, 2015 12:52 AM > > To: KY Srinivasan ; gre...@linuxfoundation.org; > > linux- > > ker...@vger.kernel.org;

Re: [PATCH 2/3] hpsa: change SAS transport devices to bus 0.

2015-12-18 Thread Matthew R. Ochs
> On Dec 15, 2015, at 9:25 AM, Don Brace wrote: > > On 12/09/2015 05:21 PM, Matthew R. Ochs wrote: >>> On Dec 9, 2015, at 3:18 PM, Don Brace wrote: >>> >>> sas transport places devices on bus 0 but driver was setting >>> the bus to 3. >>> >>>

Re: [PATCH 3/3] hpsa: add box and bay information for enclosure devices

2015-12-18 Thread Matthew R. Ochs
Hi Don, Did you see these comments I had from my review of this patch? -matt > On Dec 9, 2015, at 5:41 PM, Matthew R. Ochs wrote: > >> On Dec 9, 2015, at 3:18 PM, Don Brace wrote: > > No commit message? You can disregard this one as I saw you

[PATCH 04/15] megaraid_sas: Task management support

2015-12-18 Thread Sumit Saxena
This patch will add task management(TM) support for SCSI commands in megaraid_sas driver. Added TM functions are below- 1)Task abort 2)Target reset Below are few key points- 1. Currently, megaraid_sas driver performs Controller reset when any IO times out. With these TM support added in

[PATCH 03/15] megaraid_sas: Syncing request flags macro names with firmware

2015-12-18 Thread Sumit Saxena
Signed-off-by: Sumit Saxena --- drivers/scsi/megaraid/megaraid_sas_fusion.c |6 +++--- drivers/scsi/megaraid/megaraid_sas_fusion.h |3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c

[PATCH 02/15] megaraid_sas: MFI IO timeout handling

2015-12-18 Thread Sumit Saxena
This patch will do proper error handling for DCMD timeout and failed cases for fusion adapters. Below are few key design points- 1. For MFI adapters, in case of DCMD timeout(DCMD which must return SUCCESS) driver will call kill adapter. 2. What action needs to be taken in case of DCMD timeout

Re: [PATCH 15/15] megaraid_sas: SPERC boot driver reorder

2015-12-18 Thread Christoph Hellwig
On Fri, Dec 18, 2015 at 06:57:08PM +0530, Sumit Saxena wrote: > This patch will add support for drive ordering for a particular set of device > ID (0x005D, 0x005F) & subsystem vendor ID(0x1028). This really has no business in Linux. Everyone should be using uuid based disk addressing if they

scsi-mq performance check

2015-12-18 Thread John Garry
Hi, I have started to enable scsi-mq on the HiSilicon SAS driver. Are there hints/checks I should use to make sure it is configured correctly/optimally? In my initial testing I have seen some performance improvements, but none like what I have seen in presentations. Cheers, John -- To

Re: scsi-mq performance check

2015-12-18 Thread John Garry
On 18/12/2015 15:19, Bart Van Assche wrote: On 12/18/2015 04:08 PM, Hannes Reinecke wrote: On 12/18/2015 03:58 PM, John Garry wrote: Hi, I have started to enable scsi-mq on the HiSilicon SAS driver. Are there hints/checks I should use to make sure it is configured correctly/optimally? In my

RE: [PATCH V3 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-18 Thread KY Srinivasan
> -Original Message- > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > Sent: Friday, December 18, 2015 8:48 AM > To: KY Srinivasan ; Hannes Reinecke ; > gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; >

[GIT PULL] SCSI fixes for 4.4-rc5

2015-12-18 Thread James Bottomley
Three fixes this time, two in SES picked up by KASAN for various types of buffer overrun. The first is a USB array which returns page 8 whatever is asked for and causes us to overrun with incorrect data format assumptions and the second is an invalid iteration of page 10 (the additional