Re: [PATCH] libfc: unsafe refcounting in fc_rport_work()

2016-04-20 Thread Johannes Thumshirn
it > to the workqueue, thereby ensuring that the workqueue item > will always be valid. > > Signed-off-by: Hannes Reinecke Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 7

Re: alloc failure in qla1280 probe -- need to decrease can_queue?

2016-04-20 Thread Johannes Thumshirn
msg136998.html > which was fixed by 55ff8cfbc4e1 ("USB: uas: Reduce can_queue to MAX_CMNDS"). > Does a similar fix need to be applied here? > > Thanks, > Laura Can you (or better the reporter) try below? Unfortunately I don't have a qla1280 setup here, so I couldn't

Re: [PATCH] libfc: unsafe refcounting in fc_rport_work()

2016-04-21 Thread Johannes Thumshirn
ent. It's even possible that these are all totally unrelated issues, again, I'm not certain at all. Byte, Johannes -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 904

[PATCH] qla1280: Reduce can_queue to 32

2016-04-22 Thread Johannes Thumshirn
+0x12/0x71 [4.804371] ---[ end trace 0ea3b625f86705f7 ]--- [4.804581] qla1280: probe of :11:04.0 failed with error -12 In qla1280_set_defaults() the maximum queue depth is set to 32 so adopt the scsi_host_template to it as well. Signed-off-by: Johannes Thumshirn Cc: Laura Abbott Cc: Michae

Re: [PATCH] qla1280: Reduce can_queue to 32

2016-04-22 Thread Johannes Thumshirn
is my analysis, feel free to correct my assumptions. > > Reviewed-by Laurence Oberman > > Laurence Oberman > Principal Software Maintenance Engineer > Red Hat Global Support Services > > - Original Message - > From: "Johannes Thumshirn" > To: "

[PATCH v2] qla1280: Reduce can_queue to 32

2016-04-22 Thread Johannes Thumshirn
: probe of :11:04.0 failed with error -12 In qla1280_set_defaults() the maximum queue depth is set to 32 so adopt the scsi_host_template to it as well. Signed-off-by: Johannes Thumshirn Fixes: 64d513ac31b - "scsi: use host wide tags by default" Cc: Laura Abbott Cc: M

[PATCH v3] qla1280: Reduce can_queue to 512

2016-04-25 Thread Johannes Thumshirn
: probe of :11:04.0 failed with error -12 Reduce can_queue to 512 to solve the allocation error. Signed-off-by: Johannes Thumshirn Fixes: 64d513ac31b - "scsi: use host wide tags by default" Cc: Laura Abbott Cc: Michael Reed Cc: sta...@vger.kernel.org Reviewed-by: Laurence Oberma

[PATCH v4] qla1280: Reduce can_queue to 512

2016-04-25 Thread Johannes Thumshirn
: probe of :11:04.0 failed with error -12 Reduce can_queue to 512 to solve the allocation error. Signed-off-by: Johannes Thumshirn Cc: Laura Abbott Cc: Michael Reed Cc: sta...@vger.kernel.org Reviewed-by: Laurence Oberman --- Changes to v3: * Use MAX_OUTSTANDING_COMMANDS insted of

[PATCH v5] qla1280: Don't allocate 512kb of host tags

2016-04-27 Thread Johannes Thumshirn
tags by default". Reduce can_queue to MAX_OUTSTANDING_COMMANDS (512) to solve the allocation error. Signed-off-by: Johannes Thumshirn Fixes: 64d513ac31b - "scsi: use host wide tags by default" Cc: sta...@vger.kernel.org # v4.4 Cc: Laura Abbott Cc: Michael Reed Reviewed-by: Laurence Ob

Re: [PATCH 03/10] aacraid: Start adapter after updating number of MSIX vectors

2016-04-27 Thread Johannes Thumshirn
a Aditya Renukunta > Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton H

Re: [PATCH 02/10] aacraid: Fix incorrectly named MACRO

2016-04-27 Thread Johannes Thumshirn
On Mon, Apr 25, 2016 at 11:31:03PM -0700, Raghava Aditya Renukunta wrote: > Suggested-by: Seymour, Shane M > Signed-off-by: Raghava Aditya Renukunta > Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh..

Re: [PATCH 05/10] aacraid: Disable MSI mode for series 6, 7, 8 cards

2016-04-27 Thread Johannes Thumshirn
On Mon, Apr 25, 2016 at 11:31:43PM -0700, Raghava Aditya Renukunta wrote: > As the firmware for series 6, 7, 8 cards does not support msi, remove it > in the driver > > Signed-off-by: Raghava Aditya Renukunta > Reviewed-by: Johannes Thumshirn -- Joh

Re: [PATCH 07/10] aacraid: Log firmware AIF messages

2016-04-27 Thread Johannes Thumshirn
the user. > > Signed-off-by: Raghava Aditya Renukunta > Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörf

Re: [PATCH 08/10] aacraid: Remove code to needlessly complete fib

