04 Dec, 2007
8 commits
-
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (48 commits)
LIB82596: correct data types for hardware addresses
via-velocity: don't oops on MTU change (resend)
Stop phy code from returning success to unknown ioctls.
SET_NETDEV_DEV() in fec_mpc52xx.c
net: smc911x: only enable for mpr2 on sh.
e1000: Fix NAPI state bug when Rx complete
sky2: turn of dynamic Tx watermark workaround (FE+ only)
sky2: don't use AER routines
sky2: revert to access PCI config via device space
cxgb - fix stats
cxgb - fix NAPI
cxgb - fix T2 GSO
ucc_geth: handle passing of RX-only and TX-only internal delay PHY connection type parameters
phylib: marvell: add support for TX-only and RX-only Internal Delay
phylib: add PHY interface modes for internal delay for tx and rx only
skge: MTU changing fix
skge: serial mode register values
skge version 1.13
skge: increase TX threshold for Jumbo
skge: fiber link up/down fix
... -
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
sata_mv: Fix broken Marvell 7042 support.
libata: Fix early use of port printk. (Was Re: ata4294967295: failed to start port (errno=-19))
ata_piix: add more toshiba laptops to broken suspend list
libata: More IVB horkage from TSST
libata: report protocol and full CDB on error
Several fixes for the AVR32 PATA driver
sata_mv: fix compilation error when enabling DEBUG
Set proper ATA UDMA mode for bf548 according to system clock. -
Signed-off-by: Vivek Goyal
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Under the conditions that UML uses it, tcgetattr is guaranteed to return
-EINTR when the console is attached to /dev/ptmx, making generic_console_write
hang because it loops, calling tcgetattr until it succeeds. This is a host
bug - see http://marc.info/?l=linux-kernel&m=119618990807182&w=2 for the
details.This patch works around it by blocking SIGIO while the terminal attributes are
being fiddled.Signed-off-by: Jeff Dike
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
I forgot to have an int-returning function actually return something.
Signed-off-by: Jeff Dike
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
The previous commit ("uml: keep UML Kconfig in sync with x86") is not
enough, unfortunately. If we go that way, we need to add dependencies
on !UML for several options.Signed-off-by: Al Viro
Signed-off-by: Jeff Dike
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Fix a UML build breakage introduced by commit
1032c0ba9da5c5b53173ad2dcf8b2a2da78f8b17 - it introduces X86_32, with many
things which UML needs depending on it.This patch adds definitions of X86_32 and RWSEM_XCHGADD_ALGORITHM to
the UML/i386 Kconfig.Signed-off-by: Jeff Dike
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Fix possible memory overrun issue in the isdn ioctl code.
Found by ADLAB
Signed-off-by: Karsten Keil
Cc: ADLAB
Cc:
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
02 Dec, 2007
32 commits
-
sata_mv: Fix broken Marvell 7042 support.
The Marvell 7042 chip is more or less the same as the 6042 internally,
but sports a PCIe bus. Despite having identical SATA cores, the 7042
does differ from its PCI bus counterparts in placment and layout of
certain bus related registers.This patch fixes sata_mv to distinguish between the PCI bus registers
of earlier chips, and the PCIe bus registers of the 7042.Specifically, move the offsets and bit patterns for the
PCI/PCIe interrupt cause/mask registers into the struct mv_host_priv,
as these values differ between the 6xxx and 7xxx series chips.This fixes the driver to not access reserved PCI addresses,
and prevents the lockups reported in linux-2.6.24 with 7042 boards.Also add a new PCI ID for the Highpoint 2300 7042-based board
that I'm using for testing this stuff here.Tested with Marvell 6081 + 7042 chips, on x86 & x86_64.
Signed-off-by: Mark Lord
Signed-off-by: Jeff Garzik -
On Fri, 30 Nov 2007 14:34:11 +0200 (EET)
Meelis Roos wrote:> > Can you stick a stack trace in at that point ? That would help diagnose
> > it a great deal quicker.
>
> Finally done - found out hard way that BUG() is too bad and
> dump_st5ack() suits me better.Thanks. This should fix the real cause, and also allow for port start to
fail politely with -ENODEV.Signed-off-by: Alan Cox
Signed-off-by: Jeff Garzik -
Add more toshiba laptops to broken suspend list. This is from OSDL
bugzilla bug 7780.tj: re-formatted patch and added description and SOB.
Signed-off-by: Peter Schwenke
Signed-off-by: Tejun Heo
Signed-off-by: Jeff Garzik -
libata: Add more TSST (Samsung/Toshiba) IDE drives with broken
cable detection validation bits.signed-off-by: Peter Missel (peter.missel@onlinehome.de)
Acked-by: Alan CoxSigned-off-by: Jeff Garzik
-
Protocol and CDB allocation size field are important in determining
what went wrong with ATAPI commands. Report them on failure.Signed-off-by: Tejun Heo
Signed-off-by: Jeff Garzik -
Several fixes for the AVR32 PATA driver:
* Updated to use new AVR32 SMC timing API. This removes the need for "magic"
constants in signal timing.* Removed the ATA_FLAG_PIO_POLLING, the driver should use interrupts.
* Removed .port_disable and .irq_ack as these are no longer needed.
* Improved some comments.
Signed-off-by: Kristoffer Nyborg Gregertsen
Signed-off-by: Jeff Garzik -
use sstatus instead status.
Signed-off-by: Saeed Bishara
Signed-off-by: Jeff Garzik -
UDMA Mode - Frequency compatibility
UDMA5 - 100 MB/s - SCLK = 133 MHz
UDMA4 - 66 MB/s - SCLK >= 80 MHz
UDMA3 - 44.4 MB/s - SCLK >= 50 MHz
UDMA2 - 33 MB/s - SCLK >= 40 MHzSigned-off-by: Sonic Zhang
Signed-off-by: Jeff Garzik -
dma_addr_t is 64bit wide on some architectures (for example 64bit MIPS),
so it's not a good idea to use it for 32bit wide addresses in descriptors.Signed-off-by: Thomas Bogendoerfer
Signed-off-by: Jeff Garzik -
The VIA veloicty driver needs the following to allow changing MTU when down.
The buffer size needs to be computed when device is brought up, not when
device is initialized. This also fixes a bug where the buffer size was
computed differently on change_mtu versus initial setting.Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
This kind of sucks, and prevents the Fedora installer from using the
device for network installs...[root@efika phy]# iwconfig eth0
Warning: Driver for device eth0 has been compiled with an ancient version
of Wireless Extension, while this program support version 11 and later.
Some things may be broken...eth0 ESSID:off/any Nickname:""
NWID:0 Channel:0 Access Point: 00:00:BF:81:14:E0
Bit Rate:-1.08206e+06 kb/s Sensitivity=0/0
RTS thr:off Fragment thr:off
Encryption key:
Power Management:offSigned-off-by: David Woodhouse
Signed-off-by: Jeff Garzik -
This helps to allow the Fedora installer to use the built-in Ethernet on
the Efika for a network install.Signed-off-by: David Woodhouse
Signed-off-by: Jeff Garzik -
The smc911x.h is a bit of a mess, not supporting any sort of generic
configuration. For the moment only ARCH_PXA and SH_MAGIC_PANEL_R2 have
suitable definitions, so we reflect this in the Kconfig also.While there are other SH boards that will likely turn this on in the
2.6.25 time frame, it's not worth trying to stub around at the moment.Fixes up the allmodconfig build, as noted by akpm.
Signed-off-by: Paul Mundt
Signed-off-by: Jeff Garzik -
Don't exit polling when we have not yet used our budget, this causes
the NAPI system to end up with a messed up poll list.Signed-off-by: Auke Kok
Signed-off-by: Jeff Garzik -
Add workaround for issues FE+ (A0) transmit watermark.
This is copied verbatim from vendor driver sk98lin (10.22.4.3).
Don't have that chip version and no more information seems to be available.Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
Using PCIE advanced error recovery stuff creates more user problems than it's worth.
The AER stuff depends on MMCONFIG and in many configurations it just doesn't work.
Plus it doesn't add any real functionality to the driver. The sky2
driver handles its own errors fine as is.This reverts 555382cbfc6d2187b53888190755e56f52308cd6
Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
Using the hardware window into PCI config space is more reliable
and smaller/faster than using the pci_config routines. It avoids issues
with MMCONFIG etc.Reverts: 167f53d05fccb47b6eeadac7f6705b3f2f042d03
Please apply for 2.6.24
Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
Fix MAC stats accounting.
Fix get_stats.Signed-off-by: Divy Le Ray
Signed-off-by: Jeff Garzik -
netif_rx_complete() should be called only
when work_done < budget.Signed-off-by: Divy Le ray
Signed-off-by: Jeff Garzik -
The patch ensures that a GSO skb has enough headroom
to push an encapsulating cpl_tx_pkt_lso header.Signed-off-by: Divy Le Ray
Signed-off-by: Jeff Garzik -
Extend the RGMII-Internal Delay specification case to include
TX-only and RX-only variants.Signed-off-by: Kim Phillips
Tested-by: Anton Vorontsov
Acked-by: Li Yang
Signed-off-by: Jeff Garzik -
Previously, Internal Delay specification implied the delay be
applied to both TX and RX. This patch allows for separate TX/RX-only
internal delay specification.Signed-off-by: Kim Phillips
Tested-by: Anton Vorontsov
Acked-by: Li Yang
Signed-off-by: Jeff Garzik -
Allow phylib specification of cases where hardware needs to configure
PHYs for Internal Delay only on either RX or TX (not both).Signed-off-by: Kim Phillips
Tested-by: Anton Vorontsov
Acked-by: Li Yang
Signed-off-by: Jeff Garzik -
The code to change MTU doesn't correctly handle all the chip variations
and requirements for restarting. On Genesis chips changing MTU would just
cause receiver to hang.
Use a simpler approach of just taking link down/up if needed.Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
For compatiablity with sk98lin, make sure and set same values
in serial mode register.Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
Version for 2.6.24
Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
Need to increase TX threshold when doing Jumbo frames on dual port board
to avoid underruns. (Code from sk98lin).Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
The driver would not work over fibre if other end when down then
came back up (would require reloading driver). The correct way
to manage the link the same way for both TP and fibre.Resloves problem described in: http://lkml.org/lkml/2007/11/6/395
Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
Make sure and retry when shutting down the MAC. This code is copied
from sk98lin driver.Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
Receive FIFO overrun is not catastrophic condition, so don't flush when
it happens.Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
The calculation of usable FIFO RAM is wrong in the skge driver.
First, is doesn't take into account the reserved area on the original
SysKonnect Genesis boards. Second it has an off-by-one error because
hw->ports is either 1 or 2.Signed-off-by: Stephen Hemminger
Signed-off-by: Jeff Garzik -
Currently ctc-device initialization is broken (kernel bug in
ctc_new_device).
The new network namespace code reveals a deficiency of the
ctc driver. It should make use of alloc_netdev() as described
in Documentation/networking/netdevices.txt.Signed-off-by: Peter Tiedemann
Signed-off-by: Ursula Braun
Signed-off-by: Jeff Garzik