All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarek Poplawski <jarkao2@gmail.com>
To: Michael Breuer <mbreuer@majjas.com>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>,
	David Miller <davem@davemloft.net>,
	akpm@linux-foundation.org, flyboy@gmail.com,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Date: Fri, 8 Jan 2010 07:45:39 +0000	[thread overview]
Message-ID: <20100108074539.GA6205@ff.dom.local> (raw)
In-Reply-To: <4B466A26.5070506@majjas.com>

On Thu, Jan 07, 2010 at 06:11:34PM -0500, Michael Breuer wrote:
> Results:
> * no MMAP, mtu=1500, neither alternative patch loaded: adapter crashed:
> Jan  7 15:44:23 mail kernel: DRHD: handling fault status reg 2
> Jan  7 15:44:23 mail kernel: DMAR:[DMA Read] Request device [06:00.0]  
> fault addr fffb7bffe000
> Jan  7 15:44:23 mail kernel: DMAR:[fault reason 06] PTE Read access is  
> not set
> Jan  7 15:44:23 mail kernel: sky2 0000:06:00.0: error interrupt  
> status=0x80000000
> Jan  7 15:44:23 mail kernel: sky2 0000:06:00.0: PCI hardware error (0x2010)
> Jan  7 15:44:24 mail smbd[6572]: [2010/01/07 15:44:24,  0]  
> lib/util_sock.c:539(read_fd_with_timeout)
> Jan  7 15:44:24 mail smbd[6572]: [2010/01/07 15:44:24,  0]  
> lib/util_sock.c:1491(get_peer_addr_internal)
> Jan  7 15:44:24 mail smbd[6572]:   getpeername failed. Error was  
> Transport endpoint is not connected
> Jan  7 15:44:24 mail smbd[6572]:   read_fd_with_timeout: client 0.0.0.0  
> read error = Connection timed out.
> Jan  7 15:44:44 mail kernel: ------------[ cut here ]------------
> Jan  7 15:44:44 mail kernel: WARNING: at net/sched/sch_generic.c:261  
> dev_watchdog+0xf3/0x164()
> Jan  7 15:44:44 mail kernel: Hardware name: System Product Name
> Jan  7 15:44:44 mail kernel: NETDEV WATCHDOG: eth0 (sky2): transmit  
> queue 0 timed out
> Jan  7 15:44:44 mail kernel: Modules linked in: ip6table_filter  
> ip6table_mangle ip6_tables ipt_MASQUERADE iptable_nat nf_nat  
> iptable_mangle iptable_raw bridge stp appletalk psnap llc nfsd lockd  
> nfs_acl auth_rpcgss exportfs hwmon_vid coretemp sunrpc acpi_cpufreq sit  
> tunnel4 ipt_LOG nf_conntrack_netbios_ns nf_conntrack_ftp xt_DSCP xt_dscp  
> xt_MARK nf_conntrack_ipv6 xt_multiport ipv6 dm_multipath kvm_intel kvm  
> snd_hda_codec_analog snd_ens1371 gameport snd_rawmidi snd_ac97_codec  
> snd_hda_intel snd_hda_codec ac97_bus snd_hwdep snd_seq snd_seq_device  
> snd_pcm gspca_spca505 gspca_main firewire_ohci videodev v4l1_compat  
> firewire_core pcspkr v4l2_compat_ioctl32 snd_timer iTCO_wdt i2c_i801  
> crc_itu_t iTCO_vendor_support snd soundcore snd_page_alloc sky2 wmi  
> asus_atk0110 hwmon fbcon tileblit font bitblit softcursor raid456  
> async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx  
> raid1 ata_generic pata_acpi pata_marvell nouveau ttm drm_kms_helper drm  
> agpgart fb i2c_algo_bit cfbcopyarea i2c_core cfbimgblt cfbfil
> Jan  7 15:44:44 mail kernel: lrect [last unloaded: microcode]
> Jan  7 15:44:44 mail kernel: Pid: 0, comm: swapper Tainted: G        W   

BTW, was there any other oops saved before this one?

...
> --- adapter dead after this --- rebooted.
> * no MMAP; alternative 1 patch, mtu=1500; no errors; sustained transfer  
> rates about 25% lower than what I saw with mmap enabled...(before MMAP  
> enabled crashed).

?? Read below...

> * no MMAP mtu=9000; ran ok at low transfer rates - when high rates  
> kicked in, got the sky2 interrupt error & things went south:
> Jan  7 15:09:28 mail kernel: sky2 0000:06:00.0: error interrupt  
> status=0x40000008
> Jan  7 15:09:28 mail kernel: sky2 0000:06:00.0: error interrupt  
> status=0x40000008
> After this, remote connections broke and I rebooted... decided to rerun  
> w/o MMAP again before going back to MMAP and trying those other sky2  
> options...
> * Retest of no MMAP + Alternative 1 - just to confirm consistency.  
> Worked - no errors. Only version so far that allows the win7 backup to  
> complete.

??? Hmm... Alternative 1 or 2 doesn't even compile into when no MMAP,
so it definitely needs re-retesting ;-)

> * MMAP + NO DMAR + disable_msi=1... also works w/o errors... leaving  
> this one running for a while - also completed a backup successfully.  
> Fastest of the lot... about 3x faster than any other version, working or  
> not.

Very interesting. It would be nice to give it a really long try, and
if still true, try MMAP + NO DMAR only.

>
> I'm leaving this one running for now. Not retesting jumbo for now. Be  
> happy to help dig further.
>
> Tentative recommendations:
>
> 1) The af alternative patch seems rather necessary. First alternative  
> seems to be working, I'd suggest that be submitted and backported to 
> 2.6.32.
> 2) Steven's pskb_may_pull patch also ought to be included and backported.
> 3) Jumbo frame support for yukon2 should probably be disabled until/if  
> fixed.
> 4) When possible I'll test dmar and disable_msi, and no dmar and no  
> disable_msi. When I first hit issues, I was running without DMAR, but  
> also without the above patches. I suppose the non-working permutations  
> need to be either fixed or invalidated (or well documented).
> 5) It would be nice if someone with comparable hardware could reproduce  
> these issues. FWIW, I can only recreate the crash running windows backup  
> to a cifs share. Copying large files doesn't seem to do it.  Could also  
> be some other interaction going on here that perhaps others aren't  
> running - would be happy to compare notes.
>
> Notes:
> This *could* be coincidental, but maybe not...
> With MMAP+NO DMAR + disable_msi there are far fewer ... actually almost  
> no... bind error reports... and no bind format error messages. With  
> NOMMAP and alternative one there are a few more bind error messages and  
> one format error message during the several hours that version was up.  
> All other configurations going back perhaps for two weeks have  
> significantly more bind error reports - and all versions show increasing  
> frequency of bind format errors (IPV6 only) in the roughly 10-15 minutes  
> preceding the lockup/crash/interrupt error messages. There are none  
> immediately preceding any crash, but perhaps there is some correlation  
> between the network errors and bind ipv6 packets.

OK, for now let's make sure this MMAP + NO DMAR + disable_msi is
really really working.

Thanks,
Jarek P.

  reply	other threads:[~2010-01-08  7:45 UTC|newest]

Thread overview: 145+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-21 23:52 sky2 panic in 2.6.32.1 under load Berck E. Nash
2009-12-22  0:09 ` Michael Breuer
2009-12-22 18:50   ` Michael Breuer
2009-12-23 22:54     ` sky2 panic in 2.6.32.1 under load (new oops) Michael Breuer
2009-12-24  7:01       ` Andrew Morton
2009-12-24 19:18         ` Michael Breuer
2009-12-24 22:27           ` Stephen Hemminger
2009-12-25 16:28         ` Michael Breuer
2009-12-25 23:22           ` Stephen Hemminger
2009-12-26  3:23             ` Michael Breuer
2009-12-26 17:57               ` Stephen Hemminger
2009-12-26 20:37                 ` Michael Breuer
2009-12-26 22:05                   ` [PATCH] sky2: make sure ethernet header is in transmit skb Stephen Hemminger
2009-12-27  3:44                     ` David Miller
2009-12-27  4:11                       ` David Miller
2010-01-04  5:32                         ` David Miller
2010-01-04 16:40                           ` Stephen Hemminger
2010-01-04 17:02                             ` Michael Breuer
2010-01-05 23:07                         ` [PATCH] af_packet: Don't use skb after dev_queue_xmit() Jarek Poplawski
2010-01-05 23:16                           ` Michael Breuer
2010-01-05 23:29                             ` Jarek Poplawski
2010-01-06  2:36                           ` Michael Breuer
2010-01-06  7:22                             ` Jarek Poplawski
2010-01-06  9:15                               ` [PATCH alt.2] " Jarek Poplawski
2010-01-06 14:49                                 ` Stephen Hemminger
2010-01-06 19:40                                   ` Jarek Poplawski
2010-01-06 19:49                               ` [PATCH] " Michael Breuer
2010-01-06 20:22                                 ` Jarek Poplawski
2010-01-06 20:33                                   ` Michael Breuer
2010-01-06 21:09                                     ` Jarek Poplawski
2010-01-06 21:32                                       ` Michael Breuer
2010-01-06 21:10                                 ` Stephen Hemminger
2010-01-06 21:20                                   ` Michael Breuer
2010-01-06 23:26                                   ` Michael Breuer
2010-01-07  2:42                                     ` Michael Breuer
2010-01-07  4:00                                       ` Michael Breuer
2010-01-07  4:53                                         ` Stephen Hemminger
2010-01-07  5:10                                           ` Michael Breuer
2010-01-07  5:32                                           ` Michael Breuer
2010-01-07  5:54                                             ` Michael Breuer
2010-01-07  7:20                                               ` Michael Breuer
2010-01-07  7:47                                                 ` Jarek Poplawski
2010-01-07  7:55                                                   ` Michael Breuer
2010-01-07  8:21                                                     ` Jarek Poplawski
2010-01-07 15:03                                                       ` Michael Breuer
2010-01-07 17:56                                                         ` Jarek Poplawski
2010-01-07 18:17                                                           ` Jarek Poplawski
2010-01-07 15:05                                                     ` Michael Breuer
2010-01-07 18:01                                                       ` Jarek Poplawski
2010-01-07 18:19                                                         ` Michael Breuer
2010-01-07 18:35                                                           ` Jarek Poplawski
2010-01-07 18:40                                                             ` Michael Breuer
2010-01-07 18:43                                                             ` Michael Breuer
2010-01-07 18:50                                                               ` Jarek Poplawski
2010-01-07 19:36                                                                 ` Jarek Poplawski
2010-01-07 19:55                                                                   ` Michael Breuer
2010-01-07 20:22                                                                     ` Jarek Poplawski
2010-01-07 23:11                                                                 ` Michael Breuer
2010-01-08  7:45                                                                   ` Jarek Poplawski [this message]
2010-01-08 16:40                                                                     ` Michael Breuer
2010-01-08 21:29                                                                       ` Jarek Poplawski
2010-01-08 21:48                                                                         ` Michael Breuer
2010-01-08 22:02                                                                           ` Jarek Poplawski
2010-01-09  4:45                                                                           ` Michael Breuer
2010-01-09  5:44                                                                             ` Michael Breuer
2010-01-09 12:28                                                                             ` Jarek Poplawski
2010-01-09 18:34                                                                               ` Michael Breuer
2010-01-13 20:39                                                                                 ` Michael Breuer
2010-01-13 21:09                                                                                   ` Jarek Poplawski
2010-01-13 21:16                                                                                     ` Michael Breuer
2010-01-13 21:34                                                                                       ` Jarek Poplawski
2010-01-17 16:26                                                                                       ` Michael Breuer
2010-01-17 22:17                                                                                         ` Jarek Poplawski
2010-01-17 22:34                                                                                           ` Michael Breuer
2010-01-17 23:05                                                                                             ` Jarek Poplawski
2010-01-17 23:15                                                                                               ` Michael Breuer
2010-01-18  7:30                                                                                                 ` Jarek Poplawski
2010-01-18 16:29                                                                                                   ` Michael Breuer
2010-01-18 20:46                                                                                                     ` Jarek Poplawski
2010-01-18 20:56                                                                                                       ` Michael Breuer
2010-01-18 21:00                                                                                                         ` Stephen Hemminger
2010-01-18 21:06                                                                                                           ` Jarek Poplawski
2010-01-18 21:24                                                                                                           ` Michael Breuer
2010-01-18 21:50                                                                                                             ` Jarek Poplawski
2010-01-18 21:25                                                                                                         ` Jarek Poplawski
2010-01-18 21:39                                                                                                           ` Michael Breuer
2010-01-18 22:08                                                                                                             ` Jarek Poplawski
2010-01-18 22:17                                                                                                               ` Jarek Poplawski
2010-01-18 22:47                                                                                                                 ` Michael Breuer
2010-01-19  5:46                                                                                                                   ` Michael Breuer
2010-01-19  8:41                                                                                                                     ` Jarek Poplawski
2010-01-19 15:28                                                                                                                       ` Michael Breuer
2010-01-21 19:48                                                                                                                       ` Michael Breuer
2010-01-19 10:47                                                                                                                     ` Jarek Poplawski
2010-01-19 15:47                                                                                                                       ` Michael Breuer
2010-01-19 19:59                                                                                                                         ` Jarek Poplawski
2010-01-19 20:06                                                                                                                           ` Michael Breuer
2010-01-19 20:29                                                                                                                             ` Jarek Poplawski
2010-01-19 22:45                                                                                                                             ` Jarek Poplawski
2010-01-20  1:01                                                                                                                               ` Michael Breuer
2010-01-20  1:10                                                                                                                                 ` Stephen Hemminger
2010-01-21 16:14                                                                                                                                   ` Stefan Richter
2010-01-21 16:50                                                                                                                                     ` Stefan Richter
2010-01-18 22:25                                                                                                               ` Michael Breuer
2010-01-18 22:40                                                                                                                 ` Jarek Poplawski
2009-12-27 17:03                   ` sky2 panic in 2.6.32.1 under load (new oops) Michael Breuer
2009-12-27 18:22                     ` Stephen Hemminger
2009-12-27 19:39                       ` Michael Breuer
2009-12-29 17:30                         ` Stephen Hemminger
2009-12-29 17:39                           ` Michael Breuer
2009-12-29 18:38                           ` Michael Breuer
2009-12-29 18:54                           ` Michael Breuer
2009-12-29 19:49                             ` Stephen Hemminger
2009-12-29 20:41                               ` Michael Breuer
2009-12-30  7:23                               ` Michael Breuer
2009-12-30  7:58                                 ` Stephen Hemminger
2009-12-30 17:49                                   ` Michael Breuer
2009-12-30 19:15                                     ` audit.c skb - tty race condition - was " Michael Breuer
2009-12-30 20:44                                       ` Michael Breuer
2009-12-30 21:15                                         ` Michael Breuer
2009-12-30 21:21                                           ` Michael Breuer
2009-12-30  7:59                                 ` Stephen Hemminger
2009-12-30 15:40                                   ` Michael Breuer
2009-12-30 18:10                                     ` Stephen Hemminger
2009-12-30 18:37                                       ` Michael Breuer
2009-12-31 18:09                                       ` Michael Breuer
2009-12-31 18:24                                         ` Stephen Hemminger
2010-01-01 17:42                                         ` Michael Breuer
2010-01-01 19:26                                           ` sky2 panic in 2.6.32.1 under load (tty NULL write) Michael Breuer
2010-01-01 20:34                                             ` Michael Breuer
2010-01-02 21:42                                               ` Michael Breuer
2009-12-29 19:15           ` sky2 panic in 2.6.32.1 under load (new oops) Jarek Poplawski
2009-12-29 19:20             ` Michael Breuer
2009-12-30  8:07         ` Stephen Hemminger
2009-12-30 15:36           ` Michael Breuer
2009-12-22  0:52 ` sky2 panic in 2.6.32.1 under load Daniel Hazelton
2009-12-24  6:58 ` Andrew Morton
2009-12-24 16:03   ` Berck Nash
2009-12-24 16:28     ` Daniel Hazelton
2009-12-24 22:21       ` Stephen Hemminger
2009-12-24 22:42         ` Michael Breuer
2009-12-25  0:06           ` Daniel Hazelton
2009-12-24 16:10   ` Michael Breuer
2009-12-24 16:16     ` Berck Nash
2009-12-24 16:26       ` Michael Breuer

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=20100108074539.GA6205@ff.dom.local \
    --to=jarkao2@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=davem@davemloft.net \
    --cc=flyboy@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbreuer@majjas.com \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@linux-foundation.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.