Re: [lkp-robot] [scsi] 5c279bd9e4: blogbench.read_score -10.0% regression

2017-07-05 Thread Ye Xiaolong
Hi, Ming Lei On 07/06, Ming Lei wrote: >Hi Xiaolong, > >On Mon, Jul 3, 2017 at 10:57 AM, kernel test robot > wrote: >> >> Greeting, >> >> FYI, we noticed a -10.0% regression of blogbench.read_score due to commit: > >Looks like related with mq scheduler, could you test the following patch to see >i

Re: [lkp-robot] [scsi] 5c279bd9e4: blogbench.read_score -10.0% regression

2017-07-05 Thread Ming Lei
Hi Xiaolong, On Mon, Jul 3, 2017 at 10:57 AM, kernel test robot wrote: > > Greeting, > > FYI, we noticed a -10.0% regression of blogbench.read_score due to commit: Looks like related with mq scheduler, could you test the following patch to see if your issue can be fixed? https://git.kernel.org/

Re: [PATCH][V2] scsi: qedf: fix spelling mistake: "offlading" -> "offloading"

2017-07-05 Thread Tyrel Datwyler
On 07/03/2017 12:21 PM, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in QEDF_INFO message and > remove duplicated "since" (thanks to Tyrel Datwyler for spotting > the latter issue). > > Signed-off-by: Colin Ian King Reviewed-by: Tyrel Datwyler

Re: [PATCH] target: make device_mutex and device_list static

2017-07-05 Thread Mike Christie
On 07/04/2017 03:44 AM, Colin King wrote: > From: Colin Ian King > > Variables device_mutex and device_list static are local to the source, > so make them static. > > Cleans up sparse warnings: > "symbol 'device_list' was not declared. Should it be static?" > "symbol 'device_mutex' was not decla

RE: [PATCH 4/7] aacraid: use aac_tmf_callback for reset fib

