16 Apr, 2010

6 commits


15 Apr, 2010

10 commits


14 Apr, 2010

17 commits

  • Nicolas has expressed a wish to be relieved from the maintenance
    of applesmc, so we simply switch maintainer with this patch.

    Signed-off-by: Henrik Rydberg
    Acked-by: Nicolas Boichat
    Signed-off-by: Jean Delvare

    Henrik Rydberg
     
  • Add the iMac9,1 and the MacBookPro2,2 temperature sensors to hwmon
    driver applesmc to fix kernel bug #14429:
    https://bugzilla.kernel.org/show_bug.cgi?id=14429

    Signed-off-by: Justin P. Mattock
    Acked-by: Nicolas Boichat
    Signed-off-by: Jean Delvare

    Justin P. Mattock
     
  • When any temperature sensor type is changed, the corresponding
    temperature value needs to be updated. The register caching mechanism
    may delay this update, so we want to invalidate the cache to force an
    immediate update.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Currently, if someone tries to set the thermal sensor type to an
    unsupported value, subsequent accesses to the chip may temporarily
    show the sensor in question as disabled. Use a temporary variable
    and only update the cached value on success, to prevent such
    confusion.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Temperature channels can be used in 2 different modes (thermistor and
    thermal diode) and we don't know which one, if any, is correct for
    every given board. So don't arbitrarily choose one. Instead, leave the
    temperature channels untouched. They can be configured from user-space
    if needed anyway.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • When CONFIG_REGULATOR isn't set, regulator_get_voltage() returns 0.
    Properly handle this case by not trusting the value.

    Reported-by: Jerome Oufella
    Signed-off-by: Jean Delvare
    Cc: Jonathan Cameron
    Acked-by: Mark Brown
    Cc: stable@kernel.org

    Jean Delvare
     
  • I discovered two issues.
    First the previous sht15_calc_temp() loop did not iterate through the
    temppoints array since the (data->supply_uV > temppoints[i - 1].vdd)
    test is always true in this direction.

    Also the two-points linear interpolation function was returning biased
    values due to a stray division by 1000 which shouldn't be there.

    [JD: Also change the default value for d1 from 0 to something saner.]

    Signed-off-by: Jerome Oufella
    Acked-by: Jonathan Cameron
    Signed-off-by: Jean Delvare
    Cc: stable@kernel.org

    Jerome Oufella
     
  • This is a partial revert of 4cd8b5e2a159 "lguest: use KVM hypercalls";
    we revert to using (just as questionable but more reliable) int $15 for
    hypercalls. I didn't revert the register mapping, so we still use the
    same calling convention as kvm.

    KVM in more recent incarnations stopped injecting a fault when a guest
    tried to use the VMCALL instruction from ring 1, so lguest under kvm
    fails to make hypercalls. It was nice to share code with our KVM
    cousins, but this was overreach.

    Signed-off-by: Rusty Russell
    Cc: Matias Zabaljauregui
    Cc: Avi Kivity

    Rusty Russell
     
  • It's only used by cmpxchg8b_emu (see db677ffa5f5a for the gory
    details), and fixing that to be paravirt aware would be more work than
    simply ignoring it (and AFAICT only help lguest). This makes lguest
    work on machines which have cmpxchg8b, for kernels compiled for older
    processors.

    (We can't emulate it properly: the popf which expects to restore interrupts
    does not trap).

    Signed-off-by: Rusty Russell
    Cc: Jeremy Fitzhardinge
    Cc: virtualization@lists.osdl.org

    Rusty Russell
     
  • This reverts commit 776943fd6f104a6e8457dc95a17282e69e963666 as it
    causes issues with ISDv4 E3 touchscreens:

    https://bugzilla.kernel.org/show_bug.cgi?id=15670

    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     
  • * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
    PM / Hibernate: user.c, fix SNAPSHOT_SET_SWAP_AREA handling

    Linus Torvalds
     
  • * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
    NFSv4: fix delegated locking
    NFS: Ensure that the WRITE and COMMIT RPC calls are always uninterruptible
    NFS: Fix a race with the new commit code
    NFS: Ensure that writeback_single_inode() calls write_inode() when syncing
    NFS: Fix the mode calculation in nfs_find_open_context
    NFSv4: Fall back to ordinary lookup if nfs4_atomic_open() returns EISDIR

    Linus Torvalds
     
  • Use a separate class for ceph sockets to prevent lockdep confusion.
    Because ceph sockets only get passed kernel pointers, there is no
    dependency from sk_lock -> mmap_sem. If we share the same class as other
    sockets, lockdep detects a circular dependency from

    mmap_sem (page fault) -> fs mutex -> sk_lock -> mmap_sem

    because dependencies are noted from both ceph and user contexts. Using
    a separate class prevents the sk_lock(ceph) -> mmap_sem dependency and
    makes lockdep happy.

    Signed-off-by: Sage Weil

    Sage Weil
     
  • We were missing space for the directory cap. The result was a BUG at
    fs/ceph/caps.c:2178.

    Signed-off-by: Yehuda Sadeh
    Signed-off-by: Sage Weil

    Yehuda Sadeh
     
  • This simplifies the calling convention, and fixes a bug where we queue a
    capsnap with a context other than i_head_snapc (the one that matches the
    dirty pages). The result was a BUG at fs/ceph/caps.c:2178 on writeback
    completion when a capsnap matching the writeback snapc could not be found.

    Signed-off-by: Sage Weil

    Sage Weil
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
    sparc64: Add some more commentary to __raw_local_irq_save()
    sparc64: Fix memory leak in pci_register_iommu_region().
    sparc64: Add kmemleak annotation to sun4v_build_virq()
    sparc64: Support kmemleak.
    sparc64: Add function graph tracer support.
    sparc64: Give a stack frame to the ftrace call sites.
    sparc64: Use a seperate counter for timer interrupts and NMI checks, like x86.
    sparc64: Remove profiling from some low-level bits.
    sparc64: Kill unnecessary static on local var in ftrace_call_replace().
    sparc64: Kill CONFIG_STACK_DEBUG code.
    sparc64: Add HAVE_FUNCTION_TRACE_MCOUNT_TEST and tidy up.
    sparc64: Adjust __raw_local_irq_save() to cooperate in NMIs.
    sparc64: Use kstack_valid() in die_if_kernel().

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (25 commits)
    smc91c92_cs: define multicast_table as unsigned char
    can: avoids a false warning
    e1000e: stop cleaning when we reach tx_ring->next_to_use
    igb: restrict WoL for 82576 ET2 Quad Port Server Adapter
    virtio_net: missing sg_init_table
    Revert "tcp: Set CHECKSUM_UNNECESSARY in tcp_init_nondata_skb"
    iwlwifi: need check for valid qos packet before free
    tcp: Set CHECKSUM_UNNECESSARY in tcp_init_nondata_skb
    udp: fix for unicast RX path optimization
    myri10ge: fix rx_pause in myri10ge_set_pauseparam
    net: corrected documentation for hardware time stamping
    stmmac: use resource_size()
    x.25 attempts to negotiate invalid throughput
    x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.
    bridge: Fix IGMP3 report parsing
    cnic: Fix crash during bnx2x MTU change.
    qlcnic: fix set mac addr
    r6040: fix r6040_multicast_list
    vhost-net: fix vq_memory_access_ok error checking
    ath9k: fix double calls to ath_radio_enable
    ...

    Linus Torvalds
     

13 Apr, 2010

7 commits