tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: broadcom 57766 and jumbo frames



Hi, Emmanuel.

(2013/07/02 16:39), Emmanuel Dreyfus wrote:
On Mon, Jul 01, 2013 at 05:33:21PM +0900, Masanobu SAITOH wrote:
  Could you compile a kernel with BGE_DEBUG and show me the dmesg?

Here it is:

Thanks.

 I tested some cards and the jumbo frame function works if the
BGE_JUMBO_CAPABLE flags is set by the driver.

 Please test if_bge.c rev. 1.254. It added the flag to some chips.
It includes BCM57766, too.

Module Name:    src
Committed By:   msaitoh
Date:           Wed Jul  3 05:49:36 UTC 2013

Modified Files:
        src/sys/dev/pci: if_bge.c

Log Message:
 Add BGE_JUMBO_CAPABLE flag to some chips. Before this commit,
the following chips support the jumbo frame function:

        5700
        5701
        5702
        5703
        5704

With this commit, the following chip support it, too:

        5714
        5780
        5717
        5718
        5719 (exclude rev. A0)
        5720
        57765
        57766


To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 src/sys/dev/pci/if_bge.c

 One of the problem is that we have no direct way to know the MTU's
hard limit of each interface. To know the value, we can use SIOCSIFMTU
and check the the result if it is accepted. OpenBSD has SIOCGIFHARDMTU
to know the hard limit directly.

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
     The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

NetBSD 6.99.22 (MACMDD_DEBUG) #0: Tue Jul  2 03:36:01 CEST 2013
        
