Re: [PATCH 30/54] md/raid5: Delete two error messages for a failed memory allocation

2016-10-06 Thread Hannes Reinecke
f->thread) goto free_conf; - } return conf; free_conf: Actually I prefer having error messages, especially if you have several possible failures all leading to the same return value. Without it debugging becomes really hard. Cheers, Hannes -- D

Re: [PATCH 30/54] md/raid5: Delete two error messages for a failed memory allocation

2016-10-06 Thread Hannes Reinecke
eturn conf; free_conf: Actually I prefer having error messages, especially if you have several possible failures all leading to the same return value. Without it debugging becomes really hard. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de

Re: [dm-devel] [PATCH 0/9] Generate uevents for all DM events

2016-10-05 Thread Hannes Reinecke
tipathing. As it stands using dm-events from multipathing is a massive resource drain (we have to allocate a waiting thread for each device), and we more-or-less disregard that information anyway as it is an ex-post notification made _after_ someone modified the table. Given that in most case

Re: [dm-devel] [PATCH 0/9] Generate uevents for all DM events

2016-10-05 Thread Hannes Reinecke
tipathing. As it stands using dm-events from multipathing is a massive resource drain (we have to allocate a waiting thread for each device), and we more-or-less disregard that information anyway as it is an ex-post notification made _after_ someone modified the table. Given that in most case

Re: [PATCH 00/12] Fixes, cleanup and g_NCR5380_mmio/g_NCR5380 merger

2016-10-04 Thread Hannes Reinecke
hanged, 495 insertions(+), 487 deletions(-) > delete mode 100644 drivers/scsi/g_NCR5380_mmio.c > For this series: Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

Re: [PATCH 00/12] Fixes, cleanup and g_NCR5380_mmio/g_NCR5380 merger

2016-10-04 Thread Hannes Reinecke
hanged, 495 insertions(+), 487 deletions(-) > delete mode 100644 drivers/scsi/g_NCR5380_mmio.c > For this series: Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

Re: [Question] Calling request_firmware under the spinlocks in file advansys.c

2016-09-27 Thread Hannes Reinecke
interrupt routine to do all sorts of things, and are thereby well versed to keep interrupts disabled for an extented amount of time. However, we don't really have a good way of handling a request firmware here; we probably would need to implement a workqueue to handle this properly ... Cheers, Hannes

Re: [Question] Calling request_firmware under the spinlocks in file advansys.c

2016-09-27 Thread Hannes Reinecke
interrupt routine to do all sorts of things, and are thereby well versed to keep interrupts disabled for an extented amount of time. However, we don't really have a good way of handling a request firmware here; we probably would need to implement a workqueue to handle this properly ... Cheers, Hannes

Re: TRIM/UNMAP/DISCARD via ATA Passthrough

2016-09-16 Thread Hannes Reinecke
ng the most prominent other one). And while they might support ATA_12/ATA_16, there is no indication that you can pass DSM TRIM that way. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH,

Re: TRIM/UNMAP/DISCARD via ATA Passthrough

2016-09-16 Thread Hannes Reinecke
ng the most prominent other one). And while they might support ATA_12/ATA_16, there is no indication that you can pass DSM TRIM that way. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH,

Re: [PATCH] scsi: megaraid_sas: add in missing white space in error message text

2016-09-14 Thread Hannes Reinecke
e->consumer) { > - dev_printk(KERN_DEBUG, >dev, "Failed to allocate" > + dev_printk(KERN_DEBUG, >dev, "Failed to allocate " > "memory for producer, consumer\n"); >

Re: [PATCH] scsi: megaraid_sas: add in missing white space in error message text

2016-09-14 Thread Hannes Reinecke
_DEBUG, >dev, "Failed to allocate" > + dev_printk(KERN_DEBUG, >dev, "Failed to allocate " > "memory for producer, consumer\n"); > goto fail_alloc_dma_buf; > } >

Re: [PATCH 15/15] hisi_sas: send three identify before phy up

2016-09-14 Thread Hannes Reinecke
--- > drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 20 > 1 file changed, 16 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de

Re: [PATCH 15/15] hisi_sas: send three identify before phy up

2016-09-14 Thread Hannes Reinecke
> 1 file changed, 16 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg

Re: [PATCH 13/15] hisi_sas: remove init_id_frame_v1_hw()

2016-09-14 Thread Hannes Reinecke
; 1 file changed, 10 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

Re: [PATCH 14/15] hisi_sas: add missing SATA pending device type to v2 hw

2016-09-14 Thread Hannes Reinecke
break; > case SAS_SATA_DEV: > + case SAS_SATA_PENDING: > if (parent_dev && DEV_IS_EXPANDER(parent_dev->dev_type)) > qw0 = HISI_SAS_DEV_TYPE_STP << ITCT_HDR_DEV_TYPE_OFF; > else > Reviewed-b

Re: [PATCH 13/15] hisi_sas: remove init_id_frame_v1_hw()

2016-09-14 Thread Hannes Reinecke
config_id_frame_v1_hw() > in start_phy_v1_hw() since it will be used for > PHY reset functions. > > Signed-off-by: John Garry > Signed-off-by: Xiang Chen > --- > drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 10 -- > 1 file changed, 10 deletions(-) > Reviewed-by: Hannes Re

Re: [PATCH 14/15] hisi_sas: add missing SATA pending device type to v2 hw

2016-09-14 Thread Hannes Reinecke
TA_DEV: > + case SAS_SATA_PENDING: > if (parent_dev && DEV_IS_EXPANDER(parent_dev->dev_type)) > qw0 = HISI_SAS_DEV_TYPE_STP << ITCT_HDR_DEV_TYPE_OFF; > else > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH 12/15] hisi_sas: remove init_id_frame_v2_hw()

