linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 95101] scsi/mpt2sas: setpci reset results in kernel oops
       [not found] <bug-95101-11613@https.bugzilla.kernel.org/>
@ 2015-03-19 17:33 ` bugzilla-daemon
  2015-03-19 21:46 ` bugzilla-daemon
  2015-04-02  5:58 ` bugzilla-daemon
  2 siblings, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2015-03-19 17:33 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=95101

Nagarajkumar N <nagarajkumar.narayanan@seagate.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |linux-scsi@vger.kernel.org,
                   |                            |nagarajkumar.narayanan@seag
                   |                            |ate.com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 95101] scsi/mpt2sas: setpci reset results in kernel oops
       [not found] <bug-95101-11613@https.bugzilla.kernel.org/>
  2015-03-19 17:33 ` [Bug 95101] scsi/mpt2sas: setpci reset results in kernel oops bugzilla-daemon
@ 2015-03-19 21:46 ` bugzilla-daemon
  2015-04-02  5:58 ` bugzilla-daemon
  2 siblings, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2015-03-19 21:46 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=95101

Joe Lawrence <joe.lawrence@stratus.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joe.lawrence@stratus.com

--- Comment #1 from Joe Lawrence <joe.lawrence@stratus.com> ---
>From the /var/log/messages attachment:

Mar 16 01:13:10 RHEL63 kernel: mpt2sas1: _base_fault_reset_work: Running
mpt2sas_dead_ioc thread success !!!!
...
Mar 16 01:13:20 RHEL63 kernel: mpt2sas1: _scsih_ir_shutdown: timeout
Mar 16 01:13:20 RHEL63 kernel: mpt2sas1: removing handle(0x0024),
wwid(0x0c4e8a1c03a9b742)

indicates that _scsih_remove was called when the driver's watchdog detected
that the device was misbehaving.  Driver device removal invokes:

mpt2sas_base_detach
  mpt2sas_base_free_resources
    iounmap(ioc->chip)

setting the stage for the crash:

Mar 16 01:13:37 RHEL63 kernel: BUG: unable to handle kernel paging request at
ffffc900171e0000                             
Mar 16 01:13:37 RHEL63 kernel: IP: [<ffffffffa00502e0>]
mpt2sas_base_get_iocstate+0x10/0x30 [mpt2sas]
...
Mar 16 01:13:37 RHEL63 kernel: RAX: ffffc900171e0000 RBX: ffff88105a0aa788 RCX:
0000000000004fdc

where mpt2sas_base_get_iocstate was probably calling
readl(&ioc->chip->Doorbell)

So it would seem that the mpt2sas ioctl code (step 5, I think) isn't
synchronized against device removal.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 95101] scsi/mpt2sas: setpci reset results in kernel oops
       [not found] <bug-95101-11613@https.bugzilla.kernel.org/>
  2015-03-19 17:33 ` [Bug 95101] scsi/mpt2sas: setpci reset results in kernel oops bugzilla-daemon
  2015-03-19 21:46 ` bugzilla-daemon
@ 2015-04-02  5:58 ` bugzilla-daemon
  2 siblings, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2015-04-02  5:58 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=95101

--- Comment #2 from Nagarajkumar N <nagarajkumar.narayanan@seagate.com> ---
Created attachment 172971
  --> https://bugzilla.kernel.org/attachment.cgi?id=172971&action=edit
mpt2sas pci resource removal synchronization patch

The attached patch need to applied on latest linux main git branch on
scsi/mpt2sas
The patch provides syncrhonization between cli, brm status show and pci
resource removal path through mutex lock and spinlock protection on linked list
of controllers (multiple warpdrive cards are used) on controller resource
removal and addition

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-02  5:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bug-95101-11613@https.bugzilla.kernel.org/>
2015-03-19 17:33 ` [Bug 95101] scsi/mpt2sas: setpci reset results in kernel oops bugzilla-daemon
2015-03-19 21:46 ` bugzilla-daemon
2015-04-02  5:58 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).