Skip to contentSkip to conversation

Linux 2.6.32.12

DISCUSSION Greg KH 1 participant 2 messages Apr 26, 2010

Subsystems (68)
lore
Share & tools
lore

Greg KH

author
#0 lore raw

I'm announcing the release of the 2.6.32.12 kernel.

All users of the 2.6.32 kernel series should upgrade.

Many thanks to maximilian attems for all of his hard work in digging out patches from the various vendor kernel trees for this release. It is much appreciated.

The updated 2.6.32.y git tree can be found at:

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.32.y.git
and can be browsed at the normal kernel.org git web browser:
        http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.32.y.git;a=summary

thanks,

greg k-h

------------

 Documentation/i2c/busses/i2c-i801           |    3 
 Documentation/laptops/thinkpad-acpi.txt     |   55 +--
 Makefile                                    |    2 
 arch/arm/boot/compressed/head.S             |    2 
 arch/ia64/kvm/kvm-ia64.c                    |    9 
 arch/sh/include/asm/elf.h                   |    6 
 arch/sh/kernel/smp.c                        |    1 
 arch/um/sys-x86_64/Makefile                 |    3 
 arch/x86/Kconfig.cpu                        |    2 
 arch/x86/include/asm/cpufeature.h           |    1 
 arch/x86/include/asm/kvm_emulate.h          |   15 
 arch/x86/include/asm/kvm_host.h             |   11 
 arch/x86/include/asm/msr-index.h            |    1 
 arch/x86/include/asm/rwsem.h                |   81 +++--
 arch/x86/include/asm/smp.h                  |    9 
 arch/x86/kernel/amd_iommu.c                 |    4 
 arch/x86/kernel/amd_iommu_init.c            |    6 
 arch/x86/kernel/aperture_64.c               |   15 
 arch/x86/kernel/apic/apic.c                 |    2 
 arch/x86/kernel/cpu/amd.c                   |   53 ---
 arch/x86/kernel/cpu/intel_cacheinfo.c       |  250 +++++++++------
 arch/x86/kernel/cpu/perf_event.c            |  104 ++++++
 arch/x86/kernel/crash.c                     |    6 
 arch/x86/kernel/hpet.c                      |   25 +
 arch/x86/kernel/pci-gart_64.c               |    3 
 arch/x86/kvm/emulate.c                      |  192 +++++++++---
 arch/x86/kvm/mmu.c                          |   28 -
 arch/x86/kvm/mmu.h                          |    6 
 arch/x86/kvm/paging_tmpl.h                  |   11 
 arch/x86/kvm/svm.c                          |   34 +-
 arch/x86/kvm/vmx.c                          |   43 ++
 arch/x86/kvm/x86.c                          |  366 +++++++++++++++++------
 arch/x86/lib/Makefile                       |    3 
 arch/x86/lib/cache-smp.c                    |   19 +
 arch/x86/lib/rwsem_64.S                     |   81 +++++
 arch/x86/pci/irq.c                          |    2 
 arch/x86/power/hibernate_asm_32.S           |   15 
 drivers/acpi/acpica/exprep.c                |   17 +
 drivers/acpi/ec.c                           |   35 --
 drivers/ata/ahci.c                          |    6 
 drivers/ata/ata_piix.c                      |    8 
 drivers/ata/libata-core.c                   |    3 
 drivers/ata/pata_ali.c                      |    4 
 drivers/ata/pata_via.c                      |    1 
 drivers/char/agp/hp-agp.c                   |    3 
 drivers/char/agp/intel-agp.c                |   15 
 drivers/char/raw.c                          |    1 
 drivers/char/tpm/tpm_tis.c                  |    1 
 drivers/char/tty_io.c                       |    2 
 drivers/gpu/drm/drm_crtc_helper.c           |    1 
 drivers/gpu/drm/drm_edid.c                  |   11 
 drivers/gpu/drm/drm_fops.c                  |   16 -
 drivers/gpu/drm/i915/intel_lvds.c           |    8 
 drivers/gpu/drm/radeon/r300.c               |    5 
 drivers/gpu/drm/radeon/radeon_connectors.c  |    7 
 drivers/gpu/drm/radeon/radeon_cp.c          |   10 
 drivers/gpu/drm/radeon/radeon_cs.c          |    3 
 drivers/gpu/drm/radeon/radeon_encoders.c    |    8 
 drivers/gpu/drm/radeon/radeon_legacy_tv.c   |   29 +
 drivers/gpu/drm/radeon/rs600.c              |    2 
 drivers/gpu/vga/vgaarb.c                    |   27 +
 drivers/hid/hid-gyration.c                  |    5 
 drivers/hwmon/lis3lv02d.c                   |   24 +
 drivers/hwmon/lis3lv02d.h                   |    1 
 drivers/hwmon/sht15.c                       |   13 
 drivers/i2c/busses/Kconfig                  |    5 
 drivers/i2c/busses/i2c-i801.c               |    5 
 drivers/infiniband/ulp/ipoib/ipoib_cm.c     |    2 
 drivers/infiniband/ulp/iser/iser_memory.c   |  122 +++----
 drivers/input/tablet/wacom_sys.c            |   10 
 drivers/md/dm.c                             |   21 +
 drivers/md/linear.c                         |   12 
 drivers/md/multipath.c                      |   20 -
 drivers/md/raid0.c                          |   13 
 drivers/md/raid10.c                         |   28 +
 drivers/message/fusion/mptctl.c             |    5 
 drivers/message/fusion/mptscsih.c           |   86 +++++
 drivers/net/e1000e/netdev.c                 |    2 
 drivers/net/igb/e1000_82575.c               |    1 
 drivers/net/igb/e1000_hw.h                  |    1 
 drivers/net/igb/igb_main.c                  |    1 
 drivers/net/r8169.c                         |   29 +
 drivers/net/wireless/ath/ar9170/usb.c       |    2 
 drivers/net/wireless/b43/Kconfig            |    6 
 drivers/net/wireless/b43/Makefile           |    2 
 drivers/net/wireless/b43/b43.h              |   28 -
 drivers/net/wireless/b43/dma.c              |    2 
 drivers/net/wireless/b43/main.c             |   10 
 drivers/net/wireless/b43/pio.c              |   79 ++---
 drivers/net/wireless/b43/pio.h              |   40 --
 drivers/net/wireless/b43/xmit.c             |    2 
 drivers/net/wireless/iwlwifi/iwl-4965.c     |   11 
 drivers/net/wireless/iwlwifi/iwl-5000.c     |    2 
 drivers/net/wireless/iwlwifi/iwl-scan.c     |   27 -
 drivers/net/wireless/iwlwifi/iwl-tx.c       |    1 
 drivers/net/wireless/iwlwifi/iwl3945-base.c |    2 
 drivers/pci/pci.c                           |   24 +
 drivers/pci/pcie/aer/aer_inject.c           |   20 +
 drivers/platform/x86/Kconfig                |   10 
 drivers/platform/x86/eeepc-laptop.c         |  110 +++++++
 drivers/platform/x86/thinkpad_acpi.c        |  439 +++++++++++++++-------------
 drivers/scsi/libiscsi.c                     |    5 
 drivers/scsi/scsi_ioctl.c                   |    3 
 drivers/scsi/scsi_transport_fc.c            |    5 
 drivers/staging/comedi/drivers/usbdux.c     |   20 -
 drivers/usb/class/cdc-acm.c                 |   43 +-
 drivers/usb/class/cdc-acm.h                 |    1 
 drivers/video/backlight/mbp_nvidia_bl.c     |   45 ++
 drivers/watchdog/hpwdt.c                    |    2 
 drivers/watchdog/iTCO_wdt.c                 |   99 +++++-
 fs/9p/vfs_file.c                            |    2 
 fs/block_dev.c                              |    3 
 fs/cifs/cifssmb.c                           |   19 +
 fs/ecryptfs/inode.c                         |  108 +++---
 fs/ecryptfs/super.c                         |    1 
 fs/ext3/super.c                             |    2 
 fs/ext3/xattr.c                             |    7 
 fs/ext4/ext4.h                              |    6 
 fs/ext4/extents.c                           |    2 
 fs/ext4/inode.c                             |   13 
 fs/fat/namei_vfat.c                         |    6 
 fs/fs-writeback.c                           |   17 +
 fs/nfs/client.c                             |    3 
 fs/nfs/dir.c                                |    2 
 fs/nfs/nfs4proc.c                           |    4 
 fs/nfsd/nfs4xdr.c                           |   12 
 fs/ocfs2/acl.c                              |   77 ++++
 fs/ocfs2/suballoc.c                         |   13 
 fs/proc/base.c                              |    5 
 fs/quota/dquot.c                            |   12 
 fs/xfs/linux-2.6/xfs_acl.c                  |    3 
 fs/xfs/linux-2.6/xfs_aops.c                 |  118 +++++--
 fs/xfs/linux-2.6/xfs_iops.c                 |    6 
 fs/xfs/linux-2.6/xfs_super.c                |   60 +++
 fs/xfs/linux-2.6/xfs_sync.c                 |  194 +++++-------
 fs/xfs/linux-2.6/xfs_sync.h                 |    3 
 fs/xfs/quota/xfs_qm_bhv.c                   |    2 
 fs/xfs/quota/xfs_qm_syscalls.c              |    2 
 fs/xfs/xfs_alloc.c                          |   52 +--
 fs/xfs/xfs_dfrag.c                          |  106 +++++-
 fs/xfs/xfs_fsops.c                          |    2 
 fs/xfs/xfs_iget.c                           |   31 +
 fs/xfs/xfs_inode.c                          |   17 -
 fs/xfs/xfs_iomap.c                          |    9 
 fs/xfs/xfs_log_recover.c                    |   24 -
 fs/xfs/xfs_mount.c                          |    2 
 fs/xfs/xfs_mount.h                          |    1 
 fs/xfs/xfs_rw.h                             |    7 
 fs/xfs/xfs_trans.c                          |    7 
 fs/xfs/xfs_trans.h                          |    2 
 fs/xfs/xfs_vnodeops.c                       |  179 ++++-------
 fs/xfs/xfs_vnodeops.h                       |    1 
 include/drm/drm_pciids.h                    |    2 
 include/linux/freezer.h                     |    7 
 include/linux/fs.h                          |    1 
 include/linux/kvm_host.h                    |    7 
 include/linux/module.h                      |    2 
 include/linux/nfs_fs_sb.h                   |    1 
 include/linux/pci.h                         |    5 
 include/linux/pci_ids.h                     |    3 
 include/linux/resource.h                    |    8 
 include/linux/writeback.h                   |    1 
 include/scsi/scsi_bsg_fc.h                  |    2 
 kernel/cgroup_freezer.c                     |    9 
 kernel/irq/manage.c                         |   10 
 kernel/lockdep.c                            |    6 
 kernel/module.c                             |    2 
 kernel/power/process.c                      |    2 
 kernel/sched.c                              |   19 -
 mm/readahead.c                              |    2 
 net/ipv4/tcp_input.c                        |    6 
 net/mac80211/scan.c                         |   18 -
 net/mac80211/tx.c                           |    6 
 net/mac80211/util.c                         |   20 -
 net/sunrpc/svc_xprt.c                       |   13 
 net/sunrpc/svcauth_unix.c                   |   53 +--
 net/sunrpc/svcsock.c                        |    1 
 sound/pci/hda/hda_intel.c                   |    8 
 sound/pci/hda/patch_analog.c                |    8 
 sound/pci/hda/patch_realtek.c               |   11 
 sound/pci/mixart/mixart.c                   |   24 -
 sound/usb/usbmidi.c                         |   24 +
 virt/kvm/kvm_main.c                         |   13 
 183 files changed, 3036 insertions(+), 1538 deletions(-)

