From: Corinna Vinschen <vinschen@redhat.com>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: netdev@vger.kernel.org,
Realtek linux nic maintainers <nic_swsd@realtek.com>,
Chun-Hao Lin <hau@realtek.com>,
Hayes Wang <hayeswang@realtek.com>,
Corinna Vinschen <vinschen@redhat.com>
Subject: Re: [PATCH v2] r8169: Don't claim WoL works if LanWake flag is not set
Date: Fri, 11 Dec 2015 10:42:29 +0100 [thread overview]
Message-ID: <20151211094229.GC3507@calimero.vinschen.de> (raw)
In-Reply-To: <20151211000627.GA3705@electric-eye.fr.zoreil.com>
[-- Attachment #1: Type: text/plain, Size: 1395 bytes --]
On Dec 11 01:06, Francois Romieu wrote:
> Corinna Vinschen <vinschen@redhat.com> :
> [...]
> > It's still a bit weird. On the machines I tested this on, if I disable
> > LanWake and shutdown the machine, I can send, e.g., MagicPackets as much
> > as I like, the machined don't come up. Isn't it a bit misleading then
> > if ethtool reports that some WoL method is enabled but it doesn't work?
>
> Of course it is. :o(
>
> I'm fine with Config5.LanWake changes if you have empirical evidences that
> it helps.
>
> We have terse - outdated ? - documentation and some hint from
> http://marc.info/?l=linux-netdev&m=137654699802446. I'm unable to figure
> what an/the adequate change could be, especially a low level chance of
> regression one.
I think the problem here is that LanWake only switches off aspects of
the WoL capability which can't be reflected in a reliable way to the
kernel. That's certainly one reason for the driver to enable/disable
LanWake always in lock-step with PMEnable.
So I wonder if we shouldn't just add some code to rtl_init_one (or
create a new function called from rtl_init_one) which checks the WoL
flags and if the PmConfig and LanWake flags are set inconsistently
(aka "differently") then set them to an equal value, either 0 (no WoL
method enabled) or 1 (any WoL method enabled).
Does that make sense?
Thanks,
Corinna
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2015-12-11 9:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 10:08 [PATCH] r8169: Don't claim WoL works if LanWake flag is not set Corinna Vinschen
2015-12-09 10:43 ` [PATCH v2] " Corinna Vinschen
2015-12-09 22:43 ` Francois Romieu
2015-12-10 9:51 ` Corinna Vinschen
2015-12-10 20:40 ` Francois Romieu
2015-12-10 22:02 ` Corinna Vinschen
2015-12-11 0:06 ` Francois Romieu
2015-12-11 9:42 ` Corinna Vinschen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151211094229.GC3507@calimero.vinschen.de \
--to=vinschen@redhat.com \
--cc=hau@realtek.com \
--cc=hayeswang@realtek.com \
--cc=netdev@vger.kernel.org \
--cc=nic_swsd@realtek.com \
--cc=romieu@fr.zoreil.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).