14 Jul, 2011

8 commits


13 Jul, 2011

20 commits


12 Jul, 2011

12 commits

  • This reverts commit a51f7a66fb5e4af5ec4286baef940d06594b59d2.

    We still have a few Ironlake and Sandybridge machines which fail when
    RC6 is enabled. Better luck next release?

    Signed-off-by: Keith Packard

    Keith Packard
     
  • i915_driver_load adds a write-combining MTRR region for the GTT
    aperture to improve memory speeds through the aperture. If
    i915_driver_load fails after this, it would not have cleaned up the
    MTRR. This shouldn't cause any problems, except for consuming an MTRR
    register. Still, it's best to clean up completely in the failure path,
    which is easily done by calling mtrr_del if the mtrr was successfully
    allocated.

    i915_driver_load calls i915_gem_load which register
    i915_gem_inactive_shrink. If i915_driver_load fails after calling
    i915_gem_load, the shrinker will be left registered. When called, it
    will access freed memory and crash. The fix is to unregister the shrinker in the
    failure path using code duplicated from i915_driver_unload.

    i915_driver_load also has some incorrect gotos in the error cleanup
    paths:

    * After failing to initialize the GTT (which cannot happen, btw,
    intel_gtt_get returns a fixed (non-NULL) value), it tries to
    free the uninitialized WC IO mapping. Fixed this by changing the
    target from out_iomapfree to out_rmmap

    Signed-off-by: Keith Packard
    Tested-by: Lin Ming

    Keith Packard
     
  • The driver reads PCI subsystem IDs from the PCI configuration registers while
    it is already stored by the PCI subsystem in the 'subsystem_device' field of
    'struct pci_dev'...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: David S. Miller

    Sergei Shtylyov
     
  • Let depmod.sh create a temporary directory in /tmp instead of writing to
    the build directory as root. The mktemp utility should be available on
    any recent system (and there is already scripts/gen_initramfs_list.sh
    relying on it).

    Reported-by: Christian Kujau
    Signed-off-by: Michal Marek

    Michal Marek
     
  • BUS_CNTL reg and bits moved between pre-PCIE and PCIE asics.

    Signed-off-by: Alex Deucher
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • BUS_CNTL is at 0x30 on rs600, not 0x4c.

    Signed-off-by: Alex Deucher
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • Don't enable backends that don't exist.

    Signed-off-by: Alex Deucher
    Cc: stable@kernel.org
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • Skip connectors that do not have an HPD pin.

    Should fix:
    https://bugs.freedesktop.org/show_bug.cgi?id=39027

    Signed-off-by: Alex Deucher
    Tested-by: Rafał Miłecki
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • Make sure that the 'static' keywork is at the beginning of declaration
    for drivers/net/usb/kalmia.c

    This gets rid of warnings like
    warning: ‘static’ is not at beginning of declaration
    when building with -Wold-style-declaration (and/or -Wextra which also
    enables it).

    Signed-off-by: Jesper Juhl
    Signed-off-by: David S. Miller

    Jesper Juhl
     
  • SLIP6 have nothing to do with CSLIP so placing a block of
    SLIP6-related code within a CSLIP ifdef-endif block is incorrect.

    Signed-off-by: Ilya Matvejchikov
    Signed-off-by: David S. Miller

    Matvejchikov Ilya
     
  • We currently can free inetpeer entries too early :

    [ 782.636674] WARNING: kmemcheck: Caught 32-bit read from uninitialized memory (f130f44c)
    [ 782.636677] 1f7b13c100000000000000000000000002000000000000000000000000000000
    [ 782.636686] i i i i u u u u i i i i u u u u i i i i u u u u u u u u u u u u
    [ 782.636694] ^
    [ 782.636696]
    [ 782.636698] Pid: 4638, comm: ssh Not tainted 3.0.0-rc5+ #270 Hewlett-Packard HP Compaq 6005 Pro SFF PC/3047h
    [ 782.636702] EIP: 0060:[] EFLAGS: 00010286 CPU: 0
    [ 782.636707] EIP is at inet_getpeer+0x25b/0x5a0
    [ 782.636709] EAX: 00000002 EBX: 00010080 ECX: f130f3c0 EDX: f0209d30
    [ 782.636711] ESI: 0000bc87 EDI: 0000ea60 EBP: f0209ddc ESP: c173134c
    [ 782.636712] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
    [ 782.636714] CR0: 8005003b CR2: f0beca80 CR3: 30246000 CR4: 000006d0
    [ 782.636716] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
    [ 782.636717] DR6: ffff4ff0 DR7: 00000400
    [ 782.636718] [] rt_set_nexthop.clone.45+0x56/0x220
    [ 782.636722] [] __ip_route_output_key+0x309/0x860
    [ 782.636724] [] tcp_v4_connect+0x124/0x450
    [ 782.636728] [] inet_stream_connect+0xa3/0x270
    [ 782.636731] [] sys_connect+0xa1/0xb0
    [ 782.636733] [] sys_socketcall+0x25d/0x2a0
    [ 782.636736] [] sysenter_do_call+0x12/0x28
    [ 782.636738] [] 0xffffffff

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • struct e1000_queue_stats is not used, lets remove it

    Signed-off-by: Eric Dumazet
    Acked-by: Bruce Allan
    Signed-off-by: David S. Miller

    Eric Dumazet