Adam Jackson (1):
drm/edid/quirks: Envision EN2028

Al Viro (1):
fix NFS4 handling of mountpoint stat

Alan Cox (1):
pata_ali: Fix regression with old devices

Alan Jenkins (2):
eeepc-laptop: disable cpu speed control on EeePC 701
eeepc-laptop: disable wireless hotplug for 1005PE

Alex Deucher (5):
drm/radeon: add new RS880 pci id
drm/radeon/kms: fix pal tv-out support on legacy IGP chips drm/radeon/kms: fix washed out image on legacy tv dac drm/radeon/kms: disable the tv encoder when tv/cv is not in use drm/radeon/kms: fix tv dac conflict resolver

Alexander Duyck (1):
igb: add support for 82576NS SerDes adapter

Alexey Dobriyan (1):
thinkpad-acpi: convert to seq_file

Alexey Starikovskiy (2):
ACPI: EC: Allow multibyte access to EC
ACPI: EC: Limit burst to 64 bits

Andre Przywara (1):
KVM: allow bit 10 to be cleared in MSR_IA32_MC4_CTL

Andreas Herrmann (1):
x86, amd: Get multi-node CPU info from NodeId MSR instead of PCI config space

Andrew Patterson (1):
PCI: fix nested spinlock hang in aer_inject

Andrew Perepechko (1):
quota: Fix possible dq_flags corruption

Andrew Stubbs (1):
sh: Fix FDPIC binary loader

Andy Poling (1):
xfs: Wrapped journal record corruption on read at recovery

Anton Blanchard (2):

      raw: fsync method is now required
      sched: Fix sched_getaffinity()

Avi Kivity (3):
x86-64, rwsem: Avoid store forwarding hazard in __downgrade_write
KVM: Don't spam kernel log when injecting exceptions due to bad cr writes
KVM: VMX: Save/restore rflags.vm correctly in real mode

Ben Skeggs (1):
drm/edid: allow certain bogus edids to hit a fixup path rather than fail

Bernd Porr (2):
Staging: comedi: fix usbdux timeout bug
Staging: comedi: usbdux.c: fix locking up of the driver when the comedi ringbuffer runs empty

Bjorn Helgaas (1):
agp/hp: fixup hp agp after ACPI changes

Borislav Petkov (7):
x86, lib: Add wbinvd smp helpers
x86, cacheinfo: Fix disabling of L3 cache indices
intel-agp: Switch to wbinvd_on_all_cpus
x86, cacheinfo: Add cache index disable sysfs attrs only to L3 caches x86, cacheinfo: Calculate L3 indices
x86, cacheinfo: Remove NUMA dependency, fix for AMD Fam10h rev D1 x86, cacheinfo: Enable L3 CID only on AMD

Chris Wilson (1):
drm: Return ENODEV if the inode mapping changes

Chris Wright (2):
x86/amd-iommu: enable iommu before attaching devices Revert "x86: disable IOMMUs on kernel crash"

Christian Pulvermacher (1):
ecryptfs: fix error code for missing xattrs in lower fs

Christoph Hellwig (8):
xfs: simplify inode teardown
xfs: fix mmap_sem/iolock inversion in xfs_free_eofblocks
xfs: I/O completion handlers must use NOFS allocations
xfs: check for not fully initialized inodes in xfs_ireclaim
xfs: fix timestamp handling in xfs_setattr
xfs: quota limit statvfs available blocks
xfs: remove invalid barrier optimization from xfs_fsync
xfs: fix locking for inode cache radix tree tag updates

Corentin Chary (3):
eeepc-laptop: dmi blacklist to disable pci hotplug code
eeepc-laptop: add hotplug_disable parameter
eeepc-laptop: disable wireless hotplug for 1201N

Damian Lukowski (1):
tcp: fix ICMP-RTO war

Dan Carpenter (2):
iwlwifi: range checking issue
ALSA: mixart: range checking proc file

Daniel T Chen (2):
ALSA: hda: Fix 0 dB offset for Lenovo Thinkpad models using AD1981
ALSA: hda: Set Front Mic to input vref 50% for Lenovo 3000 Y410

Dave Airlie (2):
drm/radeon/kms: don't print error on -ERESTARTSYS. drm/radeon/kms: add FireMV 2400 PCI ID.

Dave Chinner (9):
xfs: Don't flush stale inodes
xfs: Ensure we force all busy extents in range to disk
xfs: reclaim inodes under a write lock
xfs: Avoid inodes in reclaim when flushing from inode cache
xfs: reclaim all inodes by background tree walks
xfs: fix stale inode flush avoidance
xfs: xfs_swap_extents needs to handle dynamic fork offsets
xfs: don't hold onto reserved blocks on remount, ro
xfs: Non-blocking inode locking in IO completion

Eduardo Habkost (2):
KVM: VMX: Use macros instead of hex value on cr0 initialization
KVM: SVM: Reset cr0 properly on vcpu reset

Eli Cohen (1):
IPoIB: Fix TX queue lockup with mixed UD/CM traffic

Eric Sandeen (5):
ext3: Don't update the superblock in ext3_statfs()
ext3: journal all modifications in ext3_xattr_set_handle
fs-writeback: Add helper function to start writeback if idle
ext4: flush delalloc blocks when space is low
ext4: fix async i/o writes beyond 4GB to a sparse file

Eugene Teo (1):
vgaarb: fix "target=default" passing

Evan McClain (1):
backlight: mbp_nvidia_bl - add five more MacBook variants

Gleb Natapov (5):
KVM: x86 emulator: Add Virtual-8086 mode of emulation
KVM: x86 emulator: fix memory access during x86 emulation
KVM: x86 emulator: Check IOPL level during io instruction emulation
KVM: x86 emulator: Fix popf emulation
KVM: Fix segment descriptor loading

Greg Kroah-Hartman (1):

      Linux 2.6.32.12

H. Peter Anvin (1):
x86-64, rwsem: 64-bit xadd rwsem implementation

Harish Zunjarrao (1):
SCSI: fc-transport: Use packed modifier for fc_bsg_request structure.

Henrique de Moraes Holschuh (10):
thinkpad-acpi: fix some version quirks
thinkpad-acpi: issue backlight class events
thinkpad-acpi: silence bogus complain during rmmod
thinkpad-acpi: adopt input device
thinkpad-acpi: expose module parameters
thinkpad-acpi: log temperatures on termal alarm (v2)
thinkpad-acpi: use input_set_capability
thinkpad-acpi: sync input device EV_SW initial state
thinkpad-acpi: log initial state of rfkill switches
thinkpad-acpi: lock down video output state access

J. Bruce Fields (3):
nfsd4: don't try to map gid's in generic rpc code Revert "sunrpc: fix peername failed on closed listener" Revert "sunrpc: move the close processing after do recvfrom method"

Jan Kiszka (2):
KVM: VMX: Update instruction length on intercepted BP
KVM: x86: Fix TSS size check for 16-bit tasks

Jason Gunthorpe (1):
xfs: Fix error return for fallocate() on XFS

Jean Delvare (1):
hwmon: (sht15) Properly handle the case CONFIG_REGULATOR=n

Jeff Mahoney (1):
ecryptfs: fix use with tmpfs by removing d_drop from ecryptfs_destroy_inode

Jerome Glisse (1):
drm/radeon/kms: fix rs600 tlb flush

Jerome Oufella (1):
hwmon: (sht15) Fix sht15_calc_temp interpolation function

Jiri Kosina (1):
HID: fix oops in gyration_event()

Jiri Slaby (1):
resource: move kernel function inside __KERNEL__

Joerg Roedel (2):
x86/amd-iommu: Use helper function to destroy domain x86/gart: Disable GART explicitly before initialization

Joerg Schirottke (1):
ALSA: hda - add a quirk for Clevo M570U laptop

Johannes Berg (2):
mac80211: move netdev queue enabling to correct spot
mac80211: fix deferred hardware scan requests

John Wright (1):
sched: Fix a race between ttwu() and migrate_task()

[email protected] (1):
pata_via: Add VIA VX900 support

KOSAKI Motohiro (2):
sched: sched_getaffinity(): Allow less than NR_CPUS length
sched: Use proper type in sched_getaffinity()

Kashyap, Desai (2):
mptctl : Remove printk which floods unnecessary messages to var/log/message
mptspi: Fix for incorrect data underrun errata

Kiyoshi Ueda (1):
dm mpath: fix stall when requeueing io

Larry Finger (2):
b43: Remove reset after fatal DMA error
b43: Allow PIO mode to be selected at module load

Linus Torvalds (5):
x86-32: clean up rwsem inline asm statements
x86: clean up rwsem type system
x86-64: support native xadd rwsem implementation
x86: Fix breakage of UML from the changes in the rwsem system
b43: fall back gracefully to PIO mode after fatal DMA errors

Marcelo Tosatti (1):
KVM: x86: disable paravirt mmu reporting

Mark Fasheh (1):
ocfs2: set i_mode on disk during acl operations

Mathieu Desnoyers (3):
modules: fix incorrect percpu usage
lockdep: fix incorrect percpu usage
module: fix __module_ref_addr()

Matt Domsch (1):
tpm: autoload tpm_tis based on system PnP IDs

Matt Fleming (1):
sh: Enable the mmu in start_secondary()

Matt Helsley (1):
Freezer: Fix buggy resume test for tasks frozen with cgroup freezer

Michael Buesch (1):
b43: Optimize PIO scratchbuffer usage

Michel Dänzer (1):
drm/radeon: R300 AD only has one quad pipe.

Mike Christie (3):
libiscsi: Fix recovery slowdown regression fc class: fail fast bsg requests
SCSI: add scsi target reset support to scsi ioctl

Mike Travis (2):
vgaarb: Fix VGA arbiter to accept PCI domains other than 0
pci: Update pci_set_vga_state() to call arch functions

Neil Brown (1):
nfsd: ensure sockets are closed on error

Neil Horman (2):
r8169: offical fix for CVE-2009-4537 (overlength frame DMAs)
r8169: clean up my printk uglyness

NeilBrown (1):
md: deal with merge_bvec_fn in component devices better.

Nikolaus Schulz (1):
fat: fix buffer overflow in vfat_create_shortname()

Oleg Nesterov (2):
oom: fix the unsafe usage of badness() in proc_oom_score()
tty: release_one_tty() forgets to put pids

Oliver Neukum (2):
USB: cdc-acm: Update to new autopm API
USB: cdc-acm: Fix stupid NULL pointer in resume()

Or Gerlitz (1):
IB/iser: Rewrite SG handling for RDMA logic

Pallipadi, Venkatesh (1):
x86, hpet: Erratum workaround for read after write of HPET comparator

Paul Mundt (1):
PCI: kill off pci_register_set_vga_state() symbol export.

Peter Zijlstra (1):
perf_events, x86: Implement Intel Westmere/Nehalem-EX support

Ping Cheng (1):
Input: wacom - switch mode upon system resume

Rabin Vincent (1):

      ARM: 6031/1: fix Thumb-2 decompressor

Reinette Chatre (1):
iwlwifi: fix scan race

Sachin Prabhu (1):
9p: Skip check for mandatory locks when unlocking