2016-04-27 Thread Johannes Thumshirn
ot;)); > > -- > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Johannes Thumshirn

Re: [PATCH 09/10] aacraid: Fix for KDUMP driver hang

2016-04-27 Thread Johannes Thumshirn
nfo(&dev->pdev->dev, "Changed firmware to INTX mode"); > + } > + > if ((!aac_adapter_sync_cmd(dev, GET_ADAPTER_PROPERTIES, > 0, 0, 0, 0, 0, 0, > status+0, status+1, status+2, status+3, NULL)) && > > -- > T

Re: [PATCH 10/10] aacraid: Update driver version

2016-04-27 Thread Johannes Thumshirn
On Mon, Apr 25, 2016 at 11:32:44PM -0700, Raghava Aditya Renukunta wrote: > Signed-off-by: Raghava Aditya Renukunta > Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 740

Re: [PATCH 04/10] aacraid: Relinquish CPU during timeout wait

2016-04-27 Thread Johannes Thumshirn
quot; (which is > responsible for completing the command from being timed out) from > starting because it could not get the CPU. > > Fixed by replacing "cpu_relax()" call with "schedule()" > Cc: sta...@vger.kernel.org > > Signed-off-by: R

Re: [PATCH 06/10] aacraid: Fix for aac_command_thread hang

2016-04-27 Thread Johannes Thumshirn
Fixed by: Adding another kthread_should_stop() before schedule_timeout() > Cc: sta...@vger.kernel.org > > Signed-off-by: Raghava Aditya Renukunta > Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de

Re: [PATCH 08/10] aacraid: Remove code to needlessly complete fib

2016-04-28 Thread Johannes Thumshirn
hat was why > I used info, > It should not impact the flow of the driver. OK, I'm fine with the explanation Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE

Re: [PATCH 09/10] aacraid: Fix for KDUMP driver hang

2016-04-28 Thread Johannes Thumshirn
On Wed, Apr 27, 2016 at 04:49:50PM +, Raghava Aditya Renukunta wrote: > Hello Johannes, > > > -Original Message- > > From: Johannes Thumshirn [mailto:jthmsh...@suse.de] > > Sent: Wednesday, April 27, 2016 2:30 AM > > To: Raghava Aditya Renukunta > >

Re: [PATCH 1/7] hpsa: correct initialization order issue

2016-04-28 Thread Johannes Thumshirn
cared" messages and the driver to hang. > > This patch enables interrupts before the call to scsi_scan_host. > > Reported-by: Piotr Karbowski > Reviewed-by: Scott Teel > Reviewed-by: Kevin Barnett > Signed-off-by: Don Brace Reviewed-b

Re: [PATCH 2/7] hpsa: add sas_address to sysfs device attibute

2016-04-28 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fing

Re: [PATCH 3/7] hpsa: add timeouts for driver initiated commands

2016-04-28 Thread Johannes Thumshirn
On Wed, Apr 27, 2016 at 05:13:51PM -0500, Don Brace wrote: > faulty drives can cause the driver to hang during a > scan operation. > > Reviewed-by: Scott Teel > Reviewed-by: Kevin Barnett > Signed-off-by: Don Brace Reviewed-by: Johannes Thumshirn --

Re: [PATCH 4/7] hpsa: correct ioaccel state change operation

2016-04-28 Thread Johannes Thumshirn
On Wed, Apr 27, 2016 at 05:13:59PM -0500, Don Brace wrote: > offload_to_be_enabled also needs to be set to 0 during a state > change. > > Reviewed-by: Scott Teel > Reviewed-by: Kevin Barnett > Signed-off-by: Don Brace Reviewed-by: Johannes Thumshirn --

Re: [PATCH 5/7] hpsa: correct ioaccel2 error procecssing.

2016-04-28 Thread Johannes Thumshirn
wed-by: Kevin Barnett > Signed-off-by: Don Brace Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane

Re: [PATCH 6/7] hpsa: correct handling of HBA device removal

2016-04-28 Thread Johannes Thumshirn
t Teel > Reviewed-by: Kevin Barnett > Signed-off-by: Don Brace Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix

Re: [PATCH 7/7] hpsa: update driver version

2016-04-28 Thread Johannes Thumshirn
On Wed, Apr 27, 2016 at 05:14:26PM -0500, Don Brace wrote: > Reviewed-by: Gerry Morong > Signed-off-by: Don Brace Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 68

Re: [PATCH] libfc: replace 'rp_mutex' with 'rp_lock'

2016-05-09 Thread Johannes Thumshirn
r details cf https://lkml.org/lkml/2015/2/11/245 > > Signed-off-by: Hannes Reinecke Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5,

Re: [PATCH] scsi_lib: correctly retry failed zero length REQ_TYPE_FS commands

2016-05-17 Thread Johannes Thumshirn
king for blk_rq_bytes(req) == 0 && error in scsi_end_request()? > > /* > -- > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majo

Re: [PATCH] scsi: use spinlock instead of mutex for RCU-protected VPD inquiry data

2016-05-23 Thread Johannes Thumshirn
On Fri, May 20, 2016 at 08:56:14AM -0400, Ewan D. Milne wrote: > From: "Ewan D. Milne" > > A spinlock is sufficient for this purpose, and much smaller. > > Signed-off-by: Ewan D. Milne Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn

mpt3sas: memory allocation for firmware upgrade DMA memory question

2016-05-25 Thread Johannes Thumshirn
on Sep 17 00:00:00 2001 From: Johannes Thumshirn Date: Tue, 24 May 2016 17:25:59 +0200 Subject: [RFC PATCH] mpt3sas: Don't do atomic memory allocations for firmware update DMA Currently mpt3sas uses pci_alloc_consistent() to allocate memory for the DMA used to do firmware updates. pci_alloc_con

Re: [PATCH] bnx2fc: replace printk() with BNX2FC_IO_DBG()

2016-05-30 Thread Johannes Thumshirn
> Signed-off-by: Maurizio Lombardi Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Gra

Re: mpt3sas: memory allocation for firmware upgrade DMA memory question

2016-05-30 Thread Johannes Thumshirn
oughly , as I don’t see allocation of > several non-contiguous chunks of memory in below patch..., The question here is if it would be possible to replace the kmalloc() call with a vmalloc() (which is non-contiguous) and then pass the allocated memory to a sg list? Thanks, Johann

[PATCH 3/5] scsi: Use pci_(request|release)_mem_regions

2016-05-31 Thread Johannes Thumshirn
Now that we do have pci_request_mem_regions() and pci_release_mem_regions() at hand, use it in the lpfc driver. Suggested-by: Christoph Hellwig Signed-off-by: Johannes Thumshirn Cc: James Smart Cc: Dick Kennedy Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen&q

[PATCH 0/5] Introduce pci_(request|release)_(mem|io)_regions

2016-05-31 Thread Johannes Thumshirn
(pdev); Johannes Thumshirn (5): PCI: Add helpers to request/release memory and I/O regions NVMe: Use pci_(request|release)_mem_regions scsi: Use pci_(request|release)_mem_regions GenWQE: Use pci_(request|release)_mem_regions ethernet: Use pci_(request|release)_mem_regions drivers/misc/g

Re: [PATCH] scsi: Add QEMU CD-ROM to VPD Inquiry Blacklist

2016-05-31 Thread Johannes Thumshirn
:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) > [4.646685] ata2.00: status: { DRDY DRQ } > [4.648193] ata2: soft resetting link > > ... > > Fix this by suppressing VPD inquiry for this device. > > Reported-by: Jan Stancek > Tested-by: Jan Stance

Re: [PATCH 3/5] scsi: Use pci_(request|release)_mem_regions

2016-06-01 Thread Johannes Thumshirn
On Wed, Jun 01, 2016 at 12:59:29AM -0700, Christoph Hellwig wrote: > On Tue, May 31, 2016 at 02:05:11PM +0200, Johannes Thumshirn wrote: > > Now that we do have pci_request_mem_regions() and pci_release_mem_regions() > > at > > hand, use it in the lpfc driver. > > Th

[PATCH v2 3/6] lpfc: Use pci_(request|release)_mem_regions

2016-06-02 Thread Johannes Thumshirn
Now that we do have pci_request_mem_regions() and pci_release_mem_regions() at hand, use it in the lpfc driver. Suggested-by: Christoph Hellwig Signed-off-by: Johannes Thumshirn Cc: James Smart Cc: Dick Kennedy Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen&q

[PATCH v2 0/6] Introduce pci_(request|release)_(mem|io)_regions

2016-06-02 Thread Johannes Thumshirn
(pdev); Changes since v1: * Fixed indendatoin in pci.h patch to not cross the 80 chars boundary. * Split Ethernet patches into two, one for Atheros and one for Intel drivers. * Correctly named lpfc patch. * Converted init-path of lpfc driver as well. * Added Reviewed-by tags were appropriate. Joh

Re: [PATCH v2 3/6] lpfc: Use pci_(request|release)_mem_regions

2016-06-06 Thread Johannes Thumshirn
On Thu, Jun 02, 2016 at 07:57:43AM -0400, Dick Kennedy wrote: > Thanks Johannes, it looks good. Hi Dick, Can I use this as an Acked-by in the next submission? Thanks, Johannes > > On Thu, Jun 2, 2016 at 3:30 AM, Johannes Thumshirn > wrote: > > >

[PATCH v3 3/6] lpfc: Use pci_(request|release)_mem_regions

2016-06-07 Thread Johannes Thumshirn
Now that we do have pci_request_mem_regions() and pci_release_mem_regions() at hand, use it in the lpfc driver. Suggested-by: Christoph Hellwig Signed-off-by: Johannes Thumshirn Acked-by: Dick Kennedy Cc: James Smart Cc: Dick Kennedy Cc: "James E.J. Bottomley" Cc: "Martin K

[PATCH v3 0/6] Introduce pci_(request|release)_(mem|io)_regions

2016-06-07 Thread Johannes Thumshirn
atches into two, one for Atheros and one for Intel drivers. * Correctly named lpfc patch. * Converted init-path of lpfc driver as well. * Added Reviewed-by tags were appropriate. Johannes Thumshirn (6): PCI: Add helpers to request/release memory and I/O regions NVMe: Use pci_(request|release)_mem

Re: [PATCH v3 0/6] Introduce pci_(request|release)_(mem|io)_regions

2016-06-08 Thread Johannes Thumshirn
On Tue, Jun 07, 2016 at 09:44:00AM +0200, Johannes Thumshirn wrote: > The first patch in this series introduces the following 4 helper functions to > the PCI core: > > * pci_request_mem_regions() > * pci_request_io_regions() > * pci_release_mem_regions() > * pci_release_io

Re: [PATCH v2] scsi/fcoe: convert to kworker

2016-06-10 Thread Johannes Thumshirn
Bottomley" > Cc: "Martin K. Petersen" > Cc: Christoph Hellwig > Cc: fcoe-de...@open-fcoe.org > Cc: linux-scsi@vger.kernel.org > Signed-off-by: Sebastian Andrzej Siewior Tested in a Boot from FCoE scenario using a BCM57840. Tested-by: Johannes Thumshirn Reviewed

Re: [V2 PATCH 04/11] aacraid: MSI-x support

2015-03-27 Thread Johannes Thumshirn
Mahesh Rajashekhara writes: > Add MSI-x interrupt mode support. > > Signed-off-by: Mahesh Rajashekhara > --- > drivers/scsi/aacraid/aacraid.h | 80 - > drivers/scsi/aacraid/comminit.c | 95 +- > drivers/scsi/aacraid/commsup.c | 20 ++- > drivers/scsi/aacraid/dpcsup.c |

Re: [PATCH] scsi: rescan VPD attributes

2015-11-25 Thread Johannes Thumshirn
vel; >   char inq_periph_qual; /* PQ from INQUIRY data */ > + struct mutex inquiry_mutex; >   unsigned char inquiry_len; /* valid bytes in 'inquiry' */ >   unsigned char * inquiry;/* INQUIRY response data */ >   const char * vendo

Re: [PATCH 2/4] bfa:Fix for crash when bfa_itnim is NULL

2015-11-26 Thread Johannes Thumshirn
On Thu, 2015-11-26 at 02:43 -0500, anil.gurumur...@qlogic.com wrote: > From: Anil Gurumurthy Can you please explain a bit more why it is crashing in the commit message, i.e. copy the comment you added to the source here as well. And as I spot the words fix and crash in the subject, you might co

Re: [PATCH 1/4] bfa:Updating copyright messages

2015-11-26 Thread Johannes Thumshirn
/bfad_im.h > +++ b/drivers/scsi/bfa/bfad_im.h > @@ -1,7 +1,8 @@ >  /* > - * Copyright (c) 2005-2010 Brocade Communications Systems, Inc. > + * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. > + * Copyright (c) 2014- QLogic Corporation. >   * All rights reserved

Re: [PATCH 4/4] bfa:Update driver version to 3.2.25.0

2015-11-26 Thread Johannes Thumshirn
RSION >  #else > -#define BFAD_DRIVER_VERSION"3.2.23.0" > +#define BFAD_DRIVER_VERSION"3.2.25.0" >  #endif >   >  #define BFAD_PROTO_NAME FCPI_NAME Reviewed-by: Johannes Thumshirn -- To unsubscribe from this list: send the line "unsubscribe linux-

Re: [PATCH 3/4] bfa:File header and user visible string changes

2015-11-26 Thread Johannes Thumshirn
re; you can redistribute it and/or modify it >   * under the terms of the GNU General Public License (GPL) Version 2 as > diff --git a/drivers/scsi/bfa/bfad_im.c b/drivers/scsi/bfa/bfad_im.c > index 2c0cf8a..6c805e1 100644 > --- a/drivers/scsi/bfa/bfad_im.c > +++ b/drivers/scsi/bfa/bfad

Re: [PATCH v1 1/1] scsi_debug: check for bigger value first

2015-11-27 Thread Johannes Thumshirn
   (sdebug_sectors_per * sdebug_heads); >   if (sdebug_cylinders_per >= 1024) { Reviewed-by: Johannes Thumshirn -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] scsi: ufs: fix spelling mistake in error message

2015-11-29 Thread Johannes Thumshirn
kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Johannes Thumshirn -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2 2/4] bfa:Fix for crash when bfa_itnim is NULL

2015-11-30 Thread Johannes Thumshirn
fad, bfa_log_level, > + "lun reset, bfa_itnim is NULL\n"); > + spin_unlock_irqrestore(&bfad->bfad_lock, flags); > + rc = FAILED; > + goto out; > + } >   int_to_scsilun(cmnd->device->lun, &scsilun); >   bfa_ts

Re: [PATCH 03/18] scsi_dh_alua: Disable ALUA handling for non-disk devices

2015-12-01 Thread Johannes Thumshirn
; + sdev_printk(KERN_INFO, sdev, > + "%s: disable for non-disk devices\n", > + ALUA_DH_NAME); > + return SCSI_DH_DEV_UNSUPP; > + } > + >   h->tpgs = scsi_device_tpgs(sdev); >   swi

Re: [PATCH 05/18] scsi_dh_alua: improved logging

2015-12-01 Thread Johannes Thumshirn
SI_DH_DEV_UNSUPP; >   break; > + default: > + sdev_printk(KERN_INFO, sdev, > + "%s: unsupported TPGS setting %d\n", > + ALUA_DH_NAME, h->tpgs); > + h->tpgs = TPGS_MODE_NONE; >

Re: [PATCH 04/18] scsi_dh_alua: Use vpd_pg83 information

2015-12-01 Thread Johannes Thumshirn
: port group %02x rel port %02x\n", > - ALUA_DH_NAME, h->group_id, h->rel_port); > + return SCSI_DH_DEV_UNSUPP; >   } > + sdev_printk(KERN_INFO, sdev, > + "%s: port group %02x rel port %02x\n", > +

Re: [PATCH 08/18] scsi_dh_alua: return standard SCSI return codes in submit_rtpg

2015-12-01 Thread Johannes Thumshirn
On Tue, 2015-12-01 at 10:16 +0100, Hannes Reinecke wrote: > Fixup submit_rtpg() to always return a standard SCSI return code. > > Reviewed-by: Ewan Milne > Reviewed-by: Johannes Thumshirn > Reviewed-by: Christoph Hellwig > Signed-off-by: Hannes Reinecke > --- >  dri

Re: [PATCH 09/18] scsi_dh_alua: fixup description of stpg_endio()

2015-12-01 Thread Johannes Thumshirn
- * Send a SET TARGET GROUP STATES command to the device. > - * We only have to test here if we should resubmit the command; > - * any other error is assumed as a failure. > + * Evaluate a SET TARGET GROUP STATES command response. >   */ >  static void stpg_endio(struct request *req, i

Re: [PATCH 10/18] scsi: remove scsi_show_sense_hdr()

2015-12-01 Thread Johannes Thumshirn
t; - const struct scsi_sense_hdr *); >  extern void scsi_print_sense_hdr(const struct scsi_device *, const char *, >    const struct scsi_sense_hdr *); >  extern void scsi_print_sense(const struct scsi_cmnd *); Reviewed-by: Johannes Thumshir

Re: [PATCH 11/18] scsi_dh_alua: use flag for RTPG extended header

2015-12-01 Thread Johannes Thumshirn
mp; ALUA_RTPG_EXT_HDR_UNSUPP) && >   sense_hdr.sense_key == ILLEGAL_REQUEST && >   sense_hdr.asc == 0x24 && sense_hdr.ascq == 0) { > - rtpg_ext_hdr_req = 0; > + h->flags |= ALUA_RTPG_EXT_HDR_UNSUPP; >   goto retry; >   } >   Reviewed-by: Johannes Thumshirn -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 12/18] scsi_dh_alua: use unaligned access macros

