30 Jan, 2010

2 commits


29 Jan, 2010

6 commits


28 Jan, 2010

5 commits

  • There are many many ways one can capitalize "Lifebook B Series"...

    Signed-off-by: Jon Dodgson
    Signed-off-by: Dmitry Torokhov

    Jon Dodgson
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
    [SCSI] aic79xx: check for non-NULL scb in ahd_handle_nonpkt_busfree
    [SCSI] zfcp: Set hardware timeout as requested by BSG request.
    [SCSI] zfcp: Introduce bsg_timeout callback.
    [SCSI] scsi_transport_fc: Allow LLD to reset FC BSG timeout
    [SCSI] zfcp: add missing compat ptr conversion
    [SCSI] zfcp: Fix linebreak in hba trace
    [SCSI] zfcp: Issue zfcp_fc_wka_port_put after FC CT BSG request
    [SCSI] qla2xxx: Update version number to 8.03.01-k10.
    [SCSI] fc-transport: Use packed modifier for fc_bsg_request structure.
    [SCSI] qla2xxx: Perform fast mailbox read of flash regardless of size nor address alignment.
    [SCSI] qla2xxx: Correct FCP2 recovery handling.
    [SCSI] scsi_lib: Fix bug in completion of bidi commands
    [SCSI] mptsas: Fix issue with chain pools allocation on katmai
    [SCSI] aacraid: fix File System going into read-only mode
    [SCSI] lpfc: fix file permissions

    Linus Torvalds
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] fix single stepped svcs with TRACE_IRQFLAGS=y
    [S390] zcrypt: Do not remove coprocessor for error 8/72
    [S390] sclp_vt220: set initial terminal window size
    [S390] use set_current_state in sigsuspend
    [S390] irqflags: add missing types.h include
    [S390] dasd: fix possible NULL pointer errors

    Linus Torvalds
     
  • Having missed the ENOMEM return via i915_gem_fault(), there are probably
    other paths that I also missed. By not enabling NORETRY by default these
    paths can run the shrinker and take memory from the system (but not from
    our own inactive lists because our shrinker can not run whilst we hold
    the struct mutex) and this may allow the system to survive a little longer
    whilst our drivers consume all available memory.

    References:
    OOM killer unexpectedly called with kernel 2.6.32
    http://bugzilla.kernel.org/show_bug.cgi?id=14933

    v2: Pass gfp into page mapping.
    v3: Use new read_cache_page_gfp() instead of open-coding.

    Signed-off-by: Chris Wilson
    Cc: KOSAKI Motohiro
    Cc: Hugh Dickins
    Cc: Jesse Barnes
    Cc: Eric Anholt
    Cc: stable@kernel.org
    Signed-off-by: Linus Torvalds

    Chris Wilson
     
  • Unsurprisingly, Texas Instruments TSB43AB23 exhibits the same behaviour
    as TSB43AB22/A in dual buffer IR DMA mode: If descriptors are located
    at physical addresses above the 31 bit address range (2 GB), the
    controller will overwrite random memory. With luck, this merely
    prevents video reception. With only a little less luck, the machine
    crashes.

    We use the same workaround here as with TSB43AB22/A: Switch off the
    dual buffer capability flag and use packet-per-buffer IR DMA instead.
    Another possible workaround would be to limit the coherent DMA mask to
    31 bits.

    In Linux 2.6.33, this change serves effectively only as documentation
    since dual buffer mode is not used for any controller anymore. But
    somebody might want to re-enable it in the future to make use of
    features of dual buffer DMA that are not available in packet-per-buffer
    mode.

    In Linux 2.6.32 and older, this update is vital for anyone with this
    controller, more than 2 GB RAM, a 64 bit kernel, and FireWire video or
    audio applications.

    We have at least four reports:
    http://bugzilla.kernel.org/show_bug.cgi?id=13808
    http://marc.info/?l=linux1394-user&m=126154279004083
    https://bugzilla.redhat.com/show_bug.cgi?id=552142
    http://marc.info/?l=linux1394-user&m=126432246128386

    Reported-by: Paul Johnson
    Reported-by: Ronneil Camara
    Reported-by: G Zornetzer
    Reported-by: Mark Thompson
    Cc: stable@kernel.org
    Signed-off-by: Stefan Richter

    Stefan Richter
     

27 Jan, 2010

