All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brown, Aaron F <aaron.f.brown@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [next PATCH v3 6/9] igb: Add support for padding packet
Date: Tue, 7 Feb 2017 01:15:40 +0000	[thread overview]
Message-ID: <309B89C4C689E141A5FF6A0C5FB2118B8C5897B3@ORSMSX101.amr.corp.intel.com> (raw)
In-Reply-To: CAKgT0UcEdhJ_sAWgk4Enaa2TsnjoupqQZwHOV7F4CAi1=3cPVQ@mail.gmail.com

> -----Original Message-----
> From: Brown, Aaron F
> Sent: Monday, February 6, 2017 3:21 PM
> To: 'Alexander Duyck' <alexander.duyck@gmail.com>
> Cc: intel-wired-lan at lists.osuosl.org; Kirsher, Jeffrey T
> <jeffrey.t.kirsher@intel.com>
> Subject: RE: [Intel-wired-lan] [next PATCH v3 6/9] igb: Add support for
> padding packet
> 
> > 
> > -----Original Message-----
> > From: Alexander Duyck [mailto:alexander.duyck at gmail.com]
> > Sent: Sunday, February 5, 2017 8:45 PM
> > To: Brown, Aaron F <aaron.f.brown@intel.com>
> > Cc: intel-wired-lan at lists.osuosl.org; Kirsher, Jeffrey T
> > <jeffrey.t.kirsher@intel.com>
> > Subject: Re: [Intel-wired-lan] [next PATCH v3 6/9] igb: Add support for
> > padding packet
> >
> > On Fri, Feb 3, 2017 at 4:39 PM, Brown, Aaron F <aaron.f.brown@intel.com>
> > wrote:
> > >> From: Alexander Duyck [mailto:alexander.duyck at gmail.com]
> > >> Sent: Friday, February 3, 2017 9:58 AM
> > >> To: Brown, Aaron F <aaron.f.brown@intel.com>
> > >> Cc: intel-wired-lan at lists.osuosl.org; Kirsher, Jeffrey T
> > >> <jeffrey.t.kirsher@intel.com>
> > >> Subject: Re: [Intel-wired-lan] [next PATCH v3 6/9] igb: Add support for
> > >> padding packet
> > >>
> > >> On Thu, Feb 2, 2017 at 8:01 PM, Brown, Aaron F
> > <aaron.f.brown@intel.com>
> > >> wrote:
> > >> >> From: Intel-wired-lan [mailto:intel-wired-lan-
> > bounces at lists.osuosl.org]
> > >> On
> > >> >> Behalf Of Alexander Duyck
> > >> >> Sent: Monday, January 23, 2017 8:59 AM
> > >> >> To: intel-wired-lan at lists.osuosl.org; Kirsher, Jeffrey T
> > >> >> <jeffrey.t.kirsher@intel.com>
> > >> >> Subject: [Intel-wired-lan] [next PATCH v3 6/9] igb: Add support for
> > >> padding
> > >> >> packet
> > >> >>
> > >> >> From: Alexander Duyck <alexander.h.duyck@intel.com>
> > >> >>
> > >> >> With the size of the frame limited we can now write to an offset
> within
> > >> the
> > >> >> buffer instead of having to write at the very start of the buffer.  The
> > >> >> advantage to this is that it allows us to leave padding room for things
> > >> >> like supporting XDP in the future.
> > >> >>
> > >> >> One side effect of this patch is that we can end up using a larger
> buffer
> > >> >> if jumbo frames is enabled.  The impact shouldn't be too great, but it
> > >> >> could hurt small packet performance for UDP workloads if jumbo
> > frames
> > >> is
> > >> >> enabled as the truesize of frames will be larger.
> > >> >>
> > >> >> Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
> > >> >> ---
> > >> >>
> 
> <snip>
> 
> > >>
> > >> Well one thing you might try doing is running "ethtool
> > >> --set-priv-flags <ethX> legacy-rx on" and seeing if you have the same
> > >> problem or not.  Turning on legacy Rx with this patch applied should
> > >> only have the effect of adding padding to the front of the frame and
> > >> will help to eliminate some of the code as being potentially
> > >> responsible for this.
> > >
> > > Well, I had wiped the old system before I got this message, but after
> > rebuilding I still get a dump from running the same netperf_stress test.
> The
> > trace has changed to a GPF and if I turn on legacy RX as you suggested
> > netperf_stress continues to run fine and I do NOT get the dump.  Here is a
> > copy of the latest dump I got when running netperf_stress (and with legacy
> > RX off.):
> >
> > Okay so that gives me a bit to go on.  If I am not mistaken that
> > system has support for VTd, do you have that enabled in your kernel or
> > is it disabled?
> 
> Yes, the system is supposed to be capable of VTd, it was disable in BIOS and
> kernel when I was running into this last week.  I enabled in BIOS and added
> the intel_iommu=on line to the boot stanza and am still seeing the dump
> when I run it.

