Bug#627704: [Fwd: Re: Testing new hardware support for Debian 6.0.2]
-------- Forwarded Message --------
From: Luis Henriques <email@example.com>
To: Ben Hutchings <firstname.lastname@example.org>
Subject: Re: Testing new hardware support for Debian 6.0.2
Date: Mon, 23 May 2011 22:50:33 +0100
On Mon, May 23, 2011 at 11:53:14AM -0700, Ben Hutchings wrote:
> How to test
> For network drivers, I suggest the following regression tests:
> 1. If the driver tries to load firmware (only required for some
> chips), does this work once the firmware file(s) are installed?
> 2. Can you receive and transmit VLAN-tagged frames after creating a
> VLAN interface?
> 3. Does the interface work after suspend and resume?
> 4. Does the interface work after removing the cable for 10 seconds
> and reinserting it?
> 5. Does multicast configuration work? (IPv6 autoconfiguration or
> mDNS will cover this.)
> 6. Can the interface send and receive TCP/IP across a LAN at the
> same speed, before and after these changes? (Use e.g. netperf to
> test this, but don't forget to remove the netperf package after
> 7. Are any warnings or errors logged by the kernel during the
> preceding tests?
I finally had some time to run some quick tests on my laptop which is
using the r8169 driver.
As a general comment, everything seems to be working OK, and I saw no
Here's the device I'm using:
lspci -s 0e:00.0 -vv
0e:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)
Subsystem: Toshiba America Info Systems Device ff00
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 28
Region 0: I/O ports at a000 [size=256]
Region 2: Memory at f8100000 (64-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 84400000 [disabled] [size=128K]
Capabilities:  Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities:  Vital Product Data
Unknown small resource type 05, will not decode more.
Capabilities:  MSI: Enable+ Count=1/2 Maskable- 64bit+
Address: 00000000fee0300c Data: 4179
Capabilities:  Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <128ns, L1 unlimited
ExtTag+ AttnBtn+ AttnInd+ PwrInd+ RBE- FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
MaxPayload 128 bytes, MaxReadReq 128 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s, Latency L0 unlimited, L1 unlimited
ClockPM- Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
Capabilities:  Vendor Specific Information: Len=4c <?>
Capabilities: [100 v1] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap- ChkEn-
Capabilities: [12c v1] Virtual Channel
Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
Arb: Fixed- WRR32- WRR64- WRR128-
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
Status: NegoPending- InProgress-
Capabilities: [148 v1] Device Serial Number 02-00-00-00-10-ec-81-36
Capabilities: [154 v1] Power Budgeting <?>
Kernel driver in use: r8169
Unfortunately, I haven't executed all the tests you have suggested.
Basically, I have executed the netperf tests but I couldn't see any
relevant throught modifications. I recorded the netperf test logs here:
You'll find 2 directories: one with the tests results for the kernel
packaged I downloaded from people.debian.org and another using my own
custom 2.6.39 kernel.
I have also executed the suspend to memory/disk tests. Everything seems
to work as expected.
Although I was not able to run all the tests you are asking (both for the
lack of free time and for lack of knowledge -- No idea how to test the VLAN
stuff, for example) I hope these test report can help. Any comments are
appreciated about anything wrong I might have done.