15 Nov, 2007

1 commit


14 Nov, 2007

13 commits

  • Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Fix ide-cris, cs5530, sc1200 and sis5513 host drivers to just return instead
    of OOPS-ing for unsupported modes in ->set_dma_mode methods.

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Use drive->select.all for REQ_TYPE_ATA_TASK requests in execute_drive_cmd()
    (the obsolete bits 7 and 5 of the Device register need to be set).

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • We can skip conservative PIO "downgrade" (PIO3 becomes PIO2 etc.) on PMAC.

    Problem reported by Mikael.

    Cc: Mikael Pettersson
    Acked-by: Benjamin Herrenschmidt
    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • LILO version 16 was released on 26-02-1995 (sic), so telling people to not use
    older versions no longer has any value.

    Signed-off-by: Adrian Bunk
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Adrian Bunk
     
  • Make sure to not clear the other IDE channel's interrupt when clearing an IDE
    interrupt via the MRDMODE register.

    Thanks to Bart for finding a coding mistake.

    Bart:

    This fixes regression from commit 66602c83dcb6a5d82772d88ae7a32cd4a1213528
    ("cmd64x: use interrupt status from MRDMODE register (take 2)").

    Extra thanks to Martin for reporting and bisecting the issue.

    From: Sergei Shtylyov
    Tested-by: Martin Rogge
    Tested-by: Milan Kocian
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Sergei Shtylyov
     
  • * 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6:
    hwmon: (i5k_amb) Convert macros to C functions
    hwmon: (w83781d) Add missing curly braces
    hwmon: (abituguru3) Identify ABit IP35 Pro as such
    hwmon: (f75375s) pwmX_mode sysfs files writable for f75375 variant
    hwmon: (f75375s) On n2100 systems, set fans to full speed on boot
    hwmon: (f75375s) Allow setting up fans with platform_data
    hwmon: (f75375s) Add new style bindings
    hwmon: (lm70) Convert semaphore to mutex
    hwmon: (applesmc) Add support for Mac Pro 2 x Quad-Core
    hwmon: (abituguru3) Add support for 2 new motherboards
    hwmon: (ibmpex) Change printk to dev_{info,err} macros
    hwmon: (i5k_amb) New memory temperature sensor driver
    hwmon: (f75375s) fix pwm mode setting
    hwmon: (ibmpex.c) fix NULL dereference
    hwmon: (sis5595) Split sis5595_attributes_opt
    hwmon: (sis5595) Add individual alarm files
    hwmon: (w83627hf) push nr+1 offset into *_REG_FAN macros and simplify
    hwmon: (w83627hf) hoist nr-1 offset out of show-store-temp-X
    hwmon: Add power meter spec to Documentation/hwmon/sysfs-interface

    Linus Torvalds
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (45 commits)
    [NETFILTER]: xt_time should not assume CONFIG_KTIME_SCALAR
    [NET]: Move unneeded data to initdata section.
    [NET]: Cleanup pernet operation without CONFIG_NET_NS
    [TEHUTI]: Fix incorrect usage of strncat in bdx_get_drvinfo()
    [MYRI_SBUS]: Prevent that myri_do_handshake lies about ticks.
    [NETFILTER]: bridge: fix double POSTROUTING hook invocation
    [NETFILTER]: Consolidate nf_sockopt and compat_nf_sockopt
    [NETFILTER]: nf_nat: fix memset error
    [INET]: Use list_head-s in inetpeer.c
    [IPVS]: Remove unused exports.
    [NET]: Unexport sysctl_{r,w}mem_max.
    [TG3]: Update version to 3.86
    [TG3]: MII => TP
    [TG3]: Add A1 revs
    [TG3]: Increase the PCI MRRS
    [TG3]: Prescaler fix
    [TG3]: Limit 5784 / 5764 to MAC LED mode
    [TG3]: Disable GPHY autopowerdown
    [TG3]: CPMU adjustments for loopback tests
    [TG3]: Fix nvram selftest failures
    ...

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
    [POWERPC] Silence an annoying boot message
    [POWERPC] Fix early btext debug on PowerMac
    [POWERPC] Demote clockevent printk to KERN_DEBUG
    [POWERPC] Fix CONFIG_SMP=n build error on ppc64
    [POWERPC] Avoid unpaired stwcx. on some processors
    [POWERPC] Fix oops related to 4xx flush_tlb_page modification
    [POWERPC] cpm: Fix a couple minor issues in cpm_common.c.
    [POWERPC] Add -mno-spe for ARCH=powerpc builds

    Linus Torvalds
     
  • get_property() should not call battery_update(), it also should call
    get_status() only if battery is present to avoid cycle and oops.

    Signed-off-by: Alexey Starikovskiy
    Tested-by: Rolf Eike Beer
    Acked-by: Johannes Weiner
    Signed-off-by: Linus Torvalds

    Alexey Starikovskiy
     
  • This reverts commit 7c9e69faa28027913ee059c285a5ea8382e24b5d, fixing up
    conflicts in fs/ext4/balloc.c manually.

    The cost of doing the bitmap validation on each lookup - even when the
    bitmap is cached - is absolutely prohibitive. We could, and probably
    should, do it only when adding the bitmap to the buffer cache. However,
    right now we are better off just reverting it.

    Peter Zijlstra measured the cost of this extra validation as a 85%
    decrease in cached iozone, and while I had a patch that took it down to
    just 17% by not being _quite_ so stupid in the validation, it was still
    a big slowdown that could have been avoided by just doing it right.

    Cc: Peter Zijlstra
    Cc: Andrew Morton
    Cc: Aneesh Kumar
    Cc: Andreas Dilger
    Cc: Mingming Cao
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

