All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] r8169: fix ASPM-related problem for chip version 42 and 43
@ 2023-07-13 19:46 Heiner Kallweit
  2023-07-14  3:31 ` Linux regression tracking (Thorsten Leemhuis)
  0 siblings, 1 reply; 7+ messages in thread
From: Heiner Kallweit @ 2023-07-13 19:46 UTC (permalink / raw)
  To: Jakub Kicinski, David Miller, Realtek linux nic maintainers,
	Eric Dumazet, Paolo Abeni
  Cc: netdev, Linux regressions mailing list, joey.joey586

Referenced commit missed that for chip versions 42 and 43 ASPM
remained disabled in the respective rtl_hw_start_...() routines.
This resulted in problems as described in [0].
Therefore re-instantiate the previous logic.

[0] https://bugzilla.kernel.org/show_bug.cgi?id=217635

Fixes: 5fc3f6c90cca ("r8169: consolidate disabling ASPM before EPHY access")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/net/ethernet/realtek/r8169_main.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
index 9445f04f8..2b3aa6b45 100644
--- a/drivers/net/ethernet/realtek/r8169_main.c
+++ b/drivers/net/ethernet/realtek/r8169_main.c
@@ -2747,6 +2747,13 @@ static void rtl_hw_aspm_clkreq_enable(struct rtl8169_private *tp, bool enable)
 		return;
 
 	if (enable) {
+		/* On these chip versions ASPM can even harm
+		 * bus communication of other PCI devices.
+		 */
+		if (tp->mac_version == RTL_GIGA_MAC_VER_42 ||
+		    tp->mac_version == RTL_GIGA_MAC_VER_43)
+			return;
+
 		rtl_mod_config5(tp, 0, ASPM_en);
 		rtl_mod_config2(tp, 0, ClkReqEn);
 
-- 
2.41.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH net] r8169: fix ASPM-related problem for chip version 42 and 43
  2023-07-13 19:46 [PATCH net] r8169: fix ASPM-related problem for chip version 42 and 43 Heiner Kallweit
@ 2023-07-14  3:31 ` Linux regression tracking (Thorsten Leemhuis)
  2023-07-14  5:34   ` Heiner Kallweit
  0 siblings, 1 reply; 7+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2023-07-14  3:31 UTC (permalink / raw)
  To: Heiner Kallweit, Jakub Kicinski, David Miller,
	Realtek linux nic maintainers, Eric Dumazet, Paolo Abeni
  Cc: netdev, Linux regressions mailing list, joey.joey586

On 13.07.23 21:46, Heiner Kallweit wrote:
> Referenced commit missed that for chip versions 42 and 43 ASPM

Thanks again for taking care of this.

> [0] https://bugzilla.kernel.org/show_bug.cgi?id=217635

That line should be a proper Link: or Closes: tag, as explained by
Documentation/process/submitting-patches.rst
(http://docs.kernel.org/process/submitting-patches.html) and
Documentation/process/5.Posting.rst
(https://docs.kernel.org/process/5.Posting.html) and thus be in the
signed-off-by area, for example like this (without the space upfront):

> Fixes: 5fc3f6c90cca ("r8169: consolidate disabling ASPM before EPHY access")
 Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217635 # [0]

A "Cc: stable@vger.kernel.org" would be nice, too, to get this fixed in
6.4, where this surfaced (reminder: no, a Fixes: tag is not enough to
ensure the backport there).

> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> […]

#regzbot ^backmonitor: https://bugzilla.kernel.org/show_bug.cgi?id=217635

Ciao, Thorsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net] r8169: fix ASPM-related problem for chip version 42 and 43
  2023-07-14  3:31 ` Linux regression tracking (Thorsten Leemhuis)
@ 2023-07-14  5:34   ` Heiner Kallweit
  2023-07-14  6:30     ` Linux regression tracking (Thorsten Leemhuis)
  0 siblings, 1 reply; 7+ messages in thread
From: Heiner Kallweit @ 2023-07-14  5:34 UTC (permalink / raw)
  To: Linux regressions mailing list, Jakub Kicinski, David Miller,
	Realtek linux nic maintainers, Eric Dumazet, Paolo Abeni
  Cc: netdev, joey.joey586

On 14.07.2023 05:31, Linux regression tracking (Thorsten Leemhuis) wrote:
> On 13.07.23 21:46, Heiner Kallweit wrote:
>> Referenced commit missed that for chip versions 42 and 43 ASPM
> 
> Thanks again for taking care of this.
> 
>> [0] https://bugzilla.kernel.org/show_bug.cgi?id=217635
> 
> That line should be a proper Link: or Closes: tag, as explained by
> Documentation/process/submitting-patches.rst

OK