Seth Heasley (7):
WATCHDOG: iTCO_wdt: TCO Watchdog patch for additional Intel Cougar Point DeviceIDs x86/PCI: irq and pci_ids patch for Intel Cougar Point DeviceIDs
ALSA: hda_intel: ALSA HD Audio patch for Intel Cougar Point DeviceIDs
ALSA: hda - enable snoop for Intel Cougar Point
ata_piix: IDE Mode SATA patch for Intel Cougar Point DeviceIDs
ahci: AHCI and RAID mode SATA patch for Intel Cougar Point DeviceIDs
i2c-i801: Add Intel Cougar Point device IDs

Shaohua Li (1):
x86-32, resume: do a global tlb flush in S4 resume

Sheng Yang (1):
KVM: VMX: Disable unrestricted guest when EPT disabled

Sridhar Samudrala (1):
KVM: Increase NR_IOBUS_DEVS limit to 200

Stanislaw Gruszka (1):
iwlwifi: fix nfreed--

Stefan Bader (1):
drm/i915: Add no_lvds entry for the Clientron U800

Steve French (1):
CIFS: initialize nbytes at the beginning of CIFSSMBWrite()

Suresh Jayaraman (1):
cifs: Fix a kernel BUG with remote OS/2 server (try #3)

Suresh Siddha (1):
x86: Fix double enable_IR_x2apic() call on SMP kernel on !SMP boards

Takashi Iwai (2):
ALSA: usb - Fix Oops after usb-midi disconnection
ALSA: hda - Add position_fix quirk for Biostar mobo

Takuya Yoshikawa (2):
KVM: SVM: Fix memory leaks that happen when svm_create_vcpu() fails
KVM: fix the handling of dirty bitmaps to avoid overflows

Tao Ma (1):
ocfs2: Change bg_chain check for ocfs2_validate_gd_parent.

Tejun Heo (1):
libata: disable NCQ on Crucial C300 SSD

Terry Loftin (1):

      e1000e: stop cleaning when we reach tx_ring->next_to_use

Thomas Gleixner (2):
genirq: Force MSI irq handlers to run with interrupts disabled
x86: hpet: Make WARN_ON understandable

Thomas Mingarelli (1):
WATCHDOG: hpwdt - fix lower timeout limit

Trond Myklebust (2):
NFSv4: Fall back to ordinary lookup if nfs4_atomic_open() returns EISDIR
NFSv4: fix delegated locking

Tyler Hicks (1):
eCryptfs: Decrypt symlink target for stat size

Valentin Longchamp (1):
setup correct int pipe type in ar9170_usb_exec_cmd

Wey-Yi Guy (4):
iwlwifi: counting number of tfds can be free for 4965
mac80211: tear down all agg queues when restart/reconfig hw
iwlwifi: need check for valid qos packet before free
iwlwifi: clear all tx queues when firmware ready

Wu Fengguang (1):
readahead: fix NULL filp dereference

Xiao Guangrong (1):
KVM: MMU: fix kvm_mmu_zap_page() and its calling path

Youquan Song (1):
PCIe AER: prevent AER injection if hardware masks error reporting

Zhao Yakui (1):
drm: remove the EDID blob stored in the EDID property when it is disconnected

Éric Piel (1):
lis3: fix show rate for 8 bits chips

author
#1 lore raw
Documentation/i2c/busses/i2c-i801 +2 -1
index 81c0c59..e1bb5b2 100644
@@ -15,7 +15,8 @@ Supported adapters:
   * Intel 82801I (ICH9)
   * Intel EP80579 (Tolapai)
   * Intel 82801JI (ICH10)
-  * Intel PCH
+  * Intel 3400/5 Series (PCH)
+  * Intel Cougar Point (PCH)
    Datasheets: Publicly available at the Intel website
 
 Authors: 
Documentation/laptops/thinkpad-acpi.txt +16 -39

77 lines not on this page · raw message

Makefile +1 -1
index 78611d9..573578f 100644
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 32
-EXTRAVERSION = .11
+EXTRAVERSION = .12
 NAME = Man-Eating Seals of Antiquity
 
 # *DOCUMENTATION*
arch/arm/boot/compressed/head.S +1 -1
index 3cb8fa3..61b3a33 100644
@@ -164,7 +164,7 @@ not_angel:
 		adr	r0, LC0
  ARM(		ldmia	r0, {r1, r2, r3, r4, r5, r6, r11, ip, sp})
  THUMB(		ldmia	r0, {r1, r2, r3, r4, r5, r6, r11, ip}	)
- THUMB(		ldr	sp, [r0, #28]				)
+ THUMB(		ldr	sp, [r0, #32]				)
 		subs	r0, r0, r1		@ calculate the delta offset
 
 						@ if delta is zero, we are
arch/ia64/kvm/kvm-ia64.c +5 -4
index 0ad09f0..2eb6365 100644
@@ -1797,7 +1797,8 @@ static int kvm_ia64_sync_dirty_log(struct kvm *kvm,
 {
 	struct kvm_memory_slot *memslot;
 	int r, i;
-	long n, base;
+	long base;
+	unsigned long n;
 	unsigned long *dirty_bitmap = (unsigned long *)(kvm->arch.vm_base +
 			offsetof(struct kvm_vm_data, kvm_mem_dirty_log));
 
@@ -1810,7 +1811,7 @@ static int kvm_ia64_sync_dirty_log(struct kvm *kvm,
 	if (!memslot->dirty_bitmap)
 		goto out;
 
-	n = ALIGN(memslot->npages, BITS_PER_LONG) / 8;
+	n = kvm_dirty_bitmap_bytes(memslot);
 	base = memslot->base_gfn / BITS_PER_LONG;
 
 	for (i = 0; i < n/sizeof(long); ++i) {
@@ -1826,7 +1827,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm,
 		struct kvm_dirty_log *log)
 {
 	int r;
-	int n;
+	unsigned long n;
 	struct kvm_memory_slot *memslot;
 	int is_dirty = 0;
 
@@ -1844,7 +1845,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm,
 	if (is_dirty) {
 		kvm_flush_remote_tlbs(kvm);
 		memslot = &kvm->memslots[log->slot];
-		n = ALIGN(memslot->npages, BITS_PER_LONG) / 8;
+		n = kvm_dirty_bitmap_bytes(memslot);
 		memset(memslot->dirty_bitmap, 0, n);
 	}
 	r = 0;
arch/sh/include/asm/elf.h +4 -2
index ccb1d93..bf6939c 100644
@@ -212,7 +212,9 @@ extern void __kernel_vsyscall;
 
 #define VSYSCALL_AUX_ENT					\
 	if (vdso_enabled)					\
-		NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE);
+		NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE);	\
+	else							\
+		NEW_AUX_ENT(AT_IGNORE, 0);
 #else
 #define VSYSCALL_AUX_ENT
 #endif /* CONFIG_VSYSCALL */
@@ -220,7 +222,7 @@ extern void __kernel_vsyscall;
 #ifdef CONFIG_SH_FPU
 #define FPU_AUX_ENT	NEW_AUX_ENT(AT_FPUCW, FPSCR_INIT)
 #else
-#define FPU_AUX_ENT
+#define FPU_AUX_ENT	NEW_AUX_ENT(AT_IGNORE, 0)
 #endif
 
 extern int l1i_cache_shape, l1d_cache_shape, l2_cache_shape;
arch/sh/kernel/smp.c +1 -0
index 160db10..71a9c3c 100644
@@ -69,6 +69,7 @@ asmlinkage void __cpuinit start_secondary(void)
 	unsigned int cpu;
 	struct mm_struct *mm = &init_mm;
 
+	enable_mmu();
 	atomic_inc(&mm->mm_count);
 	atomic_inc(&mm->mm_users);
 	current->active_mm = mm;
arch/um/sys-x86_64/Makefile +2 -1
index 2201e9c..c1ea9eb 100644
@@ -8,7 +8,8 @@ obj-y = bug.o bugs.o delay.o fault.o ldt.o mem.o ptrace.o ptrace_user.o \
 	setjmp.o signal.o stub.o stub_segv.o syscalls.o syscall_table.o \
 	sysrq.o ksyms.o tls.o
 
-subarch-obj-y = lib/csum-partial_64.o lib/memcpy_64.o lib/thunk_64.o
+subarch-obj-y = lib/csum-partial_64.o lib/memcpy_64.o lib/thunk_64.o \
+		lib/rwsem_64.o
 subarch-obj-$(CONFIG_MODULES) += kernel/module.o
 
 ldt-y = ../sys-i386/ldt.o
arch/x86/Kconfig.cpu +1 -1
index f2824fb..0e56610 100644
@@ -323,7 +323,7 @@ config X86_L1_CACHE_SHIFT
 
 config X86_XADD
 	def_bool y
-	depends on X86_32 && !M386
+	depends on X86_64 || !M386
 
 config X86_PPRO_FENCE
 	bool "PentiumPro memory ordering errata workaround"
arch/x86/include/asm/cpufeature.h +1 -0
index 9cfc88b..2cbf0a2 100644
@@ -153,6 +153,7 @@
 #define X86_FEATURE_SSE5	(6*32+11) /* SSE-5 */
 #define X86_FEATURE_SKINIT	(6*32+12) /* SKINIT/STGI instructions */
 #define X86_FEATURE_WDT		(6*32+13) /* Watchdog timer */
+#define X86_FEATURE_NODEID_MSR	(6*32+19) /* NodeId MSR */
 
 /*
  * Auxiliary flags: Linux defined - For features scattered in various
arch/x86/include/asm/kvm_emulate.h +13 -2
index 7c18e12..5ed59ec 100644
@@ -54,13 +54,23 @@ struct x86_emulate_ctxt;
 struct x86_emulate_ops {
 	/*
 	 * read_std: Read bytes of standard (non-emulated/special) memory.
-	 *           Used for instruction fetch, stack operations, and others.
+	 *           Used for descriptor reading.
 	 *  @addr:  [IN ] Linear address from which to read.
 	 *  @val:   [OUT] Value read from memory, zero-extended to 'u_long'.
 	 *  @bytes: [IN ] Number of bytes to read from memory.
 	 */
 	int (*read_std)(unsigned long addr, void *val,
-			unsigned int bytes, struct kvm_vcpu *vcpu);
+			unsigned int bytes, struct kvm_vcpu *vcpu, u32 *error);
+
+	/*
+	 * fetch: Read bytes of standard (non-emulated/special) memory.
+	 *        Used for instruction fetch.
+	 *  @addr:  [IN ] Linear address from which to read.
+	 *  @val:   [OUT] Value read from memory, zero-extended to 'u_long'.
+	 *  @bytes: [IN ] Number of bytes to read from memory.
+	 */
+	int (*fetch)(unsigned long addr, void *val,
+			unsigned int bytes, struct kvm_vcpu *vcpu, u32 *error);
 
 	/*
 	 * read_emulated: Read bytes from emulated/special memory area.
@@ -168,6 +178,7 @@ struct x86_emulate_ctxt {
 
 /* Execution mode, passed to the emulator. */
 #define X86EMUL_MODE_REAL     0	/* Real mode.             */
+#define X86EMUL_MODE_VM86     1	/* Virtual 8086 mode.     */
 #define X86EMUL_MODE_PROT16   2	/* 16-bit protected mode. */
 #define X86EMUL_MODE_PROT32   4	/* 32-bit protected mode. */
 #define X86EMUL_MODE_PROT64   8	/* 64-bit (long) mode.    */
arch/x86/include/asm/kvm_host.h +8 -3
index d759a1f..6ead43e 100644
@@ -256,7 +256,8 @@ struct kvm_mmu {
 	void (*new_cr3)(struct kvm_vcpu *vcpu);
 	int (*page_fault)(struct kvm_vcpu *vcpu, gva_t gva, u32 err);
 	void (*free)(struct kvm_vcpu *vcpu);
-	gpa_t (*gva_to_gpa)(struct kvm_vcpu *vcpu, gva_t gva);
+	gpa_t (*gva_to_gpa)(struct kvm_vcpu *vcpu, gva_t gva, u32 access,
+			    u32 *error);
 	void (*prefetch_page)(struct kvm_vcpu *vcpu,
 			      struct kvm_mmu_page *page);
 	int (*sync_page)(struct kvm_vcpu *vcpu,
@@ -601,8 +602,7 @@ int emulator_set_dr(struct x86_emulate_ctxt *ctxt, int dr,
 		    unsigned long value);
 
 void kvm_get_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg);
-int kvm_load_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector,
-				int type_bits, int seg);
+int kvm_load_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector, int seg);
 
 int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason);
 
@@ -645,6 +645,10 @@ void __kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu);
 int kvm_mmu_load(struct kvm_vcpu *vcpu);
 void kvm_mmu_unload(struct kvm_vcpu *vcpu);
 void kvm_mmu_sync_roots(struct kvm_vcpu *vcpu);
+gpa_t kvm_mmu_gva_to_gpa_read(struct kvm_vcpu *vcpu, gva_t gva, u32 *error);
+gpa_t kvm_mmu_gva_to_gpa_fetch(struct kvm_vcpu *vcpu, gva_t gva, u32 *error);
+gpa_t kvm_mmu_gva_to_gpa_write(struct kvm_vcpu *vcpu, gva_t gva, u32 *error);
+gpa_t kvm_mmu_gva_to_gpa_system(struct kvm_vcpu *vcpu, gva_t gva, u32 *error);
 
 int kvm_emulate_hypercall(struct kvm_vcpu *vcpu);
 
@@ -658,6 +662,7 @@ void kvm_disable_tdp(void);
 
 int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3);
 int complete_pio(struct kvm_vcpu *vcpu);
+bool kvm_check_iopl(struct kvm_vcpu *vcpu);
 
 struct kvm_memory_slot *gfn_to_memslot_unaliased(struct kvm *kvm, gfn_t gfn);
 
arch/x86/include/asm/msr-index.h +1 -0
index 8cb8489..7825b0c 100644
@@ -125,6 +125,7 @@
 #define FAM10H_MMIO_CONF_BUSRANGE_SHIFT 2
 #define FAM10H_MMIO_CONF_BASE_MASK	0xfffffff
 #define FAM10H_MMIO_CONF_BASE_SHIFT	20
+#define MSR_FAM10H_NODE_ID		0xc001100c
 
 /* K8 MSRs */
 #define MSR_K8_TOP_MEM1			0xc001001a
arch/x86/include/asm/rwsem.h +49 -32

175 lines not on this page · raw message

arch/x86/include/asm/smp.h +9 -0
index 1e79678..4cfc908 100644
@@ -135,6 +135,8 @@ int native_cpu_disable(void);
 void native_cpu_die(unsigned int cpu);
 void native_play_dead(void);
 void play_dead_common(void);
+void wbinvd_on_cpu(int cpu);
+int wbinvd_on_all_cpus(void);
 
 void native_send_call_func_ipi(const struct cpumask *mask);
 void native_send_call_func_single_ipi(int cpu);
@@ -147,6 +149,13 @@ static inline int num_booting_cpus(void)
 {
 	return cpumask_weight(cpu_callout_mask);
 }
+#else /* !CONFIG_SMP */
+#define wbinvd_on_cpu(cpu)     wbinvd()
+static inline int wbinvd_on_all_cpus(void)
+{
+	wbinvd();
+	return 0;
+}
 #endif /* CONFIG_SMP */
 
 extern unsigned disabled_cpus __cpuinitdata;
arch/x86/kernel/amd_iommu.c +1 -3
index 23fc9fe..c0ebc63 100644
@@ -2239,9 +2239,7 @@ static void amd_iommu_domain_destroy(struct iommu_domain *dom)
 
 	free_pagetable(domain);
 
-	domain_id_free(domain->id);
-
-	kfree(domain);
+	protection_domain_free(domain);
 
 	dom->priv = NULL;
 }
arch/x86/kernel/amd_iommu_init.c +4 -2
index 362ab88..3925adf 100644
@@ -1284,6 +1284,8 @@ int __init amd_iommu_init(void)
 	if (ret)
 		goto free;
 
+	enable_iommus();
+
 	if (iommu_pass_through)
 		ret = amd_iommu_init_passthrough();
 	else
@@ -1294,8 +1296,6 @@ int __init amd_iommu_init(void)
 
 	amd_iommu_init_api();
 
-	enable_iommus();
-
 	if (iommu_pass_through)
 		goto out;
 
@@ -1314,6 +1314,8 @@ out:
 	return ret;
 
 free:
+	disable_iommus();
+
 	free_pages((unsigned long)amd_iommu_pd_alloc_bitmap,
 		   get_order(MAX_DOMAIN_ID/8));
 
arch/x86/kernel/aperture_64.c +14 -1
index 128111d..082089e 100644
@@ -389,6 +389,7 @@ void __init gart_iommu_hole_init(void)
 	for (i = 0; i < ARRAY_SIZE(bus_dev_ranges); i++) {
 		int bus;
 		int dev_base, dev_limit;
+		u32 ctl;
 
 		bus = bus_dev_ranges[i].bus;
 		dev_base = bus_dev_ranges[i].dev_base;
@@ -401,7 +402,19 @@ void __init gart_iommu_hole_init(void)
 			iommu_detected = 1;
 			gart_iommu_aperture = 1;
 
-			aper_order = (read_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL) >> 1) & 7;
+			ctl = read_pci_config(bus, slot, 3,
+					      AMD64_GARTAPERTURECTL);
+
+			/*
+			 * Before we do anything else disable the GART. It may
+			 * still be enabled if we boot into a crash-kernel here.
+			 * Reconfiguring the GART while it is enabled could have
+			 * unknown side-effects.
+			 */
+			ctl &= ~GARTEN;
+			write_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL, ctl);
+
+			aper_order = (ctl >> 1) & 7;
 			aper_size = (32 * 1024 * 1024) << aper_order;
 			aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff;
 			aper_base <<= 25;