2015-12-01 Thread Johannes Thumshirn
; - (h->buff[2] << 8) + h->buff[3] + 4; > + len = get_unaligned_be32(&h->buff[0]) + 4; >   >   if (len > h->bufflen) { >   /* Resubmit with the correct length */ > @@ -576,7 +569,7 @@ static int alua_rtpg(struct scsi_device *sdev,

Re: [PATCH 14/18] scsi_dh_alua: simplify sense code handling

2015-12-01 Thread Johannes Thumshirn
sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x0a) > + err = SCSI_DH_RETRY; > + else if (sense_hdr.sense_key == UNIT_ATTENTION) > + err = SCSI_DH_RETRY; > + if (err == SCSI_DH_RETRY && time_before(jiffies, expiry)) { >   sdev_printk(KERN_ERR, sdev, "%s: rtpg retry\n", >   ALUA_DH_NAME); >   scsi_print_sense_hdr(sdev, ALUA_DH_NAME, > &sense_hdr); Reviewed-by: Johannes Thumshirn -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 15/18] scsi: Add scsi_vpd_lun_id()

2015-12-01 Thread Johannes Thumshirn
atted as a SCSI name string. > + * > + * Returns the length of the identification or error on failure. > + * If the identifier is longer than the supplied buffer the actual > + * identifier length is returned and the buffer is not zero-padded. > + */ > +int scsi_vpd_lun_id(struct scsi_d

Re: [PATCH 1/3] arcmsr: modify codes for more readable

2015-12-01 Thread Johannes Thumshirn
MSR_ARC1214_OUTBOUND_LIST_COPY_POINTER); > + reg->outboundlist_read_pointer = > MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_LIST_READ_POINTER); > + reg->outboundlist_interrupt_cause = > MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_INTERRUPT_CAUSE); > + reg->outboundlist_interrupt_enable = > MEM_BASE0

