Results 1 to 2 of 2

Thread: Is there a way to suspend/disconnect/disable PCIe device

  1. #1
    Join Date
    Nov 2009
    Beans
    16
    Distro
    Ubuntu 10.04 Lucid Lynx

    Is there a way to suspend/disconnect/disable PCIe device

    I am working in a hardware development environment where I have a PCIe card that contains a reprogrammable FPGA on it. The FPGA contains the PCIe core logic that talks to the bus, including relevant PCIe configuration information. Whenever I need to reprogram the FPGA, the kernel panics, because the PCIe core logic talking to the bus was reprogrammed and for some brief moment in time, the cards PCIe link is in some unknown state. Is there a way (i.e., some Linux commands or some other method) for me to be able to disconnect/disable the PCI device from the bus so that I can reprogram the FPGA, than reconnect/reenable the device after the FPGA has been reprogrammed?

    Please assume that the configuration space of the PCIe device is identical before and after the FPGA is reprogrammed. I just cannot guarantee what the bus sees in the "in-between" state. Any help would be greatly appreciated.

  2. #2
    Join Date
    Dec 2009
    Location
    State of Jefferson
    Beans
    331

    Re: Is there a way to suspend/disconnect/disable PCIe device

    'apropos pci' doesn't show anything really pertinent (setpci does other stuff), and Google seems to not know of a relevant tool.
    I'd suggest
    Code:
    sudo modprobe -r <driver>
    ##flash and wait
    sudo modprobe <driver>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •