24 Feb, 2010

5 commits

  • I create wrong asm code but none test shows that this part of code is wrong.
    I am not convinces that were good idea to create asm optimized macros
    for caches. The reason is that there is not optimization with previous code
    that's why make sense to add old code and do some benchmarking which
    functions are faster.

    Signed-off-by: Michal Simek

    Michal Simek
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    net: bug fix for vlan + gro issue
    tc35815: Remove a wrong netif_wake_queue() call which triggers BUG_ON
    cdc_ether: new PID for Ericsson C3607w to the whitelist (resubmit)
    IPv6: better document max_addresses parameter
    MAINTAINERS: update mv643xx_eth maintenance status
    e1000: Fix DMA mapping error handling on RX
    iwlwifi: sanity check before counting number of tfds can be free
    iwlwifi: error checking for number of tfds in queue
    iwlwifi: set HT flags after channel in rxon

    Linus Torvalds
     
  • Traffic (tcp) doesnot start on a vlan interface when gro is enabled.
    Even the tcp handshake was not taking place.
    This is because, the eth_type_trans call before the netif_receive_skb
    in napi_gro_finish() resets the skb->dev to napi->dev from the previously
    set vlan netdev interface. This causes the ip_route_input to drop the
    incoming packet considering it as a packet coming from a martian source.

    I could repro this on 2.6.32.7 (stable) and 2.6.33-rc7.
    With this fix, the traffic starts and the test runs fine on both vlan
    and non-vlan interfaces.

    CC: Herbert Xu
    CC: Patrick McHardy
    Signed-off-by: Ajit Khaparde
    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Ajit Khaparde
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
    ACPI: Be in TS_POLLING state during mwait based C-state entry
    ACPI: Fix regression where _PPC is not read at boot even when ignore_ppc=0
    acer-wmi: Respect current backlight level when loading

    Linus Torvalds
     
  • * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm/vmwgfx: Fix queries if no dma buffer thrashing is occuring.
    drm/nv50: fix vram ptes on IGPs to point at stolen system memory
    drm/nv50: fix instmem binding on IGPs to point at stolen system memory
    drm/nv50: improve vram page table construction
    drm/nv50: more efficient clearing of gpu page table entries
    drm/nv50: make nv50_mem_vm_{bind,unbind} operate only on vram
    drm/nouveau: Fix up pre-nv17 analog load detection.

    Linus Torvalds
     

23 Feb, 2010

