23 Aug, 2010

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/anholt/drm-intel: (58 commits)
    drm/i915,intel_agp: Add support for Sandybridge D0
    drm/i915: fix render pipe control notify on sandybridge
    agp/intel: set 40-bit dma mask on Sandybridge
    drm/i915: Remove the conflicting BUG_ON()
    drm/i915/suspend: s/IS_IRONLAKE/HAS_PCH_SPLIT/
    drm/i915/suspend: Flush register writes before busy-waiting.
    i915: disable DAC on Ironlake also when doing CRT load detection.
    drm/i915: wait for actual vblank, not just 20ms
    drm/i915: make sure eDP PLL is enabled at the right time
    drm/i915: fix VGA plane disable for Ironlake+
    drm/i915: eDP mode set sequence corrections
    drm/i915: add panel reset workaround
    drm/i915: Enable RC6 on Ironlake.
    drm/i915/sdvo: Only set is_lvds if we have a valid fixed mode.
    drm/i915: Set up a render context on Ironlake
    drm/i915 invalidate indirect state pointers at end of ring exec
    drm/i915: Wake-up wait_request() from elapsed hang-check (v2)
    drm/i915: Apply i830 errata for cursor alignment
    drm/i915: Only update i845/i865 CURBASE when disabled (v2)
    drm/i915: FBC is updated within set_base() so remove second call in mode_set()
    ...

    Linus Torvalds
     

22 Aug, 2010

9 commits


21 Aug, 2010

