Skip to contentSkip to conversation

ia64, kexec: shutting down the PCI devices does not seem to be neccessary

PATCH In review Horms 1 participant 2 messages Jun 27, 2006

lore
Share & tools
lore

Horms

author
#0 lore raw

PATCH 1/1 ia64, kexec: shutting down the PCI devices does not seem to be neccessary

As suggested by Nanhai Zou, it seems that the pci shutdown code in kdump is not neccessary. I tested the patch on a Tiger2 box, and it seems to work fine.

 arch/ia64/kernel/crash.c |   21 ---------------------
 1 file changed, 21 deletions(-)

db4590a1c287d873fc97d81230579065c4927ac6

arch/ia64/kernel/crash.c +0 -21
index 6623bfc..3f46ee6 100644
@@ -22,26 +22,6 @@ #include <linux/elf.h>
 #include <linux/elfcore.h>
 #include <linux/device.h>
 
-static void device_shootdown(void)
-{
-       struct pci_dev *dev;
-       irq_desc_t *desc;
-       u16 pci_command;
-
-       list_for_each_entry(dev, &pci_devices, global_list) {
-               desc = irq_descp(dev->irq);
-               if (!desc->action)
-                       continue;
-               pci_read_config_word(dev, PCI_COMMAND, &pci_command);
-               if (pci_command & PCI_COMMAND_MASTER) {
-                       pci_command &= ~PCI_COMMAND_MASTER;
-                       pci_write_config_word(dev, PCI_COMMAND, pci_command);
-               }
-               disable_irq_nosync(dev->irq);
-               desc->handler->end(dev->irq);
-       }
-}
-
 static Elf64_Word
 *append_elf_note(Elf64_Word *buf, char *name, unsigned type, void *data,
 		size_t data_len)
@@ -123,7 +103,6 @@ machine_crash_shutdown(struct pt_regs *p
 		ia64_eoi();
 	}
 	crash_save_this_cpu();
-	device_shootdown();
 #ifdef CONFIG_SMP
 	smp_send_stop();
 #endif
author
#1 lore raw
Quoted 3 lines · Horms

As suggested by Nanhai Zou, it seems that the pci shutdown code in kdump is not neccessary. I tested the patch on a Tiger2 box, and it seems to work fine.

I should point out that this patch (inadvertantly) removes the irq-end magic that you were doing in order to make the MPT Fusion function after reboot. However, that device came up just fine with this patch applied. I wonder if a recent fix to MPT is helping us.

http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h›f0a28c9a24e2cee5deecf89d118254374c75ba

Signature · 2 lines
Horms                                           
H: http://www.vergenet.net/~horms/          W: http://www.valinux.co.jp/en/