> (http://docs.kernel.org/process/submitting-patches.html) and
> Documentation/process/5.Posting.rst
> (https://docs.kernel.org/process/5.Posting.html) and thus be in the
> signed-off-by area, for example like this (without the space upfront):
> 
>> Fixes: 5fc3f6c90cca ("r8169: consolidate disabling ASPM before EPHY access")
>  Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217635 # [0]
> 
> A "Cc: stable@vger.kernel.org" would be nice, too, to get this fixed in
> 6.4, where this surfaced (reminder: no, a Fixes: tag is not enough to
> ensure the backport there).
> 

That's different in the net subsystem. The net (vs. net-next) annotation
ensures the backport.

>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>> […]
> 
> #regzbot ^backmonitor: https://bugzilla.kernel.org/show_bug.cgi?id=217635
> 
> Ciao, Thorsten


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net] r8169: fix ASPM-related problem for chip version 42 and 43
  2023-07-14  5:34   ` Heiner Kallweit
@ 2023-07-14  6:30     ` Linux regression tracking (Thorsten Leemhuis)
  2023-07-14  6:34       ` Heiner Kallweit
  0 siblings, 1 reply; 7+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2023-07-14  6:30 UTC (permalink / raw)
  To: Heiner Kallweit, Linux regressions mailing list, Jakub Kicinski,
	David Miller, Realtek linux nic maintainers, Eric Dumazet,
	Paolo Abeni
  Cc: netdev, joey.joey586

On 14.07.23 07:34, Heiner Kallweit wrote:
> On 14.07.2023 05:31, Linux regression tracking (Thorsten Leemhuis) wrote:
>> On 13.07.23 21:46, Heiner Kallweit wrote:
>
>>> Fixes: 5fc3f6c90cca ("r8169: consolidate disabling ASPM before EPHY access")
>>  Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217635 # [0]
>> A "Cc: stable@vger.kernel.org" would be nice, too, to get this fixed in
>> 6.4, where this surfaced (reminder: no, a Fixes: tag is not enough to
>> ensure the backport there).
> That's different in the net subsystem. The net (vs. net-next) annotation
> ensures the backport.

Huh, how does that work? I thought "net" currently means "for 6.5" while
"net-next" implies 6.6?

Ciao, Thorsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net] r8169: fix ASPM-related problem for chip version 42 and 43
  2023-07-14  6:30     ` Linux regression tracking (Thorsten Leemhuis)
@ 2023-07-14  6:34       ` Heiner Kallweit
  2023-07-14  6:58         ` Linux regression tracking (Thorsten Leemhuis)
  0 siblings, 1 reply; 7+ messages in thread
From: Heiner Kallweit @ 2023-07-14  6:34 UTC (permalink / raw)
  To: Linux regressions mailing list, Jakub Kicinski, David Miller,
	Realtek linux nic maintainers, Eric Dumazet, Paolo Abeni
  Cc: netdev, joey.joey586

On 14.07.2023 08:30, Linux regression tracking (Thorsten Leemhuis) wrote:
> On 14.07.23 07:34, Heiner Kallweit wrote:
>> On 14.07.2023 05:31, Linux regression tracking (Thorsten Leemhuis) wrote:
>>> On 13.07.23 21:46, Heiner Kallweit wrote:
>>
>>>> Fixes: 5fc3f6c90cca ("r8169: consolidate disabling ASPM before EPHY access")
>>>  Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217635 # [0]
>>> A "Cc: stable@vger.kernel.org" would be nice, too, to get this fixed in
>>> 6.4, where this surfaced (reminder: no, a Fixes: tag is not enough to
>>> ensure the backport there).
>> That's different in the net subsystem. The net (vs. net-next) annotation
>> ensures the backport.
> 
> Huh, how does that work? I thought "net" currently means "for 6.5" while
> "net-next" implies 6.6?
> 

https://www.kernel.org/doc/Documentation/networking/netdev-FAQ.txt

See question:
I see a network patch and I think it should be backported to stable.
Should I request it via "stable@vger.kernel.org" like the references in
the kernel's Documentation/process/stable-kernel-rules.rst file say?

> Ciao, Thorsten

Heiner


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net] r8169: fix ASPM-related problem for chip version 42 and 43
  2023-07-14  6:34       ` Heiner Kallweit
@ 2023-07-14  6:58         ` Linux regression tracking (Thorsten Leemhuis)
  2023-07-14  8:16           ` Linux regression tracking (Thorsten Leemhuis)
  0 siblings, 1 reply; 7+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2023-07-14  6:58 UTC (permalink / raw)
  To: Heiner Kallweit, Linux regressions mailing list, Jakub Kicinski,
	David Miller, Realtek linux nic maintainers, Eric Dumazet,
	Paolo Abeni
  Cc: netdev, joey.joey586, Greg KH

[ccing greg]

On 14.07.23 08:34, Heiner Kallweit wrote:
> On 14.07.2023 08:30, Linux regression tracking (Thorsten Leemhuis) wrote:
>> On 14.07.23 07:34, Heiner Kallweit wrote:
>>> On 14.07.2023 05:31, Linux regression tracking (Thorsten Leemhuis) wrote:
>>>> On 13.07.23 21:46, Heiner Kallweit wrote:
>>>
>>>>> Fixes: 5fc3f6c90cca ("r8169: consolidate disabling ASPM before EPHY access")
>>>>  Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217635 # [0]
>>>> A "Cc: stable@vger.kernel.org" would be nice, too, to get this fixed in
>>>> 6.4, where this surfaced (reminder: no, a Fixes: tag is not enough to
>>>> ensure the backport there).
>>> That's different in the net subsystem. The net (vs. net-next) annotation
>>> ensures the backport.
>>
>> Huh, how does that work? I thought "net" currently means "for 6.5" while
>> "net-next" implies 6.6?
> 
> https://www.kernel.org/doc/Documentation/networking/netdev-FAQ.txt
> 
> See question:
> I see a network patch and I think it should be backported to stable.
> Should I request it via "stable@vger.kernel.org" like the references in
> the kernel's Documentation/process/stable-kernel-rules.rst file say?

Ahh, thx. Hmm, the patchworks queue mentioned a bit higher (
http://patchwork.ozlabs.org/bundle/davem/stable/?state=* ) seems to be
mostly unused since Oct 2020. Is there a newer one?

Also a "git log --oneline --no-merges v6.0.. --grep 'stable@vger'
drivers/net/ net/  | wc -l" returns "196", but I assume all those where
mistakes?

Ciao, Thorsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net] r8169: fix ASPM-related problem for chip version 42 and 43
  2023-07-14  6:58         ` Linux regression tracking (Thorsten Leemhuis)
