<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/scsi, branch colibri</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>SCSI: mpt2sas : Fix for memory allocation error for large host credits</title>
<updated>2012-01-18T15:31:57+00:00</updated>
<author>
<name>nagalakshmi.nandigama@lsi.com</name>
<email>nagalakshmi.nandigama@lsi.com</email>
</author>
<published>2011-12-01T02:23:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a1f73f501a775496d33b4da523b09f64b6962251'/>
<id>a1f73f501a775496d33b4da523b09f64b6962251</id>
<content type='text'>
commit aff132d95ffe14eca96cab90597cdd010b457af7 upstream.

The amount of memory required for tracking chain buffers is rather
large, and when the host credit count is big, memory allocation
failure occurs inside __get_free_pages.

The fix is to limit the number of chains to 100,000.  In addition,
the number of host credits is limited to 30,000 IOs. However this
limitation can be overridden this using the command line option
max_queue_depth.  The algorithm for calculating the
reply_post_queue_depth is changed so that it is equal to
(reply_free_queue_depth + 16), previously it was (reply_free_queue_depth * 2).

Signed-off-by: Nagalakshmi Nandigama &lt;nagalakshmi.nandigama@lsi.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit aff132d95ffe14eca96cab90597cdd010b457af7 upstream.

The amount of memory required for tracking chain buffers is rather
large, and when the host credit count is big, memory allocation
failure occurs inside __get_free_pages.

The fix is to limit the number of chains to 100,000.  In addition,
the number of host credits is limited to 30,000 IOs. However this
limitation can be overridden this using the command line option
max_queue_depth.  The algorithm for calculating the
reply_post_queue_depth is changed so that it is equal to
(reply_free_queue_depth + 16), previously it was (reply_free_queue_depth * 2).

Signed-off-by: Nagalakshmi Nandigama &lt;nagalakshmi.nandigama@lsi.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>SCSI: mpt2sas: Release spinlock for the raid device list before blocking it</title>
<updated>2012-01-18T15:31:56+00:00</updated>
<author>
<name>nagalakshmi.nandigama@lsi.com</name>
<email>nagalakshmi.nandigama@lsi.com</email>
</author>
<published>2011-12-01T02:22:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3e70c2626382037b67c97a706cb00788fad93527'/>
<id>3e70c2626382037b67c97a706cb00788fad93527</id>
<content type='text'>
commit 30c43282f3d347f47f9e05199d2b14f56f3f2837 upstream.

Added code to release the spinlock that is used to protect the
raid device list before calling a function that can block. The
blocking was causing a reschedule, and subsequently it is tried
to acquire the same lock, resulting in a panic (NMI Watchdog
detecting a CPU lockup).

Signed-off-by: Nagalakshmi Nandigama &lt;nagalakshmi.nandigama@lsi.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 30c43282f3d347f47f9e05199d2b14f56f3f2837 upstream.

Added code to release the spinlock that is used to protect the
raid device list before calling a function that can block. The
blocking was causing a reschedule, and subsequently it is tried
to acquire the same lock, resulting in a panic (NMI Watchdog
detecting a CPU lockup).

Signed-off-by: Nagalakshmi Nandigama &lt;nagalakshmi.nandigama@lsi.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>SCSI: mpt2sas: Added missing mpt2sas_base_detach call from scsih_remove context</title>
<updated>2012-01-12T19:33:45+00:00</updated>
<author>
<name>kashyap.desai@lsi.com</name>
<email>kashyap.desai@lsi.com</email>
</author>
<published>2011-08-04T11:17:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=cdd2a1dae5c70401ddcf4a868299fdd2f77ad380'/>
<id>cdd2a1dae5c70401ddcf4a868299fdd2f77ad380</id>
<content type='text'>
commit 9ae89b0296e275d5a556068b40b7c2557a556a85 upstream.

mpt2sas_base_detach() call was removed from _scsih_remove() while
doing some code shuffling.  Mainly when we work on adding code for
scsih_shutdown().  I have added back mpt2sas_base_detach() which will
get callled from _scsih_remove().

Signed-off-by: Kashyap Desai &lt;kashyap.desai@lsi.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 9ae89b0296e275d5a556068b40b7c2557a556a85 upstream.

mpt2sas_base_detach() call was removed from _scsih_remove() while
doing some code shuffling.  Mainly when we work on adding code for
scsih_shutdown().  I have added back mpt2sas_base_detach() which will
get callled from _scsih_remove().

