From: Konstantin Khlebnikov <khlebnikov@openvz.org>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Kexec Mailing List <kexec@lists.infradead.org>,
linux kernel mailing list <linux-kernel@vger.kernel.org>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Bjorn Helgaas <bhelgaas@google.com>,
Jeff Garzik <jgarzik@pobox.com>
Subject: Re: 3.9.0-rc1: kexec not working: root disk does not show up
Date: Thu, 14 Mar 2013 18:46:02 +0400 [thread overview]
Message-ID: <5141E2AA.8010303@openvz.org> (raw)
In-Reply-To: <20130314135507.GA24238@redhat.com>
Vivek Goyal wrote:
> On Wed, Mar 13, 2013 at 06:53:16PM +0400, Konstantin Khlebnikov wrote:
>
> [..]
>> PCI: Don't try to disable Bus Master on disconnected PCI devices
>>
>> From: Konstantin Khlebnikov<khlebnikov@openvz.org>
>>
>> This is fix for commit 7897e6022761ace7377f0f784fca059da55f5d71 from v3.9-rc1
>> ("PCI: Disable Bus Master unconditionally in pci_device_shutdown()")
>> in turn that was fix for b566a22c23327f18ce941ffad0ca907e50a53d41 from v3.5-rc1
>> ("PCI: disable Bus Master on PCI device shutdown")
>>
>> Unfortunately fixing one bug uncovers another: after ->shutdown() device can be
>> already disconnected from the bus and configuration space in no longer available
>>
>> Link: https://lkml.org/lkml/2013/3/12/529
>> Signed-off-by: Konstantin Khlebnikov<khlebnikov@openvz.org>
>> Reported-by: Vivek Goyal<vgoyal@redhat.com>
>> Cc: Bjorn Helgaas<bhelgaas@google.com>
>> Cc: Rafael J. Wysocki<rafael.j.wysocki@intel.com>
>> ---
>> drivers/pci/pci-driver.c | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
>> index 1fa1e48..79277fb 100644
>> --- a/drivers/pci/pci-driver.c
>> +++ b/drivers/pci/pci-driver.c
>> @@ -390,9 +390,10 @@ static void pci_device_shutdown(struct device *dev)
>>
>> /*
>> * Turn off Bus Master bit on the device to tell it to not
>> - * continue to do DMA
>> + * continue to do DMA. Don't touch devices in D3cold or unknown states.
>> */
>> - pci_clear_master(pci_dev);
>> + if (pci_dev->current_state<= PCI_D3hot)
>> + pci_clear_master(pci_dev);
>> }
>>
>> #ifdef CONFIG_PM
>
> Hi,
>
> Above patch fixed the issue on my box. Now I can kexec. Thanks.
>
> Vivek
>
Ok, thanks for testing.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
WARNING: multiple messages have this Message-ID (diff)
From: Konstantin Khlebnikov <khlebnikov@openvz.org>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>,
Kexec Mailing List <kexec@lists.infradead.org>,
Bjorn Helgaas <bhelgaas@google.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Jeff Garzik <jgarzik@pobox.com>
Subject: Re: 3.9.0-rc1: kexec not working: root disk does not show up
Date: Thu, 14 Mar 2013 18:46:02 +0400 [thread overview]
Message-ID: <5141E2AA.8010303@openvz.org> (raw)
In-Reply-To: <20130314135507.GA24238@redhat.com>
Vivek Goyal wrote:
> On Wed, Mar 13, 2013 at 06:53:16PM +0400, Konstantin Khlebnikov wrote:
>
> [..]
>> PCI: Don't try to disable Bus Master on disconnected PCI devices
>>
>> From: Konstantin Khlebnikov<khlebnikov@openvz.org>
>>
>> This is fix for commit 7897e6022761ace7377f0f784fca059da55f5d71 from v3.9-rc1
>> ("PCI: Disable Bus Master unconditionally in pci_device_shutdown()")
>> in turn that was fix for b566a22c23327f18ce941ffad0ca907e50a53d41 from v3.5-rc1
>> ("PCI: disable Bus Master on PCI device shutdown")
>>
>> Unfortunately fixing one bug uncovers another: after ->shutdown() device can be
>> already disconnected from the bus and configuration space in no longer available
>>
>> Link: https://lkml.org/lkml/2013/3/12/529
>> Signed-off-by: Konstantin Khlebnikov<khlebnikov@openvz.org>
>> Reported-by: Vivek Goyal<vgoyal@redhat.com>
>> Cc: Bjorn Helgaas<bhelgaas@google.com>
>> Cc: Rafael J. Wysocki<rafael.j.wysocki@intel.com>
>> ---
>> drivers/pci/pci-driver.c | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
>> index 1fa1e48..79277fb 100644
>> --- a/drivers/pci/pci-driver.c
>> +++ b/drivers/pci/pci-driver.c
>> @@ -390,9 +390,10 @@ static void pci_device_shutdown(struct device *dev)
>>
>> /*
>> * Turn off Bus Master bit on the device to tell it to not
>> - * continue to do DMA
>> + * continue to do DMA. Don't touch devices in D3cold or unknown states.
>> */
>> - pci_clear_master(pci_dev);
>> + if (pci_dev->current_state<= PCI_D3hot)
>> + pci_clear_master(pci_dev);
>> }
>>
>> #ifdef CONFIG_PM
>
> Hi,
>
> Above patch fixed the issue on my box. Now I can kexec. Thanks.
>
> Vivek
>
Ok, thanks for testing.
next prev parent reply other threads:[~2013-03-14 14:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-08 17:17 3.9.0-rc1: kexec not working: root disk does not show up Vivek Goyal
2013-03-08 17:17 ` Vivek Goyal
2013-03-12 19:29 ` Vivek Goyal
2013-03-12 19:29 ` Vivek Goyal
2013-03-13 7:46 ` Konstantin Khlebnikov
2013-03-13 7:46 ` Konstantin Khlebnikov
2013-03-13 13:53 ` Vivek Goyal
2013-03-13 13:53 ` Vivek Goyal
2013-03-13 14:53 ` Konstantin Khlebnikov
2013-03-13 14:53 ` Konstantin Khlebnikov
2013-03-14 13:55 ` Vivek Goyal
2013-03-14 13:55 ` Vivek Goyal
2013-03-14 14:46 ` Konstantin Khlebnikov [this message]
2013-03-14 14:46 ` Konstantin Khlebnikov
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=5141E2AA.8010303@openvz.org \
--to=khlebnikov@openvz.org \
--cc=bhelgaas@google.com \
--cc=ebiederm@xmission.com \
--cc=jgarzik@pobox.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=vgoyal@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.