* [PATCH net] r8169: avoid unsolicited interrupts
@ 2024-10-17 6:05 Heiner Kallweit
2024-10-17 16:07 ` Simon Horman
2024-10-17 21:22 ` Heiner Kallweit
0 siblings, 2 replies; 6+ messages in thread
From: Heiner Kallweit @ 2024-10-17 6:05 UTC (permalink / raw)
To: Realtek linux nic maintainers, Jakub Kicinski, Paolo Abeni,
David Miller, Eric Dumazet
Cc: Pengyu Ma, netdev@vger.kernel.org
It was reported that after resume from suspend a PCI error is logged
and connectivity is broken. Error message is:
PCI error (cmd = 0x0407, status_errs = 0x0000)
The message seems to be a red herring as none of the error bits is set,
and the PCI command register value also is normal. Exception handling
for a PCI error includes a chip reset what apparently brakes connectivity
here. The interrupt status bit triggering the PCI error handling isn't
actually used on PCIe chip versions, so it's not clear why this bit is
set by the chip.
Fix this by ignoring interrupt status bits which aren't part of the
interrupt mask.
Note that RxFIFOOver needs a special handling on certain chip versions,
it's handling isn't changed with this patch.
Fixes: 0e4851502f84 ("r8169: merge with version 8.001.00 of Realtek's r8168 driver")
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219388
Tested-by: Pengyu Ma <mapengyu@gmail.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/ethernet/realtek/r8169_main.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
index 1a4d834c2..322a1e930 100644
--- a/drivers/net/ethernet/realtek/r8169_main.c
+++ b/drivers/net/ethernet/realtek/r8169_main.c
@@ -4805,7 +4805,11 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance)
struct rtl8169_private *tp = dev_instance;
u32 status = rtl_get_events(tp);
- if ((status & 0xffff) == 0xffff || !(status & tp->irq_mask))
+ if ((status & 0xffff) == 0xffff)
+ return IRQ_NONE;
+
+ status &= tp->irq_mask | RxFIFOOver;
+ if (!status)
return IRQ_NONE;
if (unlikely(status & SYSErr)) {
--
2.47.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH net] r8169: avoid unsolicited interrupts
2024-10-17 6:05 [PATCH net] r8169: avoid unsolicited interrupts Heiner Kallweit
@ 2024-10-17 16:07 ` Simon Horman
2024-10-17 21:22 ` Heiner Kallweit
1 sibling, 0 replies; 6+ messages in thread
From: Simon Horman @ 2024-10-17 16:07 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Realtek linux nic maintainers, Jakub Kicinski, Paolo Abeni,
David Miller, Eric Dumazet, Pengyu Ma, netdev@vger.kernel.org
On Thu, Oct 17, 2024 at 08:05:16AM +0200, Heiner Kallweit wrote:
> It was reported that after resume from suspend a PCI error is logged
> and connectivity is broken. Error message is:
> PCI error (cmd = 0x0407, status_errs = 0x0000)
> The message seems to be a red herring as none of the error bits is set,
> and the PCI command register value also is normal. Exception handling
> for a PCI error includes a chip reset what apparently brakes connectivity
> here. The interrupt status bit triggering the PCI error handling isn't
> actually used on PCIe chip versions, so it's not clear why this bit is
> set by the chip.
> Fix this by ignoring interrupt status bits which aren't part of the
> interrupt mask.
> Note that RxFIFOOver needs a special handling on certain chip versions,
> it's handling isn't changed with this patch.
>
> Fixes: 0e4851502f84 ("r8169: merge with version 8.001.00 of Realtek's r8168 driver")
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219388
> Tested-by: Pengyu Ma <mapengyu@gmail.com>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH net] r8169: avoid unsolicited interrupts
2024-10-17 6:05 [PATCH net] r8169: avoid unsolicited interrupts Heiner Kallweit
2024-10-17 16:07 ` Simon Horman
@ 2024-10-17 21:22 ` Heiner Kallweit
2024-10-18 2:52 ` Andrew Lunn
1 sibling, 1 reply; 6+ messages in thread
From: Heiner Kallweit @ 2024-10-17 21:22 UTC (permalink / raw)
To: Realtek linux nic maintainers, Jakub Kicinski, Paolo Abeni,
David Miller, Eric Dumazet, Andrew Lunn
Cc: Pengyu Ma, netdev@vger.kernel.org
On 17.10.2024 08:05, Heiner Kallweit wrote:
> It was reported that after resume from suspend a PCI error is logged
> and connectivity is broken. Error message is:
> PCI error (cmd = 0x0407, status_errs = 0x0000)
> The message seems to be a red herring as none of the error bits is set,
> and the PCI command register value also is normal. Exception handling
> for a PCI error includes a chip reset what apparently brakes connectivity
> here. The interrupt status bit triggering the PCI error handling isn't
> actually used on PCIe chip versions, so it's not clear why this bit is
> set by the chip.
> Fix this by ignoring interrupt status bits which aren't part of the
> interrupt mask.
> Note that RxFIFOOver needs a special handling on certain chip versions,
> it's handling isn't changed with this patch.
>
> Fixes: 0e4851502f84 ("r8169: merge with version 8.001.00 of Realtek's r8168 driver")
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219388
> Tested-by: Pengyu Ma <mapengyu@gmail.com>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
When doing some unrelated performance tests I found that this patch breaks
connectivity under heavy load. Please drop it.
I'll investigate and come up with an alternative way to fix the reported issue.
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH net] r8169: avoid unsolicited interrupts
2024-10-17 21:22 ` Heiner Kallweit
@ 2024-10-18 2:52 ` Andrew Lunn
2024-10-18 5:32 ` Heiner Kallweit
0 siblings, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2024-10-18 2:52 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Realtek linux nic maintainers, Jakub Kicinski, Paolo Abeni,
David Miller, Eric Dumazet, Andrew Lunn, Pengyu Ma,
netdev@vger.kernel.org
On Thu, Oct 17, 2024 at 11:22:20PM +0200, Heiner Kallweit wrote:
> On 17.10.2024 08:05, Heiner Kallweit wrote:
> > It was reported that after resume from suspend a PCI error is logged
> > and connectivity is broken. Error message is:
> > PCI error (cmd = 0x0407, status_errs = 0x0000)
> > The message seems to be a red herring as none of the error bits is set,
> > and the PCI command register value also is normal. Exception handling
> > for a PCI error includes a chip reset what apparently brakes connectivity
> > here. The interrupt status bit triggering the PCI error handling isn't
> > actually used on PCIe chip versions, so it's not clear why this bit is
> > set by the chip.
> > Fix this by ignoring interrupt status bits which aren't part of the
> > interrupt mask.
> > Note that RxFIFOOver needs a special handling on certain chip versions,
> > it's handling isn't changed with this patch.
> >
> > Fixes: 0e4851502f84 ("r8169: merge with version 8.001.00 of Realtek's r8168 driver")
> > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219388
> > Tested-by: Pengyu Ma <mapengyu@gmail.com>
> > Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> > ---
>
> When doing some unrelated performance tests I found that this patch breaks
> connectivity under heavy load. Please drop it.
> I'll investigate and come up with an alternative way to fix the reported issue.
You should be able to mark your own patches are change request etc.
Andrew
---
pw-bot: cr
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH net] r8169: avoid unsolicited interrupts
2024-10-18 2:52 ` Andrew Lunn
@ 2024-10-18 5:32 ` Heiner Kallweit
2024-10-18 13:01 ` Andrew Lunn
0 siblings, 1 reply; 6+ messages in thread
From: Heiner Kallweit @ 2024-10-18 5:32 UTC (permalink / raw)
To: Andrew Lunn
Cc: Realtek linux nic maintainers, Jakub Kicinski, Paolo Abeni,
David Miller, Eric Dumazet, Andrew Lunn, Pengyu Ma,
netdev@vger.kernel.org
On 18.10.2024 04:52, Andrew Lunn wrote:
> On Thu, Oct 17, 2024 at 11:22:20PM +0200, Heiner Kallweit wrote:
>> On 17.10.2024 08:05, Heiner Kallweit wrote:
>>> It was reported that after resume from suspend a PCI error is logged
>>> and connectivity is broken. Error message is:
>>> PCI error (cmd = 0x0407, status_errs = 0x0000)
>>> The message seems to be a red herring as none of the error bits is set,
>>> and the PCI command register value also is normal. Exception handling
>>> for a PCI error includes a chip reset what apparently brakes connectivity
>>> here. The interrupt status bit triggering the PCI error handling isn't
>>> actually used on PCIe chip versions, so it's not clear why this bit is
>>> set by the chip.
>>> Fix this by ignoring interrupt status bits which aren't part of the
>>> interrupt mask.
>>> Note that RxFIFOOver needs a special handling on certain chip versions,
>>> it's handling isn't changed with this patch.
>>>
>>> Fixes: 0e4851502f84 ("r8169: merge with version 8.001.00 of Realtek's r8168 driver")
>>> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219388
>>> Tested-by: Pengyu Ma <mapengyu@gmail.com>
>>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>>> ---
>>
>> When doing some unrelated performance tests I found that this patch breaks
>> connectivity under heavy load. Please drop it.
>> I'll investigate and come up with an alternative way to fix the reported issue.
>
> You should be able to mark your own patches are change request etc.
>
When doing this years ago, don't recall which subsystem it was, the maintainer
wasn't too happy that somebody else was changing the status of patches in patchwork.
Next time I'll do so, thanks for the hint.
> Andrew
>
Heiner
> ---
> pw-bot: cr
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH net] r8169: avoid unsolicited interrupts
2024-10-18 5:32 ` Heiner Kallweit
@ 2024-10-18 13:01 ` Andrew Lunn
0 siblings, 0 replies; 6+ messages in thread
From: Andrew Lunn @ 2024-10-18 13:01 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Realtek linux nic maintainers, Jakub Kicinski, Paolo Abeni,
David Miller, Eric Dumazet, Andrew Lunn, Pengyu Ma,
netdev@vger.kernel.org
> > You should be able to mark your own patches are change request etc.
> >
> When doing this years ago, don't recall which subsystem it was, the maintainer
> wasn't too happy that somebody else was changing the status of patches in patchwork.
> Next time I'll do so, thanks for the hint.
To clarify, you can change it using the pw-bot.
Put
pw-bot: cr
somewhere in the email to set it to Change Request.
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html#updating-patch-status
Andrew
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-10-18 13:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-17 6:05 [PATCH net] r8169: avoid unsolicited interrupts Heiner Kallweit
2024-10-17 16:07 ` Simon Horman
2024-10-17 21:22 ` Heiner Kallweit
2024-10-18 2:52 ` Andrew Lunn
2024-10-18 5:32 ` Heiner Kallweit
2024-10-18 13:01 ` Andrew Lunn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).