RE: megaraid_sas: "FW in FAULT state!!", how to get more debug output? [BKO63661]

2015-07-15 Thread Jean Delvare
Le Friday 10 July 2015 à 19:46 +0530, Kashyap Desai a écrit : > > > > I am about to commit the patch that was successfully tested by the > > customer on > > SLES 12, but I'm a bit confused. The upstream patch you referred to is: > > > > https://git.kernel.org/cgit/linux/kernel/git/jejb/scsi.git/com

[PATCH v1 4/4] libiscsi: Use scsi helper to set information descriptor

2015-07-15 Thread Sagi Grimberg
In case encountered a PI error, use scsi_set_sense_information instead of open coding information descriptor format. Signed-off-by: Sagi Grimberg --- drivers/scsi/libiscsi.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libisc

[PATCH v1 3/4] target: Return descriptor format sense data in case the LU spans 64bit sectors

2015-07-15 Thread Sagi Grimberg
In case a LU spans 64bit sectors, fixed size sense data information field is only 32 bits which means the sector information will be truncated. Thus, if the LU spans 64bit sectors, use descriptor format sense data to correctly report sector information. Reported-by: Christoph Hellwig Signed-off-

[PATCH v1 1/4] scsi: Fix wrong additional sense length in descriptor format

2015-07-15 Thread Sagi Grimberg
The sense header additional sense length should be the accumulated size of all the descriptors. Information descriptor size is 12 bytes. When setting the additional sense length we should add 0xc instead of 0xa. Signed-off-by: Sagi Grimberg Reviewed-by: Hannes Reinecke Reviewed-by: Martin K. Pet

[PATCH v1 0/4] Descriptor format sense data

2015-07-15 Thread Sagi Grimberg
This small patchset addresses some issues with descriptor format sense data. Patch 1 fixes wrong additional sense length for descriptor format information field. Patch 2 protects against buffer overflow in scsi_set_information_sense (reported by Hannes). Patch 3 converts the target stack to repo

Re: [PATCH v1 3/4] target: Return descriptor format sense data in case the LU spans 64bit sectors

2015-07-15 Thread Hannes Reinecke
On 07/15/2015 09:55 AM, Sagi Grimberg wrote: > In case a LU spans 64bit sectors, fixed size sense data information > field is only 32 bits which means the sector information will be truncated. > > Thus, if the LU spans 64bit sectors, use descriptor format sense data to > correctly report sector in

Re: [PATCH v1 4/4] libiscsi: Use scsi helper to set information descriptor

2015-07-15 Thread Hannes Reinecke
On 07/15/2015 09:55 AM, Sagi Grimberg wrote: > In case encountered a PI error, use scsi_set_sense_information > instead of open coding information descriptor format. > > Signed-off-by: Sagi Grimberg > --- > drivers/scsi/libiscsi.c | 9 +++-- > 1 file changed, 3 insertions(+), 6 deletions(-)

[PATCH v1 2/4] scsi: Protect against buffer possible overflow in scsi_set_sense_information

2015-07-15 Thread Sagi Grimberg
Make sure that the input sense buffer has sufficient length to fit the information descriptor (12 additional bytes). Modify scsi_set_sense_information to receive the sense buffer length and adjust its callers scsi target and libata. Reported-by: Hannes Reinecke Signed-off-by: Sagi Grimberg Revie

Re: [PATCH v1 1/4] scsi: Fix wrong additional sense length in descriptor format

2015-07-15 Thread Christoph Hellwig
On Wed, Jul 15, 2015 at 10:55:36AM +0300, Sagi Grimberg wrote: > The sense header additional sense length should be the accumulated > size of all the descriptors. Information descriptor size is 12 bytes. > When setting the additional sense length we should add 0xc instead of > 0xa. > > Signed-off-

Re: [PATCH v1 2/4] scsi: Protect against buffer possible overflow in scsi_set_sense_information

2015-07-15 Thread Christoph Hellwig
On Wed, Jul 15, 2015 at 10:55:37AM +0300, Sagi Grimberg wrote: > Make sure that the input sense buffer has sufficient length > to fit the information descriptor (12 additional bytes). > Modify scsi_set_sense_information to receive the sense buffer > length and adjust its callers scsi target and lib

Re: [PATCH v1 3/4] target: Return descriptor format sense data in case the LU spans 64bit sectors

2015-07-15 Thread Christoph Hellwig
On Wed, Jul 15, 2015 at 10:55:38AM +0300, Sagi Grimberg wrote: > In case a LU spans 64bit sectors, fixed size sense data information > field is only 32 bits which means the sector information will be truncated. > > Thus, if the LU spans 64bit sectors, use descriptor format sense data to > correctl

Re: [PATCH v1 4/4] libiscsi: Use scsi helper to set information descriptor

2015-07-15 Thread Christoph Hellwig
On Wed, Jul 15, 2015 at 10:55:39AM +0300, Sagi Grimberg wrote: > In case encountered a PI error, use scsi_set_sense_information > instead of open coding information descriptor format. > > Signed-off-by: Sagi Grimberg Looks good, Reviewed-by: Christoph Hellwig -- To unsubscribe from this list:

