Re: [PATCH] virtio-scsi: Fix virtqueue affinity setup

2013-08-01 Thread Paolo Bonzini
vscsi-num_queues counts the number of request virtqueue which does not include the control and event virtqueue. It is wrong to subtract VIRTIO_SCSI_VQ_BASE from vscsi-num_queues. Reviewed-by: Paolo Bonzini pbonz...@redhat.com This patch fixes the following panic. (qemu) device_del scsi0

Re: [PATCH RESEND v2] block: modify __bio_add_page check to accept pages that don't start a new segment

2013-08-01 Thread Jan Vesely
On Mon 25 Mar 2013 20:40:09 CET, Jens Axboe wrote: On Mon, Mar 25 2013, Jan Vesely wrote: 51506edc5741209311913 On Mon 25 Mar 2013 15:24:57 CET, Jens Axboe wrote: On Mon, Mar 25 2013, Jan Vesely wrote: v2: changed a comment The original behavior was to refuse all pages after the maximum

[PATCH 0/2] mpt{2,3}sas remove disconnected phys on topology change

2013-08-01 Thread Jan Vesely
From: Jan Vesely jves...@redhat.com These two patches add phy removal on link loss. This change keeps sysfs up-to-date with actually connected phys. Without these patches, disconnected phys remain listed under their former ports. tested on both mpt2sas and mpt3sas hw. CC: Nagalakshmi Nandigama

[PATCH 1/2] mpt2sas: Remove phys on topology change.

2013-08-01 Thread Jan Vesely
From: Jan Vesely jves...@redhat.com CC: Nagalakshmi Nandigama nagalakshmi.nandig...@lsi.com CC: Sreekanth Reddy sreekanth.re...@lsi.com CC: Tomas Henzl the...@redhat.com Signed-off-by: Jan Vesely jves...@redhat.com --- drivers/scsi/mpt2sas/mpt2sas_transport.c |5 - 1 files changed, 4

[PATCH 2/2] mpt3sas: Remove phys on topology change

2013-08-01 Thread Jan Vesely
From: Jan Vesely jves...@redhat.com CC: Nagalakshmi Nandigama nagalakshmi.nandig...@lsi.com CC: Sreekanth Reddy sreekanth.re...@lsi.com CC: Tomas Henzl the...@redhat.com Signed-off-by: Jan Vesely jves...@redhat.com --- drivers/scsi/mpt3sas/mpt3sas_transport.c |5 - 1 files changed, 4

[PATCH 1/3] hpsa: remove unneeded loop

2013-08-01 Thread Tomas Henzl
From: Tomas Henzl the...@redhat.com The cmd_pool_bits is protected everywhere with a spinlock, we don't need the test_and_set_bit, set_bit is enough and the loop can be removed too. Signed-off-by: Tomas Henzl the...@redhat.com --- drivers/scsi/hpsa.c | 15 ++- 1 file changed, 6

[PATCH 2/3] hpsa: fix a race in cmd_free/scsi_done

2013-08-01 Thread Tomas Henzl
From: Tomas Henzl the...@redhat.com When the driver calls scsi_done and after that frees it's internal preallocated memory it can happen that a new job is enqueud before the memory is freed. The allocation fails and the message cmd_alloc returned NULL is shown. Patch below fixes it by moving

[PATCH 3/3] hpsa: remove unneeded variable

2013-08-01 Thread Tomas Henzl
From: Tomas Henzl the...@redhat.com Remove unneeded variables. Signed-off-by: Tomas Henzl the...@redhat.com --- drivers/scsi/hpsa.c | 2 -- drivers/scsi/hpsa.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 48fa81e..e0f6b00 100644 ---

[Bug 60644] MPT2SAS drops all HDDs when under high I/O

2013-08-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60644 --- Comment #14 from livea...@live.com --- Hi . Any updates regarding this bug ? -- You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the

Re: [PATCH 1/3] hpsa: remove unneeded loop

2013-08-01 Thread scameron
On Thu, Aug 01, 2013 at 03:11:22PM +0200, Tomas Henzl wrote: From: Tomas Henzl the...@redhat.com The cmd_pool_bits is protected everywhere with a spinlock, we don't need the test_and_set_bit, set_bit is enough and the loop can be removed too. Signed-off-by: Tomas Henzl the...@redhat.com

Re: [PATCH 3/3] hpsa: remove unneeded variable

2013-08-01 Thread scameron
On Thu, Aug 01, 2013 at 03:14:52PM +0200, Tomas Henzl wrote: From: Tomas Henzl the...@redhat.com Remove unneeded variables. Signed-off-by: Tomas Henzl the...@redhat.com --- drivers/scsi/hpsa.c | 2 -- drivers/scsi/hpsa.h | 2 -- 2 files changed, 4 deletions(-) diff --git

Re: [PATCH 2/3] hpsa: fix a race in cmd_free/scsi_done

2013-08-01 Thread scameron
On Thu, Aug 01, 2013 at 03:14:00PM +0200, Tomas Henzl wrote: From: Tomas Henzl the...@redhat.com When the driver calls scsi_done and after that frees it's internal preallocated memory it can happen that a new job is enqueud before the memory is freed. The allocation fails and the message

Re: [PATCH 1/3] hpsa: remove unneeded loop

2013-08-01 Thread Tomas Henzl
On 08/01/2013 03:39 PM, scame...@beardog.cce.hp.com wrote: On Thu, Aug 01, 2013 at 03:11:22PM +0200, Tomas Henzl wrote: From: Tomas Henzl the...@redhat.com The cmd_pool_bits is protected everywhere with a spinlock, we don't need the test_and_set_bit, set_bit is enough and the loop can be

Re: Ejected Nook (usb mass storage) prevents suspend

2013-08-01 Thread Oliver Neukum
On Wed, 2013-07-31 at 11:13 -0400, Alan Stern wrote: More importantly, if we already know that the medium is not present or has been changed since it was last used, then there's no reason to call sd_sync_cache() at all. Like this? Regards Oliver From

Re: [PATCH 1/3] hpsa: remove unneeded loop

2013-08-01 Thread scameron
On Thu, Aug 01, 2013 at 04:05:20PM +0200, Tomas Henzl wrote: On 08/01/2013 03:39 PM, scame...@beardog.cce.hp.com wrote: On Thu, Aug 01, 2013 at 03:11:22PM +0200, Tomas Henzl wrote: From: Tomas Henzl the...@redhat.com The cmd_pool_bits is protected everywhere with a spinlock, we don't

[Bug 60644] MPT2SAS drops all HDDs when under high I/O

2013-08-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60644 --- Comment #15 from Sreekanth Reddy sreekanth.re...@lsi.com --- (In reply to liveaxle from comment #14) Hi . Any updates regarding this bug ? I tried to reproduce this issue locally, but for me this issue is not reproduced. Here are the

[Bug 60644] MPT2SAS drops all HDDs when under high I/O

2013-08-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60644 --- Comment #16 from livea...@live.com --- Hello . The thing is that I'm using SATA drives and not SAS drives . The motherboard exposes the LSI controller as 8 SATA ports . This wasn't an issue under Windows 2012 , so I think that hardware

[PATCH] scsi disk: Use its own buffer for the vpd request

2013-08-01 Thread Bernd Schubert
Once I noticed that scsi_get_vpd_page() works fine from other function calls and that it is not 0x89, but already 0x0 that fails fixing it became easy. Nix, any chance you could verify it also works for you? From: Bernd Schubert bernd.schub...@itwm.fraunhofer.de Somehow older areca firmware

Re: [PATCH] scsi disk: Use its own buffer for the vpd request