2016-09-14 Thread Hannes Reinecke
; 1 file changed, 10 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

Re: [PATCH 12/15] hisi_sas: remove init_id_frame_v2_hw()

2016-09-14 Thread Hannes Reinecke
config_id_frame_v2_hw() > in start_phy_v2_hw() since it will be used for > PHY reset functions. > > Signed-off-by: John Garry > Signed-off-by: Xiang Chen > --- > drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 10 -- > 1 file changed, 10 deletions(-) > Reviewed-by: Hannes Re

Re: [PATCH 11/15] hisi_sas: fix HBA SAS addr endianness for v1 hw

2016-09-14 Thread Hannes Reinecke
tify_buffer[3])); > hisi_sas_phy_write32(hisi_hba, phy_no, TX_ID_DWORD4, > - identify_buffer[3]); > + __swab32(identify_buffer[4])); > hisi_sas_phy_write32(hisi_hba, phy_no, TX_ID_DWORD5, > __swab32(identify_buffer[5]

Re: [PATCH 11/15] hisi_sas: fix HBA SAS addr endianness for v1 hw

2016-09-14 Thread Hannes Reinecke
, TX_ID_DWORD4, > - identify_buffer[3]); > + __swab32(identify_buffer[4])); > hisi_sas_phy_write32(hisi_hba, phy_no, TX_ID_DWORD5, > __swab32(identify_buffer[5])); > } > Reviewed-by: Hannes Reinecke Cheers, Hann

Re: [PATCH 10/15] hisi_sas: fix HBA SAS addr endianness for v2 hw

2016-09-14 Thread Hannes Reinecke
a, phy_no, TX_ID_DWORD4, > - identify_buffer[3]); > + __swab32(identify_buffer[4])); > hisi_sas_phy_write32(hisi_hba, phy_no, TX_ID_DWORD5, > __swab32(identify_buffer[5])); > } > Reviewed-by: Hannes Reinecke <h...@suse.c

Re: [PATCH 10/15] hisi_sas: fix HBA SAS addr endianness for v2 hw

2016-09-14 Thread Hannes Reinecke
; + __swab32(identify_buffer[4])); > hisi_sas_phy_write32(hisi_hba, phy_no, TX_ID_DWORD5, > __swab32(identify_buffer[5])); > } > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Stor

Re: [PATCH 09/15] hisi_sas: set dma mask before allocate DMA memory

2016-09-14 Thread Hannes Reinecke
ed-off-by: Xiang Chen <chenxian...@hisilicon.com> > Signed-off-by: John Garry <john.ga...@huawei.com> > --- > drivers/scsi/hisi_sas/hisi_sas_main.c | 13 ++--- > 1 file changed, 6 insertions(+), 7 deletions(-) > Reviewed-by: Hannes Reinecke <h...

Re: [PATCH 08/15] hisi_sas: fix a potential warning for sata disk ejection

2016-09-14 Thread Hannes Reinecke
isilicon.com> > Signed-off-by: John Garry <john.ga...@huawei.com> > --- > drivers/scsi/hisi_sas/hisi_sas_main.c | 26 ++ > 1 file changed, 6 insertions(+), 20 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. H

Re: [PATCH 09/15] hisi_sas: set dma mask before allocate DMA memory

2016-09-14 Thread Hannes Reinecke
ed-off-by: Xiang Chen > Signed-off-by: John Garry > --- > drivers/scsi/hisi_sas/hisi_sas_main.c | 13 ++--- > 1 file changed, 6 insertions(+), 7 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@

