[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1f9da0830808190645o4ecf48b1i6f4d873db3c83e39@mail.gmail.com>
Date: Tue, 19 Aug 2008 17:45:07 +0400
From: "Леонид Юрьев" <leo@...iev.ru>
To: netdev@...r.kernel.org
Cc: "Francois Romieu" <romieu@...zoreil.com>,
"Leo Yuriev" <leo@...iev.ru>
Subject: [r8169] patch for RTL8102 (5 new MAC/PHY)
Hi,
INTRO:
Few days ago I need to run Linux on Intel's D945GCLF board with
RTL8102. Driver from 2.6.26 oops on boot, but 2.6.27-rc2 seems
working. Unfortunately really it fails too. Not even, but in some
cases with influence of BIOS setting...
Late I found obsolete Realtek's driver
(http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&ProductID=2916&DwnldID=16242&strOSs=39&OSFullName=Linux*&lang=eng).
It is a poor (IMHO) driver based on 2.6.18-version of r8169.c
Actual difference from the current r8169.c is in detection and "magic"
handle of the 5 new versions of RTL's MACs and corresponded PHY.
On Sunday I just pull some "magic" lines from Realtek to r8169, now my
D945GCLF board work fine in any cases :)
Not all "magic" from Realtek was pulled, few of them is really mad
(e.g. watchdog for loosing a PCI-config).
SUBJ:
If all agree, I will prepare for review a set of patches:
1) cosmetic: remark about supported chips (8168/8110/8111/8101/8102)
into KConfig and driver. Elsewhere it is not easy to find required
driver thru "make *config";
2) simple: by RTL8169 datasheet 'rx-missed' counter is 24-bits width,
but not 32;
3) simple: account dev->stats.rx_over_errors on RxFIFOOver and RxOverflow;
4) workaround: RTL8102 seems (sure) not have "rx-missed" (PCI-reg
0x4C) counter. So we should not account dev->stats.rx_missed_errors
like RTL8169;
5) big: a "magic" from Realtek's driver for RTL8102 (no any datasheet
are accessible/available);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists