From: Damien Le Moal
For a zoned block device, sd_zbc_complete() handles zone write unlock
on completion of a REQ_OP_WRITE_ZEROES command but the zone write
locking is missing from sd_setup_write_zeroes_cmnd(). This patch fixes
this problem by locking the target zone of a REQ_OP_WRITE_ZEROES
requ
From: Damien Le Moal
For a zoned block device, sd_zbc_complete() handles zone write unlock on
completion of a REQ_OP_WRITE_ZEROES command but the zone write locking is
missing from sd_setup_write_zeroes_cmnd(). This patch fixes this problem by
locking the target zone of a REQ_OP_WRITE_ZEROES requ
From: Damien Le Moal
scsi_io_init() may fail, leaving a zone of a zoned block device locked.
Fix this by properly unlocking the write same request target zone if
scsi_io_init() fails.
Signed-off-by: Damien Le Moal
Cc: sta...@vger.kernel.org
---
drivers/scsi/sd.c | 4
1 file changed, 4 ins
From: Colin Ian King
iscsi_lookup_endpoint can potentially return null and in 9 out of
the 10 calls to this function a null return is checked, so I think
it is pertinent to perform a null check here too and return -EINVAL
as in the other null cases.
Detected by CoverityScan, CID#147282 ("Derefer
On Tue, May 02, 2017 at 08:33:15PM -0700, Nicholas A. Bellinger wrote:
> The larger target/iblock conversion patch looks like post v4.12 material
> at this point, so to avoid breakage wrt to existing LBPRZ behavior, I'll
> plan to push the following patch post -rc1.
I don't think this is safe. If
https://bugzilla.kernel.org/show_bug.cgi?id=176951
--- Comment #25 from Alberto Tiboni (a.tib...@gmail.com) ---
(In reply to Alberto Tiboni from comment #24)
> I can confirm issue is still here: update bios at 1.08, nothing changed!
>
> Tried Ubuntu and Lubuntu distro, 16.04, 16.10 and 17.04, bot
Hi!
> > However, *IN PRACTICE*, SATA STANDBY IMMEDIATE command completion
> > [often?] only indicates that the device is now switching to the target
> > power management state, not that it has reached the target state. Any
> > further device status inquires would return that it is in STANDBY mode
On Fri, 2017-05-05 at 14:17 -0500, Bryant G. Ly wrote:
> The driver is sending a response to the actual scsi op that was
> aborted by an abort task TM, while LIO is sending a response to
> the abort task TM.
>
> ibmvscsis_tgt does not send the response to the client until
> release_cmd time. The r
Made sure that ioctl commands return in case of a controller reset.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/commsup.c | 20 +---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
Added function that waits with a timeout for the ctrl to be up and running
after triggering an IOP reset. Also removed 30 sec sleep as it is not
needed.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/aacraid.h | 1 +
drivers/scsi/aacraid/src.c | 45
The default queue depth for non NATIVE RAW disks is calculated from the
number of fibs and number of disks or a max of 256. This causes poor disk
IO performance.
The fix is to set default qd based on the type of disks
(SATA -32 and SAS -64)
Signed-off-by: Raghava Aditya Renukunta
---
drivers/sc
Make sure that IOP and SOFT reset are enabled for both for both
arc and hba1000 controllers.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/linit.c | 77 +++-
1 file changed, 40 insertions(+), 37 deletions(-)
diff --git a/drivers/scsi/aa
This patchset primarily focuses on tweaking and hardening the controller
reset support for both ARC and HBA1000 devices. Now the driver can only
reset the controller thru eh reset. Included a srb memory fix and pci
dma allocation fix.
Raghava Aditya Renukunta (19):
[SCSI] aacraid: Remove GFP_DMA
Removed reference to Series-9 HBA and created arc ctrl check function.
Signed-off-by: Prasad B Munirathnam
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/aacraid.h | 13 -
drivers/scsi/aacraid/comminit.c | 18 --
drivers/scsi/aacraid/commsup.c |
Log the location of the scsi cmds before triggering a reset. This
information is useful for debugging.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/linit.c | 90 ++--
1 file changed, 53 insertions(+), 37 deletions(-)
diff --git a/drive
Update the driver version to 50834
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/aacraid.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h
index 58ccd2a..0995265 100644
--- a/drivers/scsi/aacra
The driver can now trigger IOP reset with a single reset mask. Removed
code that retrieves a reset_mask from the firmware.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/aacraid.h | 5 -
drivers/scsi/aacraid/src.c | 16 ++--
2 files changed, 6 insertions(+)
Check health does not need to reset the ctrl but just return the
controller health status.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/commsup.c | 15 ---
1 file changed, 15 deletions(-)
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.
Reworked IOP reset to remove unneeded variable and created a helper
function to notify fw of an imminent IOP reset.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/src.c | 16 +---
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/drivers/scsi/aacraid/src
Removed switch case and replaced with if mask checks. Moved KERNEL_PANIC
check to when bled is less than 0.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/src.c | 34 --
1 file changed, 12 insertions(+), 22 deletions(-)
diff --git a/drivers/scsi
The command thread checks the ctrl health periodically before sending
updates to the controller. The function that it uses is aac_check_health
which does more than get the health status.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/commsup.c | 4 ++--
1 file changed, 2 insert
The raw srb commands do not requires memory that in the ZONE_DMA
memory space. For 32bit srb commands use __GFP_DMA32 to limit the memory
to 32bit memory range (4GB).
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/commctrl.c | 13 ++---
1 file changed, 6 insertions(+),
Make sure that IOP and SOFT reset are enabled for both for both
arc and hba1000 controllers.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/linit.c | 77 +++-
1 file changed, 40 insertions(+), 37 deletions(-)
diff --git a/drivers/scsi/aa
Removed switch case and replaced with if mask checks. Moved KERNEL_PANIC
check to when bled is less than 0.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/src.c | 34 --
1 file changed, 12 insertions(+), 22 deletions(-)
diff --git a/drivers/scsi
Change the completion wait time for the fibs in the reset and abort
callback from 2 minutes to 15 seconds.
2 minutes is too long for waiting for completion.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/linit.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
di
The default queue depth for non NATIVE RAW disks is calculated from the
number of fibs and number of disks or a max of 256. This causes poor disk
IO performance.
The fix is to set default qd based on the type of disks
(SATA -32 and SAS -64)
Signed-off-by: Raghava Aditya Renukunta
---
drivers/sc
Added info and error messages in controller reset function to log
information about the status of the IOP/SOFT reset.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/src.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/aacraid/s
Added function that waits with a timeout for the ctrl to be up and running
after triggering an IOP reset. Also removed 30 sec sleep as it is not
needed.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/aacraid.h | 1 +
drivers/scsi/aacraid/src.c | 45
Log the status of the controller before issuing a reset.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/linit.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 0a8d303..3dea438 100644
--- a/drivers/s
Made sure that ioctl commands return in case of a controller reset.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/commsup.c | 20 +---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
Now the driver issues a soft reset and waits for the controller to be up
and running by periodically checking on the status of the controller
health registers. Also prevents ARC adapters from issuing soft reset if
IOP resets failed.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacrai
The driver changed the DMA consistent map after consistent memory was
allocated, this invalidated the IOMMU identity mapping. The fix was to
make sure that we set the DMA consistent mask setting once depending on
the controller card.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacra
Removed reference to Series-9 HBA and created arc ctrl check function.
Signed-off-by: Prasad B Munirathnam
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/aacraid.h | 13 -
drivers/scsi/aacraid/comminit.c | 18 --
drivers/scsi/aacraid/commsup.c |
Reworked IOP reset to remove unneeded variable and created a helper
function to notify fw of an imminent IOP reset.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/src.c | 16 +---
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/drivers/scsi/aacraid/src
The qd for ARC Native disks is calculated by dividing the max IO 1024
by the number of disks or 256 which ever is lower. This causes poor
disk IO performance.
The fix is set the qd based on the type of disk (SAS - 64 and SATA -
32).
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacra
Added info and error messages in controller reset function to log
information about the status of the IOP/SOFT reset.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/src.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/aacraid/s
The command thread checks the ctrl health periodically before sending
updates to the controller. The function that it uses is aac_check_health
which does more than get the health status.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/commsup.c | 4 ++--
1 file changed, 2 insert
Now the driver issues a soft reset and waits for the controller to be up
and running by periodically checking on the status of the controller
health registers. Also prevents ARC adapters from issuing soft reset if
IOP resets failed.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacrai
Change the completion wait time for the fibs in the reset and abort
callback from 2 minutes to 15 seconds.
2 minutes is too long for waiting for completion.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/linit.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
di
The driver can now trigger IOP reset with a single reset mask. Removed
code that retrieves a reset_mask from the firmware.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/aacraid.h | 5 -
drivers/scsi/aacraid/src.c | 16 ++--
2 files changed, 6 insertions(+)
This patchset primarily focuses on tweaking and hardening the controller
reset support for both ARC and HBA1000 devices. Now the driver can only
reset the controller thru eh reset. Included a srb memory fix and pci
dma allocation fix.
Raghava Aditya Renukunta (19):
[SCSI] aacraid: Remove GFP_DMA
Log the location of the scsi cmds before triggering a reset. This
information is useful for debugging.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/linit.c | 90 ++--
1 file changed, 53 insertions(+), 37 deletions(-)
diff --git a/drive
The qd for ARC Native disks is calculated by dividing the max IO 1024
by the number of disks or 256 which ever is lower. This causes poor
disk IO performance.
The fix is set the qd based on the type of disk (SAS - 64 and SATA -
32).
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacra
The raw srb commands do not requires memory that in the ZONE_DMA
memory space. For 32bit srb commands use __GFP_DMA32 to limit the memory
to 32bit memory range (4GB).
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/commctrl.c | 13 ++---
1 file changed, 6 insertions(+),
The driver changed the DMA consistent map after consistent memory was
allocated, this invalidated the IOMMU identity mapping. The fix was to
make sure that we set the DMA consistent mask setting once depending on
the controller card.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacra
Check health does not need to reset the ctrl but just return the
controller health status.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/commsup.c | 15 ---
1 file changed, 15 deletions(-)
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.
Log the status of the controller before issuing a reset.
Signed-off-by: Raghava Aditya Renukunta
---
drivers/scsi/aacraid/linit.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 0a8d303..3dea438 100644
--- a/drivers/s
47 matches
Mail list logo