[PATCH] dm-mpath: always return reservation conflict

2015-07-15 Thread Hannes Reinecke
If dm-mpath encounters an reservation conflict it should not fail the path (as communication with the target is not affected) but should rather retry on another path. However, in doing so we might be inducing a ping-pong between paths, with no guarantee of any forward progress. And arguably a reser

Re: [PATCH] dm-mpath: always return reservation conflict

2015-07-15 Thread James Bottomley
On Wed, 2015-07-15 at 13:23 +0200, Hannes Reinecke wrote: > If dm-mpath encounters an reservation conflict it should not > fail the path (as communication with the target is not affected) > but should rather retry on another path. > However, in doing so we might be inducing a ping-pong between > pa

Re: [PATCH] dm-mpath: always return reservation conflict

2015-07-15 Thread Hannes Reinecke
On 07/15/2015 01:35 PM, James Bottomley wrote: > On Wed, 2015-07-15 at 13:23 +0200, Hannes Reinecke wrote: >> If dm-mpath encounters an reservation conflict it should not >> fail the path (as communication with the target is not affected) >> but should rather retry on another path. >> However, in d

Re: [PATCH] dm-mpath: always return reservation conflict

2015-07-15 Thread Christoph Hellwig
An array can't issue a reservation, the initiator needs to register it. Right now the only way to do it is through SG_IO passthrough, which is a best luck effort it I/O isn't also using SG_IO and can't be properly supported because of that. However I will submit an in-kernel reservation API soon

Re: [PATCH] dm-mpath: always return reservation conflict

