[PATCH v2] Bugfix: powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Mike Qiu
pci_get_slot() is called with hold of PCI bus semaphore and it's not safe to be called in interrupt context. However, we possibly checks EEH error and calls the function in interrupt context. To avoid using pci_get_slot(), we turn into device tree for fetching location code. Otherwise, we might

Re: [PATCH v2] Bugfix: powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Gavin Shan
On Mon, Jul 14, 2014 at 10:33:48PM -0400, Mike Qiu wrote: pci_get_slot() is called with hold of PCI bus semaphore and it's not safe to be called in interrupt context. However, we possibly checks EEH error and calls the function in interrupt context. To avoid using pci_get_slot(), we turn into

Re: [PATCH v2] Bugfix: powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Mike Qiu
On 07/15/2014 01:07 PM, Gavin Shan wrote: On Mon, Jul 14, 2014 at 10:33:48PM -0400, Mike Qiu wrote: pci_get_slot() is called with hold of PCI bus semaphore and it's not safe to be called in interrupt context. However, we possibly checks EEH error and calls the function in interrupt context. To