manu@enfer:/home6/tmp/macmdd-manu/netbsd-obj/sys/arch/amd64/compile/MACMDD_DEBUG
total memory = 8130 MB
avail memory = 7868 MB
timecounter: Timecounters tick every 10.000 msec
RTC BIOS diagnostic error 
0xff<clock_battery,ROM_cksum,config_unit,memory_size,fixed_disk,invalid_time>
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Apple Inc. iMac13,1 (1.0)
mainbus0 (root)
cpu0 at mainbus0 apid 0: Intel(R) Core(TM) i5-3330S CPU @ 2.70GHz, id 0x306a9
cpu1 at mainbus0 apid 2: Intel(R) Core(TM) i5-3330S CPU @ 2.70GHz, id 0x306a9
cpu2 at mainbus0 apid 4: Intel(R) Core(TM) i5-3330S CPU @ 2.70GHz, id 0x306a9
cpu3 at mainbus0 apid 6: Intel(R) Core(TM) i5-3330S CPU @ 2.70GHz, id 0x306a9
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 20, 24 pins
acpi0 at mainbus0: Intel ACPICA 20110623
acpi0: X/RSDT: OemId <APPLE , Apple00,00000000>, AslId <    ,01000013>
acpiecdt0 at acpi0: ACPI Embedded Controller via ECDT
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpiec0 at acpi0 (EC, PNP0C09-0): using acpiecdt0
acpivga0 at acpi0 (GFX0): ACPI Display Adapter
acpiout0 at acpivga0 (LCD, 0x80002400): ACPI Display Output Device
acpiout0: brightness levels: 1 4 6 9 14 19 26 33 40 46 52 58 65 71 78 85
acpivga0: connected output devices:
acpivga0:   0x2400 (acpiout0): Int. Digital Flat Panel, index 0, port 0, head 0
FWHD (INT0800) at acpi0 not configured
LDRC (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53
SMC (APP0001) at acpi0 not configured
DPPT (APP000C) at acpi0 not configured
ALS0 (ACPI0008) at acpi0 not configured
PDRC (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
PNLF (APP0002) at acpi0 not configured
acpibut1 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x0150 (rev. 0x09)
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x0151 (rev. 0x09)
ppb0: PCI Express 2.0 <Root Port of PCI-E Root Complex> x16 @ 8.0Gb/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
vga0 at pci1 dev 0 function 0: vendor 0x10de product 0x0fd8 (rev. 0xa1)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
drm at vga0 not configured
hdaudio0 at pci1 dev 0 function 1: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 17
hdafg0 at hdaudio0: NVIDIA product 0042
hdafg0: DP00 8ch: Digital Out [Jack]
hdafg0: DP01 8ch: Digital Out [Jack]
hdafg0: 8ch/0ch 48000Hz PCM16*
vendor 0x8086 product 0x1e31 (USB serial bus, interface 0x30, revision 0x04) at 
pci0 dev 20 function 0 not configured
vendor 0x8086 product 0x1e3a (miscellaneous communications, revision 0x04) at 
pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0: vendor 0x8086 product 0x1e2d (rev. 0x04)
ehci0: interrupting at ioapic0 pin 23
ehci0: EHCI version 1.0
usb0 at ehci0: USB revision 2.0
hdaudio1 at pci0 dev 27 function 0: HD Audio Controller
hdaudio1: interrupting at ioapic0 pin 22
hdafg1 at hdaudio1: vendor 1013 product 4206
hdafg1: DAC00 2ch: Speaker [Built-In]
hdafg1: DAC01 2ch: HP Out [Jack]
hdafg1: DIG02 2ch: SPDIF Out [Jack]
hdafg1: 2ch/0ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 
PCM24 PCM32 AC3
audio0 at hdafg1: full duplex, playback, capture, independent
ppb1 at pci0 dev 28 function 0: vendor 0x8086 product 0x1e10 (rev. 0xc4)
ppb1: PCI Express 2.0 <Root Port of PCI-E Root Complex> x2 @ 5.0Gb/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 28 function 2: vendor 0x8086 product 0x1e14 (rev. 0xc4)
ppb2: PCI Express 2.0 <Root Port of PCI-E Root Complex> x1 @ 5.0Gb/s
ppb2: link is x1 @ 2.5Gb/s
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
bge0 at pci3 dev 0 function 0: Broadcom BCM57766 Fast Ethernet
bge0: interrupting at ioapic0 pin 18
bge0: HW config 00081154, 00006014, 00002838, 00000000
bge0: ASIC unknown BCM57766 (0x57766001), Ethernet address 10:dd:b1:ad:eb:f5
bge0: setting short Tx thresholds
brgphy0 at bge0 phy 1: BCM57765 1000BASE-T media interface, rev. 1
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
Hardware Flags:
  - 57765 Plus
  - 5717 Plus
  - 5755 Plus
  - 575X Plus
  - 5705 Plus
  - PCI Express Bus
  - CPMU
  - TSO
sdhc0 at pci3 dev 0 function 1: vendor 0x14e4 product 0x16bc (rev. 0x01)
sdhc0: interrupting at ioapic0 pin 19
sdhc0: SD Host Specification 3.0, rev.21
sdhc0: using DMA transfer
sdmmc0 at sdhc0 slot 0
ppb3 at pci0 dev 28 function 3: vendor 0x8086 product 0x1e16 (rev. 0xc4)
ppb3: PCI Express 2.0 <Root Port of PCI-E Root Complex> x1 @ 5.0Gb/s
ppb3: link is x1 @ 2.5Gb/s
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 0x14e4 product 0x4331 (miscellaneous network, revision 0x02) at pci4 dev 
0 function 0 not configured
ppb4 at pci0 dev 28 function 4: vendor 0x8086 product 0x1e18 (rev. 0xc4)
ppb4: PCI Express 2.0 <Root Port of PCI-E Root Complex> x4 @ 5.0Gb/s
pci5 at ppb4 bus 6
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
ehci1 at pci0 dev 29 function 0: vendor 0x8086 product 0x1e26 (rev. 0x04)
ehci1: interrupting at ioapic0 pin 22
ehci1: EHCI version 1.0
usb1 at ehci1: USB revision 2.0
ppb5 at pci0 dev 30 function 0: vendor 0x8086 product 0x244e (rev. 0xa4)
pci6 at ppb5 bus 5
pci6: i/o space, memory space enabled
ichlpcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x1e44 (rev. 0x04)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
ichlpcib0: TCO timer reboot disabled by hardware; hope SMBIOS properly handles 
it.
ichlpcib0: TCO (watchdog) timer configured.
ahcisata0 at pci0 dev 31 function 2: vendor 0x8086 product 0x1e02 (rev. 0x04)
ahcisata0: interrupting at ioapic0 pin 19
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.30, 6 ports, 32 slots, CAP 
0xc730ff45<EMS,PSC,SSC,PMD,ISS=0x3=Gen3,SCLO,SAL,SALP,SNCQ,S64A>
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x1e22 (rev. 0x04)
ichsmb0: interrupting at ioapic0 pin 18
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
acpicpu0: C2: FFH, lat 148 us, pow   500 mW
acpicpu0: C3: FFH, lat 169 us, pow   350 mW
acpicpu0: P0: FFH, lat  10 us, pow 65000 mW, 2701 MHz, turbo boost
acpicpu0: P1: FFH, lat  10 us, pow 65000 mW, 2700 MHz
acpicpu0: P2: FFH, lat  10 us, pow 61690 mW, 2600 MHz
acpicpu0: P3: FFH, lat  10 us, pow 58444 mW, 2500 MHz
acpicpu0: P4: FFH, lat  10 us, pow 55260 mW, 2400 MHz
acpicpu0: P5: FFH, lat  10 us, pow 52759 mW, 2300 MHz
acpicpu0: P6: FFH, lat  10 us, pow 49691 mW, 2200 MHz
acpicpu0: P7: FFH, lat  10 us, pow 46694 mW, 2100 MHz
acpicpu0: P8: FFH, lat  10 us, pow 44347 mW, 2000 MHz
acpicpu0: P9: FFH, lat  10 us, pow 41453 mW, 1900 MHz
acpicpu0: P10: FFH, lat  10 us, pow 38619 mW, 1800 MHz
acpicpu0: P11: FFH, lat  10 us, pow 35844 mW, 1700 MHz
acpicpu0: P12: FFH, lat  10 us, pow 33706 mW, 1600 MHz
acpicpu0: T0: FFH, lat   1 us, pow 33706 mW, 100 %
acpicpu0: T1: FFH, lat   1 us, pow 31458 mW,  94 %
acpicpu0: T2: FFH, lat   1 us, pow 29211 mW,  88 %
acpicpu0: T3: FFH, lat   1 us, pow 26964 mW,  82 %
acpicpu0: T4: FFH, lat   1 us, pow 24717 mW,  75 %
acpicpu0: T5: FFH, lat   1 us, pow 22470 mW,  69 %
acpicpu0: T6: FFH, lat   1 us, pow 20223 mW,  63 %
acpicpu0: T7: FFH, lat   1 us, pow 17976 mW,  57 %
acpicpu0: T8: FFH, lat   1 us, pow 15729 mW,  50 %
acpicpu0: T9: FFH, lat   1 us, pow 13482 mW,  44 %
acpicpu0: T10: FFH, lat   1 us, pow 11235 mW,  38 %
acpicpu0: T11: FFH, lat   1 us, pow  8988 mW,  32 %
acpicpu0: T12: FFH, lat   1 us, pow  6741 mW,  25 %
acpicpu0: T13: FFH, lat   1 us, pow  4494 mW,  19 %
acpicpu0: T14: FFH, lat   1 us, pow  2247 mW,  13 %
coretemp0 at cpu0: thermal sensor, 1 C resolution
acpicpu1 at cpu1: ACPI CPU
coretemp1 at cpu1: thermal sensor, 1 C resolution
acpicpu2 at cpu2: ACPI CPU
coretemp2 at cpu2: thermal sensor, 1 C resolution
acpicpu3 at cpu3: ACPI CPU
coretemp3 at cpu3: thermal sensor, 1 C resolution
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 2694074120 Hz quality 3000
uhub0 at usb0: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ahcisata0 port 0: device present, speed: 3.0Gb/s
wd0 at atabus0 drive 0
wd0: <APPLE HDD ST1000LM024>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 931 GB, 1938021 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168 sectors
wd0: GPT GUID: 00005fdb-02b1-0000-e100-0000a8390000
dk0 at wd0: EFI system partition
dk0: 409600 blocks at 40, type: msdos
dk1 at wd0: Customer
dk1: 1951845952 blocks at 409640, type: hfs
dk2 at wd0: Recovery HD
dk2: 1269536 blocks at 1952255592, type:
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) 
(using DMA)
uhub2 at uhub1 port 1: vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, 
addr 2
uhub2: single transaction translator
uhub3 at uhub0 port 1: vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, 
addr 2
uhub3: single transaction translator
uhub2: 8 ports with 7 removable, self powered
uhub3: 6 ports with 5 removable, self powered
umass0 at uhub2 port 1 configuration 1 interface 0
umass0: Verbatim STORE N GO, rev 2.00/1.00, addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Verbatim, STORE N GO, PMAP> disk removable
sd0: 3700 MB, 928 cyl, 255 head, 32 sec, 512 bytes/sect x 7579008 sectors
uvideo0 at uhub3 port 1 configuration 1 interface 0: Apple Inc. FaceTime HD 
Camera (Built-in), rev 2.00/72.29, addr 3
video0 at uvideo0: Apple Inc. FaceTime HD Camera (Built-in), rev 2.00/72.29, 
addr 3
uhub4 at uhub2 port 4: Mitsumi Electric Hub in Apple Extended USB Keyboard, 
class 9/0, rev 1.10/4.20, addr 4
uhub4: 3 ports with 2 removable, bus powered
uhidev0 at uhub4 port 3 configuration 1 interface 0
uhidev0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/4.20, addr 5, 
iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub4 port 3 configuration 1 interface 1
uhidev1: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/4.20, addr 5, 
iclass 3/0
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhub5 at uhub2 port 8: vendor 0x0424 product 0x2412, class 9/0, rev 2.00/b.b2, 
addr 6
uhub5: single transaction translator
uhub5: 2 ports with 1 removable, self powered
uhub6 at uhub5 port 1: Apple Inc. BRCM20702 Hub, class 9/0, rev 2.00/1.00, addr 
7
uhub6: 3 ports with 0 removable, self powered
uhidev2 at uhub6 port 1 configuration 1 interface 0
uhidev2: vendor 0x05ac product 0x820a, rev 2.00/1.00, addr 8, iclass 3/1
uhidev2: 1 report ids
ukbd1 at uhidev2 reportid 1: 8 modifier keys, 6 key codes
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhidev3 at uhub6 port 2 configuration 1 interface 0
uhidev3: vendor 0x05ac product 0x820b, rev 2.00/1.00, addr 9, iclass 3/1
uhidev3: 2 report ids
ums0 at uhidev3 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
ugen0 at uhub6 port 3
ugen0: Apple Inc. Bluetooth USB Host Controller, rev 2.00/0.32, addr 10
uhidev4 at uhub4 port 1 configuration 1 interface 0
uhidev4: Primax Electronics Apple Optical USB Mouse, rev 1.10/1.10, addr 11, 
iclass 3/1
ums1 at uhidev4: 4 buttons, W and Z dirs
wsmouse1 at ums1 mux 0
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex, playback, capture
boot device: sd0
md0: internal 11264 KB image area
root on md0a dumps on md0b
root file system type: ffs
clock: unknown CMOS layout



--
-----------------------------------------------
                SAITOH Masanobu (msaitoh%execsw.org@localhost
                                 msaitoh%netbsd.org@localhost)


Home | Main Index | Thread Index | Old Index