03 Apr, 2010

1 commit


02 Apr, 2010

1 commit

  • * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (76 commits)
    drm/radeon/kms: enable ACPI powermanagement mode on radeon gpus.
    drm/radeon/kms: rs400/480 should set common registers.
    drm/radeon/kms: add sanity check to wptr.
    drm/radeon/kms/evergreen: get DP working
    drm/radeon/kms: add hw_i2c module option
    drm/radeon/kms: use new pre/post_xfer i2c bit algo hooks
    drm/radeon/kms: disable MSI on IGP chips
    drm/radeon/kms: display watermark updates (v2)
    drm/radeon/kms/dp: disable training pattern on the sink at the end of link training
    drm/radeon/kms: minor fixes for eDP with LCD* device tags (v2)
    drm/radeon/kms/dp: remove extraneous training complete call
    drm/radeon/kms/atom: minor fixes to transmitter setup
    drm/radeon/kms: Only restrict BO to visible VRAM size when pinning to VRAM.
    drm: fix build error when SYSRQ is disabled
    drm/radeon/kms: fix macbookpro connector quirk
    drm/radeon/r6xx/r7xx: further safe reg clean up
    drm/radeon: bump the UMS driver version for r6xx/r7xx const buffer support
    drm/radeon/kms: bump the version for r6xx/r7xx const buffer support
    drm/radeon/r6xx/r7xx: CS parser fixes
    drm/radeon/kms: fix some typos in r6xx/r7xx hpd setup
    ...

    Fix up MSI-related conflicts in drivers/gpu/drm/radeon/radeon_irq_kms.c

    Linus Torvalds
     

31 Mar, 2010

1 commit


30 Mar, 2010

