linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arthur Marsh <arthur.marsh@internode.on.net>
To: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
	tglx@linutronix.de, linux-scsi@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: eata fails to load on post 4.2 kernels
Date: Thu, 10 Sep 2015 17:20:28 +0930	[thread overview]
Message-ID: <55F13644.2080203@internode.on.net> (raw)
In-Reply-To: <55EE6FD1.2030600@linux.intel.com>



Jiang Liu wrote on 08/09/15 14:49:
> Hi Auhur,
> 	Could you please help to apply the test patch
> against the latest mainstream linux kernel?
> Thanks!
> Gerry
...

>>>> git bisect good
>>>> 991de2e59090e55c65a7f59a049142e3c480f7bd is the first bad commit
>>>> commit 991de2e59090e55c65a7f59a049142e3c480f7bd
>>>> Author: Jiang Liu <jiang.liu@linux.intel.com>
>>>> Date:   Wed Jun 10 16:54:59 2015 +0800
>>>>
>>>>       PCI, x86: Implement pcibios_alloc_irq() and pcibios_free_irq()
>>>>
>>>>       To support IOAPIC hotplug, we need to allocate PCI IRQ resources on
>>>> demand
>>>>       and free them when not used anymore.
>>>>
>>>>       Implement pcibios_alloc_irq() and pcibios_free_irq() to dynamically
>>>>       allocate and free PCI IRQs.
>>>>
>>>>       Remove mp_should_keep_irq(), which is no longer used.
>>>>
>>>>       [bhelgaas: changelog]
>>>>       Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
>>>>       Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>>>       Acked-by: Thomas Gleixner <tglx@linutronix.de>
>>>>
>>>> :040000 040000 765e2d5232d53247ec260b34b51589c3bccb36ae
>>>> f680234a27685e94b1a35ae2a7218f8eafa9071a M      arch
>>>> :040000 040000 d55a682bcde72682e883365e88ad1df6186fd54d
>>>> f82c470a04a6845fcf5e0aa934512c75628f798d M      drivers

I tried to do a kexec shut-down with the first version of your patch:

 >From 3085626fb2e677c1d88f158397948935b73f5239 Mon Sep 17 00:00:00 2001
From: Jiang Liu <jiang.liu@linux.intel.com>
Date: Tue, 8 Sep 2015 10:41:19 +0800
Subject: [PATCH]


Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
---
  drivers/pci/pci-driver.c |    1 +
  drivers/scsi/eata.c      |    2 ++
  2 files changed, 3 insertions(+)

diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 52a880ca1768..17d2a0b1de18 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -392,6 +392,7 @@ int __weak pcibios_alloc_irq(struct pci_dev *dev)
  {
  	return 0;
  }
+EXPORT_SYMBOL_GPL(pcibios_alloc_irq);

  void __weak pcibios_free_irq(struct pci_dev *dev)
  {
diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c
index 227dd2c2ec2f..7e6eaf867987 100644
--- a/drivers/scsi/eata.c
+++ b/drivers/scsi/eata.c
@@ -1061,6 +1061,7 @@ static void enable_pci_ports(void)
  		       driver_name, dev->bus->number, dev->devfn);
  #endif