Re: [PATCH 2/3] arcmsr: Split dma resource allocation to a new function

2015-12-01 Thread Johannes Thumshirn
L_ENABLE); > - reg->inboundlist_base_low = > MEM_BASE0(ARCMSR_ARC1214_INBOUND_LIST_BASE_LOW); > - reg->inboundlist_base_high = > MEM_BASE0(ARCMSR_ARC1214_INBOUND_LIST_BASE_HIGH); > - reg->inboundlist_write_pointer = > MEM_BASE0(ARCMSR_ARC1214_INBOUND_LIST_WR

Re: [PATCH 3/3] arcmsr: change driver version to v1.30.00.22-20151126

2015-12-01 Thread Johannes Thumshirn
> 512 >  #define ARCMSR_MAX_XFER_SECTORS_B > 4096 > > Reviewed-by: Johannes Thumshirn -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH Resend] VMW_PVSCSI: Fix the issue of DMA-API related warnings.

2015-12-02 Thread Johannes Thumshirn
Hi Josh, On Tue, 2015-12-01 at 11:34 -0500, Josh Boyer wrote: > The driver is missing calls to pci_dma_mapping_error() after > performing the DMA mapping, which caused DMA-API warning to > show up in dmesg's output. Though that happens only when > DMA_API_DEBUG option is enabled. This change fixes

Re: [PATCH 09/10] aacraid: Fix character device re initialization

2015-12-02 Thread Johannes Thumshirn
Hi Raghava, On Tue, 2015-12-01 at 04:39 -0800, Raghava Aditya Renukunta wrote: > From: Raghava Aditya Renukunta > > During EEH PCI hotplug activity kernel unloads and loads the driver, > causing character device to be unregistered(aac_remove_one).When the > driver is loaded back using aac_probe_o

Re: [PATCH 02/10] aacraid: Fix RRQ overload

2015-12-02 Thread Johannes Thumshirn
(&dev->rrq_outstanding[vector_no]); > - if (dev->fibs_pushed_no == 0x) > - dev->fibs_pushed_no = 0; > - else > - dev->fibs_pushed_no++; > + vector_no = fib->vector_no; >  

Re: [PATCH 03/10] aacraid: Added EEH support

2015-12-02 Thread Johannes Thumshirn
On Tue, 2015-12-01 at 04:39 -0800, Raghava Aditya Renukunta wrote: > From: Raghava Aditya Renukunta > > Added support for PCI EEH(extended error handling). > > Signed-off-by: Raghava Aditya Renukunta > --- >  drivers/scsi/aacraid/aacraid.h |   1 + >  drivers/scsi/aacraid/linit.c   | 138 > +

Re: [PATCH 04/10] aacraid: Fix memory leak in aac_fib_map_free

2015-12-02 Thread Johannes Thumshirn
->can_queue + AAC_NUM_MGT_FIB)), > + dev->hw_fib_va, dev->hw_fib_pa); > + } >   dev->hw_fib_va = NULL; >   dev->hw_fib_pa = 0; >  } Fixes: 9ad5204d6 - "[SCSI] aacraid: incorrect dma mapping mask during blinkled recover or user

