15 Sep, 2009

19 commits

  • console_print() is an old legacy interface mostly unused in the entire
    kernel tree. It's best to clean up its existing use and let developers
    use their own implementation of it as they feel fit.

    Signed-off-by: Anirban Sinha
    Signed-off-by: Linus Torvalds

    Anirban Sinha
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
    x86, mce: do not compile mcelog message on AMD
    EDAC, AMD: decode FR MCEs
    EDAC, AMD: decode load store MCEs
    EDAC, AMD: decode bus unit MCEs
    EDAC, AMD: decode instruction cache MCEs
    EDAC, AMD: decode data cache MCEs
    EDAC, AMD: carve out decoding of MCi_STATUS ErrorCode
    EDAC, AMD: carve out MCi_STATUS decoding
    x86, mce: pass mce info to EDAC for decoding
    amd64_edac: cleanup amd64_decode_bus_error
    amd64_edac: remove memory and GART TLB error decoders
    amd64_edac: cleanup/complete NB MCE decoding
    amd64_edac: cleanup amd64_process_error_info
    EDAC: beef up ErrorCodeExt error signatures
    EDAC: move MCE error descriptions to EDAC core

    Linus Torvalds
     
  • * 'osync_cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6:
    fsync: wait for data writeout completion before calling ->fsync
    vfs: Remove generic_osync_inode() and sync_page_range{_nolock}()
    fat: Opencode sync_page_range_nolock()
    pohmelfs: Use new syncing helper
    xfs: Convert sync_page_range() to simple filemap_write_and_wait_range()
    ocfs2: Update syncing after splicing to match generic version
    ntfs: Use new syncing helpers and update comments
    ext4: Remove syncing logic from ext4_file_write
    ext3: Remove syncing logic from ext3_file_write
    ext2: Update comment about generic_osync_inode
    vfs: Introduce new helpers for syncing after writing to O_SYNC file or IS_SYNC inode
    vfs: Rename generic_file_aio_write_nolock
    ocfs2: Use __generic_file_aio_write instead of generic_file_aio_write_nolock
    pohmelfs: Use __generic_file_aio_write instead of generic_file_aio_write_nolock
    vfs: Remove syncing from generic_file_direct_write() and generic_file_buffered_write()
    vfs: Export __generic_file_aio_write() and add some comments
    vfs: Introduce filemap_fdatawait_range

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1623 commits)
    netxen: update copyright
    netxen: fix tx timeout recovery
    netxen: fix file firmware leak
    netxen: improve pci memory access
    netxen: change firmware write size
    tg3: Fix return ring size breakage
    netxen: build fix for INET=n
    cdc-phonet: autoconfigure Phonet address
    Phonet: back-end for autoconfigured addresses
    Phonet: fix netlink address dump error handling
    ipv6: Add IFA_F_DADFAILED flag
    net: Add DEVTYPE support for Ethernet based devices
    mv643xx_eth.c: remove unused txq_set_wrr()
    ucc_geth: Fix hangs after switching from full to half duplex
    ucc_geth: Rearrange some code to avoid forward declarations
    phy/marvell: Make non-aneg speed/duplex forcing work for 88E1111 PHYs
    drivers/net/phy: introduce missing kfree
    drivers/net/wan: introduce missing kfree
    net: force bridge module(s) to be GPL
    Subject: [PATCH] appletalk: Fix skb leak when ipddp interface is not loaded
    ...

    Fixed up trivial conflicts:

    - arch/x86/include/asm/socket.h

    converted to in the x86 tree. The generic
    header has the same new #define's, so that works out fine.

    - drivers/net/tun.c

    fix conflict between 89f56d1e9 ("tun: reuse struct sock fields") that
    switched over to using 'tun->socket.sk' instead of the redundantly
    available (and thus removed) 'tun->sk', and 2b980dbd ("lsm: Add hooks
    to the TUN driver") which added a new 'tun->sk' use.

    Noted in 'next' by Stephen Rothwell.

    Linus Torvalds
     
  • * 'x86-xen-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: split __phys_addr out into separate file
    xen: use stronger barrier after unlocking lock
    xen: only enable interrupts while actually blocking for spinlock
    xen: make -fstack-protector work under Xen

    Linus Torvalds
     
  • See Fam10h BKDG (31116, rev. 3.28), Table 101.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • See Fam10h BKDG (31116, rev. 3.28), Table 100.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • ... according to Table 69, Fam10h BKDG (31116, rev. 3.28).

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • See Fam10h BKDG (31116, rev. 3.28), Table 95

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • Those get reported in MC0_STATUS, see Table 92, F10h BKDG (31116, rev.
    3.28) for more details.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • This is the MCE error code from the MCi_STATUS banks, bits [15:0] which
    describe what type of error was encountered: GART TLB, Memory or Bus
    error. The semantics of those bits are identical across all MCE banks so
    decode those separately, irrespectively of MCE type.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • The MCi_STATUS registers have most field definitions in common so decode
    them in the general path. Do not pass ecc_type along and compute it in
    __amd64_decode_bus_error instead.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • Move NB decoder along with required defines to EDAC MCE core. Add
    registration routines for further decoding of the MCE info in the AMD64
    EDAC module.

    CC: Andi Kleen
    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • * don't dump info which mcheck already does
    * update to newest BKDG
    * mv amd64_process_error_info -> amd64_decode_nb_mce
    * shorten error struct names
    * remove redundant info ptr in amd64_process_error_info
    * remove unused ErrorCodeExt[19:16] (MCx_STATUS) defines

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • * mv amd64_error_info_regs -> err_regs

    * remove redundant info ptr

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • This is in preparation of adding AMD-specific MCE decoding functionality
    to the EDAC core. The error decoding macros originate from the AMD64
    EDAC driver albeit in a simplified and cleaned up version here.

    While at it, add macros to generate the error description strings and
    use them in the error type decoders directly which removes a bunch of
    code and makes the decoding functions much more readable. Also, fix
    strings and shorten macro names.

    Remove superfluous htlink_msgs.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     

14 Sep, 2009

4 commits


12 Sep, 2009

17 commits

  • o Add QLogic copyright, add linux-driver@qlogic.com to
    MAINTAINERS.
    o Delete old contact information.

    Signed-off-by: Dhananjay Phadke
    Signed-off-by: David S. Miller

    Dhananjay Phadke
     
  • Redesign tx timeout handling in line with new firmware
    reset design that co-ordinates with other PCI function
    drivers.

    o For NX3031, first try to reset PCI function's own
    context before requesting firmware reset.

    o For NX2031, since firmware heartbit is not supported
    directly request firmware reset.

    Signed-off-by: Amit Kumar Salecha
    Signed-off-by: Dhananjay Phadke
    Signed-off-by: David S. Miller

    Amit Kumar Salecha
     
  • Release file firmware when no firmware reset is required.

    Signed-off-by: Dhananjay Phadke
    Signed-off-by: David S. Miller

    Dhananjay Phadke
     
  • o Access on card memory through memory controller (agent)
    rather than moving small pci window around. Clean up the
    code for moving windows around.

    o Restrict memory accesss to 64 bit, currently only firmware
    download uses this.

    Signed-off-by: Dhananjay Phadke
    Signed-off-by: David S. Miller

    Dhananjay Phadke
     
  • Use 8 byte strides for firmware download into card
    memory since oncard memory controller needs 8 byte
    (64 bit) accesses. This avoids unnecessary rmw cycles.

    Signed-off-by: Amit Kumar Salecha
    Signed-off-by: Dhananjay Phadke
    Signed-off-by: David S. Miller

    Amit Kumar Salecha
     
  • Commit f6eb9b1fc1411d22c073f5264e5630a541d0f7df, "tg3: Add 5717 asic
    rev" changed how the rx return ring size operations are done. It
    effectively inverts the sense of the previous test, but it failed to
    also invert the resulting sizes. This patch corrects that error.

    Signed-off-by: Matt Carlson
    Signed-off-by: David S. Miller

    Matt Carlson
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: (25 commits)
    pata_rz1000: use printk_once
    ahci: kill @force_restart and refine CLO for ahci_kick_engine()
    pata_cs5535: add pci id for AMD based CS5535 controllers
    ahci: Add AMD SB900 SATA/IDE controller device IDs
    drivers/ata: use resource_size
    sata_fsl: Defer non-ncq commands when ncq commands active
    libata: add SATA PMP revision information for spec 1.2
    libata: fix off-by-one error in ata_tf_read_block()
    ahci: Gigabyte GA-MA69VM-S2 can't do 64bit DMA
    ahci: make ahci_asus_m2a_vm_32bit_only() quirk more generic
    dmi: extend dmi_get_year() to dmi_get_date()
    dmi: fix date handling in dmi_get_year()
    libata: unbreak TPM filtering by reorganizing ata_scsi_pass_thru()
    sata_sis: convert to slave_link
    sata_sil24: always set protocol override for non-ATAPI data commands
    libata: Export AHCI capabilities
    libata: Delegate nonrot flag setting to SCSI
    [libata] Add pata_rdc driver for RDC ATA devices
    drivers/ata: Remove unnecessary semicolons
    libata: remove spindown skipping and warning
    ...

    Linus Torvalds
     
  • When CONFIG_INET is disabled, netxen has a build failure:

    netxen_nic_main.c:(.text+0x118fd1): undefined reference to `netxen_config_indev_addr'

    so make that function just an empty stub when CONFIG_INET=n.
    (not "inline" since that conflicts with other declarations of it)

    Signed-off-by: Randy Dunlap
    Acked-by: Dhananjay Phadke
    Signed-off-by: David S. Miller

    Randy Dunlap
     
  • * 'oprofile-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (55 commits)
    arch/x86/oprofile/op_model_amd.c: fix op_amd_handle_ibs() return type
    Revert "x86: oprofile/op_model_amd.c set return values for op_amd_handle_ibs()"
    x86/oprofile: Small coding style fixes
    x86/oprofile: Add counter reservation check for virtual counters
    x86/oprofile: Implement op_x86_virt_to_phys()
    oprofile: Adding switch counter to oprofile statistic variables
    x86/oprofile: Implement mux_clone()
    x86/oprofile: Enable multiplexing only if the model supports it
    x86/oprofile: Add function has_mux() to check multiplexing support
    x86/oprofile: Modify initialization of num_virt_counters
    x86/oprofile: Remove unused num_virt_controls from struct op_x86_model_spec
    x86/oprofile: Remove const qualifier from struct op_x86_model_spec
    x86/oprofile: Moving nmi_cpu_switch() in nmi_int.c
    x86/oprofile: Moving nmi_cpu_save/restore_mpx_registers() in nmi_int.c
    x86/oprofile: Moving nmi_setup_cpu_mux() in nmi_int.c
    x86/oprofile: Implement multiplexing setup/shutdown functions
    oprofile: Grouping multiplexing code in op_model_amd.c
    oprofile: Introduce op_x86_phys_to_virt()
    oprofile: Grouping multiplexing code in oprof.c
    oprofile: Remove oprofile_multiplexing_init()
    ...

    Linus Torvalds
     
  • * 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    pci/intr_remapping: Allocate irq_iommu on node
    irq: Add irq_node() primitive
    irq: Make sure irq_desc for legacy irq get correct node setting
    genirq: Add prototype for handle_nested_irq()
    irq: Remove superfluous NULL pointer check in check_irq_resend()
    irq: Clean up by removing irqfixup MODULE_PARM_DESC()
    genirq: Fix comment describing suspend_device_irqs()
    genirq: Remove obsolete defines and typedefs

    Linus Torvalds
     
  • …/git/tip/linux-2.6-tip

    * 'core-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    debug lockups: Improve lockup detection, fix generic arch fallback
    debug lockups: Improve lockup detection

    Linus Torvalds
     
  • Signed-off-by: Rémi Denis-Courmont
    Signed-off-by: David S. Miller

    Rémi Denis-Courmont
     
  • The Ethernet framing is used for a lot of devices these days. Most
    prominent are WiFi and WiMAX based devices. However for userspace
    application it is important to classify these devices correctly and
    not only see them as Ethernet devices. The daemons like HAL, DeviceKit
    or even NetworkManager with udev support tries to do the classification
    in userspace with a lot trickery and extra system calls. This is not
    good and actually reaches its limitations. Especially since the kernel
    does know the type of the Ethernet device it is pretty stupid.

    To solve this problem the underlying device type needs to be set and
    then the value will be exported as DEVTYPE via uevents and available
    within udev.

    # cat /sys/class/net/wlan0/uevent
    DEVTYPE=wlan
    INTERFACE=wlan0
    IFINDEX=5

    This is similar to subsystems like USB and SCSI that distinguish
    between hosts, devices, disks, partitions etc.

    The new SET_NETDEV_DEVTYPE() is a convenience helper to set the actual
    device type. All device types are free form, but for convenience the
    same strings as used with RFKILL are choosen.

    Signed-off-by: Marcel Holtmann
    Signed-off-by: David S. Miller

    Marcel Holtmann
     
  • The txq_set_wrr() function in drivers/net/mv643xx_eth.c is
    unused, not even referenced under #if 0 or something like that,
    which results in a compile-time warning:

    drivers/net/mv643xx_eth.c:1070: warning: 'txq_set_wrr' defined but not used

    Fix: remove it.

    Signed-off-by: Mikael Pettersson
    Signed-off-by: David S. Miller

    Mikael Pettersson
     
  • MPC8360 QE UCC ethernet controllers hang when changing link duplex
    under a load (a bit of NFS activity is enough).

    PHY: mdio@e0102120:00 - Link is Up - 1000/Full
    sh-3.00# ethtool -s eth0 speed 100 duplex half autoneg off
    PHY: mdio@e0102120:00 - Link is Down
    PHY: mdio@e0102120:00 - Link is Up - 100/Half
    NETDEV WATCHDOG: eth0 (ucc_geth): transmit queue 0 timed out
    ------------[ cut here ]------------
    Badness at c01fcbd0 [verbose debug info unavailable]
    NIP: c01fcbd0 LR: c01fcbd0 CTR: c0194e44
    ...

    The cure is to disable the controller before changing speed/duplex
    and enable it afterwards.

    Though, disabling the controller might take quite a while, so we
    better not grab any spinlocks in adjust_link(). Instead, we quiesce
    the driver's activity, and only then disable the controller.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: David S. Miller

    Anton Vorontsov
     
  • We'll need ugeth_disable() and ugeth_enable() calls earlier in the
    file, so rearrange some code to avoid forward declarations.

    The patch doesn't contain any functional changes.

    Signed-off-by: Anton Vorontsov
    Acked-by: Timur Tabi
    Signed-off-by: David S. Miller

    Anton Vorontsov
     
  • According to specs, when auto-negotiation is disabled, Marvell PHYs need
    a software reset after changing speed/duplex forcing bits. Otherwise,
    the modified bits have no effect.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: David S. Miller

    Anton Vorontsov