Re: [PATCH 1/1] iscsi: fix regression caused by session lock patch

2016-11-07 Thread Guilherme G. Piccoli
On 11/07/2016 04:15 PM, Chris Leech wrote: > Hi, > > I'm kicking this old thread because I don't think this ever got > resolved. I wish I had more info, but it seems to involve target > specific behavior that hasn't come up in our test labs. Thanks very much for reopening this thread! We have th

Re: [PATCH 1/1] iscsi: fix regression caused by session lock patch

2016-11-11 Thread Guilherme G. Piccoli
On 11/09/2016 03:21 AM, Chris Leech wrote: > On Mon, Nov 07, 2016 at 04:23:10PM -0200, Guilherme G. Piccoli wrote: >> >> Sure! Count on us to test any patches. I guess the first step is to >> reproduce on upstream right? We haven't tested specifically this >> sce

Re: [PATCH] scsi: do not requeue requests unaligned with device sector size

2016-12-20 Thread Guilherme G. Piccoli
leted 4096 of 4096 bytes > [...] sd 0:0:0:0: [sda] tag#0 8 sectors total, 3072 bytes done. > [...] sd 0:0:0:0: [sda] tag#0 checking 3072 bytes for alignment > (sector size 4096, remainder 3072, resid 1024) > [...] sd 0:0:0:0: [sda] tag#0 sd_done: completed

[PATCH] mpt3sas: Force request partial completion alignment

2016-12-28 Thread Guilherme G. Piccoli
: Guilherme G. Piccoli Signed-off-by: Ram Pai --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c index b5c966e..55332a3 100644 --- a/drivers/scsi/mpt3sas

Re: [PATCH] mpt3sas: Force request partial completion alignment

2017-01-23 Thread Guilherme G. Piccoli
On 01/23/2017 07:05 AM, Sreekanth Reddy wrote: > On Wed, Dec 28, 2016 at 6:21 PM, Guilherme G. Piccoli > wrote: >> From: Ram Pai >> >> The firmware or device, possibly under a heavy I/O load, can return >> on a partial unaligned boundary. Scsi-ml expects these req

[PATCH v2] mpt3sas: Force request partial completion alignment

2017-01-24 Thread Guilherme G. Piccoli
: Guilherme G. Piccoli Signed-off-by: Ram Pai --- v1->v2: * Improved printk, by showing some variables too [suggested by Sreekanth]. drivers/scsi/mpt3sas/mpt3sas_scsih.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/s

Re: [PATCH v2] mpt3sas: Force request partial completion alignment

2017-01-26 Thread Guilherme G. Piccoli
On 01/25/2017 09:46 PM, Martin K. Petersen wrote: >>>>>> "Guilherme" == Guilherme G Piccoli writes: > > Hi Guilherme, Hi Martin, thanks for the review! > > diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c > b/drivers/scsi/mpt3sas/mpt3sas_scsi

[PATCH v3] mpt3sas: Force request partial completion alignment

2017-01-26 Thread Guilherme G. Piccoli
: Guilherme G. Piccoli Signed-off-by: Ram Pai Acked-by: Sreekanth Reddy --- v2->v3: * Changed division to round_down() [suggestion by Martin]. drivers/scsi/mpt3sas/mpt3sas_scsih.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/driv

Re: [PATCH v2] mpt3sas: Force request partial completion alignment

2017-01-26 Thread Guilherme G. Piccoli
On 01/26/2017 03:02 PM, Ram Pai wrote: > On Thu, Jan 26, 2017 at 11:31:53AM -0200, Guilherme G. Piccoli wrote: >> On 01/25/2017 09:46 PM, Martin K. Petersen wrote: >>>>>>>> "Guilherme" == Guilherme G Piccoli >>>>>>>> w

Re: [PATCH v3] mpt3sas: Force request partial completion alignment

2017-02-01 Thread Guilherme G. Piccoli
On 01/02/2017 01:34, Martin K. Petersen wrote: >>>>>> "Guilherme" == Guilherme G Piccoli writes: > > Guilherme> The firmware or device, possibly under a heavy I/O load, can > Guilherme> return on a partial unaligned boundary. Scsi-ml expects these

Re: [PATCH 1/1] iscsi: fix regression caused by session lock patch