Re: [PATCH 06/10] aacraid: Fundamental reset support for Series 7

2015-12-02 Thread Johannes Thumshirn
ev->needs_freset = 1; > + >   list_for_each_entry(aac, &aac_devices, entry) { >   if (aac->id > unique_id) >   break; Reviewed-by: Johannes Thumshirn -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 07/10] aacraid: Fix AIF triggered IOP_RESET

2015-12-02 Thread Johannes Thumshirn
Hi Raghava, On Tue, 2015-12-01 at 04:39 -0800, Raghava Aditya Renukunta wrote: > From: Raghava Aditya Renukunta > > while driver removal is in progress or PCI shutdown is invoked, driver > kills AIF aacraid thread, but IOCTL requests from the management tools > re-start AIF thread leading to IOP

Re: [PATCH 08/10] aacraid: Disable device ID wildcard

2015-12-02 Thread Johannes Thumshirn
t; +++ b/drivers/scsi/aacraid/linit.c > @@ -1135,6 +1135,11 @@ static int aac_probe_one(struct pci_dev *pdev, const > struct pci_device_id *id) >   u64 dmamask; >   extern int aac_sync_mode; >   > + if (aac_disable_device_id_wildcards && > + id-&

Re: [PATCH 09/10] aacraid: Fix character device re-initialization

2015-12-02 Thread Johannes Thumshirn
Hi Raghava, On Tue, 2015-12-01 at 04:39 -0800, Raghava Aditya Renukunta wrote: > From: Raghava Aditya Renukunta > > During EEH PCI hotplug activity kernel unloads and loads the driver, > causing character device to be unregistered(aac_remove_one).When the > driver is loaded back using aac_probe_

Re: [PATCH 10/10] aacraid: Update driver version

2015-12-02 Thread Johannes Thumshirn
0x0001 >   >  #ifndef AAC_DRIVER_BUILD > -# define AAC_DRIVER_BUILD 41010 > +# define AAC_DRIVER_BUILD 41052 >  # define AAC_DRIVER_BRANCH "-ms" >  #endif >  #define MAXIMUM_NUM_CONTAINERS 32 Reviewed-by: Johannes Thumshirn -- To unsubscribe from this lis

Re: [PATCH 05/10] aacraid: Set correct msix count for EEH recovery

2015-12-02 Thread Johannes Thumshirn
Hi Raghava, On Tue, 2015-12-01 at 04:39 -0800, Raghava Aditya Renukunta wrote: > From: Raghava Aditya Renukunta > > During EEH recovery number of online CPU's might change thereby changing > the number of MSIx vectors. Since each fib is allocated to a vector, > changes in the number of vectors c

Re: [PATCH 01/10] aacraid: SCSI blk tag support

2015-12-02 Thread Johannes Thumshirn
er to free tag allocated fibs > + * Does not do anything > + */ > + > +void aac_fib_free_tag(struct fib *fibptr) > +{ > + (void)fibptr; > +} > + I'm not sure if I like this placeholder. Sure it's a NOP and doesn't cost anything but it's dead code. But if I'm the only one objecting here I'm fine with it. Reviewed-by: Johannes Thumshirn -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 07/10] aacraid: Fix AIF triggered IOP_RESET

