Linux 2.6.33.8
Subsystems (142)
I'm announcing the release of the 2.6.33.8 kernel.
This is primarily for the use of those people who are stuck using the .33-rt kernel. Anyone else who really wants to use the .33 kernel tree is welcome to use this one as well.
I'll be maintaining it for a while longer as it looks like the -rt tree isn't moving forward to any newer kernel any time soon.
The updated 2.6.33.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/longterm/linux-2.6.33.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/longterm/linux-2.6.33.y.git;a=summarythanks,
greg k-h
------------
MAINTAINERS | 6 Makefile | 2 arch/arm/include/asm/assembler.h | 2 arch/arm/kernel/signal.c | 4 arch/arm/lib/findbit.S | 6 arch/ia64/include/asm/compat.h | 2 arch/ia64/kernel/fsys.S | 30 ++- arch/mips/alchemy/mtx-1/platform.c | 9 + arch/mips/include/asm/compat.h | 2 arch/parisc/include/asm/compat.h | 2 arch/powerpc/include/asm/compat.h | 2 arch/powerpc/include/asm/hvcall.h | 1 arch/powerpc/include/asm/reg.h | 1 arch/powerpc/kernel/cpu_setup_6xx.S | 40 ++-- arch/powerpc/kernel/crash.c | 11 + arch/powerpc/kernel/machine_kexec_64.c | 25 ++ arch/powerpc/kernel/perf_event.c | 24 ++ arch/powerpc/kernel/ppc970-pmu.c | 2 arch/powerpc/kernel/setup_64.c | 17 +- arch/powerpc/platforms/pseries/hvCall.S | 38 ++++ arch/powerpc/platforms/pseries/lpar.c | 70 ++++++-- arch/powerpc/platforms/pseries/plpar_wrappers.h | 18 ++ arch/powerpc/sysdev/fsl_rio.c | 1 arch/s390/include/asm/compat.h | 2 arch/s390/include/asm/processor.h | 5 arch/s390/include/asm/vdso.h | 2 arch/s390/kernel/traps.c | 37 ---- arch/s390/kernel/vtime.c | 19 ++ arch/sparc/include/asm/compat.h | 2 arch/um/drivers/ubd_kern.c | 9 - arch/um/kernel/uml.lds.S | 2 arch/um/os-Linux/time.c | 2 arch/x86/ia32/ia32entry.S | 22 +- arch/x86/include/asm/acpi.h | 1 arch/x86/include/asm/amd_iommu_proto.h | 6 arch/x86/include/asm/amd_iommu_types.h | 12 + arch/x86/include/asm/compat.h | 2 arch/x86/include/asm/cpufeature.h | 2 arch/x86/include/asm/io.h | 1 arch/x86/include/asm/mmu_context.h | 5 arch/x86/include/asm/pgtable-3level.h | 11 - arch/x86/include/asm/pgtable_32.h | 1 arch/x86/include/asm/processor.h | 23 -- arch/x86/include/asm/pvclock.h | 1 arch/x86/include/asm/smp.h | 9 - arch/x86/include/asm/smpboot_hooks.h | 2 arch/x86/include/asm/trampoline.h | 5 arch/x86/kernel/Makefile | 2 arch/x86/kernel/acpi/boot.c | 14 + arch/x86/kernel/amd_iommu.c | 4 arch/x86/kernel/amd_iommu_init.c | 67 +++++-- arch/x86/kernel/apic/apic.c | 8 arch/x86/kernel/apic/io_apic.c | 14 + arch/x86/kernel/apic/probe_64.c | 7 arch/x86/kernel/cpu/amd.c | 3 arch/x86/kernel/cpu/common.c | 4 arch/x86/kernel/cpu/cpu.h | 1 arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c | 1 arch/x86/kernel/cpu/intel.c | 1 arch/x86/kernel/cpu/mcheck/mce_amd.c | 9 - arch/x86/kernel/cpu/mtrr/cleanup.c | 2 arch/x86/kernel/cpu/mtrr/main.c | 10 + arch/x86/kernel/crash_dump_64.c | 3 arch/x86/kernel/e820.c | 10 - arch/x86/kernel/early-quirks.c | 21 +- arch/x86/kernel/head_32.S | 8 arch/x86/kernel/hpet.c | 2 arch/x86/kernel/hw_breakpoint.c | 4 arch/x86/kernel/olpc.c | 5 arch/x86/kernel/pvclock.c | 5 arch/x86/kernel/reboot.c | 2 arch/x86/kernel/setup.c | 2 arch/x86/kernel/smp.c | 15 + arch/x86/kernel/smpboot.c | 117 +++++++++++-- arch/x86/kernel/trampoline.c | 17 ++ arch/x86/kvm/x86.c | 2 arch/x86/mm/fault.c | 7 arch/x86/mm/pgtable.c | 3 arch/x86/mm/srat_64.c | 8 arch/x86/vdso/Makefile | 4 arch/x86/xen/enlighten.c | 4 arch/x86/xen/smp.c | 6 arch/x86/xen/time.c | 2 block/blk-map.c | 2 block/blk-settings.c | 2 block/bsg.c | 2 block/cfq-iosched.c | 4 block/scsi_ioctl.c | 34 ++-- drivers/acpi/acpica/aclocal.h | 1 drivers/acpi/acpica/dswexec.c | 19 ++ drivers/acpi/blacklist.c | 16 + drivers/acpi/ec.c | 3 drivers/ata/ahci.c | 5 drivers/ata/libata-core.c | 24 +- drivers/ata/libata-scsi.c | 5 drivers/ata/pata_mpc52xx.c | 2 drivers/block/pktcdvd.c | 2 drivers/bluetooth/hci_ldisc.c | 7 drivers/char/hpet.c | 17 ++ drivers/char/hvc_iucv.c | 6 drivers/char/mem.c | 3 drivers/char/pcmcia/synclink_cs.c | 2 drivers/char/tpm/tpm.c | 10 - drivers/char/tpm/tpm_tis.c | 24 ++ drivers/char/tty_buffer.c | 14 + drivers/char/tty_ldisc.c | 51 +++++- drivers/char/vt_ioctl.c | 11 - drivers/crypto/padlock-aes.c | 2 drivers/dma/mv_xor.c | 4 drivers/edac/amd64_edac.c | 2 drivers/firewire/core-card.c | 11 + drivers/firewire/ohci.c | 60 +++++-- drivers/gpu/drm/Kconfig | 3 drivers/gpu/drm/drm_crtc.c | 10 - drivers/gpu/drm/drm_irq.c | 3 drivers/gpu/drm/i915/intel_lvds.c | 8 drivers/gpu/drm/radeon/atombios_dp.c | 4 drivers/gpu/drm/radeon/radeon_atombios.c | 16 + drivers/gpu/drm/radeon/radeon_display.c | 6 drivers/gpu/drm/ttm/ttm_bo.c | 84 ++++++++- drivers/gpu/drm/ttm/ttm_bo_util.c | 1 drivers/hwmon/adm1026.c | 20 +- drivers/hwmon/f71882fg.c | 2 drivers/hwmon/lm85.c | 1 drivers/hwmon/via686a.c | 14 + drivers/i2c/i2c-core.c | 14 + drivers/infiniband/core/cm.c | 1 drivers/infiniband/core/cma.c | 15 + drivers/infiniband/core/uverbs_cmd.c | 99 ++++++----- drivers/infiniband/hw/cxgb3/iwch_cm.c | 6 drivers/input/joydev.c | 3 drivers/input/mouse/bcm5974.c | 40 ++++ drivers/isdn/hisax/config.c | 18 +- drivers/isdn/hisax/hisax.h | 1 drivers/isdn/i4l/isdn_tty.c | 6 drivers/leds/leds-ss4200.c | 1 drivers/md/dm-mpath.c | 12 - drivers/md/dm.c | 5 drivers/md/md.c | 19 +- drivers/md/raid1.c | 1 drivers/media/dvb/dvb-usb/dib0700_devices.c | 21 ++ drivers/media/dvb/frontends/dib7000m.c | 19 ++ drivers/media/dvb/frontends/dib7000m.h | 15 + drivers/media/dvb/ttpci/av7110_ca.c | 2 drivers/media/radio/radio-aimslab.c | 24 -- drivers/media/video/cx231xx/cx231xx-cards.c | 14 - drivers/media/video/em28xx/em28xx-cards.c | 4 drivers/media/video/ivtv/ivtvfb.c | 2 drivers/media/video/v4l2-compat-ioctl32.c | 32 ++- drivers/message/fusion/mptctl.c | 8 drivers/message/fusion/mptscsih.c | 9 - drivers/mfd/ucb1x00-ts.c | 12 + drivers/misc/sgi-xp/xpc_partition.c | 25 +- drivers/misc/sgi-xp/xpc_uv.c | 17 ++ drivers/mmc/host/sdhci-s3c.c | 6 drivers/mtd/chips/jedec_probe.c | 32 +-- drivers/mtd/nand/omap2.c | 2 drivers/mtd/onenand/generic.c | 2 drivers/mtd/onenand/omap2.c | 2 drivers/net/atlx/atl1.c | 5 drivers/net/b44.c | 4 drivers/net/benet/be.h | 2 drivers/net/benet/be_main.c | 18 +- drivers/net/bnx2.c | 20 ++ drivers/net/e1000e/netdev.c | 3 drivers/net/igb/igb_main.c | 2 drivers/net/ixgbe/ixgbe_main.c | 5 drivers/net/netxen/netxen_nic_init.c | 3 drivers/net/r6040.c | 12 - drivers/net/r8169.c | 12 + drivers/net/wireless/ath/ath9k/hw.c | 4 drivers/net/wireless/iwlwifi/iwl-agn.c | 15 + drivers/net/wireless/iwlwifi/iwl-helpers.h | 6 drivers/net/wireless/orinoco/main.c | 6 drivers/net/wireless/orinoco/wext.c | 4 drivers/net/wireless/p54/eeprom.c | 4 drivers/net/wireless/p54/p54pci.c | 14 + drivers/net/wireless/p54/p54usb.c | 22 ++ drivers/net/wireless/p54/txrx.c | 2 drivers/net/wireless/rt2x00/rt73usb.c | 1 drivers/pci/dmar.c | 5 drivers/pci/pci-stub.c | 3 drivers/pci/pci-sysfs.c | 24 ++ drivers/pci/pci.h | 7 drivers/pci/proc.c | 2 drivers/pci/quirks.c | 156 +++++++++++------- drivers/platform/x86/acer-wmi.c | 4 drivers/platform/x86/asus_acpi.c | 8 drivers/platform/x86/tc1100-wmi.c | 2 drivers/platform/x86/wmi.c | 2 drivers/power/ds2760_battery.c | 2 drivers/power/olpc_battery.c | 8 drivers/rtc/rtc-cmos.c | 16 + drivers/s390/char/keyboard.c | 3 drivers/s390/cio/qdio.h | 6 drivers/s390/cio/qdio_main.c | 43 +++-- drivers/scsi/bfa/bfa_core.c | 22 ++ drivers/scsi/device_handler/scsi_dh_alua.c | 5 drivers/scsi/gdth.c | 8 drivers/scsi/libsas/sas_ata.c | 1 drivers/scsi/libsas/sas_scsi_host.c | 1 drivers/scsi/mpt2sas/mpt2sas_base.c | 24 ++ drivers/scsi/mpt2sas/mpt2sas_scsih.c | 4 drivers/scsi/scsi_lib.c | 3 drivers/scsi/scsi_sysfs.c | 3 drivers/scsi/sd.c | 24 ++ drivers/serial/8250.c | 3 drivers/ssb/b43_pci_bridge.c | 1 drivers/ssb/driver_chipcommon_pmu.c | 17 +- drivers/ssb/pci.c | 20 -- drivers/ssb/pcmcia.c | 2 drivers/staging/asus_oled/asus_oled.c | 8 drivers/staging/comedi/drivers/jr3_pci.c | 7 drivers/staging/comedi/drivers/ni_labpc.c | 3 drivers/staging/frontier/tranzport.c | 2 drivers/staging/hv/blkvsc_drv.c | 1 drivers/staging/line6/control.c | 204 ++++++++++++------------ drivers/staging/line6/midi.c | 4 drivers/staging/line6/pod.c | 32 +-- drivers/staging/line6/toneport.c | 4 drivers/staging/line6/variax.c | 12 - drivers/staging/rt2860/chips/rt3090.c | 3 drivers/staging/rt2860/chips/rt30xx.c | 4 drivers/staging/rt2860/rt_main_dev.c | 2 drivers/staging/rt2860/usb_main_dev.c | 1 drivers/staging/rtl8187se/r8185b_init.c | 30 ++- drivers/staging/samsung-laptop/samsung-laptop.c | 2 drivers/staging/usbip/usbip_event.c | 16 - drivers/staging/usbip/vhci.h | 6 drivers/staging/usbip/vhci_hcd.c | 70 +++++--- drivers/staging/usbip/vhci_rx.c | 15 + drivers/usb/atm/ueagle-atm.c | 6 drivers/usb/core/devio.c | 7 drivers/usb/core/file.c | 35 +--- drivers/usb/core/hub.c | 35 +++- drivers/usb/core/message.c | 15 - drivers/usb/core/quirks.c | 8 drivers/usb/gadget/atmel_usba_udc.c | 3 drivers/usb/gadget/printer.c | 14 - drivers/usb/host/ehci-hcd.c | 29 ++- drivers/usb/host/isp1760-hcd.c | 22 +- drivers/usb/host/isp1760-hcd.h | 1 drivers/usb/host/xhci-ring.c | 50 ++++- drivers/usb/misc/cypress_cy7c63.c | 6 drivers/usb/misc/iowarrior.c | 3 drivers/usb/misc/sisusbvga/sisusb.c | 1 drivers/usb/misc/trancevibrator.c | 2 drivers/usb/misc/usbled.c | 2 drivers/usb/misc/usbsevseg.c | 10 - drivers/usb/misc/uss720.c | 4 drivers/usb/musb/blackfin.c | 4 drivers/usb/musb/omap2430.c | 1 drivers/usb/serial/ch341.c | 11 + drivers/usb/serial/cp210x.c | 18 -- drivers/usb/serial/digi_acceleport.c | 10 - drivers/usb/serial/ftdi_sio.c | 76 ++++++++ drivers/usb/serial/ftdi_sio_ids.h | 64 ++++++- drivers/usb/serial/generic.c | 20 ++ drivers/usb/serial/io_edgeport.c | 4 drivers/usb/serial/keyspan_pda.c | 17 -- drivers/usb/serial/kobil_sct.c | 2 drivers/usb/serial/opticon.c | 6 drivers/usb/serial/option.c | 25 ++ drivers/usb/serial/pl2303.c | 13 + drivers/usb/serial/pl2303.h | 2 drivers/usb/serial/sierra.c | 3 drivers/usb/serial/spcp8x5.c | 6 drivers/usb/serial/ti_usb_3410_5052.c | 2 drivers/usb/serial/visor.c | 12 + drivers/usb/storage/sierra_ms.c | 2 drivers/usb/storage/unusual_cypress.h | 5 drivers/usb/storage/unusual_devs.h | 39 ++++ drivers/video/backlight/backlight.c | 12 - drivers/video/efifb.c | 61 +++++-- drivers/video/sis/sis_main.c | 3 drivers/video/via/accel.c | 7 drivers/video/via/ioctl.c | 2 drivers/virtio/virtio_pci.c | 21 -- drivers/xen/events.c | 2 fs/aio.c | 3 fs/bio.c | 23 ++ fs/btrfs/super.c | 5 fs/char_dev.c | 4 fs/cifs/cifsproto.h | 2 fs/cifs/cifssmb.c | 4 fs/cifs/file.c | 17 +- fs/ecryptfs/inode.c | 6 fs/eventpoll.c | 95 +++++++++++ fs/exec.c | 19 ++ fs/ext2/namei.c | 9 - fs/ext3/namei.c | 2 fs/ext4/balloc.c | 3 fs/ext4/ext4.h | 2 fs/ext4/extents.c | 9 - fs/ext4/mballoc.h | 2 fs/file_table.c | 2 fs/fuse/file.c | 134 ++++++++++++++- fs/fuse/fuse_i.h | 6 fs/nfs/direct.c | 34 ++-- fs/nfs/file.c | 4 fs/nfs/mount_clnt.c | 4 fs/nfsd/nfs3xdr.c | 6 fs/nfsd/nfs4xdr.c | 12 - fs/nfsd/vfs.c | 2 fs/nfsd/xdr4.h | 21 +- fs/notify/inotify/inotify_user.c | 7 fs/ocfs2/refcounttree.c | 7 fs/ocfs2/stack_user.c | 2 fs/ocfs2/symlink.c | 2 fs/partitions/ldm.c | 5 fs/partitions/mac.c | 17 +- fs/pipe.c | 2 fs/proc/array.c | 5 fs/proc/task_mmu.c | 8 fs/reiserfs/ioctl.c | 7 fs/reiserfs/xattr_acl.c | 6 fs/xfs/linux-2.6/xfs_ioctl.c | 2 include/drm/drmP.h | 2 include/drm/drm_pciids.h | 3 include/drm/ttm/ttm_bo_api.h | 4 include/keys/rxrpc-type.h | 1 include/linux/blkdev.h | 4 include/linux/compat.h | 2 include/linux/cred.h | 21 -- include/linux/ftrace.h | 2 include/linux/ieee80211.h | 2 include/linux/klist.h | 2 include/linux/mmzone.h | 13 + include/linux/netdevice.h | 4 include/linux/pci_ids.h | 4 include/linux/ssb/ssb.h | 5 include/linux/ssb/ssb_driver_chipcommon.h | 15 + include/linux/usb/serial.h | 3 include/linux/vmstat.h | 22 ++ include/net/sctp/sm.h | 1 include/net/sctp/structs.h | 3 include/net/sock.h | 1 include/net/udp.h | 1 include/net/x25.h | 4 init/calibrate.c | 6 ipc/compat.c | 6 ipc/compat_mq.c | 5 ipc/sem.c | 2 ipc/shm.c | 1 kernel/compat.c | 22 ++ kernel/cpuset.c | 7 kernel/cred.c | 41 ++++ kernel/exit.c | 22 ++ kernel/futex.c | 31 +-- kernel/hrtimer.c | 13 + kernel/hw_breakpoint.c | 3 kernel/irq/manage.c | 2 kernel/irq/proc.c | 2 kernel/latencytop.c | 17 -- kernel/power/snapshot.c | 7 kernel/power/user.c | 2 kernel/printk.c | 2 kernel/ptrace.c | 2 kernel/sched.c | 17 -- kernel/signal.c | 43 +++-- kernel/smp.c | 58 ++++++ kernel/sys.c | 2 kernel/time/tick-broadcast.c | 10 + kernel/time/tick-common.c | 6 kernel/time/tick-internal.h | 3 kernel/timer.c | 6 kernel/trace/ftrace.c | 52 +++++- kernel/trace/ring_buffer.c | 2 kernel/trace/trace.c | 10 + lib/percpu_counter.c | 1 mm/filemap.c | 3 mm/internal.h | 2 mm/memory.c | 32 +++ mm/memory_hotplug.c | 2 mm/mempolicy.c | 2 mm/mlock.c | 8 mm/mmap.c | 16 + mm/mmzone.c | 21 ++ mm/mprotect.c | 2 mm/mremap.c | 4 mm/nommu.c | 1 mm/page_alloc.c | 33 ++- mm/percpu.c | 2 mm/swapfile.c | 6 mm/vmalloc.c | 9 + mm/vmscan.c | 53 +++++- mm/vmstat.c | 15 + net/can/bcm.c | 2 net/compat.c | 10 - net/core/dev.c | 20 +- net/core/ethtool.c | 4 net/core/iovec.c | 17 -- net/core/rtnetlink.c | 3 net/core/stream.c | 8 net/dccp/input.c | 7 net/decnet/af_decnet.c | 2 net/econet/af_econet.c | 91 ++++------ net/ipv4/datagram.c | 5 net/ipv4/inet_timewait_sock.c | 2 net/ipv4/ip_gre.c | 1 net/ipv4/ip_output.c | 19 +- net/ipv4/ipip.c | 1 net/ipv4/route.c | 7 net/ipv4/tcp.c | 11 - net/ipv4/tcp_input.c | 2 net/ipv4/udp.c | 44 +++++ net/ipv4/xfrm4_policy.c | 4 net/ipv6/datagram.c | 7 net/ipv6/ip6_output.c | 18 +- net/ipv6/route.c | 28 ++- net/ipv6/sit.c | 2 net/ipv6/udp.c | 10 + net/irda/iriap.c | 3 net/irda/parameters.c | 4 net/mac80211/rx.c | 4 net/netfilter/nf_conntrack_core.c | 3 net/netfilter/nf_log.c | 4 net/phonet/pep.c | 3 net/rds/page.c | 27 --- net/rds/rdma.c | 2 net/rose/af_rose.c | 4 net/sctp/auth.c | 8 net/sctp/input.c | 22 ++ net/sctp/output.c | 1 net/sctp/sm_sideeffect.c | 35 ++++ net/sctp/transport.c | 2 net/socket.c | 4 net/sunrpc/cache.c | 4 net/sunrpc/sched.c | 14 - net/sunrpc/svc_xprt.c | 9 - net/wireless/wext-priv.c | 2 net/x25/af_x25.c | 47 +++++ net/x25/x25_facilities.c | 32 ++- net/x25/x25_in.c | 17 +- net/x25/x25_link.c | 4 security/integrity/ima/ima_policy.c | 2 security/keys/keyctl.c | 6 security/selinux/hooks.c | 11 + security/selinux/nlmsgtab.c | 2 sound/core/control.c | 5 sound/core/hrtimer.c | 5 sound/core/rawmidi.c | 4 sound/oss/soundcard.c | 4 sound/pci/au88x0/au88x0_pcm.c | 24 ++ sound/pci/ctxfi/ctatc.c | 2 sound/pci/ctxfi/ctdaio.c | 2 sound/pci/ctxfi/ctmixer.c | 19 -- sound/pci/hda/hda_eld.c | 2 sound/pci/hda/hda_intel.c | 2 sound/pci/hda/patch_analog.c | 1 sound/pci/hda/patch_conexant.c | 8 sound/pci/hda/patch_realtek.c | 12 + sound/pci/hda/patch_sigmatel.c | 13 + sound/pci/intel8x0.c | 6 sound/pci/oxygen/oxygen.c | 4 sound/pci/rme9652/hdsp.c | 1 sound/pci/rme9652/hdspm.c | 1 sound/soc/blackfin/bf5xx-ac97.c | 4 sound/soc/codecs/wm8990.c | 10 - sound/usb/caiaq/audio.c | 2 sound/usb/caiaq/midi.c | 2 sound/usb/usx2y/us122l.c | 41 ++-- 462 files changed, 4039 insertions(+), 1589 deletions(-)
Ajit Khaparde (1):
be2net: Maintain tx and rx counters in driver
Akinobu Mita (1):
ext4: consolidate in_range() definitions
Alan Cox (1):
bluetooth: Fix missing NULL check
Alan Stern (10):
USB: fix bug in initialization of interface minor numbers
USB: disable endpoints after unbinding interfaces, not before
USB: accept some invalid ep0-maxpacket values
USB: EHCI: fix obscure race in ehci_endpoint_disable
USB: usb-storage: unusual_devs entry for CamSport Evo
USB: usb-storage: unusual_devs entry for Coby MP3 player
USB: EHCI: fix DMA deallocation bug
USB: g_printer: fix bug in module parameter definitions
USB: prevent buggy hubs from crashing the USB stack
USB: add quirks entry for Keytouch QWERTY Panel
Alex Deucher (7):
drm/kms: remove spaces from connector names (v2) drm/radeon/kms: add quirk for Mac Radeon HD 2600 card drm/radeon/kms: make the mac rv630 quirk generic drm/radeon/kms: add pll debugging output
drm/radeon: remove 0x4243 pci id
drm/radeon/kms: fix s/r issues with bios scratch regs
Revert "drm/radeon/kms: switch back to min->max pll post divider iteration"
Alexander Duyck (1):
igb: only use vlan_gro_receive if vlans are registered
Alexey Starikovskiy (1):
ACPI: EC: Add another dmi match entry for MSI hardware
Alok Kataria (1):
x86, kexec: Make sure to stop all CPUs before exiting the kernel
Alon Ziv (1):
USB: opticon: Fix long-standing bugs in opticon driver
Amitkumar Karwar (1):
ieee80211: correct IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK macro
Anders Larsen (1):
USB: cp210x: Add WAGO 750-923 Service Cable device ID
Andre Przywara (1):
x86, cpu: Fix renamed, not-yet-shipping AMD CPUID feature bit
Andreas Herrmann (4):
x86, mtrr: Assume SYS_CFG[Tom2ForceMemTypeWB] exists on all future AMD CPUs x86, amd: Fix panic on AMD CPU family 0x15
x86 quirk: Fix polarity for IRQ0 pin2 override on SB800 systems x86, quirk: Fix SB600 revision check
Andrey Vagin (1):
x86/mm: Handle mm_fault_error() in kernel space
Anton Blanchard (7):
powerpc: Fix hcall tracepoint recursion
kernel/smp.c: fix smp_call_function_many() SMP race
RxRPC: Fix v1 keys
powerpc: Use more accurate limit for first segment memory allocations powerpc/kdump: CPUs assume the context of the oopsing CPU powerpc/kdump: Use chip->shutdown to disable IRQs
perf, powerpc: Handle events that raise an exception without overflowing
Antony Pavlov (1):
mtd: jedec_probe: Change variable name from cfi_p to cfi
Apollon Oikonomopoulos (1):
x25: decrement netdev reference counts on unload
Axel Lin (1):
mtd: add "platform:" prefix for platform modalias
Ben Hutchings (3):
r6040: Fix multicast list iteration when hash filter is used
net: NETIF_F_HW_CSUM does not imply FCoE CRC offload
PCI: sysfs: Fix failure path for addition of "vpd" attribute
Benjamin Herrenschmidt (1):
powerpc: Fix some 6xx/7xxx CPU setup functions
Benjamin Li (1):
bnx2: Fix netpoll crash.
Bjørn Mork (1):
USB: io_edgeport: fix the reported firmware major and minor
Bob Moore (1):
ACPICA: Fix Scope() op in module level code
Borislav Petkov (2):
x86, AMD, MCE thresholding: Fix the MCi_MISCj iteration order
amd64_edac: Fix interleaving check
Brandeburg, Jesse (1):
PCI: remove quirk for pre-production systems
Brian King (1):
scsi_dh_alua: Add IBM Power Virtual SCSI ALUA device to dev list
Bruce Allan (1):
e1000e: disable broken PHY wakeup for ICH10 LOMs, use MAC wakeup instead
Chen, Chien-Chia (2):
Staging: rt3090: Fix RT3090 scan AP function
Staging: rt2860: fix previous patch error
Chris Wilson (1):
drm/i915: Add dependency on CONFIG_TMPFS
Christian Lamparter (6):
p54usb: fix off-by-one on !CONFIG_PM
p54usb: add five more USBIDs
p54usb: add 5 more USBIDs
p54: fix sequence no. accounting off-by-one error
p54pci: update receive dma buffers before and after processing
p54usb: add Senao NUB-350 usbid
Christof Schmitt (1):
Fix race when removing SCSI devices
Christoph Fritz (1):
ssb: fix NULL ptr deref when pcihost_wrapper is used
Christoph Lameter (1):
mm: page allocator: calculate a better estimate of NR_FREE_PAGES when memory is low and kswapd is awake
Chuck Lever (2):
NFS: Fix panic after nfs_umount()
NFS: Fix "kernel BUG at fs/aio.c:554!"
Clemens Ladisch (5):
ALSA: rawmidi: fix oops (use after free) when unloading a driver module
hpet: fix unwanted interrupt due to stale irq status bit
firewire: ohci: fix buffer overflow in AR split packet handling
firewire: ohci: fix race in AR split packet handling
ALSA: hrtimer: handle delayed timer interrupts
Cliff Wickman (2):
mm, x86: Saving vmcore with non-lazy freeing of vmas x86, kdump: Change copy_oldmem_page() to use cached addressing
Colin Ian King (1):
ACPI: enable repeated PCIEXP wakeup by clearing PCIEXP_WAKE_STS on resume
Craig Shelley (2):
USB: CP210x Add two device IDs
USB: CP210x Removed incorrect device IDDJ Delorie (1):
USB: cp210x: Add Renesas RX-Stick device ID
Dan Carpenter (4):
gdth: integer overflow in ioctl
IB/uverbs: Handle large number of entries in poll CQ
av7110: check for negative array offset
keyboard: integer underflow bug
Dan Rosenberg (14):
ALSA: sound/pci/rme9652: prevent reading uninitialized stack memory
ALSA: prevent heap corruption in snd_ctl_new()
ipc: initialize structure memory to zero for compat functions
sys_semctl: fix kernel stack leakage
DECnet: don't leak uninitialized stack byte
V4L/DVB: ivtvfb: prevent reading uninitialized stack memory
x25: Prevent crashing when parsing bad X.25 facilities
rds: Integer overflow in RDS cmsg handling
sound: Prevent buffer overflow in OSS load_mixer_volumes
sctp: Fix out-of-bounds reading in sctp_asoc_get_hmac()
Fix pktcdvd ioctl dev_minor range check drivers/video/sis/sis_main.c: prevent reading uninitialized stack memory drivers/video/via/ioctl.c: prevent reading uninitialized stack memory
xfs: prevent reading uninitialized stack memory
Daniel J Blueman (1):
Fix unprotected access to task credentials in waitid()
Daniel Klaffenbach (1):
ssb: b43-pci-bridge: Add new vendor for BCM4318
Daniel Suchy (1):
USB: ftdi_sio: new VID/PIDs for various Papouch devices
Daniel T Chen (4):
ALSA: ac97: Apply quirk for Dell Latitude D610 binding Master and Headphone controls
ALSA: hda: Use "alienware" model quirk for another SSID
ALSA: hda: Use model=lg quirk for LG P1 Express to enable playback and capture
ALSA: hda: Use LPIB quirk for Dell Inspiron m101z/1120
Dario Lombardo (1):
drivers: update to pl2303 usb-serial to support Motorola cables
Darren Hart (1):
futex: Fix errors in nested key ref-counting
Darrick J. Wong (1):
PCI: fix offset check for sysfs mmapped files
Dave Airlie (2):
drm/radeon: fix PCI ID 5657 to be an RV410
drm: fix unsigned vs signed comparison issue in modeset ctl ioctl.
Dave Hansen (1):
mm/vfs: revalidate page->mapping in do_generic_file_read()
David Henningsson (3):
ALSA: HDA: Add an extra DAC for Realtek ALC887-VD
ALSA: HDA: Fix dmesg output of HDMI supported bits
ALSA: HDA: Add position_fix quirk for an Asus device
David Howells (3):
CRED: Fix get_task_cred() and task_state() to not resurrect dead credentials
KEYS: Fix RCU no-lock warning in keyctl_session_to_parent()
KEYS: Fix bug in keyctl_session_to_parent() if parent has no session keyring
David Kilroy (2):
orinoco: fix TKIP countermeasure behaviour
orinoco: clear countermeasure setting on commit
David Milburn (1):
libsas: fix NCQ mixing with non-NCQ
David Miller (1):
klist: Fix object alignment on 64-bit.
David S. Miller (6):
rose: Fix signedness issues wrt. digi count.
tcp: Fix >4GB writes on 64-bit.
net: Limit socket I/O iovec total length to INT_MAX.
tcp: Increase TCP_MAXSEG socket option minimum.
tcp: Make TCP_MAXSEG minimum more correct.
x25: Do not reference freed memory.
Davide Libenzi (1):
epoll: prevent creating circular epoll structures
Denis Kirjanov (1):
staging: rt2860: Fix incorrect netif_stop_queue usage warning
Dimitris Papastamos (1):
ASoC: WM8990: msleep() takes milliseconds not jiffies
Don Fry (1):
iwlagn: Re-enable RF_KILL interrupt when down
Don Skidmore (1):
ixgbe: fix for 82599 erratum on Header Splitting
Don Zickus (1):
x86: Use u32 instead of long to set reset vector back to 0
Edgar (gimli) Hucek (1):
input: bcm5974: Add support for MacBookAir3
Eduardo Costa (1):
p54usb: New USB ID for Gemtek WUBI-100GW
Eric Dumazet (7):
ip: fix truesize mismatch in ip fragmentation
netxen: dont set skb->truesize
numa: fix slab_node(MPOL_BIND)
netfilter: nf_conntrack: allow nf_ct_alloc_hashtable() to get highmem pages
udp: add rehash on connect()
net: deinit automatic LIST_HEAD
tcp: fix inet_twsk_deschedule()
Eric Paris (3):
SELinux: define permissions for DCB netlink messages
SELinux: do not compute transition labels on mountpoint labeled filesystems
inotify: send IN_UNMOUNT events
Eric Sandeen (1):
ext3: Always set dx_node's fake_dirent explicitly.
Eric W. Biederman (1):
net: Fix ip link add netns oops
Erik J. Staab (1):
ALSA: oxygen: fix analog capture on Claro halo cards
FUJITA Tomonori (1):
bsg: fix incorrect device_status value
Florian Fainelli (2):
r6040: fix r6040_multicast_list
MIPS: MTX-1: Make au1000_eth probe all PHY addresses
Florian Tobias Schandinat (1):
viafb: use proper register for colour when doing fill ops
Francisco Jerez (1):
drm/ttm: Clear the ghost cpu_writers flag on ttm_buffer_object_transfer.
Frederic Weisbecker (4):
reiserfs: fix dependency inversion between inode and reiserfs mutexes
reiserfs: fix unwanted reiserfs lock recursion
reiserfs: don't acquire lock recursively in reiserfs_acl_chmod
x86: Ignore trap bits on single step exceptions
Gabriele Gorla (2):
hwmon: (adm1026) Allow 1 as a valid divider value
hwmon: (adm1026) Fix setting fan_div
Geert Uytterhoeven (1):
radio-aimslab.c needs #include <linux/delay.h>
Gerrit Renker (1):
dccp: fix oops on Reset after close
Graham Gower (1):
drivers/char/vt_ioctl.c: fix VT_OPENQRY error value
Greg Kroah-Hartman (15):
Revert "ssb: Handle Netbook devices where the SPROM address is changed"
Staging: asus_oled: fix up some sysfs attribute permissions
Staging: asus_oled: fix up my fixup for some sysfs attribute permissions
Staging: line6: fix up some sysfs attribute permissions
USB: storage: sierra_ms: fix sysfs file attribute
USB: atm: ueagle-atm: fix up some permissions on the sysfs files
USB: misc: cypress_cy7c63: fix up some sysfs attribute permissions
USB: misc: usbled: fix up some sysfs attribute permissions
USB: misc: trancevibrator: fix up a sysfs attribute permission
USB: misc: usbsevseg: fix up some sysfs attribute permissions
Staging: samsung-laptop: fix up some sysfs attribute permissions
Staging: samsung-laptop: fix up my fixup for some sysfs attribute permissions
Staging: frontier: fix up some sysfs attribute permissions
rt2x00: add device id for windy31 usb device
Linux 2.6.33.8
H. Peter Anvin (6):
x86, cpu: After uncapping CPUID, re-run CPU feature detection
x86-32: Fix dummy trampoline-related inline stubs x86-64, compat: Test %rax for the syscall number, not %eax
compat: Make compat_alloc_user_space() incorporate the access_ok() x86, hotplug: Use mwait to offline a processor, fix the legacy case x86, gcc-4.6: Use gcc -m options when building vdso
Hans de Goede (1):
hwmon/f71882fg: Set platform drvdata to NULL later
Heiko Carstens (3):
nohz/s390: fix arch_needs_cpu() return value on offline cpus
nohz: Fix printk_needs_cpu() return value on offline cpus
nohz: Fix get_next_timer_interrupt() vs cpu hotplug
Hendrik Brueckner (1):
hvc_iucv: allocate memory buffers for IUCV in zone DMA
Herbert Xu (1):
crypto: padlock - Fix AES-CBC handling on odd-block-sized input
Hugh Dickins (2):
x86, mm: Fix CONFIG_VMSPLIT_1G and 2G_OPT trampoline
mm: fix possible cause of a page_mapped BUG
Ian Abbott (1):
staging: comedi: ni_labpc: Use shared IRQ for PCMCIA card
Ian Campbell (1):
xen: ensure that all event channels start off bound to VCPU 0
Ionut Nicu (1):
USB: ti_usb: fix module removal
Ivan Vecera (1):
r8169: use RxFIFO overflow workaround for 8168c chipset.
J. R. Okajima (1):
NFS: fix the return value of nfs_file_fsync()
Jacob Pan (1):
x86: detect scattered cpuid features earlier
Jacques Viviers (1):
USB: serial: ftdi_sio: Vardaan USB RS422/485 converter PID added
James Bottomley (2):
fix medium error problems with some arrays which can cause data corruption
libsas: fix runaway error handler problem
James Jones (1):
ARM: 6482/2: Fix find_next_zero_bit and related assembly
Jan Engelhardt (1):
netfilter: nf_log: avoid oops in (un)bind with invalid nfproto values
Jan Glauber (1):
qdio: use proper QEBSM operand for SIGA-R and SIGA-S
Jan Kara (1):
char: Mark /dev/zero and /dev/kmem as not capable of writeback
Jean Delvare (3):
hwmon: (lm85) Fix ADT7468 frequency table
i2c: Unregister dummy devices last on adapter removal
hwmon: (via686a) Initialize fan_div values
Jean-Christophe PLAGNIOL-VILLARD (2):
USB: atmel_usba_udc: force vbus_pin at -EINVAL when gpio_request failled
USB: ftdi_sio: add ST Micro Connect Lite uart support
Jeff Moyer (1):
aio: check for multiplication overflow in do_io_submit
Jens Axboe (4):
block: limit vec count in bio_kmalloc() and bio_alloc_map_data()
block: take care not to overflow when calculating total iov length
block: check for proper length of iov entries in blk_rq_map_user_iov()
bio: take care not overflow page count when mapping/copying user data
Jeremy Fitzhardinge (3):
tracing/x86: Don't use mcount in pvclock.c
xen: don't bother to stop other cpus on shutdown/reboot x86/pvclock: Zero last_value on resume
Jerome Glisse (1):
radeon/kms: fix dp displayport mode validation
Jianzhao Wang (1):
net: blackhole route should always be recalculated
Jiri Olsa (1):
tty: prevent DOS in the flush_to_ldisc
Jiri Slaby (6):
hpet: unmap unused I/O space
TTY: restore tty_ldisc_wait_idle
TTY: ldisc, fix open flag handling
USB: serial/kobil_sct, fix potential tty NULL dereference
PCI: add more checking to ICH region quirks
PCI: do not create quirk I/O regions below PCIBIOS_MIN_IO for ICH
Jochen Friedrich (1):
mfd: Fix NULL pointer due to non-initialized ucb1x00-ts absinfo
Joel Becker (1):
ocfs2: Don't walk off the end of fast symlinks.
Joerg Roedel (4):
x86/amd-iommu: Set iommu configuration flags in enable-loop x86/amd-iommu: Fix rounding-bug in __unmap_single x86/amd-iommu: Work around S3 BIOS bug
x86-32: Separate 1:1 pagetables from swapper_pg_dir
Johan Hovold (2):
USB: ftdi_sio: revert "USB: ftdi_sio: fix DTR/RTS line modes"
usb: musb: omap2430: fix kernel panic on reboot
Johannes Berg (2):
mac80211: fix use-after-free
wext: fix potential private ioctl memory content leak
John Hughes (1):
x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.
John Tapsell (1):
Staging: rt2870: Add USB ID for Buffalo Airstation WLI-UC-GN
John W. Linville (1):
ssb: do not read SPROM if it does not exist
Jon Thomas (1):
sierra: add new ID for Airprime/Sierra USB IP modem
Josef Bacik (1):
Btrfs: kfree correct pointer during mount option parsing
Joseph Gruher (1):
scsi_dh_alua: fix deadlock in stpg_endio
Josh Hunt (1):
ext2: Fix link count corruption under heavy link+rename load
Julia Lawall (1):
drivers/net/wireless/p54/eeprom.c: Return -ENOMEM on memory allocation failure
Justin Maggard (1):
md: fix return value of rdev_size_change()
Justin TerAvest (1):
cfq-iosched: Don't wait if queue already has requests.
KAMEZAWA Hiroyuki (3):
mm: fix return value of scan_lru_pages in memory unplug
mm: fix is_mem_section_removable() page_order BUG_ON check
mm: fix corruption of hibernation caused by reusing swap during image saving
Kailang Yang (1):
ALSA: hda - Fixed ALC887-VD initial error
Kamal Mostafa (2):
x86: Fix panic when handling "mem={invalid}" param
x86: Emit "mem=nopentium ignored" warning when not supported
Karsten Wiese (1):
ALSA: snd-usb-us122l: Fix missing NULL checks
Kashyap, Desai (7):
mpt2sas: fix Integrated Raid unsynced on shutdown problem
mpt2sas: Fix device removal handshake for zoned devices
mpt2sas: Correct resizing calculation for max_queue_depth
mpt2sas: Kernel Panic during Large Topology discovery
mpt2sas: add missing initialization of scsih_cmds
mptfusion: mptctl_release is required in mptctl.c
mptfusion: Fix Incorrect return value in mptscsih_dev_reset
Kees Cook (3):
net: clear heap allocations for privileged ethtool actions
net: clear heap allocation for ETHTOOL_GRXCLSRLALL
usb: iowarrior: don't trust report_size for buffer size
Ken Chen (1):
latencytop: fix per task accumulator
Ken Sumrall (1):
fuse: fix attributes after open(O_TRUNC)
Kenji Kaneshige (3):
genirq: Fix incorrect proc spurious output
x86: Enable the intr-remap fault handling after local APIC setup x86, vt-d: Fix the vt-d fault handling irq migration in the x2apic mode
Kenneth Waters (1):
Input: joydev - fix JSIOCSAXMAP ioctl
Knut Petersen (1):
drm/i915/lvds: Add AOpen i915GMm-HFS to the list of false-positive LVDS
Konstantin Khorenko (1):
NFSD: memory corruption due to writing beyond the stat array
Krishna Gudipati (1):
bfa: fix system crash when reading sysfs fc_host statistics
Kumar Sanghvi (1):
Phonet: Correct header retrieval after pskb_may_pull
Ky Srinivasan (1):
Staging: hv: fix sysfs symlink on hv block device
Larry Finger (2):
ssb: Handle alternate SSPROM location
staging: rtl8187se: Change panic to warn when RF switch turned off
Len Brown (2):
intel_idle: PCI quirk to prevent Lenovo Ideapad s10-3 boot hang
ACPI: EC: add Vista incompatibility DMI entry for Toshiba Satellite L355
Li Zefan (2):
sunrpc/cache: fix module refcnt leak in a failure path
cpuset: add a missing unlock in cpuset_write_resmask()
Libor Pechacek (1):
USB: serial: handle Data Carrier Detect changes
Linus Torvalds (8):
v4l1: fix 32-bit compat microcode loading translation De-pessimize rds_page_copy_user
mm: keep a guard page below a grow-down stack segment
mm: fix missing page table unmap for stack guard page failure case
mm: fix page table unmap for stack guard page properly
mm: fix up some user-visible effects of the stack guard page Prioritize synchronous signals over 'normal' signals
net: Truncate recvfrom and sendto length to INT_MAX.
Luca Tettamanti (1):
atl1: fix resume
Luke Yelavich (1):
ALSA: hda - Add Dell Latitude E6400 model quirk
Maciej Szmigiero (2):
USB: Add Samsung SGH-I500/Android modem ID switch to visor driver
USB: Add quirk for Samsung Android phone modem
Maciej Żenczykowski (1):
net: Fix IPv6 PMTU disc. w/ asymmetric routes
Marek Szyprowski (1):
mmc: sdhci-s3c: fix NULL ptr access in sdhci_s3c_remove
Martin K. Petersen (1):
block: Ensure physical block size is unsigned int
Martin Schwidefsky (2):
correct vdso version string
s390: remove task_show_regs
Martin Wilck (1):
PCI: fix size checks for mmap() on /proc/bus/pci files
Masanori ITOH (1):
percpu: fix list_head init bug in __percpu_counter_init()
Mathieu Desnoyers (1):
sched: Fix string comparison in /proc/sched_features
Matt Evans (1):
powerpc/kexec: Fix orphaned offline CPUs across kexec
Matt Helsley (1):
hw breakpoints: Fix pid namespace bug
Matthew Garrett (2):
tpm: Autodetect itpm devices
acer-wmi: Fix capitalisation of GUID
Mauro Carvalho Chehab (4):
V4L/DVB: cx231xx: Avoid an OOPS when card is unknown (card=0)
USB: option: Add more ZTE modem USB id's radio-aimslab.c: Fix gcc 4.5+ bug
em28xx: Fix audio input for Terratec Grabby
Max Vozeler (6):
staging: usbip: Notify usb core of port status changes
staging: usbip: Process event flags without delay
staging: usbip: vhci: update reference count for usb_device
staging: usbip: vhci: give back URBs from in-flight unlink requests
staging: usbip: vhci: refuse to enqueue for dead connections
staging: usbip: vhci: use urb->dev->portnum to find port
Maxim Uvarov (1):
powerpc/crashdump: Do not fail on NULL pointer dereferencing
Mel Gorman (2):
mm: page allocator: drain per-cpu lists after direct reclaim allocation fails
mm: page allocator: update free page counters after pages are placed on the free list
Michael Buesch (1):
ssb-pcmcia: Fix parsing of invariants tuples
Michael Chan (1):
bnx2: Fix hang during rmmod bnx2.
Michael Neuling (2):
powerpc/pseries: Add hcall to read 4 ptes at a time in real mode powerpc/kexec: Speedup kexec hash PTE tear down
Michael Reed (1):
sd name space exhaustion causes system hang
Michael S. Tsirkin (1):
virtio: set pci bus master enable bit
Michael Stuermer (1):
USB: ftdi_sio: Add ID for RT Systems USB-29B radio cable
Michael Williamson (1):
USB: ftdi_sio: Add VID=0x0647, PID=0x0100 for Acton Research spectrograph
Mike Christie (2):
Fix regressions in scsi_internal_device_block
scsi_dh_alua: add netapp to dev list
Mike Frysinger (1):
ASoC: Blackfin AC97: fix build error after multi-component update
Mike Snitzer (2):
dm: dont take i_mutex to change device size
dm mpath: disable blk_abort_queue
Miklos Szeredi (3):
fuse: verify ioctl retries
fuse: fix ioctl when server is 32bit
fuse: fix hang of single threaded fuseblk filesystem
Milton Miller (4):
virtio: remove virtio-pci root device
ixgbe: prevent speculative processing of descriptors before ready
call_function_many: fix list delete vs add race
call_function_many: add missing ordering
Mimi Zohar (1):
ima: fix add LSM rule bug
Márton Németh (1):
staging: usbip: remove double giveback of URB
Nagendra Tomar (1):
net: Fix the condition passed to sk_wait_event()
Neil Brown (1):
nfsd: Fix possible BUG_ON firing in set_change_info
NeilBrown (6):
md/raid1: really fix recovery looping when single good device fails.
sunrpc: prevent use-after-free on clearing XPT_BUSY
md: fix bug with re-adding of partially recovered device.
md: fix regression with re-adding devices to arrays with no metadata
nfsd: correctly handle return value from nfsd_map_name_to_*
md: correctly handle probe of an 'mdp' device.
Nelson Elhage (1):
do_exit(): make sure that we run with get_fs() == USER_DS
Nick Holloway (1):
USB: Storage: Add unusual_devs entry for VTech Kidizoom
Nicolas Kaiser (1):
pipe: fix failure to return error code on ->confirm()
Nikanth Karthikesan (1):
ext4: Prevent creation of files larger than RLIMIT_FSIZE using fallocate
Oleg Nesterov (1):
posix-cpu-timers: workaround to suppress the problems with mt exec
Oliver Hartkopp (1):
can-bcm: fix minor heap overflow
Olivier Grenie (1):
DiB7000M: add pid filtering
Paul E. McKenney (1):
pid: make setpgid() system call use RCU read-side critical section
Paul Fertser (1):
b44: fix carrier detection on bind
Paul Fox (2):
x86, olpc: Don't retry EC commands forever
rtc-cmos: fix suspend/resume
Paul Mackerras (1):
powerpc/perf: Fix sampling enable for PPC970
Paul Zimmerman (4):
xhci: Avoid BUG() in interrupt context
xhci: Clarify some expressions in the TRB math
xhci: Fix errors in the running total calculations in the TRB math
xhci: Fix an error in count_sg_trbs_needed()
Pavel Machek (1):
serial: unbreak billionton CF card
Pavel Shilovsky (1):
CIFS: Fix oplock break handling (try #2)
Pekka Enberg (1):
perf_events: Fix perf_counter_mmap() hook in mprotect()
Peter Jones (1):
efifb: check that the base address is plausible on pci systems
Petr Tesarik (1):
IA64: Optimize ticket spinlocks in fsys_rt_sigprocmask
Phil Blundell (3):
econet: disallow NULL remote addr for sendmsg(), fixes CVE-2010-3849
econet: fix CVE-2010-3850
econet: fix CVE-2010-3848Philippe Rétornaz (1):
tty_ldisc: Fix BUG() on hangup
Pieter Maes (1):
USB: serial: Updated support for ICOM devices
Przemyslaw Bruski (3):
ALSA: ctxfi - Fix incorrect SPDIF status bit mask
ALSA: ctxfi - Fix SPDIF status retrieval
ALSA: ctxfi - Clear input settings before initialization
Rafał Miłecki (1):
ssb: Look for SPROM at different offset on higher rev CC
Rainer Keller (1):
USB: add PID for FTDI based OpenDCC hardware
Rajiv Andrade (1):
TPM: Long default timeout fix
Raymond Yau (1):
ALSA : au88x0 - Limit number of channels to fix Oops via OSS emu
Richard A. Smith (1):
olpc_battery: Fix endian neutral breakage for s16 values
Richard Schütz (2):
USB: usb-storage: unusual_devs update for Cypress ATACB
USB: usb-storage: unusual_devs update for TrekStor DataStation maxi g.u external hard drive enclosure
Richard Weinberger (2):
um: remove PAGE_SIZE alignment in linker script causing kernel segfault.
um: fix global timer issue when using CONFIG_NO_HZ
Robin Holt (1):
sgi-xp: incoming XPC channel messages can come in after the channel's partition structures have been torn down
[email protected] (1):
sgi-xpc: XPC fails to discover partitions with all nasids above 128
Roland McGrath (4):
setup_arg_pages: diagnose excessive argument size
execve: improve interactivity with large arguments
execve: make responsive to SIGKILL with large arguments x86-64, compat: Retruncate rax after ia32 syscall entry tracing
Ruben Smits (1):
staging: comedi: add support for newer jr3 1-channel pci board
Russell King (1):
ARM: Ensure predictable endian state on signal handler entry
Ryan Kuester (1):
SCSI: mptsas: fix hangs caused by ATA pass-through
Saeed Bishara (1):
mv_xor: fix race in tasklet function
Salman Qazi (1):
hrtimer: Preserve timer state in remove_hrtimer()
Samuel Ortiz (2):
irda: Fix parameter extraction stack overflow
irda: Fix heap memory corruption in iriap.c
Sarah Sharp (2):
usb: Realloc xHCI structures after a hub is verified.
xhci: Fix cycle bit calculation during stall handling.
Sean Hefty (2):
RDMA/cma: Fix crash in request handlers
IB/cm: Bump reference count on cm_id before invoking callback
Sebastian Andrzej Siewior (1):
USB: isp1760: Implement solution for erratum 2
Senthil Balasubramanian (1):
ath9k_hw: Fix incorrect macversion and macrev checks
Sergei Shtylyov (1):
usb: musb: blackfin: call gpio_free() on error path in musb_platform_init()
Sergey Vlasov (1):
NFS: Fix fcntl F_GETLK not reporting some conflicts
Seth Heasley (3):
ahci: AHCI and RAID mode SATA patch for Intel Patsburg DeviceIDs
ahci: AHCI mode SATA patch for Intel DH89xxCC DeviceIDs
ahci: AHCI mode SATA patch for Intel Patsburg SATA RAID controller
Shaohua Li (1):
x86: Flush TLB if PGD entry is changed in i386 PAE mode
Simon Guinot (1):
dmaengine: fix interrupt clearing for mv_xor
Simone Contini (1):
USB: serial: pl2303: Hybrid reader Uniform HCR331
Slava Pestov (1):
tracing: Fix panic when lseek() called on "trace" opened for writing
Stanislaw Gruszka (4):
iwlagn: enable only rfkill interrupt when device is down PM / Hibernate: Return error code when alloc_image_page() fails
r8169: disable ASPM
sched: Fix user time incorrectly accounted as system time on 32-bit
Stefan Richter (1):
firewire: core: fix unstable I/O with Canon camcorder
Steve Wise (1):
RDMA/cxgb3: Turn off RX coalescing for iWARP connections
Steven J. Magnani (1):
nommu: yield CPU while disposing VM
Steven Rostedt (4):
tracing/x86: Don't use mcount in kvmclock.c
ring-buffer: Fix typo of time extends per page
leds: fix bug with reading NAS SS4200 dmi code
ftrace: Fix memory leak with function graph and cpu hotplug
Suresh Siddha (5):
x86, intr-remap: Set redirection hint in the IRTE
x86, vt-d: Handle previous faults after enabling fault handling
x86, vt-d: Quirk for masking vtd spec errors to platform error handling logic x86, mtrr: Avoid MTRR reprogramming on BP during boot on UP platforms x86, mm: avoid possible bogus tlb entries by clearing prev mm_cpumask after switching mm
Sven Neumann (1):
ds2760_battery: Fix calculation of time_to_empty_now
Takashi Iwai (3):
PM / Hibernate: Fix PM_POST_* notification with user-space suspend
ALSA: hda - Fix memory leaks in conexant jack arrays
ALSA: caiaq - Fix possible string-buffer overflow
Tavis Ormandy (1):
install_special_mapping skips security_file_mmap check.
Tejun Heo (7):
ubd: fix incorrect sector handling during request restart
libata: fix NULL sdev dereference race in atapi_qc_complete()
PCI: pci-stub: ignore zero-length id parameters
ptrace: use safer wake up on ptrace_detach()
pata_mpc52xx: inherit from ata_bmdma_port_ops
libata: no special completion processing for EH commands
percpu: fix pcpu_last_unit_cpu
Tetsuo Handa (3):
CRED: Fix kernel panic upon security_file_alloc() failure.
CRED: Fix BUG() upon security_cred_alloc_blank() failure
CRED: Fix memory and refcount leaks upon security_prepare_creds() failure
Thadeu Lima de Souza Cascardo (1):
wmi: use memcmp instead of strncmp to compare GUIDs
Thomas Gleixner (5):
x86, hpet: Fix bogus error check in hpet_assign_irq() x86, irq: Plug memory leak in sparse irq
isdn: hisax: Replace the bogus access to irq stats
genirq: Disable the SHIRQ_DEBUG call in request_threaded_irq for now
clockevents: Prevent oneshot mode when broadcast device is periodic
Thomas Hellstrom (1):
drm/ttm: Fix two race conditions + fix busy codepaths
Thomas Sailer (1):
USB: misc: uss720.c: add another vendor/product ID
Thomas Taranowski (1):
rapidio: fix hang on RapidIO doorbell queue full condition
Tilman Schmidt (1):
isdn: avoid calling tty_ldisc_flush() in atomic context
Tim Deegan (1):
fix jiffy calculations in calibrate_delay_direct to handle overflow
Timo Warns (2):
fs/partitions: Validate map_count in Mac partition tables
ldm: corrupted partition table can cause kernel oops
Tom Marshall (1):
tcp: Fix race in tcp_poll
Tony Luck (1):
IA64: fix siglock
Tristan Ye (1):
Ocfs2/refcounttree: Fix a bug for refcounttree to writeback clusters in a right number.
Trond Myklebust (1):
SUNRPC: Ensure we always run the tk_callback before tk_action
Tyler Hicks (2):
eCryptfs: Clear LOOKUP_OPEN flag when creating lower file
eCryptfs: Copy up lower inode attrs in getattr
Ulrich Weber (1):
xfrm4: strip ECN and IP Precedence bits in policy lookup
Uwe Kleine-König (1):
backlight: grab ops_lock before testing bd->ops
Vasiliy Kulikov (9):
pcmcia: synclink_cs: fix information leak to userland
ipc: shm: fix information leak to userland
usb: misc: sisusbvga: fix information leak to userland
usb: misc: iowarrior: fix information leak to userland
usb: core: fix information leak to userland
platform: x86: acer-wmi: world-writable sysfs threeg file
platform: x86: asus_acpi: world-writable procfs files
platform: x86: tc1100-wmi: world-writable sysfs wireless and jogdial files
net: don't allow CAP_NET_ADMIN to load non-netdev kernel modules
Vitaliy Kulikov (1):
ALSA: hda - fix digital mic selection in mixer on 92HD8X codecs
Vitaly Kuznetsov (1):
USB: usb-storage: unusual_devs entry for the Samsung YP-CP3
Vlad Yasevich (2):
sctp: Fix a race between ICMP protocol unreachable and connect()
sctp: Do not reset the packet during sctp_packet_config().
Will Deacon (1):
ARM: 6489/1: thumb2: fix incorrect optimisation in usracc
Wu Fengguang (1):
vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
Yinghai Lu (1):
x86, numa: For each node, register the memory blocks actually used
Zhang Rui (2):
ACPI: Disable Windows Vista compatibility for Toshiba P305D
acpi-cpufreq: fix a memleak when unloading driver
andrew hendry (1):
memory corruption in X.25 facilities parsing
dann frazier (1):
ocfs2_connection_find() returns pointer to bad structure
ma rui (1):
USB: option: fix when the driver is loaded incorrectly for some Huawei devices.
roel (1):
nfsd: wrong index used in inner loop
wangyanqing (1):
USB: serial: ch341: add new id
MAINTAINERS +6 -0
@@ -2032,6 +2032,12 @@ W: http://acpi4asus.sf.net S: Maintained F: drivers/platform/x86/eeepc-laptop.c +EFIFB FRAMEBUFFER DRIVER +L: [email protected] +M: Peter Jones <[email protected]> +S: Maintained +F: drivers/video/efifb.c + EFS FILESYSTEM W: http://aeschi.ch.eu.org/efs/ S: Orphan
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 33 -EXTRAVERSION = .7 +EXTRAVERSION = .8 NAME = Man-Eating Seals of Antiquity # *DOCUMENTATION*
arch/arm/include/asm/assembler.h +1 -1
@@ -215,7 +215,7 @@ @ Slightly optimised to avoid incrementing the pointer twice usraccoff \instr, \reg, \ptr, \inc, 0, \cond, \abort .if \rept == 2 - usraccoff \instr, \reg, \ptr, \inc, 4, \cond, \abort + usraccoff \instr, \reg, \ptr, \inc, \inc, \cond, \abort .endif add\cond \ptr, #\rept * \inc
arch/arm/kernel/signal.c +3 -1
@@ -389,7 +389,9 @@ setup_return(struct pt_regs *regs, struct k_sigaction *ka,unsigned long handler = (unsigned long )ka->sa.sa_handler;unsigned long retcode;int thumb =0 ; -unsigned long cpsr = regs->ARM_cpsr & ~PSR_f; +unsigned long cpsr = regs->ARM_cpsr & ~(PSR_f |PSR_E_BIT ); + + cpsr |=PSR_ENDSTATE ;/* * Maybe we need to deliver a 32-bit signal to a 26-bit task.
arch/arm/lib/findbit.S +4 -2
@@ -174,8 +174,8 @@ ENDPROC(_find_next_bit_be) */ .L_found: #if __LINUX_ARM_ARCH__ >= 5 - rsb r1, r3, #0 - and r3, r3, r1 + rsb r0, r3, #0 + and r3, r3, r0 clz r3, r3 rsb r3, r3, #31 add r0, r2, r3
@@ -190,5 +190,7 @@ ENDPROC(_find_next_bit_be) addeq r2, r2, #1 mov r0, r2 #endif + cmp r1, r0 @ Clamp to maxbit + movlo r0, r1 mov pc, lr
arch/ia64/include/asm/compat.h +1 -1
@@ -198,7 +198,7 @@ ptr_to_compat(void __user *uptr) }static __inline__void __user * -compat_alloc_user_space (long len) +arch_compat_alloc_user_space (long len) {struct pt_regs *regs =task_pt_regs (current);return (void __user *) (((regs->r12 &0xffffffff ) &-16 ) - len);
arch/ia64/kernel/fsys.S +21 -9
@@ -420,22 +420,31 @@ EX(.fail_efault, ld8 r14=[r33]) // r14 <- *set ;; RSM_PSR_I(p0, r18, r19) // mask interrupt delivery - mov ar.ccv=0 andcm r14=r14,r17 // filter out SIGKILL & SIGSTOP + mov r8=EINVAL // default to EINVAL #ifdef CONFIG_SMP - mov r17=1 + // __ticket_spin_trylock(r31) + ld4 r17=[r31] ;; - cmpxchg4.acq r18=[r31],r17,ar.ccv // try to acquire the lock - mov r8=EINVAL // default to EINVAL + mov.m ar.ccv=r17 + extr.u r9=r17,17,15 + adds r19=1,r17 + extr.u r18=r17,0,15 + ;; + cmp.eq p6,p7=r9,r18 ;; +(p6) cmpxchg4.acq r9=[r31],r19,ar.ccv +(p6) dep.z r20=r19,1,15 // next serving ticket for unlock +(p7) br.cond.spnt.many .lock_contention + ;; + cmp4.eq p0,p7=r9,r17 + adds r31=2,r31 +(p7) br.cond.spnt.many .lock_contention ld8 r3=[r2] // re-read current->blocked now that we hold the lock - cmp4.ne p6,p0=r18,r0 -(p6) br.cond.spnt.many .lock_contention ;; #else ld8 r3=[r2] // re-read current->blocked now that we hold the lock - mov r8=EINVAL // default to EINVAL #endif add r18=IA64_TASK_PENDING_OFFSET+IA64_SIGPENDING_SIGNAL_OFFSET,r16 add r19=IA64_TASK_SIGNAL_OFFSET,r16
@@ -490,7 +499,9 @@ EX(.fail_efault, ld8 r14=[r33]) // r14 <- *set (p6) br.cond.spnt.few 1b // yes -> retry #ifdef CONFIG_SMP - st4.rel [r31]=r0 // release the lock + // __ticket_spin_unlock(r31) + st2.rel [r31]=r20 + mov r20=0 // i must not leak kernel bits... #endif SSM_PSR_I(p0, p9, r31) ;;
@@ -512,7 +523,8 @@ EX(.fail_efault, (p15) st8 [r34]=r3) .sig_pending: #ifdef CONFIG_SMP - st4.rel [r31]=r0 // release the lock + // __ticket_spin_unlock(r31) + st2.rel [r31]=r20 // release the lock #endif SSM_PSR_I(p0, p9, r17) ;;
arch/mips/alchemy/mtx-1/platform.c +9 -0
@@ -28,6 +28,8 @@#include <linux/mtd/physmap.h> #include <mtd/mtd-abi.h> +#include <asm/mach-au1x00/au1xxx_eth.h> +static struct gpio_keys_button mtx1_gpio_button[] = { { .gpio =207 ,
@@ -140,10 +142,17 @@ static struct __initdata platform_device * mtx1_devs[] = { &mtx1_mtd, }; +static struct au1000_eth_platform_data mtx1_au1000_eth0_pdata = { + .phy_search_highest_addr =1 , + .phy1_search_mac0 =1 , +}; +static int __init mtx1_register_devices (void ) {int rc; +au1xxx_override_eth_cfg (0 , &mtx1_au1000_eth0_pdata); + rc =gpio_request (mtx1_gpio_button[0 ].gpio, mtx1_gpio_button[0 ].desc);if (rc <0 ) {
arch/mips/include/asm/compat.h +1 -1
@@ -144,7 +144,7 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr)return (u32 )(unsigned long )uptr; } -static inline void __user *compat_alloc_user_space (long len) +static inline void __user *arch_compat_alloc_user_space (long len) {struct pt_regs *regs = (struct pt_regs *) ((unsigned long )current_thread_info () +THREAD_SIZE -32 ) -1 ;
arch/parisc/include/asm/compat.h +1 -1
@@ -146,7 +146,7 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr)return (u32 )(unsigned long )uptr; } -static __inline__void __user *compat_alloc_user_space (long len) +static __inline__void __user *arch_compat_alloc_user_space (long len) {struct pt_regs *regs = ¤t->thread.regs;return (void __user *)regs->gr[30 ];
arch/powerpc/include/asm/compat.h +1 -1
@@ -133,7 +133,7 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr)return (u32 )(unsigned long )uptr; } -static inline void __user *compat_alloc_user_space (long len) +static inline void __user *arch_compat_alloc_user_space (long len) {struct pt_regs *regs = current->thread.regs;unsigned long usp = regs->gpr[1 ];
arch/powerpc/include/asm/hvcall.h +1 -0
@@ -281,6 +281,7 @@ long plpar_hcall_raw(unsigned long opcode, unsigned long *retbuf, ...);*/ #define PLPAR_HCALL9_BUFSIZE 9long plpar_hcall9 (unsigned long opcode,unsigned long *retbuf, ...); +long plpar_hcall9_raw (unsigned long opcode,unsigned long *retbuf, ...);/* For hcall instrumentation. One structure per-hcall, per-CPU */ struct hcall_stats {
arch/powerpc/include/asm/reg.h +1 -0
@@ -860,6 +860,7 @@#define PV_970 0x0039#define PV_POWER5 0x003A#define PV_POWER5p 0x003B +#define PV_POWER7 0x003F#define PV_970FX 0x003C#define PV_630 0x0040#define PV_630p 0x0041
arch/powerpc/kernel/cpu_setup_6xx.S +20 -20
@@ -18,7 +18,7 @@ #include <asm/mmu.h> _GLOBAL(__setup_cpu_603) - mflr r4 + mflr r5 BEGIN_MMU_FTR_SECTION li r10,0 mtspr SPRN_SPRG_603_LRU,r10 /* init SW LRU tracking */
@@ -27,60 +27,60 @@ BEGIN_FTR_SECTION bl __init_fpu_registers END_FTR_SECTION_IFCLR(CPU_FTR_FPU_UNAVAILABLE) bl setup_common_caches - mtlr r4 + mtlr r5 blr _GLOBAL(__setup_cpu_604) - mflr r4 + mflr r5 bl setup_common_caches bl setup_604_hid0 - mtlr r4 + mtlr r5 blr _GLOBAL(__setup_cpu_750) - mflr r4 + mflr r5 bl __init_fpu_registers bl setup_common_caches bl setup_750_7400_hid0 - mtlr r4 + mtlr r5 blr _GLOBAL(__setup_cpu_750cx) - mflr r4 + mflr r5 bl __init_fpu_registers bl setup_common_caches bl setup_750_7400_hid0 bl setup_750cx - mtlr r4 + mtlr r5 blr _GLOBAL(__setup_cpu_750fx) - mflr r4 + mflr r5 bl __init_fpu_registers bl setup_common_caches bl setup_750_7400_hid0 bl setup_750fx - mtlr r4 + mtlr r5 blr _GLOBAL(__setup_cpu_7400) - mflr r4 + mflr r5 bl __init_fpu_registers bl setup_7400_workarounds bl setup_common_caches bl setup_750_7400_hid0 - mtlr r4 + mtlr r5 blr _GLOBAL(__setup_cpu_7410) - mflr r4 + mflr r5 bl __init_fpu_registers bl setup_7410_workarounds bl setup_common_caches bl setup_750_7400_hid0 li r3,0 mtspr SPRN_L2CR2,r3 - mtlr r4 + mtlr r5 blr _GLOBAL(__setup_cpu_745x) - mflr r4 + mflr r5 bl setup_common_caches bl setup_745x_specifics - mtlr r4 + mtlr r5 blr /* Enable caches for 603's, 604, 750 & 7400 */
@@ -194,10 +194,10 @@ setup_750cx: cror 4*cr0+eq,4*cr0+eq,4*cr1+eq cror 4*cr0+eq,4*cr0+eq,4*cr2+eq bnelr - lwz r6,CPU_SPEC_FEATURES(r5) + lwz r6,CPU_SPEC_FEATURES(r4) li r7,CPU_FTR_CAN_NAP andc r6,r6,r7 - stw r6,CPU_SPEC_FEATURES(r5) + stw r6,CPU_SPEC_FEATURES(r4) blr /* 750fx specific
@@ -225,12 +225,12 @@ BEGIN_FTR_SECTION andis. r11,r11,L3CR_L3E@h beq 1f END_FTR_SECTION_IFSET(CPU_FTR_L3CR) - lwz r6,CPU_SPEC_FEATURES(r5) + lwz r6,CPU_SPEC_FEATURES(r4) andi. r0,r6,CPU_FTR_L3_DISABLE_NAP beq 1f li r7,CPU_FTR_CAN_NAP andc r6,r6,r7 - stw r6,CPU_SPEC_FEATURES(r5) + stw r6,CPU_SPEC_FEATURES(r4) 1: mfspr r11,SPRN_HID0
arch/powerpc/kernel/crash.c +9 -2
@@ -347,10 +347,12 @@ int crash_shutdown_unregister(crash_shutdown_t handler)EXPORT_SYMBOL (crash_shutdown_unregister);static unsigned long crash_shutdown_buf[JMP_BUF_LEN ]; +static int crash_shutdown_cpu =-1 ;static int handle_fault (struct pt_regs *regs) { -longjmp (crash_shutdown_buf,1 ); +if (crash_shutdown_cpu ==smp_processor_id ()) +longjmp (crash_shutdown_buf,1 );return 0 ; }
@@ -375,11 +377,14 @@ void default_machine_crash_shutdown(struct pt_regs *regs)for_each_irq (i) {struct irq_desc *desc =irq_to_desc (i); +if (!desc || !desc->chip || !desc->chip->eoi) +continue ; +if (desc->status &IRQ_INPROGRESS ) desc->chip->eoi (i);if (!(desc->status &IRQ_DISABLED )) - desc->chip->disable (i); + desc->chip->shutdown (i); }/*
@@ -388,6 +393,7 @@ void default_machine_crash_shutdown(struct pt_regs *regs)*/ old_handler = __debugger_fault_handler; __debugger_fault_handler = handle_fault; + crash_shutdown_cpu =smp_processor_id ();for (i =0 ; crash_shutdown_handles[i]; i++) {if (setjmp (crash_shutdown_buf) ==0 ) {/*
@@ -401,6 +407,7 @@ void default_machine_crash_shutdown(struct pt_regs *regs) asmvolatile ("sync; isync" ); } } + crash_shutdown_cpu =-1 ; __debugger_fault_handler = old_handler;/*
arch/powerpc/kernel/machine_kexec_64.c +25 -0
@@ -15,6 +15,7 @@#include <linux/thread_info.h> #include <linux/init_task.h> #include <linux/errno.h> +#include <linux/cpu.h> #include <asm/page.h> #include <asm/current.h>
@@ -169,10 +170,34 @@ static void kexec_smp_down(void *arg)/* NOTREACHED */ } +/* +* We need to make sure each present CPU is online. The next kernel will scan +* the device tree and assume primary threads are online and query secondary +* threads via RTAS to online them if required. If we don't online primary +* threads, they will be stuck. However, we also online secondary threads as we +* may be using 'cede offline'. In this case RTAS doesn't see the secondary +* threads as offline -- and again, these CPUs will be stuck. +* +* So, we online all CPUs that should be running, including secondary threads. +*/ +static void wake_offline_cpus (void ) +{ +int cpu =0 ; + +for_each_present_cpu (cpu) { +if (!cpu_online (cpu)) { +printk (KERN_INFO "kexec: Waking offline cpu %d.\n" , + cpu); +cpu_up (cpu); + } + } +} +static void kexec_prepare_cpus (void ) {int my_cpu, i, notified=-1 ; +wake_offline_cpus ();smp_call_function (kexec_smp_down,NULL ,/* wait */ 0 ); my_cpu =get_cpu ();
arch/powerpc/kernel/perf_event.c +23 -1
@@ -1220,6 +1220,28 @@ unsigned long perf_instruction_pointer(struct pt_regs *regs)return ip; } +static bool pmc_overflow (unsigned long val) +{ +if ((int )val <0 ) +return true; + +/* +* Events on POWER7 can roll back if a speculative event doesn't +* eventually complete. Unfortunately in some rare cases they will +* raise a performance monitor exception. We need to catch this to +* ensure we reset the PMC. In all cases the PMC will be 256 or less +* cycles from overflow. +* +* We only do this if the first pass fails to find any overflowing +* PMCs because a user might set a period of less than 256 and we +* don't want to mistakenly reset them. +*/ +if (__is_processor (PV_POWER7 ) && ((0x80000000 - val) <=256 )) +return true; + +return false; +} +/* * Performance monitor interrupt stuff */
@@ -1267,7 +1289,7 @@ static void perf_event_interrupt(struct pt_regs *regs)if (is_limited_pmc (i +1 ))continue ; val =read_pmc (i +1 ); -if ((int )val <0 ) +if (pmc_overflow (val))write_pmc (i +1 ,0 ); } }
arch/powerpc/kernel/ppc970-pmu.c +2 -0
@@ -169,9 +169,11 @@ static int p970_marked_instr_event(u64 event)switch (unit) {case PM_VPU : mask =0x4c ;/* byte 0 bits 2,3,6 */ +break ;case PM_LSU0 :/* byte 2 bits 0,2,3,4,6; all of byte 1 */ mask =0x085dff00 ; +break ;case PM_LSU1L : mask =0x50 <<24 ;/* byte 3 bits 4,6 */ break ;
arch/powerpc/kernel/setup_64.c +13 -4
@@ -427,9 +427,18 @@ void __init setup_system(void)DBG (" <- setup_system()\n" ); } +static u64 slb0_limit (void ) +{ +if (cpu_has_feature (CPU_FTR_1T_SEGMENT )) { +return 1UL <<SID_SHIFT_1T ; + } +return 1UL <<SID_SHIFT ; +} +#ifdef CONFIG_IRQSTACKS static void __init irqstack_early_init (void ) { +u64 limit =slb0_limit ();unsigned int i;/*
@@ -439,10 +448,10 @@ static void __init irqstack_early_init(void)for_each_possible_cpu (i) { softirq_ctx[i] = (struct thread_info *)__va (lmb_alloc_base (THREAD_SIZE , -THREAD_SIZE ,0x10000000 )); +THREAD_SIZE , limit)); hardirq_ctx[i] = (struct thread_info *)__va (lmb_alloc_base (THREAD_SIZE , -THREAD_SIZE ,0x10000000 )); +THREAD_SIZE , limit)); } }#else
@@ -473,7 +482,7 @@ static void __init exc_lvl_early_init(void)*/ static void __init emergency_stack_init (void ) { -unsigned long limit; +u64 limit;unsigned int i;/*
@@ -485,7 +494,7 @@ static void __init emergency_stack_init(void)* bringup, we need to get at them in real mode. This means they * must also be within the RMO region. */ - limit =min (0x10000000ULL , lmb.rmo_size); + limit =min (slb0_limit (), lmb.rmo_size);for_each_possible_cpu (i) {unsigned long sp;
arch/powerpc/platforms/pseries/hvCall.S +38 -0
@@ -228,3 +228,41 @@ _GLOBAL(plpar_hcall9) mtcrf 0xff,r0 blr /* return r3 = status */ + +/* See plpar_hcall_raw to see why this is needed */ +_GLOBAL(plpar_hcall9_raw) + HMT_MEDIUM + + mfcr r0 + stw r0,8(r1) + + std r4,STK_PARM(r4)(r1) /* Save ret buffer */ + + mr r4,r5 + mr r5,r6 + mr r6,r7 + mr r7,r8 + mr r8,r9 + mr r9,r10 + ld r10,STK_PARM(r11)(r1) /* put arg7 in R10 */ + ld r11,STK_PARM(r12)(r1) /* put arg8 in R11 */ + ld r12,STK_PARM(r13)(r1) /* put arg9 in R12 */ + + HVSC /* invoke the hypervisor */ + + mr r0,r12 + ld r12,STK_PARM(r4)(r1) + std r4, 0(r12) + std r5, 8(r12) + std r6, 16(r12) + std r7, 24(r12) + std r8, 32(r12) + std r9, 40(r12) + std r10,48(r12) + std r11,56(r12) + std r0, 64(r12) + + lwz r0,8(r1) + mtcrf 0xff,r0 + + blr /* return r3 = status */
arch/powerpc/platforms/pseries/lpar.c +57 -13
96 lines not on this page · raw message
arch/powerpc/platforms/pseries/plpar_wrappers.h +18 -0
@@ -191,6 +191,24 @@ static inline long plpar_pte_read_raw(unsigned long flags, unsigned long ptex,return rc; } +/* +* plpar_pte_read_4_raw can be called in real mode. +* ptes must be 8*sizeof(unsigned long) +*/ +static inline long plpar_pte_read_4_raw (unsigned long flags,unsigned long ptex, +unsigned long *ptes) + +{ +long rc; +unsigned long retbuf[PLPAR_HCALL9_BUFSIZE ]; + + rc =plpar_hcall9_raw (H_READ , retbuf, flags |H_READ_4 , ptex); + +memcpy (ptes, retbuf,8 *sizeof (unsigned long )); + +return rc; +} +static inline long plpar_pte_protect (unsigned long flags,unsigned long ptex,unsigned long avpn) {
arch/powerpc/sysdev/fsl_rio.c +0 -1
@@ -832,7 +832,6 @@ fsl_rio_dbell_handler(int irq, void *dev_instance)if (dsr &DOORBELL_DSR_QFI ) {pr_info ("RIO: doorbell queue full\n" );out_be32 (&priv->msg_regs->dsr,DOORBELL_DSR_QFI ); - goto out; }/* XXX Need to check/dispatch until queue empty */
arch/s390/include/asm/compat.h +1 -1
@@ -180,7 +180,7 @@ static inline int is_compat_task(void)#endif -static inline void __user *compat_alloc_user_space (long len) +static inline void __user *arch_compat_alloc_user_space (long len) {unsigned long stack;
arch/s390/include/asm/processor.h +0 -5
@@ -150,11 +150,6 @@ extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);*/ extern unsigned long thread_saved_pc (struct task_struct *t); -/* -* Print register of task into buffer. Used in fs/proc/array.c. -*/ -extern void task_show_regs (struct seq_file *m,struct task_struct *task); -extern void show_code (struct pt_regs *regs);unsigned long get_wchan (struct task_struct *p);
arch/s390/include/asm/vdso.h +1 -1
@@ -7,7 +7,7 @@#define VDSO32_LBASE 0#define VDSO64_LBASE 0 -#define VDSO_VERSION_STRING LINUX_2.6.26 +#define VDSO_VERSION_STRING LINUX_2.6.29#ifndef __ASSEMBLY__
arch/s390/kernel/traps.c +0 -37
@@ -243,43 +243,6 @@ void show_regs(struct pt_regs *regs)show_last_breaking_event (regs); } -/* This is called from fs/proc/array.c */ -void task_show_regs (struct seq_file *m,struct task_struct *task) -{ -struct pt_regs *regs; - - regs =task_pt_regs (task); -seq_printf (m,"task: %p, ksp: %p\n" , - task, (void *)task->thread.ksp); -seq_printf (m,"User PSW : %p %p\n" , - (void *) regs->psw.mask, (void *)regs->psw.addr); - -seq_printf (m,"User GPRS: " FOURLONG , - regs->gprs[0 ], regs->gprs[1 ], - regs->gprs[2 ], regs->gprs[3 ]); -seq_printf (m," " FOURLONG , - regs->gprs[4 ], regs->gprs[5 ], - regs->gprs[6 ], regs->gprs[7 ]); -seq_printf (m," " FOURLONG , - regs->gprs[8 ], regs->gprs[9 ], - regs->gprs[10 ], regs->gprs[11 ]); -seq_printf (m," " FOURLONG , - regs->gprs[12 ], regs->gprs[13 ], - regs->gprs[14 ], regs->gprs[15 ]); -seq_printf (m,"User ACRS: %08x %08x %08x %08x\n" , - task->thread.acrs[0 ], task->thread.acrs[1 ], - task->thread.acrs[2 ], task->thread.acrs[3 ]); -seq_printf (m," %08x %08x %08x %08x\n" , - task->thread.acrs[4 ], task->thread.acrs[5 ], - task->thread.acrs[6 ], task->thread.acrs[7 ]); -seq_printf (m," %08x %08x %08x %08x\n" , - task->thread.acrs[8 ], task->thread.acrs[9 ], - task->thread.acrs[10 ], task->thread.acrs[11 ]); -seq_printf (m," %08x %08x %08x %08x\n" , - task->thread.acrs[12 ], task->thread.acrs[13 ], - task->thread.acrs[14 ], task->thread.acrs[15 ]); -} -static DEFINE_SPINLOCK (die_lock);void die (const char * str,struct pt_regs * regs,long err)
arch/s390/kernel/vtime.c +19 -0
@@ -19,6 +19,7 @@#include <linux/kernel_stat.h> #include <linux/rcupdate.h> #include <linux/posix-timers.h> +#include <linux/cpu.h> #include <asm/s390_ext.h> #include <asm/timer.h>
@@ -562,6 +563,23 @@ void init_cpu_vtimer(void)__ctl_set_bit (0 ,10 ); } +static int __cpuinit s390_nohz_notify (struct notifier_block *self, +unsigned long action,void *hcpu) +{ +struct s390_idle_data *idle; +long cpu = (long ) hcpu; + + idle = &per_cpu (s390_idle, cpu); +switch (action) { +case CPU_DYING : +case CPU_DYING_FROZEN : + idle->nohz_delay =0 ; +default : +break ; + } +return NOTIFY_OK ; +} +void __init vtime_init (void ) {/* request the cpu timer external interrupt */
@@ -570,5 +588,6 @@ void __init vtime_init(void)/* Enable cpu timer interrupts on the boot cpu. */ init_cpu_vtimer (); +cpu_notifier (s390_nohz_notify,0 ); }
arch/sparc/include/asm/compat.h +1 -1
@@ -166,7 +166,7 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr)return (u32 )(unsigned long )uptr; } -static inline void __user *compat_alloc_user_space (long len) +static inline void __user *arch_compat_alloc_user_space (long len) {struct pt_regs *regs =current_thread_info ()->kregs;unsigned long usp = regs->u_regs[UREG_I6 ];
arch/um/drivers/ubd_kern.c +5 -4
@@ -161,6 +161,7 @@ struct ubd {struct scatterlist sg[MAX_SG ];struct request *request;int start_sg, end_sg; +sector_t rq_pos; };#define DEFAULT_COW { \
@@ -185,6 +186,7 @@ struct ubd { .request = NULL, \ .start_sg = 0, \ .end_sg = 0, \ + .rq_pos = 0, \ }/* Protected by ubd_lock */
@@ -1222,7 +1224,6 @@ static void do_ubd_request(struct request_queue *q) {struct io_thread_req *io_req;struct request *req; -sector_t sector;int n;while (1 ){
@@ -1233,12 +1234,12 @@ static void do_ubd_request(struct request_queue *q)return ; dev->request = req; + dev->rq_pos =blk_rq_pos (req); dev->start_sg =0 ; dev->end_sg =blk_rq_map_sg (q, req, dev->sg); } req = dev->request; - sector =blk_rq_pos (req);while (dev->start_sg < dev->end_sg){struct scatterlist *sg = &dev->sg[dev->start_sg];
@@ -1250,10 +1251,9 @@ static void do_ubd_request(struct request_queue *q)return ; }prepare_request (req, io_req, - (unsigned long long )sector <<9 , + (unsigned long long )dev->rq_pos <<9 , sg->offset, sg->length,sg_page (sg)); - sector += sg->length >>9 ; n =os_write_file (thread_fd, &io_req,sizeof (struct io_thread_req *));if (n !=sizeof (struct io_thread_req *)){
@@ -1266,6 +1266,7 @@ static void do_ubd_request(struct request_queue *q)return ; } + dev->rq_pos += sg->length >>9 ; dev->start_sg++; } dev->end_sg =0 ;
arch/um/kernel/uml.lds.S +1 -1
@@ -22,7 +22,7 @@ SECTIONS _text = .; _stext = .; __init_begin = .; - INIT_TEXT_SECTION(PAGE_SIZE) + INIT_TEXT_SECTION(0) . = ALIGN(PAGE_SIZE); .text :
arch/um/os-Linux/time.c +1 -1
@@ -60,7 +60,7 @@ static inline long long timeval_to_ns(const struct timeval *tv)long long disable_timer (void ) {struct itimerval time = ((struct itimerval ) { {0 ,0 }, {0 ,0 } }); -int remain, max =UM_NSEC_PER_SEC /UM_HZ ; +long long remain, max =UM_NSEC_PER_SEC /UM_HZ ;if (setitimer (ITIMER_VIRTUAL , &time, &time) <0 ) printk(UM_KERN_ERR "disable_timer - setitimer failed, "
arch/x86/ia32/ia32entry.S +14 -8
@@ -50,7 +50,12 @@ /* * Reload arg registers from stack in case ptrace changed them. * We don't reload %eax because syscall_trace_enter() returned - * the value it wants us to use in the table lookup. + * the %rax value we should see. Instead, we just truncate that + * value to 32 bits again as we did on entry from user mode. + * If it's a new value set by user_regset during entry tracing, + * this matches the normal truncation of the user-mode value. + * If it's -1 to make us punt the syscall, then (u32)-1 is still + * an appropriately invalid value. */ .macro LOAD_ARGS32 offset, _r9=0 .if \_r9
@@ -60,6 +65,7 @@ movl \offset+48(%rsp),%edx movl \offset+56(%rsp),%esi movl \offset+64(%rsp),%edi + movl %eax,%eax /* zero extension */ .endm .macro CFI_STARTPROC32 simple
@@ -153,7 +159,7 @@ ENTRY(ia32_sysenter_target) testl $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%r10) CFI_REMEMBER_STATE jnz sysenter_tracesys - cmpl $(IA32_NR_syscalls-1),%eax + cmpq $(IA32_NR_syscalls-1),%rax ja ia32_badsys sysenter_do_call: IA32_ARG_FIXUP
@@ -195,7 +201,7 @@ sysexit_from_sys_call: movl $AUDIT_ARCH_I386,%edi /* 1st arg: audit arch */ call audit_syscall_entry movl RAX-ARGOFFSET(%rsp),%eax /* reload syscall number */ - cmpl $(IA32_NR_syscalls-1),%eax + cmpq $(IA32_NR_syscalls-1),%rax ja ia32_badsys movl %ebx,%edi /* reload 1st syscall arg */ movl RCX-ARGOFFSET(%rsp),%esi /* reload 2nd syscall arg */
@@ -248,7 +254,7 @@ sysenter_tracesys: call syscall_trace_enter LOAD_ARGS32 ARGOFFSET /* reload args from stack in case ptrace changed it */ RESTORE_REST - cmpl $(IA32_NR_syscalls-1),%eax + cmpq $(IA32_NR_syscalls-1),%rax ja int_ret_from_sys_call /* sysenter_tracesys has set RAX(%rsp) */ jmp sysenter_do_call CFI_ENDPROC
@@ -314,7 +320,7 @@ ENTRY(ia32_cstar_target) testl $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%r10) CFI_REMEMBER_STATE jnz cstar_tracesys - cmpl $IA32_NR_syscalls-1,%eax + cmpq $IA32_NR_syscalls-1,%rax ja ia32_badsys cstar_do_call: IA32_ARG_FIXUP 1
@@ -367,7 +373,7 @@ cstar_tracesys: LOAD_ARGS32 ARGOFFSET, 1 /* reload args from stack in case ptrace changed it */ RESTORE_REST xchgl %ebp,%r9d - cmpl $(IA32_NR_syscalls-1),%eax + cmpq $(IA32_NR_syscalls-1),%rax ja int_ret_from_sys_call /* cstar_tracesys has set RAX(%rsp) */ jmp cstar_do_call END(ia32_cstar_target)
@@ -425,7 +431,7 @@ ENTRY(ia32_syscall) orl $TS_COMPAT,TI_status(%r10) testl $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%r10) jnz ia32_tracesys - cmpl $(IA32_NR_syscalls-1),%eax + cmpq $(IA32_NR_syscalls-1),%rax ja ia32_badsys ia32_do_call: IA32_ARG_FIXUP
@@ -444,7 +450,7 @@ ia32_tracesys: call syscall_trace_enter LOAD_ARGS32 ARGOFFSET /* reload args from stack in case ptrace changed it */ RESTORE_REST - cmpl $(IA32_NR_syscalls-1),%eax + cmpq $(IA32_NR_syscalls-1),%rax ja int_ret_from_sys_call /* ia32_tracesys has set RAX(%rsp) */ jmp ia32_do_call END(ia32_syscall)
arch/x86/include/asm/acpi.h +1 -0
@@ -89,6 +89,7 @@ extern int acpi_ht;extern int acpi_pci_disabled;extern int acpi_skip_timer_override;extern int acpi_use_timer_override; +extern int acpi_fix_pin2_polarity;extern u8 acpi_sci_flags;extern int acpi_sci_override_gsi;
arch/x86/include/asm/amd_iommu_proto.h +6 -0
@@ -38,4 +38,10 @@ static inline void amd_iommu_stats_init(void) { }#endif /* !CONFIG_AMD_IOMMU_STATS */ +static inline bool is_rd890_iommu (struct pci_dev *pdev) +{ +return (pdev->vendor ==PCI_VENDOR_ID_ATI ) && + (pdev->device ==PCI_DEVICE_ID_RD890_IOMMU ); +} +#endif /* _ASM_X86_AMD_IOMMU_PROTO_H */
arch/x86/include/asm/amd_iommu_types.h +12 -0
@@ -331,6 +331,9 @@ struct amd_iommu {/* capabilities of that IOMMU read from ACPI */ u32 cap; +/* flags read from acpi table */ +u8 acpi_flags; +/* * Capability pointer. There could be more than one IOMMU per PCI * device function if there are more than one AMD IOMMU capability
@@ -374,6 +377,15 @@ struct amd_iommu {/* default dma_ops domain for that IOMMU */ struct dma_ops_domain *default_dom; + +/* +* This array is required to work around a potential BIOS bug. +* The BIOS may miss to restore parts of the PCI configuration +* space when the system resumes from S3. The result is that the +* IOMMU does not execute commands anymore which leads to system +* failure. +*/ +u32 cache_cfg[4 ]; };/*
arch/x86/include/asm/compat.h +1 -1
@@ -204,7 +204,7 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr)return (u32 )(unsigned long )uptr; } -static inline void __user *compat_alloc_user_space (long len) +static inline void __user *arch_compat_alloc_user_space (long len) {struct pt_regs *regs =task_pt_regs (current);return (void __user *)regs->sp - len;
arch/x86/include/asm/cpufeature.h +1 -1
@@ -150,7 +150,7 @@#define X86_FEATURE_3DNOWPREFETCH (6*32+ 8)/* 3DNow prefetch instructions */ #define X86_FEATURE_OSVW (6*32+ 9)/* OS Visible Workaround */ #define X86_FEATURE_IBS (6*32+10)/* Instruction Based Sampling */ -#define X86_FEATURE_SSE5 (6*32+11)/* SSE-5 */ +#define X86_FEATURE_XOP (6*32+11)/* extended AVX instructions */ #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 */
arch/x86/include/asm/io.h +1 -0
@@ -172,6 +172,7 @@ static inline void __iomem *ioremap(resource_size_t offset, unsigned long size)extern void iounmap (volatile void __iomem *addr); +extern void set_iounmap_nonlazy (void );#ifdef CONFIG_X86_32 # include "io_32.h"
arch/x86/include/asm/mmu_context.h +3 -2
@@ -36,8 +36,6 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,unsigned cpu =smp_processor_id ();if (likely (prev != next)) { -/* stop flush ipis for the previous mm */ -cpumask_clear_cpu (cpu,mm_cpumask (prev));#ifdef CONFIG_SMP percpu_write (cpu_tlbstate.state,TLBSTATE_OK );percpu_write (cpu_tlbstate.active_mm, next);
@@ -47,6 +45,9 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,/* Re-load page tables */ load_cr3 (next->pgd); +/* stop flush ipis for the previous mm */ +cpumask_clear_cpu (cpu,mm_cpumask (prev)); +/* * load the LDT, if the LDT is different: */
arch/x86/include/asm/pgtable-3level.h +3 -8
@@ -69,8 +69,6 @@ static inline void native_pmd_clear(pmd_t *pmd)static inline void pud_clear (pud_t *pudp) { -unsigned long pgd; -set_pud (pudp,__pud (0 ));/*
@@ -79,13 +77,10 @@ static inline void pud_clear(pud_t *pudp)* section 8.1: in PAE mode we explicitly have to flush the * TLB via cr3 if the top-level pgd is changed... * -* Make sure the pud entry we're updating is within the -* current pgd to avoid unnecessary TLB flushes. +* Currently all places where pud_clear() is called either have +* flush_tlb_mm() followed or don't need TLB flush (x86_64 code or +* pud_clear_bad()), so we don't need TLB flush here. */ - pgd =read_cr3 (); -if (__pa (pudp) >= pgd &&__pa (pudp) < - (pgd +sizeof (pgd_t)*PTRS_PER_PGD )) -write_cr3 (pgd); }#ifdef CONFIG_SMP
arch/x86/include/asm/pgtable_32.h +1 -0
@@ -27,6 +27,7 @@ struct mm_struct;struct vm_area_struct ;extern pgd_t swapper_pg_dir[1024 ]; +extern pgd_t trampoline_pg_dir[1024 ];static inline void pgtable_cache_init (void ) { }static inline void check_pgt_cache (void ) { }
arch/x86/include/asm/processor.h +0 -23
@@ -767,29 +767,6 @@ extern unsigned long boot_option_idle_override;extern unsigned long idle_halt;extern unsigned long idle_nomwait; -/* -* on systems with caches, caches must be flashed as the absolute -* last instruction before going into a suspended halt. Otherwise, -* dirty data can linger in the cache and become stale on resume, -* leading to strange errors. -* -* perform a variety of operations to guarantee that the compiler -* will not reorder instructions. wbinvd itself is serializing -* so the processor will not reorder. -* -* Systems without cache can just go into halt. -*/ -static inline void wbinvd_halt (void ) -{ -mb (); -/* check for clflush to determine if wbinvd is legal */ -if (cpu_has_clflush) - asmvolatile ("cli; wbinvd; 1: hlt; jmp 1b" : : :"memory" ); -else -while (1 ) -halt (); -} -extern void enable_sep_cpu (void );extern int sysenter_setup (void );
arch/x86/include/asm/pvclock.h +1 -0
@@ -10,5 +10,6 @@ unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src);void pvclock_read_wallclock (struct pvclock_wall_clock *wall,struct pvclock_vcpu_time_info *vcpu,struct timespec *ts); +void pvclock_resume (void );#endif /* _ASM_X86_PVCLOCK_H */
arch/x86/include/asm/smp.h +7 -2
@@ -50,7 +50,7 @@ struct smp_ops {void (*smp_prepare_cpus)(unsigned max_cpus);void (*smp_cpus_done)(unsigned max_cpus); -void (*smp_send_stop)(void ); +void (*stop_other_cpus)(int wait);void (*smp_send_reschedule)(int cpu);int (*cpu_up)(unsigned cpu);
@@ -73,7 +73,12 @@ extern struct smp_ops smp_ops;static inline void smp_send_stop (void ) { - smp_ops.smp_send_stop (); + smp_ops.stop_other_cpus (0 ); +} + +static inline void stop_other_cpus (void ) +{ + smp_ops.stop_other_cpus (1 ); }static inline void smp_prepare_boot_cpu (void )
arch/x86/include/asm/smpboot_hooks.h +1 -1
@@ -34,7 +34,7 @@ static inline void smpboot_restore_warm_reset_vector(void)*/ CMOS_WRITE (0 ,0xf ); - *((volatile long *)phys_to_virt (apic->trampoline_phys_low)) =0 ; + *((volatile u32 *)phys_to_virt (apic->trampoline_phys_low)) =0 ; }static inline void __init smpboot_setup_io_apic (void )
arch/x86/include/asm/trampoline.h +4 -1
@@ -13,14 +13,17 @@ extern unsigned char *trampoline_base;extern unsigned long init_rsp;extern unsigned long initial_code; +extern unsigned long initial_page_table;extern unsigned long initial_gs;#define TRAMPOLINE_SIZE roundup(trampoline_end - trampoline_data, PAGE_SIZE)extern unsigned long setup_trampoline (void ); +extern void __init setup_trampoline_page_table (void );extern void __init reserve_trampoline_memory (void );#else -static inline void reserve_trampoline_memory (void ) {}; +static inline void setup_trampoline_page_table (void ) {} +static inline void reserve_trampoline_memory (void ) {}#endif /* CONFIG_X86_TRAMPOLINE */ #endif /* __ASSEMBLY__ */
arch/x86/kernel/Makefile +2 -0
@@ -11,6 +11,8 @@ ifdef CONFIG_FUNCTION_TRACER CFLAGS_REMOVE_tsc.o = -pg CFLAGS_REMOVE_rtc.o = -pg CFLAGS_REMOVE_paravirt-spinlocks.o = -pg +CFLAGS_REMOVE_pvclock.o = -pg +CFLAGS_REMOVE_kvmclock.o = -pg CFLAGS_REMOVE_ftrace.o = -pg CFLAGS_REMOVE_early_printk.o = -pg endif
arch/x86/kernel/acpi/boot.c +10 -4
@@ -70,6 +70,7 @@ u8 acpi_sci_flags __initdata;int acpi_sci_override_gsi__initdata ;int acpi_skip_timer_override__initdata ;int acpi_use_timer_override__initdata ; +int acpi_fix_pin2_polarity__initdata ;#ifdef CONFIG_X86_LOCAL_APIC static u64 acpi_lapic_addr__initdata =APIC_DEFAULT_PHYS_BASE ;
@@ -360,10 +361,15 @@ acpi_parse_int_src_ovr(struct acpi_subtable_header * header,return 0 ; } -if (acpi_skip_timer_override && - intsrc->source_irq ==0 && intsrc->global_irq ==2 ) { -printk (PREFIX "BIOS IRQ0 pin2 override ignored.\n" ); -return 0 ; +if (intsrc->source_irq ==0 && intsrc->global_irq ==2 ) { +if (acpi_skip_timer_override) { +printk (PREFIX "BIOS IRQ0 pin2 override ignored.\n" ); +return 0 ; + } +if (acpi_fix_pin2_polarity && (intsrc->inti_flags &ACPI_MADT_POLARITY_MASK )) { + intsrc->inti_flags &= ~ACPI_MADT_POLARITY_MASK ; +printk (PREFIX "BIOS IRQ0 pin2 override: forcing polarity to high active.\n" ); + } } mp_override_legacy_irq(intsrc->source_irq,
arch/x86/kernel/amd_iommu.c +3 -1
@@ -1885,6 +1885,7 @@ static void __unmap_single(struct dma_ops_domain *dma_dom, size_t size, int dir) { +dma_addr_t flush_addr;dma_addr_t i, start;unsigned int pages;
@@ -1892,6 +1893,7 @@ static void __unmap_single(struct dma_ops_domain *dma_dom, (dma_addr + size > dma_dom->aperture_size)) return; + flush_addr = dma_addr; pages =iommu_num_pages (dma_addr, size,PAGE_SIZE ); dma_addr &=PAGE_MASK ; start = dma_addr;
@@ -1906,7 +1908,7 @@ static void __unmap_single(struct dma_ops_domain *dma_dom,dma_ops_free_addresses (dma_dom, dma_addr, pages);if (amd_iommu_unmap_flush || dma_dom->need_flush) { -iommu_flush_pages (&dma_dom->domain, dma_addr, size); +iommu_flush_pages (&dma_dom->domain, flush_addr, size); dma_dom->need_flush = false; } }
arch/x86/kernel/amd_iommu_init.c +45 -22
92 lines not on this page · raw message
arch/x86/kernel/apic/apic.c +8 -0
@@ -1315,6 +1315,14 @@ void __cpuinit end_local_APIC_setup(void)setup_apic_nmi_watchdog (NULL );apic_pm_activate (); + +/* +* Now that local APIC setup is completed for BP, configure the fault +* handling for interrupt remapping. +*/ +if (!smp_processor_id () && intr_remapping_enabled) +enable_drhd_fault_handling (); + }#ifdef CONFIG_X86_X2APIC
arch/x86/kernel/apic/io_apic.c +11 -3
@@ -316,14 +316,19 @@ void arch_init_copy_chip_data(struct irq_desc *old_desc, old_cfg = old_desc->chip_data; -memcpy (cfg, old_cfg,sizeof (struct irq_cfg )); + cfg->vector = old_cfg->vector; + cfg->move_in_progress = old_cfg->move_in_progress; +cpumask_copy (cfg->domain, old_cfg->domain); +cpumask_copy (cfg->old_domain, old_cfg->old_domain);init_copy_irq_2_pin (old_cfg, cfg, node); } -static void free_irq_cfg (struct irq_cfg *old_cfg) +static void free_irq_cfg (struct irq_cfg *cfg) { -kfree (old_cfg); +free_cpumask_var (cfg->domain); +free_cpumask_var (cfg->old_domain); +kfree (cfg); }void arch_free_chip_data (struct irq_desc *old_desc,struct irq_desc *desc)
@@ -1394,6 +1399,7 @@ int setup_ioapic_entry(int apic_id, int irq, irte.dlvry_mode = apic->irq_delivery_mode; irte.vector = vector; irte.dest_id =IRTE_DEST (destination); + irte.redir_hint =1 ;/* Set source-id of interrupt request */ set_ioapic_sid (&irte, apic_id);
@@ -3353,6 +3359,7 @@ static int msi_compose_msg(struct pci_dev *pdev, unsigned int irq, irte.dlvry_mode = apic->irq_delivery_mode; irte.vector = cfg->vector; irte.dest_id =IRTE_DEST (dest); + irte.redir_hint =1 ;/* Set source-id of interrupt request */ if (pdev)
@@ -3629,6 +3636,7 @@ static int dmar_msi_set_affinity(unsigned int irq, const struct cpumask *mask) msg.data |=MSI_DATA_VECTOR (cfg->vector); msg.address_lo &= ~MSI_ADDR_DEST_ID_MASK ; msg.address_lo |=MSI_ADDR_DEST_ID (dest); + msg.address_hi =MSI_ADDR_BASE_HI |MSI_ADDR_EXT_DEST_ID (dest);dmar_msi_write (irq, &msg);
arch/x86/kernel/apic/probe_64.c +0 -7
@@ -76,13 +76,6 @@ void __init default_setup_apic_routing(void)/* need to update phys_pkg_id */ apic->phys_pkg_id = apicid_phys_pkg_id; } - -/* -* Now that apic routing model is selected, configure the -* fault handling for intr remapping. -*/ -if (intr_remapping_enabled) -enable_drhd_fault_handling (); }/* Same for both flat and physical. */
arch/x86/kernel/cpu/amd.c +1 -2
@@ -305,8 +305,7 @@ static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c)/* use socket ID also for last level cache */ per_cpu (cpu_llc_id, cpu) = c->phys_proc_id;/* fixup topology information on multi-node processors */ -if ((c->x86 ==0x10 ) && (c->x86_model ==9 )) -amd_fixup_dcm (c); +amd_fixup_dcm (c);#endif }
arch/x86/kernel/cpu/common.c +2 -2
@@ -537,7 +537,7 @@ void __cpuinit cpu_detect(struct cpuinfo_x86 *c) } } -static void __cpuinit get_cpu_cap (struct cpuinfo_x86 *c) +void __cpuinit get_cpu_cap (struct cpuinfo_x86 *c) {u32 tfms, xlvl;u32 ebx;
@@ -576,6 +576,7 @@ static void __cpuinit get_cpu_cap(struct cpuinfo_x86 *c)if (c->extended_cpuid_level >=0x80000007 ) c->x86_power =cpuid_edx (0x80000007 ); +init_scattered_cpuid_features (c); }static void __cpuinit identify_cpu_without_cpuid (struct cpuinfo_x86 *c)
@@ -731,7 +732,6 @@ static void __cpuinit generic_identify(struct cpuinfo_x86 *c)get_model_name (c);/* Default name */ -init_scattered_cpuid_features (c);detect_nopl (c); }
arch/x86/kernel/cpu/cpu.h +1 -0
@@ -33,5 +33,6 @@ extern const struct cpu_dev *const __x86_cpu_dev_start[], *const __x86_cpu_dev_end[];extern void cpu_detect_cache_sizes (struct cpuinfo_x86 *c); +extern void get_cpu_cap (struct cpuinfo_x86 *c);#endif
arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c +1 -0
@@ -743,6 +743,7 @@ static int acpi_cpufreq_cpu_exit(struct cpufreq_policy *policy)per_cpu (acfreq_data, policy->cpu) =NULL ;acpi_processor_unregister_performance (data->acpi_data, policy->cpu); +kfree (data->freq_table);kfree (data); }
arch/x86/kernel/cpu/intel.c +1 -0
@@ -40,6 +40,7 @@ static void __cpuinit early_init_intel(struct cpuinfo_x86 *c) misc_enable &= ~MSR_IA32_MISC_ENABLE_LIMIT_CPUID ;wrmsrl (MSR_IA32_MISC_ENABLE , misc_enable); c->cpuid_level =cpuid_eax (0 ); +get_cpu_cap (c); } }
arch/x86/kernel/cpu/mcheck/mce_amd.c +3 -6
@@ -140,6 +140,7 @@ void mce_amd_feature_init(struct cpuinfo_x86 *c) address = (low &MASK_BLKPTR_LO ) >>21 ;if (!address)break ; + address +=MCG_XBLK_ADDR ; }else ++address;
@@ -147,12 +148,8 @@ void mce_amd_feature_init(struct cpuinfo_x86 *c)if (rdmsr_safe (address, &low, &high))break ; -if (!(high &MASK_VALID_HI )) { -if (block) -continue ; -else -break ; - } +if (!(high &MASK_VALID_HI )) +continue ;if (!(high &MASK_CNTP_HI ) || (high &MASK_LOCKED_HI ))
arch/x86/kernel/cpu/mtrr/cleanup.c +1 -1
@@ -977,7 +977,7 @@ int __init amd_special_default_mtrr(void)if (boot_cpu_data.x86_vendor !=X86_VENDOR_AMD )return 0 ; -if (boot_cpu_data.x86 <0xf || boot_cpu_data.x86 >0x11 ) +if (boot_cpu_data.x86 <0xf )return 0 ;/* In case some hypervisor doesn't pass SYSCFG through: */ if (rdmsr_safe (MSR_K8_SYSCFG , &l, &h) <0 )
arch/x86/kernel/cpu/mtrr/main.c +9 -1
@@ -762,13 +762,21 @@ void set_mtrr_aps_delayed_init(void) }/* -* MTRR initialization for all AP's +* Delayed MTRR initialization for all AP's */ void mtrr_aps_init (void ) {if (!use_intel ())return ; +/* +* Check if someone has requested the delay of AP MTRR initialization, +* by doing set_mtrr_aps_delayed_init(), prior to this point. If not, +* then we are done. +*/ +if (!mtrr_aps_delayed_init) +return ; +set_mtrr (~0U ,0 ,0 ,0 ); mtrr_aps_delayed_init = false; }
arch/x86/kernel/crash_dump_64.c +2 -1
@@ -34,7 +34,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf,if (!csize)return 0 ; - vaddr =ioremap (pfn <<PAGE_SHIFT ,PAGE_SIZE ); + vaddr =ioremap_cache (pfn <<PAGE_SHIFT ,PAGE_SIZE );if (!vaddr)return -ENOMEM ;
@@ -46,6 +46,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf, }else memcpy (buf, vaddr + offset, csize); +set_iounmap_nonlazy ();iounmap (vaddr);return csize; }
arch/x86/kernel/e820.c +8 -2
@@ -1245,15 +1245,21 @@ static int __init parse_memopt(char *p)if (!p)return -EINVAL ; -#ifdef CONFIG_X86_32 if (!strcmp (p,"nopentium" )) { +#ifdef CONFIG_X86_32 setup_clear_cpu_cap (X86_FEATURE_PSE );return 0 ; - } +#else +printk (KERN_WARNING "mem=nopentium ignored! (only supported on x86_32)\n" ); +return -EINVAL ;#endif + } userdef =1 ; mem_size =memparse (p, &p); +/* don't remove all of memory when handling "mem={invalid}" param */ +if (mem_size ==0 ) +return -EINVAL ;e820_remove_range (mem_size,ULLONG_MAX - mem_size,E820_RAM ,1 );return 0 ;
arch/x86/kernel/early-quirks.c +12 -9
@@ -145,15 +145,10 @@ static void __init ati_bugs(int num, int slot, int func)static u32 __init ati_sbx00_rev (int num,int slot,int func) { -u32 old, d; +u32 d; - d =read_pci_config (num, slot, func,0x70 ); - old = d; - d &= ~(1 <<8 ); -write_pci_config (num, slot, func,0x70 , d); d =read_pci_config (num, slot, func,0x8 ); d &=0xff ; -write_pci_config (num, slot, func,0x70 , old);return d; }
@@ -162,11 +157,19 @@ static void __init ati_bugs_contd(int num, int slot, int func) {u32 d, rev; -if (acpi_use_timer_override) + rev =ati_sbx00_rev (num, slot, func); +if (rev >=0x40 ) + acpi_fix_pin2_polarity =1 ; + +/* +* SB600: revisions 0x11, 0x12, 0x13, 0x14, ... +* SB700: revisions 0x39, 0x3a, ... +* SB800: revisions 0x40, 0x41, ... +*/ +if (rev >=0x39 )return ; - rev =ati_sbx00_rev (num, slot, func); -if (rev >0x13 ) +if (acpi_use_timer_override)return ;/* check for IRQ0 interrupt swap */
arch/x86/kernel/head_32.S +7 -1
@@ -328,7 +328,7 @@ ENTRY(startup_32_smp) /* * Enable paging */ - movl $pa(swapper_pg_dir),%eax + movl pa(initial_page_table), %eax movl %eax,%cr3 /* set the page table pointer.. */ movl %cr0,%eax orl $X86_CR0_PG,%eax
@@ -608,6 +608,8 @@ ignore_int: .align 4 ENTRY(initial_code) .long i386_start_kernel +ENTRY(initial_page_table) + .long pa(swapper_pg_dir) /* * BSS section
@@ -623,6 +625,10 @@ ENTRY(swapper_pg_dir) #endif swapper_pg_fixmap: .fill 1024,4,0 +#ifdef CONFIG_X86_TRAMPOLINE +ENTRY(trampoline_pg_dir) + .fill 1024,4,0 +#endif ENTRY(empty_zero_page) .fill 4096,1,0
arch/x86/kernel/hpet.c +1 -1
@@ -498,7 +498,7 @@ static int hpet_assign_irq(struct hpet_dev *dev) {unsigned int irq; - irq =create_irq (); + irq =create_irq_nr (0 ,-1 );if (!irq)return -EINVAL ;
arch/x86/kernel/hw_breakpoint.c +4 -0
@@ -457,6 +457,10 @@ static int __kprobes hw_breakpoint_handler(struct die_args *args) dr6_p = (unsigned long *)ERR_PTR (args->err); dr6 = *dr6_p; +/* If it's a single step, TRAP bits are random */ +if (dr6 &DR_STEP ) +return NOTIFY_DONE ; +/* Do an early return if no trap bits are set in DR6 */ if ((dr6 &DR_TRAP_BITS ) ==0 )return NOTIFY_DONE ;
arch/x86/kernel/olpc.c +4 -1
@@ -115,6 +115,7 @@ int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen,unsigned long flags;int ret = -EIO ;int i; +int restarts =0 ;spin_lock_irqsave (&ec_lock, flags);
@@ -171,7 +172,9 @@ restart:if (wait_on_obf (0x6c ,1 )) {printk (KERN_ERR "olpc-ec: timeout waiting for" " EC to provide data!\n" ); - goto restart; +if (restarts++ <10 ) + goto restart; + goto err; } outbuf[i] =inb (0x68 ); printk(KERN_DEBUG "olpc-ec: received 0x%x\n",
arch/x86/kernel/pvclock.c +5 -0
@@ -111,6 +111,11 @@ unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src)static atomic64_t last_value =ATOMIC64_INIT (0 ); +void pvclock_resume (void ) +{ +atomic64_set (&last_value,0 ); +} +cycle_t pvclock_clocksource_read (struct pvclock_vcpu_time_info *src) {struct pvclock_shadow_time shadow;
arch/x86/kernel/reboot.c +1 -1
@@ -633,7 +633,7 @@ void native_machine_shutdown(void)/* O.K Now that I'm on the appropriate processor, * stop all of the others. */ -smp_send_stop (); +stop_other_cpus ();#endif lapic_shutdown ();
arch/x86/kernel/setup.c +2 -0
@@ -981,6 +981,8 @@ void __init setup_arch(char **cmdline_p)paging_init (); x86_init.paging.pagetable_setup_done (swapper_pg_dir); +setup_trampoline_page_table (); +tboot_probe ();#ifdef CONFIG_X86_64
arch/x86/kernel/smp.c +9 -6
@@ -158,10 +158,10 @@ asmlinkage void smp_reboot_interrupt(void)irq_exit (); } -static void native_smp_send_stop (void ) +static void native_stop_other_cpus (int wait) {unsigned long flags; -unsigned long wait; +unsigned long timeout;if (reboot_force)return ;
@@ -178,9 +178,12 @@ static void native_smp_send_stop(void)if (num_online_cpus () >1 ) { apic->send_IPI_allbutself (REBOOT_VECTOR ); -/* Don't wait longer than a second */ - wait =USEC_PER_SEC ; -while (num_online_cpus () >1 && wait--) +/* +* Don't wait longer than a second if the caller +* didn't ask us to wait. +*/ + timeout =USEC_PER_SEC ; +while (num_online_cpus () >1 && (wait || timeout--))udelay (1 ); }
@@ -226,7 +229,7 @@ struct smp_ops smp_ops = { .smp_prepare_cpus = native_smp_prepare_cpus, .smp_cpus_done = native_smp_cpus_done, - .smp_send_stop = native_smp_send_stop, + .stop_other_cpus = native_stop_other_cpus, .smp_send_reschedule = native_smp_send_reschedule, .cpu_up = native_cpu_up,
arch/x86/kernel/smpboot.c +97 -20
159 lines not on this page · raw message
arch/x86/kernel/trampoline.c +17 -0
@@ -1,6 +1,7 @@#include <linux/io.h> #include <asm/trampoline.h> +#include <asm/pgtable.h> #include <asm/e820.h> #if defined(CONFIG_X86_64 ) && defined(CONFIG_ACPI_SLEEP )
@@ -37,3 +38,19 @@ unsigned long __trampinit setup_trampoline(void)memcpy (trampoline_base, trampoline_data,TRAMPOLINE_SIZE );return virt_to_phys (trampoline_base); } + +void __init setup_trampoline_page_table (void ) +{ +#ifdef CONFIG_X86_32 +/* Copy kernel address range */ +clone_pgd_range (trampoline_pg_dir +KERNEL_PGD_BOUNDARY , + swapper_pg_dir +KERNEL_PGD_BOUNDARY , +KERNEL_PGD_PTRS ); + +/* Initialize low mappings */ +clone_pgd_range (trampoline_pg_dir, + swapper_pg_dir +KERNEL_PGD_BOUNDARY , + min_t(unsigned long, KERNEL_PGD_PTRS, +KERNEL_PGD_BOUNDARY )); +#endif +}
arch/x86/kvm/x86.c +1 -1
@@ -1615,7 +1615,7 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,const u32 kvm_supported_word6_x86_features =F (LAHF_LM ) |F (CMP_LEGACY ) |F (SVM ) |0 /* ExtApicSpace */ |F (CR8_LEGACY ) |F (ABM ) |F (SSE4A ) |F (MISALIGNSSE ) | - F(3DNOWPREFETCH) | 0 /* OSVW */ | 0 /* IBS */ | F(SSE5) | + F(3DNOWPREFETCH) | 0 /* OSVW */ | 0 /* IBS */ | F(XOP) |0 /* SKINIT */ |0 /* WDT */ ;/* all calls to cpuid_count() should be made on the same cpu */
arch/x86/mm/fault.c +7 -0
@@ -829,6 +829,13 @@ mm_fault_error(struct pt_regs *regs, unsigned long error_code, unsigned long address, unsigned int fault) {if (fault &VM_FAULT_OOM ) { +/* Kernel mode? Handle exceptions or die: */ +if (!(error_code &PF_USER )) { +up_read (¤t->mm->mmap_sem); +no_context (regs, error_code, address); +return ; + } +out_of_memory (regs, error_code, address); }else {if (fault & (VM_FAULT_SIGBUS |VM_FAULT_HWPOISON ))
arch/x86/mm/pgtable.c +1 -2
@@ -159,8 +159,7 @@ void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd)* section 8.1: in PAE mode we explicitly have to flush the * TLB via cr3 if the top-level pgd is changed... */ -if (mm == current->active_mm) - write_cr3(read_cr3()); + flush_tlb_mm(mm); }#else /* !CONFIG_X86_PAE */
arch/x86/mm/srat_64.c +5 -3
@@ -372,9 +372,11 @@ int __init acpi_scan_nodes(unsigned long start, unsigned long end)return -1 ; } -for_each_node_mask (i, nodes_parsed) -e820_register_active_regions (i, nodes[i].start >>PAGE_SHIFT , - nodes[i].end >>PAGE_SHIFT ); +for (i =0 ; i < num_node_memblks; i++) +e820_register_active_regions (memblk_nodeid[i], + node_memblk_range[i].start >>PAGE_SHIFT , + node_memblk_range[i].end >>PAGE_SHIFT ); +/* for out of order entries in SRAT */ sort_node_map ();if (!nodes_cover_memory (nodes)) {
arch/x86/vdso/Makefile +2 -2
@@ -25,7 +25,7 @@ targets += vdso.so vdso.so.dbg vdso.lds $(vobjs-y) export CPPFLAGS_vdso.lds += -P -C -VDSO_LDFLAGS_vdso.lds = -m elf_x86_64 -Wl,-soname=linux-vdso.so.1 \ +VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \ -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 $(obj)/vdso.o: $(src)/vdso.S $(obj)/vdso.so
@@ -69,7 +69,7 @@ vdso32.so-$(VDSO32-y) += sysenter vdso32-images = $(vdso32.so-y:%=vdso32-%.so) CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds) -VDSO_LDFLAGS_vdso32.lds = -m elf_i386 -Wl,-soname=linux-gate.so.1 +VDSO_LDFLAGS_vdso32.lds = -m32 -Wl,-soname=linux-gate.so.1 # This makes sure the $(obj) subdirectory exists even though vdso32/ # is not a kbuild sub-make subdirectory.
arch/x86/xen/enlighten.c +0 -4
@@ -999,10 +999,6 @@ static void xen_reboot(int reason) {struct sched_shutdown r = { .reason = reason }; -#ifdef CONFIG_SMP -smp_send_stop (); -#endif -if (HYPERVISOR_sched_op (SCHEDOP_shutdown, &r))BUG (); }
arch/x86/xen/smp.c +3 -3
@@ -397,9 +397,9 @@ static void stop_self(void *v)BUG (); } -static void xen_smp_send_stop (void ) +static void xen_stop_other_cpus (int wait) { -smp_call_function (stop_self,NULL ,0 ); +smp_call_function (stop_self,NULL , wait); }static void xen_smp_send_reschedule (int cpu)
@@ -467,7 +467,7 @@ static const struct smp_ops xen_smp_ops __initdata = { .cpu_disable = xen_cpu_disable, .play_dead = xen_play_dead, - .smp_send_stop = xen_smp_send_stop, + .stop_other_cpus = xen_stop_other_cpus, .smp_send_reschedule = xen_smp_send_reschedule, .send_call_func_ipi = xen_smp_send_call_function_ipi,
arch/x86/xen/time.c +2 -0
@@ -463,6 +463,8 @@ void xen_timer_resume(void) {int cpu; +pvclock_resume (); +if (xen_clockevent != &xen_vcpuop_clockevent)return ;
block/blk-map.c +2 -0
@@ -205,6 +205,8 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq, unaligned =1 ;break ; } +if (!iov[i].iov_len) +return -EINVAL ; }if (unaligned || (q->dma_pad_mask & len) || map_data)
block/blk-settings.c +1 -1
@@ -356,7 +356,7 @@ EXPORT_SYMBOL(blk_queue_logical_block_size);* hardware can operate on without reverting to read-modify-write * operations. */ -void blk_queue_physical_block_size (struct request_queue *q,unsigned short size) +void blk_queue_physical_block_size (struct request_queue *q,unsigned int size) { q->limits.physical_block_size = size;
block/bsg.c +1 -1
@@ -425,7 +425,7 @@ static int blk_complete_sgv4_hdr_rq(struct request *rq, struct sg_io_v4 *hdr,/* * fill in all the output members */ - hdr->device_status =status_byte (rq->errors); + hdr->device_status = rq->errors &0xff ; hdr->transport_status =host_byte (rq->errors); hdr->driver_status =driver_byte (rq->errors); hdr->info =0 ;
block/cfq-iosched.c +4 -0
@@ -3262,6 +3262,10 @@ static bool cfq_should_wait_busy(struct cfq_data *cfqd, struct cfq_queue *cfqq) {struct cfq_io_context *cic = cfqd->active_cic; +/* If the queue already has requests, don't wait */ +if (!RB_EMPTY_ROOT (&cfqq->sort_list)) +return false; +/* If there are other queues in the group, don't wait */ if (cfqq->cfqg->nr_cfqq >1 )return false;
block/scsi_ioctl.c +24 -10
@@ -321,33 +321,47 @@ static int sg_io(struct request_queue *q, struct gendisk *bd_disk,if (hdr->iovec_count) {const int size =sizeof (struct sg_iovec ) * hdr->iovec_count;size_t iov_data_len; -struct sg_iovec *iov; +struct sg_iovec *sg_iov; +struct iovec *iov; +int i; - iov =kmalloc (size,GFP_KERNEL ); -if (!iov) { + sg_iov =kmalloc (size,GFP_KERNEL ); +if (!sg_iov) { ret = -ENOMEM ; goto out; } -if (copy_from_user (iov, hdr->dxferp, size)) { -kfree (iov); +if (copy_from_user (sg_iov, hdr->dxferp, size)) { +kfree (sg_iov); ret = -EFAULT ; goto out; } +/* +* Sum up the vecs, making sure they don't overflow +*/ + iov = (struct iovec *) sg_iov; + iov_data_len =0 ; +for (i =0 ; i < hdr->iovec_count; i++) { +if (iov_data_len + iov[i].iov_len < iov_data_len) { +kfree (sg_iov); + ret = -EINVAL ; + goto out; + } + iov_data_len += iov[i].iov_len; + } +/* SG_IO howto says that the shorter of the two wins */ - iov_data_len =iov_length ((struct iovec *)iov, - hdr->iovec_count);if (hdr->dxfer_len < iov_data_len) { - hdr->iovec_count =iov_shorten ((struct iovec *)iov, + hdr->iovec_count =iov_shorten (iov, hdr->iovec_count, hdr->dxfer_len); iov_data_len = hdr->dxfer_len; } - ret =blk_rq_map_user_iov (q, rq,NULL , iov, hdr->iovec_count, + ret =blk_rq_map_user_iov (q, rq,NULL , sg_iov, hdr->iovec_count, iov_data_len,GFP_KERNEL ); -kfree (iov); +kfree (sg_iov); }else if (hdr->dxfer_len) ret =blk_rq_map_user (q, rq,NULL , hdr->dxferp, hdr->dxfer_len,GFP_KERNEL );
drivers/acpi/acpica/aclocal.h +1 -0
@@ -846,6 +846,7 @@ struct acpi_bit_register_info { ACPI_BITMASK_POWER_BUTTON_STATUS | \ ACPI_BITMASK_SLEEP_BUTTON_STATUS | \ ACPI_BITMASK_RT_CLOCK_STATUS | \ + ACPI_BITMASK_PCIEXP_WAKE_DISABLE | \ ACPI_BITMASK_WAKE_STATUS)#define ACPI_BITMASK_TIMER_ENABLE 0x0001
drivers/acpi/acpica/dswexec.c +17 -2
@@ -300,10 +300,25 @@ acpi_ds_exec_begin_op(struct acpi_walk_state *walk_state,* we must enter this object into the namespace. The created * object is temporary and will be deleted upon completion of * the execution of this method. +* +* Note 10/2010: Except for the Scope() op. This opcode does +* not actually create a new object, it refers to an existing +* object. However, for Scope(), we want to indeed open a +* new scope. */ - status =acpi_ds_load2_begin_op (walk_state,NULL ); +if (op->common.aml_opcode !=AML_SCOPE_OP ) { + status = +acpi_ds_load2_begin_op (walk_state,NULL ); + }else { + status = +acpi_ds_scope_stack_push (op->named.node, + op->named.node-> + type, walk_state); +if (ACPI_FAILURE (status)) { +return_ACPI_STATUS (status); + } + } } -break ;case AML_CLASS_EXECUTE :
drivers/acpi/blacklist.c +16 -0
@@ -218,6 +218,14 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = { }, }, { + .callback = dmi_disable_osi_vista, + .ident = "Toshiba Satellite L355", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"TOSHIBA" ), + DMI_MATCH(DMI_PRODUCT_VERSION, "Satellite L355"), + }, + }, + { .callback = dmi_disable_osi_win7, .ident = "ASUS K50IJ", .matches = {
@@ -225,6 +233,14 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = { DMI_MATCH(DMI_PRODUCT_NAME, "K50IJ"), }, }, + { + .callback = dmi_disable_osi_vista, + .ident = "Toshiba P305D", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P305D"), + }, + },/* * BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
drivers/acpi/ec.c +3 -0
@@ -954,6 +954,9 @@ static struct dmi_system_id __initdata ec_dmi_table[] = { ec_flag_msi, "MSI hardware", { DMI_MATCH(DMI_CHASSIS_VENDOR, "MICRO-Star")}, NULL}, { + ec_flag_msi, "MSI hardware", { + DMI_MATCH(DMI_CHASSIS_VENDOR, "MICRO-STAR")}, NULL}, + { ec_validate_ecdt, "ASUS hardware", { DMI_MATCH(DMI_BIOS_VENDOR, "ASUS") }, NULL}, {},
drivers/ata/ahci.c +5 -0
@@ -576,6 +576,11 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0x1c05), board_ahci }, /* CPT RAID */ { PCI_VDEVICE(INTEL, 0x1c06), board_ahci }, /* CPT RAID */ { PCI_VDEVICE(INTEL, 0x1c07), board_ahci }, /* CPT RAID */ + { PCI_VDEVICE(INTEL, 0x1d02), board_ahci }, /* PBG AHCI */ + { PCI_VDEVICE(INTEL, 0x1d04), board_ahci }, /* PBG RAID */ + { PCI_VDEVICE(INTEL, 0x1d06), board_ahci }, /* PBG RAID */ + { PCI_VDEVICE(INTEL, 0x2826), board_ahci }, /* PBG RAID */ + { PCI_VDEVICE(INTEL, 0x2323), board_ahci }, /* DH89xxCC AHCI *//* 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/libata-core.c +15 -9
@@ -5016,9 +5016,6 @@ static void ata_verify_xfer(struct ata_queued_cmd *qc) {struct ata_device *dev = qc->dev; -if (ata_tag_internal (qc->tag)) -return ; -if (ata_is_nodata (qc->tf.protocol))return ;
@@ -5062,14 +5059,23 @@ void ata_qc_complete(struct ata_queued_cmd *qc)if (unlikely (qc->err_mask)) qc->flags |=ATA_QCFLAG_FAILED ; -if (unlikely (qc->flags &ATA_QCFLAG_FAILED )) { -/* always fill result TF for failed qc */ +/* +* Finish internal commands without any further processing +* and always with the result TF filled. +*/ +if (unlikely (ata_tag_internal (qc->tag))) {fill_result_tf (qc); +__ata_qc_complete (qc); +return ; + } -if (!ata_tag_internal (qc->tag)) -ata_qc_schedule_eh (qc); -else -__ata_qc_complete (qc); +/* +* Non-internal qc has failed. Fill the result TF and +* summon EH. +*/ +if (unlikely (qc->flags &ATA_QCFLAG_FAILED )) { +fill_result_tf (qc); +ata_qc_schedule_eh (qc);return ; }
drivers/ata/libata-scsi.c +4 -1
@@ -2547,8 +2547,11 @@ static void atapi_qc_complete(struct ata_queued_cmd *qc)* * If door lock fails, always clear sdev->locked to * avoid this infinite loop. +* +* This may happen before SCSI scan is complete. Make +* sure qc->dev->sdev isn't NULL before dereferencing. */ -if (qc->cdb[0 ] ==ALLOW_MEDIUM_REMOVAL ) +if (qc->cdb[0 ] ==ALLOW_MEDIUM_REMOVAL && qc->dev->sdev) qc->dev->sdev->locked =0 ; qc->scsicmd->result =SAM_STAT_CHECK_CONDITION ;
drivers/ata/pata_mpc52xx.c +1 -1
@@ -610,7 +610,7 @@ static struct scsi_host_template mpc52xx_ata_sht = { };static struct ata_port_operations mpc52xx_ata_port_ops = { - .inherits = &ata_sff_port_ops, + .inherits = &ata_bmdma_port_ops, .sff_dev_select = mpc52xx_ata_dev_select, .set_piomode = mpc52xx_ata_set_piomode, .set_dmamode = mpc52xx_ata_set_dmamode,
drivers/block/pktcdvd.c +1 -1
@@ -2408,7 +2408,7 @@ static void pkt_release_dev(struct pktcdvd_device *pd, int flush)pkt_shrink_pktlist (pd); } -static struct pktcdvd_device *pkt_find_dev_from_minor (int dev_minor) +static struct pktcdvd_device *pkt_find_dev_from_minor (unsigned int dev_minor) {if (dev_minor >=MAX_WRITERS )return NULL ;
drivers/bluetooth/hci_ldisc.c +7 -0
@@ -258,9 +258,16 @@ static int hci_uart_tty_open(struct tty_struct *tty)BT_DBG ("tty %p" , tty); +/* FIXME: This btw is bogus, nothing requires the old ldisc to clear +the pointer */ if (hu)return -EEXIST ; +/* Error if the tty has no write op instead of leaving an exploitable +hole */ +if (tty->ops->write ==NULL ) +return -EOPNOTSUPP ; +if (!(hu =kzalloc (sizeof (struct hci_uart ),GFP_KERNEL ))) {BT_ERR ("Can't allocate control structure" );return -ENFILE ;
drivers/char/hpet.c +17 -0
@@ -476,6 +476,21 @@ static int hpet_ioctl_ieon(struct hpet_dev *devp)if (irq) {unsigned long irq_flags; +if (devp->hd_flags &HPET_SHARED_IRQ ) { +/* +* To prevent the interrupt handler from seeing an +* unwanted interrupt status bit, program the timer +* so that it will not fire in the near future ... +*/ +writel (readl (&timer->hpet_config) & ~Tn_TYPE_CNF_MASK, + &timer->hpet_config); +write_counter (read_counter (&hpet->hpet_mc), + &timer->hpet_compare); +/* ... and clear any left-over status. */ + isr =1 << (devp - devp->hd_hpets->hp_dev); +writel (isr, &hpet->hpet_isr); + } +sprintf (devp->hd_name,"hpet%d" , (int )(devp - hpetp->hp_dev)); irq_flags = devp->hd_flags &HPET_SHARED_IRQ ?IRQF_SHARED :IRQF_DISABLED ;
@@ -967,6 +982,8 @@ static int hpet_acpi_add(struct acpi_device *device)return -ENODEV ;if (!data.hd_address || !data.hd_nirqs) { +if (data.hd_address) +iounmap (data.hd_address);printk ("%s: no address or irqs in _CRS\n" , __func__);return -ENODEV ; }
drivers/char/hvc_iucv.c +4 -2
@@ -139,6 +139,8 @@ struct hvc_iucv_private *hvc_iucv_get_private(uint32_t num)* * This function allocates a new struct iucv_tty_buffer element and, optionally, * allocates an internal data buffer with the specified size @size. +* The internal data buffer is always allocated with GFP_DMA which is +* required for receiving and sending data with IUCV. * Note: The total message size arises from the internal buffer size and the * members of the iucv_tty_msg structure. * The function returns NULL if memory allocation has failed.
@@ -154,7 +156,7 @@ static struct iucv_tty_buffer *alloc_tty_buffer(size_t size, gfp_t flags)if (size >0 ) { bufp->msg.length =MSG_SIZE (size); - bufp->mbuf =kmalloc (bufp->msg.length, flags); + bufp->mbuf =kmalloc (bufp->msg.length, flags |GFP_DMA );if (!bufp->mbuf) {mempool_free (bufp, hvc_iucv_mempool);return NULL ;
@@ -237,7 +239,7 @@ static int hvc_iucv_write(struct hvc_iucv_private *priv,if (!rb->mbuf) {/* message not yet received ... */ /* allocate mem to store msg data; if no memory is available * then leave the buffer on the list and re-try later */ - rb->mbuf =kmalloc (rb->msg.length,GFP_ATOMIC ); + rb->mbuf =kmalloc (rb->msg.length,GFP_ATOMIC |GFP_DMA );if (!rb->mbuf)return -ENOMEM ;
drivers/char/mem.c +2 -1
@@ -784,10 +784,11 @@ static const struct file_operations zero_fops = {/* * capabilities for /dev/zero * - permits private mappings, "copies" are taken of the source of zeros +* - no writeback happens */ static struct backing_dev_info zero_bdi = { .name ="char/mem" , - .capabilities =BDI_CAP_MAP_COPY , + .capabilities =BDI_CAP_MAP_COPY |BDI_CAP_NO_ACCT_AND_WRITEBACK , };static const struct file_operations full_fops = {
drivers/char/pcmcia/synclink_cs.c +2 -0
@@ -4144,6 +4144,8 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)if (cmd !=SIOCWANDEV )return hdlc_ioctl (dev, ifr, cmd); +memset (&new_line,0 , size); +switch (ifr->ifr_settings.type) {case IF_GET_IFACE :/* return current sync_serial_settings */
drivers/char/tpm/tpm.c +6 -4
@@ -353,12 +353,14 @@ unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, tpm_protected_ordinal_duration[ordinal &TPM_PROTECTED_ORDINAL_MASK ]; -if (duration_idx !=TPM_UNDEFINED ) +if (duration_idx !=TPM_UNDEFINED ) { duration = chip->vendor.duration[duration_idx]; -if (duration <=0 ) +/* if duration is 0, it's because chip->vendor.duration wasn't */ +/* filled yet, so we set the lowest timeout just to give enough */ +/* time for tpm_get_timeouts() to succeed */ +return (duration <=0 ?HZ : duration); + }else return 2 *60 *HZ ; -else -return duration; }EXPORT_SYMBOL_GPL (tpm_calc_ordinal_duration);
drivers/char/tpm/tpm_tis.c +24 -0
@@ -24,6 +24,7 @@#include <linux/pnp.h> #include <linux/interrupt.h> #include <linux/wait.h> +#include <linux/acpi.h> #include "tpm.h" #define TPM_HEADER_SIZE 10
@@ -77,6 +78,26 @@ enum tis_defaults {static LIST_HEAD (tis_chips);static DEFINE_SPINLOCK (tis_lock); +#ifdef CONFIG_ACPI +static int is_itpm (struct pnp_dev *dev) +{ +struct acpi_device *acpi =pnp_acpi_device (dev); +struct acpi_hardware_id *id; + +list_for_each_entry (id, &acpi->pnp.ids, list) { +if (!strcmp ("INTC0102" , id->id)) +return 1 ; + } + +return 0 ; +} +#else +static int is_itpm (struct pnp_dev *dev) +{ +return 0 ; +} +#endif +static int check_locality (struct tpm_chip *chip,int l) { if ((ioread8(chip->vendor.iobase + TPM_ACCESS(l)) &
@@ -471,6 +492,9 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,"1.2 TPM (device-id 0x%X, rev-id %d)\n" , vendor >> 16, ioread8(chip->vendor.iobase + TPM_RID(0))); +if (is_itpm (to_pnp_dev (dev))) + itpm =1 ; +if (itpm)dev_info (dev,"Intel iTPM workaround enabled\n" );
drivers/char/tty_buffer.c +12 -2
@@ -412,7 +412,8 @@ static void flush_to_ldisc(struct work_struct *work)spin_lock_irqsave (&tty->buf.lock, flags);if (!test_and_set_bit (TTY_FLUSHING , &tty->flags)) { -struct tty_buffer *head; +struct tty_buffer *head, *tail = tty->buf.tail; +int seen_tail =0 ;while ((head = tty->buf.head) !=NULL ) {int count;char *char_buf;
@@ -422,6 +423,15 @@ static void flush_to_ldisc(struct work_struct *work)if (!count) {if (head->next ==NULL )break ; +/* +There's a possibility tty might get new buffer +added during the unlock window below. We could +end up spinning in here forever hogging the CPU +completely. To avoid this let's have a rest each +time we processed the tail buffer. +*/ +if (tail == head) + seen_tail =1 ; tty->buf.head = head->next;tty_buffer_free (tty, head);continue ;
@@ -431,7 +441,7 @@ static void flush_to_ldisc(struct work_struct *work)line discipline as we want to empty the queue */ if (test_bit (TTY_FLUSHPENDING , &tty->flags))break ; -if (!tty->receive_room) { +if (!tty->receive_room || seen_tail) {schedule_delayed_work (&tty->buf.work,1 );break ; }
drivers/char/tty_ldisc.c +44 -7
114 lines not on this page · raw message
drivers/char/vt_ioctl.c +6 -5
@@ -503,6 +503,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,struct kbd_struct * kbd;unsigned int console;unsigned char ucval; +unsigned int uival;void __user *up = (void __user *)arg;int i, perm;int ret =0 ;
@@ -657,7 +658,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,break ;case KDGETMODE : - ucval = vc->vc_mode; + uival = vc->vc_mode; goto setint;case KDMAPDISP :
@@ -695,7 +696,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,break ;case KDGKBMODE : - ucval = ((kbd->kbdmode ==VC_RAW ) ?K_RAW : + uival = ((kbd->kbdmode ==VC_RAW ) ?K_RAW : (kbd->kbdmode ==VC_MEDIUMRAW ) ?K_MEDIUMRAW : (kbd->kbdmode ==VC_UNICODE ) ?K_UNICODE :K_XLATE );
@@ -717,9 +718,9 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,break ;case KDGKBMETA : - ucval = (vc_kbd_mode (kbd,VC_META ) ?K_ESCPREFIX :K_METABIT ); + uival = (vc_kbd_mode (kbd,VC_META ) ?K_ESCPREFIX :K_METABIT ); setint: - ret =put_user (ucval, (int __user *)arg); + ret =put_user (uival, (int __user *)arg);break ;case KDGETKEYCODE :
@@ -949,7 +950,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,for (i =0 ; i <MAX_NR_CONSOLES ; ++i)if (!VT_IS_IN_USE (i))break ; - ucval = i <MAX_NR_CONSOLES ? (i+1 ) :-1 ; + uival = i <MAX_NR_CONSOLES ? (i+1 ) :-1 ; goto setint;/*
drivers/crypto/padlock-aes.c +1 -1
@@ -285,7 +285,7 @@ static inline u8 *padlock_xcrypt_cbc(const u8 *input, u8 *output, void *key,if (initial) asmvolatile (".byte 0xf3,0x0f,0xa7,0xd0" /* rep xcryptcbc */ :"+S" (input),"+D" (output),"+a" (iv) - :"d" (control_word),"b" (key),"c" (count)); + :"d" (control_word),"b" (key),"c" (initial)); asmvolatile (".byte 0xf3,0x0f,0xa7,0xd0" /* rep xcryptcbc */ : "+S" (input), "+D" (output), "+a" (iv)
drivers/dma/mv_xor.c +2 -2
@@ -161,7 +161,7 @@ static int mv_is_err_intr(u32 intr_cause)static void mv_xor_device_clear_eoc_cause (struct mv_xor_chan *chan) { -u32 val = (1 << (1 + (chan->idx *16 ))); +u32 val = ~(1 << (chan->idx *16 ));dev_dbg (chan->device->common.dev,"%s, val 0x%08x\n" , __func__, val);__raw_writel (val,XOR_INTR_CAUSE (chan)); }
@@ -448,7 +448,7 @@ mv_xor_slot_cleanup(struct mv_xor_chan *mv_chan)static void mv_xor_tasklet (unsigned long data) {struct mv_xor_chan *chan = (struct mv_xor_chan *) data; -__mv_xor_slot_cleanup (chan); +mv_xor_slot_cleanup (chan); } static struct mv_xor_desc_slot *
drivers/edac/amd64_edac.c +1 -1
@@ -1567,7 +1567,7 @@ static int f10_match_to_this_node(struct amd64_pvt *pvt, int dram_range,debugf1 (" HoleOffset=0x%x HoleValid=0x%x IntlvSel=0x%x\n" , hole_off, hole_valid, intlv_sel); -if (intlv_en || +if (intlv_en && (intlv_sel != ((sys_addr >>12 ) & intlv_en)))return -EINVAL ;
drivers/firewire/core-card.c +9 -2
@@ -75,6 +75,8 @@ static size_t config_rom_length = 1 + 4 + 1 + 1;#define BIB_CMC ((1) << 30)#define BIB_IMC ((1) << 31) +#define CANON_OUI 0x000085 +static void generate_config_rom (struct fw_card *card,__be32 *config_rom) {struct fw_descriptor *desc;
@@ -240,6 +242,7 @@ static void fw_card_bm_work(struct work_struct *work)bool root_device_is_running;bool root_device_is_cmc;bool irm_is_1394_1995_only; +bool keep_this_irm;spin_lock_irqsave (&card->lock, flags);
@@ -261,6 +264,10 @@ static void fw_card_bm_work(struct work_struct *work) irm_is_1394_1995_only = irm_device && irm_device->config_rom && (irm_device->config_rom[2 ] &0x000000f0 ) ==0 ; +/* Canon MV5i works unreliably if it is not root node. */ + keep_this_irm = irm_device && irm_device->config_rom && + irm_device->config_rom[3 ] >>8 ==CANON_OUI ; + root_id = root_node->node_id; irm_id = card->irm_node->node_id; local_id = card->local_node->node_id;
@@ -288,7 +295,7 @@ static void fw_card_bm_work(struct work_struct *work) goto pick_me; } -if (irm_is_1394_1995_only) { +if (irm_is_1394_1995_only && !keep_this_irm) { new_root_id = local_id;fw_notify ("%s, making local node (%02x) root.\n" ,"IRM is not 1394a compliant" , new_root_id);
@@ -322,7 +329,7 @@ static void fw_card_bm_work(struct work_struct *work)spin_lock_irqsave (&card->lock, flags); -if (rcode !=RCODE_COMPLETE ) { +if (rcode !=RCODE_COMPLETE && !keep_this_irm) {/* * The lock request failed, maybe the IRM * isn't really IRM capable after all. Let's
drivers/firewire/ohci.c +48 -12
80 lines not on this page · raw message
drivers/gpu/drm/Kconfig +3 -0
@@ -94,7 +94,10 @@ config DRM_I830 config DRM_I915 tristate "i915 driver" depends on AGP_INTEL + # we need shmfs for the swappable backing store, and in particular + # the shmem_readpage() which depends upon tmpfs select SHMEM + select TMPFS select DRM_KMS_HELPER select FB_CFB_FILLRECT select FB_CFB_COPYAREA
drivers/gpu/drm/drm_crtc.c +5 -5
@@ -153,12 +153,12 @@ static struct drm_conn_prop_enum_list drm_connector_enum_list[] = { DRM_MODE_CONNECTOR_SVIDEO, "SVIDEO", 0 }, { DRM_MODE_CONNECTOR_LVDS, "LVDS", 0 }, { DRM_MODE_CONNECTOR_Component, "Component", 0 }, - { DRM_MODE_CONNECTOR_9PinDIN, "9-pin DIN", 0 }, - { DRM_MODE_CONNECTOR_DisplayPort, "DisplayPort", 0 }, - { DRM_MODE_CONNECTOR_HDMIA, "HDMI Type A", 0 }, - { DRM_MODE_CONNECTOR_HDMIB, "HDMI Type B", 0 }, + { DRM_MODE_CONNECTOR_9PinDIN, "DIN", 0 }, + { DRM_MODE_CONNECTOR_DisplayPort, "DP", 0 }, + { DRM_MODE_CONNECTOR_HDMIA, "HDMI-A", 0 }, + { DRM_MODE_CONNECTOR_HDMIB, "HDMI-B", 0 }, { DRM_MODE_CONNECTOR_TV, "TV", 0 }, - { DRM_MODE_CONNECTOR_eDP, "Embedded DisplayPort", 0 }, + { DRM_MODE_CONNECTOR_eDP, "eDP", 0 }, }; static struct drm_prop_enum_list drm_encoder_enum_list[] =
drivers/gpu/drm/drm_irq.c +2 -1
@@ -543,7 +543,8 @@ int drm_modeset_ctl(struct drm_device *dev, void *data, struct drm_file *file_priv) {struct drm_modeset_ctl *modeset = data; -int crtc, ret =0 ; +int ret =0 ; +unsigned int crtc;/* If drm_vblank_init() hasn't been called yet, just no-op */ if (!dev->num_crtcs)
drivers/gpu/drm/i915/intel_lvds.c +8 -0
@@ -894,6 +894,14 @@ static const struct dmi_system_id intel_no_lvds[] = { }, { .callback = intel_no_lvds_dmi_callback, + .ident = "AOpen i915GMm-HFS", + .matches = { +DMI_MATCH (DMI_BOARD_VENDOR ,"AOpen" ), + DMI_MATCH(DMI_BOARD_NAME, "i915GMm-HFS"), + }, + }, + { + .callback = intel_no_lvds_dmi_callback, .ident = "Aopen i945GTt-VFA", .matches = { DMI_MATCH(DMI_PRODUCT_VERSION, "AO00001JW"),
drivers/gpu/drm/radeon/atombios_dp.c +2 -2
@@ -187,9 +187,9 @@ static int dp_link_clock_for_mode_clock(u8 dpcd[DP_DPCD_SIZE], int mode_clock)int dp_mode_valid (u8 dpcd[DP_DPCD_SIZE ],int mode_clock) {int lanes =dp_lanes_for_mode_clock (dpcd, mode_clock); -int bw =dp_lanes_for_mode_clock (dpcd, mode_clock); +int dp_clock =dp_link_clock_for_mode_clock (dpcd, mode_clock); -if ((lanes ==0 ) || (bw ==0 )) +if ((lanes ==0 ) || (dp_clock ==0 ))return MODE_CLOCK_HIGH ;return MODE_OK ;
drivers/gpu/drm/radeon/radeon_atombios.c +13 -3
@@ -259,6 +259,13 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev,return false; } +/* mac rv630, rv730, others */ +if ((supported_device ==ATOM_DEVICE_TV1_SUPPORT ) && + (*connector_type ==DRM_MODE_CONNECTOR_DVII )) { + *connector_type = DRM_MODE_CONNECTOR_9PinDIN; + *line_mux =CONNECTOR_7PIN_DIN_ENUM_ID1 ; + } +/* ASUS HD 3600 XT board lists the DVI port as HDMI */ if ((dev->pdev->device == 0x9598) && (dev->pdev->subsystem_vendor == 0x1043) &&
@@ -1480,7 +1487,7 @@ void radeon_atom_initialize_bios_scratch_regs(struct drm_device *dev) bios_2_scratch &= ~ATOM_S2_VRI_BRIGHT_ENABLE ;/* tell the bios not to handle mode switching */ - bios_6_scratch |= (ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH |ATOM_S6_ACC_MODE ); + bios_6_scratch |=ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH ;if (rdev->family >=CHIP_R600 ) {WREG32 (R600_BIOS_2_SCRATCH , bios_2_scratch);
@@ -1531,10 +1538,13 @@ void radeon_atom_output_lock(struct drm_encoder *encoder, bool lock)else bios_6_scratch =RREG32 (RADEON_BIOS_6_SCRATCH ); -if (lock) +if (lock) { bios_6_scratch |=ATOM_S6_CRITICAL_STATE ; -else + bios_6_scratch &= ~ATOM_S6_ACC_MODE ; + }else { bios_6_scratch &= ~ATOM_S6_CRITICAL_STATE ; + bios_6_scratch |=ATOM_S6_ACC_MODE ; + }if (rdev->family >=CHIP_R600 )WREG32 (R600_BIOS_6_SCRATCH , bios_6_scratch);
drivers/gpu/drm/radeon/radeon_display.c +5 -1
@@ -464,7 +464,7 @@ void radeon_compute_pll(struct radeon_pll *pll, max_fractional_feed_div = pll->max_frac_feedback_div; } -for (post_div = min_post_div; post_div <= max_post_div; ++post_div) { +for (post_div = max_post_div; post_div >= min_post_div; --post_div) {uint32_t ref_div;if ((pll->flags &RADEON_PLL_NO_ODD_POST_DIV ) && (post_div &1 ))
@@ -578,6 +578,10 @@ void radeon_compute_pll(struct radeon_pll *pll, *frac_fb_div_p = best_frac_feedback_div; *ref_div_p = best_ref_div; *post_div_p = best_post_div; +DRM_DEBUG_KMS ("%d %d, pll dividers - fb: %d.%d ref: %d, post %d\n" , + freq, best_freq /1000 , best_feedback_div, best_frac_feedback_div, + best_ref_div, best_post_div); + } void radeon_compute_pll_avivo(struct radeon_pll *pll,
drivers/gpu/drm/ttm/ttm_bo.c +71 -13
115 lines not on this page · raw message
drivers/gpu/drm/ttm/ttm_bo_util.c +1 -0
@@ -326,6 +326,7 @@ static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo,INIT_LIST_HEAD (&fbo->lru);INIT_LIST_HEAD (&fbo->swap); fbo->vm_node =NULL ; +atomic_set (&fbo->cpu_writers,0 ); fbo->sync_obj = driver->sync_obj_ref (bo->sync_obj);if (fbo->mem.mm_node)
drivers/hwmon/adm1026.c +10 -10
@@ -916,27 +916,27 @@ static ssize_t set_fan_div(struct device *dev, struct device_attribute *attr,int nr = sensor_attr->index;struct i2c_client *client =to_i2c_client (dev);struct adm1026_data *data =i2c_get_clientdata (client); -int val, orig_div, new_div, shift; +int val, orig_div, new_div; val =simple_strtol (buf,NULL ,10 ); new_div =DIV_TO_REG (val); -if (new_div ==0 ) { -return -EINVAL ; - } +mutex_lock (&data->update_lock); orig_div = data->fan_div[nr]; data->fan_div[nr] =DIV_FROM_REG (new_div);if (nr <4 ) {/* 0 <= nr < 4 */ - shift =2 * nr;adm1026_write_value (client,ADM1026_REG_FAN_DIV_0_3 , - ((DIV_TO_REG (orig_div) & (~(0x03 << shift))) | - (new_div << shift))); + (DIV_TO_REG (data->fan_div[0 ]) <<0 ) | + (DIV_TO_REG (data->fan_div[1 ]) <<2 ) | + (DIV_TO_REG (data->fan_div[2 ]) <<4 ) | + (DIV_TO_REG (data->fan_div[3 ]) <<6 )); }else {/* 3 < nr < 8 */ - shift =2 * (nr -4 );adm1026_write_value (client,ADM1026_REG_FAN_DIV_4_7 , - ((DIV_TO_REG (orig_div) & (~(0x03 << (2 * shift)))) | - (new_div << shift))); + (DIV_TO_REG (data->fan_div[4 ]) <<0 ) | + (DIV_TO_REG (data->fan_div[5 ]) <<2 ) | + (DIV_TO_REG (data->fan_div[6 ]) <<4 ) | + (DIV_TO_REG (data->fan_div[7 ]) <<6 )); }if (data->fan_div[nr] != orig_div) {
drivers/hwmon/f71882fg.c +1 -1
@@ -2031,7 +2031,6 @@ static int f71882fg_remove(struct platform_device *pdev)int nr_fans = (data->type == f71882fg) ?4 :3 ;u8 start_reg =f71882fg_read8 (data,F71882FG_REG_START ); -platform_set_drvdata (pdev,NULL );if (data->hwmon_dev)hwmon_device_unregister (data->hwmon_dev);
@@ -2098,6 +2097,7 @@ static int f71882fg_remove(struct platform_device *pdev) } } +platform_set_drvdata (pdev,NULL );kfree (data);return 0 ;
drivers/hwmon/lm85.c +1 -0
@@ -1259,6 +1259,7 @@ static int lm85_probe(struct i2c_client *client,switch (data->type) {case adm1027:case adt7463: +case adt7468:case emc6d100:case emc6d102: data->freq_map = adm1027_freq_map;
drivers/hwmon/via686a.c +11 -3
@@ -687,6 +687,13 @@ static int __devexit via686a_remove(struct platform_device *pdev)return 0 ; } +static void via686a_update_fan_div (struct via686a_data *data) +{ +int reg =via686a_read_value (data,VIA686A_REG_FANDIV ); + data->fan_div[0 ] = (reg >>4 ) &0x03 ; + data->fan_div[1 ] = reg >>6 ; +} +static void __devinit via686a_init_device (struct via686a_data *data) {u8 reg;
@@ -700,6 +707,9 @@ static void __devinit via686a_init_device(struct via686a_data *data)via686a_write_value (data,VIA686A_REG_TEMP_MODE , (reg & ~VIA686A_TEMP_MODE_MASK ) |VIA686A_TEMP_MODE_CONTINUOUS ); + +/* Pre-read fan clock divisor values */ +via686a_update_fan_div (data); }static struct via686a_data *via686a_update_device (struct device *dev)
@@ -751,9 +761,7 @@ static struct via686a_data *via686a_update_device(struct device *dev) (via686a_read_value (data,VIA686A_REG_TEMP_LOW23 ) &0xc0 ) >>6 ; - i =via686a_read_value (data,VIA686A_REG_FANDIV ); - data->fan_div[0 ] = (i >>4 ) &0x03 ; - data->fan_div[1 ] = i >>6 ; +via686a_update_fan_div (data); data->alarms =via686a_read_value (data, VIA686A_REG_ALARM1) |
drivers/i2c/i2c-core.c +13 -1
@@ -782,6 +782,14 @@ static int i2c_do_del_adapter(struct i2c_driver *driver,static int __unregister_client (struct device *dev,void *dummy) {struct i2c_client *client =i2c_verify_client (dev); +if (client &&strcmp (client->name,"dummy" )) +i2c_unregister_device (client); +return 0 ; +} + +static int __unregister_dummy (struct device *dev,void *dummy) +{ +struct i2c_client *client =i2c_verify_client (dev);if (client)i2c_unregister_device (client);return 0 ;
@@ -835,8 +843,12 @@ int i2c_del_adapter(struct i2c_adapter *adap) }/* Detach any active clients. This can't fail, thus we do not -checking the returned value. */ +* check the returned value. This is a two-pass process, because +* we can't remove the dummy devices during the first pass: they +* could have been instantiated by real devices wishing to clean +* them up properly, so we give them a chance to do that first. */ res =device_for_each_child (&adap->dev,NULL , __unregister_client); + res =device_for_each_child (&adap->dev,NULL , __unregister_dummy);#ifdef CONFIG_I2C_COMPAT class_compat_remove_link(i2c_adapter_compat_class, &adap->dev,
drivers/infiniband/core/cm.c +1 -0
@@ -2986,6 +2986,7 @@ static int cm_sidr_req_handler(struct cm_work *work) goto out;/* No match. */ }atomic_inc (&cur_cm_id_priv->refcount); +atomic_inc (&cm_id_priv->refcount);spin_unlock_irq (&cm.lock); cm_id_priv->id.cm_handler = cur_cm_id_priv->id.cm_handler;
drivers/infiniband/core/cma.c +15 -0
@@ -1136,6 +1136,11 @@ static int cma_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event) cm_id->context = conn_id; cm_id->cm_handler = cma_ib_handler; +/* +* Protect against the user destroying conn_id from another thread +* until we're done accessing it. +*/ +atomic_inc (&conn_id->refcount); ret = conn_id->id.event_handler (&conn_id->id, &event);if (!ret) {/*
@@ -1148,8 +1153,10 @@ static int cma_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event)ib_send_cm_mra (cm_id,CMA_CM_MRA_SETTING ,NULL ,0 );mutex_unlock (&lock);mutex_unlock (&conn_id->handler_mutex); +cma_deref_id (conn_id); goto out; } +cma_deref_id (conn_id);/* Destroy the CM ID by returning a non-zero value. */ conn_id->cm_id.ib =NULL ;
Lines of this file are not shown. View the raw message.
drivers/infiniband/core/uverbs_cmd.c +56 -43
99 lines not on this page · raw message
drivers/media/dvb/dvb-usb/dib0700_devices.c +19 -2
Lines of this file are not shown. View the raw message.
drivers/media/dvb/frontends/dib7000m.c +19 -0
Lines of this file are not shown. View the raw message.
drivers/media/dvb/frontends/dib7000m.h +15 -0
Lines of this file are not shown. View the raw message.
drivers/media/video/cx231xx/cx231xx-cards.c +8 -6
Lines of this file are not shown. View the raw message.
drivers/media/video/em28xx/em28xx-cards.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/media/video/v4l2-compat-ioctl32.c +21 -11
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/iwl-agn.c +11 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/iwl-helpers.h +6 -0
Lines of this file are not shown. View the raw message.
drivers/pci/quirks.c +96 -60
156 lines not on this page · raw message
drivers/s390/cio/qdio_main.c +28 -15
43 lines not on this page · raw message
drivers/scsi/device_handler/scsi_dh_alua.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/staging/comedi/drivers/jr3_pci.c +7 -0
Lines of this file are not shown. View the raw message.
drivers/staging/comedi/drivers/ni_labpc.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/staging/line6/control.c +102 -102
204 lines not on this page · raw message
drivers/staging/rtl8187se/r8185b_init.c +22 -8
Lines of this file are not shown. View the raw message.
drivers/staging/samsung-laptop/samsung-laptop.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/usbip/vhci_hcd.c +48 -22
70 lines not on this page · raw message
drivers/usb/host/xhci-ring.c +35 -15
50 lines not on this page · raw message
drivers/usb/serial/ftdi_sio.c +70 -6
76 lines not on this page · raw message
drivers/usb/serial/ftdi_sio_ids.h +59 -5
64 lines not on this page · raw message
drivers/video/efifb.c +49 -12
61 lines not on this page · raw message
fs/eventpoll.c +95 -0
95 lines not on this page · raw message
fs/fuse/file.c +121 -13
134 lines not on this page · raw message
include/linux/ssb/ssb_driver_chipcommon.h +14 -1
Lines of this file are not shown. View the raw message.
kernel/cred.c +35 -6
41 lines not on this page · raw message
kernel/signal.c +30 -13
43 lines not on this page · raw message
kernel/smp.c +57 -1
58 lines not on this page · raw message
kernel/trace/ftrace.c +45 -7
52 lines not on this page · raw message
mm/vmscan.c +45 -8
53 lines not on this page · raw message
net/econet/af_econet.c +42 -49
91 lines not on this page · raw message
net/ipv4/udp.c +44 -0
44 lines not on this page · raw message
net/x25/af_x25.c +46 -1
47 lines not on this page · raw message
sound/usb/usx2y/us122l.c +20 -21
41 lines not on this page · 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.
Greg,
Quoted 5 lines
I'm announcing the release of the 2.6.33.8 kernel.
This is primarily for the use of those people who are stuck using the .33-rt kernel. Anyone else who really wants to use the .33 kernel tree is welcome to use this one as well.
Thanks a lot for your work. It's highly appreciated.
While preparing 2.6.33.8/9 plus PREEMPT_RT patches for quality assurance in our farm, I found that the "halt" command no longer powers down the pretest machine (i7/Gulftown); this misbehavior occurs with and without the PREEMPT_RT patches.
2.6.33.7:
# halt sd 0:0:0:0: [sda] Synchronizing SCSI cache sd 0:0:0:0: [sda] Stopping disk sd 2:0:0:0: [sdb] Synchronizing SCSI cache sd 2:0:0:0: [sdb] Stopping disk The machine is powered down.
2.6.33.8:
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
sd 2:0:0:0: [sdb] Synchronizing SCSI cache
sd 2:0:0:0: [sdb] Stopping disk
ACPI: Preparing to enter system sleep state S5
Disabling non-boot CPUs ...
The machine is NOT powered down. Can be powered down only by pulling the power plug or holding the on/off button for 5 seconds.
Bisecting from 2.6.33.7 to 2.6.33.8 revealed:74a6e0fd8fc216cfa5edcde4bd356a8972cbc74c is the first bad commit commit 74a6e0fd8fc216cfa5edcde4bd356a8972cbc74c
Author: H. Peter Anvin <[email protected]> Date: Fri Dec 10 23:57:04 2010 -0500
x86, hotplug: Use mwait to offline a processor, fix the legacy case
upstream ea53069231f9317062910d6e772cca4ce93de8c8
x86, hotplug: Use mwait to offline a processor, fix the legacy case
Here included also some small follow-on patches to the same code:
upstream a68e5c94f7d3dd64fef34dd5d97e365cae4bb42a x86, hotplug: Move WBINVD back outside the play_dead loop
upstream ce5f68246bf2385d6174856708d0b746dc378f20
x86, hotplug: In the MWAIT case of play_dead, CLFLUSH the cache line
https://bugzilla.kernel.org/show_bug.cgi?id=5471
With this patch
- wbinvd_halt();
+ mwait_play_dead(); /* Only returns on failure */
applied, mwait_play_dead() is taken instead of wbinvd_halt(), and the loop
while (1) {
mb();
wbinvd();
__monitor(¤t_thread_info()->flags, 0, 0);
mb();
__mwait(eax, 0);
}never is left. Should native_play_dead() not have been called when "halt" is executed?
After removing this patch, "halt" works as expected in the two kernel versions with and without PREEMPT_RT - even after upgrading to 2.6.33.9.
Instead of the entire commit 74a6e0fd8fc216cfa5edcde4bd356a8972cbc74c, it was also sufficient to apply the first contained upstream commit ea53069231f9317062910d6e772cca4ce93de8c8 to reproduce the situation.
Thanks,
Carsten.
Quoted 22 lines · Carsten Emde
Greg,
Quoted 5 lines
I'm announcing the release of the 2.6.33.8 kernel.
This is primarily for the use of those people who are stuck using the .33-rt kernel. Anyone else who really wants to use the .33 kernel tree is welcome to use this one as well.
Thanks a lot for your work. It's highly appreciated.
While preparing 2.6.33.8/9 plus
PREEMPT_RTpatches for quality assurance in our farm, I found that the "halt" command no longer powers down the pretest machine (i7/Gulftown); this misbehavior occurs with and without thePREEMPT_RTpatches.2.6.33.7:
# halt sd 0:0:0:0: [sda] Synchronizing SCSI cache sd 0:0:0:0: [sda] Stopping disk sd 2:0:0:0: [sdb] Synchronizing SCSI cache sd 2:0:0:0: [sdb] Stopping disk The machine is powered down.
Quoted 9 lines
2.6.33.8:
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
sd 2:0:0:0: [sdb] Synchronizing SCSI cache
sd 2:0:0:0: [sdb] Stopping disk
ACPI: Preparing to enter system sleep state S5
Disabling non-boot CPUs ...
The machine is NOT powered down. Can be powered down only by pulling the power plug or holding the on/off button for 5 seconds.
(FWIW, my x3550 M3 (E5620) and Q6600 power down fine with 2.6.33.9-rt30)
Quoted 10 lines
Bisecting from 2.6.33.7 to 2.6.33.8 revealed:
74a6e0fd8fc216cfa5edcde4bd356a8972cbc74cis the first bad commit commit74a6e0fd8fc216cfa5edcde4bd356a8972cbc74cAuthor: H. Peter Anvin <[email protected]> Date: Fri Dec 10 23:57:04 2010 -0500x86, hotplug: Use mwait to offline a processor, fix the legacy case
upstream
ea53069231f9317062910d6e772cca4ce93de8c8
x86, hotplug: Use mwait to offline a processor, fix the legacy case
The question would appear to be does mainline beyond this point exhibit the same symptom?
-Mike
Mike,
Quoted 7 lines
[..]
Quoted 6 lines
Bisecting from 2.6.33.7 to 2.6.33.8 revealed:
74a6e0fd8fc216cfa5edcde4bd356a8972cbc74cis the first bad commit commit74a6e0fd8fc216cfa5edcde4bd356a8972cbc74cAuthor: H. Peter Anvin<[email protected]> Date: Fri Dec 10 23:57:04 2010 -0500
Quoted 7 lines
Quoted 4 lines
x86, hotplug: Use mwait to offline a processor, fix the legacy case
upstream
ea53069231f9317062910d6e772cca4ce93de8c8
x86, hotplug: Use mwait to offline a processor, fix the legacy caseThe question would appear to be does mainline beyond this point exhibit the same symptom?
Unfortunately, I could not immediately try to reproduce the situation on a more recent mainline kernel, since the box was freezing while enabling the various services on any kernel >= 2.6.35.
After applying a workaround for this problem which may or may not be related (https://lkml.org/lkml/2011/4/2/33), I was able to test more recent kernels up to 2.6.39-rc1; they all show the same behavior. Interestingly, the system only refuses to power down, if processor frequency scaling was selected. The problem persisted, even if frequency scaling was disabled by selecting userspace or performance scaling_governor before halting the system.
CPU info:vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz
stepping : 2
This is the situation:
1. Without commit ea53069231f9317062910d6e772cca4ce93de8c8:
Everyting is fine. The system correctly powers off.
2. With commit ea53069231f9317062910d6e772cca4ce93de8c8:
a) Frequency scaling never enabled (acpi_cpufreq not loaded, cpufreq_ondemand not loaded):
Everything is fine. The system correctly powers off.
b) Frequency scaling enabled (acpi_cpufreq loaded, cpufreq_ondemand loaded) or
c) Frequency scaling enabled and disabled (acpi_cpufreq still loaded since it cannot be removed easily, cpufreq_ondemand no longer loaded) or
d) Frequency scaling enabled and disabled (acpi_cpufreq unloaded with force, cpufreq_ondemand no longer loaded):
Not powering off, message:
ACPI: Preparing to enter system sleep state S5 Disabling non-boot CPUs ...
In a next step, I will debug arch/x86/kernel/smpboot.c to find out why mwait_play_dead() returns when frequency scaling was not enabled and why it does not after it was enabled.
Thanks,
-Carsten.
Hello,
Am 02.04.2011 11:14, schrieb Carsten Emde:
Quoted 8 lines
model name : Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz stepping : 2
This is the situation:
1. Without commit
ea53069231f9317062910d6e772cca4ce93de8c8:
Everyting is fine. The system correctly powers off.
Quoted 14 lines
2. With commit
ea53069231f9317062910d6e772cca4ce93de8c8:
a) Frequency scaling never enabled (acpi_cpufreqnot loaded,cpufreq_ondemandnot loaded):
Everything is fine. The system correctly powers off.
b) Frequency scaling enabled (acpi_cpufreqloaded,cpufreq_ondemandloaded) or
c) Frequency scaling enabled and disabled (acpi_cpufreqstill loaded since it cannot be removed easily,cpufreq_ondemandno longer loaded) or
d) Frequency scaling enabled and disabled (acpi_cpufrequnloaded with force,cpufreq_ondemandno longer loaded):
Not powering off, message:
ACPI: Preparing to enter system sleep state S5
Disabling non-boot CPUs ...
I'm using a
model name : Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz
and can confirm some problem with power down, at least in 2.6.38.2. Sometimes I only see the powerdown message but the machine will stay on (and the fan starts getting louder).
But in contrast to the above description (that commit seems to have been already included in 2.6.37), I never had a problem with powerdown with a kernel <2.6.38.
I have CONFIG_X86_ACPI_CPUFREQ enabled, but I currently can't offer much more insights, because I haven't tried to analyze that problem. The problem doesn't appear with any shutdown, and I don't know (and can't remember) if that already happened with 2.6.38.
Besides switching from BKL to non-BKL, I haven't changed the config when I've switched from 2.6.37.x to 2.6.38 (other than what make oldconfig does).
Maybe it's a totally unrelated problem, but I thought it might be good to mention that I'm having a problem with powerdown in 2.6.38 too.
Regards,
Alexander Holler
Alexander,
Quoted 20 lines
Quoted 6 lines
[..]
This is the situation:1. Without commit
ea53069231f9317062910d6e772cca4ce93de8c8:
Everything is fine. The system correctly powers off.Quoted 14 lines
2. With commit
ea53069231f9317062910d6e772cca4ce93de8c8:
a) Frequency scaling never enabled (acpi_cpufreqnot loaded,cpufreq_ondemandnot loaded):
Everything is fine. The system correctly powers off.
b) Frequency scaling enabled (acpi_cpufreqloaded,cpufreq_ondemandloaded) or
c) Frequency scaling enabled and disabled (acpi_cpufreqstill loaded since it cannot be removed easily,cpufreq_ondemandno longer loaded) or
d) Frequency scaling enabled and disabled (acpi_cpufrequnloaded with force,cpufreq_ondemandno longer loaded):
Not powering off, message:
ACPI: Preparing to enter system sleep state S5
Disabling non-boot CPUs ...
Quoted 2 lines
I'm using a
model name : Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz
This probably is not model 44; is it 26, 30 or 31?
Quoted 6 lines
and can confirm some problem with power down, at least in 2.6.38.2. Sometimes I only see the powerdown message but the machine will stay on (and the fan starts getting louder).
[..]
Maybe it's a totally unrelated problem, but I thought it might be good to mention that I'm having a problem with powerdown in 2.6.38 too.
Yes, thank you,
Would you mind to completely disable processor frequency scaling and check whether the powerdown problem goes away on your system as well? I do not know which distro you are using, but on some systems "chkconfig cpuspeed off; reboot" would do the job. When the system then reboots, "halt" should correctly power off the system.
-Carsten.
Hello,
Am 02.04.2011 13:27, schrieb Carsten Emde:
Quoted 3 lines
Quoted 2 lines
I'm using a
model name : Intel(R) Core(TM) i7 CPU 860 @ 2.80GHzThis probably is not model 44; is it 26, 30 or 31?
Model 30, stepping 5. HT is enabled.
Quoted 6 lines
Quoted 6 lines
and can confirm some problem with power down, at least in 2.6.38.2. Sometimes I only see the powerdown message but the machine will stay on (and the fan starts getting louder).
[..]
Maybe it's a totally unrelated problem, but I thought it might be good to mention that I'm having a problem with powerdown in 2.6.38 too.
Quoted 7 lines
Yes, thank you,
Would you mind to completely disable processor frequency scaling and check whether the powerdown problem goes away on your system as well? I do not know which distro you are using, but on some systems "chkconfig cpuspeed off; reboot" would do the job. When the system then reboots, "halt" should correctly power off the system.
I'm currently using F13, always with the latest stable vanilla kernel from kernel.org. No cpufreq-daemons or similiar are involved, just the governor "ondemand".
In regard to more detailed testing I can't say when I will find the time to do that. I'm using this machine regulary and the problem occurs only seldom (maybe 1 out of 5 shutdowns). So git bisect or similiar generic tests aren't very practical.
I will try to add some print statements, I assume native_machine_power_off() and stuff afterwards are the candidates where to do that.
Regards,
Alexander
Quoted 28 lines · Carsten Emde
[..]
CPU info:vendor_id: GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz stepping : 2This is the situation:
1. Without commit
ea53069231f9317062910d6e772cca4ce93de8c8:
Everything is fine. The system correctly powers off.2. With commit
ea53069231f9317062910d6e772cca4ce93de8c8:
a) Frequency scaling never enabled (acpi_cpufreqnot loaded,cpufreq_ondemandnot loaded):
Everything is fine. The system correctly powers off.
b) Frequency scaling enabled (acpi_cpufreqloaded,cpufreq_ondemandloaded) or
c) Frequency scaling enabled and disabled (acpi_cpufreqstill loaded since it cannot be removed easily,cpufreq_ondemandno longer loaded) or
d) Frequency scaling enabled and disabled (acpi_cpufrequnloaded with force,cpufreq_ondemandno longer loaded):
Not powering off, message:
ACPI: Preparing to enter system sleep state S5
Disabling non-boot CPUs ...
Quoted 3 lines
In a next step, I will debug
arch/x86/kernel/smpboot.cto find out whymwait_play_dead()returns when frequency scaling was not enabled and why it does not after it was enabled.
This assumption was incorrect. After inserting a number of debug outputs to kernel_power_off(), native_play_dead() and mwait_play_dead(), it turns out that the initial code path in case of the correct poweroff and the failed poweroff is identical:
Frequency scaling Frequency scaling
never enabled enabled and disabled
kernel_power_off() kernel_power_off()
"ACPI: Preparing to enter "ACPI: Preparing to enter
system sleep state S5" system sleep state S5"
kernel_power_off() kernel_power_off()
"Disabling non-boot CPUs ..." "Disabling non-boot CPUs ..."
1 native_play_dead() 1 native_play_dead()
mwait_play_dead() mwait_play_dead()
2 native_play_dead() 2 native_play_dead()
mwait_play_dead() mwait_play_dead()
3 native_play_dead() 3 native_play_dead()
mwait_play_dead() mwait_play_dead()
4 native_play_dead() 4 native_play_dead()
mwait_play_dead() mwait_play_dead()
5 native_play_dead() 5 native_play_dead()
mwait_play_dead() mwait_play_dead()
6 native_play_dead() 6 native_play_dead()
mwait_play_dead() mwait_play_dead()
7 native_play_dead() 7 native_play_dead()
mwait_play_dead() mwait_play_dead()
8 native_play_dead() 8 native_play_dead()
mwait_play_dead() mwait_play_dead()
9 native_play_dead()
mwait_play_dead()
10 native_play_dead()
mwait_play_dead()
11 native_play_dead()
mwait_play_dead()
kernel_power_off()
"PM: Calling mce_shutdown"
"PM: Calling i8259A_shutdown"
kernel_power_off()
"Power down."
kernel_power_off()
Apparently, the system hangs after eight CPUs have been disabled. I'll try to provide some more debugging information. Does anybody out there have any idea what's going on?
-Carsten.
Quoted 5 lines · Carsten Emde
This is the situation:
1. Without commit
ea53069231f9317062910d6e772cca4ce93de8c8:
Everyting is fine. The system correctly powers off.
Quoted 14 lines
2. With commit
ea53069231f9317062910d6e772cca4ce93de8c8:
a) Frequency scaling never enabled (acpi_cpufreqnot loaded,cpufreq_ondemandnot loaded):
Everything is fine. The system correctly powers off.
b) Frequency scaling enabled (acpi_cpufreqloaded,cpufreq_ondemandloaded) or
c) Frequency scaling enabled and disabled (acpi_cpufreqstill loaded since it cannot be removed easily,cpufreq_ondemandno longer loaded) or
d) Frequency scaling enabled and disabled (acpi_cpufrequnloaded with force,cpufreq_ondemandno longer loaded):
Not powering off, message:
ACPI: Preparing to enter system sleep state S5 Disabling non-boot CPUs ...
Could any of the intel folks please add their input on that? I'm running out of ideas.
Thanks,
tglx
Intel i7/X 980 freezes with CONFIG_INTEL_IDLE and frequency scaling
In reply to Greg KHLen,
after upgrading a Fedora 14 based Intel i7/X 980 box to 2.6.39-rc1, the system freezes when frequency scaling is started. Looks like a complete CPU halt, since neither SysRq nor anything else can convince the box to provide any information.
Loading acpi_cpufreq is save, but selecting the performance scaling_governor immediately freezes the system. Selecting the ondemand scaling_governor freezes the system when load is generated for the first time, presumably when the frequency is increased. Fortunately, when the kernel was built with another config file, the system did not freeze. After enabling and disabling some suspicious config items (before going through the hassle and bisect the config using ktest.pl), the culprit was found to be CONFIG_INTEL_IDLE. Fedora 14 enables it.
CPU info:vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz
stepping : 2
Excluding this CPU model from being initialized helps but is, of course, no solution. Do you have a real solution?
Thanks,
Carsten.
--
drivers/idle/intel_idle.c +2 -0
@@ -338,7 +338,9 @@ static int intel_idle_probe(void)case 0x2E :/* Nehalem-EX Xeon */ case 0x2F :/* Westmere-EX Xeon */ case 0x25 :/* Westmere */ +#ifdef WESTMERE_MAY_FREEZE case 0x2C :/* Westmere */ +#endif cpuidle_state_table = nehalem_cstates; auto_demotion_disable_flags = (NHM_C1_AUTO_DEMOTE |NHM_C3_AUTO_DEMOTE );
Re: Intel i7/X 980 freezes with CONFIG_INTEL_IDLE and frequency scaling
Quoted 4 lines · Carsten Emde
after upgrading a Fedora 14 based Intel i7/X 980 box to 2.6.39-rc1, the system freezes when frequency scaling is started. Looks like a complete CPU halt, since neither SysRq nor anything else can convince the box to provide any information.
Quoted 8 lines
Loading
acpi_cpufreqis save, but selecting the performancescaling_governorimmediately freezes the system. Selecting the ondemandscaling_governorfreezes the system when load is generated for the first time, presumably when the frequency is increased. Fortunately, when the kernel was built with another config file, the system did not freeze. After enabling and disabling some suspicious config items (before going through the hassle and bisect the config using ktest.pl), the culprit was found to beCONFIG_INTEL_IDLE. Fedora 14 enables it.
While digging deeper into this mystery, I found a detail that may connect this problem to the poweroff problem (https://lkml.org/lkml/2011/3/31/458).
The CPU (i7/X 980 box) apparently freezes when it executes
__monitor(¤t_thread_info()->flags, 0, 0);
which is
static inline void __monitor(const void *eax, unsigned long ecx,
unsigned long edx)
{
/* "monitor %eax, %ecx, %edx;" */
asm volatile(".byte 0x0f, 0x01, 0xc8;"
:: "a" (eax), "c" (ecx), "d"(edx));
}After removing this line from the execution path (see below patch), the problem is gone and the system no longer freezes when processor frequency scaling is enabled. I double-checked this, so I am pretty sure that this is, in fact, the case.
Interestingly, the __monitor() command is also used in mwait_play_dead() at arch/x86/kernel/smpboot.c where the poweroff problem is originating. Maybe, a misbehavior of this instruction also causes the poweroff problem.
But we should solve this problem first. Len or anybody else at Intel, I don't think that I can go any further without your help. Do you have any explanation what is going on here when the processor
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz
stepping : 2
encounters the above instruction?
Thanks,
-Carsten.
drivers/idle/intel_idle.c +53 -4
@@ -99,11 +99,54 @@ static unsigned long long auto_demotion_*/ #define CPUIDLE_FLAG_TLB_FLUSHED 0x10000 +static int intel_idle_monitor (struct cpuidle_device *dev, +struct cpuidle_state *state,int monitor); + +static int intel_idle_westmere (struct cpuidle_device *dev, +struct cpuidle_state *state) +{ +return intel_idle_monitor (dev, state,0 ); +} + +static int intel_idle (struct cpuidle_device *dev, +struct cpuidle_state *state) +{ +return intel_idle_monitor (dev, state,1 ); +} +/* * States are indexed by the cstate number, * which is also the index into the MWAIT hint array. * Thus C0 is a dummy. */ +static struct cpuidle_state westmere_cstates[MWAIT_MAX_NUM_CSTATES ] = { + {/* MWAIT C0 */ }, + {/* MWAIT C1 */ + .name ="C1-NHM" , + .desc ="MWAIT 0x00" , + .driver_data = (void *)0x00 , + .flags =CPUIDLE_FLAG_TIME_VALID , + .exit_latency =3 , + .target_residency =6 , + .enter = &intel_idle_westmere }, + {/* MWAIT C2 */ + .name ="C3-NHM" , + .desc ="MWAIT 0x10" , + .driver_data = (void *)0x10 , + .flags =CPUIDLE_FLAG_TIME_VALID |CPUIDLE_FLAG_TLB_FLUSHED , + .exit_latency =20 , + .target_residency =80 , + .enter = &intel_idle_westmere }, + {/* MWAIT C3 */ + .name ="C6-NHM" , + .desc ="MWAIT 0x20" , + .driver_data = (void *)0x20 , + .flags =CPUIDLE_FLAG_TIME_VALID |CPUIDLE_FLAG_TLB_FLUSHED , + .exit_latency =200 , + .target_residency =800 , + .enter = &intel_idle_westmere }, +}; +static struct cpuidle_state nehalem_cstates[MWAIT_MAX_NUM_CSTATES ] = { {/* MWAIT C0 */ }, {/* MWAIT C1 */
@@ -212,7 +255,8 @@ static struct cpuidle_state atom_cstates* @state: cpuidle state * */ -static int intel_idle (struct cpuidle_device *dev,struct cpuidle_state *state) +static int intel_idle_monitor (struct cpuidle_device *dev, +struct cpuidle_state *state,int monitor) {unsigned long ecx =1 ;/* break on interrupt flag */ unsigned long eax = (unsigned long )cpuidle_get_statedata (state);
@@ -239,8 +283,8 @@ static int intel_idle(struct cpuidle_devstop_critical_timings ();if (!need_resched ()) { - -__monitor ((void *)¤t_thread_info ()->flags,0 ,0 ); +if (monitor) +__monitor ((void *)¤t_thread_info ()->flags,0 ,0 );smp_mb ();if (!need_resched ())__mwait (eax, ecx);
@@ -338,12 +382,17 @@ static int intel_idle_probe(void)case 0x2E :/* Nehalem-EX Xeon */ case 0x2F :/* Westmere-EX Xeon */ case 0x25 :/* Westmere */ -case 0x2C :/* Westmere */ cpuidle_state_table = nehalem_cstates; auto_demotion_disable_flags = (NHM_C1_AUTO_DEMOTE |NHM_C3_AUTO_DEMOTE );break ; +case 0x2C :/* Special Westmere? */ + cpuidle_state_table = westmere_cstates; + auto_demotion_disable_flags = + (NHM_C1_AUTO_DEMOTE |NHM_C3_AUTO_DEMOTE ); +break ; +case 0x1C :/* 28 - Atom Processor */ cpuidle_state_table = atom_cstates;break ;