From: Ding Tianhong <dingtianhong@huawei.com>
To: "Tantilov, Emil S" <emil.s.tantilov@intel.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>,
"keescook@chromium.org" <keescook@chromium.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"sparclinux@vger.kernel.org" <sparclinux@vger.kernel.org>,
"intel-wired-lan@lists.osuosl.org"
<intel-wired-lan@lists.osuosl.org>,
"alexander.duyck@gmail.com" <alexander.duyck@gmail.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linuxarm@huawei.com" <linuxarm@huawei.com>
Subject: Re: [PATCH net v2 2/2] net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag
Date: Fri, 18 Aug 2017 08:39:23 +0800 [thread overview]
Message-ID: <2a7fc27b-c2f4-a7a1-9318-3a93531e7670@huawei.com> (raw)
In-Reply-To: <87618083B2453E4A8714035B62D67992B4094F7A@FMSMSX105.amr.corp.intel.com>
On 2017/8/17 22:17, Tantilov, Emil S wrote:
>> ret_val = ixgbe_start_hw_generic(hw);
>>
>> -#ifndef CONFIG_SPARC
>> - /* Disable relaxed ordering */
>> - for (i = 0; ((i < hw->mac.max_tx_queues) &&
>> - (i < IXGBE_DCA_MAX_QUEUES_82598)); i++) {
>> - regval = IXGBE_READ_REG(hw, IXGBE_DCA_TXCTRL(i));
>> - regval &= ~IXGBE_DCA_TXCTRL_DESC_WRO_EN;
>> - IXGBE_WRITE_REG(hw, IXGBE_DCA_TXCTRL(i), regval);
>> - }
>> + if (!pcie_relaxed_ordering_enabled(adapter->pdev)) {
>
> As Alex mentioned there is no need for this check in any form.
>
> The HW defaults to Relaxed Ordering enabled unless it is disabled in
> the PCIe Device Control Register. So the above logic is already done by HW.
>
> All you have to do is strip the code disabling relaxed ordering.
>
Hi Tantilov:
I misunderstood Alex's suggestion, But I still couldn't find the logic where
the HW disable the Relaxed Ordering when the PCIe Device Control Register
disable it, can you point it out?
Thanks
Ding
> Thanks,
> Emil
>
>
> .
>
next prev parent reply other threads:[~2017-08-18 0:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 3:25 [PATCH net v2 0/2] net: ixgbe: Use new flag to disable Relaxed Ordering Ding Tianhong
2017-08-17 3:25 ` [PATCH net v2 1/2] Revert commit 1a8b6d76dc5b ("net:add one common config...") Ding Tianhong
2017-08-17 3:25 ` [PATCH net v2 2/2] net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag Ding Tianhong
2017-08-17 14:17 ` Tantilov, Emil S
2017-08-18 0:39 ` Ding Tianhong [this message]
2017-08-18 5:04 ` Tantilov, Emil S
2017-08-18 5:50 ` Ding Tianhong
2017-08-19 22:10 ` kbuild test robot
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=2a7fc27b-c2f4-a7a1-9318-3a93531e7670@huawei.com \
--to=dingtianhong@huawei.com \
--cc=alexander.duyck@gmail.com \
--cc=davem@davemloft.net \
--cc=emil.s.tantilov@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=netdev@vger.kernel.org \
--cc=sparclinux@vger.kernel.org \
/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
all inboxes | Powered by JetHome®