2015-12-03 Thread Johannes Thumshirn
Hi Raghava, On Wed, 2015-12-02 at 22:29 +, Raghava Aditya Renukunta wrote: > Hello Johannes, > > > -Original Message- [...] > Originally the problem was that dev->adapter_shutdown was set after the > Shutdown command was sent to the controller, leading to a race > condition  If afte

Re: [PATCH 1/5] libsas: allow async aborts

2015-12-03 Thread Johannes Thumshirn
t != host->ehandler) > - return FAILED; > - >   if (!i->dft->lldd_abort_task) >   return FAILED; >   Reviewed-by: Johannes Thumshirn -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/5] scsi: make scsi_eh_scmd_add() always succeed

2015-12-03 Thread Johannes Thumshirn
gt;  } >   > diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h > index 27b4d0a..8c26823 100644 > --- a/drivers/scsi/scsi_priv.h > +++ b/drivers/scsi/scsi_priv.h > @@ -71,7 +71,7 @@ extern enum blk_eh_timer_return scsi_times_out(struct > request *req); >  extern int scsi_

Re: [PATCH 3/5] scsi: make eh_eflags persistent

2015-12-03 Thread Johannes Thumshirn
  list_move_tail(&scmd->eh_entry, done_q); >  } >  EXPORT_SYMBOL(scsi_eh_finish_cmd); > diff --git a/include/scsi/scsi_eh.h b/include/scsi/scsi_eh.h > index dbb8c64..f2f876c 100644 > --- a/include/scsi/scsi_eh.h > +++ b/include/scsi/scsi_eh.h > @@ -30,6 +30,7 @@