33 commits

  • David S. Miller
     
  • The netif_wake_queue() is called correctly (i.e. only on !txfull
    condition) from txdone routine. So Unconditional call to the
    netif_wake_queue() here is wrong. This might cause calling of
    start_xmit routine on txfull state and trigger BUG_ON.

    This bug does not happen when NAPI disabled. After txdone there
    must be at least one free tx slot. But with NAPI, this is not
    true anymore and the BUG_ON can hits on heavy load.

    In this driver NAPI was enabled on 2.6.33-rc1 so this is
    regression from 2.6.32 kernel.

    Reported-by: Ralf Roesch
    Signed-off-by: Atsushi Nemoto
    Signed-off-by: David S. Miller

    Atsushi Nemoto
     
  • This patch adds a new vid/pid to the cdc_ether whitelist.

    Device added:
    - Ericsson Mobile Broadband variant C3607w

    Signed-off-by: Torgny Johansson

    --
    To unsubscribe from this list: send the line "unsubscribe netdev" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Signed-off-by: David S. Miller

    Torgny Johansson
     
  • Andrew Morton wrote:
    >> >From ip-sysctl.txt file in kernel documentation I can see following description
    >> for max_addresses:
    >> max_addresses - INTEGER
    >> Number of maximum addresses per interface. 0 disables limitation.
    >> It is recommended not set too large value (or 0) because it would
    >> be too easy way to crash kernel to allow to create too much of
    >> autoconfigured addresses.
    ^^^^^^^^^^^^^^

    >> If this parameter applies only for auto-configured IP addressed, please state
    >> it more clearly in docs or rename the parameter to show that it refers to
    >> auto-configuration.

    It did mention autoconfigured in the text, but the below makes it more obvious.

    More clearly document IPv6 max_addresses parameter.

    Signed-off-by: Brian Haley
    Signed-off-by: David S. Miller

    Brian Haley
     
  • I am no longer with Marvell.

    Signed-off-by: Lennert Buytenhek
    Signed-off-by: David S. Miller

    Lennert Buytenhek
     
  • Check for error return from pci_map_single/pci_map_page and clean up.

    With this and the previous patch the driver was able to handle a significant
    percentage of errors (I set the fault injection rate to 10% and could still
    download large files at a reasonable speed).

    Signed-off-by: Anton Blanchard
    Signed-off-by: Jeff Kirsher
    Signed-off-by: David S. Miller

    Anton Blanchard
     
  • Intercept query commands and apply relocations to their guest pointers.

    Signed-off-by: Thomas Hellstrom
    Signed-off-by: Dave Airlie

    Thomas Hellstrom
     
  • * 'nouveau/for-airlied' of ../drm-nouveau-next:
    drm/nv50: fix vram ptes on IGPs to point at stolen system memory
    drm/nv50: fix instmem binding on IGPs to point at stolen system memory
    drm/nv50: improve vram page table construction
    drm/nv50: more efficient clearing of gpu page table entries
    drm/nv50: make nv50_mem_vm_{bind,unbind} operate only on vram
    drm/nouveau: Fix up pre-nv17 analog load detection.

    Dave Airlie
     
  • Len Brown
     
  • Len Brown
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    MIPS: BCM47xx: Fix 128MB RAM support
    MIPS: Highmem: Fix build error

    Linus Torvalds
     
  • …/frob/linux-2.6-roland

    * 'parisc/tracehook' of git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-roland:
    Revert "parisc: HAVE_ARCH_TRACEHOOK"

    Linus Torvalds
     
  • 803bf5ec259941936262d10ecc84511b76a20921 ("fs/exec.c: restrict initial
    stack space expansion to rlimit") attempts to limit the initial stack to
    20*PAGE_SIZE. Unfortunately, in attempting ensure the stack is not
    reduced in size, we ended up not changing the stack at all.

    This size reduction check is not necessary as the expand_stack call does
    this already.

    This caused a regression in UML resulting in most guest processes being
    killed.

    Signed-off-by: Michael Neuling
    Reviewed-by: KOSAKI Motohiro
    Acked-by: WANG Cong
    Cc: Anton Blanchard
    Cc: Oleg Nesterov
    Cc: James Morris
    Cc: Serge Hallyn
    Cc: Benjamin Herrenschmidt
    Cc: Jouni Malinen
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Neuling
     
  • Commit 4410f3910947dcea8672280b3adecd53cec4e85e ("fbdev: add support for
    handoff from firmware to hw framebuffers") didn't add fb_destroy
    operation to efifb. Fix it and change aperture_size to match size
    passed to request_mem_region.

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

    Signed-off-by: Marcin Slusarz
    Reported-by: Alex Zhavnerchik
    Tested-by: Alex Zhavnerchik
    Acked-by: Peter Jones
    Cc: Huang Ying
    Cc: Dave Airlie
    Cc: "Rafael J. Wysocki"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marcin Slusarz
     
  • geode-mfgpt: restore previous behavior for selecting IRQ

    The MFGPT IRQ used to be, in order of decreasing priority,
    * IRQ supplied by the user as a boot-time parameter,
    * IRQ previously set by the BIOS or another driver,
    * default IRQ given at compile time.

    Return to this behavior, which got broken when splitting the
    MFGPT/clocksource driver for 2.6.33-rc1.

    Signed-off-by: Jens Rottmann
    Acked-by: Andres Salomon
    Cc: Jordan Crouse
    Cc: Ingo Molnar
    Cc: john stultz
    Acked-by: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jens Rottmann
     
  • This is retry of reverted 859ddf09743a8cc680af33f7259ccd0fd36bfe9d
    ("idr: fix a critical misallocation bug") which contained two bugs.

    * pa[idp->layers] should be cleared even if it's not used by
    sub_alloc() because it's used by mark idr_mark_full().

    * The original condition check also assigned pa[l] to p which the new
    code didn't do thus leaving p pointing at the wrong layer.

    Both problems have been fixed and the idr code has received good amount
    testing using userland testing setup where simple bitmap allocator is
    run parallel to verify the result of idr allocation.

    The bug this patch fixes is caused by sub_alloc() optimization path
    bypassing out-of-room condition check and restarting allocation loop
    with starting value higher than maximum allowed value. For detailed
    description, please read commit message of 859ddf09.

    Signed-off-by: Tejun Heo
    Based-on-patch-from: Eric Paris
    Reported-by: Eric Paris
    Tested-by: Stefan Lippers-Hollmann
    Tested-by: Serge Hallyn
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tejun Heo
     
  • find_task_by_vpid() is not safe without rcu_read_lock(). 2.6.33-rc7 got
    RCU protection for sys_setpriority() but missed it for sys_getpriority().

    Signed-off-by: Tetsuo Handa
    Cc: Oleg Nesterov
    Cc: "Paul E. McKenney"
    Acked-by: Serge Hallyn
    Acked-by: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tetsuo Handa
     
  • Presently the oom-killer is memcg aware and it finds the worst process
    from processes under memcg(s) in oom. Then, it kills victim's child
    first.

    It may kill a child in another cgroup and may not be any help for
    recovery. And it will break the assumption users have.

    This patch fixes it.

    Signed-off-by: KAMEZAWA Hiroyuki
    Reviewed-by: Minchan Kim
    Cc: Balbir Singh
    Reviewed-by: Daisuke Nishimura
    Acked-by: David Rientjes
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • Signed-off-by: Ben Skeggs

    Ben Skeggs
     
  • This also modifies the unused PRAMIN PT entries to be all zeroes, can't
    really recall why I used 9/0 initially, just that it didn't work for
    some reason. It was likely masking a bug elsewhere that's since been
    fixed.

    Signed-off-by: Ben Skeggs

    Ben Skeggs
     
  • This commit changes nouveau to construct PTEs which look very much like
    the ones the binary driver creates.

    I presume that filling multiple PTEs identically with length flags and
    the physical address of the start of a block of VRAM is a hint to the
    memory controller that it need not perform additional page table lookups
    for that range of addresses.

    Signed-off-by: Ben Skeggs

    Ben Skeggs
     
  • Signed-off-by: Ben Skeggs

    Ben Skeggs
     
  • GART is handled elsewhere, no reason to have the code for it here too.

    Signed-off-by: Ben Skeggs

    Ben Skeggs
     
  • Signed-off-by: Francisco Jerez
    Signed-off-by: Ben Skeggs

    Francisco Jerez
     
  • Ignoring the last page when ddr size is 128M. Cached accesses to last page
    is causing the processor to prefetch using address above 128M stepping out
    of the DDR address space.

    Signed-off-by: Hauke Mehrtens
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/981/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • arch/mips/mm/highmem.c: In function 'kmap_init':
    arch/mips/mm/highmem.c:130: error: 'init_mm' undeclared (first use in this function)
    arch/mips/mm/highmem.c:130: error: (Each undeclared identifier is reported only once
    arch/mips/mm/highmem.c:130: error: for each function it appears in.)

    Signed-off-by: Yoichi Yuasa
    Cc: linux-mips
    Patchwork: http://patchwork.linux-mips.org/patch/980/
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • This reverts commit 81bf550d9cdfe0325eb1504b06c9f6511b442c1a.

    HAVE_ARCH_TRACEHOOK requires defining the user_regset interfaces,
    including task_user_regset_view(). parisc doesn't do that yet,
    so don't lie about it.

    Signed-off-by: Roland McGrath

    Roland McGrath
     
  • ACPI deep C-state entry had a long standing bug/missing feature, wherein we were sending
    resched IPIs when an idle CPU is in mwait based deep C-state. Only mwait based C1 was using
    the write to the monitored address to wake up mwait'ing CPU.

    This patch changes the code to retain TS_POLLING bit if we are entering an mwait based
    deep C-state.

    The patch has been verified to reduce the number of resched IPIs in general and also
    improves the performance/power on workloads with low system utilization (i.e., when mwait based
    deep C-states are being used).

    Fixes "netperf ~50% regression with 2.6.33-rc1, bisect to 1b9508f"
    http://marc.info/?l=linux-kernel&m=126441481427331&w=4

    Reported-by: Lin Ming
    Tested-by: Alex Shi
    Signed-off-by: Venkatesh Pallipadi
    Signed-off-by: Len Brown

    Pallipadi, Venkatesh
     
  • …/git/tip/linux-2.6-tip

    * 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    perf probe: Init struct probe_point and set counter correctly
    hw-breakpoint: Keep track of dr7 local enable bits
    hw-breakpoints: Accept breakpoints on NULL address
    perf_events: Fix FORK events

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: usbtouchscreen - extend coordinate range for Generaltouch devices
    Input: polldev can cause crash in case when polling disabled

    Linus Torvalds
     
  • Commit 84b79f8d2882b0a84330c04839ed4d3cefd2ff77 (drm/i915: Fix crash
    while aborting hibernation) attempted to fix a regression introduced
    by commit cbda12d77ea590082edb6d30bd342a67ebc459e0 (drm/i915:
    implement new pm ops for i915), but it went too far trying to split
    the freeze/suspend and resume/thaw parts of the code. As a result,
    it introduced another regression, which only is visible on some systems.

    Fix the problem by merging i915_drm_suspend() with
    i915_drm_freeze() and moving some code from i915_resume()
    into i915_drm_thaw(), so that intel_opregion_free() and
    intel_opregion_init() are also executed in the freeze and thaw code
    paths, respectively.

    Signed-off-by: Rafael J. Wysocki
    Reported-and-tested-by: Pedro Ribeiro
    Tested-by: Tino Keitel
    Acked-by: Eric Anholt
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • Check the frame control for ieee80211_is_data_qos() is true before
    counting the number of tfds can be free, the tfds_in_queue only
    increment when ieee80211_is_data_qos() is true before transmit; so it
    should only decrement if the type match.

    Remove ieee80211_is_data_qos check for frame_ctrl in tx_resp to avoid
    invalid information pass from uCode.

    Signed-off-by: Stanislaw Gruszka
    Signed-off-by: Wey-Yi Guy
    Signed-off-by: Reinette Chatre
    CC: stable@kernel.org
    Signed-off-by: John W. Linville

    Stanislaw Gruszka
     
  • When receive reply_tx and ready to decrement the count for number of
    tfds in queue, do error checking to prevent error condition and
    tfds_in_queue become negative number.

    Signed-off-by: Wey-Yi Guy
    Signed-off-by: Reinette Chatre
    CC: stable@kernel.org
    Signed-off-by: John W. Linville

    Wey-Yi Guy
     

22 Feb, 2010

2 commits