2017-07-05 Thread Raghava Aditya Renukunta
> -Original Message- > From: Hannes Reinecke [mailto:h...@suse.de] > Sent: Friday, June 30, 2017 10:18 AM > To: Martin K. Petersen > Cc: Christoph Hellwig ; James Bottomley > ; linux-scsi@vger.kernel.org; > Raghava Aditya Renukunta ; > Hannes Reinecke ; Hannes Reinecke > Subject: [PATCH

Re: [PATCH] cxlflash: return -EFAULT if copy_from_user() fails

2017-07-05 Thread Matthew R. Ochs
> On Jun 30, 2017, at 3:01 AM, Dan Carpenter wrote: > > The copy_from/to_user() functions return the number of bytes remaining > to be copied but we had intended to return -EFAULT here. > > Fixes: bc88ac47d5cb ("scsi: cxlflash: Support AFU debug") > Signed-off-by: Dan Carpenter Good catch Dan

Re: [PATCH][V2] scsi: qedf: fix spelling mistake: "offlading" -> "offloading"

2017-07-05 Thread Chad Dupuis
On Mon, 3 Jul 2017, 3:21pm, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in QEDF_INFO message and > remove duplicated "since" (thanks to Tyrel Datwyler for spotting > the latter issue). > > Signed-off-by: Colin Ian King > --- > drivers/scsi/qedf/qedf_main.c |

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
On Wed, Jul 05, 2017 at 02:45:06PM +0100, Chris Clayton wrote: > With your patch applied to 4.12.0, all three of the nero applications can now > detect my drives again. > > Excellent work! Thank you. > > Tested-by: Chris Clayton Thanks for confirmation. -- Johannes Thumshirn

[PATCH] scsi: sg: fix SG_DXFER_FROM_DEV transfers

2017-07-05 Thread Johannes Thumshirn
SG_DXFER_FROM_DEV transfers do not have a dxferp as we set it to NULL, but must have a length bigger than 0. This fixes a regression introduced by commit 28676d869bbb ("scsi: sg: check for valid direction before starting the request") Signed-off-by: Johannes Thumshirn Fixes: 28676d869bbb ("scsi:

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Chris Clayton
On 05/07/17 13:42, Johannes Thumshirn wrote: > On Wed, Jul 05, 2017 at 01:19:09PM +0100, Chris Clayton wrote: >> I'm happy to test any patches you may propose. > > Can you verify this fix? Preferedably with using Nero. It passes my small > reproducer: > Thanks Johannes. With your patch applied

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
On Wed, Jul 05, 2017 at 01:19:09PM +0100, Chris Clayton wrote: > I'm happy to test any patches you may propose. Can you verify this fix? Preferedably with using Nero. It passes my small reproducer: >From f52502180cc3843f8acc956253af2575245546a8 Mon Sep 17 00:00:00 2001 From: Johannes Thumshirn D

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Chris Clayton
On 05/07/17 13:09, Johannes Thumshirn wrote: > On Wed, Jul 05, 2017 at 01:05:46PM +0100, Chris Clayton wrote: >> Yes, I get: >> >> [chris:~/rpm/build]$ su -c "./nerotest /dev/sg0" >> Password: >> write: Invalid argument >> FAIL > > Awesome, thanks for confirming. > You're welcome. I've attached

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
On Wed, Jul 05, 2017 at 01:05:46PM +0100, Chris Clayton wrote: > Yes, I get: > > [chris:~/rpm/build]$ su -c "./nerotest /dev/sg0" > Password: > write: Invalid argument > FAIL Awesome, thanks for confirming. I'll work on it locally now and hopefully send you something to test soon. Thanks,

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Chris Clayton
On 05/07/17 12:52, Johannes Thumshirn wrote: > On Wed, Jul 05, 2017 at 10:06:49AM +0100, Chris Clayton wrote: >> I'll do this and send dmesg(?) output as soon as I've got >> scsi_logging_level installed. > > Hi Chris, > > does this reproducer work (i.e. output FAIL) for you? > Hi Johannes.

[PATCH v2 11/15] megaraid_sas: Set device queue_depth same as HBA can_queue value in scsi-mq mode

2017-07-05 Thread Shivasharan S
Currently driver sets default queue_depth for VDs at 256 and JBODs based on interface type, ie., for SAS JBOD QD will be 64, for SATA JBOD QD will be 32. During performance runs with scsi-mq enabled, we are seeing better results by setting QD same as HBA queue_depth. Signed-off-by: Kashyap Desai

[PATCH v2 10/15] megaraid_sas: Return pended IOCTLs with cmd_status MFI_STAT_WRONG_STATE in case adapter is dead

2017-07-05 Thread Shivasharan S
Fix - After a kill adapter, since the cmd_status is not set the IOCTLs will be hung in driver resulting in application hang. Set cmd_status MFI_STAT_WRONG_STATE when completing pended IOCTLs. Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Cc: sta...@vger.kernel.org Reviewed-by: Hannes

[PATCH v2 13/15] megaraid_sas: modified few prints in OCR and IOC INIT path

2017-07-05 Thread Shivasharan S
Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megarai

[PATCH v2 12/15] megaraid_sas: replace internal FALSE/TRUE definitions with false/true

2017-07-05 Thread Shivasharan S
Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/megaraid/megaraid_sas_fp.c | 40 + 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fp.c b/drivers/scsi/mega

[PATCH v2 14/15] megaraid_sas: call megasas_dump_frame with correct IO frame size

2017-07-05 Thread Shivasharan S
Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/megaraid/megaraid_sas_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index c

[PATCH v2 15/15] megaraid_sas: driver version upgrade

2017-07-05 Thread Shivasharan S
Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/megaraid/megaraid_sas.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h index 6d9f111..a6722c9 100644 --- a/drivers/scsi

[PATCH v2 03/15] megaraid_sas: Use synchronize_irq in target reset case

2017-07-05 Thread Shivasharan S
Similar to task abort case, use synchronize_irq API in target reset case. Also, remove redundant call to megasas_complete_cmd_dpc_fusion after calling megasas_sync_irqs in task abort case. Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/m

[PATCH v2 07/15] megaraid_sas: Check valid aen class range to avoid kernel panic

2017-07-05 Thread Shivasharan S
Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/megaraid/megaraid_sas_base.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index 3c50a7b..

[PATCH v2 08/15] megaraid_sas: Use SMID for Task abort case only

2017-07-05 Thread Shivasharan S
Fix - In TM code, smid_task is valid only in case of task aborts. Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/megara

[PATCH v2 02/15] megaraid_sas: set minimum value of resetwaittime to be 1 secs

2017-07-05 Thread Shivasharan S
Setting resetwaittime to 0 during a FW fault will result in driver not calling the OCR. Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/megaraid/megaraid_sas_base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH v2 06/15] megaraid_sas: Fix endianness issues in DCMD handling

2017-07-05 Thread Shivasharan S
Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/megaraid/megaraid_sas_base.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.

[PATCH v2 05/15] megaraid_sas: Do not re-fire shutdown DCMD after OCR

2017-07-05 Thread Shivasharan S
Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 0f

[PATCH v2 04/15] megaraid_sas: Call megasas_complete_cmd_dpc_fusion every 1 second while there are pending commands

2017-07-05 Thread Shivasharan S
Fix - megasas_wait_for_outstanding_fusion checks for pending commands every 1second. But megasas_complete_cmd_dpc_fusion is only called every 5seconds. If the commands are already completed by firmware, there is an additional delay of 5seconds before driver will process completion for these command

[PATCH v2 09/15] megaraid_sas: use vmalloc for crash dump buffers and driver's local RAID map

2017-07-05 Thread Shivasharan S
Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hannes Reinecke --- drivers/scsi/megaraid/megaraid_sas.h| 1 - drivers/scsi/megaraid/megaraid_sas_base.c | 12 ++- drivers/scsi/megaraid/megaraid_sas_fusion.c | 121 ++-- 3 files changed,

[PATCH v2 01/15] megaraid_sas: mismatch of allocated MFI frame size and length exposed in MFI MPT pass through command

2017-07-05 Thread Shivasharan S
Fix - Driver allocated 256 byte MFI frames bytes but while sending MFI frame (embedded inside chain frame of MPT frame) to firmware, driver sets the length as 4k. This results in DMA read error messages during boot. Signed-off-by: Kashyap Desai Signed-off-by: Shivasharan S Reviewed-by: Hanne

[PATCH v2 00/15] megaraid_sas: Updates for scsi-next

2017-07-05 Thread Shivasharan S
Changes from v1: - Patch 4: Updated patch description - Patch 9: Cleanup ld_drv_map in case ld_map allocation fails Shivasharan S (15): megaraid_sas: mismatch of allocated MFI frame size and length exposed in MFI MPT pass through command megaraid_sas: set minimum value of resetwaittime to

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
On Wed, Jul 05, 2017 at 10:06:49AM +0100, Chris Clayton wrote: > I'll do this and send dmesg(?) output as soon as I've got scsi_logging_level > installed. Hi Chris, does this reproducer work (i.e. output FAIL) for you? #include #include #include #include #include #include #include #inc

Re: [PATCH 05/15] megaraid_sas: Do not re-fire shutdown DCMD after OCR

2017-07-05 Thread Hannes Reinecke
On 07/05/2017 12:33 PM, Shivasharan Srikanteshwara wrote: >> -Original Message- >> From: Shivasharan Srikanteshwara >> [mailto:shivasharan.srikanteshw...@broadcom.com] >> Sent: Tuesday, July 04, 2017 12:39 PM >> To: 'Hannes Reinecke'; 'linux-scsi@vger.kernel.org' >> Cc: 'martin.peter...@ora

RE: [PATCH 05/15] megaraid_sas: Do not re-fire shutdown DCMD after OCR

2017-07-05 Thread Shivasharan Srikanteshwara
> -Original Message- > From: Shivasharan Srikanteshwara > [mailto:shivasharan.srikanteshw...@broadcom.com] > Sent: Tuesday, July 04, 2017 12:39 PM > To: 'Hannes Reinecke'; 'linux-scsi@vger.kernel.org' > Cc: 'martin.peter...@oracle.com'; 'the...@redhat.com'; > 'j...@linux.vnet.ibm.com'; Kash

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Chris Clayton
On 05/07/17 09:48, Johannes Thumshirn wrote: > On Wed, Jul 05, 2017 at 10:44:47AM +0200, Johannes Thumshirn wrote: >> On Wed, Jul 05, 2017 at 08:57:54AM +0100, Chris Clayton wrote: >>> Thanks for the reply, Johannes. >>> The strace log for 4.12.0 is attached. >> >> Thanks Chris. >> >> Can I have

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
On Wed, Jul 05, 2017 at 10:44:47AM +0200, Johannes Thumshirn wrote: > On Wed, Jul 05, 2017 at 08:57:54AM +0100, Chris Clayton wrote: > > Thanks for the reply, Johannes. > > The strace log for 4.12.0 is attached. > > Thanks Chris. > > Can I have a known good version as well? The counterpart to thi

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
On Wed, Jul 05, 2017 at 08:57:54AM +0100, Chris Clayton wrote: > Thanks for the reply, Johannes. > The strace log for 4.12.0 is attached. Thanks Chris. Can I have a known good version as well? The counterpart to this snippet would be great: open("/dev/sg0", O_RDWR)= 6 ioctl(6, SG

Re: [PATCH] virtio_scsi: always read VPD pages for multiqueue too

2017-07-05 Thread Fam Zheng
On Wed, 07/05 10:30, Paolo Bonzini wrote: > Multi-queue virtio-scsi uses a different scsi_host_template struct. > Add the .device_alloc field there, too. > > Fixes: 25d1d50e23275e141e3a3fe06c25a99f4c4bf4e0 > Cc: sta...@vger.kernel.org > Cc: David Gibson > Signed-off-by: Paolo Bonzini > --- > dr

[PATCH] virtio_scsi: always read VPD pages for multiqueue too

2017-07-05 Thread Paolo Bonzini
Multi-queue virtio-scsi uses a different scsi_host_template struct. Add the .device_alloc field there, too. Fixes: 25d1d50e23275e141e3a3fe06c25a99f4c4bf4e0 Cc: sta...@vger.kernel.org Cc: David Gibson Signed-off-by: Paolo Bonzini --- drivers/scsi/virtio_scsi.c | 1 + 1 file changed, 1 insertion(

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Chris Clayton
On 05/07/17 08:39, Johannes Thumshirn wrote: > On Wed, Jul 05, 2017 at 08:06:17AM +0100, Chris Clayton wrote: >> I can provide the full traces or any other diagnostics, if they would help. > > Yes this would definitively help. An strace log would be great so I > can make a local reproducer. >

Re: Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Johannes Thumshirn
On Wed, Jul 05, 2017 at 08:06:17AM +0100, Chris Clayton wrote: > I can provide the full traces or any other diagnostics, if they would help. Yes this would definitively help. An strace log would be great so I can make a local reproducer. Thanks, Johannes -- Johannes Thumshirn

Nero 4 Linux applications broken in 4.12

2017-07-05 Thread Chris Clayton
Hi. I use the applications from Nero 4 Linux to write to blu-ray media, principally, but not exclusively, as part of my back-up regime. Those applications have stopped working with Linux 4.12 because they fail to detect my drives (one built in to my laptop and the other attached via USB). The ap