Re: [PATCH 4/5] scsi: make asynchronous aborts mandatory

2015-12-03 Thread Johannes Thumshirn
t; --- a/drivers/scsi/scsi_priv.h > +++ b/drivers/scsi/scsi_priv.h > @@ -18,7 +18,6 @@ struct scsi_nl_hdr; >  /* >   * Scsi Error Handler Flags >   */ > -#define SCSI_EH_CANCEL_CMD 0x0001 /* Cancel this cmd */ >  #define SCSI_EH_ABORT_SCHEDULED 0x0002 /* Abort has been > scheduled */ >   >

Re: [PATCH 5/5] scsi_error: do not escalate failed EH command

2015-12-03 Thread Johannes Thumshirn
recovery >   * @scmd:   SCSI command structure to hijack > @@ -1063,7 +1054,7 @@ retry: >   break; >   } >   } else if (rtn != FAILED) { > - scsi_abort_eh_cmnd(scmd); > + scsi_try_to_abort_cmd(shost->hostt, scmd); >  

Re: [PATCH RESEND] cxlflash: a couple off by one bugs

2015-12-03 Thread Johannes Thumshirn
rc = -EPERM; >   goto err2; > @@ -1508,7 +1508,7 @@ static int recover_context(struct cxlflash_cfg *cfg, > struct ctx_info *ctxi) >   } >   >   ctxid = cxl_process_element(ctx); > - if (unlikely((ctxid > MAX_CONTEXT) || (ctxid < 0))) { > + if (unlik

Re: [PATCH] scsi_dh_alua: Remove stale variables

2015-12-03 Thread Johannes Thumshirn
ic int alua_check_tpgs(struct scsi_device *sdev) >   */ >  static int alua_check_vpd(struct scsi_device *sdev, struct alua_dh_data *h) >  { > - unsigned char *d; > - unsigned char __rcu *vpd_pg83; >   int rel_port = -1, group_id; >   >   group_id = scsi_vpd_tpg_id(sde

Re: [PATCH v2] VMW_PVSCSI: Fix the issue of DMA-API related warnings.

2015-12-03 Thread Johannes Thumshirn
change fixes the issue > and makes pvscsi_map_buffers() function more robust. > > Signed-off-by: Arvind Kumar > Cc: Josh Boyer > Reviewed-by: Thomas Hellstrom > Signed-off-by: Josh Boyer > --- > >  v2: Use -ENOMEM instead of -1 for the error return code as suggested by

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

2015-12-11 Thread Johannes Thumshirn
/vger.kernel.org/majordomo-info.html Should this go through stable as well? If yes: Fixes: 8b612fa23 '[SCSI] storvsc: Update the storage protocol to win8 level' Cc: sta...@vger.kernel.org # v3.11+ Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn

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

2015-12-11 Thread Johannes Thumshirn
))); > > - return vmbus_driver_register(&storvsc_drv); > + fc_transport_template = fc_attach_transport(&fc_transport_functions); > + if (!fc_transport_template) > + return -ENODEV; > + > + ret = vmbus_driver_register(&storvsc_drv); >

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

2015-12-11 Thread Johannes Thumshirn
e_delta), > -(unsigned long)request, > -VM_PKT_DATA_INBAND, > -VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED); > - > - if (ret != 0) > - goto cleanup; > - > - t = wait_f

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