Looks like I spoke to soon about VTd truly being enabled.  It was enabled in BIOS and the stanza set, but INTEL_IOMMU was not set in the kernel's .config file.  I've fixed that now, rebuilt, rebooted, and now the system is running the netperf_stress continually without a crash for far longer than it had earlier.  However, I am still getting a message in the log, every few seconds I will see the following splatted to dmesg:
--------------------------------------------------------------------------------------------------------
DMAR: DRHD: handling fault status reg 2
DMAR: [DMA Write] Request device [08:00.1] fault addr ff9f1000 [fault reason 05] PTE Write access is not set
--------------------------------------------------------------------------------------------------------

The called out device, 08:00.1, is the slot for the NIC that is engaged in the netperf_stress test.

So, still a problem, but changed and not as drastic.

> >
> > What I did is break the patch up into smaller steps.  If possible try
> > the v4 set and if you still see the issue I would recommend trying a
> > bisection between patches 6 and 10 to see at which point the issue
> > starts to occur.  My theory is it will either be patch 7 or patch 10.
> > The others shouldn't have an impact but it doesn't hurt to verify it.
> 
> Will do...
> 
> >
> > If nothing else I can probably come by the lab on Tuesday to take a
> > look in person and do some further debugging.
> >
> > Thanks.
> >
> > - Alex

  parent reply	other threads:[~2017-02-07  1:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-23 16:57 [Intel-wired-lan] [next PATCH v3 0/9] igb: Add support for writable pages and build_skb Alexander Duyck
2017-01-23 16:58 ` [Intel-wired-lan] [next PATCH v3 1/9] igb: Add support for DMA_ATTR_WEAK_ORDERING Alexander Duyck
2017-01-23 16:58 ` [Intel-wired-lan] [next PATCH v3 2/9] igb: Use length to determine if descriptor is done Alexander Duyck
2017-01-23 16:58 ` [Intel-wired-lan] [next PATCH v3 3/9] igb: Clear Rx buffer_info in configure instead of clean Alexander Duyck
2017-01-23 16:58 ` [Intel-wired-lan] [next PATCH v3 4/9] igb: Don't bother clearing Tx buffer_info in igb_clean_tx_ring Alexander Duyck
2017-01-23 16:59 ` [Intel-wired-lan] [next PATCH v3 5/9] igb: Limit maximum frame Rx based on MTU Alexander Duyck
2017-01-23 16:59 ` [Intel-wired-lan] [next PATCH v3 6/9] igb: Add support for padding packet Alexander Duyck
2017-02-03  4:01   ` Brown, Aaron F
2017-02-03 17:58     ` Alexander Duyck
2017-02-04  0:39       ` Brown, Aaron F
2017-02-06  4:44         ` Alexander Duyck
2017-02-06 23:20           ` Brown, Aaron F
2017-02-07  1:15           ` Brown, Aaron F [this message]
2017-02-07  1:51             ` Alexander Duyck
2017-02-07  2:11               ` Alexander Duyck
2017-01-23 16:59 ` [Intel-wired-lan] [next PATCH v3 7/9] igb: Add support for ethtool private flag to allow use of legacy Rx Alexander Duyck
2017-01-23 16:59 ` [Intel-wired-lan] [next PATCH v3 8/9] igb: Break out Rx buffer page management Alexander Duyck
2017-01-23 16:59 ` [Intel-wired-lan] [next PATCH v3 9/9] igb: Re-add support for build_skb in igb Alexander Duyck

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=309B89C4C689E141A5FF6A0C5FB2118B8C5897B3@ORSMSX101.amr.corp.intel.com \
    --to=aaron.f.brown@intel.com \
    --cc=intel-wired-lan@osuosl.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 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.