3 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (33 commits)
    r8169: offical fix for CVE-2009-4537 (overlength frame DMAs)
    ipv6: Don't drop cache route entry unless timer actually expired.
    tulip: Add missing parens.
    r8169: fix broken register writes
    pcnet_cs: add new id
    bonding: fix broken multicast with round-robin mode
    drivers/net: Fix continuation lines
    e1000: do not modify tx_queue_len on link speed change
    net: ipmr/ip6mr: prevent out-of-bounds vif_table access
    ixgbe: Do not run all Diagnostic offline tests when VFs are active
    igb: use correct bits to identify if managability is enabled
    benet: Fix compile warnnings in drivers/net/benet/be_ethtool.c
    net: Add MSG_WAITFORONE flag to recvmmsg
    e1000e: do not modify tx_queue_len on link speed change
    igbvf: do not modify tx_queue_len on link speed change
    ipv4: Restart rt_intern_hash after emergency rebuild (v2)
    ipv4: Cleanup struct net dereference in rt_intern_hash
    net: fix netlink address dumping in IPv4/IPv6
    tulip: Fix null dereference in uli526x_rx_packet()
    gianfar: fix undo of reserve()
    ...

    Linus Torvalds
     
  • In commit 9df93939b735 ("ext3: Use bitops to read/modify
    EXT3_I(inode)->i_state") ext3 changed its internal 'i_state' variable to
    use bitops for its state handling. However, unline the same ext4
    change, it didn't actually change the name of the field when it changed
    the semantics of it.

    As a result, an old use of 'i_state' remained in fs/ext3/ialloc.c that
    initialized the field to EXT3_STATE_NEW. And that does not work
    _at_all_ when we're now working with individually named bits rather than
    values that get masked. So the code tried to mark the state to be new,
    but in actual fact set the field to EXT3_STATE_JDATA. Which makes no
    sense at all, and screws up all the code that checks whether the inode
    was newly allocated.

    In particular, it made the xattr code unhappy, and caused various random
    behavior, like apparently

    https://bugzilla.redhat.com/show_bug.cgi?id=577911

    So fix the initialization, and rename the field to match ext4 so that we
    don't have this happen again.

    Cc: James Morris
    Cc: Stephen Smalley
    Cc: Daniel J Walsh
    Cc: Eric Paris
    Cc: Jan Kara
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • CONFIG_SLOW_WORK_PROC was changed to CONFIG_SLOW_WORK_DEBUG, but not in all
    instances. Change the remaining instances. This makes the debugfs file
    display the time mark and the owner's description again.

    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     

27 Mar, 2010

6 commits

  • Add new flag MSG_WAITFORONE for the recvmmsg() syscall.
    When this flag is specified for a blocking socket, recvmmsg()
    will only block until at least 1 packet is available. The
    default behavior is to block until all vlen packets are
    available. This flag has no effect on non-blocking sockets
    or when used in combination with MSG_DONTWAIT.

    Signed-off-by: Brandon L Black
    Acked-by: Ulrich Drepper
    Acked-by: Eric Dumazet
    Acked-by: Arnaldo Carvalho de Melo
    Signed-off-by: David S. Miller

    Brandon L Black
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    x86/PCI: truncate _CRS windows with _LEN > _MAX - _MIN + 1
    x86/PCI: for host bridge address space collisions, show conflicting resource
    frv/PCI: remove redundant warnings
    x86/PCI: remove redundant warnings
    PCI: don't say we claimed a resource if we failed
    PCI quirk: Disable MSI on VIA K8T890 systems
    PCI quirk: RS780/RS880: work around missing MSI initialization
    PCI quirk: only apply CX700 PCI bus parking quirk if external VT6212L is present
    PCI: complain about devices that seem to be broken
    PCI: print resources consistently with %pR
    PCI: make disabled window printk style match the enabled ones
    PCI: break out primary/secondary/subordinate for readability
    PCI: for address space collisions, show conflicting resource
    resources: add interfaces that return conflict information
    PCI: cleanup error return for pcix get and set mmrbc functions
    PCI: fix access of PCI_X_CMD by pcix get and set mmrbc functions
    PCI: kill off pci_register_set_vga_state() symbol export.
    PCI: fix return value from pcix_get_max_mmrbc()

    Linus Torvalds
     
  • When the cgroup freezer is used to freeze tasks we do not want to thaw
    those tasks during resume. Currently we test the cgroup freezer
    state of the resuming tasks to see if the cgroup is FROZEN. If so
    then we don't thaw the task. However, the FREEZING state also indicates
    that the task should remain frozen.

    This also avoids a problem pointed out by Oren Ladaan: the freezer state
    transition from FREEZING to FROZEN is updated lazily when userspace reads
    or writes the freezer.state file in the cgroup filesystem. This means that
    resume will thaw tasks in cgroups which should be in the FROZEN state if
    there is no read/write of the freezer.state file to trigger this
    transition before suspend.

    NOTE: Another "simple" solution would be to always update the cgroup
    freezer state during resume. However it's a bad choice for several reasons:
    Updating the cgroup freezer state is somewhat expensive because it requires
    walking all the tasks in the cgroup and checking if they are each frozen.
    Worse, this could easily make resume run in N^2 time where N is the number
    of tasks in the cgroup. Finally, updating the freezer state from this code
    path requires trickier locking because of the way locks must be ordered.

    Instead of updating the freezer state we rely on the fact that lazy
    updates only manage the transition from FREEZING to FROZEN. We know that
    a cgroup with the FREEZING state may actually be FROZEN so test for that
    state too. This makes sense in the resume path even for partially-frozen
    cgroups -- those that really are FREEZING but not FROZEN.

    Reported-by: Oren Ladaan
    Signed-off-by: Matt Helsley
    Cc: stable@kernel.org
    Signed-off-by: Rafael J. Wysocki

    Matt Helsley
     
  • * 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6:
    pcmcia: use dev_pm_ops for class pcmcia_socket_class
    power: support _noirq actions on device types and classes
    pcmcia: allow for four multifunction subdevices (again)
    pcmcia: do not use ioports < 0x100 on x86
    pd6729: Coding Style fixes

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

    * 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    time: Fix accumulation bug triggered by long delay.
    posix-cpu-timers: Reset expire cache when no timer is running
    timer stats: Fix del_timer_sync() and try_to_del_timer_sync()
    clockevents: Sanitize min_delta_ns adjustment and prevent overflows

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

    * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: Remove excessive early_res debug output
    softlockup: Stop spurious softlockup messages due to overflow
    rcu: Fix local_irq_disable() CONFIG_PROVE_RCU=y false positives
    rcu: Fix tracepoints & lockdep false positive
    rcu: Make rcu_read_lock_bh_held() allow for disabled BH

    Linus Torvalds
     

26 Mar, 2010

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (25 commits)
    TIPC: Removed inactive maintainer
    isdn: Cleanup Sections in PCMCIA driver elsa
    isdn: Cleanup Sections in PCMCIA driver avma1
    isdn: Cleanup Sections in PCMCIA driver teles
    isdn: Cleanup Sections in PCMCIA driver sedlbauer
    via-velocity: Fix FLOW_CNTL_TX_RX handling in set_mii_flow_control()
    netfilter: xt_hashlimit: IPV6 bugfix
    netfilter: ip6table_raw: fix table priority
    netfilter: xt_hashlimit: dl_seq_stop() fix
    af_key: return error if pfkey_xfrm_policy2msg_prep() fails
    skbuff: remove unused dma_head & dma_maps fields
    vlan: updates vlan real_num_tx_queues
    vlan: adds vlan_dev_select_queue
    igb: only use vlan_gro_receive if vlans are registered
    igb: do not modify tx_queue_len on link speed change
    igb: count Rx FIFO errors correctly
    bnx2: Use proper handler during netpoll.
    bnx2: Fix netpoll crash.
    ksz884x: fix return value of netdev_set_eeprom
    cgroups: net_cls as module
    ...

    Linus Torvalds
     
  • David S. Miller
     

25 Mar, 2010

8 commits

  • The order of the IPv6 raw table is currently reversed, that makes impossible
    to use the NOTRACK target in IPv6: for example if someone enters

    ip6tables -t raw -A PREROUTING -p tcp --dport 80 -j NOTRACK

    and if we receive fragmented packets then the first fragment will be
    untracked and thus skip nf_ct_frag6_gather (and conntrack), while all
    subsequent fragments enter nf_ct_frag6_gather and reassembly will never
    successfully be finished.

    Singed-off-by: Jozsef Kadlecsik
    Signed-off-by: Patrick McHardy

    Jozsef Kadlecsik
     
  • * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
    NFS: don't try to decode GETATTR if DELEGRETURN returned error
    sunrpc: handle allocation errors from __rpc_lookup_create()
    SUNRPC: Fix the return value of rpc_run_bc_task()
    SUNRPC: Fix a use after free bug with the NFSv4.1 backchannel
    SUNRPC: Fix a potential memory leak in auth_gss
    NFS: Prevent another deadlock in nfs_release_page()

    Linus Torvalds
     
  • * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    i2c-scmi: Provide module aliases for automatic loading
    i2c-scmi: Support IBM SMBus CMI devices
    acpi: Support IBM SMBus CMI devices

    Linus Torvalds
     
  • Document the circular buffering capabilities available in Linux.

    Signed-off-by: David Howells
    Signed-off-by: Paul E. McKenney
    Reviewed-by: Randy Dunlap
    Reviewed-by: Stefan Richter
    Signed-off-by: Linus Torvalds

    David Howells
     
  • In the extended CSD register the CARD_TYPE is an 8-bit value of which the
    upper 6 bits were reserved in JEDEC specifications prior to version 4.4.
    In version 4.4 two of the reserved bits were designated for identifying
    support for the newly added High-Speed Dual Data Rate. Unfortunately the
    mmc_read_ext_csd() function required that the reserved bits be zero
    instead of ignoring them as it should.

    This patch makes mmc_read_ext_csd() ignore the CARD_TYPE bits that are
    reserved or not yet supported. It also stops the function jumping to the
    end as though an error occurred, when it is only warns that the CARD_TYPE
    bits (that it does interpret) are invalid.

    Signed-off-by: Adrian Hunter
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Hunter
     
  • Commit 57fe60df ("reiserfs: add atomic addition of selinux attributes
    during inode creation") contains a bug that will cause it to oops when
    mounting a file system that didn't previously contain extended attributes
    on a system using security.* xattrs.

    The issue is that while creating the privroot during mount
    reiserfs_security_init calls reiserfs_xattr_jcreate_nblocks which
    dereferences the xattr root. The xattr root doesn't exist, so we get an
    oops.

    Addresses http://bugzilla.kernel.org/show_bug.cgi?id=15309

    Signed-off-by: Jeff Mahoney
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Mahoney
     
  • include/linux/kfifo.h first defines and then undefines __kfifo_initializer
    which is used by INIT_KFIFO (which is also a macro, so building a module
    which uses INIT_KFIFO will fail).

    Signed-off-by: David Härdeman
    Acked-by: Stefani Seibold
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Härdeman
     
  • The dma map fields in the skb_shared_info structure no longer has any users
    and can be dropped since it is making the skb_shared_info unecessarily larger.

    Running slabtop show that we were using 4K slabs for the skb->head on x86_64 w/
    an allocation size of 1522. It turns out that the dma_head and dma_maps array
    made skb_shared large enough that we had crossed over the 2k boundary with
    standard frames and as such we were using 4k blocks of memory for all skbs.

    Signed-off-by: Alexander Duyck
    Signed-off-by: Jeff Kirsher
    Acked-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Alexander Duyck
     

24 Mar, 2010

3 commits

  • On some old IBM workstations and desktop computers, the BIOS presents in the
    DSDT an SMBus object that is missing the HID identifier that the i2c-scmi
    driver looks for. Modify the ACPI device scan code to insert the missing HID
    if it finds an IBM system with such an object.

    Affected machines: IntelliStation Z20/Z30. Note that the i2c-i801 driver no
    longer works on these machines because of ACPI resource conflicts.

    Signed-off-by: Darrick J. Wong
    Signed-off-by: Jean Delvare

    Darrick J. Wong
     
  • Instead of requiring PCMCIA socket drivers to call various functions
    during their (bus) resume and suspend functions, register an own
    dev_pm_ops for this class. This fixes several suspend/resume bugs
    seen on db1xxx-ss, and probably on some other socket drivers, too.

    With regard to the asymmetry with only _noirq suspend, but split up
    resume, please see bug 14334 and commit 9905d1b411946fb3 .

    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     
  • request_resource() and insert_resource() only return success or failure,
    which no information about what existing resource conflicted with the
    proposed new reservation. This patch adds request_resource_conflict()
    and insert_resource_conflict(), which return the conflicting resource.

    Callers may use this for better error messages or to adjust the new
    resource and retry the request.

    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Jesse Barnes

    Bjorn Helgaas
     

23 Mar, 2010

2 commits

  • Commit 45575f5a426c ("ppc64 sys_ipc breakage in 2.6.34-rc2") fixed the
    definition of the sys_ipc() helper, but didn't fix the prototype in

    Reported-and-tested-by: Andreas Schwab
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (38 commits)
    ip_gre: include route header_len in max_headroom calculation
    if_tunnel.h: add missing ams/byteorder.h include
    ipv4: Don't drop redirected route cache entry unless PTMU actually expired
    net: suppress lockdep-RCU false positive in FIB trie.
    Bluetooth: Fix kernel crash on L2CAP stress tests
    Bluetooth: Convert debug files to actually use debugfs instead of sysfs
    Bluetooth: Fix potential bad memory access with sysfs files
    netfilter: ctnetlink: fix reliable event delivery if message building fails
    netlink: fix NETLINK_RECV_NO_ENOBUFS in netlink_set_err()
    NET_DMA: free skbs periodically
    netlink: fix unaligned access in nla_get_be64()
    tcp: Fix tcp_mark_head_lost() with packets == 0
    net: ipmr/ip6mr: fix potential out-of-bounds vif_table access
    KS8695: update ksp->next_rx_desc_read at the end of rx loop
    igb: Add support for 82576 ET2 Quad Port Server Adapter
    ixgbevf: Message formatting cleanups
    ixgbevf: Shorten up delay timer for watchdog task
    ixgbevf: Fix VF Stats accounting after reset
    ixgbe: Set IXGBE_RSC_CB(skb)->DMA field to zero after unmapping the address
    ixgbe: fix for real_num_tx_queues update issue
    ...

    Linus Torvalds
     

22 Mar, 2010

2 commits


21 Mar, 2010

3 commits


20 Mar, 2010

4 commits

  • This patch fixes a unaligned access in nla_get_be64() that was
    introduced by myself in a17c859849402315613a0015ac8fbf101acf0cc1.

    Signed-off-by: Pablo Neira Ayuso
    Signed-off-by: David S. Miller

    Pablo Neira Ayuso
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
    serial: sh-sci: remove duplicated #include
    sh: Export uncached helper symbols.
    sh: Fix up NUMA build for 29-bit.
    serial: sh-sci: Fix build failure for non-sh architectures.
    sh: Fix up uncached offset for legacy 29-bit mode.
    sh: Support CPU affinity masks for INTC controllers.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6:
    tty_port,usb-console: Fix usb serial console open/close regression
    tty: cpm_uart: use resource_size()
    tty_buffer: Fix distinct type warning
    hvc_console: Fix race between hvc_close and hvc_remove
    uartlite: Fix build on sparc.
    tty: Take a 256 byte padding into account when buffering below sub-page units
    Revert "tty: Add a new VT mode which is like VT_PROCESS but doesn't require a VT_RELDISP ioctl call"

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (45 commits)
    USB: gadget/multi: cdc_do_config: remove redundant check
    usb: r8a66597-hcd: fix removed from an attached hub
    USB: xhci: Make endpoint interval debugging clearer.
    USB: Fix usb_fill_int_urb for SuperSpeed devices
    USB: cp210x: Remove double usb_control_msg from cp210x_set_config
    USB: Remove last bit of CONFIG_USB_BERRY_CHARGE
    USB: gadget: add gadget controller number for s3c-hsotg driver
    USB: ftdi_sio: Fix locking for change_speed() function
    USB: g_mass_storage: fixed module name in Kconfig
    USB: gadget: f_mass_storage::fsg_bind(): fix error handling
    USB: g_mass_storage: fix section mismatch warnings
    USB: gadget: fix Blackfin builds after gadget cleansing
    USB: goku_udc: remove potential null dereference
    USB: option.c: Add Pirelli VID/PID and indicate Pirelli's modem interface is 0xff
    USB: serial: Fix module name typo for qcaux Kconfig entry.
    usb: cdc-wdm: Fix deadlock between write and resume
    usb: cdc-wdm: Fix order in disconnect and fix locking
    usb: cdc-wdm:Fix loss of data due to autosuspend
    usb: cdc-wdm: Fix submission of URB after suspension
    usb: cdc-wdm: Fix race between disconnect and debug messages
    ...

    Linus Torvalds
     

19 Mar, 2010

4 commits

  • USB 3 and Wireless USB specify a logarithmic encoding of the endpoint
    interval that matches the USB 2 specification. usb_fill_int_urb() didn't
    know that and was filling in the interval as if it was USB 1.1. Fix
    usb_fill_int_urb() for SuperSpeed devices, but leave the wireless case
    alone, because David Vrabel wants to keep the old encoding.

    Update the struct urb kernel doc to note that SuperSpeed URBs must have
    urb->interval specified in microframes.

    Add a missing break statement in the usb_submit_urb() interrupt URB
    checking, since wireless USB and SuperSpeed USB encode urb->interval
    differently. This allows xHCI roothubs to actually register with khubd.

    Signed-off-by: Matthew Wilcox
    Signed-off-by: Sarah Sharp
    Signed-off-by: Greg Kroah-Hartman

    Matthew Wilcox
     
  • Commit e1108a63e10d344284011cccc06328b2cd3e5da3 ("usb_serial: Use the
    shutdown() operation") breaks the ability to use a usb console
    starting in 2.6.33. This was observed when using
    console=ttyUSB0,115200 as a boot argument with an FTDI device. The
    error is:

    ftdi_sio ttyUSB0: ftdi_submit_read_urb - failed submitting read urb, error -22

    The handling of the ASYNCB_INITIALIZED changed in 2.6.32 such that in
    tty_port_shutdown() it always clears the flag if it is set. The fix
    is to add a variable to the tty_port struct to indicate when the tty
    port is a console.

    CC: Alan Cox
    CC: Alan Stern
    CC: Oliver Neukum
    CC: Andrew Morton
    Signed-off-by: Jason Wessel
    Signed-off-by: Greg Kroah-Hartman

    Jason Wessel
     
  • The TTY layer takes some care to ensure that only sub-page allocations
    are made with interrupts disabled. It does this by setting a goal of
    "TTY_BUFFER_PAGE" to allocate. Unfortunately, while TTY_BUFFER_PAGE takes the
    size of tty_buffer into account, it fails to account that tty_buffer_find()
    rounds the buffer size out to the next 256 byte boundary before adding on
    the size of the tty_buffer.

    This patch adjusts the TTY_BUFFER_PAGE calculation to take into account the
    size of the tty_buffer and the padding. Once applied, tty_buffer_alloc()
    should not require high-order allocations.

    Signed-off-by: Mel Gorman
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Mel Gorman
     
  • This reverts commit eec9fe7d1ab4a0dfac4cb43047a7657fffd0002f.

    Ari writes as the reason this should be reverted:
    The problems with this patch include:
    1. There's at least one subtlety I overlooked - switching
    between X servers (i.e. from one X VT to another) still requires
    the cooperation of both X servers. I was assuming that KMS
    eliminated this.
    2. It hasn't been tested at all (no X server patch exists which
    uses the new mode).

    As he was the original author of the patch, I'll revert it.

    Cc: Ari Entlich
    Cc: Alan Cox
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman