27 Feb, 2008

1 commit


25 Feb, 2008

10 commits


24 Feb, 2008

29 commits

  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    libata-core: fix kernel-doc warning
    sata_fsl: fix build with ATA_VERBOSE_DEBUG
    [libata] ahci: AMD SB700/SB800 SATA support 64bit DMA
    libata-pmp: clear hob for pmp register accesses
    libata: automatically use DMADIR if drive/bridge requires it
    power_state: get rid of write-only variable in SATA
    pata_atiixp: Use 255 sector limit

    Linus Torvalds
     
  • Fix libata-core kernel-doc warning:
    Warning(linux-2.6.25-rc2-git6//drivers/ata/libata-core.c:168): No description found for parameter 'ap'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Jeff Garzik

    Randy Dunlap
     
  • This patch fixes build and few warnings when ATA_VERBOSE_DEBUG
    is defined:

    CC drivers/ata/sata_fsl.o
    drivers/ata/sata_fsl.c: In function ‘sata_fsl_fill_sg’:
    drivers/ata/sata_fsl.c:338: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘void *’
    drivers/ata/sata_fsl.c:338: warning: format ‘%x’ expects type ‘unsigned int’, but argument 4 has type ‘struct prde *’
    drivers/ata/sata_fsl.c: In function ‘sata_fsl_qc_issue’:
    drivers/ata/sata_fsl.c:459: error: ‘csr_base’ undeclared (first use in this function)
    drivers/ata/sata_fsl.c:459: error: (Each undeclared identifier is reported only once
    drivers/ata/sata_fsl.c:459: error: for each function it appears in.)
    drivers/ata/sata_fsl.c: In function ‘sata_fsl_freeze’:
    drivers/ata/sata_fsl.c:525: error: ‘csr_base’ undeclared (first use in this function)
    make[2]: *** [drivers/ata/sata_fsl.o] Error 1

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Jeff Garzik

    Anton Vorontsov
     
  • SB700 SATA controller can support 64 bit DMA, the previous commit
    badc2341579511a247f5993865aa68379e283c5c was added with
    careless reference to SB600, which should be modified by this patch.

    Signed-off-by: Shane Huang
    Signed-off-by: Jeff Garzik

    Shane Huang
     
  • >> Mark Lord wrote:
    >>> Tejun, I've added PMP to sata_mv, and am now trying to get it
    >>> to work with a Marvell PM attached.
    >>>
    >>> And the behaviour I see is very bizarre.
    >>>
    >>> After hard+soft resets, the PM signature is found,
    >>> and libata interrogates the PM registers.
    >>>
    >>> It successfully reads register 0, and then register 1.
    >>> But all subsequent registers read out (incorrectly) as zeros.
    ...

    This behavior has been confirmed by Marvell with a SATA analyzer.
    The Marvell port-multiplier apparently likes to see clean HOB
    information when accessing PMP registers.

    Since sata_mv uses PIO shadow register access, this doesn't happen
    automatically, as it might in a more purely FIS-based driver (eg. ahci).

    One way to fix this is to flag these commands with ATA_TFLAG_LBA48,
    forcing libata to write out the HOB fields with known (zero) values.

    Signed-off-by: Saeed Bishara
    Acked-by: Mark Lord
    Signed-off-by: Jeff Garzik

    Mark Lord
     
  • Back in 2.6.17-rc2, a libata module parameter was added for atapi_dmadir.

    That's nice, but most SATA devices which need it will tell us about it
    in their IDENTIFY PACKET response, as bit-15 of word-62 of the
    returned data (as per ATA7, ATA8 specifications).

    So for those which specify it, we should automatically use the DMADIR bit.
    Otherwise, disc writing will fail by default on many SATA-ATAPI drives.

    This patch adds ATA_DFLAG_DMADIR and make ata_dev_configure() set it
    if atapi_dmadir is set or identify data indicates DMADIR is necessary.
    atapi_xlat() is converted to check ATA_DFLAG_DMADIR before setting
    DMADIR.

    Original patch is from Mark Lord.

    Signed-off-by: Tejun Heo
    Cc: Mark Lord
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • power_state is scheduled for removal, and libata uses it in write-only
    mode. Remove it.

    Signed-off-by: Pavel Machek
    Signed-off-by: Jeff Garzik

    Pavel Machek
     
  • AHCI needs sorting too but this deals with the old interface

    Signed-off-by: Alan Cox
    Signed-off-by: Jeff Garzik

    Alan Cox
     
  • Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Auke Kok
     
  • Fix some spelling errors and inconsistencies in comment blocks.

    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Auke Kok
     
  • this patch avoids a denial of service from an evildoer sending a
    continuous stream of flow control at our adapter that is plugged
    into a non-flow control enabled switch.

    Signed-off-by: Jesse Brandeburg
    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Jesse Brandeburg
     
  • Signed-off-by: Jesse Brandeburg
    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Jesse Brandeburg
     
  • Signed-off-by: Jesse Brandeburg
    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Jesse Brandeburg
     
  • This simplifies the 82571/2/3 family initialization a bit
    and removes an initialization table no longer needed.

    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Kirsher
    Signed-off-by: Jeff Garzik

    Auke Kok
     
  • This counter is valuable to determine if the system is unable
    to timely return buffers to the hardware and this counter starts
    to increase well before the hardware starts to drop packets. If
    users experience rx_no_buffer_count increasing, they should increase
    the amount of descriptors. That will provide more buffers for the
    hardware and will decrease the chance of hard drops.

    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Auke Kok
     
  • Fix NCFGR.SPD setting on 10Mbps. This bug was introduced by
    conversion to generic PHY layer in kernel 2.6.23.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Jeff Garzik

    Atsushi Nemoto
     
  • Fix problems in LED management, so ethtool -p works correctly on Yukon-EC
    and other chips. The driver was incorrectly setting the PHY LED overide bits.
    Moral: read the spec sheet, not the vendor driver.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jeff Garzik

    Stephen Hemminger
     
  • Use register offset definition for WOLcgClr, rather than a magic
    number.

    This patch does not change the driver behaviour.

    Signed-off-by: Laura Garcia Liebana
    Signed-off-by: Jeff Garzik

    Laura Garcia
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (37 commits)
    [NETFILTER]: fix ebtable targets return
    [IP_TUNNEL]: Don't limit the number of tunnels with generic name explicitly.
    [NET]: Restore sanity wrt. print_mac().
    [NEIGH]: Fix race between neighbor lookup and table's hash_rnd update.
    [RTNL]: Validate hardware and broadcast address attribute for RTM_NEWLINK
    tg3: ethtool phys_id default
    [BNX2]: Update version to 1.7.4.
    [BNX2]: Disable parallel detect on an HP blade.
    [BNX2]: More 5706S link down workaround.
    ssb: Fix support for PCI devices behind a SSB->PCI bridge
    zd1211rw: fix sparse warnings
    rtl818x: fix sparse warnings
    ssb: Fix pcicore cardbus mode
    ssb: Make the GPIO API reentrancy safe
    ssb: Fix the GPIO API
    ssb: Fix watchdog access for devices without a chipcommon
    ssb: Fix serial console on new bcm47xx devices
    ath5k: Fix build warnings on some 64-bit platforms.
    WDEV, ath5k, don't return int from bool function
    WDEV: ath5k, fix lock imbalance
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC64]: make IOMMU code respect the segment boundary limits
    [SPARC64]: Fix cpu trampoline et al. mismatch warnings.
    [SPARC64]: More sparse warning fixes in process.c
    [SPARC64]: Fix sparse warning wrt. fault_in_user_windows.
    [SPARC64]: Kill show_regs32().
    [SPARC64]: Fix sparse warnings wrt. __show_regs().
    [SPARC64]: Kill show_stackframe{,32}().
    [SPARC64]: Fix sparse warnings wrt. machine_alt_power_off().

    Linus Torvalds
     
  • This patch fixes a check-after-use spotted by the Coverity checker.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Jeff Garzik

    Adrian Bunk
     
  • This patch eliminates a kernel panic with the igb driver in 2.6.25-rc2 when
    running on a Intel 82575 Ethernet controller with a 1000BASE-SX PHY. The
    panic does not happen with the 1000BASE-T PHY, only with a SX connection.

    Signed-off-by: Bill Hayes
    Signed-off-by: Andy Gospodarek
    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Bill Hayes
     
  • Change all dma op invocations in gianfar.c to actually pass in the
    device pointer. Currently, the value is ignored, but it will be
    used going forward as we implement archdata for 32-bit powerpc.

    Signed-off-by: Becky Bruce
    Acked-by: Andy Fleming
    Signed-off-by: Jeff Garzik

    Becky Bruce
     
  • Reading a serie of zero from the cmos sram area do not work
    well with is_valid_ether_addr(). Let's read the mac address
    from the eeprom first as it seems more reliable.

    Fix for http://bugzilla.kernel.org/show_bug.cgi?id=9831

    Signed-off-by: Francois Romieu
    Signed-off-by: Jeff Garzik

    Francois Romieu
     
  • The forward declarations were already marked static, make the definitions
    be static as well. Fixes the sparse warnings as well.

    drivers/net/tlan.c:1403:5: warning: symbol 'TLan_HandleInvalid' was not declared. Should it be static?
    drivers/net/tlan.c:1435:5: warning: symbol 'TLan_HandleTxEOF' was not declared. Should it be static?
    drivers/net/tlan.c:1521:5: warning: symbol 'TLan_HandleStatOverflow' was not declared. Should it be static?
    drivers/net/tlan.c:1557:5: warning: symbol 'TLan_HandleRxEOF' was not declared. Should it be static?
    drivers/net/tlan.c:1692:5: warning: symbol 'TLan_HandleDummy' was not declared. Should it be static?
    drivers/net/tlan.c:1722:5: warning: symbol 'TLan_HandleTxEOC' was not declared. Should it be static?
    drivers/net/tlan.c:1770:5: warning: symbol 'TLan_HandleStatusCheck' was not declared. Should it be static?
    drivers/net/tlan.c:1845:5: warning: symbol 'TLan_HandleRxEOC' was not declared. Should it be static?
    drivers/net/tlan.c:1905:6: warning: symbol 'TLan_Timer' was not declared. Should it be static?
    drivers/net/tlan.c:1986:6: warning: symbol 'TLan_ResetLists' was not declared. Should it be static?
    drivers/net/tlan.c:2046:6: warning: symbol 'TLan_FreeLists' was not declared. Should it be static?
    drivers/net/tlan.c:2095:6: warning: symbol 'TLan_PrintDio' was not declared. Should it be static?
    drivers/net/tlan.c:2130:6: warning: symbol 'TLan_PrintList' was not declared. Should it be static?
    drivers/net/tlan.c:2166:6: warning: symbol 'TLan_ReadAndClearStats' was not declared. Should it be static?
    drivers/net/tlan.c:2242:1: warning: symbol 'TLan_ResetAdapter' was not declared. Should it be static?
    drivers/net/tlan.c:2328:1: warning: symbol 'TLan_FinishReset' was not declared. Should it be static?
    drivers/net/tlan.c:2451:6: warning: symbol 'TLan_SetMac' was not declared. Should it be static?
    drivers/net/tlan.c:2493:6: warning: symbol 'TLan_PhyPrint' was not declared. Should it be static?
    drivers/net/tlan.c:2542:6: warning: symbol 'TLan_PhyDetect' was not declared. Should it be static?
    drivers/net/tlan.c:2589:6: warning: symbol 'TLan_PhyPowerDown' was not declared. Should it be static?
    drivers/net/tlan.c:2614:6: warning: symbol 'TLan_PhyPowerUp' was not declared. Should it be static?
    drivers/net/tlan.c:2635:6: warning: symbol 'TLan_PhyReset' was not declared. Should it be static?
    drivers/net/tlan.c:2663:6: warning: symbol 'TLan_PhyStartLink' was not declared. Should it be static?
    drivers/net/tlan.c:2750:6: warning: symbol 'TLan_PhyFinishAutoNeg' was not declared. Should it be static?
    drivers/net/tlan.c:2906:5: warning: symbol 'TLan_MiiReadReg' was not declared. Should it be static?
    drivers/net/tlan.c:2996:6: warning: symbol 'TLan_MiiSendData' was not declared. Should it be static?
    drivers/net/tlan.c:3038:6: warning: symbol 'TLan_MiiSync' was not declared. Should it be static?
    drivers/net/tlan.c:3077:6: warning: symbol 'TLan_MiiWriteReg' was not declared. Should it be static?
    drivers/net/tlan.c:3147:6: warning: symbol 'TLan_EeSendStart' was not declared. Should it be static?
    drivers/net/tlan.c:3187:5: warning: symbol 'TLan_EeSendByte' was not declared. Should it be static?
    drivers/net/tlan.c:3248:6: warning: symbol 'TLan_EeReceiveByte' was not declared. Should it be static?
    drivers/net/tlan.c:3306:5: warning: symbol 'TLan_EeReadByte' was not declared. Should it be static?

    Signed-off-by: Harvey Harrison
    Signed-off-by: Jeff Garzik

    Harvey Harrison
     
  • The kernel.h macro DIV_ROUND_UP performs the computation
    (((n) + (d) - 1) / (d)) but is perhaps more readable.

    Signed-off-by: Ursula Braun
    Signed-off-by: Jeff Garzik

    Julia Lawall
     
  • * If ConfigBase is 0x03c0 && manfid is (0x0149,0xc1ab),
    printk "use axnet_cs instead" message.

    Actually, most of the card with manfid(0x0149, 0xc1ab)
    use pcnet_cs driver.

    * remove entry (0x021b, 0x0202)

    Signed-off-by: Komuro
    Signed-off-by: Jeff Garzik

    Komuro
     
  • Suppress the warning message about the 'netcard_portlist' defined but not used.

    Signed-off-by: Leonardo Potenza
    Signed-off-by: Jeff Garzik

    Leonardo Potenza
     
  • Signed-off-by: Jeff Garzik

    Christian Borntraeger