7 commits

  • Do not use an unchecked variable UBI_IOCMKVOL ioctl.

    Signed-off-by: Mika Westerberg
    Signed-off-by: Artem Bityutskiy
    Cc: stable@vger.kernel.org

    Mika Westerberg
     
  • In a case where the number of the input data is bigger than the
    modulus of the key, the coprocessor adapters will report an 8/72
    error. This case is not caught yet, thus the adapter will be taken
    offline. To prevent this, we return an -EINVAL instead.

    Signed-off-by: Felix Beck
    Signed-off-by: Martin Schwidefsky

    Felix Beck
     
  • When opening a SCLP VT220 terminal, the terminal window size is not
    initialized (defaults to zero).
    Since the SCLP VT220 terminal supports only 80x24, explicitly set
    the window size to prevent (n)curses applications from guessing
    the default setting.

    Signed-off-by: Hendrik Brueckner
    Signed-off-by: Martin Schwidefsky

    Hendrik Brueckner
     
  • Fix possible NULL pointer in DASD messages and correct discipline
    checking.

    Signed-off-by: Stefan Haberland
    Signed-off-by: Martin Schwidefsky

    Stefan Haberland
     
  • deactivate_locked_super() will be done by caller of fill_super, doing
    it there as well is b0rken.

    Signed-off-by: Al Viro

    Al Viro
     
  • Commit db5d247a "firewire: fix use of multiple AV/C devices, allow
    multiple FCP listeners" introduced a regression into 2.6.33-rc3:
    The core freed payloads of incoming requests to FCP_Request or
    FCP_Response before a userspace driver accessed them.

    We need to copy such payloads for each registered userspace client
    and free the copies according to the lifetime rules of non-FCP client
    request resources.

    (This could possibly be optimized by reference counts instead of
    copies.)

    The presently only kernelspace driver which listens for FCP requests,
    firedtv, was not affected because it already copies FCP frames into an
    own buffer before returning to firewire-core's FCP handler dispatcher.

    Signed-off-by: Stefan Richter

    Stefan Richter
     
  • Presently, firewire-core only checks whether descriptors that are to be
    added by userspace drivers to the local node's config ROM do not exceed
    a size of 256 quadlets. However, the sum of the bare minimum ROM plus
    all descriptors (from firewire-core, from firewire-net, from userspace)
    must not exceed 256 quadlets.

    Otherwise, the bounds of a statically allocated buffer will be
    overwritten. If the kernel survives that, firewire-core will
    subsequently be unable to parse the local node's config ROM.

    (Note, userspace drivers can add descriptors only through device files
    of local nodes. These are usually only accessible by root, unlike
    device files of remote nodes which may be accessible to lesser
    privileged users.)

    Therefore add a test which takes the actual present and required ROM
    size into account for all descriptors of kernelspace and userspace
    drivers.

    Cc: stable@kernel.org
    Signed-off-by: Stefan Richter

    Stefan Richter
     

26 Jan, 2010