Re: [PATCH 08/15] hisi_sas: fix a potential warning for sata disk ejection

2016-09-14 Thread Hannes Reinecke
Xiang Chen > Signed-off-by: John Garry > --- > drivers/scsi/hisi_sas/hisi_sas_main.c | 26 ++---- > 1 file changed, 6 insertions(+), 20 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de

Re: [PATCH 06/15] hisi_sas: disable dlvry queues once at reset for v2 hw

2016-09-14 Thread Hannes Reinecke
sas_write32(hisi_hba, DLVRY_QUEUE_ENABLE, 0); > > /* Disable all of the PHYs */ > for (i = 0; i < hisi_hba->n_phy; i++) { > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de

Re: [PATCH 07/15] hisi_sas: fix phy8 linkrate calculation in phy_up_v2_hw()

2016-09-14 Thread Hannes Reinecke
- link_rate = hisi_sas_read32(hisi_hba, PHY_CONN_RATE); > - link_rate = (link_rate >> (phy_no * 4)) & 0xf; > sas_phy->linkrate = link_rate; > hard_phy_linkrate = hisi_sas_phy_read32(hisi_hba, phy_no, > HARD_

Re: [PATCH 06/15] hisi_sas: disable dlvry queues once at reset for v2 hw

2016-09-14 Thread Hannes Reinecke
ABLE, 0); > > /* Disable all of the PHYs */ > for (i = 0; i < hisi_hba->n_phy; i++) { > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX

Re: [PATCH 07/15] hisi_sas: fix phy8 linkrate calculation in phy_up_v2_hw()

2016-09-14 Thread Hannes Reinecke
- link_rate = (link_rate >> (phy_no * 4)) & 0xf; > sas_phy->linkrate = link_rate; > hard_phy_linkrate = hisi_sas_phy_read32(hisi_hba, phy_no, > HARD_PHY_LINKRATE); > Reviewed-by: Hannes Reine

Re: [PATCH 05/15] hisi_sas: use safe BITS_PER_BYTE for slot tag size calculation

2016-09-14 Thread Hannes Reinecke
f(unsigned long); > + s = hisi_hba->slot_index_count / BITS_PER_BYTE; > hisi_hba->slot_index_tags = devm_kzalloc(dev, s, GFP_KERNEL); > if (!hisi_hba->slot_index_tags) > goto err_out; > Reviewed-by: Hannes Reinecke <h...@

Re: [PATCH 05/15] hisi_sas: use safe BITS_PER_BYTE for slot tag size calculation

2016-09-14 Thread Hannes Reinecke
s = hisi_hba->slot_index_count / BITS_PER_BYTE; > hisi_hba->slot_index_tags = devm_kzalloc(dev, s, GFP_KERNEL); > if (!hisi_hba->slot_index_tags) > goto err_out; > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke zSe

Re: [PATCH 04/15] hisi_sas: only zero slot memory when reused

2016-09-14 Thread Hannes Reinecke
memset(slot, 0, sizeof(*slot)); > + /* slot memory is fully zeroed when it is reused */ > } > EXPORT_SYMBOL_GPL(hisi_sas_slot_task_free); > > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage

Re: [PATCH 04/15] hisi_sas: only zero slot memory when reused

2016-09-14 Thread Hannes Reinecke
sizeof(*slot)); > + /* slot memory is fully zeroed when it is reused */ > } > EXPORT_SYMBOL_GPL(hisi_sas_slot_task_free); > > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911

Re: [RFC][PATCH v1 1/2] libsas: Alloc dynamic work to avoid missing sas events

2016-09-14 Thread Hannes Reinecke
5 +-- > drivers/scsi/libsas/sas_internal.h |3 ++ > drivers/scsi/libsas/sas_phy.c | 50 - > drivers/scsi/libsas/sas_port.c | 23 -- > include/scsi/libsas.h |8 - > 6 files changed, 66 insertions(+), 84 deletions(

Re: [RFC][PATCH v1 1/2] libsas: Alloc dynamic work to avoid missing sas events

2016-09-14 Thread Hannes Reinecke
y.c | 50 - > drivers/scsi/libsas/sas_port.c | 23 -- > include/scsi/libsas.h | 8 - > 6 files changed, 66 insertions(+), 84 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH 03/15] hisi_sas: keep CHL_INT2 masked for v2 HW

2016-09-14 Thread Hannes Reinecke
= 0; i < hisi_hba->n_phy; i++) { > - hisi_sas_phy_write32(hisi_hba, i, CHL_INT2_MSK, 0x6a); > - hisi_sas_phy_read32(hisi_hba, i, CHL_INT2_MSK); > - } > - > setup_timer(timer, start_phys_v2_hw, (unsigned long)hisi_hba); > mod_timer(timer, jif

Re: [PATCH 03/15] hisi_sas: keep CHL_INT2 masked for v2 HW

2016-09-14 Thread Hannes Reinecke
_phy; i++) { > - hisi_sas_phy_write32(hisi_hba, i, CHL_INT2_MSK, 0x6a); > - hisi_sas_phy_read32(hisi_hba, i, CHL_INT2_MSK); > - } > - > setup_timer(timer, start_phys_v2_hw, (unsigned long)hisi_hba); > mod_timer(timer, jiffies + HZ); > } > Rev

Re: [PATCH 02/15] hisi_sas: save delivery queue write pointer

2016-09-14 Thread Hannes Reinecke
v2_hw.c | 9 ++--- > 4 files changed, 25 insertions(+), 8 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Cheers -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products

Re: [PATCH 02/15] hisi_sas: save delivery queue write pointer

2016-09-14 Thread Hannes Reinecke
> 4 files changed, 25 insertions(+), 8 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Cheers -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

Re: [PATCH 01/15] hisi_sas: save completion queue read pointer

2016-09-14 Thread Hannes Reinecke
: John Garry <john.ga...@huawei.com> > --- > drivers/scsi/hisi_sas/hisi_sas.h | 1 + > drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 6 ++ > drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 5 ++--- > 3 files changed, 5 insertions(+), 7 deletions(-) > Reviewed-by: Hannes Reinecke &l

Re: [PATCH 01/15] hisi_sas: save completion queue read pointer

2016-09-14 Thread Hannes Reinecke
rry > --- > drivers/scsi/hisi_sas/hisi_sas.h | 1 + > drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 6 ++ > drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 5 ++--- > 3 files changed, 5 insertions(+), 7 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reine

Re: [PATCH V2 00/22] Replace the CFQ I/O Scheduler with BFQ

2016-09-08 Thread Hannes Reinecke
es to be had where this rewrite could be looked at. Which makes contributing _really_ hard and very frustrating; and I think this indeed would be a suitable topic for KS. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911

Re: [PATCH V2 00/22] Replace the CFQ I/O Scheduler with BFQ

2016-09-08 Thread Hannes Reinecke
es to be had where this rewrite could be looked at. Which makes contributing _really_ hard and very frustrating; and I think this indeed would be a suitable topic for KS. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911

Re: [PATCH v2 5/8] hisi_sas: add v2 hw slot complete internal abort support

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 04:07 PM, John Garry wrote: > On 24/08/2016 13:59, Hannes Reinecke wrote: >> On 08/24/2016 01:05 PM, John Garry wrote: >>> Add code in slot_complete_v2_hw() to deal with the >>> slots which have completed due to internal abort. >>> >>>

Re: [PATCH v2 5/8] hisi_sas: add v2 hw slot complete internal abort support

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 04:07 PM, John Garry wrote: > On 24/08/2016 13:59, Hannes Reinecke wrote: >> On 08/24/2016 01:05 PM, John Garry wrote: >>> Add code in slot_complete_v2_hw() to deal with the >>> slots which have completed due to internal abort. >>> >>>

Re: [PATCH v2 8/8] hisi_sas: update version to 1.6

2016-08-24 Thread Hannes Reinecke
; #define HISI_SAS_MAX_PHYS9 > #define HISI_SAS_MAX_QUEUES 32 > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfelds

Re: [PATCH v2 8/8] hisi_sas: update version to 1.6

2016-08-24 Thread Hannes Reinecke
8311360..ca55ec2 100644 > --- a/drivers/scsi/hisi_sas/hisi_sas.h > +++ b/drivers/scsi/hisi_sas/hisi_sas.h > @@ -23,7 +23,7 @@ > #include > #include > > -#define DRV_VERSION "v1.5" > +#define DRV_VERSION "v1.6" > > #define HISI_SAS_MAX_PHYS9 &

Re: [PATCH v2 7/8] hisi_sas: add TMF success check

