Skip to content

Commit

Permalink
[PATCH] ibmveth: kdump interrupt fix
Browse files Browse the repository at this point in the history
This patch fixes a race that panics the kernel when opening the
device after a kdump.  Without this patch there is a window where the
hypervisor can send an interrupt before all the structures for the
kdump ibmveth module are ready (because the hypervisor is not aware
that the partition crashed and that the virtual driver is reloading).
We close this window by disabling the interrupts before registering
the adapter to the hypervisor.

This patch depends on the "ibmveth: Harden driver initilisation" patch.

Signed-off-by: Santiago Leon <santil@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Santiago Leon authored and Jeff Garzik committed Oct 5, 2006
1 parent 6b42237 commit 4347ef1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ibmveth.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ static int ibmveth_open(struct net_device *netdev)
ibmveth_debug_printk("filter list @ 0x%p\n", adapter->filter_list_addr);
ibmveth_debug_printk("receive q @ 0x%p\n", adapter->rx_queue.queue_addr);

h_vio_signal(adapter->vdev->unit_address, VIO_IRQ_DISABLE);

lpar_rc = ibmveth_register_logical_lan(adapter, rxq_desc, mac_address);

if(lpar_rc != H_SUCCESS) {
Expand Down

0 comments on commit 4347ef1

Please sign in to comment.