Signed-off-by: Kashyap Desai &lt;kashyap.desai@lsi.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>mpt2sas: fix non-x86 crash on shutdown</title>
<updated>2012-01-06T22:17:23+00:00</updated>
<author>
<name>Nagalakshmi Nandigama</name>
<email>nagalakshmi.nandigama@lsi.com</email>
</author>
<published>2012-01-04T15:25:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ec89dadb52f3dee5e49588613ad3bf66cf140141'/>
<id>ec89dadb52f3dee5e49588613ad3bf66cf140141</id>
<content type='text'>
Upstrem commit: 911ae9434f83e7355d343f6c2be3ef5b00ea7aed

There's a bug in the MSIX backup and restore routines that cause a crash on
non-x86 (direct access to PCI space not via read/write).  These routines are
unnecessary and were removed by the above commit, so also remove them from
stable to fix the crash.

Signed-off-by: Nagalakshmi Nandigama &lt;nagalakshmi.nandigama@lsi.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Upstrem commit: 911ae9434f83e7355d343f6c2be3ef5b00ea7aed

There's a bug in the MSIX backup and restore routines that cause a crash on
non-x86 (direct access to PCI space not via read/write).  These routines are
unnecessary and were removed by the above commit, so also remove them from
stable to fix the crash.

Signed-off-by: Nagalakshmi Nandigama &lt;nagalakshmi.nandigama@lsi.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>SCSI: fcoe: Fix preempt count leak in fcoe_filter_frames()</title>
<updated>2012-01-06T22:16:54+00:00</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2011-11-11T19:52:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7533e9cb9ce687424e344cf07a815ffc08734825'/>
<id>7533e9cb9ce687424e344cf07a815ffc08734825</id>
<content type='text'>
commit 7e1e7ead88dff75b11b86ee0d5232c4591be1326 upstream.

The error exit path leaks preempt count. Add the missing put_cpu().

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Yi Zou &lt;yi.zou@intel.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 7e1e7ead88dff75b11b86ee0d5232c4591be1326 upstream.

The error exit path leaks preempt count. Add the missing put_cpu().

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Yi Zou &lt;yi.zou@intel.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>SCSI: mpt2sas: _scsih_smart_predicted_fault uses GFP_KERNEL in interrupt context</title>
<updated>2012-01-06T22:16:54+00:00</updated>
<author>
<name>Anton Blanchard</name>
<email>anton@samba.org</email>
</author>
<published>2011-11-07T11:05:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4c9ddbf69e5d6ea938804af78df524ea08535c63'/>
<id>4c9ddbf69e5d6ea938804af78df524ea08535c63</id>
<content type='text'>
commit f6a290b419a2675c4b77a6b0731cd2a64332365e upstream.

_scsih_smart_predicted_fault is called in an interrupt and therefore
must allocate memory using GFP_ATOMIC.

Signed-off-by: Anton Blanchard &lt;anton@samba.org&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit f6a290b419a2675c4b77a6b0731cd2a64332365e upstream.

_scsih_smart_predicted_fault is called in an interrupt and therefore
must allocate memory using GFP_ATOMIC.

Signed-off-by: Anton Blanchard &lt;anton@samba.org&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>SCSI: Silencing 'killing requests for dead queue'</title>
<updated>2011-12-09T16:54:31+00:00</updated>
<author>
<name>Hannes Reinecke</name>
<email>hare@suse.de</email>
</author>
<published>2011-11-09T07:39:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6d10c223ab5a75fa961019fa91fc811128cb876b'/>
<id>6d10c223ab5a75fa961019fa91fc811128cb876b</id>
<content type='text'>
commit 745718132c3c7cac98a622b610e239dcd5217f71 upstream.

When we tear down a device we try to flush all outstanding
commands in scsi_free_queue(). However the check in
scsi_request_fn() is imperfect as it only signals that
we _might start_ aborting commands, not that we've actually
aborted some.
So move the printk inside the scsi_kill_request function,
this will also give us a hint about which commands are aborted.

Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Cc: Christoph Biedl &lt;linux-kernel.bfrz@manchmal.in-ulm.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 745718132c3c7cac98a622b610e239dcd5217f71 upstream.