13 Nov, 2007

26 commits

  • It is not correct to assume one can get nsec from a ktime directly by
    using .tv64 field.

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

    Eric Dumazet
     
  • This patch reverts Eric's commit 2b008b0a8e96b726c603c5e1a5a7a509b5f61e35

    It diets .text & .data section of the kernel if CONFIG_NET_NS is not set.
    This is safe after list operations cleanup.

    Signed-of-by: Denis V. Lunev
    Signed-off-by: David S. Miller

    Denis V. Lunev
     
  • If CONFIG_NET_NS is not set, the only namespace is possible.

    This patch removes list of pernet_operations and cleanups code a bit.
    This list is not needed if there are no namespaces. We should just call
    ->init method.

    Additionally, the ->exit will be called on module unloading only. This
    case is safe - the code is not discarded. For the in/kernel code, ->exit
    should never be called.

    Signed-off-by: Denis V. Lunev
    Signed-off-by: David S. Miller

    Denis V. Lunev
     
  • Fix incorrect length for strncat by replacing it with strlcat

    Signed-off-by: Roel Kluin
    Signed-off-by: David S. Miller

    Roel Kluin
     
  • With ' 25)'
    will still cause the function to return -1,

    Signed-off-by: Roel Kluin
    Signed-off-by: David S. Miller

    Roel Kluin
     
  • Packets routed between bridges have the POST_ROUTING hook invoked
    twice since bridging mistakes them for bridged packets because
    they have skb->nf_bridge set.

    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Patrick McHardy
     
  • Both lookup the nf_sockopt_ops object to call the get/set callbacks
    from, but they perform it in a completely similar way.

    Introduce the helper for finding the ops.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • The size passing to memset is the size of a pointer.

    Signed-off-by: Li Zefan
    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Li Zefan
     
  • The inetpeer.c tracks the LRU list of inet_perr-s, but makes
    it by hands. Use the list_head-s for this.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • This patch removes the following unused EXPORT_SYMBOL's:
    - ip_vs_try_bind_dest
    - ip_vs_find_dest

    Signed-off-by: Adrian Bunk
    Signed-off-by: David S. Miller

    Adrian Bunk
     
  • sysctl_{r,w}mem_max can now be unexported.

    Signed-off-by: Adrian Bunk
    Signed-off-by: David S. Miller

    Adrian Bunk
     
  • vmemmap_populate will printk (with KERN_WARNING) for a lot of pages
    if CONFIG_SPARSEMEM_VMEMMAP is enabled (at least it does on iSeries).
    Use pr_debug for it instead.

    Replace the only other use of DBG in this file with pr_debug as well.

    Signed-off-by: Stephen Rothwell
    Acked-by: Olof Johansson
    Signed-off-by: Paul Mackerras

    Stephen Rothwell
     
  • This patch updates the version number to 3.86

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

    Matt Carlson
     
  • The early btext debug wouldn't work on PowerMac when booted from BootX
    due to the code looking for the wrong property name.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt
     
  • These don't need to be seen by everyone on every boot.

    Signed-off-by: Tony Breeds
    Signed-off-by: Paul Mackerras

    Tony Breeds
     
  • The patch "KVM: fix !SMP build error" change the way smp_call_function()
    actually uses the passed in function names on non-SMP builds. So
    previously it was never caught that the function passed in was never
    actually defined.

    This causes a build error on ppc64_defconfig + CONFIG_SMP=n:

    arch/powerpc/mm/tlb_64.c: In function 'pgtable_free_now':
    arch/powerpc/mm/tlb_64.c:71: error: 'pte_free_smp_sync' undeclared (first use in this function)
    arch/powerpc/mm/tlb_64.c:71: error: (Each undeclared identifier is reported only once
    arch/powerpc/mm/tlb_64.c:71: error: for each function it appears in.)

    So we need to define it even if CONFIG_SMP is off. Either that or ifdef
    out the smp_call_function() call, but that's ugly.

    Signed-off-by: Olof Johansson
    Signed-off-by: Paul Mackerras

    Olof Johansson
     
  • The context switch code in the kernel issues a dummy stwcx. to clear the
    reservation, as recommended by the architecture. However, some processors
    can have issues if this stwcx to address A occurs while the reservation
    is already held to a different address B. To avoid this problem, the dummy
    stwcx. needs to be paired with a dummy lwarx to the same address.

    This adds the dummy lwarx, and creates a cpu feature bit to indicate
    which cpus are affected. Tested on mpc8641_hpcn_defconfig in
    arch/powerpc; build tested in arch/ppc.

    Signed-off-by: Becky Bruce
    Signed-off-by: Paul Mackerras

    Becky Bruce
     
  • This patch changes the PHY type reported through ethtool for copper
    devices from MII to TP. The latter is more accurate.

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

    Matt Carlson
     
  • This patch adds the A1 revision of 5784, 5764, and 5761, and applies all
    previous bugfixes. In places where the list of devices gets too long,
    the patch uses a new TG3_FLG3_5761_5784_AX_FIXES flag instead.

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

    Matt Carlson
     
  • Previous devices hardcoded the PCI Maximum Read Request Size to 4K. To
    better comply with the PCI spec, the hardware now defaults the MRRS to
    512 bytes. This will yield poor driver performance if left untouched.
    This patch increases the MRRS to 4K on driver initialization.

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

    Matt Carlson
     
  • Internal hardware timers become inaccurate after link events. Clock
    frequency switches performed by the CPMU fail to adjust timer
    prescalers. The fix is to detect core clock frequency changes during
    link events and adjust the timer prescalers accordingly.

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

    Matt Carlson
     
  • Most 5784 / 5764 LED modes do not work as expected because of a hardware
    bug. This patch forces the LED mode to be in MAC LED mode.

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

    Matt Carlson
     
  • New CPMU devices contend with the GPHY for power management. The GPHY
    autopowerdown feature is enabled by default in the PHY and thus needs to
    be disabled after every PHY reset.

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

    Matt Carlson
     
  • This patch adds the LINK_SPEED mode to the list of CPMU modes that can
    cause the loopback tests to fail. These bugs are planned to be fixed in
    future revisions of the chip, so the patch qualifies the fixes as such.

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

    Matt Carlson
     
  • Newer devices contain bootcode in the chip's private ROM area. This
    bootcode is called selfboot. Selfboot can be patched in the device's
    NVRAM and the patches can have several formats. In one particular
    format, the checksum calculation needs to be slightly modified. This
    patch adjusts the NVRAM test code for that case, and add support for the
    missing formats.

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

    Matt Carlson
     
  • 5784 and 5764 devices lock up when the link speed is 10Mbps, the CPMU
    link speed mode is enabled, and the MAC clock is running at 1.5Mhz. The
    fix is to run the MAC clock at faster speeds.

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

    Matt Carlson