2016-08-24 Thread Hannes Reinecke
break; > + } > + > + if (task->task_status.resp == SAS_TASK_COMPLETE && > task->task_status.stat == SAS_DATA_UNDERRUN) { > /* no error, but return the number of bytes of >* underrun &g

Re: [PATCH v2 6/8] hisi_sas: fail tmf task prep when port detached

2016-08-24 Thread Hannes Reinecke
t_attached) { > if (sas_protocol_ata(task->task_proto)) { > struct task_status_struct *ts = >task_status; > > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage &

Re: [PATCH v2 7/8] hisi_sas: add TMF success check

2016-08-24 Thread Hannes Reinecke
> + > + if (task->task_status.resp == SAS_TASK_COMPLETE && > task->task_status.stat == SAS_DATA_UNDERRUN) { > /* no error, but return the number of bytes of >* underrun >

Re: [PATCH v2 6/8] hisi_sas: fail tmf task prep when port detached

2016-08-24 Thread Hannes Reinecke
if (sas_protocol_ata(task->task_proto)) { > struct task_status_struct *ts = >task_status; > > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de

Re: [PATCH v2 5/8] hisi_sas: add v2 hw slot complete internal abort support

2016-08-24 Thread Hannes Reinecke
has succeeded, it's just that for some reason the associated command couldn't be found. So couldn't this be due to a race condition, and the command has in fact been aborted correctly (and the code is just too slow acknowledging it)? Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)

Re: [PATCH v2 5/8] hisi_sas: add v2 hw slot complete internal abort support

2016-08-24 Thread Hannes Reinecke
/* abort single io, controller don't find > + * the io need to abort > + */ > + ts->stat = TMF_RESP_FUNC_FAILED; > + goto out; Hmm. This will cause the SCSI EH to kick in. And then, according to the description abort has succeeded, it's j

Re: [PATCH v2 4/8] hisi_sas: add prep_abort_v2_hw()

2016-08-24 Thread Hannes Reinecke
3 insertions(+) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smith

Re: [PATCH v2 4/8] hisi_sas: add prep_abort_v2_hw()

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 01:05 PM, John Garry wrote: > Add function to prepare the an internal abort > for v2 hw. > > Signed-off-by: John Garry > --- > drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 33 + > 1 file changed, 33 insertions(+) > Reviewed-by:

Re: [PATCH v2 3/8] hisi_sas: add internal abort to hisi_sas_abort_task()

2016-08-24 Thread Hannes Reinecke
e. > > Signed-off-by: John Garry <john.ga...@huawei.com> > --- > drivers/scsi/hisi_sas/hisi_sas_main.c | 16 ++-- > 1 file changed, 10 insertions(+), 6 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH v2 3/8] hisi_sas: add internal abort to hisi_sas_abort_task()

2016-08-24 Thread Hannes Reinecke
e. > > Signed-off-by: John Garry > --- > drivers/scsi/hisi_sas/hisi_sas_main.c | 16 ++-- > 1 file changed, 10 insertions(+), 6 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.

Re: [PATCH v2 2/8] hisi_sas: add internal abort in hisi_sas_dev_gone()

2016-08-24 Thread Hannes Reinecke
HISI_SAS_INT_ABT_DEV, 0); > + > hisi_hba->hw->free_device(hisi_hba, sas_dev); > device->lldd_dev = NULL; > memset(sas_dev, 0, sizeof(*sas_dev)); > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH v2 2/8] hisi_sas: add internal abort in hisi_sas_dev_gone()

2016-08-24 Thread Hannes Reinecke
0); > + > hisi_hba->hw->free_device(hisi_hba, sas_dev); > device->lldd_dev = NULL; > memset(sas_dev, 0, sizeof(*sas_dev)); > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de

Re: [PATCH v2 1/8] hisi_sas: add internal abort main code

2016-08-24 Thread Hannes Reinecke
Garry <john.ga...@huawei.com> > --- > drivers/scsi/hisi_sas/hisi_sas.h | 8 ++ > drivers/scsi/hisi_sas/hisi_sas_main.c | 163 > ++ > 2 files changed, 171 insertions(+) > Reviewed-by: Hannes Reinecke <h...@suse.com&

Re: [PATCH v2 1/8] hisi_sas: add internal abort main code

2016-08-24 Thread Hannes Reinecke
arry > --- > drivers/scsi/hisi_sas/hisi_sas.h | 8 ++ > drivers/scsi/hisi_sas/hisi_sas_main.c | 163 > ++++++ > 2 files changed, 171 insertions(+) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead

Re: [PATCH 2/2] Migrate zone cache from RB-Tree to arrays of descriptors

2016-08-22 Thread Hannes Reinecke
ve you measure the performance impact here? The main idea behind using an RB-tree is that each single element will fit in the CPU cache; using an array will prevent that. So we will increase the number of cache flushes, and most likely a performance penalty, too. Hence I'd rather like to see a performa

Re: [PATCH 2/2] Migrate zone cache from RB-Tree to arrays of descriptors