2013-08-01 Thread Bernd Schubert
Whoops, the title is wrong, it should have been: [PATCH] scsi disk: Limit get_vpd_page buf size On 08/01/2013 04:34 PM, Bernd Schubert wrote: Once I noticed that scsi_get_vpd_page() works fine from other function calls and that it is not 0x89, but already 0x0 that fails fixing it became easy.

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-08-01 Thread Bernd Schubert
On 07/30/2013 11:20 PM, Nix wrote: On 30 Jul 2013, Bernd Schubert told this: On 07/30/2013 02:56 AM, Nix wrote: On 30 Jul 2013, Douglas Gilbert outgrape: Please supply the information that Martin Petersen asked for. Did it in private IRC (the advantage of working for the same division of

Re: [PATCH 1/3] hpsa: remove unneeded loop

2013-08-01 Thread Tomas Henzl
On 08/01/2013 04:21 PM, scame...@beardog.cce.hp.com wrote: On Thu, Aug 01, 2013 at 04:05:20PM +0200, Tomas Henzl wrote: On 08/01/2013 03:39 PM, scame...@beardog.cce.hp.com wrote: On Thu, Aug 01, 2013 at 03:11:22PM +0200, Tomas Henzl wrote: From: Tomas Henzl the...@redhat.com The

Re: [PATCH 1/3] hpsa: remove unneeded loop

2013-08-01 Thread scameron
On Thu, Aug 01, 2013 at 04:59:45PM +0200, Tomas Henzl wrote: On 08/01/2013 04:21 PM, scame...@beardog.cce.hp.com wrote: On Thu, Aug 01, 2013 at 04:05:20PM +0200, Tomas Henzl wrote: On 08/01/2013 03:39 PM, scame...@beardog.cce.hp.com wrote: On Thu, Aug 01, 2013 at 03:11:22PM +0200, Tomas

Re: [PATCH 1/3] hpsa: remove unneeded loop

2013-08-01 Thread Tomas Henzl
On 08/01/2013 05:19 PM, scame...@beardog.cce.hp.com wrote: On Thu, Aug 01, 2013 at 04:59:45PM +0200, Tomas Henzl wrote: On 08/01/2013 04:21 PM, scame...@beardog.cce.hp.com wrote: On Thu, Aug 01, 2013 at 04:05:20PM +0200, Tomas Henzl wrote: On 08/01/2013 03:39 PM, scame...@beardog.cce.hp.com

Re: Ejected Nook (usb mass storage) prevents suspend

2013-08-01 Thread Alan Stern
On Thu, 1 Aug 2013, Oliver Neukum wrote: On Wed, 2013-07-31 at 11:13 -0400, Alan Stern wrote: More importantly, if we already know that the medium is not present or has been changed since it was last used, then there's no reason to call sd_sync_cache() at all. Like this? Yes, I like

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-08-01 Thread Nix
On 1 Aug 2013, Bernd Schubert verbalised: On 07/30/2013 11:20 PM, Nix wrote: On 30 Jul 2013, Bernd Schubert told this: On 07/30/2013 02:56 AM, Nix wrote: On 30 Jul 2013, Douglas Gilbert outgrape: Please supply the information that Martin Petersen asked for. Did it in private IRC (the

Re: [PATCH 1/3] hpsa: remove unneeded loop

2013-08-01 Thread scameron
On Thu, Aug 01, 2013 at 05:39:36PM +0200, Tomas Henzl wrote: On 08/01/2013 05:19 PM, scame...@beardog.cce.hp.com wrote: [...] Btw. on line 1284 - isn't it similar to patch 2/3 ? ^^^ Oh, missed this the first time around, the sop driver uses the make_request_fn() interface, and it's not a

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-08-01 Thread Bernd Schubert
On 08/01/2013 06:04 PM, Nix wrote: On 1 Aug 2013, Bernd Schubert verbalised: On 07/30/2013 11:20 PM, Nix wrote: On 30 Jul 2013, Bernd Schubert told this: On 07/30/2013 02:56 AM, Nix wrote: On 30 Jul 2013, Douglas Gilbert outgrape: Please supply the information that Martin Petersen asked

[PATCH v4 04/10] scsi: Change to use list_for_each_entry_safe

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com scsi_device_dev_release_usercontext() should be using list_for_each_entry_safe instead of list_for_each_safe. Signed-off-by: Ewan D. Milne emi...@redhat.com --- drivers/scsi/scsi_sysfs.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff

[PATCH v4 03/10] scsi: Add missing newline to scsi_sysfs.c

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com show_iostat_counterbits() is obviously missing a newline in the function declaration. Signed-off-by: Ewan D. Milne emi...@redhat.com --- drivers/scsi/scsi_sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v4 02/10] scsi: Correct size of envp[]

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com The envp[] array in scsi_evt_emit() only needs to have 2 entries. Signed-off-by: Ewan D. Milne emi...@redhat.com --- drivers/scsi/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_lib.c

[PATCH v4 00/10] Enhanced Unit Attention handling

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com This patch set adds changes to the SCSI mid-layer, sysfs and scsi_debug to provide enhanced support for Unit Attention conditions. There was some discussion about this a couple of years ago on the linux-scsi mailing list:

[PATCH v4 01/10] scsi: Fix incorrect function name in comment

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com The function name is scsi_evt_emit, not sdev_evt_emit. Signed-off-by: Ewan D. Milne emi...@redhat.com --- drivers/scsi/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index

[PATCH v4 07/10] scsi: Clear expecting_cc_ua on successful commands

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com If a device does not report a unit attention as expected, clear the expecting_cc_ua flag so that we will not suppress a future unit attention condition that is *not* expected. INQUIRY and REPORT LUNS commands should not do this, however, because they do not

[PATCH v4 10/10] scsi: Added scsi_target rescan capability to sysfs

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com Add a rescan attribute to sysfs for scsi_target objects, to permit them to be scanned for LUN changes (e.g. from udev). Signed-off-by: Ewan D. Milne emi...@redhat.com --- drivers/scsi/scsi_priv.h | 4 +++- drivers/scsi/scsi_scan.c | 30

[PATCH v4 09/10] scsi_debug: Add optional unit attention reporting

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com Added report_ua module parameter to control reporting of unit attention conditions when the number of LUNs is changed, or the virtual_gb size of the device is changed. Also added capability to generate unit attention conditions: 38 07 - THIN PROVISIONING

[PATCH v4 06/10] scsi: Move schedule_work() call to be outside lock

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com The call to schedule_work() in sdev_evt_send() should not be made while the sdev-list_lock is held. Signed-off-by: Ewan D. Milne emi...@redhat.com --- drivers/scsi/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v4 05/10] scsi: Rename scsi_evt_thread() to scsi_evt_work()

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com The scsi_evt_thread() function is not actually a thread, it is a work function. So it should be named scsi_evt_work() instead. Signed-off-by: Ewan D. Milne emi...@redhat.com --- drivers/scsi/scsi_lib.c | 4 ++-- drivers/scsi/scsi_priv.h | 1 +