11 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
    [WATCHDOG] sbc_fitpc2_wdt: fix I/O space access technique.
    [WATCHDOG] ixp2000: Fix build failure caused by missing include

    Linus Torvalds
     
  • * 'linux-next' of git://git.infradead.org/ubi-2.6:
    UBI: fix memory leak in update path
    UBI: add more checks to chdev open
    UBI: initialise update marker

    Linus Torvalds
     
  • * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    hwmon: (fschmd) Fix a memleak on multiple opens of /dev/watchdog
    hwmon: (asus_atk0110) Do not fail if MBIF is missing
    hwmon: (amc6821) Double unlock bug
    hwmon: (smsc47m1) Fix section mismatch

    Linus Torvalds
     
  • * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (95 commits)
    drm/radeon/kms: preface warning printk with driver name
    drm/radeon/kms: drop unnecessary printks.
    drm: fix regression in fb blank handling
    drm/radeon/kms: make hibernate work on IGPs
    drm/vmwgfx: Optimize memory footprint for DMA buffers.
    drm/ttm: Allow system memory as a busy placement.
    drm/ttm: Fix race condition in ttm_bo_delayed_delete (v3, final)
    drm/nv50: prevent switching off SOR when in use for DVI-over-DP
    drm/nv50: fail auxch transaction if reply count not what we expect
    drm/nouveau: fix failure path if userspace specifies no valid memtypes
    drm/nouveau: report LVDS as disconnected if lid closed
    drm/radeon/kms: fix legacy get_engine/memory clock
    drm/radeon/kms/atom: atom parser fixes
    drm/radeon/kms: clean up atombios pll code
    drm/radeon/kms: clean up pll struct
    drm/radeon/kms/atom: fix crtc lock ordering
    drm/radeon: r6xx/r7xx possible security issue, system ram access
    drm/radeon/kms: r600/r700 don't test ib if ib initialization fails
    drm/radeon/kms: Forbid creation of framebuffer with no valid GEM object
    drm/radeon/kms: r600 handle irq vector ring overflow
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (42 commits)
    virtio_net: Make delayed refill more reliable
    sfc: Use fixed-size buffers for MCDI NVRAM requests
    sfc: Add workspace for GMAC bug workaround to MCDI MAC_STATS buffer
    tcp_probe: avoid modulus operation and wrap fix
    qlge: Only free resources if they were allocated
    netns xfrm: deal with dst entries in netns
    sky2: revert config space change
    vlan: fix vlan_skb_recv()
    netns xfrm: fix "ip xfrm state|policy count" misreport
    sky2: Enable/disable WOL per hardware device
    net: Fix IPv6 GSO type checks in Intel ethernet drivers
    igb/igbvf: cleanup exception handling in tx_map_adv
    MAINTAINERS: Add Intel igbvf maintainer
    e1000/e1000e: don't use small hardware rx buffers
    fmvj18x_cs: add new id (Panasonic lan & modem card)
    be2net: swap only first 2 fields of mcc_wrb
    Please add support for Microsoft MN-120 PCMCIA network card
    be2net: fix bug in rx page posting
    wimax/i2400m: Add support for more i6x50 SKUs
    e1000e: enhance frame fragment detection
    ...

    Linus Torvalds
     
  • I have seen RX stalls on a machine that experienced a suspected
    OOM. After the stall, the RX buffer is empty on the guest side
    and there are exactly 16 entries available on the host side. As
    the number of entries is less than that required by a maximal
    skb, the host cannot proceed.

    The guest did not have a refill job scheduled.

    My diagnosis is that an OOM had occured, with the delayed refill
    job scheduled. The job was able to allocate at least one skb, but
    not enough to overcome the minimum required by the host to proceed.

    As the refill job would only reschedule itself if it failed completely
    to allocate any skbs, this would lead to an RX stall.

    The following patch removes this stall possibility by always
    rescheduling the refill job until the ring is totally refilled.

    Testing has shown that the RX stall no longer occurs whereas
    previously it would occur within a day.

    Signed-off-by: Herbert Xu
    Acked-by: Rusty Russell
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • The low-level MCDI code always uses 32-bit MMIO operations, and
    callers must pad input and output buffers to multiples of 4 bytes.
    The MCDI NVRAM functions are not doing this. Also, their buffers are
    declared as variable-length arrays with no explicit maximum length.

    Switch to a fixed buffer size based on the chunk size used by the
    MTD driver (which is a multiple of 4).

    Signed-off-by: Ben Hutchings
    Signed-off-by: David S. Miller

    Ben Hutchings
     
  • Due to a hardware bug in the SFC9000 family, the firmware must
    transfer raw GMAC statistics to host memory before aggregating them
    into the cooked (speed-independent) MAC statistics. Extend the stats
    buffer to support this.

    The length of the buffer is explicit in the MAC_STATS command, so this
    change is backward-compatible on both sides.

    Signed-off-by: Ben Hutchings
    Signed-off-by: David S. Miller

    Guido Barzini
     
  • Currently qlge tries to release regions even if they were not allocated.
    This causes messages like the following in the kernel log

    Trying to free nonexistent resource
    Trying to free nonexistent resource
    Trying to free nonexistent resource

    This patch fixes the goto logic in order to not release the resources
    if they were not allocated.

    Signed-off-by: Breno Leitao
    Signed-off-by: David S. Miller

    Breno Leitao
     
  • The mdelay function was used between I/O access commands, that causes peak
    in CPU usage. Fix it by substitution mdelay to msleep.

    Expand usage on fitPC2 compatible boards according to DMI identification.

    Signed-off-by: Denis Turischev
    Signed-off-by: Wim Van Sebroeck

    Denis Turischev
     
  • The aer_inject module hangs in aer_inject() when checking the device's
    error masks. The hang is due to a recursive use of the aer_inject lock.
    The aer_inject() routine grabs the lock while processing the error and then
    calls pci_read_config_dword to read the masks. The pci_read_config_dword
    routine is earlier overridden by pci_read_aer, which among other things,
    grabs the aer_inject lock.

    Fixed by moving the pci_read_config_dword calls to read the masks to before
    the lock is taken.

    Acked-by: Huang Ying
    Signed-off-by: Andrew Patterson
    Signed-off-by: Jesse Barnes

    Andrew Patterson
     

25 Jan, 2010

9 commits