arch/x86/kernel/apic/apic.c +2 -0
index 0e69e17..168e172 100644
@@ -1664,8 +1664,10 @@ int __init APIC_init_uniprocessor(void)
 	}
 #endif
 
+#ifndef CONFIG_SMP
 	enable_IR_x2apic();
 	default_setup_apic_routing();
+#endif
 
 	verify_local_APIC();
 	connect_bsp_APIC();
arch/x86/kernel/cpu/amd.c +15 -38

74 lines not on this page · raw message

arch/x86/kernel/cpu/intel_cacheinfo.c +156 -94

311 lines not on this page · raw message

arch/x86/kernel/cpu/perf_event.c +103 -1

128 lines not on this page · raw message

arch/x86/kernel/crash.c +0 -6
index 5e409dc..ff95824 100644
@@ -27,7 +27,6 @@
 #include <asm/cpu.h>
 #include <asm/reboot.h>
 #include <asm/virtext.h>
-#include <asm/iommu.h>
 
 
 #if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC)
@@ -104,10 +103,5 @@ void native_machine_crash_shutdown(struct pt_regs *regs)
 #ifdef CONFIG_HPET_TIMER
 	hpet_disable();
 #endif
-
-#ifdef CONFIG_X86_64
-	pci_iommu_shutdown();
-#endif
-
 	crash_save_cpu(regs, safe_smp_processor_id());
 }
arch/x86/kernel/hpet.c +21 -4
index 5877873..74f5a3f 100644
@@ -385,11 +385,28 @@ static int hpet_next_event(unsigned long delta,
 	hpet_writel(cnt, HPET_Tn_CMP(timer));
 
 	/*
-	 * We need to read back the CMP register to make sure that
-	 * what we wrote hit the chip before we compare it to the
-	 * counter.
+	 * We need to read back the CMP register on certain HPET
+	 * implementations (ATI chipsets) which seem to delay the
+	 * transfer of the compare register into the internal compare
+	 * logic. With small deltas this might actually be too late as
+	 * the counter could already be higher than the compare value
+	 * at that point and we would wait for the next hpet interrupt
+	 * forever. We found out that reading the CMP register back
+	 * forces the transfer so we can rely on the comparison with
+	 * the counter register below. If the read back from the
+	 * compare register does not match the value we programmed
+	 * then we might have a real hardware problem. We can not do
+	 * much about it here, but at least alert the user/admin with
+	 * a prominent warning.
+	 * An erratum on some chipsets (ICH9,..), results in comparator read
+	 * immediately following a write returning old value. Workaround
+	 * for this is to read this value second time, when first
+	 * read returns old value.
 	 */
-	WARN_ON_ONCE((u32)hpet_readl(HPET_Tn_CMP(timer)) != cnt);
+	if (unlikely((u32)hpet_readl(HPET_Tn_CMP(timer)) != cnt)) {
+		WARN_ONCE((u32)hpet_readl(HPET_Tn_CMP(timer)) != cnt,
+		  KERN_WARNING "hpet: compare register read back failed.\n");
+	}
 
 	return (s32)((u32)hpet_readl(HPET_COUNTER) - cnt) >= 0 ? -ETIME : 0;
 }
arch/x86/kernel/pci-gart_64.c +3 -0
index fcc0b5c..c245b6a 100644
@@ -553,6 +553,9 @@ static void enable_gart_translations(void)
 
 		enable_gart_translation(dev, __pa(agp_gatt_table));
 	}
+
+	/* Flush the GART-TLB to remove stale entries */
+	k8_flush_garts();
 }
 
 /*
arch/x86/kvm/emulate.c +153 -39

313 lines not on this page · raw message

arch/x86/kvm/mmu.c +14 -14
index 3a01519..762efc2 100644
@@ -136,12 +136,6 @@ module_param(oos_shadow, bool, 0644);
 #define PT64_PERM_MASK (PT_PRESENT_MASK | PT_WRITABLE_MASK | PT_USER_MASK \
 			| PT64_NX_MASK)
 
-#define PFERR_PRESENT_MASK (1U << 0)
-#define PFERR_WRITE_MASK (1U << 1)
-#define PFERR_USER_MASK (1U << 2)
-#define PFERR_RSVD_MASK (1U << 3)
-#define PFERR_FETCH_MASK (1U << 4)
-
 #define PT_PDPE_LEVEL 3
 #define PT_DIRECTORY_LEVEL 2
 #define PT_PAGE_TABLE_LEVEL 1
@@ -1502,8 +1496,8 @@ static int mmu_zap_unsync_children(struct kvm *kvm,
 		for_each_sp(pages, sp, parents, i) {
 			kvm_mmu_zap_page(kvm, sp);
 			mmu_pages_clear_parents(&parents);
+			zapped++;
 		}
-		zapped += pages.nr;
 		kvm_mmu_pages_init(parent, &parents, &pages);
 	}
 
@@ -1554,14 +1548,16 @@ void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages)
 	 */
 
 	if (used_pages > kvm_nr_mmu_pages) {
-		while (used_pages > kvm_nr_mmu_pages) {
+		while (used_pages > kvm_nr_mmu_pages &&
+			!list_empty(&kvm->arch.active_mmu_pages)) {
 			struct kvm_mmu_page *page;
 
 			page = container_of(kvm->arch.active_mmu_pages.prev,
 					    struct kvm_mmu_page, link);
-			kvm_mmu_zap_page(kvm, page);
+			used_pages -= kvm_mmu_zap_page(kvm, page);
 			used_pages--;
 		}
+		kvm_nr_mmu_pages = used_pages;
 		kvm->arch.n_free_mmu_pages = 0;
 	}
 	else
@@ -1608,7 +1604,8 @@ static void mmu_unshadow(struct kvm *kvm, gfn_t gfn)
 		    && !sp->role.invalid) {
 			pgprintk("%s: zap %lx %x\n",
 				 __func__, gfn, sp->role.word);
-			kvm_mmu_zap_page(kvm, sp);
+			if (kvm_mmu_zap_page(kvm, sp))
+				nn = bucket->first;
 		}
 	}
 }
