From: Heiner Kallweit <hkallweit1@gmail.com>
To: pseudoc <atlas.yu@canonical.com>, hau@realtek.com
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
netdev@vger.kernel.org, nic_swsd@realtek.com, pabeni@redhat.com
Subject: Re: [PATCH] r8169: skip DASH fw status checks when DASH is disabled
Date: Fri, 22 Mar 2024 11:16:50 +0100 [thread overview]
Message-ID: <0dee563a-08ea-4e50-b285-5d0527458057@gmail.com> (raw)
In-Reply-To: <20240322083315.47477-1-atlas.yu@canonical.com>
On 22.03.2024 09:33, pseudoc wrote:
> On Fri, Mar 22, 2024 at 3:01 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>> To me this seems to be somewhat in conflict with the commit message of the
>> original change. There's a statement that DASH firmware may influence driver
>> behavior even if DASH is disabled.
>> I think we have to consider three cases in the driver:
>> 1. DASH enabled (implies firmware is present)
>> 2. DASH disabled (firmware present)
>> 3. DASH disabled (no firmware)
>
>> I assume your change is for case 3.
> I checked the r8168 driver[1], for both DP and EP DASH types,
> "rtl8168_wait_dash_fw_ready" will immediately return if DASH is disabled.
> So I think the firmware presence doesn't really matter.
>
>> Is there a way to detect firmware presence on driver load?
> By comparing r8168_n.c and r8169_main.c, I think "rtl_ep_ocp_read_cond" and
> "rtl_dp_ocp_read_cond" is checking that, which is redundant when DASH is disabled.
>
No, this only checks whether DASH is enabled.
I don't think is redundant, because the original change explicitly mentions that
DASH fw may impact behavior even if DASH is disabled.
I understand that on your test system DASH is disabled. But does your system have
a DASH fw or not?
My assumption is that the poll loop is relevant on systems with DASH fw, even if
DASH is disabled. I'd appreciate if somebody from Realtek could comment on this. Hau?
Including the question whether DASH fw presence can be detected, even if DASH is disabled.
> [1] r8168 driver: https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
next prev parent reply other threads:[~2024-03-22 10:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-22 3:46 [PATCH] r8169: skip DASH fw status checks when DASH is disabled pseudoc
2024-03-22 7:01 ` Heiner Kallweit
2024-03-22 8:16 ` Jiri Pirko
2024-03-22 8:26 ` [PATCH v2] " pseudoc
2024-03-22 9:07 ` Jiri Pirko
2024-03-22 9:20 ` Sorry Jiri Pirko pseudoc
2024-03-22 9:10 ` Sorry for the spam, ignore the previous email please pseudoc
2024-03-26 9:08 ` [PATCH v2] r8169: skip DASH fw status checks when DASH is disabled Paolo Abeni
2024-03-26 10:08 ` DRY rules - extract into rtl_cond_loop_wait_high() Atlas Yu
2024-03-26 20:28 ` Heiner Kallweit
2024-03-27 2:15 ` DRY rules - extract into inline helper functions Atlas Yu
2024-03-27 6:37 ` Heiner Kallweit
2024-03-22 8:33 ` [PATCH] r8169: skip DASH fw status checks when DASH is disabled pseudoc
2024-03-22 10:16 ` Heiner Kallweit [this message]
2024-03-22 10:49 ` Heiner Kallweit Atlas Yu
2024-03-22 12:32 ` r8169 DASH-related issue Heiner Kallweit
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=0dee563a-08ea-4e50-b285-5d0527458057@gmail.com \
--to=hkallweit1@gmail.com \
--cc=atlas.yu@canonical.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hau@realtek.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nic_swsd@realtek.com \
--cc=pabeni@redhat.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).