2016-08-22 Thread Hannes Reinecke
The main idea behind using an RB-tree is that each single element will fit in the CPU cache; using an array will prevent that. So we will increase the number of cache flushes, and most likely a performance penalty, too. Hence I'd rather like to see a performance measurement here before going down

Re: [PATCH v6 0/4] SCT Write Same

2016-08-22 Thread Hannes Reinecke
+- > include/linux/ata.h | 69 +++- > 2 files changed, 292 insertions(+), 57 deletions(-) > Thanks for doing this. It has been on my To-Do list for a long time, and it's good to see the UNMAP/TRIM SATL cleaned up finally. Cheers, Hannes -- Dr. Hannes Rei

Re: [PATCH v6 0/4] SCT Write Same

2016-08-22 Thread Hannes Reinecke
| 69 +++- > 2 files changed, 292 insertions(+), 57 deletions(-) > Thanks for doing this. It has been on my To-Do list for a long time, and it's good to see the UNMAP/TRIM SATL cleaned up finally. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Netw

Re: [PATCH v6 4/4] SCT Write Same handle ATA_DFLAG_PIO

2016-08-22 Thread Hannes Reinecke
& ATA_DFLAG_PIO)) > + tf->command = ATA_CMD_WRITE_LOG_EXT; > } > > tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_LBA48 | > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage

Re: [PATCH v6 4/4] SCT Write Same handle ATA_DFLAG_PIO

2016-08-22 Thread Hannes Reinecke
tf->command = ATA_CMD_WRITE_LOG_EXT; > } > > tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_LBA48 | > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de

Re: [PATCH v6 3/4] SCT Write Same / DSM Trim