[PATCH v4 08/10] scsi: Generate uevents on certain unit attention codes

2013-08-01 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com Generate a uevent when the following Unit Attention ASC/ASCQ codes are received: 2A/01 MODE PARAMETERS CHANGED 2A/09 CAPACITY DATA HAS CHANGED 38/07 THIN PROVISIONING SOFT THRESHOLD REACHED 3F/03 INQUIRY DATA HAS CHANGED 3F/0E

[PATCH RFC 00/51] Preview of DMA mask changes

2013-08-01 Thread Russell King - ARM Linux
So, this patch set is a preview of the DMA mask changes which I currently have in my tree. This started out as a request to look at the DMA mask situation, and how to solve the issues which we have on ARM. One of those issues is how to deal with the DT side of things, which I haven't yet

[PATCH RFC 49/51] ARM: 7796/1: scsi: Use dma_max_pfn(dev) helper for bounce_limit calculations

2013-08-01 Thread Santosh Shilimkar
DMA bounce limit is the maximum direct DMA'able memory beyond which bounce buffers has to be used to perform dma operations. SCSI driver relies on dma_mask but its calculation is based on max_*pfn which don't have uniform meaning across architectures. So make use of dma_max_pfn() which is expected

[PATCH] Hard disk S3 resume time optimization

2013-08-01 Thread Brandt, Todd E
This patch is a potential way to reduce the S3 resume time for SATA drives. Essentially this patch removes the hard disk resume time from the total system resume time, with the disks still taking as long to come back online but in the background. The major bottleneck is in the ata port resume

Re: sparc ESP SCSI error handling BUG+hang

2013-08-01 Thread David Miller
From: Meelis Roos mr...@linux.ee Date: Tue, 30 Jul 2013 12:58:44 +0300 (EEST) Therefore I think the fix is going to involve adding a member to struct esp_cmd_entry called -orig_tag[] so that we can see what the original tag[] values were at esp_alloc_lun_tag() time. Please try this

Re: [PATCH] scsi disk: Use its own buffer for the vpd request

2013-08-01 Thread Martin K. Petersen
Bernd == Bernd Schubert bernd.schub...@fastmail.fm writes: Bernd, Bernd Once I noticed that scsi_get_vpd_page() works fine from other Bernd function calls and that it is not 0x89, but already 0x0 that Bernd fails fixing it became easy. Bernd Nix, any chance you could verify it also works for