2017-02-06 Thread Guilherme G. Piccoli
On 06/02/2017 15:27, Chris Leech wrote: > - Original Message - >> On 09/11/2016 03:21, Chris Leech wrote: >>> On Mon, Nov 07, 2016 at 04:23:10PM -0200, Guilherme G. Piccoli wrote: >>>> >>>> Sure! Count on us to test any patches. I guess the first s

Re: [PATCH v4] sd: Check for unaligned partial completion

2017-02-16 Thread Guilherme G. Piccoli
On 15/02/2017 05:06, Ram Pai wrote: > On Wed, Feb 15, 2017 at 03:48:52PM +0900, Damien Le Moal wrote: >> Christoph, >> >> On 2/15/17 15:34, Christoph Hellwig wrote: >>> this looks reasonable, but we should ask Guilherme and Ram to confirm >>> it fixes their originally reported issue. I've added th

Re: [PATCH] libiscsi: add lock around task lists to fix list corruption regression

2017-02-24 Thread Guilherme G. Piccoli
below, most nitpicks heheh Feel free to accept or not the suggestions! Also, you can add my: Reviewed-by: Guilherme G. Piccoli > > - Chris Leech > > - Original Message - >> There's a rather long standing regression from commit >> 659743b [SCSI] libiscs

Re: [PATCH v2] libiscsi: add lock around task lists to fix list corruption regression

2017-02-28 Thread Guilherme G. Piccoli
Thanks very much Chris, really good patch. Hopefully it can reach 4.11! Cheers, Guilherme

Re: [PATCH v6] sd: Check for unaligned partial completion

2017-03-01 Thread Guilherme G. Piccoli
Looks good, thanks for the patch. Reviewed-by: Guilherme G. Piccoli Cheers, Guilherme

Re: [PATCH 03/29] scsi: aacraid: Fix hang in kdump

2017-12-21 Thread Guilherme G. Piccoli
1dd532901e (scsi: aacraid: Reload offlined drives after > controller reset) > Cc: > Reported-by: Guilherme G. Piccoli > Tested-by: Guilherme G. Piccoli > Fixes: a2d0321dd532901e (scsi: aacraid: Reload offlined drives after > controller reset) > Signed-off-

Re: [PATCH 00/28] aacraid: Refactor for sas transport and bug fixes

2017-12-22 Thread Guilherme G. Piccoli
On 12/21/2017 03:33 PM, Raghava Aditya Renukunta wrote: > This patchset primarily lays the foundation for adding sas transport > support to the aacraid driver. Being said these patches are mainly code > refactors, bug fixes and improvements. I was thinking...if possible, and just in case you plan

Re: [PATCH 03/29] scsi: aacraid: Fix hang in kdump

2017-12-22 Thread Guilherme G. Piccoli
1dd532901e (scsi: aacraid: Reload offlined drives after > controller reset) > Cc: > Reported-by: Guilherme G. Piccoli (Sorry in advance for flooding the thread heheh) I guess it'd be more appropriate to: Reported-by: Douglas Miller Although I've tested it, Doug isolated

Re: [PATCH 00/28] aacraid: Refactor for sas transport and bug fixes

2017-12-27 Thread Guilherme G. Piccoli
On 12/26/2017 11:27 PM, Raghava Aditya Renukunta wrote: > [...] >> I was thinking...if possible, and just in case you plan to send a V2 >> after Bart's comments (or any other future reviews this patchset gets), >> how about splitting in 2 patchsets, one for bug fixes and the other for >> improvemen

Re: [PATCH] scsi: fix the dma_max_mapping_size call

2019-07-22 Thread Guilherme G. Piccoli
Hi Christoph, thanks for the fix. I just faced a crash[0] booting v5.3-rc1 in a KVM guest, and your patch fixed it. Feel free to add: Tested-by: Guilherme G. Piccoli Cheers, Guilherme [0] BUG: kernel NULL pointer dereference, address: #PF: supervisor read access in kernel

nvmf question - synchronization between target/initiator regarding partitions

2017-08-07 Thread Guilherme G. Piccoli
We observed that it's possible to perform partition operations in both nvmf target and initiator block devices, like creating and deleting partitions. But there is no sync mechanism between target and initiator regarding the partitions operations. After creating a partition on initiator, for examp

Re: nvmf question - synchronization between target/initiator regarding partitions

2017-08-07 Thread Guilherme G. Piccoli
Thanks for your feedback Hannes, agreed! Cheers, Guilherme

