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

2013-08-01 Thread Martin K. Petersen
> "Bernd" == Bernd Schubert 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 you? Do we get a

Re: sparc ESP SCSI error handling BUG+hang

2013-08-01 Thread David Miller
From: Meelis Roos 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 pa

[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 w

[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 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 addresse

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

2013-08-01 Thread Ewan D. Milne
From: "Ewan D. Milne" 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 REPORTED LUNS DATA HAS

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

2013-08-01 Thread Ewan D. Milne
From: "Ewan D. Milne" 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 --- drivers/scsi/scsi_lib.c | 4 ++-- drivers/scsi/scsi_priv.h | 1 + drivers/scsi/scsi_scan.c | 3 +-- 3 files ch

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

2013-08-01 Thread Ewan D. Milne
From: "Ewan D. Milne" 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 report pending un

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

2013-08-01 Thread Ewan D. Milne
From: "Ewan D. Milne" 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 --- drivers/scsi/scsi_priv.h | 4 +++- drivers/scsi/scsi_scan.c | 30 +++ drivers/scsi/scsi_sysfs.

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

2013-08-01 Thread Ewan D. Milne
From: "Ewan D. Milne" 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 --- 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_li

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

2013-08-01 Thread Ewan D. Milne
From: "Ewan D. Milne" 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 SOFT THRESHOL

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

2013-08-01 Thread Ewan D. Milne
From: "Ewan D. Milne" The function name is "scsi_evt_emit", not "sdev_evt_emit". Signed-off-by: Ewan D. Milne --- 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 6dfb978..f6499db 100644 --- a/dr

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

2013-08-01 Thread Ewan D. Milne
From: "Ewan D. Milne" 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 --- drivers/scsi/scsi_sysfs.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/scsi_sysfs.

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

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

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

2013-08-01 Thread Ewan D. Milne
From: "Ewan D. Milne" The envp[] array in scsi_evt_emit() only needs to have 2 entries. Signed-off-by: Ewan D. Milne --- 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 f6499db..6585049 100644 -

[PATCH v4 00/10] Enhanced Unit Attention handling

2013-08-01 Thread Ewan D. Milne
From: "Ewan D. Milne" 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: http://marc.info/?l=linux-scsi&m=129702506514742&w=

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 f

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 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. >

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

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.

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,

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 cmd_pool_bit

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 t

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.

[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 Somehow older areca firmware versions have issues with scsi_get_v

[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 issues

[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 --- (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 steps which I followed to

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 cmd_pool_bits is protected everywhere with a spinlock, > >> we don't need

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 8c90d860652

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 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 t

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 > > 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 ret

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 > > Remove unneeded variables. > > Signed-off-by: Tomas Henzl > > --- > drivers/scsi/hpsa.c | 2 -- > drivers/scsi/hpsa.h | 2 -- > 2 files changed, 4 deletions(-) > > diff --git a/drivers/scsi/hpsa.c b/drivers/

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 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 > --- > drivers/scsi/hpsa.c

[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 bo

[PATCH 3/3] hpsa: remove unneeded variable

2013-08-01 Thread Tomas Henzl
From: Tomas Henzl Remove unneeded variables. Signed-off-by: Tomas Henzl --- 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 --- a/drivers/scsi/hpsa.c +++ b/drivers/scs

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

2013-08-01 Thread Tomas Henzl
From: Tomas Henzl 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 cmd->scsi_done after

[PATCH 1/3] hpsa: remove unneeded loop

2013-08-01 Thread Tomas Henzl
From: Tomas Henzl 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 --- drivers/scsi/hpsa.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --

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

2013-08-01 Thread Jan Vesely
From: Jan Vesely CC: Nagalakshmi Nandigama CC: Sreekanth Reddy CC: Tomas Henzl Signed-off-by: Jan Vesely --- drivers/scsi/mpt2sas/mpt2sas_transport.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/mpt2sas/mpt2sas_transport.c b/drivers/scsi/mpt2sas/

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

2013-08-01 Thread Jan Vesely
From: Jan Vesely CC: Nagalakshmi Nandigama CC: Sreekanth Reddy CC: Tomas Henzl Signed-off-by: Jan Vesely --- drivers/scsi/mpt3sas/mpt3sas_transport.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_transport.c b/drivers/scsi/mpt3sas/

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

2013-08-01 Thread Jan Vesely
From: Jan Vesely 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 CC: Sreekanth Red

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 page

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 > This patch fixes the following panic. > > (qemu) device_del scsi0 > > BUG: un