2015-12-11 Thread Johannes Thumshirn
vmscsi_size_delta)); > complete(&request->wait_event); > } else { > - storvsc_on_receive(device, > + storvsc_on_receive(stor_device, >

Re: [PATCH v2] hisi_sas: use platform_get_irq()

2015-12-11 Thread Johannes Thumshirn
irq = irq_of_parse_and_map(np, idx); > + irq = platform_get_irq(pdev, idx); > if (!irq) { > dev_err(dev, "irq init: could not map fatal interrupt > %d\n", > idx); > -- > 1.9.1 > > -- &

Re: [PATCH 1/7] iscsi-target: Use a variable initialisation in iscsi_set_default_param() directly

2015-12-14 Thread Johannes Thumshirn
u16 type_range, u8 use) { - struct iscsi_param *param = NULL; + struct iscsi_param *param; param = kzalloc(sizeof(struct iscsi_param), GFP_KERNEL); if (!param) { pr_err("Unable to allocate memory for parameter.\n"); This way it would be

Re: [patch] qla2xxx: fix a timeout loop

2015-12-16 Thread Johannes Thumshirn
A8044_FLASH_STATUS, > &flash_status); > if (ret_val) { > -- > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://

Re: Note to driver maintainers

2015-12-17 Thread Johannes Thumshirn
"fix" in the subject or commit message), please add a Fixes: 1234abcf 'Buggy commit' Cc: sta...@vger.kernel.org # vX.Y To the SOB area of your patch. This really makes our lives as distribution maintainers - who have to care about actual users - a _lot_ easier. Thanks

Re: [RFC PATCH] lpfc: Add lockdep assertions

2015-12-17 Thread Johannes Thumshirn
solve. As I already said in the patch mail, I'm not sure if it is of intereset for upstream, but can actually be quite handy to find something if it goes wrong. -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911

[PATCH] lpfc: Remove redundant code block in lpfc_scsi_cmd_iocb_cmpl

2016-01-20 Thread Johannes Thumshirn
This removes a redundant code block that will either be executed if the ENABLE_FCP_RING_POLLING flag is set in phba->cfg_poll or not. The code is just duplicated in both cases, hence we unify it again. This probably is a left over from some sort of refactoring. Signed-off-by: Johannes Thumsh

[PATCH RESEND] lpfc: Add lockdep assertions

2016-01-20 Thread Johannes Thumshirn
Several functions in lpfc have comments stating that the function must be called with the hbalock (or hostlock, or ringlock) held. Add lockdep_assert_held() annotations to these functions, so one can actually verify the locks are held. Signed-off-by: Johannes Thumshirn --- drivers/scsi/lpfc

Re: [PATCH] sd: Optimal I/O size is in bytes, not sectors

2016-01-20 Thread Johannes Thumshirn
"unsubscribe linux-scsi" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de

Re: [PATCH] scsi: export function scsi_scan.c:sanitize_inquiry_string

2016-01-20 Thread Johannes Thumshirn
ring(&inq_result[32], 4); > > response_len = inq_result[4] + 5; > if (response_len > 255) > > -- > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a message to majord...@vger.kernel.org > Mor

<    1   2   3   4   5   6   7   8   9   10   >