+		pcibios_alloc_irq(dev);
  		if (pci_enable_device(dev))
  			printk
  			    ("%s: warning, pci_enable_device failed, bus %d devfn 0x%x.\n",
@@ -1520,6 +1521,7 @@ static void add_pci_ports(void)
  		if (!(dev = pci_get_class(PCI_CLASS_STORAGE_SCSI << 8, dev)))
  			break;

+		pcibios_alloc_irq(dev);
  		if (pci_enable_device(dev)) {
  #if defined(DEBUG_PCI_DETECT)
  			printk
-- 
1.7.10.4

but I experience identical kexec shutdown and restart problems as with 
the second version of your patch, as seen here:

http://www.users.on.net/~arthur.marsh/20150910541.jpg

the original commit 991de2e59090e55c65a7f59a049142e3c480f7bd quoted 
above seems to have not only lead to start-up problems unless irqpoll 
was enabled but also lead to kexec shutdown/restart problems.

I'm not sure what the solution is but it is good to continue to allow 
kexec reboots to work.

Arthur.

  parent reply	other threads:[~2015-09-10  7:50 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-06  6:28 eata fails to load on post 4.2 kernels Arthur Marsh
2015-09-06  9:04 ` Arthur Marsh
2015-09-06 11:37   ` Arthur Marsh
2015-09-06 20:31     ` Arthur Marsh
2015-09-07  3:06       ` Jiang Liu
     [not found]         ` <55ED2DFA.6030502@internode.on.net>
2015-09-07  9:24           ` Fwd: " Arthur Marsh
2015-09-08  5:19           ` Jiang Liu
2015-09-08  6:32             ` Arthur Marsh
2015-09-08  6:37               ` Jiang Liu
2015-09-08  7:26               ` [Bugfix] PCI, x86: Correctly allocate IRQs for PCI devices managed by non-PCI drivers Jiang Liu
2015-09-08  9:03                 ` Arthur Marsh
2015-09-08  9:44                   ` Jiang Liu
2015-09-08 16:27                 ` Bjorn Helgaas
2015-09-08 16:49                   ` Jiang Liu
2015-09-09 19:11                     ` Bjorn Helgaas
2015-09-10  8:58                       ` Jiang Liu
2015-09-14  3:08                       ` [Bugfix 0/3] Convert eata driver to a normal PCI device driver Jiang Liu
2015-09-14  3:08                         ` [Bugfix 1/3] eata: Use IDA to manage eata board IDs Jiang Liu
2015-09-14  8:08                           ` Hannes Reinecke
2015-09-14  3:08                         ` [Bugfix 2/3] eata: Implement PCI driver to manage eata PCI devices Jiang Liu
2015-09-14  8:17                           ` Hannes Reinecke
2015-09-14  8:31                             ` Jiang Liu
2015-09-14  3:08                         ` [Bugfix 3/3] eata: Enhance eata driver to support PCI device hot-removal Jiang Liu
2015-09-14  8:21                           ` Hannes Reinecke
2015-09-14  8:31                             ` Ballabio, Dario
2015-09-14  8:33                               ` Jiang Liu
2015-09-16 13:42                             ` Christoph Hellwig
2015-09-17  6:49                               ` Jiang Liu
2015-09-18 15:08                               ` Arthur Marsh
2015-09-22  7:30                               ` [RFT v3] eata: Convert eata driver as normal PCI and platform device drivers Jiang Liu
2015-09-22 20:27                                 ` Hannes Reinecke
2015-09-22 22:25                                 ` Arthur Marsh
2015-09-22 22:45                                   ` James Bottomley
2015-09-22 23:36                                     ` Arthur Marsh
2015-09-23  5:24                                       ` Jiang Liu
2015-09-23 10:44                                         ` Arthur Marsh
2015-09-23 14:40                                           ` James Bottomley
2015-09-24  4:28                                             ` Jiang Liu
2015-09-24  5:56                                               ` Arthur Marsh
2015-09-26  6:27                                                 ` Arthur Marsh
2015-10-03  8:11                                                   ` Jiang Liu
2015-10-03 11:14                                                     ` Arthur Marsh
2015-10-05  8:29                                                     ` Arthur Marsh
2015-09-14 16:01                         ` [Bugfix 0/3] Convert eata driver to a normal PCI device driver Arthur Marsh
2015-09-15  2:31                           ` Jiang Liu
2015-09-15  7:19                             ` Arthur Marsh
2015-09-16  5:07                               ` Jiang Liu
2015-09-16  7:37                                 ` Arthur Marsh
2015-09-16  8:21                                   ` Jiang Liu
2015-09-16 11:29                                     ` Arthur Marsh
2015-09-09 19:04                 ` [Bugfix] PCI, x86: Correctly allocate IRQs for PCI devices managed by non-PCI drivers Arthur Marsh
2015-09-10  7:50             ` Arthur Marsh [this message]
2015-09-10  8:13               ` eata fails to load on post 4.2 kernels Jiang Liu
2015-09-10  9:00                 ` Arthur Marsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55F13644.2080203@internode.on.net \
    --to=arthur.marsh@internode.on.net \
    --cc=bhelgaas@google.com \
    --cc=jiang.liu@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).