When we tear down a device we try to flush all outstanding
commands in scsi_free_queue(). However the check in
scsi_request_fn() is imperfect as it only signals that
we _might start_ aborting commands, not that we've actually
aborted some.
So move the printk inside the scsi_kill_request function,
this will also give us a hint about which commands are aborted.

Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Cc: Christoph Biedl &lt;linux-kernel.bfrz@manchmal.in-ulm.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>aacraid: controller hangs if kernel uses non-default ASPM policy</title>
<updated>2011-11-26T17:08:33+00:00</updated>
<author>
<name>Vasily Averin</name>
<email>vvs@parallels.com</email>
</author>
<published>2011-11-11T09:42:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=49d1df8852cb97340c7b0fa31f4aa9be6ec8b759'/>
<id>49d1df8852cb97340c7b0fa31f4aa9be6ec8b759</id>
<content type='text'>
commit cf16123c9c8e346ed1dd171295a678d77648d7f8 upstream.

Aacraid controller can hang on some nodes if kernel uses non-default
(powersave) ASPM policy.  Controller hangs shortly after successful load and
hardware detection. Scsi error handler detects this hang and tries to restart
hardware but it does not help.

Initially it was noticed on RHEL6-based openVZ kernel after backporting
aacraid driver from mainline (RHEL6 kernel with original driver works well)
http://bugzilla.openvz.org/show_bug.cgi?id=2043

This issue happens because default ASPM policy was changed in Red Hat
kernels. Therefore guys from Red Hat have noticed this problem long time ago:
on Fedora 12
 https://bugzilla.redhat.com/show_bug.cgi?id=540478
on Fedora 14
 https://bugzilla.redhat.com/show_bug.cgi?id=679385

In RHEL6 kernel this issue was fixed, ASPM was disabled in aacraid driver. In
kernel changelog I've found that seems it was done by Matthew Garrett: -
[scsi] aacraid: Disable ASPM by default (Matthew Garrett) [599735]

However seems this patch was not submitted to mainline. I've reproduced this
issue on vanilla 3.1.0 kernel booted with "pcie_aspm.policy=powersave" option,
So I believe it makes sense to do it now.

Signed-off-by:	Vasily Averin &lt;vvs@sw.ru&gt;
[mjg: Checking the Windows drivers indicates that they disable ASPM under all
circumstances, so:]
Acked-by: Matthew Garrett &lt;mjg@redhat.com&gt;
Acked-by: Achim Leubner &lt;Achim_Leubner@pmc-sierra.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit cf16123c9c8e346ed1dd171295a678d77648d7f8 upstream.

Aacraid controller can hang on some nodes if kernel uses non-default
(powersave) ASPM policy.  Controller hangs shortly after successful load and
hardware detection. Scsi error handler detects this hang and tries to restart
hardware but it does not help.

Initially it was noticed on RHEL6-based openVZ kernel after backporting
aacraid driver from mainline (RHEL6 kernel with original driver works well)
http://bugzilla.openvz.org/show_bug.cgi?id=2043

This issue happens because default ASPM policy was changed in Red Hat
kernels. Therefore guys from Red Hat have noticed this problem long time ago:
on Fedora 12
 https://bugzilla.redhat.com/show_bug.cgi?id=540478
on Fedora 14
 https://bugzilla.redhat.com/show_bug.cgi?id=679385

In RHEL6 kernel this issue was fixed, ASPM was disabled in aacraid driver. In
kernel changelog I've found that seems it was done by Matthew Garrett: -
[scsi] aacraid: Disable ASPM by default (Matthew Garrett) [599735]

However seems this patch was not submitted to mainline. I've reproduced this
issue on vanilla 3.1.0 kernel booted with "pcie_aspm.policy=powersave" option,
So I believe it makes sense to do it now.

Signed-off-by:	Vasily Averin &lt;vvs@sw.ru&gt;
[mjg: Checking the Windows drivers indicates that they disable ASPM under all
circumstances, so:]
Acked-by: Matthew Garrett &lt;mjg@redhat.com&gt;
Acked-by: Achim Leubner &lt;Achim_Leubner@pmc-sierra.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>hpsa: Disable ASPM</title>
<updated>2011-11-26T17:08:33+00:00</updated>
<author>
<name>Matthew Garrett</name>
<email>mjg@redhat.com</email>
</author>
<published>2011-11-11T16:14:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=611397f62fe6879f675587e62aa44b5a2a251569'/>
<id>611397f62fe6879f675587e62aa44b5a2a251569</id>
<content type='text'>
commit e5a44df85e8d78e5c2d3d2e4f59b460905691e2f upstream.