7 commits

  • Apparently, the check for a 6-byte ID string introduced by commit
    426c457a3216fac74e3d44dd39729b0689f4c7ab ("mtd: nand: extend NAND flash
    detection to new MLC chips") is NOT sufficient to determine whether or
    not a Samsung chip uses their new MLC detection scheme or the old,
    standard scheme. This adds a condition to check cell type.

    Signed-off-by: Tilman Sauerbeck
    Signed-off-by: Brian Norris
    Signed-off-by: David Woodhouse
    Cc: stable@kernel.org

    Tilman Sauerbeck
     
  • gcc-4.0.2:

    drivers/scsi/qla4xxx/ql4_os.c: In function 'qla4_8xxx_error_recovery':
    drivers/scsi/qla4xxx/ql4_glbl.h:135: sorry, unimplemented: inlining failed in call to 'qla4_8xxx_set_drv_active': function body not available
    drivers/scsi/qla4xxx/ql4_os.c:2377: sorry, unimplemented: called from here
    drivers/scsi/qla4xxx/ql4_glbl.h:135: sorry, unimplemented: inlining failed in call to 'qla4_8xxx_set_drv_active': function body not available
    drivers/scsi/qla4xxx/ql4_os.c:2393: sorry, unimplemented: called from here

    Cc: Ravi Anand
    Cc: Vikas Chaudhary
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • There's some merge problem between sdhic core and sdhci-s3c host. After
    mutex is changed to spinlock. It needs to use use spin lock functions and
    use the correct card detection function.

    Signed-off-by: Kyungmin Park
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kyungmin Park
     
  • Some SDHCI controllers like s5pc110 don't have an HISPD bit in the HOSTCTL
    register.

    Signed-off-by: Kyungmin Park
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kyungmin Park
     
  • s5pc110 (aka s5pv210) uses the same SDHCI IP.

    Signed-off-by: Kyungmin Park
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kyungmin Park
     
  • Revert commit 7721fea3d0fd93fb4d000eb737b444369358d6d3 ("hwmon:
    f71882fg: add support for the Fintek F71808E").

    Hans said:

    : A second review after I've received a data sheet for this device from
    : Fintek has turned up a few bugs.
    :
    : Unfortunately Giel (nor I) have time to fix this in time for the 2.6.36
    : cycle. Therefor I would like to see this patch reverted as not having any
    : support for the hwmon function of this superio chip is better then having
    : unreliable support.

    Cc: Giel van Schijndel
    Cc: Jean Delvare
    Cc: Hans de Goede
    Cc: Jonathan Cameron
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Screen is completely corrupted since 2.6.34. Bisection revealed that it's
    caused by commit 6175ddf06b61720 ("x86: Clean up mem*io functions.").

    H. Peter Anvin explained that memcpy_toio() does not copy data in 32bit
    chunks anymore on x86.

    Signed-off-by: Ondrej Zary
    Cc: Brian Gerst
    Cc: H. Peter Anvin
    Cc: Petr Vandrovec
    Cc: Jean Delvare
    Cc: [2.6.34.x, 2.6.35.x]
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ondrej Zary
     

19 Aug, 2010

11 commits

  • Commit c7b28e25cb9beb943aead770ff14551b55fa8c79 ("mtd: nand: refactor BB
    marker detection") caused a regression in detection of factory-set bad
    block markers, especially for certain small-page NAND. This fix removes
    some unneeded constraints on using NAND_SMALL_BADBLOCK_POS, making the
    detection code more correct.

    This regression can be seen, for example, in Hynix HY27US081G1M and
    similar.

    Signed-off-by: Brian Norris
    Tested-by: Michael Guntsche
    Signed-off-by: David Woodhouse

    Brian Norris
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
    USB HID: Add ID for eGalax Multitouch used in JooJoo tablet
    HID: hiddev: fix memory corruption due to invalid intfdata
    HID: hiddev: protect against disconnect/NULL-dereference race
    HID: picolcd: correct ordering of framebuffer freeing
    HID: picolcd: testing the wrong variable

    Linus Torvalds
     
  • We need to make sure the eDP PLL is enabled before the pipes or planes,
    so do it as part of the DP prepare mode set function.

    Signed-off-by: Jesse Barnes

    Jesse Barnes
     
  • We need to use I/O port instructions to access VGA registers on
    Ironlake+, and it doesn't hurt on other platforms, so switch the VGA
    plane disable function over to using them. Move it to init time as well
    while we're at it, no need to repeatedly disable the VGA plane with
    every mode set and DPMS event.

    Signed-off-by: Jesse Barnes

    Jesse Barnes
     
  • We should disable the panel first when shutting down an eDP link. And
    when turning one on, the panel needs to be enabled before link training
    or eDP I/O won't be enabled.

    Signed-off-by: Jesse Barnes

    Jesse Barnes
     
  • Ironlake requires that we clear the reset panel bit during power
    sequences and restore it afterwards. Uncondtionally add code to do that
    since it should be harmless on SNB+.

    Signed-off-by: Jesse Barnes

    Jesse Barnes
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    fs: brlock vfsmount_lock
    fs: scale files_lock
    lglock: introduce special lglock and brlock spin locks
    tty: fix fu_list abuse
    fs: cleanup files_lock locking
    fs: remove extra lookup in __lookup_hash
    fs: fs_struct rwlock to spinlock
    apparmor: use task path helpers
    fs: dentry allocation consolidation
    fs: fix do_lookup false negative
    mbcache: Limit the maximum number of cache entries
    hostfs ->follow_link() braino
    hostfs: dumb (and usually harmless) tpyo - strncpy instead of strlcpy
    remove SWRITE* I/O types
    kill BH_Ordered flag
    vfs: update ctime when changing the file's permission by setfacl
    cramfs: only unlock new inodes
    fix reiserfs_evict_inode end_writeback second call

    Linus Torvalds
     
  • This fixes a build breakage introduced by commit 4c2ef25fe0b8 ("mmc: fix
    all hangs related to mmc/sd card insert/removal during suspend/resume")

    Cc: David Brownell
    Cc: Alan Stern
    Cc: linux-mmc@vger.kernel.org
    Cc: Andrew Morton
    Signed-off-by: Uwe Kleine-König
    Acked-by: Kukjin Kim
    Acked-by: Maxim Levitsky
    Acked-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Uwe Kleine-König
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
    m68knommu: include sched.h in ColdFire/SPI driver
    m68knommu: formatting of pointers in printk()
    m68knommu: arch/m68k/include/asm/ide.h fix for nommu

    Linus Torvalds
     
  • * 'for-linus' of git://neil.brown.name/md:
    md raid-1/10 Fix bio_rw bit manipulations again
    md: provide appropriate return value for spare_active functions.
    md: Notify sysfs when RAID1/5/10 disk is In_sync.
    Update recovery_offset even when external metadata is used.

    Linus Torvalds
     
  • * 'merge-devicetree' of git://git.secretlab.ca/git/linux-2.6:
    spi.h: missing kernel-doc notation, please fix
    of: fix missing headers for of_address_to_resource() in MTD and SysACE drivers
    of: Fix missing includes
    ata: update for of_device to platform_device replacement
    microblaze: Fix of: eliminate of_device->node and dev_archdata->{of,prom}_node
    microblaze: Fix of/address: Merge all of the bus translation code
    booting-without-of: Remove nonexistent chapters from TOC, fix numbering

    Linus Torvalds
     

18 Aug, 2010

12 commits

  • tty: fix fu_list abuse

    tty code abuses fu_list, which causes a bug in remount,ro handling.

    If a tty device node is opened on a filesystem, then the last link to the inode
    removed, the filesystem will be allowed to be remounted readonly. This is
    because fs_may_remount_ro does not find the 0 link tty inode on the file sb
    list (because the tty code incorrectly removed it to use for its own purpose).
    This can result in a filesystem with errors after it is marked "clean".

    Taking idea from Christoph's initial patch, allocate a tty private struct
    at file->private_data and put our required list fields in there, linking
    file and tty. This makes tty nodes behave the same way as other device nodes
    and avoid meddling with the vfs, and avoids this bug.

    The error handling is not trivial in the tty code, so for this bugfix, I take
    the simple approach of using __GFP_NOFAIL and don't worry about memory errors.
    This is not a problem because our allocator doesn't fail small allocs as a rule
    anyway. So proper error handling is left as an exercise for tty hackers.

    [ Arguably filesystem's device inode would ideally be divorced from the
    driver's pseudo inode when it is opened, but in practice it's not clear whether
    that will ever be worth implementing. ]

    Cc: linux-kernel@vger.kernel.org
    Cc: Christoph Hellwig
    Cc: Alan Cox
    Cc: Greg Kroah-Hartman
    Signed-off-by: Nick Piggin
    Signed-off-by: Al Viro

    Nick Piggin
     
  • fs: cleanup files_lock locking

    Lock tty_files with a new spinlock, tty_files_lock; provide helpers to
    manipulate the per-sb files list; unexport the files_lock spinlock.

    Cc: linux-kernel@vger.kernel.org
    Cc: Christoph Hellwig
    Cc: Alan Cox
    Acked-by: Andi Kleen
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Nick Piggin
    Signed-off-by: Al Viro

    Nick Piggin
     
  • fs: fs_struct rwlock to spinlock

    struct fs_struct.lock is an rwlock with the read-side used to protect root and
    pwd members while taking references to them. Taking a reference to a path
    typically requires just 2 atomic ops, so the critical section is very small.
    Parallel read-side operations would have cacheline contention on the lock, the
    dentry, and the vfsmount cachelines, so the rwlock is unlikely to ever give a
    real parallelism increase.

    Replace it with a spinlock to avoid one or two atomic operations in typical
    path lookup fastpath.

    Signed-off-by: Nick Piggin
    Signed-off-by: Al Viro

    Nick Piggin
     
  • Test on a PXA310 platform with Samsung K9F2G08X0B NAND flash,
    with tCH=5 and clk is 156MHz, ns2cycle(5, 156000000) returns -1.

    ns2cycle returns negtive value will break NDTR0_tXX macros.

    After checking the commit log, I found the problem is introduced by
    commit 5b0d4d7c8a67c5ba3d35e6ceb0c5530cc6846db7
    "[MTD] [NAND] pxa3xx: convert from ns to clock ticks more accurately"

    To get num of clock cycles, we use below equation:
    num of clock cycles = time (ns) / one clock cycle (ns) + 1
    We need to add 1 cycle here because integer division will truncate the result.
    It is possible the developers set the Min values in SPEC for timing settings.
    Thus the truncate may cause problem, and it is safe to add an extra cycle here.

    The various fields in NDTR{01} are in units of clock ticks minus one,
    thus we should subtract 1 cycle then.

    Thus the correct equation should be:
    num of clock cycles = time (ns) / one clock cycle (ns) + 1 - 1
    = time (ns) / one clock cycle (ns)

    Signed-off-by: Axel Lin
    Signed-off-by: Lei Wen
    Acked-by: Eric Miao
    Signed-off-by: David Woodhouse
    Cc: stable@kernel.org

    Axel Lin
     
  • commit 7b6d91daee5cac6402186ff224c3af39d79f4a0e changed the behaviour
    of a few variables in raid1 and raid10 from flags to bit-sets, but
    left them as type 'bool' so they did not work.

    Change them (back) to unsigned long.
    (historical note: see 1ef04fefe2241087d9db7e9615c3f11b516e36cf)

    Signed-off-by: NeilBrown
    Reported-by: Jiri Slaby and many others

    NeilBrown
     
  • Using the coldfire qspi driver, I get the following error:

    drivers/spi/coldfire_qspi.c: In function 'mcfqspi_irq_handler':
    drivers/spi/coldfire_qspi.c:166: error: 'TASK_NORMAL' undeclared (first use in this function)
    drivers/spi/coldfire_qspi.c:166: error: (Each undeclared identifier is reported only once

    It is solved by adding the following include to coldfire_sqpi.c:

    #include

    Fix suggested by Jate Sujjavanich

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • md_check_recovery expects ->spare_active to return 'true' if any
    spares were activated, but none of them do, so the consequent change
    in 'degraded' is not notified through sysfs.

    So count the number of spares activated, subtract it from 'degraded'
    just once, and return it.

    Reported-by: Adrian Drzewiecki
    Signed-off-by: NeilBrown

    NeilBrown
     
  • When RAID1 is done syncing disks, it'll update the state
    of synced rdevs to In_sync. But it neglected to notify
    sysfs that the attribute changed. So any programs that
    are waiting for an rdev's state to change will not be
    woken.

    (raid5/raid10 added by neilb)

    Signed-off-by: Adrian Drzewiecki
    Signed-off-by: NeilBrown

    Adrian Drzewiecki
     
  • The update of ->recovery_offset in sync_sbs is appropriate even then external
    metadata is in use. However sync_sbs is only called when native
    metadata is used.

    So move that update in to the top of md_update_sb (which is the only
    caller of sync_sbs) before the test on ->external.

    This moves the update out of ->write_lock protection, but those fields
    only need ->reconfig_mutex protection which they still have.

    Also move the test on ->persistent up to where ->external is set as
    for metadata update purposes they are the same.

    Clear MD_CHANGE_DEVS and MD_CHANGE_CLEAN as they can only be confusing
    if ->external is set or ->persistent isn't.

    Finally move the update of ->utime down as it is only relevent (like
    the ->events update) for native metadata.

    Signed-off-by: NeilBrown
    Reported-by: "Kwolek, Adam"

    NeilBrown
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb:
    vt,console,kdb: preserve console_blanked while in kdb
    vt: fix regression warnings from KMS merge
    arm,kgdb: fix GDB_MAX_REGS no longer used
    kgdb: add missing __percpu markup in arch/x86/kernel/kgdb.c
    kdb: fix compile error without CONFIG_KALLSYMS

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86:
    platform/x86: move rfkill for Dell Mini 1012 to compal-laptop
    thinkpad-acpi: Add KEY_CAMERA (Fn-F6) for Lenovo keyboards
    thinkpad-acpi: add support for model-specific keymaps
    thinkpad-acpi: lock down size of hotkey keymap
    thinkpad-acpi: untangle ACPI/vendor backlight selection
    thinkpad-acpi: find ACPI video device by synthetic HID
    intel_ips: potential null dereference
    drivers/platform/x86: Adjust confusing if indentation
    x86: intel_ips: do not use PCI resources before pci_enable_device()

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    net: Fix a memmove bug in dev_gro_receive()
    net sched: fix some kernel memory leaks
    netfilter: {ip,ip6,arp}_tables: avoid lockdep false positive
    Revert "netlink: netlink_recvmsg() fix"
    ipv6: remove sysctl jiffies conversion on gc_elasticity and min_adv_mss
    xfrm: Use GFP_ATOMIC in xfrm_compile_policy
    ath5k: disable ASPM L0s for all cards
    ath9k_htc: load proper firmware for device ID 7015
    wl1251: fix trigger scan timeout usage
    ath9k_htc: Fix disconnect issue in HT40 mode.
    ath9k_htc: fix panic on packet injection using airbase-ng tool.
    ipw2100: register pm_qos request before registering pci driver

    Linus Torvalds