Re: restore missing PCI registers after reset

Greg KH
2006-07-26T16:47:09Z

On Wed, Jul 26, 2006 at 07:32:26PM +0300, Michael S. Tsirkin wrote:
> Quoting r. Greg KH <gregkh@suse.de>:
> > I think pci_restore_state() already restores the msi and msix state,
> > take a look at the latest kernel version :)
>
> Yes, I know :)
> but I am not talking abotu MSI/MSI-X, I am talking about the following:
> > > > PCI-X device: PCI-X command register
> > > > PCI-X bridge: upstream and downstream split transaction registers
> > > > PCI Express : PCI Express device control and link control registers
>
> these register values include maxumum MTU for PCI express and other vital
> data.

Make up a patch that shows how you would save these in a generic way and
we can discuss it. I know people have talked about saving the extended
PCI config space for devices that need it, so that might be all you
need to do here.

thanks,

greg k-h