The Windows driver .inf disables ASPM on hpsa devices. Do the same because the
selection of a non default ASPM policy can cause the device to hang.

Signed-off-by: Matthew Garrett &lt;mjg@redhat.com&gt;
Acked-by: Mike Miller &lt;mike.miller@hp.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit e5a44df85e8d78e5c2d3d2e4f59b460905691e2f upstream.

The Windows driver .inf disables ASPM on hpsa devices. Do the same because the
selection of a non default ASPM policy can cause the device to hang.

Signed-off-by: Matthew Garrett &lt;mjg@redhat.com&gt;
Acked-by: Mike Miller &lt;mike.miller@hp.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>fix WARNING: at drivers/scsi/scsi_lib.c:1704</title>
<updated>2011-11-26T17:08:33+00:00</updated>
<author>
<name>James Bottomley</name>
<email>James.Bottomley@HansenPartnership.com</email>
</author>
<published>2011-11-07T14:51:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=bf6f111b5e891b4cfbd4f966488fd824543ba2aa'/>
<id>bf6f111b5e891b4cfbd4f966488fd824543ba2aa</id>
<content type='text'>
commit 4e6c82b3614a18740ef63109d58743a359266daf upstream.

On Mon, 2011-11-07 at 17:24 +1100, Stephen Rothwell wrote:
&gt; Hi all,
&gt;
&gt; Starting some time last week I am getting the following during boot on
&gt; our PPC970 blade:
&gt;
&gt; calling  .ipr_init+0x0/0x68 @ 1
&gt; ipr: IBM Power RAID SCSI Device Driver version: 2.5.2 (April 27, 2011)
&gt; ipr 0000:01:01.0: Found IOA with IRQ: 26
&gt; ipr 0000:01:01.0: Starting IOA initialization sequence.
&gt; ipr 0000:01:01.0: Adapter firmware version: 06160039
&gt; ipr 0000:01:01.0: IOA initialized.
&gt; scsi0 : IBM 572E Storage Adapter
&gt; ------------[ cut here ]------------
&gt; WARNING: at drivers/scsi/scsi_lib.c:1704
&gt; Modules linked in:
&gt; NIP: c00000000053b3d4 LR: c00000000053e5b0 CTR: c000000000541d70
&gt; REGS: c0000000783c2f60 TRAP: 0700   Not tainted  (3.1.0-autokern1)
&gt; MSR: 8000000000029032 &lt;EE,ME,CE,IR,DR&gt;  CR: 24002024  XER: 20000002
&gt; TASK = c0000000783b8000[1] 'swapper' THREAD: c0000000783c0000 CPU: 0
&gt; GPR00: 0000000000000001 c0000000783c31e0 c000000000cf38b0 c00000000239a9d0
&gt; GPR04: c000000000cbe8f8 0000000000000000 c0000000783c3040 0000000000000000
&gt; GPR08: c000000075daf488 c000000078a3b7ff c000000000bcacc8 0000000000000000
&gt; GPR12: 0000000044002028 c000000007ffb000 0000000002e40000 000000000099b800
&gt; GPR16: 0000000000000000 c000000000bba5fc c000000000a61db8 0000000000000000
&gt; GPR20: 0000000001b77200 0000000000000000 c000000078990000 0000000000000001
&gt; GPR24: c000000002396828 0000000000000000 0000000000000000 c000000078a3b938
&gt; GPR28: fffffffffffffffa c0000000008ad2c0 c000000000c7faa8 c00000000239a9d0
&gt; NIP [c00000000053b3d4] .scsi_free_queue+0x24/0x90
&gt; LR [c00000000053e5b0] .scsi_alloc_sdev+0x280/0x2e0
&gt; Call Trace:
&gt; [c0000000783c31e0] [c000000000c7faa8] wireless_seq_fops+0x278d0/0x2eb88 (unreliable)
&gt; [c0000000783c3270] [c00000000053e5b0] .scsi_alloc_sdev+0x280/0x2e0
&gt; [c0000000783c3330] [c00000000053eba0] .scsi_probe_and_add_lun+0x390/0xb40
&gt; [c0000000783c34a0] [c00000000053f7ec] .__scsi_scan_target+0x16c/0x650
&gt; [c0000000783c35f0] [c00000000053fd90] .scsi_scan_channel+0xc0/0x100
&gt; [c0000000783c36a0] [c00000000053fefc] .scsi_scan_host_selected+0x12c/0x1c0
&gt; [c0000000783c3750] [c00000000083dcb4] .ipr_probe+0x2c0/0x390
&gt; [c0000000783c3830] [c0000000003f50b4] .local_pci_probe+0x34/0x50
&gt; [c0000000783c38a0] [c0000000003f5f78] .pci_device_probe+0x148/0x150
&gt; [c0000000783c3950] [c0000000004e1e8c] .driver_probe_device+0xdc/0x210
&gt; [c0000000783c39f0] [c0000000004e20cc] .__driver_attach+0x10c/0x110
&gt; [c0000000783c3a80] [c0000000004e1228] .bus_for_each_dev+0x98/0xf0
&gt; [c0000000783c3b30] [c0000000004e1bf8] .driver_attach+0x28/0x40
&gt; [c0000000783c3bb0] [c0000000004e07d8] .bus_add_driver+0x218/0x340
&gt; [c0000000783c3c60] [c0000000004e2a2c] .driver_register+0x9c/0x1b0
&gt; [c0000000783c3d00] [c0000000003f62d4] .__pci_register_driver+0x64/0x140
&gt; [c0000000783c3da0] [c000000000b99f88] .ipr_init+0x4c/0x68
&gt; [c0000000783c3e20] [c00000000000ad24] .do_one_initcall+0x1a4/0x1e0
&gt; [c0000000783c3ee0] [c000000000b512d0] .kernel_init+0x14c/0x1fc
&gt; [c0000000783c3f90] [c000000000022468] .kernel_thread+0x54/0x70
&gt; Instruction dump:
&gt; ebe1fff8 7c0803a6 4e800020 7c0802a6 fba1ffe8 fbe1fff8 7c7f1b78 f8010010
&gt; f821ff71 e8030398 3120ffff 7c090110 &lt;0b000000&gt; e86303b0 482de065 60000000
&gt; ---[ end trace 759bed76a85e8dec ]---
&gt; scsi 0:0:1:0: Direct-Access     IBM-ESXS MAY2036RC        T106 PQ: 0 ANSI: 5
&gt; ------------[ cut here ]------------
&gt;
&gt; I get lots more of these.  The obvious commit to point the finger at
&gt; is 3308511c93e6 ("[SCSI] Make scsi_free_queue() kill pending SCSI
&gt; commands") but the root cause may be something different.

Caused by

commit f7c9c6bb14f3104608a3a83cadea10a6943d2804
Author: Anton Blanchard &lt;anton@samba.org&gt;
Date:   Thu Nov 3 08:56:22 2011 +1100

    [SCSI] Fix block queue and elevator memory leak in scsi_alloc_sdev

Doesn't completely do the teardown.  The true fix is to do a proper
teardown instead of hand rolling it

Reported-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Tested-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 4e6c82b3614a18740ef63109d58743a359266daf upstream.

On Mon, 2011-11-07 at 17:24 +1100, Stephen Rothwell wrote:
&gt; Hi all,
&gt;
&gt; Starting some time last week I am getting the following during boot on
&gt; our PPC970 blade:
&gt;
&gt; calling  .ipr_init+0x0/0x68 @ 1
&gt; ipr: IBM Power RAID SCSI Device Driver version: 2.5.2 (April 27, 2011)
&gt; ipr 0000:01:01.0: Found IOA with IRQ: 26
&gt; ipr 0000:01:01.0: Starting IOA initialization sequence.
&gt; ipr 0000:01:01.0: Adapter firmware version: 06160039
&gt; ipr 0000:01:01.0: IOA initialized.
&gt; scsi0 : IBM 572E Storage Adapter
&gt; ------------[ cut here ]------------
&gt; WARNING: at drivers/scsi/scsi_lib.c:1704
&gt; Modules linked in:
&gt; NIP: c00000000053b3d4 LR: c00000000053e5b0 CTR: c000000000541d70
&gt; REGS: c0000000783c2f60 TRAP: 0700   Not tainted  (3.1.0-autokern1)
&gt; MSR: 8000000000029032 &lt;EE,ME,CE,IR,DR&gt;  CR: 24002024  XER: 20000002
&gt; TASK = c0000000783b8000[1] 'swapper' THREAD: c0000000783c0000 CPU: 0
&gt; GPR00: 0000000000000001 c0000000783c31e0 c000000000cf38b0 c00000000239a9d0
&gt; GPR04: c000000000cbe8f8 0000000000000000 c0000000783c3040 0000000000000000
&gt; GPR08: c000000075daf488 c000000078a3b7ff c000000000bcacc8 0000000000000000
&gt; GPR12: 0000000044002028 c000000007ffb000 0000000002e40000 000000000099b800
&gt; GPR16: 0000000000000000 c000000000bba5fc c000000000a61db8 0000000000000000
&gt; GPR20: 0000000001b77200 0000000000000000 c000000078990000 0000000000000001
&gt; GPR24: c000000002396828 0000000000000000 0000000000000000 c000000078a3b938
&gt; GPR28: fffffffffffffffa c0000000008ad2c0 c000000000c7faa8 c00000000239a9d0
&gt; NIP [c00000000053b3d4] .scsi_free_queue+0x24/0x90
&gt; LR [c00000000053e5b0] .scsi_alloc_sdev+0x280/0x2e0
&gt; Call Trace:
&gt; [c0000000783c31e0] [c000000000c7faa8] wireless_seq_fops+0x278d0/0x2eb88 (unreliable)
&gt; [c0000000783c3270] [c00000000053e5b0] .scsi_alloc_sdev+0x280/0x2e0
&gt; [c0000000783c3330] [c00000000053eba0] .scsi_probe_and_add_lun+0x390/0xb40
&gt; [c0000000783c34a0] [c00000000053f7ec] .__scsi_scan_target+0x16c/0x650
&gt; [c0000000783c35f0] [c00000000053fd90] .scsi_scan_channel+0xc0/0x100
&gt; [c0000000783c36a0] [c00000000053fefc] .scsi_scan_host_selected+0x12c/0x1c0
&gt; [c0000000783c3750] [c00000000083dcb4] .ipr_probe+0x2c0/0x390
&gt; [c0000000783c3830] [c0000000003f50b4] .local_pci_probe+0x34/0x50
&gt; [c0000000783c38a0] [c0000000003f5f78] .pci_device_probe+0x148/0x150
&gt; [c0000000783c3950] [c0000000004e1e8c] .driver_probe_device+0xdc/0x210
&gt; [c0000000783c39f0] [c0000000004e20cc] .__driver_attach+0x10c/0x110
&gt; [c0000000783c3a80] [c0000000004e1228] .bus_for_each_dev+0x98/0xf0
&gt; [c0000000783c3b30] [c0000000004e1bf8] .driver_attach+0x28/0x40
&gt; [c0000000783c3bb0] [c0000000004e07d8] .bus_add_driver+0x218/0x340
&gt; [c0000000783c3c60] [c0000000004e2a2c] .driver_register+0x9c/0x1b0
&gt; [c0000000783c3d00] [c0000000003f62d4] .__pci_register_driver+0x64/0x140
&gt; [c0000000783c3da0] [c000000000b99f88] .ipr_init+0x4c/0x68
&gt; [c0000000783c3e20] [c00000000000ad24] .do_one_initcall+0x1a4/0x1e0
&gt; [c0000000783c3ee0] [c000000000b512d0] .kernel_init+0x14c/0x1fc
&gt; [c0000000783c3f90] [c000000000022468] .kernel_thread+0x54/0x70
&gt; Instruction dump:
&gt; ebe1fff8 7c0803a6 4e800020 7c0802a6 fba1ffe8 fbe1fff8 7c7f1b78 f8010010
&gt; f821ff71 e8030398 3120ffff 7c090110 &lt;0b000000&gt; e86303b0 482de065 60000000
&gt; ---[ end trace 759bed76a85e8dec ]---
&gt; scsi 0:0:1:0: Direct-Access     IBM-ESXS MAY2036RC        T106 PQ: 0 ANSI: 5
&gt; ------------[ cut here ]------------
&gt;
&gt; I get lots more of these.  The obvious commit to point the finger at
&gt; is 3308511c93e6 ("[SCSI] Make scsi_free_queue() kill pending SCSI
&gt; commands") but the root cause may be something different.

Caused by

commit f7c9c6bb14f3104608a3a83cadea10a6943d2804
Author: Anton Blanchard &lt;anton@samba.org&gt;
Date:   Thu Nov 3 08:56:22 2011 +1100

    [SCSI] Fix block queue and elevator memory leak in scsi_alloc_sdev

Doesn't completely do the teardown.  The true fix is to do a proper
teardown instead of hand rolling it

Reported-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Tested-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
</feed>
