2001-04-27 09:50:47

by dave.fraser

[permalink] [raw]
Subject: Resetting a PCI device

Is there any way of issuing a PCI reset (safely) without rebooting? I am
developing a peripheral device (using a pci card with an FPGA and a plx9080
pci interface), and find that its local bus is prone to hanging up. It
would be nice if I could just reset the entire device via the PCI reset,
without having to go through the hassle of a reboot. Is this wishful
thinking?

- Dave

---------------------------------------------------------------------
Dave Fraser
Development Engineer
BAE Systems, Ferry Road,
Edinburgh, EH5 2XS
Tel: +44 131 3434729
Fax: +44 131 3434124
---------------------------------------------------------------------


2001-04-27 10:18:31

by Francois Romieu

[permalink] [raw]
Subject: Re: Resetting a PCI device

[email protected] <[email protected]> ecrit :
> Is there any way of issuing a PCI reset (safely) without rebooting? I am

No.

[...]
> without having to go through the hassle of a reboot. Is this wishful
> thinking?

Yes. Try to narrow the circunstances under which the device locks and avoid
them at all cost is the best to be done.

--
Ueimor

2001-04-27 11:06:54

by Eric Pennamen

[permalink] [raw]
Subject: Re: Resetting a PCI device

Why don't do a local RESET by writing in CNTRL register of the PLX9080 ?
(PLX datasheet page 79 bit 29 and 28 for reset and reload eeprom config)

[email protected] a ?crit :

> Is there any way of issuing a PCI reset (safely) without rebooting? I am
> developing a peripheral device (using a pci card with an FPGA and a plx9080
> pci interface), and find that its local bus is prone to hanging up. It
> would be nice if I could just reset the entire device via the PCI reset,
> without having to go through the hassle of a reboot. Is this wishful
> thinking?
>
> - Dave
>
> ---------------------------------------------------------------------
> Dave Fraser
> Development Engineer
> BAE Systems, Ferry Road,
> Edinburgh, EH5 2XS
> Tel: +44 131 3434729
> Fax: +44 131 3434124
> ---------------------------------------------------------------------
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--
__________________________________

Eric PENNAMEN
Service Etudes, R&D

NSI
Parc des Glaisins
6, avenue du Pr? de Challes
BP 350
F-74943 ANNECY LE VIEUX Cedex

T?l?phone + 33 (0)4 50 09 46 30
T?l?copie + 33 (0)4 50 09 46 31

E-Mail : [email protected]
Internet : http://www.nsi.fr


2001-04-28 00:39:08

by Tim Wright

[permalink] [raw]
Subject: Re: Resetting a PCI device

Not generally.
Systems that support hot-plug PCI also have the ability to reset individual
PCI slots (ISTR that it's a requirement). Sadly, this facility is not
generally available on "normal" systems.

Tim

On Fri, Apr 27, 2001 at 10:52:20AM +0100, [email protected] wrote:
> Is there any way of issuing a PCI reset (safely) without rebooting? I am
> developing a peripheral device (using a pci card with an FPGA and a plx9080
> pci interface), and find that its local bus is prone to hanging up. It
> would be nice if I could just reset the entire device via the PCI reset,
> without having to go through the hassle of a reboot. Is this wishful
> thinking?
>
> - Dave
>
> ---------------------------------------------------------------------
> Dave Fraser
> Development Engineer
> BAE Systems, Ferry Road,
> Edinburgh, EH5 2XS
> Tel: +44 131 3434729
> Fax: +44 131 3434124
> ---------------------------------------------------------------------
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--
Tim Wright - [email protected] or [email protected] or [email protected]
IBM Linux Technology Center, Beaverton, Oregon
Interested in Linux scalability ? Look at http://lse.sourceforge.net/
"Nobody ever said I was charming, they said "Rimmer, you're a git!"" RD VI