← Back to team overview

kernel-packages team mailing list archive

[Bug 1447664] Re: 14e4:1687 broadcom tg3 network driver disconnects under high load

 

Lauri,

I've pumped over 1.5TB of data and have never seen the hic-up yet.  I
think we've found the smoking gun.  Below is a simple patch to the tigon
device driver if you prefer not to use the udev rule solution.

I believe the root cause is that the tigon net driver uses virtual
memory for DMA transfers.  All DMA transfers should be remapped to
logical memory using dma_map_page() in order for HIGHDMA feature to
work.  Broadcom will look into this and hopefully, the bug will be fixed
upstream soon...  Thanks again...


--- linux-2.6.38.2/drivers/staging/bcm-tg3/tg3.c.vanilla        2016-01-07 14:14:20.000000000 -0500
+++ linux-2.6.38.2/drivers/staging/bcm-tg3/tg3.c        2016-01-06 16:05:37.000000000 -0500
@@ -18992,6 +18992,12 @@

        tg3_init_bufmgr_config(tp);

+       /* pham, patch 5762 chip */
+        if (tp->pdev->device == 0x1687  || tg3_asic_rev(tp) == ASIC_REV_5762){
+                printk("tg3: disable HIGHDMA for tigon3 device 5762\r\n");
+                dev->features &= ~NETIF_F_HIGHDMA;
+        }
+
        /* 5700 B0 chips do not support checksumming correctly due
         * to hardware bugs.
         */

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1447664

Title:
  14e4:1687 broadcom tg3 network driver disconnects under high load

Status in linux package in Ubuntu:
  Triaged

Bug description:
  The tg3 broadcom network driver that binds with chipset 5762 goes
  offline and unable to recover (even with tg3 watchdog timeout) when
  network transmit is under high load.  Then this happens, only a reboot
  would be able to fix it.  Sometimes, however, bringing the interface
  offline and online (via ifconfig) would recover networking.  I've also
  tested with the latest tg3 driver (dec 2014 version) and networking is
  still problematic.    I have also disabled TSO, GSO etc... with
  ethtool and the bug still surfaces.  This bug may be related to the
  integrated Firmware.

  Here is the procedure to replicate the issue because it is hard to
  replicate it under moderate network load.

  1. Bootup a machine with a broadcom 5762 NIC (ie. HP DeskElite 705) using a Ubuntu/Kubunu Live CD 14.04-15.04.
  2. from another machine: start 5 sessions, repetitively copy (scp with public key authentication) a 70 meg file back and forth to the tg3 machine in each session. (not sure if this is necessary)
  3. create a 1GB file on the tg3 machine, with something like dd if=/dev/urandom of=/my/test/file bs=1024 count=$((1024*1000))
  4. from another machine: repetitively scp copy that 1GB file from the tg3 machine. This can be done with something like:

  while [ 0 ]; do
     scp -i /my/scp/private.key user@xxxxx.tg3:/my/test/file /tmp
  done;

  Networking will mostly goes offline in about 10-30 minutes.

  Thank you

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: linux-image-3.19.0-15-generic 3.19.0-15.15
  ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
  Uname: Linux 3.19.0-15-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  kubuntu    3748 F.... pulseaudio
   /dev/snd/controlC0:  kubuntu    3748 F.... pulseaudio
  CasperVersion: 1.360
  Date: Thu Apr 23 11:16:24 2015
  IwConfig:
   eth0      no wireless extensions.

   lo        no wireless extensions.
  LiveMediaBuild: Kubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  MachineType: Hewlett-Packard HP EliteDesk 705 G1 MT
  ProcEnviron:
   LANGUAGE=
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz.efi file=/cdrom/preseed/hostname.seed boot=casper maybe-ubiquity quiet splash ---
  PulseList:
   Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not accessible: Permission denied
   No PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-3.19.0-15-generic N/A
   linux-backports-modules-3.19.0-15-generic  N/A
   linux-firmware                             1.143
  RfKill:

  SourcePackage: linux
  UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 10/22/2014
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.version: L06 v02.15
  dmi.board.asset.tag: 2UA5041TG4
  dmi.board.name: 2215
  dmi.board.vendor: Hewlett-Packard
  dmi.chassis.asset.tag: 2UA5041TG4
  dmi.chassis.type: 6
  dmi.chassis.vendor: Hewlett-Packard
  dmi.modalias: dmi:bvnHewlett-Packard:bvrL06v02.15:bd10/22/2014:svnHewlett-Packard:pnHPEliteDesk705G1MT:pvr:rvnHewlett-Packard:rn2215:rvr:cvnHewlett-Packard:ct6:cvr:
  dmi.product.name: HP EliteDesk 705 G1 MT
  dmi.sys.vendor: Hewlett-Packard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1447664/+subscriptions


References