@ 2023-07-14  8:16           ` Linux regression tracking (Thorsten Leemhuis)
  0 siblings, 0 replies; 7+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2023-07-14  8:16 UTC (permalink / raw)
  To: Heiner Kallweit, Linux regressions mailing list, Jakub Kicinski,
	David Miller, Realtek linux nic maintainers, Eric Dumazet,
	Paolo Abeni
  Cc: netdev, joey.joey586, Greg KH

[Short version: sorry for the noise, a stale file sent us sideways.]

On 14.07.23 08:58, Linux regression tracking (Thorsten Leemhuis) wrote:
> [ccing greg]
> 
> On 14.07.23 08:34, Heiner Kallweit wrote:
>> On 14.07.2023 08:30, Linux regression tracking (Thorsten Leemhuis) wrote:
>>> On 14.07.23 07:34, Heiner Kallweit wrote:
>>>> On 14.07.2023 05:31, Linux regression tracking (Thorsten Leemhuis) wrote:
>>>>> On 13.07.23 21:46, Heiner Kallweit wrote:
>>>>
>>>>>> Fixes: 5fc3f6c90cca ("r8169: consolidate disabling ASPM before EPHY access")
>>>>>  Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217635 # [0]
>>>>> A "Cc: stable@vger.kernel.org" would be nice, too, to get this fixed in
>>>>> 6.4, where this surfaced (reminder: no, a Fixes: tag is not enough to
>>>>> ensure the backport there).
>>>> That's different in the net subsystem. The net (vs. net-next) annotation
>>>> ensures the backport.
>>>
>>> Huh, how does that work? I thought "net" currently means "for 6.5" while
>>> "net-next" implies 6.6?
>>
>> https://www.kernel.org/doc/Documentation/networking/netdev-FAQ.txt

I just learned on social media that's a stale file that doesn't exist
anymore in mainline (I'll talk to Konstantin, maybe he can remove it to
avoid similar problems in the future). That document was converted to
rst and later...

>> See question:
>> I see a network patch and I think it should be backported to stable.
>> Should I request it via "stable@vger.kernel.org" like the references in
>> the kernel's Documentation/process/stable-kernel-rules.rst file say?

...this section was actually removed in dbbe7c962c3 ("docs: networking:
drop special stable handling") [v5.12-rc3]; later that document moved here:

https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html

To quote:

```

1.5.7. Stable tree

While it used to be the case that netdev submissions were not supposed
to carry explicit CC: stable@vger.kernel.org tags that is no longer the
case today. Please follow the standard stable rules in
Documentation/process/stable-kernel-rules.rst, and make sure you include
appropriate Fixes tags!
```

That clears things up. Ciao, Thorsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-07-14  8:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-13 19:46 [PATCH net] r8169: fix ASPM-related problem for chip version 42 and 43 Heiner Kallweit
2023-07-14  3:31 ` Linux regression tracking (Thorsten Leemhuis)
2023-07-14  5:34   ` Heiner Kallweit
2023-07-14  6:30     ` Linux regression tracking (Thorsten Leemhuis)
2023-07-14  6:34       ` Heiner Kallweit
2023-07-14  6:58         ` Linux regression tracking (Thorsten Leemhuis)
2023-07-14  8:16           ` Linux regression tracking (Thorsten Leemhuis)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.