Re: [PATCH 3/3] scsi: qla2xxx: calculate dump size if EFT alloc fails

2019-08-13 Thread Hannes Reinecke
On 8/13/19 10:31 PM, Martin Wilck wrote: > From: Martin Wilck > > It seems right to try and calculate the dump size properly > even in the error case, before allocating the dump buffers. > > Cc: Joe Carnuccio > Cc: Quinn Tran > Cc: Himanshu Madhani > Cc: Bart Van Assche > Signed-off-by: Mart

Re: [PATCH 2/3] scsi: qla2xxx: unset RCE/EFT fields in failure case

2019-08-13 Thread Hannes Reinecke
On 8/13/19 10:31 PM, Martin Wilck wrote: > From: Martin Wilck > > Reset ha->rce, ha->eft and the respective dma fields if > the buffers aren't mapped for some reason. Also, treat > both failure cases (allocation and initialization failure) > equally. The next patch modifies the failure behavior >

Re: [PATCH 1/3] scsi: qla2xxx: qla2x00_alloc_fw_dump: set ha->eft

2019-08-13 Thread Hannes Reinecke
On 8/13/19 10:31 PM, Martin Wilck wrote: > From: Martin Wilck > > In qla2x00_alloc_fw_dump(), an existing EFT buffer (e.g. from > previous invocation of qla2x00_alloc_offload_mem()) is freed. > The buffer is then re-allocated, but without setting the eft and > eft_dma fields to the new values. >

Re: [PATCH v3 05/20] sg: bitops in sg_device

2019-08-13 Thread Douglas Gilbert
On 2019-08-12 10:23 a.m., Christoph Hellwig wrote: On Wed, Aug 07, 2019 at 01:42:37PM +0200, Douglas Gilbert wrote: + unsigned long fdev_bm[1]; /* see SG_FDEV_* defines above */ No need for the array of one here. Justification here: https://www.spinics.net/lists/linux-scsi/msg

Re: [PATCH v3 09/20] sg: sg_allow_if_err_recovery and renames

2019-08-13 Thread Douglas Gilbert
On 2019-08-12 10:31 a.m., Christoph Hellwig wrote: On Wed, Aug 07, 2019 at 01:42:41PM +0200, Douglas Gilbert wrote: Add sg_allow_if_err_recover() to do checks common to several entry points. Replace retval with either res or ret. Rename sg_finish_rem_req() to sg_finish_scsi_blk_rq(). Rename sg_n

Re: [PATCH v3 11/20] sg: replace rq array with lists

2019-08-13 Thread Douglas Gilbert
On 2019-08-12 10:35 a.m., Christoph Hellwig wrote: On Wed, Aug 07, 2019 at 01:42:43PM +0200, Douglas Gilbert wrote: Remove the fixed size array of 16 request elements per file descriptor and replace with two linked lists per file descriptor. One list is for active commands, the other list is a f

Re: [PATCH v3 03/20] sg: sg_log and is_enabled

2019-08-13 Thread Douglas Gilbert
On 2019-08-12 10:23 a.m., Christoph Hellwig wrote: On Wed, Aug 07, 2019 at 01:42:35PM +0200, Douglas Gilbert wrote: Replace SCSI_LOG_TIMEOUT macros with SG_LOG macros across the driver. The definition of SG_LOG calls SCSI_LOG_TIMEOUT if given and derived pointers are non-zero, calls pr_info othe

[PATCH 3/3] scsi: qla2xxx: calculate dump size if EFT alloc fails

2019-08-13 Thread Martin Wilck
From: Martin Wilck It seems right to try and calculate the dump size properly even in the error case, before allocating the dump buffers. Cc: Joe Carnuccio Cc: Quinn Tran Cc: Himanshu Madhani Cc: Bart Van Assche Signed-off-by: Martin Wilck --- drivers/scsi/qla2xxx/qla_init.c | 5 +++-- 1 f

[PATCH 0/3] scsi: qla2xxx: fixes for FW trace/dump buffers

2019-08-13 Thread Martin Wilck
From: Martin Wilck Hi Himanshu, hi Martin, Please consider this series for merging. The first patch of the series is a fix for a memory corruption we saw in a test where qla2xxx was loaded/unloaded repeatedly under memory pressure. The other ones are consistency fixes that occured to me while w

Re: [PATCH 17/28] ia64: remove the hpsim platform

2019-08-13 Thread Vaden, Tom (HPE Server OS Architecture)
On 8/13/19 3:25 AM, Christoph Hellwig wrote: > The hpsim platform supports the HP IA64 simulator which was useful as a > bring up platform. But it is fairly non-standard vs real IA64 system > in that it for example doesn't support ACPI. It also comes with a > whole bunch of simulator specific d

[PATCH 1/3] scsi: qla2xxx: qla2x00_alloc_fw_dump: set ha->eft

2019-08-13 Thread Martin Wilck
From: Martin Wilck In qla2x00_alloc_fw_dump(), an existing EFT buffer (e.g. from previous invocation of qla2x00_alloc_offload_mem()) is freed. The buffer is then re-allocated, but without setting the eft and eft_dma fields to the new values. Fixes: a28d9e4ef997 "scsi: qla2xxx: Add support for mu

[PATCH 2/3] scsi: qla2xxx: unset RCE/EFT fields in failure case

2019-08-13 Thread Martin Wilck
From: Martin Wilck Reset ha->rce, ha->eft and the respective dma fields if the buffers aren't mapped for some reason. Also, treat both failure cases (allocation and initialization failure) equally. The next patch modifies the failure behavior slightly again. Fixes: ad0a0b01f088 "scsi: qla2xxx: F