Re: nvmf question - synchronization between target/initiator regarding partitions

2017-08-10 Thread Guilherme G. Piccoli
On 08/10/2017 06:16 AM, Christoph Hellwig wrote: > On Mon, Aug 07, 2017 at 02:29:47PM -0300, Guilherme G. Piccoli wrote: >> Thanks for your feedback Hannes, agreed! > > And btw, you'll see similar results with the SCSI target or nbd, > so it's not really nvme specific

[PATCH] scsi: aacraid: fix PCI error recovery path

2017-04-06 Thread Guilherme G. Piccoli
procedure was able to recover fine. Fixes: 5c63f7f710bd ("aacraid: Added EEH support") Cc: sta...@vger.kernel.org # v4.6+ Signed-off-by: Guilherme G. Piccoli --- drivers/scsi/aacraid/aacraid.h | 11 --- drivers/scsi/aacraid/commsup.c | 3 ++- 2 files changed, 10 insertions(+), 4

Re: [PATCH 02/15] lpfc: Fix system crash when port is reset.

2017-05-15 Thread Guilherme G. Piccoli
Hi James and Dick, thanks for this patch. We were investigating a pretty similar issue, and we raised a patch that looks like yours. Since you sent this one, we reviewed and seems it's missing a hunk to prevent the issue we are dealing here, in PCI error recovery. Please see the attached patch. Ba

[PATCH] lpfc: Fix NULL pointer dereference during PCI error recovery

2017-05-17 Thread Guilherme G. Piccoli
estroy the queues on adapter resets, like in PCI error recovery path, we need the validation present on this patch in order to avoid a NULL pointer dereference when trying to flush commands of ELS wq, after it has been destroyed (which would lead to a kernel oops). Tested-by: Raphael Silva Signed

Re: [PATCH v2 02/15] lpfc: Fix system crash when port is reset.

2017-05-17 Thread Guilherme G. Piccoli
On 05/17/2017 03:49 PM, James Smart wrote: > Your patch is still needed. Can you repost your patch with a new > subject and add my signature: > > Signed-off-by: James Smart > > Sorry, I didn't see it to roll it into the set. No problem James, already sent it to linux-scsi: https://marc.info/?

Re: [PATCH] lpfc: Fix NULL pointer dereference during PCI error recovery

2017-05-18 Thread Guilherme G. Piccoli
On 05/17/2017 09:21 PM, Martin K. Petersen wrote: > > Guilherme, > >> Recent commit on patchset "lpfc updates for 11.2.0.14" fixed an issue >> about dereferencing a NULL pointer on port reset. The specific commit, >> named "lpfc: Fix system crash when port is reset.", is missing a check >> agains

[PATCH] scsi: lpfc: Avoid NULL pointer dereference in lpfc_els_abort()

2017-05-24 Thread Guilherme G. Piccoli
the queue in case of a NULL pring. Also, this patch converts return type of lpfc_els_abort() from int to void, since it's not checked anywhere. Reported-by: Harsha Thyagaraja Reported-by: Naresh Bannoth Tested-by: Raphael Silva Signed-off-by: Guilherme G. Piccoli --- * This patch was re

[PATCH] scsi: lpfc: Fix crash on PCI hotplug remove path

2017-05-28 Thread Guilherme G. Piccoli
refactor made on commit 895427bd012c ("scsi: lpfc: NVME Initiator: Base modifications"). Fixes: 895427bd012c ("scsi: lpfc: NVME Initiator: Base modifications") Reported-by: Naresh Bannoth Signed-off-by: Guilherme G. Piccoli --- This patch was rebased against Martin's 4.12/s

Should a raid-0 array immediately stop if a component disk is removed?

2018-04-27 Thread Guilherme G. Piccoli
Hello, we've noticed an interesting behavior when using a raid-0 md array. Suppose we have a 2-disk raid-0 array that has a mount point set - in our tests, we've used ext4 filesystem. If we remove one of the component disks via sysfs[0], userspace is notified, but mdadm tool fails to stop the array

Re: Should a raid-0 array immediately stop if a component disk is removed?

2018-04-27 Thread Guilherme G. Piccoli
Thanks for your quick reply Anthony! Inline comments below: On 27/04/2018 19:11, Wols Lists wrote: > On 27/04/18 22:49, Guilherme G. Piccoli wrote: > [...] > Sounds like you're not using mdadm to remove the disk. So why do you > expect mdadm to stop the array immediately

