Trying to reset a PCIe device and scratching my head...

From: Jimmie Mayfield
Date: Mon Sep 27 2010 - 22:38:06 EST



Hello. I'm in the process of writing a device driver for a PCIe
device where the bulk of the logic, including the PCIe interface, is
implemented on a couple of large FPGAs. Current target platform is x86
Linux.

Having the PCIe interface implemented inside FPGA 'A' makes upgrading
that particular FPGA rather troublesome. In a perfect world, one would
be able to upgrade the FPGA without having to reboot the machine. The
hardware guys have designed the card to reload that FPGA image upon a
slot reset...either fundamental or hot. (If I could guarantee the
card would always be plugged into a hotplug-capable slot, I suppose I could
forge a hotplug event and toggle power to the slot. But I can't impose
that requirement on customers.)

So I'd like to be able to send either a fundamental or hot reset to the
device but so far I've had no success. Is there a recommended way of doing
this on x86 Linux?

Jimmie

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/