Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265779
b: refs/heads/master
c: 986eaa9
h: refs/heads/master
i:
  265777: ecf19e3
  265775: cde982b
v: v3
  • Loading branch information
David S. Miller committed Sep 16, 2011
1 parent 0d2339c commit 1c7ed57
Show file tree
Hide file tree
Showing 93 changed files with 2,282 additions and 1,333 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab7e11d9d0293ef1802d6ae8aab39ce58472b167
refs/heads/master: 986eaa904129fc888c6c3882f6405a0055110e51
33 changes: 32 additions & 1 deletion trunk/Documentation/networking/stmmac.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,38 @@ reset procedure etc).
o enh_desc.c: functions for handling enhanced descriptors
o norm_desc.c: functions for handling normal descriptors

5) TODO:
5) Debug Information

The driver exports many information i.e. internal statistics,
debug information, MAC and DMA registers etc.

These can be read in several ways depending on the
type of the information actually needed.

For example a user can be use the ethtool support
to get statistics: e.g. using: ethtool -S ethX
(that shows the Management counters (MMC) if supported)
or sees the MAC/DMA registers: e.g. using: ethtool -d ethX

Compiling the Kernel with CONFIG_DEBUG_FS and enabling the
STMMAC_DEBUG_FS option the driver will export the following
debugfs entries:

/sys/kernel/debug/stmmaceth/descriptors_status
To show the DMA TX/RX descriptor rings

Developer can also use the "debug" module parameter to get
further debug information.

In the end, there are other macros (that cannot be enabled
via menuconfig) to turn-on the RX/TX DMA debugging,
specific MAC core debug printk etc. Others to enable the
debug in the TX and RX processes.
All these are only useful during the developing stage
and should never enabled inside the code for general usage.
In fact, these can generate an huge amount of debug messages.

6) TODO:
o XGMAC is not supported.
o Review the timer optimisation code to use an embedded device that will be
available in new chip generations.
1 change: 1 addition & 0 deletions trunk/arch/cris/arch-v10/drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ config ETRAX_ETHERNET
bool "Ethernet support"
depends on ETRAX_ARCH_V10
select NET_ETHERNET
select NET_CORE
select MII
help
This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/cris/arch-v32/drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ config ETRAX_ETHERNET
bool "Ethernet support"
depends on ETRAX_ARCH_V32
select NET_ETHERNET
select NET_CORE
select MII
help
This option enables the ETRAX FS built-in 10/100Mbit Ethernet
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/txx9/generic/setup_tx4939.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ void __init tx4939_sio_init(unsigned int sclk, unsigned int cts_mask)
static u32 tx4939_get_eth_speed(struct net_device *dev)
{
struct ethtool_cmd cmd;
if (dev_ethtool_get_settings(dev, &cmd))
if (__ethtool_get_settings(dev, &cmd))
return 100; /* default 100Mbps */

return ethtool_cmd_speed(&cmd);
Expand Down
13 changes: 5 additions & 8 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,26 +557,23 @@ static int bond_set_carrier(struct bonding *bond)
static int bond_update_speed_duplex(struct slave *slave)
{
struct net_device *slave_dev = slave->dev;
struct ethtool_cmd etool = { .cmd = ETHTOOL_GSET };
struct ethtool_cmd ecmd;
u32 slave_speed;
int res;

/* Fake speed and duplex */
slave->speed = SPEED_100;
slave->duplex = DUPLEX_FULL;

if (!slave_dev->ethtool_ops || !slave_dev->ethtool_ops->get_settings)
return -1;

res = slave_dev->ethtool_ops->get_settings(slave_dev, &etool);
res = __ethtool_get_settings(slave_dev, &ecmd);
if (res < 0)
return -1;

slave_speed = ethtool_cmd_speed(&etool);
slave_speed = ethtool_cmd_speed(&ecmd);
if (slave_speed == 0 || slave_speed == ((__u32) -1))
return -1;

switch (etool.duplex) {
switch (ecmd.duplex) {
case DUPLEX_FULL:
case DUPLEX_HALF:
break;
Expand All @@ -585,7 +582,7 @@ static int bond_update_speed_duplex(struct slave *slave)
}

slave->speed = slave_speed;
slave->duplex = etool.duplex;
slave->duplex = ecmd.duplex;

return 0;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/ethernet/3com/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ config PCMCIA_3C589
config VORTEX
tristate "3c590/3c900 series (592/595/597) \"Vortex/Boomerang\" support"
depends on (PCI || EISA)
select NET_CORE
select MII
---help---
This option enables driver support for a large number of 10Mbps and
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/net/ethernet/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ config JME
tristate "JMicron(R) PCI-Express Gigabit Ethernet support"
depends on PCI
select CRC32
select NET_CORE
select MII
---help---
This driver supports the PCI-Express gigabit ethernet adapters
Expand Down Expand Up @@ -102,6 +103,7 @@ config FEALNX
tristate "Myson MTD-8xx PCI Ethernet support"
depends on PCI
select CRC32
select NET_CORE
select MII
---help---
Say Y here to support the Myson MTD-800 family of PCI-based Ethernet
Expand All @@ -112,6 +114,7 @@ source "drivers/net/ethernet/8390/Kconfig"

config NET_NETX
tristate "NetX Ethernet support"
select NET_CORE
select MII
depends on ARCH_NETX
---help---
Expand All @@ -128,6 +131,7 @@ source "drivers/net/ethernet/oki-semi/Kconfig"
config ETHOC
tristate "OpenCores 10/100 Mbps Ethernet MAC support"
depends on HAS_IOMEM && HAS_DMA
select NET_CORE
select MII
select PHYLIB
select CRC32
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/ethernet/adaptec/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ config ADAPTEC_STARFIRE
tristate "Adaptec Starfire/DuraLAN support"
depends on PCI
select CRC32
select NET_CORE
select MII
---help---
Say Y here if you have an Adaptec Starfire (or DuraLAN) PCI network
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/ethernet/adi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ config BFIN_MAC
tristate "Blackfin on-chip MAC support"
depends on (BF516 || BF518 || BF526 || BF527 || BF536 || BF537)
select CRC32
select NET_CORE
select MII
select PHYLIB
select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/ethernet/amd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ config AMD8111_ETH
tristate "AMD 8111 (new PCI LANCE) support"
depends on PCI
select CRC32
select NET_CORE
select MII
---help---
If you have an AMD 8111-based PCI LANCE ethernet card,
Expand All @@ -59,6 +60,7 @@ config PCNET32
tristate "AMD PCnet32 PCI support"
depends on PCI
select CRC32
select NET_CORE
select MII
---help---
If you have a PCnet32 or PCnetPCI based network (Ethernet) card,
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/net/ethernet/atheros/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ config ATL2
tristate "Atheros L2 Fast Ethernet support"
depends on PCI
select CRC32
select NET_CORE
select MII
---help---
This driver supports the Atheros L2 fast ethernet adapter.
Expand All @@ -33,6 +34,7 @@ config ATL1
tristate "Atheros/Attansic L1 Gigabit Ethernet support"
depends on PCI
select CRC32
select NET_CORE
select MII
---help---
This driver supports the Atheros/Attansic L1 gigabit ethernet
Expand All @@ -45,6 +47,7 @@ config ATL1E
tristate "Atheros L1E Gigabit Ethernet support (EXPERIMENTAL)"
depends on PCI && EXPERIMENTAL
select CRC32
select NET_CORE
select MII
---help---
This driver supports the Atheros L1E gigabit ethernet adapter.
Expand All @@ -56,6 +59,7 @@ config ATL1C
tristate "Atheros L1C Gigabit Ethernet support (EXPERIMENTAL)"
depends on PCI && EXPERIMENTAL
select CRC32
select NET_CORE
select MII
---help---
This driver supports the Atheros L1C gigabit ethernet adapter.
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/ethernet/broadcom/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ config B44
tristate "Broadcom 440x/47xx ethernet support"
depends on SSB_POSSIBLE && HAS_DMA
select SSB
select NET_CORE
select MII
---help---
If you have a network (Ethernet) controller of this type, say Y
Expand Down Expand Up @@ -53,6 +54,7 @@ config B44_PCI
config BCM63XX_ENET
tristate "Broadcom 63xx internal mac support"
depends on BCM63XX
select NET_CORE
select MII
select PHYLIB
help
Expand Down
Loading

0 comments on commit 1c7ed57

Please sign in to comment.