Re: smp-induced oops/NULL pointer dereference in mpt3sas, from kernel >= 4.11

2017-09-04 Thread Guilherme G. Piccoli
On 09/04/2017 05:44 PM, Guilherme G. Piccoli wrote: > [Hopefully this messages gets threaded properly...] And of course, I forgot to CC linux-scsi heheh Sorry! > > Chaitra, the following 4 patches fix this issue (the last one is really > the fix, the others are part of

[PATCH] scsi: aacraid: Add a small delay after IOP reset

2017-09-19 Thread Guilherme G. Piccoli
Add periodic checks to see IOP reset status") Cc: sta...@vger.kernel.org # v4.13+ Signed-off-by: Guilherme G. Piccoli --- drivers/scsi/aacraid/src.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/aacraid/src.c b/drivers/scsi/aacraid/src.c index 48c2b2b34b72..0c9361c87ec

Re: [PATCH] scsi: aacraid: Add a small delay after IOP reset

2017-09-19 Thread Guilherme G. Piccoli
On 09/19/2017 12:37 PM, Christoph Hellwig wrote: > On Tue, Sep 19, 2017 at 12:11:55PM -0300, Guilherme G. Piccoli wrote: >> src_writel(dev, MUnit.IDR, IOP_SRC_RESET_MASK); >> + >> +msleep(5000); > > src_writel is a writel, and thus a posted MMIO write. You&

Re: [PATCH] scsi: aacraid: Add a small delay after IOP reset

2017-09-19 Thread Guilherme G. Piccoli
On 09/19/2017 12:52 PM, Christoph Hellwig wrote: > On Tue, Sep 19, 2017 at 12:49:21PM -0300, Guilherme G. Piccoli wrote: >> On 09/19/2017 12:37 PM, Christoph Hellwig wrote: >>> On Tue, Sep 19, 2017 at 12:11:55PM -0300, Guilherme G. Piccoli wrote: >>>>

Re: [PATCH] scsi: aacraid: Add a small delay after IOP reset

2017-09-19 Thread Guilherme G. Piccoli
On 09/19/2017 02:05 PM, James Bottomley wrote: > Actually, the whole problem sounds like a posted write. Likely the > write that causes the reset doesn't get flushed until the read checking > if the reset has succeeded, which might explain the 100% initial > failure. Why not throw away that first

Re: [PATCH] scsi: aacraid: Add a small delay after IOP reset

2017-09-25 Thread Guilherme G. Piccoli
On 09/21/2017 01:19 PM, Dave Carroll wrote: >> [...] >> --- > Acked-by: Dave Carroll > Thanks Dave! James/Martin, am I expected to send a v2 with some change? Perhaps with Dave's ack? Sorry to annoy, thanks in advance for any advice! Cheers, Guilherme

[PATCH 3/3] scsi: aacraid: Prevent crash in case of free interrupt during scsi EH path

2017-11-17 Thread Guilherme G. Piccoli
e IRQ, then we free other resources. No functional change intended. Signed-off-by: Guilherme G. Piccoli --- drivers/scsi/aacraid/commsup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c index 2abe8fd83494..bec9f31

[PATCH 1/3] scsi: aacraid: Check for PCI state of device in a generic way

2017-11-17 Thread Guilherme G. Piccoli
on-dependent of arch configs - also, it makes the code cleaner. Signed-off-by: Guilherme G. Piccoli --- drivers/scsi/aacraid/commsup.c | 33 ++--- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.

[PATCH 2/3] scsi: aacraid: Perform initialization reset only once

2017-11-17 Thread Guilherme G. Piccoli
case of scsi EH path, this patch adds a field to aac_dev struct to keep per-adapter track of the init reset request - once it's done, we set it to false and don't proactively reset anymore in case of reinitializations. Signed-off-by: Guilherme G. Piccoli --- drivers/scsi/aacraid/aacra

[PATCH 0/3] Some fixes to aacraid

2017-11-17 Thread Guilherme G. Piccoli
This series presents 3 small fixes for aacraid driver. The most important is the crash prevention, IMHO. Tested them against v4.14. Guilherme G. Piccoli (3): scsi: aacraid: Check for PCI state of device in a generic way scsi: aacraid: Perform initialization reset only once scsi: aacraid