2016-08-22 Thread Hannes Reinecke
A_PROT_NCQ; > @@ -3441,7 +3468,9 @@ static unsigned int ata_scsi_write_same_xlat(struct > ata_queued_cmd *qc) > tf->command = ATA_CMD_DSM; > } > } else { > - ata_format_sct_write_same(scmd, block, n_block); > + size = ata_format_sct_write_same(scmd, block, n_block); > + if (size != len) > + goto invalid_param_len; > > tf->hob_feature = 0; > tf->feature = 0; > Why is this not folded into the previous patches? This mostly patches code which you've already modified and/or initiated, right? Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)

Re: [PATCH v6 3/4] SCT Write Same / DSM Trim

2016-08-22 Thread Hannes Reinecke
68,9 @@ static unsigned int ata_scsi_write_same_xlat(struct > ata_queued_cmd *qc) > tf->command = ATA_CMD_DSM; > } > } else { > - ata_format_sct_write_same(scmd, block, n_block); > + size = ata_format_sct_write_same(scmd, block, n_block); > + if (size != len) > + goto invalid_param_len; > > tf->hob_feature = 0; > tf->feature = 0; > Why is this not folded into the previous patches? This mostly patches code which you've already modified and/or initiated, right? Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)

Re: [PATCH v6 1/4] libata: Safely overwrite attached page in WRITE SAME xlat

2016-08-22 Thread Hannes Reinecke
- > include/linux/ata.h | 26 -- > 2 files changed, 51 insertions(+), 31 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Network

Re: [PATCH v6 1/4] libata: Safely overwrite attached page in WRITE SAME xlat

2016-08-22 Thread Hannes Reinecke
-- > 2 files changed, 51 insertions(+), 31 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 9

Re: [PATCH v6 2/4] Add support for SCT Write Same

2016-08-22 Thread Hannes Reinecke
++--- > include/linux/ata.h | 43 ++ > 2 files changed, 213 insertions(+), 29 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de

Re: [PATCH v6 2/4] Add support for SCT Write Same

2016-08-22 Thread Hannes Reinecke
anged to honor the UNMAP flag -> TRIM, no UNMAP -> SCT. > v3: > - Demux UNMAP/TRIM from WRITE SAME > v2: > - Remove fugly ata hacking from sd.c > > drivers/ata/libata-scsi.c | 199 > +++--- > include/linux/ata.h |

Re: [PATCH] fcoe: provide translation table between Ethernet and FC port speeds

2016-08-19 Thread Hannes Reinecke
{ FC_PORTSPEED_10GBIT, SPEED_1 }, > + { FC_PORTSPEED_16GBIT, 16000 }, > + { FC_PORTSPEED_20GBIT, SPEED_2 }, > + { FC_PORTSPEED_25GBIT, SPEED_25000 }, > + { FC_PORTSPEED_32GBIT, 32000 }, > + { FC_PORTSPEED_40GBIT, SPEED_40000 }, > + { FC_PORTSPEED_50GBIT, SPEED

Re: [PATCH] fcoe: provide translation table between Ethernet and FC port speeds

2016-08-19 Thread Hannes Reinecke
> + { FC_PORTSPEED_16GBIT, 16000 }, > + { FC_PORTSPEED_20GBIT, SPEED_2 }, > + { FC_PORTSPEED_25GBIT, SPEED_25000 }, > + { FC_PORTSPEED_32GBIT, 32000 }, > + { FC_PORTSPEED_40GBIT, SPEED_4 }, > + { FC_PORTSPEED_50GBIT, SPEED_5 }, > +

Re: [PATCH] SAS: use sas_rphy instead of sas_end_device to obtain address.

2016-08-12 Thread Hannes Reinecke
sa driver has some sdevs handled by the SAS transport class (for the pass-through devices) and some sdevs (eg logical volumes) which are not. As 'is_sas_attached' only checks if the _host_ has the SAS transport class attached (which it will have), it will not work as expected for devices

Re: [PATCH] SAS: use sas_rphy instead of sas_end_device to obtain address.

2016-08-12 Thread Hannes Reinecke
sa driver has some sdevs handled by the SAS transport class (for the pass-through devices) and some sdevs (eg logical volumes) which are not. As 'is_sas_attached' only checks if the _host_ has the SAS transport class attached (which it will have), it will not work as expected for devices

Re: [PATCHv2 3/4] pci: Determine actual VPD size on first access

2016-08-10 Thread Hannes Reinecke
On 08/09/2016 08:12 PM, Alexander Duyck wrote: > On Tue, Aug 9, 2016 at 5:54 AM, Alexey Kardashevskiy <a...@ozlabs.ru> wrote: >> On 10/02/16 08:04, Bjorn Helgaas wrote: >>> On Wed, Jan 13, 2016 at 12:25:34PM +0100, Hannes Reinecke wrote: >>>> PCI-2.2 VP

Re: [PATCHv2 3/4] pci: Determine actual VPD size on first access

2016-08-10 Thread Hannes Reinecke
On 08/09/2016 08:12 PM, Alexander Duyck wrote: > On Tue, Aug 9, 2016 at 5:54 AM, Alexey Kardashevskiy wrote: >> On 10/02/16 08:04, Bjorn Helgaas wrote: >>> On Wed, Jan 13, 2016 at 12:25:34PM +0100, Hannes Reinecke wrote: >>>> PCI-2.2 VPD entries have a maximum s

Re: [PATCH v6 0/2] Block layer support ZAC/ZBC commands

2016-08-09 Thread Hannes Reinecke
On 08/05/2016 10:35 PM, Shaun Tancheff wrote: > On Tue, Aug 2, 2016 at 8:29 PM, Damien Le Moal <damien.lem...@hgst.com> wrote: >> Hannes, Shaun, >> >> Let me add some more comments. >> >>> On Aug 2, 2016, at 23:35, Hannes Reinecke <h...@suse.de&

Re: [PATCH v6 0/2] Block layer support ZAC/ZBC commands

2016-08-09 Thread Hannes Reinecke
On 08/05/2016 10:35 PM, Shaun Tancheff wrote: > On Tue, Aug 2, 2016 at 8:29 PM, Damien Le Moal wrote: >> Hannes, Shaun, >> >> Let me add some more comments. >> >>> On Aug 2, 2016, at 23:35, Hannes Reinecke wrote: >>> >>> On 08/01/2016 07:07 P

Re: [PATCH v6 0/2] Block layer support ZAC/ZBC commands

2016-08-02 Thread Hannes Reinecke
ourse we need to re-read the zone information on failure (and I thought I did that?). Plus the error information will be propagated via the usual mechanism, so they need to take care of updating any information in ->private_data. I'm perfectly fine with integrating your patches for the va

Re: [PATCH v6 0/2] Block layer support ZAC/ZBC commands

2016-08-02 Thread Hannes Reinecke
the zone information on failure (and I thought I did that?). Plus the error information will be propagated via the usual mechanism, so they need to take care of updating any information in ->private_data. I'm perfectly fine with integrating your patches for the various blkdev_XX callouts and a

Re: [PATCH] qla2xxx: setup data needed in ISR before setting up the ISR

2016-07-06 Thread Hannes Reinecke
t; the HBA. > > Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de> > --- > drivers/scsi/qla2xxx/qla_isr.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH] qla2xxx: setup data needed in ISR before setting up the ISR

2016-07-06 Thread Hannes Reinecke
t; the HBA. > > Signed-off-by: Johannes Thumshirn > --- > drivers/scsi/qla2xxx/qla_isr.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@

Re: [GIT PULL] SCSI fixes for 4.7-rc2

2016-06-13 Thread Hannes Reinecke
formant device, resulting in lots of unhappy customers until we've got the whitelist settled. Having to discuss with customers why Linux doesn't follow the specs is infinitely harder than discussing with customers whose _hardware_ doesn't follow the specs. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)

Re: [GIT PULL] SCSI fixes for 4.7-rc2

2016-06-13 Thread Hannes Reinecke
y problem that turns up, I think we're done. If we > get any more we can consider either blacklisting all CD type devices or > raising the conformance bar to SPC-3. > I'm fully with James here. The alternative would be to whitelist _every_ conformant device, resulting in l

Re: [PATCH v2] block: make sure big bio is splitted into at most 256 bvecs

2016-06-10 Thread Hannes Reinecke
the case of non-full bvecs/pages > block/blk-merge.c | 35 --- > 1 file changed, 32 insertions(+), 3 deletions(-) > Hmm. So everybody is suffering because someone _might_ be using bio_clone? Why can't we fixup bio_clone() (or the callers of which) to corr

Re: [PATCH v2] block: make sure big bio is splitted into at most 256 bvecs

2016-06-10 Thread Hannes Reinecke
; Hmm. So everybody is suffering because someone _might_ be using bio_clone? Why can't we fixup bio_clone() (or the callers of which) to correctly set the queue limits? Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)

Re: [PATCH 28/45] target: use bio op accessors

2016-06-06 Thread Hannes Reinecke
On 06/06/2016 05:40 PM, Mike Christie wrote: On 06/06/2016 01:46 AM, Hannes Reinecke wrote: On 06/05/2016 09:32 PM, mchri...@redhat.com wrote: From: Mike Christie <mchri...@redhat.com> Separate the op from the rq_flag_bits and have the target layer set/get the bio using bio_set_op

Re: [PATCH 28/45] target: use bio op accessors

2016-06-06 Thread Hannes Reinecke
On 06/06/2016 05:40 PM, Mike Christie wrote: On 06/06/2016 01:46 AM, Hannes Reinecke wrote: On 06/05/2016 09:32 PM, mchri...@redhat.com wrote: From: Mike Christie Separate the op from the rq_flag_bits and have the target layer set/get the bio using bio_set_op_attrs/bio_op. Signed-off

Re: [PATCH 41/45] block, drivers, fs: shrink bi_rw from long to int

2016-06-06 Thread Hannes Reinecke
ore.c | 2 +- > drivers/md/dm-flakey.c | 2 +- > drivers/md/raid5.c | 6 +++--- > fs/btrfs/check-integrity.c | 4 ++-- > fs/btrfs/inode.c | 2 +- > include/linux/blk_types.h | 2 +- > 6 files changed, 9 insertions(+), 9 deletions(-) > Reviewed-by

Re: [PATCH 41/45] block, drivers, fs: shrink bi_rw from long to int

2016-06-06 Thread Hannes Reinecke
| 2 +- > drivers/md/raid5.c | 6 +++--- > fs/btrfs/check-integrity.c | 4 ++-- > fs/btrfs/inode.c | 2 +- > include/linux/blk_types.h | 2 +- > 6 files changed, 9 insertions(+), 9 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Ha

Re: [PATCH 42/45] block, fs, drivers: remove REQ_OP compat defs and related code

2016-06-06 Thread Hannes Reinecke
e/trace/events/f2fs.h | 1 - > 6 files changed, 46 insertions(+), 63 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUS

Re: [PATCH 42/45] block, fs, drivers: remove REQ_OP compat defs and related code

2016-06-06 Thread Hannes Reinecke
ux/bio.h | 3 --- > include/linux/blk_types.h | 52 > + > include/linux/blkdev.h | 14 > include/linux/fs.h | 37 +--- > include/trace/events/f2fs.h | 1 - > 6 files changed, 46 in

Re: [PATCH 40/45] block: move bio io prio to a new field

2016-06-06 Thread Hannes Reinecke
bdev; > unsigned intbi_flags; /* status, command, etc */ > int bi_error; > - unsigned long bi_rw; /* bottom bits READ/WRITE, > - * top bits priority > - */ &

Re: [PATCH 40/45] block: move bio io prio to a new field

2016-06-06 Thread Hannes Reinecke
/ > int bi_error; > - unsigned long bi_rw; /* bottom bits READ/WRITE, > - * top bits priority > - */ > + unsigned long bi_rw; /* R

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