@@ -1639,7 +1636,7 @@ struct page *gva_to_page(struct kvm_vcpu *vcpu, gva_t gva)
 {
 	struct page *page;
 
-	gpa_t gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, gva);
+	gpa_t gpa = kvm_mmu_gva_to_gpa_read(vcpu, gva, NULL);
 
 	if (gpa == UNMAPPED_GVA)
 		return NULL;
@@ -2162,8 +2159,11 @@ void kvm_mmu_sync_roots(struct kvm_vcpu *vcpu)
 	spin_unlock(&vcpu->kvm->mmu_lock);
 }
 
-static gpa_t nonpaging_gva_to_gpa(struct kvm_vcpu *vcpu, gva_t vaddr)
+static gpa_t nonpaging_gva_to_gpa(struct kvm_vcpu *vcpu, gva_t vaddr,
+				  u32 access, u32 *error)
 {
+	if (error)
+		*error = 0;
 	return vaddr;
 }
 
@@ -2747,7 +2747,7 @@ int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva)
 	if (tdp_enabled)
 		return 0;
 
-	gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, gva);
+	gpa = kvm_mmu_gva_to_gpa_read(vcpu, gva, NULL);
 
 	spin_lock(&vcpu->kvm->mmu_lock);
 	r = kvm_mmu_unprotect_page(vcpu->kvm, gpa >> PAGE_SHIFT);
@@ -3245,7 +3245,7 @@ static void audit_mappings_page(struct kvm_vcpu *vcpu, u64 page_pte,
 		if (is_shadow_present_pte(ent) && !is_last_spte(ent, level))
 			audit_mappings_page(vcpu, ent, va, level - 1);
 		else {
-			gpa_t gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, va);
+			gpa_t gpa = kvm_mmu_gva_to_gpa_read(vcpu, va, NULL);
 			gfn_t gfn = gpa >> PAGE_SHIFT;
 			pfn_t pfn = gfn_to_pfn(vcpu->kvm, gfn);
 			hpa_t hpa = (hpa_t)pfn << PAGE_SHIFT;
arch/x86/kvm/mmu.h +6 -0
index 61a1b38..bac7529 100644
@@ -37,6 +37,12 @@
 #define PT32_ROOT_LEVEL 2
 #define PT32E_ROOT_LEVEL 3
 
+#define PFERR_PRESENT_MASK (1U << 0)
+#define PFERR_WRITE_MASK (1U << 1)
+#define PFERR_USER_MASK (1U << 2)
+#define PFERR_RSVD_MASK (1U << 3)
+#define PFERR_FETCH_MASK (1U << 4)
+
 int kvm_mmu_get_spte_hierarchy(struct kvm_vcpu *vcpu, u64 addr, u64 sptes[4]);
 
 static inline void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu)
arch/x86/kvm/paging_tmpl.h +8 -3
index 5fa3325..8faa821 100644
@@ -491,18 +491,23 @@ static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva)
 	spin_unlock(&vcpu->kvm->mmu_lock);
 }
 
-static gpa_t FNAME(gva_to_gpa)(struct kvm_vcpu *vcpu, gva_t vaddr)
+static gpa_t FNAME(gva_to_gpa)(struct kvm_vcpu *vcpu, gva_t vaddr, u32 access,
+			       u32 *error)
 {
 	struct guest_walker walker;
 	gpa_t gpa = UNMAPPED_GVA;
 	int r;
 
-	r = FNAME(walk_addr)(&walker, vcpu, vaddr, 0, 0, 0);
+	r = FNAME(walk_addr)(&walker, vcpu, vaddr,
+			     !!(access & PFERR_WRITE_MASK),
+			     !!(access & PFERR_USER_MASK),
+			     !!(access & PFERR_FETCH_MASK));
 
 	if (r) {
 		gpa = gfn_to_gpa(walker.gfn);
 		gpa |= vaddr & ~PAGE_MASK;
-	}
+	} else if (error)
+		*error = walker.error_code;
 
 	return gpa;
 }
arch/x86/kvm/svm.c +20 -14
index c17404a..8e65552 100644
@@ -625,11 +625,12 @@ static void init_vmcb(struct vcpu_svm *svm)
 	save->rip = 0x0000fff0;
 	svm->vcpu.arch.regs[VCPU_REGS_RIP] = save->rip;
 
-	/*
-	 * cr0 val on cpu init should be 0x60000010, we enable cpu
-	 * cache by default. the orderly way is to enable cache in bios.
+	/* This is the guest-visible cr0 value.
+	 * svm_set_cr0() sets PG and WP and clears NW and CD on save->cr0.
 	 */
-	save->cr0 = 0x00000010 | X86_CR0_PG | X86_CR0_WP;
+	svm->vcpu.arch.cr0 = X86_CR0_NW | X86_CR0_CD | X86_CR0_ET;
+	kvm_set_cr0(&svm->vcpu, svm->vcpu.arch.cr0);
+
 	save->cr4 = X86_CR4_PAE;
 	/* rdx = ?? */
 
@@ -693,29 +694,28 @@ static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id)
 	if (err)
 		goto free_svm;
 
+	err = -ENOMEM;
 	page = alloc_page(GFP_KERNEL);
-	if (!page) {
-		err = -ENOMEM;
+	if (!page)
 		goto uninit;
-	}
 
-	err = -ENOMEM;
 	msrpm_pages = alloc_pages(GFP_KERNEL, MSRPM_ALLOC_ORDER);
 	if (!msrpm_pages)
-		goto uninit;
+		goto free_page1;
 
 	nested_msrpm_pages = alloc_pages(GFP_KERNEL, MSRPM_ALLOC_ORDER);
 	if (!nested_msrpm_pages)
-		goto uninit;
-
-	svm->msrpm = page_address(msrpm_pages);
-	svm_vcpu_init_msrpm(svm->msrpm);
+		goto free_page2;
 
 	hsave_page = alloc_page(GFP_KERNEL);
 	if (!hsave_page)
-		goto uninit;
+		goto free_page3;
+
 	svm->nested.hsave = page_address(hsave_page);
 
+	svm->msrpm = page_address(msrpm_pages);
+	svm_vcpu_init_msrpm(svm->msrpm);
+
 	svm->nested.msrpm = page_address(nested_msrpm_pages);
 
 	svm->vmcb = page_address(page);
@@ -732,6 +732,12 @@ static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id)
 
 	return &svm->vcpu;
 
+free_page3:
+	__free_pages(nested_msrpm_pages, MSRPM_ALLOC_ORDER);
+free_page2:
+	__free_pages(msrpm_pages, MSRPM_ALLOC_ORDER);
+free_page1:
+	__free_page(page);
 uninit:
 	kvm_vcpu_uninit(&svm->vcpu);
 free_svm:
arch/x86/kvm/vmx.c +32 -11

106 lines not on this page · raw message

arch/x86/kvm/x86.c +271 -95

741 lines not on this page · raw message

arch/x86/lib/Makefile +2 -1
index c2b6f39..ac2d426 100644
@@ -2,7 +2,7 @@
 # Makefile for x86 specific library files.
 #
 
-obj-$(CONFIG_SMP) += msr-smp.o
+obj-$(CONFIG_SMP) += msr-smp.o cache-smp.o
 
 lib-y := delay.o
 lib-y += thunk_$(BITS).o
@@ -26,4 +26,5 @@ else
         lib-y += thunk_64.o clear_page_64.o copy_page_64.o
         lib-y += memmove_64.o memset_64.o
         lib-y += copy_user_64.o rwlock_64.o copy_user_nocache_64.o
+	lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem_64.o
 endif
arch/x86/lib/cache-smp.c new file +19 -0
new file mode 100644
index 0000000..a3c6688
@@ -0,0 +1,19 @@
+#include <linux/smp.h>
+#include <linux/module.h>
+
+static void __wbinvd(void *dummy)
+{
+	wbinvd();
+}
+
+void wbinvd_on_cpu(int cpu)
+{
+	smp_call_function_single(cpu, __wbinvd, NULL, 1);
+}
+EXPORT_SYMBOL(wbinvd_on_cpu);
+
+int wbinvd_on_all_cpus(void)
+{
+	return on_each_cpu(__wbinvd, NULL, 1);
+}
+EXPORT_SYMBOL(wbinvd_on_all_cpus);
arch/x86/lib/rwsem_64.S new file +81 -0

81 lines not on this page · raw message

