[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1808221222260.2514@nanos.tec.linutronix.de>
Date: Wed, 22 Aug 2018 13:44:44 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Heiner Kallweit <hkallweit1@...il.com>
cc: David Miller <davem@...emloft.net>, helgaas@...nel.org,
jian-hong@...lessm.com, nic_swsd@...ltek.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux@...lessm.com, linux-pci@...r.kernel.org,
marc.zyngier@....com, hch@....de
Subject: Re: [PATCH] r8169: don't use MSI-X on RTL8106e
On Tue, 21 Aug 2018, Heiner Kallweit wrote:
> On 21.08.2018 21:31, David Miller wrote:
> > From: Heiner Kallweit <hkallweit1@...il.com>
> > Date: Mon, 20 Aug 2018 22:46:48 +0200
> >
> >> I'm in contact with Realtek and according to them few chip versions
> >> seem to clear MSI-X table entries on resume from suspend. Checking
> >> with them how this could be fixed / worked around.
> >> Worst case we may have to disable MSI-X in general.
> >
> > I worry that if the chip does this, and somehow MSI-X is enabled and
> > an interrupt is generated, the chip will write to the cleared out
> > MSI-X address. This will either write garbage into memory or cause
> > a bus error and require PCI error recovery.
> >
> > It also looks like your test patch doesn't fix things for people who
> > have tested it.
> >
> The test patch was based on the first info from Realtek which made me
> think that the base address of the MSI-X table is cleared, what
> obviously is not the case.
>
> After some further tests it seems that the solution isn't as simple
> as storing the MSI-X table entries on suspend and restore them on
> resume. On my system (where MSI-X works fine) MSI-X table entries
> on resume are partially different from the ones on suspend.
Which is not a surprise. Please don't try to fiddle with that at the driver
level. The irq and PCI core code are the ones in charge and if you'd
restore at the wrong point then hell breaks lose.
Can you please do the following:
1) Store the PCI config space at suspend time
2) Compare the PCI config space at resume time and print the difference
Do that on a working and a non-working version of Realtek NICs.
Thanks,
tglx
Powered by blists - more mailing lists