2015-07-15 Thread James Bottomley
On Wed, 2015-07-15 at 13:52 +0200, Hannes Reinecke wrote: > On 07/15/2015 01:35 PM, James Bottomley wrote: > > On Wed, 2015-07-15 at 13:23 +0200, Hannes Reinecke wrote: > >> If dm-mpath encounters an reservation conflict it should not > >> fail the path (as communication with the target is not affe

Re: [PATCH] dm-mpath: always return reservation conflict

2015-07-15 Thread Hannes Reinecke
On 07/15/2015 01:56 PM, Christoph Hellwig wrote: > An array can't issue a reservation, the initiator needs to register > it. Right now the only way to do it is through SG_IO passthrough, > which is a best luck effort it I/O isn't also using SG_IO and can't > be properly supported because of that.

Re: [PATCH] dm-mpath: always return reservation conflict

2015-07-15 Thread Hannes Reinecke
On 07/15/2015 02:01 PM, James Bottomley wrote: > On Wed, 2015-07-15 at 13:52 +0200, Hannes Reinecke wrote: >> On 07/15/2015 01:35 PM, James Bottomley wrote: >>> On Wed, 2015-07-15 at 13:23 +0200, Hannes Reinecke wrote: If dm-mpath encounters an reservation conflict it should not fail the

[PATCH] scsi: fix hang in scsi error handling

2015-07-15 Thread Kevin Groeneveld
With the following setup/steps I can consistently trigger the scsi host to hang requiring a reboot: 1. iMX6Q processor with built in AHCI compatible SATA host 2. SATA port multiplier in CBS mode connected to iMX6Q 3. HDD connected to port multiplier 4. CDROM connected to port multiplier 5. trigger

Re: dm-mpath: always return reservation conflict

2015-07-15 Thread Mike Snitzer
On Wed, Jul 15 2015 at 8:15am -0400, Hannes Reinecke wrote: > On 07/15/2015 02:01 PM, James Bottomley wrote: > > On Wed, 2015-07-15 at 13:52 +0200, Hannes Reinecke wrote: > >> On 07/15/2015 01:35 PM, James Bottomley wrote: > >>> On Wed, 2015-07-15 at 13:23 +0200, Hannes Reinecke wrote: > If

Re: [PATCH v3] [SCSI] mpt2sas, mpt3sas: Abort initialization if no memory I/O resources detected

2015-07-15 Thread Timothy Pearson
On 07/15/2015 01:24 AM, Sreekanth Reddy wrote: > On Tue, Jul 14, 2015 at 10:36:58PM -0700, Yinghai Lu wrote: >> On Tue, Jul 14, 2015 at 9:49 PM, Sreekanth Reddy >> wrote: >>> Driver crashes if the BIOS do not set up at least one >>> memory I/O resource. This failure can happen if the device is too

Re: [PATCH v1 3/4] target: Return descriptor format sense data in case the LU spans 64bit sectors

2015-07-15 Thread Bart Van Assche
On 07/15/15 00:55, Sagi Grimberg wrote: +bool target_sense_desc_format(struct se_device *dev) +{ + return dev->transport->get_blocks(dev) > 0xULL; +} Please consider to use U32_MAX instead of 0xULL since that would make this function easier to read and to verify. Bart.

Caro User Account Mail:

2015-07-15 Thread Maria Fernanda Demarchi
Caro User Account Mail: Sua caixa de correio excedeu o limite de armazenamento que é de 20 GB como definido pelo administrador, que está actualmente em execução em 20,9 GB e você pode não ser capaz para enviar ou receber novas mensagens até que volte a validar a sua caixa de correio. Para volta

Re: [PATCH v3] [SCSI] mpt2sas, mpt3sas: Abort initialization if no memory I/O resources detected

2015-07-15 Thread Bjorn Helgaas
On Wed, Jul 15, 2015 at 08:52:13AM -0500, Timothy Pearson wrote: > On 07/15/2015 01:24 AM, Sreekanth Reddy wrote: > > On Tue, Jul 14, 2015 at 10:36:58PM -0700, Yinghai Lu wrote: > >> On Tue, Jul 14, 2015 at 9:49 PM, Sreekanth Reddy > >> wrote: > >>> Driver crashes if the BIOS do not set up at leas

Re: [PATCH v3] [SCSI] mpt2sas, mpt3sas: Abort initialization if no memory I/O resources detected

2015-07-15 Thread Yinghai Lu
On Wed, Jul 15, 2015 at 6:52 AM, Timothy Pearson wrote: >> I have just kept the same description provide by Timothy in his >> initial patch. >> >> But I observe that their may be chance of getting "unable to handle >> kernel NULL pointer dereference" kernel panic if no Memory Resource >> available

Re: [PATCH v3] [SCSI] mpt2sas, mpt3sas: Abort initialization if no memory I/O resources detected

2015-07-15 Thread Timothy Pearson
On 07/15/2015 01:28 PM, Yinghai Lu wrote: > On Wed, Jul 15, 2015 at 6:52 AM, Timothy Pearson > wrote: >>> I have just kept the same description provide by Timothy in his >>> initial patch. >>> >>> But I observe that their may be chance of getting "unable to handle >>> kernel NULL pointer dereferen

[PATCH] csiostor: Use list_for_each_safe instead of re-implementing it

2015-07-15 Thread Christophe JAILLET
Use 'list_for_each_safe' instead of 'list_for_each' + own logic to keep safe when a list entry is deleted. Delete the now useless 'csio_list_prev' macro. Signed-off-by: Christophe JAILLET --- drivers/scsi/csiostor/csio_defs.h | 1 - drivers/scsi/csiostor/csio_hw.c | 10 -- drivers/scs

Re: [PATCH v3] [SCSI] mpt2sas, mpt3sas: Abort initialization if no memory I/O resources detected

2015-07-15 Thread Bjorn Helgaas
On Wed, Jul 15, 2015 at 10:19:56AM +0530, Sreekanth Reddy wrote: > Driver crashes if the BIOS do not set up at least one > memory I/O resource. This failure can happen if the device is too > slow to respond during POST and is missed by the BIOS, but Linux > then detects the device later in the boot

Implementing aio cancel for SCSI/SATA devices

2015-07-15 Thread Rajat Jain
Hello, Currently I don't see any users of aio cancellation facility (except a USB gadget driver). I have a SATA controller and disk that both support the NCQ command aborts, and I am thinking of ways to implement aio cancellation on these devices in the kernel. The way I see it, at the time user

Re: [PATCH v1 4/4] libiscsi: Use scsi helper to set information descriptor

2015-07-15 Thread Martin K. Petersen
> "Sagi" == Sagi Grimberg writes: Sagi> In case encountered a PI error, use scsi_set_sense_information Sagi> instead of open coding information descriptor format. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the

Re: [PATCH v1 3/4] target: Return descriptor format sense data in case the LU spans 64bit sectors

2015-07-15 Thread Martin K. Petersen
> "Sagi" == Sagi Grimberg writes: Sagi> In case a LU spans 64bit sectors, fixed size sense data Sagi> information field is only 32 bits which means the sector Sagi> information will be truncated. Sagi> Thus, if the LU spans 64bit sectors, use descriptor format sense Sagi> data to correctly r

Re: [PATCH] MAINTAINERS: Update LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI) maintainers list

2015-07-15 Thread Martin K. Petersen
> "Sreekanth" == Sreekanth Reddy writes: Sreekanth> Updating maintainers list for the entry LSILOGIC MPT FUSION Sreekanth> DRIVERS in MAINTAINERS file Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsub

[PATCH] sd: Fix maximum I/O size for BLOCK_PC requests

2015-07-15 Thread Martin K. Petersen
Commit bcdb247c6b6a ("sd: Limit transfer length") clamped the maximum size of an I/O request to the MAXIMUM TRANSFER LENGTH field in the BLOCK LIMITS VPD. This had the unfortunate effect of also limiting the maximum size of non-filesystem requests sent to the device through sg/bsg. Avoid using blk

Re: [PATCH] csiostor: Use list_for_each_safe instead of re-implementing it

2015-07-15 Thread Johannes Thumshirn
Christophe JAILLET writes: > Use 'list_for_each_safe' instead of 'list_for_each' + own logic to keep > safe when a list entry is deleted. > Delete the now useless 'csio_list_prev' macro. > > Signed-off-by: Christophe JAILLET > --- > drivers/scsi/csiostor/csio_defs.h | 1 - > drivers/scsi/csios