arch/x86/pci/irq.c +2 -0
index 0696d50..b02f6d8 100644
@@ -590,6 +590,8 @@ static __init int intel_router_probe(struct irq_router *r, struct pci_dev *route
 	case PCI_DEVICE_ID_INTEL_ICH10_1:
 	case PCI_DEVICE_ID_INTEL_ICH10_2:
 	case PCI_DEVICE_ID_INTEL_ICH10_3:
+	case PCI_DEVICE_ID_INTEL_CPT_LPC1:
+	case PCI_DEVICE_ID_INTEL_CPT_LPC2:
 		r->name = "PIIX/ICH";
 		r->get = pirq_piix_get;
 		r->set = pirq_piix_set;
arch/x86/power/hibernate_asm_32.S +7 -8
index b641388..ad47dae 100644
@@ -27,10 +27,17 @@ ENTRY(swsusp_arch_suspend)
 	ret
 
 ENTRY(restore_image)
+	movl	mmu_cr4_features, %ecx
 	movl	resume_pg_dir, %eax
 	subl	$__PAGE_OFFSET, %eax
 	movl	%eax, %cr3
 
+	jecxz	1f	# cr4 Pentium and higher, skip if zero
+	andl	$~(X86_CR4_PGE), %ecx
+	movl	%ecx, %cr4;  # turn off PGE
+	movl	%cr3, %eax;  # flush TLB
+	movl	%eax, %cr3
+1:
 	movl	restore_pblist, %edx
 	.p2align 4,,7
 
@@ -54,16 +61,8 @@ done:
 	movl	$swapper_pg_dir, %eax
 	subl	$__PAGE_OFFSET, %eax
 	movl	%eax, %cr3
-	/* Flush TLB, including "global" things (vmalloc) */
 	movl	mmu_cr4_features, %ecx
 	jecxz	1f	# cr4 Pentium and higher, skip if zero
-	movl	%ecx, %edx
-	andl	$~(X86_CR4_PGE), %edx
-	movl	%edx, %cr4;  # turn off PGE
-1:
-	movl	%cr3, %eax;  # flush TLB
-	movl	%eax, %cr3
-	jecxz	1f	# cr4 Pentium and higher, skip if zero
 	movl	%ecx, %cr4;  # turn PGE back on
 1:
 
drivers/acpi/acpica/exprep.c +17 -0
index 52fec07..83b6252 100644
@@ -468,6 +468,23 @@ acpi_status acpi_ex_prep_field_value(struct acpi_create_field_info *info)
 
 		acpi_ut_add_reference(obj_desc->field.region_obj);
 
+		/* allow full data read from EC address space */
+		if (obj_desc->field.region_obj->region.space_id ==
+			ACPI_ADR_SPACE_EC) {
+			if (obj_desc->common_field.bit_length > 8) {
+				unsigned width =
+					ACPI_ROUND_BITS_UP_TO_BYTES(
+					obj_desc->common_field.bit_length);
+				// access_bit_width is u8, don't overflow it
+				if (width > 8)
+					width = 8;
+				obj_desc->common_field.access_byte_width =
+							width;
+				obj_desc->common_field.access_bit_width =
+							8 * width;
+			}
+		}
+
 		ACPI_DEBUG_PRINT((ACPI_DB_BFIELD,
 				  "RegionField: BitOff %X, Off %X, Gran %X, Region %p\n",
 				  obj_desc->field.start_field_bit_offset,
drivers/acpi/ec.c +9 -26
index f1670e0..45d2aa9 100644
@@ -588,12 +588,12 @@ static u32 acpi_ec_gpe_handler(void *data)
 
 static acpi_status
 acpi_ec_space_handler(u32 function, acpi_physical_address address,
-		      u32 bits, acpi_integer *value,
+		      u32 bits, acpi_integer *value64,
 		      void *handler_context, void *region_context)
 {
 	struct acpi_ec *ec = handler_context;
-	int result = 0, i;
-	u8 temp = 0;
+	int result = 0, i, bytes = bits / 8;
+	u8 *value = (u8 *)value64;
 
 	if ((address > 0xFF) || !value || !handler_context)
 		return AE_BAD_PARAMETER;
@@ -601,32 +601,15 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
 	if (function != ACPI_READ && function != ACPI_WRITE)
 		return AE_BAD_PARAMETER;
 
-	if (bits != 8 && acpi_strict)
-		return AE_BAD_PARAMETER;
-
-	if (EC_FLAGS_MSI)
+	if (EC_FLAGS_MSI || bits > 8)
 		acpi_ec_burst_enable(ec);
 
-	if (function == ACPI_READ) {
-		result = acpi_ec_read(ec, address, &temp);
-		*value = temp;
-	} else {
-		temp = 0xff & (*value);
-		result = acpi_ec_write(ec, address, temp);
-	}
-
-	for (i = 8; unlikely(bits - i > 0); i += 8) {
-		++address;
-		if (function == ACPI_READ) {
-			result = acpi_ec_read(ec, address, &temp);
-			(*value) |= ((acpi_integer)temp) << i;
-		} else {
-			temp = 0xff & ((*value) >> i);
-			result = acpi_ec_write(ec, address, temp);
-		}
-	}
+	for (i = 0; i < bytes; ++i, ++address, ++value)
+		result = (function == ACPI_READ) ?
+			acpi_ec_read(ec, address, value) :
+			acpi_ec_write(ec, address, *value);
 
-	if (EC_FLAGS_MSI)
+	if (EC_FLAGS_MSI || bits > 8)
 		acpi_ec_burst_disable(ec);
 
 	switch (result) {
drivers/ata/ahci.c +6 -0
index 2c53024..cb05205 100644
@@ -570,6 +570,12 @@ static const struct pci_device_id ahci_pci_tbl[] = {
 	{ PCI_VDEVICE(INTEL, 0x3b2b), board_ahci }, /* PCH RAID */
 	{ PCI_VDEVICE(INTEL, 0x3b2c), board_ahci }, /* PCH RAID */
 	{ PCI_VDEVICE(INTEL, 0x3b2f), board_ahci }, /* PCH AHCI */
+	{ PCI_VDEVICE(INTEL, 0x1c02), board_ahci }, /* CPT AHCI */
+	{ PCI_VDEVICE(INTEL, 0x1c03), board_ahci }, /* CPT AHCI */
+	{ PCI_VDEVICE(INTEL, 0x1c04), board_ahci }, /* CPT RAID */
+	{ PCI_VDEVICE(INTEL, 0x1c05), board_ahci }, /* CPT RAID */
+	{ PCI_VDEVICE(INTEL, 0x1c06), board_ahci }, /* CPT RAID */
+	{ PCI_VDEVICE(INTEL, 0x1c07), board_ahci }, /* CPT RAID */
 
 	/* JMicron 360/1/3/5/6, match class to avoid IDE function */
 	{ PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
drivers/ata/ata_piix.c +8 -0
index 0c6155f..4f94e22 100644
@@ -291,6 +291,14 @@ static const struct pci_device_id piix_pci_tbl[] = {
 	{ 0x8086, 0x3b2d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata },
 	/* SATA Controller IDE (PCH) */
 	{ 0x8086, 0x3b2e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata },
+	/* SATA Controller IDE (CPT) */
+	{ 0x8086, 0x1c00, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata },
+	/* SATA Controller IDE (CPT) */
+	{ 0x8086, 0x1c01, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata },
+	/* SATA Controller IDE (CPT) */
+	{ 0x8086, 0x1c08, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata },
+	/* SATA Controller IDE (CPT) */
+	{ 0x8086, 0x1c09, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata },
 	{ }	/* terminate list */
 };
 
drivers/ata/libata-core.c +3 -0
index 91fed3c..3b09e83 100644
@@ -4348,6 +4348,9 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
 	{ "HTS541080G9SA00",    "MB4OC60D",     ATA_HORKAGE_NONCQ, },
 	{ "HTS541010G9SA00",    "MBZOC60D",     ATA_HORKAGE_NONCQ, },
 
+	/* https://bugzilla.kernel.org/show_bug.cgi?id=15573 */
+	{ "C300-CTFDDAC128MAG",	"0001",		ATA_HORKAGE_NONCQ, },
+
 	/* devices which puke on READ_NATIVE_MAX */
 	{ "HDS724040KLSA80",	"KFAOA20N",	ATA_HORKAGE_BROKEN_HPA, },
 	{ "WDC WD3200JD-00KLB0", "WD-WCAMR1130137", ATA_HORKAGE_BROKEN_HPA },
drivers/ata/pata_ali.c +3 -1
index 1432dc9..9434114 100644
@@ -453,7 +453,9 @@ static void ali_init_chipset(struct pci_dev *pdev)
 			/* Clear CD-ROM DMA write bit */
 			tmp &= 0x7F;
 		/* Cable and UDMA */
-		pci_write_config_byte(pdev, 0x4B, tmp | 0x09);
+		if (pdev->revision >= 0xc2)
+			tmp |= 0x01;
+		pci_write_config_byte(pdev, 0x4B, tmp | 0x08);
 		/*
 		 * CD_ROM DMA on (0x53 bit 0). Enable this even if we want
 		 * to use PIO. 0x53 bit 1 (rev 20 only) - enable FIFO control
drivers/ata/pata_via.c +1 -0
index 88984b8..1d73b8d 100644
@@ -661,6 +661,7 @@ static const struct pci_device_id via[] = {
 	{ PCI_VDEVICE(VIA, 0x3164), },
 	{ PCI_VDEVICE(VIA, 0x5324), },
 	{ PCI_VDEVICE(VIA, 0xC409), VIA_IDFLAG_SINGLE },
+	{ PCI_VDEVICE(VIA, 0x9001), VIA_IDFLAG_SINGLE },
 
 	{ },
 };
drivers/char/agp/hp-agp.c +1 -2
index 9047b27..dc8a6f7 100644
@@ -488,9 +488,8 @@ zx1_gart_probe (acpi_handle obj, u32 depth, void *context, void **ret)
 	handle = obj;
 	do {
 		status = acpi_get_object_info(handle, &info);
-		if (ACPI_SUCCESS(status)) {
+		if (ACPI_SUCCESS(status) && (info->valid & ACPI_VALID_HID)) {
 			/* TBD check _CID also */
-			info->hardware_id.string[sizeof(info->hardware_id.length)-1] = '\0';
 			match = (strcmp(info->hardware_id.string, "HWP0001") == 0);
 			kfree(info);
 			if (match) {
drivers/char/agp/intel-agp.c +4 -11
index 4dcfef0..b8e0219 100644
@@ -8,6 +8,7 @@
 #include <linux/kernel.h>
 #include <linux/pagemap.h>
 #include <linux/agp_backend.h>
+#include <asm/smp.h>
 #include "agp.h"
 
 /*
@@ -815,12 +816,6 @@ static void intel_i830_setup_flush(void)
 		intel_i830_fini_flush();
 }
 
-static void
-do_wbinvd(void *null)
-{
-	wbinvd();
-}
-
 /* The chipset_flush interface needs to get data that has already been
  * flushed out of the CPU all the way out to main memory, because the GPU
  * doesn't snoop those buffers.
@@ -837,12 +832,10 @@ static void intel_i830_chipset_flush(struct agp_bridge_data *bridge)
 
 	memset(pg, 0, 1024);
 
-	if (cpu_has_clflush) {
+	if (cpu_has_clflush)
 		clflush_cache_range(pg, 1024);
-	} else {
-		if (on_each_cpu(do_wbinvd, NULL, 1) != 0)
-			printk(KERN_ERR "Timed out waiting for cache flush.\n");
-	}
+	else if (wbinvd_on_all_cpus() != 0)
+		printk(KERN_ERR "Timed out waiting for cache flush.\n");
 }
 
 /* The intel i830 automatically initializes the agp aperture during POST.
drivers/char/raw.c +1 -0
index 64acd05..9abc3a1 100644
@@ -247,6 +247,7 @@ static const struct file_operations raw_fops = {
 	.aio_read = 	generic_file_aio_read,
 	.write	=	do_sync_write,
 	.aio_write =	blkdev_aio_write,
+	.fsync	=	block_fsync,
 	.open	=	raw_open,
 	.release=	raw_release,
 	.ioctl	=	raw_ioctl,
drivers/char/tpm/tpm_tis.c +1 -0
index 27e8de4..2405f17 100644
@@ -637,6 +637,7 @@ static struct pnp_device_id tpm_pnp_tbl[] __devinitdata = {
 	{"", 0},		/* User Specified */
 	{"", 0}			/* Terminator */
 };
+MODULE_DEVICE_TABLE(pnp, tpm_pnp_tbl);
 
 static __devexit void tpm_tis_pnp_remove(struct pnp_dev *dev)
 {
drivers/char/tty_io.c +2 -0
index 05cab2c..53ffcfc 100644
@@ -1408,6 +1408,8 @@ static void release_one_tty(struct work_struct *work)
 	list_del_init(&tty->tty_files);
 	file_list_unlock();
 
+	put_pid(tty->pgrp);
+	put_pid(tty->session);
 	free_tty_struct(tty);
 }
 
drivers/gpu/drm/drm_crtc_helper.c +1 -0
index afed886..08173fc 100644
@@ -104,6 +104,7 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector,
 	if (connector->status == connector_status_disconnected) {
 		DRM_DEBUG_KMS("%s is disconnected\n",
 			  drm_get_connector_name(connector));
+		drm_mode_connector_update_edid_property(connector, NULL);
 		goto prune;
 	}
 
drivers/gpu/drm/drm_edid.c +2 -9
index d5671c3..8fb1346 100644
@@ -85,6 +85,8 @@ static struct edid_quirk {
 
 	/* Envision Peripherals, Inc. EN-7100e */
 	{ "EPI", 59264, EDID_QUIRK_135_CLOCK_TOO_HIGH },
+	/* Envision EN2028 */
+	{ "EPI", 8232, EDID_QUIRK_PREFER_LARGE_60 },
 
 	/* Funai Electronics PM36B */
 	{ "FCM", 13600, EDID_QUIRK_PREFER_LARGE_75 |
@@ -653,15 +655,6 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,
 	mode->vsync_end = mode->vsync_start + vsync_pulse_width;
 	mode->vtotal = mode->vdisplay + vblank;
 
-	/* perform the basic check for the detailed timing */
-	if (mode->hsync_end > mode->htotal ||
-		mode->vsync_end > mode->vtotal) {
-		drm_mode_destroy(dev, mode);
-		DRM_DEBUG_KMS("Incorrect detailed timing. "
-				"Sync is beyond the blank.\n");
-		return NULL;
-	}
-
 	/* Some EDIDs have bogus h/vtotal values */
 	if (mode->hsync_end > mode->htotal)
 		mode->htotal = mode->hsync_end + 1;
drivers/gpu/drm/drm_fops.c +9 -7
index 251bc0e..ba14553 100644
@@ -140,14 +140,16 @@ int drm_open(struct inode *inode, struct file *filp)
 		spin_unlock(&dev->count_lock);
 	}
 out:
-	mutex_lock(&dev->struct_mutex);
-	if (minor->type == DRM_MINOR_LEGACY) {
-		BUG_ON((dev->dev_mapping != NULL) &&
-			(dev->dev_mapping != inode->i_mapping));
-		if (dev->dev_mapping == NULL)
-			dev->dev_mapping = inode->i_mapping;
+	if (!retcode) {
+		mutex_lock(&dev->struct_mutex);
+		if (minor->type == DRM_MINOR_LEGACY) {
+			if (dev->dev_mapping == NULL)
+				dev->dev_mapping = inode->i_mapping;
+			else if (dev->dev_mapping != inode->i_mapping)
+				retcode = -ENODEV;
+		}
+		mutex_unlock(&dev->struct_mutex);
 	}
-	mutex_unlock(&dev->struct_mutex);
 
 	return retcode;
 }
drivers/gpu/drm/i915/intel_lvds.c +8 -0
index a177b57..4a85aa3 100644
@@ -885,6 +885,14 @@ static const struct dmi_system_id intel_no_lvds[] = {
 			DMI_MATCH(DMI_PRODUCT_VERSION, "AO00001JW"),
 		},
 	},
+	{
+		.callback = intel_no_lvds_dmi_callback,
+		.ident = "Clientron U800",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Clientron"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "U800"),
+		},
+	},
 
 	{ }	/* terminating entry */
 };
drivers/gpu/drm/radeon/r300.c +3 -2
index 2f43ee8..d8c4f72 100644
@@ -346,11 +346,12 @@ void r300_gpu_init(struct radeon_device *rdev)
 
 	r100_hdp_reset(rdev);
 	/* FIXME: rv380 one pipes ? */
-	if ((rdev->family == CHIP_R300) || (rdev->family == CHIP_R350)) {
+	if ((rdev->family == CHIP_R300 && rdev->pdev->device != 0x4144) ||
+	    (rdev->family == CHIP_R350)) {
 		/* r300,r350 */
 		rdev->num_gb_pipes = 2;
 	} else {
-		/* rv350,rv370,rv380 */
+		/* rv350,rv370,rv380,r300 AD */
 		rdev->num_gb_pipes = 1;
 	}
 	rdev->num_z_pipes = 1;
drivers/gpu/drm/radeon/radeon_connectors.c +6 -1
index 29763ce..b1dc1a1 100644
@@ -140,12 +140,14 @@ radeon_connector_analog_encoder_conflict_solve(struct drm_connector *connector,
 {
 	struct drm_device *dev = connector->dev;
 	struct drm_connector *conflict;
+	struct radeon_connector *radeon_conflict;
 	int i;
 
 	list_for_each_entry(conflict, &dev->mode_config.connector_list, head) {
 		if (conflict == connector)
 			continue;
 
+		radeon_conflict = to_radeon_connector(conflict);
 		for (i = 0; i < DRM_CONNECTOR_MAX_ENCODER; i++) {
 			if (conflict->encoder_ids[i] == 0)
 				break;
@@ -155,6 +157,9 @@ radeon_connector_analog_encoder_conflict_solve(struct drm_connector *connector,
 				if (conflict->status != connector_status_connected)
 					continue;
 
+				if (radeon_conflict->use_digital)
+					continue;
+
 				if (priority == true) {
 					DRM_INFO("1: conflicting encoders switching off %s\n", drm_get_connector_name(conflict));
 					DRM_INFO("in favor of %s\n", drm_get_connector_name(connector));
@@ -281,7 +286,7 @@ int radeon_connector_set_property(struct drm_connector *connector, struct drm_pr
 		radeon_encoder = to_radeon_encoder(encoder);
 		if (!radeon_encoder->enc_priv)
 			return 0;
-		if (rdev->is_atom_bios) {
+		if (ASIC_IS_AVIVO(rdev) || radeon_r4xx_atom) {
 			struct radeon_encoder_atom_dac *dac_int;
 			dac_int = radeon_encoder->enc_priv;
 			dac_int->tv_std = val;
drivers/gpu/drm/radeon/radeon_cp.c +6 -4
index 4f7afc7..1c46848 100644
@@ -417,8 +417,9 @@ static int radeon_do_wait_for_idle(drm_radeon_private_t * dev_priv)
 	return -EBUSY;
 }
 
-static void radeon_init_pipes(drm_radeon_private_t *dev_priv)
+static void radeon_init_pipes(struct drm_device *dev)
 {
+	drm_radeon_private_t *dev_priv = dev->dev_private;
 	uint32_t gb_tile_config, gb_pipe_sel = 0;
 
 	if ((dev_priv->flags & RADEON_FAMILY_MASK) == CHIP_RV530) {
@@ -436,11 +437,12 @@ static void radeon_init_pipes(drm_radeon_private_t *dev_priv)
 		dev_priv->num_gb_pipes = ((gb_pipe_sel >> 12) & 0x3) + 1;
 	} else {
 		/* R3xx */
-		if (((dev_priv->flags & RADEON_FAMILY_MASK) == CHIP_R300) ||
+		if (((dev_priv->flags & RADEON_FAMILY_MASK) == CHIP_R300 &&
+		     dev->pdev->device != 0x4144) ||
 		    ((dev_priv->flags & RADEON_FAMILY_MASK) == CHIP_R350)) {
 			dev_priv->num_gb_pipes = 2;
 		} else {
-			/* R3Vxx */
+			/* RV3xx/R300 AD */
 			dev_priv->num_gb_pipes = 1;
 		}
 	}
@@ -736,7 +738,7 @@ static int radeon_do_engine_reset(struct drm_device * dev)
 
 	/* setup the raster pipes */
 	if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R300)
-	    radeon_init_pipes(dev_priv);
+	    radeon_init_pipes(dev);
 
 	/* Reset the CP ring */
 	radeon_do_cp_reset(dev_priv);
drivers/gpu/drm/radeon/radeon_cs.c +2 -1
index 484f791..20c52da 100644
@@ -247,7 +247,8 @@ int radeon_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
 	}
 	r = radeon_cs_parser_relocs(&parser);
 	if (r) {
-		DRM_ERROR("Failed to parse relocation !\n");
+		if (r != -ERESTARTSYS)
+			DRM_ERROR("Failed to parse relocation %d!\n", r);
 		radeon_cs_parser_fini(&parser, r);
 		mutex_unlock(&rdev->cs_mutex);
 		return r;
drivers/gpu/drm/radeon/radeon_encoders.c +6 -2
index d42bc51..4478b99 100644
@@ -1155,8 +1155,12 @@ radeon_atom_encoder_mode_set(struct drm_encoder *encoder,
 	case ENCODER_OBJECT_ID_INTERNAL_DAC2:
 	case ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2:
 		atombios_dac_setup(encoder, ATOM_ENABLE);
-		if (radeon_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT))
-			atombios_tv_setup(encoder, ATOM_ENABLE);
+		if (radeon_encoder->devices & (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT)) {
+			if (radeon_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT))
+				atombios_tv_setup(encoder, ATOM_ENABLE);
+			else
+				atombios_tv_setup(encoder, ATOM_DISABLE);
+		}
 		break;
 	}
 	atombios_apply_encoder_quirks(encoder, adjusted_mode);
drivers/gpu/drm/radeon/radeon_legacy_tv.c +24 -5
index 3a12bb0..fc64a20 100644
@@ -57,6 +57,10 @@
 #define NTSC_TV_PLL_N_14 693
 #define NTSC_TV_PLL_P_14 7
 
+#define PAL_TV_PLL_M_14 19
+#define PAL_TV_PLL_N_14 353
+#define PAL_TV_PLL_P_14 5
+
 #define VERT_LEAD_IN_LINES 2
 #define FRAC_BITS 0xe
 #define FRAC_MASK 0x3fff
@@ -205,9 +209,24 @@ static const struct radeon_tv_mode_constants available_tv_modes[] = {
 		630627,             /* defRestart */
 		347,                /* crtcPLL_N */
 		14,                 /* crtcPLL_M */
-			8,                  /* crtcPLL_postDiv */
+		8,                  /* crtcPLL_postDiv */
 		1022,               /* pixToTV */
 	},
+	{ /* PAL timing for 14 Mhz ref clk */
+		800,                /* horResolution */
+		600,                /* verResolution */
+		TV_STD_PAL,         /* standard */
+		1131,               /* horTotal */
+		742,                /* verTotal */
+		813,                /* horStart */
+		840,                /* horSyncStart */
+		633,                /* verSyncStart */
+		708369,             /* defRestart */
+		211,                /* crtcPLL_N */
+		9,                  /* crtcPLL_M */
+		8,                  /* crtcPLL_postDiv */
+		759,                /* pixToTV */
+	},
 };
 
 #define N_AVAILABLE_MODES ARRAY_SIZE(available_tv_modes)
@@ -242,7 +261,7 @@ static const struct radeon_tv_mode_constants *radeon_legacy_tv_get_std_mode(stru
 		if (pll->reference_freq == 2700)
 			const_ptr = &available_tv_modes[1];
 		else
-			const_ptr = &available_tv_modes[1]; /* FIX ME */
+			const_ptr = &available_tv_modes[3];
 	}
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/radeon/rs600.c +1 -1
index 4444f48..1700297 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/vga/vgaarb.c +21 -6
index 1ac0c93..aa8688d 100644

Lines of this file are not shown. View the raw message.

drivers/hid/hid-gyration.c +4 -1
index cab13e8..62416e6 100644

Lines of this file are not shown. View the raw message.

drivers/hwmon/lis3lv02d.c +16 -8
index cf5afb9..5d5ed69 100644

Lines of this file are not shown. View the raw message.

drivers/hwmon/lis3lv02d.h +1 -0
index 3e1ff46..7cdd76f 100644

Lines of this file are not shown. View the raw message.

drivers/hwmon/sht15.c +9 -4
index 864a371..fbc997e 100644

Lines of this file are not shown. View the raw message.

drivers/i2c/busses/Kconfig +3 -2
index e8fe7f1..2dd2ce9 100644

Lines of this file are not shown. View the raw message.

drivers/i2c/busses/i2c-i801.c +4 -1
index 4d73fcf..806f033 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/ulp/ipoib/ipoib_cm.c +2 -0
index 30bdf42..f8302c2 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/ulp/iser/iser_memory.c +56 -66

122 lines not on this page · raw message

drivers/input/tablet/wacom_sys.c +7 -3
index b5b69cc..69fc4b8 100644

Lines of this file are not shown. View the raw message.

drivers/md/dm.c +17 -4
index adb3f8a..d7786e3 100644

Lines of this file are not shown. View the raw message.

drivers/md/linear.c +7 -5
index 1ceceb3..dff9d2f 100644

Lines of this file are not shown. View the raw message.

drivers/md/multipath.c +12 -8
index ee7646f..e4b11f1 100644

Lines of this file are not shown. View the raw message.

drivers/md/raid0.c +7 -6
index d3a4ce0..3db857c 100644

Lines of this file are not shown. View the raw message.

drivers/md/raid10.c +17 -11
index c2cb7b8..3860ac7 100644

Lines of this file are not shown. View the raw message.

drivers/message/fusion/mptctl.c +1 -4
index 9b2e219..352acd0 100644

Lines of this file are not shown. View the raw message.

drivers/message/fusion/mptscsih.c +81 -5

86 lines not on this page · raw message

drivers/net/e1000e/netdev.c +2 -0
index f590bea..433f4dd 100644

Lines of this file are not shown. View the raw message.

drivers/net/igb/e1000_82575.c +1 -0
index f8f5772..c6d97eb 100644

Lines of this file are not shown. View the raw message.

drivers/net/igb/e1000_hw.h +1 -0
index 119869b..1a23aeb 100644

Lines of this file are not shown. View the raw message.

drivers/net/igb/igb_main.c +1 -0
index 714c3a4..8111776 100644

Lines of this file are not shown. View the raw message.

drivers/net/r8169.c +24 -5
index 0fe2fc9..ab75323 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ath/ar9170/usb.c +1 -1
index f141a4f..6c70481 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/b43/Kconfig +3 -3
index 54ea61c..9da5373 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/b43/Makefile +1 -1
index 84772a2..5e83b6f 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/b43/b43.h +6 -22
index 0e6b154..805d28a 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/b43/dma.c +0 -2
index de4e804..571d475 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/b43/main.c +9 -1
index a8a00d2..d605634 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/b43/pio.c +47 -32

79 lines not on this page · raw message

drivers/net/wireless/b43/pio.h +0 -40
index 7dd649c..7b3c42f 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/b43/xmit.c +1 -1
index f4e9695..51d6897 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/iwlwifi/iwl-4965.c +8 -3
index 852753b..a5ed51a 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/iwlwifi/iwl-5000.c +2 -0
index 2f89b62..2a8eb2f 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/iwlwifi/iwl-scan.c +12 -15
index 4f3a108..71c0ad4 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/iwlwifi/iwl-tx.c +0 -1
index e143adc..cc96d13 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/iwlwifi/iwl3945-base.c +1 -1
index 064d3cd..619590d 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pci.c +23 -1
index 4493060..bd667d2 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pcie/aer/aer_inject.c +19 -1
index 0d91a8a..b8fb987 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/Kconfig +8 -2
index 55ca39d..6e2a4ca 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/eeepc-laptop.c +110 -0

110 lines not on this page · raw message

drivers/platform/x86/thinkpad_acpi.c +247 -192

439 lines not on this page · raw message

drivers/scsi/libiscsi.c +3 -2
index f1a4246..c7a6a89 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/scsi_ioctl.c +3 -0
index b98f763..d9564fb 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/scsi_transport_fc.c +3 -2
index 64084aa..db02e31 100644

Lines of this file are not shown. View the raw message.

drivers/staging/comedi/drivers/usbdux.c +12 -8
index cca4e86..5c9c1bc 100644

Lines of this file are not shown. View the raw message.

drivers/usb/class/cdc-acm.c +22 -21

43 lines not on this page · raw message

drivers/usb/class/cdc-acm.h +0 -1
index c4a0ee8..519eb63 100644

Lines of this file are not shown. View the raw message.

drivers/video/backlight/mbp_nvidia_bl.c +45 -0

45 lines not on this page · raw message

drivers/watchdog/hpwdt.c +1 -1
index a6c5674..0b91907 100644

Lines of this file are not shown. View the raw message.

drivers/watchdog/iTCO_wdt.c +93 -6

99 lines not on this page · raw message

fs/9p/vfs_file.c +1 -1
index 3902bf4..5fb43bd 100644

Lines of this file are not shown. View the raw message.

fs/block_dev.c +2 -1
index 34e2d20..9b9e3dc 100644

Lines of this file are not shown. View the raw message.

fs/cifs/cifssmb.c +18 -1
index 941441d..4e6dbab 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/inode.c +56 -52

108 lines not on this page · raw message

fs/ecryptfs/super.c +0 -1
index b15a43a..1a037f7 100644

Lines of this file are not shown. View the raw message.

fs/ext3/super.c +0 -2
index 427496c..ca3068f 100644

Lines of this file are not shown. View the raw message.

fs/ext3/xattr.c +4 -3
index 545e37c..387d92d 100644

Lines of this file are not shown. View the raw message.

fs/ext4/ext4.h +3 -3
index d0a2afb..4a825c1 100644

Lines of this file are not shown. View the raw message.

fs/ext4/extents.c +1 -1
index 8b8bae4..9333dc9 100644

Lines of this file are not shown. View the raw message.

fs/ext4/inode.c +10 -3
index e233879..16efcee 100644

Lines of this file are not shown. View the raw message.

fs/fat/namei_vfat.c +3 -3
index f565f24..72646e2 100644

Lines of this file are not shown. View the raw message.

fs/fs-writeback.c +17 -0
index 9d5360c..bff5f77 100644

Lines of this file are not shown. View the raw message.

fs/nfs/client.c +2 -1
index 99ea196..69d6a46 100644

Lines of this file are not shown. View the raw message.

fs/nfs/dir.c +1 -1
index f360e9c..dff7f0d 100644

Lines of this file are not shown. View the raw message.

fs/nfs/nfs4proc.c +3 -1
index 6c20059..3c7581b 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfs4xdr.c +9 -3
index 0fbd50c..c598ab9 100644

Lines of this file are not shown. View the raw message.

fs/ocfs2/acl.c +72 -5

77 lines not on this page · raw message

fs/ocfs2/suballoc.c +8 -5
index c30b644..79b5dac 100644

Lines of this file are not shown. View the raw message.

fs/proc/base.c +3 -2
index 6d71c67..13b0378 100644

Lines of this file are not shown. View the raw message.

fs/quota/dquot.c +6 -6
index 2ed79a9..4fdb0eb 100644

Lines of this file are not shown. View the raw message.

fs/xfs/linux-2.6/xfs_acl.c +2 -1
index b23a545..4c7b145 100644

Lines of this file are not shown. View the raw message.

fs/xfs/linux-2.6/xfs_aops.c +82 -36

118 lines not on this page · raw message

fs/xfs/linux-2.6/xfs_iops.c +3 -3
index cd42ef7..1f3b4b8 100644

Lines of this file are not shown. View the raw message.

fs/xfs/linux-2.6/xfs_super.c +56 -4

60 lines not on this page · raw message

fs/xfs/linux-2.6/xfs_sync.c +88 -106

194 lines not on this page · raw message

fs/xfs/linux-2.6/xfs_sync.h +1 -2
index 27920eb..ea932b4 100644

Lines of this file are not shown. View the raw message.

fs/xfs/quota/xfs_qm_bhv.c +1 -1
index a534663..97b410c 100644

Lines of this file are not shown. View the raw message.

fs/xfs/quota/xfs_qm_syscalls.c +1 -1
index 5d1a3b9..f99cfa4 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_alloc.c +21 -31

52 lines not on this page · raw message

fs/xfs/xfs_dfrag.c +90 -16

106 lines not on this page · raw message

fs/xfs/xfs_fsops.c +1 -1
index 2d0b3e1..6f83f58 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_iget.c +21 -10
index 80e5264..a04a72f 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_inode.c +15 -2
index b92a4fa..523a1ae 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_iomap.c +8 -1
index 67ae555..7294abc 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_log_recover.c +7 -17
index fb17f82..b5b0d80 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_mount.c +1 -1
index 8b6c9e8..4d509f7 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_mount.h +1 -0
index a6c023b..1e6094f 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_rw.h +0 -7
index f5e4874..726014d 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_trans.c +4 -3
index 66b8493..237badc 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_trans.h +1 -1
index ed47fc7..a0574f5 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_vnodeops.c +67 -112

179 lines not on this page · raw message

fs/xfs/xfs_vnodeops.h +0 -1
index a9e102d..167a467 100644

Lines of this file are not shown. View the raw message.

include/drm/drm_pciids.h +2 -0
index e6f3b12..0cbdccc 100644

Lines of this file are not shown. View the raw message.

include/linux/freezer.h +5 -2
index 5a361f8..da7e52b 100644

Lines of this file are not shown. View the raw message.

include/linux/fs.h +1 -0
index 692a3ee..9b67805 100644

Lines of this file are not shown. View the raw message.

include/linux/kvm_host.h +6 -1
index b7bbb5d..c728a50 100644

Lines of this file are not shown. View the raw message.

include/linux/module.h +1 -1
index 482efc8..460df15 100644

Lines of this file are not shown. View the raw message.

include/linux/nfs_fs_sb.h +1 -0
index 320569e..b26dc51 100644

Lines of this file are not shown. View the raw message.

include/linux/pci.h +5 -0
index 2547515..e07d194 100644

Lines of this file are not shown. View the raw message.

include/linux/pci_ids.h +3 -0
index 1b7f2a7..63adefe 100644

Lines of this file are not shown. View the raw message.

include/linux/resource.h +6 -2
index 40fc7e6..f1e914e 100644

Lines of this file are not shown. View the raw message.

include/linux/writeback.h +1 -0
index 66ebddc..dc52482 100644

Lines of this file are not shown. View the raw message.

include/scsi/scsi_bsg_fc.h +1 -1
index a4b2333..91a4e4f 100644

Lines of this file are not shown. View the raw message.

kernel/cgroup_freezer.c +6 -3
index 59e9ef6..eb3f34d 100644

Lines of this file are not shown. View the raw message.

kernel/irq/manage.c +10 -0
index bde4c66..986519e 100644

Lines of this file are not shown. View the raw message.

kernel/lockdep.c +3 -3
index 9af5672..f672d51 100644

Lines of this file are not shown. View the raw message.

kernel/module.c +1 -1
index dfa33e8..a4aae35 100644

Lines of this file are not shown. View the raw message.

kernel/power/process.c +1 -1
index cc2e553..e7cd671 100644

Lines of this file are not shown. View the raw message.

kernel/sched.c +12 -7
index ed61192..34d924e 100644

Lines of this file are not shown. View the raw message.

mm/readahead.c +1 -1
index 337b20e..fe1a069 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_input.c +2 -4
index d86784b..2433bcd 100644

Lines of this file are not shown. View the raw message.

net/mac80211/scan.c +10 -8
index 1a41909..fd6411d 100644

Lines of this file are not shown. View the raw message.

net/mac80211/tx.c +6 -0
index 441f68e..d3efff2 100644

Lines of this file are not shown. View the raw message.

net/mac80211/util.c +14 -6
index 553cffe..31b1085 100644

Lines of this file are not shown. View the raw message.

net/sunrpc/svc_xprt.c +5 -8
index dafd341..3fbd6ba 100644

Lines of this file are not shown. View the raw message.

net/sunrpc/svcauth_unix.c +30 -23

53 lines not on this page · raw message

net/sunrpc/svcsock.c +1 -0
index 1c246a4..70b0a22 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/hda_intel.c +8 -0
index dd3a8e7..eb998c2 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_analog.c +8 -0
index 2377e75..bd0794e 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_realtek.c +10 -1
index 26c70d6..3d1ad71 100644

Lines of this file are not shown. View the raw message.

sound/pci/mixart/mixart.c +14 -10
index a83d196..32f9853 100644

Lines of this file are not shown. View the raw message.

sound/usb/usbmidi.c +18 -6
index b8958f9..64d8d2e 100644

Lines of this file are not shown. View the raw message.

virt/kvm/kvm_main.c +8 -5
index 7495ce3..4f3434f 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.