Linux 2.6.35.5
Subsystems (66)
I'm announcing the release of the 2.6.35.5 kernel.
All users of the 2.6.35 kernel series must upgrade.
The updated 2.6.35.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.35.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.35.y.git;a=summarythanks,
greg k-h
------------
Documentation/sound/alsa/HD-Audio-Models.txt | 1 Makefile | 2 arch/arm/kernel/entry-common.S | 2 arch/ia64/include/asm/compat.h | 2 arch/ia64/kernel/msi_ia64.c | 2 arch/ia64/sn/kernel/msi_sn.c | 2 arch/mips/include/asm/compat.h | 2 arch/parisc/include/asm/compat.h | 2 arch/powerpc/include/asm/compat.h | 2 arch/powerpc/kernel/time.c | 23 +- arch/s390/include/asm/compat.h | 2 arch/sparc/include/asm/compat.h | 2 arch/x86/ia32/ia32entry.S | 22 +- arch/x86/include/asm/compat.h | 2 arch/x86/include/asm/hpet.h | 1 arch/x86/include/asm/tsc.h | 2 arch/x86/kernel/apic/io_apic.c | 2 arch/x86/kernel/cpu/perf_event_p4.c | 2 arch/x86/kernel/early-quirks.c | 18 - arch/x86/kernel/hpet.c | 31 +-- arch/x86/kernel/tsc.c | 38 +++ arch/x86/oprofile/nmi_int.c | 22 +- arch/x86/power/cpu.c | 2 drivers/ata/libahci.c | 2 drivers/ata/libata-core.c | 14 + drivers/ata/libata-eh.c | 4 drivers/ata/libata-sff.c | 7 drivers/ata/pata_cmd64x.c | 6 drivers/ata/pata_via.c | 2 drivers/ata/sata_mv.c | 44 +++- drivers/char/agp/intel-gtt.c | 8 drivers/gpu/drm/drm_crtc_helper.c | 4 drivers/gpu/drm/i915/i915_dma.c | 36 ++- drivers/gpu/drm/i915/i915_gem.c | 1 drivers/gpu/drm/i915/i915_reg.h | 9 drivers/gpu/drm/i915/intel_display.c | 11 - drivers/gpu/drm/i915/intel_dp.c | 58 ++--- drivers/gpu/drm/i915/intel_lvds.c | 2 drivers/gpu/drm/i915/intel_ringbuffer.c | 8 drivers/gpu/drm/radeon/atombios_crtc.c | 23 +- drivers/gpu/drm/radeon/evergreen.c | 66 +++++- drivers/gpu/drm/radeon/r600.c | 7 drivers/gpu/drm/radeon/radeon.h | 6 drivers/gpu/drm/radeon/rv770.c | 52 +++++ drivers/hid/usbhid/hid-core.c | 3 drivers/hwmon/ads7871.c | 38 +-- drivers/hwmon/emc1403.c | 1 drivers/hwmon/f75375s.c | 6 drivers/hwmon/hp_accel.c | 2 drivers/hwmon/k8temp.c | 35 +++ drivers/infiniband/hw/cxgb3/cxio_hal.h | 2 drivers/input/mouse/appletouch.c | 6 drivers/input/serio/i8042.c | 67 ++++-- drivers/mmc/core/core.c | 83 +++++--- drivers/mmc/core/host.c | 6 drivers/mmc/host/tmio_mmc.c | 7 drivers/mmc/host/tmio_mmc.h | 13 - drivers/net/wireless/ath/ath5k/base.c | 4 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 2 drivers/net/wireless/ath/ath9k/eeprom.h | 2 drivers/net/wireless/ath/ath9k/htc_drv_main.c | 3 drivers/net/wireless/ath/regd.h | 1 drivers/net/wireless/p54/txrx.c | 2 drivers/oprofile/buffer_sync.c | 27 +- drivers/oprofile/cpu_buffer.c | 2 drivers/pci/msi.c | 27 ++ drivers/power/apm_power.c | 1 drivers/serial/bfin_sport_uart.c | 2 drivers/staging/hv/netvsc_drv.c | 3 drivers/staging/hv/ring_buffer.c | 3 drivers/staging/hv/storvsc_api.h | 4 drivers/staging/hv/storvsc_drv.c | 11 - drivers/staging/rt2860/usb_main_dev.c | 41 +++- drivers/usb/atm/cxacru.c | 24 ++ drivers/usb/class/cdc-acm.c | 23 ++ drivers/usb/core/message.c | 22 +- drivers/usb/gadget/rndis.c | 10 - drivers/usb/host/ehci-ppc-of.c | 12 - drivers/usb/serial/cp210x.c | 10 - drivers/usb/serial/ftdi_sio.c | 8 drivers/usb/serial/ftdi_sio_ids.h | 12 + drivers/usb/serial/mos7840.c | 32 ++- drivers/xen/events.c | 21 +- fs/binfmt_misc.c | 2 fs/cifs/connect.c | 6 fs/direct-io.c | 30 +-- fs/ext4/ext4.h | 4 fs/ext4/inode.c | 17 + fs/fuse/dev.c | 16 + fs/minix/namei.c | 2 fs/nfs/client.c | 2 fs/nfs/super.c | 8 fs/ocfs2/aops.c | 7 fs/ocfs2/inode.c | 6 fs/sysfs/file.c | 2 fs/xfs/linux-2.6/xfs_aops.c | 24 ++ fs/xfs/linux-2.6/xfs_aops.h | 2 fs/xfs/xfs_ialloc.c | 16 + fs/xfs/xfs_inode.c | 49 ++--- include/linux/compat.h | 3 include/linux/fs.h | 3 include/linux/libata.h | 1 include/linux/mmc/host.h | 3 include/linux/msi.h | 2 include/linux/swap.h | 3 kernel/compat.c | 21 ++ kernel/gcov/fs.c | 244 ++++++++++++++++++------- kernel/groups.c | 5 kernel/trace/ftrace.c | 19 + mm/bounce.c | 2 mm/compaction.c | 7 mm/memory_hotplug.c | 16 - mm/page-writeback.c | 26 +- mm/swapfile.c | 35 ++- net/ipv4/netfilter/arp_tables.c | 3 net/ipv4/netfilter/ip_tables.c | 3 net/ipv6/netfilter/ip6_tables.c | 3 net/irda/irlan/irlan_common.c | 2 net/mac80211/main.c | 6 net/sunrpc/auth_gss/auth_gss.c | 9 net/sunrpc/rpc_pipe.c | 6 net/wireless/wext-compat.c | 3 net/wireless/wext-core.c | 16 + security/integrity/ima/ima.h | 1 security/integrity/ima/ima_iint.c | 4 security/integrity/ima/ima_main.c | 8 sound/core/seq/oss/seq_oss_init.c | 9 sound/pci/hda/hda_codec.c | 2 sound/pci/hda/patch_cirrus.c | 50 +++++ sound/pci/hda/patch_conexant.c | 58 +++++ sound/pci/hda/patch_nvhdmi.c | 61 ++++-- sound/pci/hda/patch_realtek.c | 20 +- sound/pci/oxygen/oxygen.h | 1 sound/pci/oxygen/oxygen_lib.c | 21 +- sound/pci/oxygen/virtuoso.c | 1 sound/pci/oxygen/xonar_wm87x6.c | 22 ++ sound/usb/card.c | 19 + sound/usb/clock.c | 3 sound/usb/endpoint.c | 11 - sound/usb/format.c | 14 + sound/usb/mixer.c | 10 - sound/usb/pcm.c | 3 tools/perf/util/callchain.h | 1 143 files changed, 1516 insertions(+), 571 deletions(-)
Al Viro (1):
arm: fix really nasty sigreturn bug
Alan Ott (1):
HID: Set Report ID properly for Output reports on the Control endpoint.
Alex Deucher (6):
drm/radeon/kms: fix a regression on r7xx AGP due to the HDP flush fix drm/radeon/kms: force legacy pll algo for RV515 LVDS drm/radeon/kms: force legacy pll algo for RV620 LVDS drm/radeon/kms: properly set crtc high base on r7xx drm/radeon/kms/evergreen: fix gpu hangs in userspace accel code drm/radeon/kms/evergreen: fix backend setup
Andreas Herrmann (1):
hwmon: (k8temp) Differentiate between AM2 and ASB1
Anton Vorontsov (1):
apm_power: Add missing break statement
Axel Lin (1):
hwmon: (ads7871) Fix ads7871_probe error paths
Ben Hutchings (3):
PCI: MSI: Remove unsafe and unnecessary hardware access
PCI: MSI: Restore read_msi_msg_desc(); add get_cached_msi_msg_desc()
Staging: rt2870sta: Add more device IDs from vendor drivers
Benjamin Herrenschmidt (1):
Revert "Input: appletouch - fix integer overflow issue"
Brian Austin (1):
ALSA: hda - Add errata initverb sequence for CS42xx codecs
Chris Wilson (6):
agp/intel: Promote warning about failure to setup flush to error. drm/i915/dp: Really try 5 times before giving up. drm/i915: Allocate the PCI resource for the MCHBAR drm/i915: Prevent double dpms on
Revert "drm/i915: Allow LVDS on pipe A on gen4+"
drm: Only decouple the old_fb from the crtc is we call mode_set*
Chris Wright (1):
tracing: t_start: reset FTRACE_ITER_HASH in case of seek/pread
Christian Lamparter (1):
p54: fix tx feedback status flag check
Christoph Hellwig (3):
direct-io: move aio_complete into ->end_io
xfs: move aio completion after unwritten extent conversion
swap: do not send discards as barriers
Clemens Ladisch (3):
ALSA: usb-audio: fix detection of vendor-specific device protocol settings
ALSA: virtuoso: work around missing reset in the Xonar DS Windows driver
ALSA: virtuoso: fix setting of Xonar DS line-in/mic-in controls
Craig Shelley (1):
USB: CP210x Add new device ID
Dan Carpenter (5):
USB: ehci-ppc-of: problems in unwind
sysfs: checking for NULL instead of ERR_PTR
irda: off by one
i915: return -EFAULT if copy_to_user fails
i915_gem: return -EFAULT if copy_to_user fails
Daniel Mack (1):
ALSA: usb-audio: Assume first control interface is for audio
Daniel Vetter (1):
drm/i915: overlay on gen2 can't address above 1G
Dave Chinner (3):
xfs: fix untrusted inode number lookup
xfs: ensure we mark all inodes in a freed cluster XFS_ISTALE
writeback: write_cache_pages doesn't terminate at nr_to_write <= 0
Dave Ludlow (2):
usb: serial: mos7840: Add USB ID to support the B&B Electronics USOPTL4-2P.
usb: serial: mos7840: Add USB IDs to support more B&B USB/RS485 converters.
David Henningsson (5):
ALSA: hda - Add Sony VAIO quirk for ALC269
ALSA: HDA: Use model=auto for LG R510
ALSA: hda - Rename iMic to Int Mic on Lenovo NB0763
ALSA: hda - Add a new hp-laptop model for Conexant 5066, tested on HP G60
ALSA: HDA: Enable internal speaker on Dell M101z
Dmitry Torokhov (2):
Input: i8042 - fix device removal on unload
Input: i8042 - reset keyboard controller wehen resuming from S2R
Florian Westphal (1):
netfilter: fix CONFIG_COMPAT support
Frederic Weisbecker (1):
perf: Initialize callchains roots's childen hits
Gary King (1):
bounce: call flush_dcache_page() after bounce_copy_vec()
Greg Kroah-Hartman (1):
Linux 2.6.35.5
Guennadi Liakhovetski (1):
mmc: fix the use of kunmap_atomic() in tmio_mmc.h
Guillem Jover (2):
hwmon: (f75375s) Shift control mode to the correct bit position
hwmon: (f75375s) Do not overwrite values read from registers
H. Peter Anvin (2):
x86-64, compat: Test %rax for the syscall number, not %eax
compat: Make compat_alloc_user_space() incorporate the access_ok()
Haiyang Zhang (2):
staging: hv: Fix missing functions for net_device_ops
staging: hv: Fixed the value of the 64bit-hole inside ring buffer
Hank Janssen (3):
staging: hv: Fixed bounce kmap problem by using correct index
staging: hv: Increased storvsc ringbuffer and max_io_requests
staging: hv: Fixed lockup problem with bounce_buffer scatter list
Hugh Dickins (2):
swap: prevent reuse during hibernation
swap: discard while swapping only if SWAP_FLAG_DISCARD
Jan Sembera (1):
binfmt_misc: fix binfmt_misc priority
Jason Detring (1):
USB: cp210x: Add B&G H3000 link cable ID
Jeff Layton (1):
cifs: fix potential double put of TCP session reference
Jeff Moyer (1):
O_DIRECT: fix the splitting up of contiguous I/O
Jeremy Fitzhardinge (2):
xen: handle events as edge-triggered
xen: use percpu interrupts for IPIs and VIRQs
Jerome Marchand (1):
kernel/groups.c: fix integer overflow in groups_search
Jesse Barnes (1):
drm/i915: don't enable self-refresh on Ironlake
Jiaying Zhang (1):
ext4: move aio completion after unwritten extent conversion
Johannes Berg (2):
mac80211: delete work timer
wireless extensions: fix kernel heap content leak
John W. Linville (1):
ath5k: check return value of ieee80211_get_tx_rate
Jorge Boncompte [DTI2] (1):
minix: fix regression in minix_mkdir()
KAMEZAWA Hiroyuki (1):
memory hotplug: fix next block calculation in is_removable
Li Zefan (1):
tracing: Fix a race in function profile
Lin Ming (1):
perf, x86, Pentium4: Clear the P4_CCCR_FORCE_OVF flag
Luis R. Rodriguez (2):
ath9k_hw: Fix EEPROM uncompress block reading on AR9003
ath9k_hw: fix parsing of HT40 5 GHz CTLs
Luke Lowrey (1):
USB: ftdi_sio: Added custom PIDs for ChamSys products
Mark Lord (2):
libata-sff: remove harmful BUG_ON from ata_bmdma_qc_issue
sata_mv: fix broken DSM/TRIM support (v2)
Maxim Levitsky (1):
mmc: fix all hangs related to mmc/sd card insert/removal during suspend/resume
Maxim Osipov (1):
USB: Fix kernel oops with g_ether and Windows
Menyhart Zoltan (1):
statfs() gives ESTALE error
Miklos Szeredi (1):
fuse: flush background queue on connection close
Mimi Zohar (1):
ima: always maintain counters
Minchan Kim (1):
mm: compaction: handle active and inactive fairly in too_many_isolated
Paul Mackerras (1):
powerpc/perf_event: Reduce latency of calling perf_event_do_pending
Peter Oberparleiter (1):
gcov: fix null-pointer dereference for certain module types
Peter Zijlstra (1):
x86, tsc: Fix a preemption leak in restore_sched_clock_state()
Philippe Corbes (1):
USB: cdc-acm: Add pseudo modem without AT command capabilities
Robert Richter (3):
oprofile: fix crash when accessing freed task structs oprofile, x86: fix init_sysfs error handling oprofile, x86: fix init_sysfs() function stub
Roland McGrath (1):
x86-64, compat: Retruncate rax after ia32 syscall entry tracing
Simon Arlott (1):
USB: cxacru: Use a bulk/int URB to access the command endpoint
Sonic Zhang (1):
serial: bfin_sport_uart: restore transmit frame sync fix
Stephen Warren (1):
ALSA: hda - patch_nvhdmi.c: Add missing codec IDs, unify names
Steve Wise (1):
RDMA/cxgb3: Don't exceed the max HW CQ depth
Steven Rostedt (1):
tracing: Do not allow llseek to set_ftrace_filter
Sunil Mushran (1):
ocfs2: Fix incorrect checksum validation error
Suresh Siddha (1):
x86, tsc, sched: Recompute cyc2ns_offset's during resume from sleep states
Takashi Iwai (7):
ALSA: hda - Handle missing NID 0x1b on ALC259 codec
ALSA: hda - Handle pin NID 0x1a on ALC259/269
ALSA: seq/oss - Fix double-free at error path of snd_seq_oss_open()
ALSA: usb - Release capture substream URBs properly
ALSA: hda - Add quirk for Lenovo T400s
ALSA: hda - Fix wrong HP pin detection in snd_hda_parse_pin_def_config()
hp_accel: add quirks for HP ProBook 532x and HP Mini 5102
Tejun Heo (4):
pata_cmd64x: revert commit d62f5576
libata: skip EH autopsy and recovery during suspend libata,pata_via: revert ata_wait_idle() removal from ata_sff/via_tf_load()
ahci: fix hang on failed softreset
Thadeu Lima de Souza Cascardo (1):
usb: allow drivers to use allocated bandwidth until unbound
Thomas Gleixner (1):
x86: hpet: Work around hardware stupidity
Toby Gray (2):
USB: cdc-acm: Adding second ACM channel support for various Nokia and one Samsung phones
USB: cdc-acm: Fixing crash when ACM probing interfaces with no endpoint descriptors.
Trond Myklebust (2):
NFS: Fix a typo in nfs_sockaddr_match_ipaddr6
SUNRPC: Fix race corrupting rpc upcall
Uwe Kleine-König (1):
mmc: build fix: mmc_pm_notify is only available with CONFIG_PM=y
Vivek Natarajan (1):
ath9k_htc: Fix disconnect issue in HT40 mode.
Yong Wang (1):
hwmon: (emc1403) Remove unnecessary hwmon_device_unregister
Yusuke Goda (1):
tmio_mmc: don't clear unhandled pending interrupts
Zhenyu Wang (1):
drm/i915: Enable MI_FLUSH on Sandybridge
Documentation/sound/alsa/HD-Audio-Models.txt +1 -0
@@ -288,6 +288,7 @@ Conexant 5051 Conexant 5066 ============= laptop Basic Laptop config (default) + hp-laptop HP laptops, e g G60 dell-laptop Dell laptops olpc-xo-1_5 OLPC XO 1.5 ideapad Lenovo IdeaPad U150
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 35 -EXTRAVERSION = .4 +EXTRAVERSION = .5 NAME = Sheep on Meth # *DOCUMENTATION*
arch/arm/kernel/entry-common.S +2 -0
@@ -382,11 +382,13 @@ ENDPROC(sys_clone_wrapper) sys_sigreturn_wrapper: add r0, sp, #S_OFF + mov why, #0 @ prevent syscall restart handling b sys_sigreturn ENDPROC(sys_sigreturn_wrapper) sys_rt_sigreturn_wrapper: add r0, sp, #S_OFF + mov why, #0 @ prevent syscall restart handling b sys_rt_sigreturn ENDPROC(sys_rt_sigreturn_wrapper)
arch/ia64/include/asm/compat.h +1 -1
@@ -199,7 +199,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/msi_ia64.c +1 -1
@@ -25,7 +25,7 @@ static int ia64_set_msi_irq_affinity(unsigned int irq,if (irq_prepare_move (irq, cpu))return -1 ; -read_msi_msg (irq, &msg); +get_cached_msi_msg (irq, &msg); addr = msg.address_lo; addr &=MSI_ADDR_DEST_ID_MASK ;
arch/ia64/sn/kernel/msi_sn.c +1 -1
@@ -175,7 +175,7 @@ static int sn_set_msi_irq_affinity(unsigned int irq,* Release XIO resources for the old MSI PCI address */ -read_msi_msg (irq, &msg); +get_cached_msi_msg (irq, &msg); sn_pdev = (struct pcidev_info *)sn_irq_info->irq_pciioinfo; pdev = sn_pdev->pdi_linux_pcidev; provider =SN_PCIDEV_BUSPROVIDER (pdev);
arch/mips/include/asm/compat.h +1 -1
@@ -145,7 +145,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
@@ -147,7 +147,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
@@ -134,7 +134,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/kernel/time.c +11 -12
@@ -616,20 +616,11 @@ void timer_interrupt(struct pt_regs * regs)* some CPUs will continuue to take decrementer exceptions */ set_dec (DECREMENTER_MAX ); -#ifdef CONFIG_PPC32 +#if defined(CONFIG_PPC32 ) && defined(CONFIG_PMAC )if (atomic_read (&ppc_n_lost_interrupts) !=0 )do_IRQ (regs);#endif - now =get_tb_or_rtc (); -if (now < decrementer->next_tb) { -/* not time for this event yet */ - now = decrementer->next_tb - now; -if (now <=DECREMENTER_MAX ) -set_dec ((int )now); -trace_timer_interrupt_exit (regs); -return ; - } old_regs =set_irq_regs (regs);irq_enter ();
@@ -645,8 +636,16 @@ void timer_interrupt(struct pt_regs * regs)get_lppaca ()->int_dword.fields.decr_int =0 ;#endif -if (evt->event_handler) - evt->event_handler (evt); + now =get_tb_or_rtc (); +if (now >= decrementer->next_tb) { + decrementer->next_tb = ~(u64 )0 ; +if (evt->event_handler) + evt->event_handler (evt); + }else { + now = decrementer->next_tb - now; +if (now <=DECREMENTER_MAX ) +set_dec ((int )now); + }#ifdef CONFIG_PPC_ISERIES if (firmware_has_feature (FW_FEATURE_ISERIES ) &&hvlpevent_is_pending ())
arch/s390/include/asm/compat.h +1 -1
@@ -181,7 +181,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/sparc/include/asm/compat.h +1 -1
@@ -167,7 +167,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/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/compat.h +1 -1
@@ -205,7 +205,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/hpet.h +0 -1
@@ -68,7 +68,6 @@ extern unsigned long force_hpet_address;extern u8 hpet_blockid;extern int hpet_force_user;extern u8 hpet_msi_disable; -extern u8 hpet_readback_cmp;extern int is_hpet_enabled (void );extern int hpet_enable (void );extern void hpet_disable (void );
arch/x86/include/asm/tsc.h +2 -0
@@ -59,5 +59,7 @@ extern void check_tsc_sync_source(int cpu);extern void check_tsc_sync_target (void );extern int notsc_setup (char *); +extern void save_sched_clock_state (void ); +extern void restore_sched_clock_state (void );#endif /* _ASM_X86_TSC_H */
arch/x86/kernel/apic/io_apic.c +1 -1
@@ -3399,7 +3399,7 @@ static int set_msi_irq_affinity(unsigned int irq, const struct cpumask *mask) cfg = desc->chip_data; -read_msi_msg_desc (desc, &msg); +get_cached_msi_msg_desc (desc, &msg); msg.data &= ~MSI_DATA_VECTOR_MASK ; msg.data |=MSI_DATA_VECTOR (cfg->vector);
arch/x86/kernel/cpu/perf_event_p4.c +2 -0
@@ -457,6 +457,8 @@ static int p4_hw_config(struct perf_event *event) event->hw.config |= event->attr.config & (p4_config_pack_escr (P4_ESCR_MASK_HT ) |p4_config_pack_cccr (P4_CCCR_MASK_HT )); + + event->hw.config &= ~P4_CCCR_FORCE_OVF ; } rc =x86_setup_perfctr (event);
arch/x86/kernel/early-quirks.c +0 -18
@@ -18,7 +18,6 @@#include <asm/apic.h> #include <asm/iommu.h> #include <asm/gart.h> -#include <asm/hpet.h> static void __init fix_hypertransport_config (int num,int slot,int func) {
@@ -192,21 +191,6 @@ static void __init ati_bugs_contd(int num, int slot, int func) }#endif -/* -* Force the read back of the CMP register in hpet_next_event() -* to work around the problem that the CMP register write seems to be -* delayed. See hpet_next_event() for details. -* -* We do this on all SMBUS incarnations for now until we have more -* information about the affected chipsets. -*/ -static void __init ati_hpet_bugs (int num,int slot,int func) -{ -#ifdef CONFIG_HPET_TIMER - hpet_readback_cmp =1 ; -#endif -} -#define QFLAG_APPLY_ONCE 0x1#define QFLAG_APPLIED 0x2#define QFLAG_DONE (QFLAG_APPLY_ONCE|QFLAG_APPLIED)
@@ -236,8 +220,6 @@ static struct chipset early_qrk[] __initdata = { PCI_CLASS_SERIAL_SMBUS, PCI_ANY_ID, 0, ati_bugs }, { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS, PCI_CLASS_SERIAL_SMBUS, PCI_ANY_ID, 0, ati_bugs_contd }, - { PCI_VENDOR_ID_ATI, PCI_ANY_ID, - PCI_CLASS_SERIAL_SMBUS, PCI_ANY_ID, 0, ati_hpet_bugs }, {} };
arch/x86/kernel/hpet.c +17 -14
@@ -36,7 +36,6 @@unsigned long hpet_address;u8 hpet_blockid;/* OS timer block num */ u8 hpet_msi_disable; -u8 hpet_readback_cmp;#ifdef CONFIG_PCI_MSI static unsigned long hpet_num_timers;
@@ -396,23 +395,27 @@ static int hpet_next_event(unsigned long delta,* at that point and we would wait for the next hpet interrupt * forever. We found out that reading the CMP register back * forces the transfer so we can rely on the comparison with -* the counter register below. +* the counter register below. If the read back from the +* compare register does not match the value we programmed +* then we might have a real hardware problem. We can not do +* much about it here, but at least alert the user/admin with +* a prominent warning. * -* That works fine on those ATI chipsets, but on newer Intel -* chipsets (ICH9...) this triggers due to an erratum: Reading -* the comparator immediately following a write is returning -* the old value. +* An erratum on some chipsets (ICH9,..), results in +* comparator read immediately following a write returning old +* value. Workaround for this is to read this value second +* time, when first read returns old value. * -* We restrict the read back to the affected ATI chipsets (set -* by quirks) and also run it with hpet=verbose for debugging -* purposes. +* In fact the write to the comparator register is delayed up +* to two HPET cycles so the workaround we tried to restrict +* the readback to those known to be borked ATI chipsets +* failed miserably. So we give up on optimizations forever +* and penalize all HPET incarnations unconditionally. */ -if (hpet_readback_cmp || hpet_verbose) { -u32 cmp =hpet_readl (HPET_Tn_CMP (timer)); - -if (cmp != cnt) +if (unlikely ((u32 )hpet_readl (HPET_Tn_CMP (timer)) != cnt)) { +if (hpet_readl (HPET_Tn_CMP (timer)) != cnt)printk_once (KERN_WARNING -"hpet: compare register read back failed.\n" ); +"hpet: compare register read back failed.\n" ); }return (s32)(hpet_readl (HPET_COUNTER ) - cnt) >=0 ? -ETIME :0 ;
arch/x86/kernel/tsc.c +38 -0
@@ -626,6 +626,44 @@ static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu)local_irq_restore (flags); } +static unsigned long long cyc2ns_suspend; + +void save_sched_clock_state (void ) +{ +if (!sched_clock_stable) +return ; + + cyc2ns_suspend =sched_clock (); +} + +/* +* Even on processors with invariant TSC, TSC gets reset in some the +* ACPI system sleep states. And in some systems BIOS seem to reinit TSC to +* arbitrary value (still sync'd across cpu's) during resume from such sleep +* states. To cope up with this, recompute the cyc2ns_offset for each cpu so +* that sched_clock() continues from the point where it was left off during +* suspend. +*/ +void restore_sched_clock_state (void ) +{ +unsigned long long offset; +unsigned long flags; +int cpu; + +if (!sched_clock_stable) +return ; + +local_irq_save (flags); + +__get_cpu_var (cyc2ns_offset) =0 ; + offset = cyc2ns_suspend -sched_clock (); + +for_each_possible_cpu (cpu) +per_cpu (cyc2ns_offset, cpu) = offset; + +local_irq_restore (flags); +} +#ifdef CONFIG_CPU_FREQ /* Frequency scaling support. Adjust the TSC based timer when the cpu frequency
arch/x86/oprofile/nmi_int.c +17 -5
@@ -568,8 +568,13 @@ static int __init init_sysfs(void)int error; error =sysdev_class_register (&oprofile_sysclass); -if (!error) - error =sysdev_register (&device_oprofile); +if (error) +return error; + + error =sysdev_register (&device_oprofile); +if (error) +sysdev_class_unregister (&oprofile_sysclass); +return error; }
@@ -580,8 +585,10 @@ static void exit_sysfs(void) }#else -#define init_sysfs () do { } while (0) -#define exit_sysfs () do { } while (0) + +static inline int init_sysfs (void ) {return 0 ; } +static inline void exit_sysfs (void ) { } +#endif /* CONFIG_PM */ static int __init p4_init (char **cpu_type)
@@ -695,6 +702,8 @@ int __init op_nmi_init(struct oprofile_operations *ops)char *cpu_type =NULL ;int ret =0 ; + using_nmi =0 ; +if (!cpu_has_apic)return -ENODEV ;
@@ -774,7 +783,10 @@ int __init op_nmi_init(struct oprofile_operations *ops)mux_init (ops); -init_sysfs (); + ret =init_sysfs (); +if (ret) +return ret; + using_nmi =1 ;printk (KERN_INFO "oprofile: using NMI interrupt.\n" );return 0 ;
arch/x86/power/cpu.c +2 -0
@@ -113,6 +113,7 @@ static void __save_processor_state(struct saved_context *ctxt)void save_processor_state (void ) {__save_processor_state (&saved_context); +save_sched_clock_state (); }#ifdef CONFIG_X86_32 EXPORT_SYMBOL (save_processor_state);
@@ -229,6 +230,7 @@ static void __restore_processor_state(struct saved_context *ctxt)void restore_processor_state (void ) {__restore_processor_state (&saved_context); +restore_sched_clock_state (); }#ifdef CONFIG_X86_32 EXPORT_SYMBOL (restore_processor_state);
drivers/ata/libahci.c +1 -1
@@ -1320,7 +1320,7 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class,/* issue the first D2H Register FIS */ msecs =0 ; now = jiffies; -if (time_after (now, deadline)) +if (time_after (deadline, now)) msecs =jiffies_to_msecs (deadline - now); tf.ctl |=ATA_SRST ;
drivers/ata/libata-core.c +13 -1
@@ -5434,6 +5434,7 @@ static int ata_host_request_pm(struct ata_host *host, pm_message_t mesg,*/ int ata_host_suspend (struct ata_host *host,pm_message_t mesg) { +unsigned int ehi_flags =ATA_EHI_QUIET ;int rc;/*
@@ -5442,7 +5443,18 @@ int ata_host_suspend(struct ata_host *host, pm_message_t mesg)*/ ata_lpm_enable (host); - rc =ata_host_request_pm (host, mesg,0 ,ATA_EHI_QUIET ,1 ); +/* +* On some hardware, device fails to respond after spun down +* for suspend. As the device won't be used before being +* resumed, we don't need to touch the device. Ask EH to skip +* the usual stuff and proceed directly to suspend. +* +* http://thread.gmane.org/gmane.linux.ide/46764 +*/ +if (mesg.event ==PM_EVENT_SUSPEND ) + ehi_flags |=ATA_EHI_NO_AUTOPSY |ATA_EHI_NO_RECOVERY ; + + rc =ata_host_request_pm (host, mesg,0 , ehi_flags,1 );if (rc ==0 ) host->dev->power.power_state = mesg;return rc;
drivers/ata/libata-eh.c +4 -0
@@ -3234,6 +3234,10 @@ static int ata_eh_skip_recovery(struct ata_link *link)if (link->flags &ATA_LFLAG_DISABLED )return 1 ; +/* skip if explicitly requested */ +if (ehc->i.flags &ATA_EHI_NO_RECOVERY ) +return 1 ; +/* thaw frozen port and recover failed devices */ if ((ap->pflags &ATA_PFLAG_FROZEN ) ||ata_link_nr_enabled (link))return 0 ;
drivers/ata/libata-sff.c +3 -4
@@ -418,6 +418,7 @@ void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf)if (ioaddr->ctl_addr)iowrite8 (tf->ctl, ioaddr->ctl_addr); ap->last_ctl = tf->ctl; +ata_wait_idle (ap); }if (is_addr && (tf->flags &ATA_TFLAG_LBA48 )) {
@@ -453,6 +454,8 @@ void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf)iowrite8 (tf->device, ioaddr->device_addr);VPRINTK ("device 0x%X\n" , tf->device); } + +ata_wait_idle (ap); }EXPORT_SYMBOL_GPL (ata_sff_tf_load);
@@ -2735,10 +2738,6 @@ unsigned int ata_bmdma_qc_issue(struct ata_queued_cmd *qc) {struct ata_port *ap = qc->ap; -/* see ata_dma_blacklisted() */ -BUG_ON ((ap->flags &ATA_FLAG_PIO_POLLING ) && - qc->tf.protocol ==ATAPI_PROT_DMA ); -/* defer PIO handling to sff_qc_issue */ if (!ata_is_dma (qc->tf.protocol))return ata_sff_qc_issue (qc);
drivers/ata/pata_cmd64x.c +0 -6
@@ -121,14 +121,8 @@ static void cmd64x_set_timing(struct ata_port *ap, struct ata_device *adev, u8 mif (pair) {struct ata_timing tp; -ata_timing_compute (pair, pair->pio_mode, &tp,T ,0 );ata_timing_merge (&t, &tp, &t,ATA_TIMING_SETUP ); -if (pair->dma_mode) { -ata_timing_compute (pair, pair->dma_mode, - &tp,T ,0 ); -ata_timing_merge (&tp, &t, &t,ATA_TIMING_SETUP ); - } } }
drivers/ata/pata_via.c +2 -0
@@ -417,6 +417,8 @@ static void via_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) tf->lbam, tf->lbah); } + +ata_wait_idle (ap); }static int via_port_start (struct ata_port *ap)
drivers/ata/sata_mv.c +37 -7
82 lines not on this page · raw message
drivers/char/agp/intel-gtt.c +4 -4
@@ -1061,11 +1061,11 @@ static void intel_i9xx_setup_flush(void)intel_i915_setup_chipset_flush (); } -if (intel_private.ifp_resource.start) { +if (intel_private.ifp_resource.start) intel_private.i9xx_flush_page =ioremap_nocache (intel_private.ifp_resource.start,PAGE_SIZE ); -if (!intel_private.i9xx_flush_page) -dev_info (&intel_private.pcidev->dev,"can't ioremap flush page - no chipset flushing" ); - } +if (!intel_private.i9xx_flush_page) +dev_err (&intel_private.pcidev->dev, +"can't ioremap flush page - no chipset flushing\n" ); }static int intel_i9xx_configure (void )
drivers/gpu/drm/drm_crtc_helper.c +2 -2
@@ -610,13 +610,13 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set) mode_changed = true;if (mode_changed) { - old_fb = set->crtc->fb; - set->crtc->fb = set->fb; set->crtc->enabled = (set->mode !=NULL );if (set->mode !=NULL ) {DRM_DEBUG_KMS ("attempting to set mode from" " userspace\n" );drm_mode_debug_printmodeline (set->mode); + old_fb = set->crtc->fb; + set->crtc->fb = set->fb;if (!drm_crtc_helper_set_mode (set->crtc, set->mode, set->x, set->y, old_fb)) {
drivers/gpu/drm/i915/i915_dma.c +23 -13
@@ -612,8 +612,10 @@ static int i915_batchbuffer(struct drm_device *dev, void *data, ret =copy_from_user (cliprects, batch->cliprects, batch->num_cliprects *sizeof (struct drm_clip_rect )); -if (ret !=0 ) +if (ret !=0 ) { + ret = -EFAULT ; goto fail_free; + } }mutex_lock (&dev->struct_mutex);
@@ -654,8 +656,10 @@ static int i915_cmdbuffer(struct drm_device *dev, void *data,return -ENOMEM ; ret =copy_from_user (batch_data, cmdbuf->buf, cmdbuf->sz); -if (ret !=0 ) +if (ret !=0 ) { + ret = -EFAULT ; goto fail_batch_free; + }if (cmdbuf->num_cliprects) { cliprects = kcalloc(cmdbuf->num_cliprects,
@@ -668,8 +672,10 @@ static int i915_cmdbuffer(struct drm_device *dev, void *data, ret =copy_from_user (cliprects, cmdbuf->cliprects, cmdbuf->num_cliprects *sizeof (struct drm_clip_rect )); -if (ret !=0 ) +if (ret !=0 ) { + ret = -EFAULT ; goto fail_clip_free; + } }mutex_lock (&dev->struct_mutex);
@@ -877,7 +883,7 @@ intel_alloc_mchbar_resource(struct drm_device *dev)int reg =IS_I965G (dev) ?MCHBAR_I965 :MCHBAR_I915 ;u32 temp_lo, temp_hi =0 ;u64 mchbar_addr; -int ret =0 ; +int ret;if (IS_I965G (dev))pci_read_config_dword (dev_priv->bridge_dev, reg +4 , &temp_hi);
@@ -887,22 +893,23 @@ intel_alloc_mchbar_resource(struct drm_device *dev)/* If ACPI doesn't have it, assume we need to allocate it ourselves */ #ifdef CONFIG_PNP if (mchbar_addr && -pnp_range_reserved (mchbar_addr, mchbar_addr +MCHBAR_SIZE )) { - ret =0 ; - goto out; - } +pnp_range_reserved (mchbar_addr, mchbar_addr +MCHBAR_SIZE )) +return 0 ;#endif /* Get some space for it */ - ret =pci_bus_alloc_resource (dev_priv->bridge_dev->bus, &dev_priv->mch_res, + dev_priv->mch_res.name ="i915 MCHBAR" ; + dev_priv->mch_res.flags =IORESOURCE_MEM ; + ret =pci_bus_alloc_resource (dev_priv->bridge_dev->bus, + &dev_priv->mch_res,MCHBAR_SIZE ,MCHBAR_SIZE ,PCIBIOS_MIN_MEM , -0 , pcibios_align_resource, +0 , pcibios_align_resource, dev_priv->bridge_dev);if (ret) {DRM_DEBUG_DRIVER ("failed bus alloc: %d\n" , ret); dev_priv->mch_res.start =0 ; - goto out; +return ret; }if (IS_I965G (dev))
@@ -911,8 +918,7 @@ intel_alloc_mchbar_resource(struct drm_device *dev)pci_write_config_dword (dev_priv->bridge_dev, reg,lower_32_bits (dev_priv->mch_res.start)); -out: -return ret; +return 0 ; }/* Setup MCHBAR if possible, return true if we should disable it again */
@@ -2073,6 +2079,10 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) goto free_priv; } +/* overlay on gen2 is broken and can't address above 1G */ +if (IS_GEN2 (dev)) +dma_set_coherent_mask (&dev->pdev->dev,DMA_BIT_MASK (30 )); + dev_priv->regs =ioremap (base, size);if (!dev_priv->regs) {DRM_ERROR ("failed to map registers\n" );
drivers/gpu/drm/i915/i915_gem.c +1 -0
@@ -3709,6 +3709,7 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,if (ret !=0 ) {DRM_ERROR ("copy %d cliprects failed: %d\n" , args->num_cliprects, ret); + ret = -EFAULT ; goto pre_mutex_err; } }
drivers/gpu/drm/i915/i915_reg.h +9 -0
@@ -312,6 +312,7 @@#define MI_MODE 0x0209c# define VS_TIMER_DISPATCH (1 << 6) +# define MI_FLUSH_ENABLE (1 << 11)#define SCPD0 0x0209c/* 915+ only */ #define IER 0x020a0
@@ -2199,9 +2200,17 @@#define WM1_LP_SR_EN (1<<31)#define WM1_LP_LATENCY_SHIFT 24#define WM1_LP_LATENCY_MASK (0x7f<<24) +#define WM1_LP_FBC_LP1_MASK (0xf<<20) +#define WM1_LP_FBC_LP1_SHIFT 20#define WM1_LP_SR_MASK (0x1ff<<8)#define WM1_LP_SR_SHIFT 8#define WM1_LP_CURSOR_MASK (0x3f) +#define WM2_LP_ILK 0x4510c +#define WM2_LP_EN (1<<31) +#define WM3_LP_ILK 0x45110 +#define WM3_LP_EN (1<<31) +#define WM1S_LP_ILK 0x45120 +#define WM1S_LP_EN (1<<31)/* Memory latency timer register */ #define MLTR_ILK 0x11222
drivers/gpu/drm/i915/intel_display.c +8 -3
@@ -2314,6 +2314,9 @@ static void intel_crtc_dpms(struct drm_crtc *crtc, int mode)int pipe = intel_crtc->pipe;bool enabled; +if (intel_crtc->dpms_mode == mode) +return ; + dev_priv->display.dpms (crtc, mode); intel_crtc->dpms_mode = mode;
@@ -3203,8 +3206,7 @@ static void ironlake_update_wm(struct drm_device *dev, int planea_clock, reg_value =I915_READ (WM1_LP_ILK ); reg_value &= ~(WM1_LP_LATENCY_MASK |WM1_LP_SR_MASK |WM1_LP_CURSOR_MASK ); - reg_value |=WM1_LP_SR_EN | - (ilk_sr_latency <<WM1_LP_LATENCY_SHIFT ) | + reg_value |= (ilk_sr_latency <<WM1_LP_LATENCY_SHIFT ) | (sr_wm <<WM1_LP_SR_SHIFT ) | cursor_wm;I915_WRITE (WM1_LP_ILK , reg_value);
@@ -4915,7 +4917,7 @@ static void intel_crtc_init(struct drm_device *dev, int pipe) dev_priv->pipe_to_crtc_mapping[intel_crtc->pipe] = &intel_crtc->base; intel_crtc->cursor_addr =0 ; - intel_crtc->dpms_mode =DRM_MODE_DPMS_OFF ; + intel_crtc->dpms_mode =-1 ;drm_crtc_helper_add (&intel_crtc->base, &intel_helper_funcs); intel_crtc->busy = false;
@@ -5422,6 +5424,9 @@ void intel_init_clock_gating(struct drm_device *dev)I915_WRITE (DISP_ARB_CTL , (I915_READ (DISP_ARB_CTL ) |DISP_FBC_WM_DIS )); +I915_WRITE (WM3_LP_ILK ,0 ); +I915_WRITE (WM2_LP_ILK ,0 ); +I915_WRITE (WM1_LP_ILK ,0 ); }return ; }else if (IS_G4X (dev)) {
drivers/gpu/drm/i915/intel_dp.c +28 -30
91 lines not on this page · raw message
drivers/gpu/drm/i915/intel_lvds.c +0 -2
@@ -988,8 +988,6 @@ void intel_lvds_init(struct drm_device *dev) intel_encoder->clone_mask = (1 <<INTEL_LVDS_CLONE_BIT ); intel_encoder->crtc_mask = (1 <<1 ); -if (IS_I965G (dev)) - intel_encoder->crtc_mask |= (1 <<0 );drm_encoder_helper_add (encoder, &intel_lvds_helper_funcs);drm_connector_helper_add (connector, &intel_lvds_connector_helper_funcs); connector->display_info.subpixel_order = SubPixelHorizontalRGB;
drivers/gpu/drm/i915/intel_ringbuffer.c +6 -2
@@ -203,9 +203,13 @@ static int init_render_ring(struct drm_device *dev, {drm_i915_private_t *dev_priv = dev->dev_private;int ret =init_ring_common (dev, ring); +int mode; +if (IS_I9XX (dev) && !IS_GEN3 (dev)) { -I915_WRITE (MI_MODE , - (VS_TIMER_DISPATCH ) <<16 |VS_TIMER_DISPATCH ); + mode =VS_TIMER_DISPATCH <<16 |VS_TIMER_DISPATCH ; +if (IS_GEN6 (dev)) + mode |=MI_FLUSH_ENABLE <<16 |MI_FLUSH_ENABLE ; +I915_WRITE (MI_MODE , mode); }return ret; }
drivers/gpu/drm/radeon/atombios_crtc.c +19 -4
@@ -527,6 +527,21 @@ static u32 atombios_adjust_pll(struct drm_crtc *crtc, pll->algo =PLL_ALGO_LEGACY ; pll->flags |=RADEON_PLL_PREFER_CLOSEST_LOWER ; } +/* There is some evidence (often anecdotal) that RV515/RV620 LVDS +* (on some boards at least) prefers the legacy algo. I'm not +* sure whether this should handled generically or on a +* case-by-case quirk basis. Both algos should work fine in the +* majority of cases. +*/ +if ((radeon_encoder->active_device & (ATOM_DEVICE_LCD_SUPPORT )) && + ((rdev->family ==CHIP_RV515 ) || + (rdev->family ==CHIP_RV620 ))) { +/* allow the user to overrride just in case */ +if (radeon_new_pll ==1 ) + pll->algo =PLL_ALGO_NEW ; +else + pll->algo =PLL_ALGO_LEGACY ; + } }else {if (encoder->encoder_type !=DRM_MODE_ENCODER_DAC ) pll->flags |=RADEON_PLL_NO_ODD_POST_DIV ;
@@ -992,11 +1007,11 @@ static int avivo_crtc_set_base(struct drm_crtc *crtc, int x, int y,if (rdev->family >=CHIP_RV770 ) {if (radeon_crtc->crtc_id) { -WREG32 (R700_D2GRPH_PRIMARY_SURFACE_ADDRESS_HIGH ,0 ); -WREG32 (R700_D2GRPH_SECONDARY_SURFACE_ADDRESS_HIGH ,0 ); +WREG32 (R700_D2GRPH_PRIMARY_SURFACE_ADDRESS_HIGH ,upper_32_bits (fb_location)); +WREG32 (R700_D2GRPH_SECONDARY_SURFACE_ADDRESS_HIGH ,upper_32_bits (fb_location)); }else { -WREG32 (R700_D1GRPH_PRIMARY_SURFACE_ADDRESS_HIGH ,0 ); -WREG32 (R700_D1GRPH_SECONDARY_SURFACE_ADDRESS_HIGH ,0 ); +WREG32 (R700_D1GRPH_PRIMARY_SURFACE_ADDRESS_HIGH ,upper_32_bits (fb_location)); +WREG32 (R700_D1GRPH_SECONDARY_SURFACE_ADDRESS_HIGH ,upper_32_bits (fb_location)); } } WREG32(AVIVO_D1GRPH_PRIMARY_SURFACE_ADDRESS + radeon_crtc->crtc_offset,
drivers/gpu/drm/radeon/evergreen.c +57 -9
84 lines not on this page · raw message
drivers/gpu/drm/radeon/r600.c +2 -5
@@ -2104,10 +2104,7 @@ int r600_cp_start(struct radeon_device *rdev) }radeon_ring_write (rdev,PACKET3 (PACKET3_ME_INITIALIZE ,5 ));radeon_ring_write (rdev,0x1 ); -if (rdev->family >=CHIP_CEDAR ) { -radeon_ring_write (rdev,0x0 ); -radeon_ring_write (rdev, rdev->config.evergreen.max_hw_contexts -1 ); - }else if (rdev->family >=CHIP_RV770 ) { +if (rdev->family >=CHIP_RV770 ) {radeon_ring_write (rdev,0x0 );radeon_ring_write (rdev, rdev->config.rv770.max_hw_contexts -1 ); }else {
@@ -3526,7 +3523,7 @@ void r600_ioctl_wait_idle(struct radeon_device *rdev, struct radeon_bo *bo)* rather than write to HDP_REG_COHERENCY_FLUSH_CNTL */ if ((rdev->family >=CHIP_RV770 ) && (rdev->family <=CHIP_RV740 )) { -void __iomem *ptr = (void *)rdev->gart.table.vram.ptr; +void __iomem *ptr = (void *)rdev->vram_scratch.ptr;u32 tmp;WREG32 (HDP_DEBUG1 ,0 );
drivers/gpu/drm/radeon/radeon.h +6 -0
@@ -997,6 +997,11 @@ int radeon_gem_set_tiling_ioctl(struct drm_device *dev, void *data,int radeon_gem_get_tiling_ioctl (struct drm_device *dev,void *data,struct drm_file *filp); +/* VRAM scratch page for HDP bug */ +struct r700_vram_scratch { +struct radeon_bo *robj; +volatile uint32_t *ptr; +};/* * Core structure, functions and helpers.
@@ -1060,6 +1065,7 @@ struct radeon_device {const struct firmware *pfp_fw;/* r6/700 PFP firmware */ const struct firmware *rlc_fw;/* r6/700 RLC firmware */ struct r600_blit r600_blit; +struct r700_vram_scratch vram_scratch;int msi_enabled;/* msi enabled */ struct r600_ih ih;/* r6/700 interrupt ring */ struct workqueue_struct *wq;
drivers/gpu/drm/radeon/rv770.c +52 -0
70 lines not on this page · raw message
drivers/hid/usbhid/hid-core.c +2 -1
@@ -828,6 +828,7 @@ static int usbhid_output_raw_report(struct hid_device *hid, __u8 *buf, size_t co } }else {int skipped_report_id =0 ; +int report_id = buf[0 ];if (buf[0 ] ==0x0 ) {/* Don't send the Report ID */ buf++;
@@ -837,7 +838,7 @@ static int usbhid_output_raw_report(struct hid_device *hid, __u8 *buf, size_t co ret =usb_control_msg (dev,usb_sndctrlpipe (dev,0 ),HID_REQ_SET_REPORT ,USB_DIR_OUT |USB_TYPE_CLASS |USB_RECIP_INTERFACE , - ((report_type +1 ) <<8 ) | *buf, + ((report_type +1 ) <<8 ) | report_id, interface->desc.bInterfaceNumber, buf, count,USB_CTRL_SET_TIMEOUT );/* count also the report id, if this was a numbered report. */
drivers/hwmon/ads7871.c +19 -19
@@ -160,30 +160,12 @@ static const struct attribute_group ads7871_group = {static int __devinit ads7871_probe (struct spi_device *spi) { -int status, ret, err =0 ; +int ret, err;uint8_t val;struct ads7871_data *pdata;dev_dbg (&spi->dev,"probe\n" ); - pdata =kzalloc (sizeof (struct ads7871_data ),GFP_KERNEL ); -if (!pdata) { - err = -ENOMEM ; - goto exit; - } - - status =sysfs_create_group (&spi->dev.kobj, &ads7871_group); -if (status <0 ) - goto error_free; - - pdata->hwmon_dev =hwmon_device_register (&spi->dev); -if (IS_ERR (pdata->hwmon_dev)) { - err =PTR_ERR (pdata->hwmon_dev); - goto error_remove; - } - -spi_set_drvdata (spi, pdata); -/* Configure the SPI bus */ spi->mode = (SPI_MODE_0 ); spi->bits_per_word =8 ;
@@ -201,6 +183,24 @@ static int __devinit ads7871_probe(struct spi_device *spi)we need to make sure we really have a chip*/ if (val != ret) { err = -ENODEV ; + goto exit; + } + + pdata =kzalloc (sizeof (struct ads7871_data ),GFP_KERNEL ); +if (!pdata) { + err = -ENOMEM ; + goto exit; + } + + err =sysfs_create_group (&spi->dev.kobj, &ads7871_group); +if (err <0 ) + goto error_free; + +spi_set_drvdata (spi, pdata); + + pdata->hwmon_dev =hwmon_device_register (&spi->dev); +if (IS_ERR (pdata->hwmon_dev)) { + err =PTR_ERR (pdata->hwmon_dev); goto error_remove; }
drivers/hwmon/emc1403.c +0 -1
@@ -275,7 +275,6 @@ static int emc1403_probe(struct i2c_client *client, res =sysfs_create_group (&client->dev.kobj, &m_thermal_gr);if (res) {dev_warn (&client->dev,"create group failed\n" ); -hwmon_device_unregister (data->hwmon_dev); goto thermal_error1; } data->hwmon_dev =hwmon_device_register (&client->dev);
drivers/hwmon/f75375s.c +3 -3
@@ -79,7 +79,7 @@ enum chips { f75373, f75375 };#define F75375_REG_PWM2_DROP_DUTY 0x6C#define FAN_CTRL_LINEAR (nr) (4 + nr) -#define FAN_CTRL_MODE (nr) (5 + ((nr) * 2)) +#define FAN_CTRL_MODE (nr) (4 + ((nr) * 2))/* * Data structures and manipulation thereof
@@ -298,7 +298,7 @@ static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val)return -EINVAL ; fanmode =f75375_read8 (client,F75375_REG_FAN_TIMER ); - fanmode = ~(3 <<FAN_CTRL_MODE (nr)); + fanmode &= ~(3 <<FAN_CTRL_MODE (nr));switch (val) {case 0 :/* Full speed */
@@ -350,7 +350,7 @@ static ssize_t set_pwm_mode(struct device *dev, struct device_attribute *attr,mutex_lock (&data->update_lock); conf =f75375_read8 (client,F75375_REG_CONFIG1 ); - conf = ~(1 <<FAN_CTRL_LINEAR (nr)); + conf &= ~(1 <<FAN_CTRL_LINEAR (nr));if (val ==0 ) conf |= (1 <<FAN_CTRL_LINEAR (nr)) ;
drivers/hwmon/hp_accel.c +2 -0
@@ -221,6 +221,8 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {AXIS_DMI_MATCH ("HPB442x" ,"HP ProBook 442" , xy_rotated_left),AXIS_DMI_MATCH ("HPB452x" ,"HP ProBook 452" , y_inverted),AXIS_DMI_MATCH ("HPB522x" ,"HP ProBook 522" , xy_swap), +AXIS_DMI_MATCH ("HPB532x" ,"HP ProBook 532" , y_inverted), +AXIS_DMI_MATCH ("Mini5102" ,"HP Mini 5102" , xy_rotated_left_usd), { NULL, }/* Laptop models without axis info (yet): * "NC6910" "HP Compaq 6910"
drivers/hwmon/k8temp.c +32 -3
@@ -143,6 +143,37 @@ static const struct pci_device_id k8temp_ids[] = {MODULE_DEVICE_TABLE (pci, k8temp_ids); +static int __devinit is_rev_g_desktop (u8 model) +{ +u32 brandidx; + +if (model <0x69 ) +return 0 ; + +if (model ==0xc1 || model ==0x6c || model ==0x7c ) +return 0 ; + +/* +* Differentiate between AM2 and ASB1. +* See "Constructing the processor Name String" in "Revision +* Guide for AMD NPT Family 0Fh Processors" (33610). +*/ + brandidx =cpuid_ebx (0x80000001 ); + brandidx = (brandidx >>9 ) &0x1f ; + +/* Single core */ +if ((model ==0x6f || model ==0x7f ) && + (brandidx ==0x7 || brandidx ==0x9 || brandidx ==0xc )) +return 0 ; + +/* Dual core */ +if (model ==0x6b && + (brandidx ==0xb || brandidx ==0xc )) +return 0 ; + +return 1 ; +} +static int __devinit k8temp_probe (struct pci_dev *pdev,const struct pci_device_id *id) {
@@ -179,9 +210,7 @@ static int __devinit k8temp_probe(struct pci_dev *pdev, "wrong - check erratum #141\n"); } -if ((model >=0x69 ) && - !(model ==0xc1 || model ==0x6c || model ==0x7c || - model ==0x6b || model ==0x6f || model ==0x7f )) { +if (is_rev_g_desktop (model)) {/* * RevG desktop CPUs (i.e. no socket S1G1 or * ASB1 parts) need additional offset,
drivers/infiniband/hw/cxgb3/cxio_hal.h +1 -1
@@ -53,7 +53,7 @@#define T3_MAX_PBL_SIZE 256#define T3_MAX_RQ_SIZE 1024#define T3_MAX_QP_DEPTH (T3_MAX_RQ_SIZE-1) -#define T3_MAX_CQ_DEPTH 262144 +#define T3_MAX_CQ_DEPTH 65536#define T3_MAX_NUM_STAG (1<<15)#define T3_MAX_MR_SIZE 0x100000000ULL#define T3_PAGESIZE_MASK 0xffff000/* 4KB-128MB */
drivers/input/mouse/appletouch.c +3 -3
@@ -205,8 +205,8 @@ struct atp {bool overflow_warned;int x_old;/* last reported x/y, */ int y_old;/* used for smoothing */ -u8 xy_cur[ATP_XSENSORS +ATP_YSENSORS ]; -u8 xy_old[ATP_XSENSORS +ATP_YSENSORS ]; +signed char xy_cur[ATP_XSENSORS +ATP_YSENSORS ]; +signed char xy_old[ATP_XSENSORS +ATP_YSENSORS ];int xy_acc[ATP_XSENSORS +ATP_YSENSORS ];int idlecount;/* number of empty packets */ struct work_struct work;
@@ -531,7 +531,7 @@ static void atp_complete_geyser_1_2(struct urb *urb)for (i =0 ; i <ATP_XSENSORS +ATP_YSENSORS ; i++) {/* accumulate the change */ -int change = dev->xy_old[i] - dev->xy_cur[i]; +signed char change = dev->xy_old[i] - dev->xy_cur[i]; dev->xy_acc[i] -= change;/* prevent down drifting */
drivers/input/serio/i8042.c +42 -25
122 lines not on this page · raw message
drivers/mmc/core/core.c +57 -26
110 lines not on this page · raw message
drivers/mmc/core/host.c +6 -0
@@ -17,6 +17,7 @@#include <linux/pagemap.h> #include <linux/leds.h> #include <linux/slab.h> +#include <linux/suspend.h> #include <linux/mmc/host.h>
@@ -85,6 +86,9 @@ struct mmc_host *mmc_alloc_host(int extra, struct device *dev)init_waitqueue_head (&host->wq);INIT_DELAYED_WORK (&host->detect, mmc_rescan);INIT_DELAYED_WORK_DEFERRABLE (&host->disable, mmc_host_deeper_disable); +#ifdef CONFIG_PM + host->pm_notify.notifier_call = mmc_pm_notify; +#endif /* * By default, hosts do not support SGIO or large requests.
@@ -133,6 +137,7 @@ int mmc_add_host(struct mmc_host *host)#endif mmc_start_host (host); +register_pm_notifier (&host->pm_notify);return 0 ; }
@@ -149,6 +154,7 @@ EXPORT_SYMBOL(mmc_add_host);*/ void mmc_remove_host (struct mmc_host *host) { +unregister_pm_notifier (&host->pm_notify);mmc_stop_host (host);#ifdef CONFIG_DEBUG_FS
drivers/mmc/host/tmio_mmc.c +4 -3
@@ -164,6 +164,7 @@ tmio_mmc_start_command(struct tmio_mmc_host *host, struct mmc_command *cmd)static void tmio_mmc_pio_irq (struct tmio_mmc_host *host) {struct mmc_data *data = host->data; +void *sg_virt;unsigned short *buf;unsigned int count;unsigned long flags;
@@ -173,8 +174,8 @@ static void tmio_mmc_pio_irq(struct tmio_mmc_host *host)return ; } - buf = (unsigned short *)(tmio_mmc_kmap_atomic (host, &flags) + - host->sg_off); + sg_virt =tmio_mmc_kmap_atomic (host->sg_ptr, &flags); + buf = (unsigned short *)(sg_virt + host->sg_off); count = host->sg_ptr->length - host->sg_off;if (count > data->blksz)
@@ -191,7 +192,7 @@ static void tmio_mmc_pio_irq(struct tmio_mmc_host *host) host->sg_off += count; -tmio_mmc_kunmap_atomic (host, &flags); +tmio_mmc_kunmap_atomic (sg_virt, &flags);if (host->sg_off == host->sg_ptr->length)tmio_mmc_next_sg (host);
drivers/mmc/host/tmio_mmc.h +4 -9
@@ -82,10 +82,7 @@#define ack_mmc_irqs (host, i) \ do { \ - u32 mask;\ - mask = sd_ctrl_read32((host), CTL_STATUS); \ - mask &= ~((i) & TMIO_MASK_IRQ); \ - sd_ctrl_write32((host), CTL_STATUS, mask); \ + sd_ctrl_write32((host), CTL_STATUS, ~(i)); \ } while (0)
@@ -177,19 +174,17 @@ static inline int tmio_mmc_next_sg(struct tmio_mmc_host *host)return --host->sg_len; } -static inline char *tmio_mmc_kmap_atomic (struct tmio_mmc_host *host, +static inline char *tmio_mmc_kmap_atomic (struct scatterlist *sg,unsigned long *flags) { -struct scatterlist *sg = host->sg_ptr; -local_irq_save (*flags);return kmap_atomic (sg_page (sg),KM_BIO_SRC_IRQ ) + sg->offset; } -static inline void tmio_mmc_kunmap_atomic (struct tmio_mmc_host *host, +static inline void tmio_mmc_kunmap_atomic (void *virt,unsigned long *flags) { -kunmap_atomic (sg_page (host->sg_ptr),KM_BIO_SRC_IRQ ); +kunmap_atomic (virt,KM_BIO_SRC_IRQ );local_irq_restore (*flags); }
drivers/net/wireless/ath/ath5k/base.c +4 -0
@@ -1318,6 +1318,10 @@ ath5k_txbuf_setup(struct ath5k_softc *sc, struct ath5k_buf *bf, PCI_DMA_TODEVICE); rate =ieee80211_get_tx_rate (sc->hw, info); +if (!rate) { + ret = -EINVAL ; + goto err_unmap; + }if (info->flags &IEEE80211_TX_CTL_NO_ACK ) flags |=AR5K_TXDESC_NOACK ;
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +1 -1
@@ -768,7 +768,7 @@ static bool ar9300_uncompress_block(struct ath_hw *ah, length = block[it+1 ]; length &=0xff ; -if (length >0 && spot >=0 && spot+length < mdataSize) { +if (length >0 && spot >=0 && spot+length <= mdataSize) { ath_print(common, ATH_DBG_EEPROM, "Restore at %d: spot=%d " "offset=%d length=%d\n",
drivers/net/wireless/ath/ath9k/eeprom.h +1 -1
@@ -62,7 +62,7 @@#define SD_NO_CTL 0xE0#define NO_CTL 0xff -#define CTL_MODE_M 7 +#define CTL_MODE_M 0xf#define CTL_11A 0#define CTL_11B 1#define CTL_11G 2
drivers/net/wireless/ath/ath9k/htc_drv_main.c +2 -1
@@ -370,7 +370,8 @@ static int ath9k_htc_init_rate(struct ath9k_htc_priv *priv, priv->tgt_rate.rates.ht_rates.rs_nrates = j; caps =WLAN_RC_HT_FLAG ; -if (sta->ht_cap.cap &IEEE80211_HT_CAP_SUP_WIDTH_20_40 ) +if ((sta->ht_cap.cap &IEEE80211_HT_CAP_SUP_WIDTH_20_40 ) && + (conf_is_ht40 (&priv->hw->conf))) caps |=WLAN_RC_40_FLAG ;if (sta->ht_cap.cap &IEEE80211_HT_CAP_SGI_40 ) caps |=WLAN_RC_SGI_FLAG ;
drivers/net/wireless/ath/regd.h +0 -1
@@ -31,7 +31,6 @@ enum ctl_group {#define NO_CTL 0xff#define SD_NO_CTL 0xE0#define NO_CTL 0xff -#define CTL_MODE_M 7#define CTL_11A 0#define CTL_11B 1#define CTL_11G 2
drivers/net/wireless/p54/txrx.c +1 -1
@@ -444,7 +444,7 @@ static void p54_rx_frame_sent(struct p54_common *priv, struct sk_buff *skb) }if (!(info->flags &IEEE80211_TX_CTL_NO_ACK ) && - (!payload->status)) + !(payload->status &P54_TX_FAILED )) info->flags |=IEEE80211_TX_STAT_ACK ;if (payload->status &P54_TX_PSM_CANCELLED ) info->flags |=IEEE80211_TX_STAT_TX_FILTERED ;
drivers/oprofile/buffer_sync.c +14 -13
@@ -141,16 +141,6 @@ static struct notifier_block module_load_nb = { .notifier_call = module_load_notify, }; - -static void end_sync (void ) -{ -end_cpu_work (); -/* make sure we don't leak task structs */ -process_task_mortuary (); -process_task_mortuary (); -} - -int sync_start (void ) {int err;
@@ -158,7 +148,7 @@ int sync_start(void)if (!zalloc_cpumask_var (&marked_cpus,GFP_KERNEL ))return -ENOMEM ; -start_cpu_work (); +mutex_lock (&buffer_mutex); err =task_handoff_register (&task_free_nb);if (err)
@@ -173,7 +163,10 @@ int sync_start(void)if (err) goto out4; +start_cpu_work (); + out: +mutex_unlock (&buffer_mutex);return err; out4:profile_event_unregister (PROFILE_MUNMAP , &munmap_nb);
@@ -182,7 +175,6 @@ out3: out2:task_handoff_unregister (&task_free_nb); out1: -end_sync ();free_cpumask_var (marked_cpus); goto out; }
@@ -190,11 +182,20 @@ out1:void sync_stop (void ) { +/* flush buffers */ +mutex_lock (&buffer_mutex); +end_cpu_work ();unregister_module_notifier (&module_load_nb);profile_event_unregister (PROFILE_MUNMAP , &munmap_nb);profile_event_unregister (PROFILE_TASK_EXIT , &task_exit_nb);task_handoff_unregister (&task_free_nb); -end_sync (); +mutex_unlock (&buffer_mutex); +flush_scheduled_work (); + +/* make sure we don't leak task structs */ +process_task_mortuary (); +process_task_mortuary (); +free_cpumask_var (marked_cpus); }
drivers/oprofile/cpu_buffer.c +0 -2
@@ -120,8 +120,6 @@ void end_cpu_work(void)cancel_delayed_work (&b->work); } - -flush_scheduled_work (); }/*
drivers/pci/msi.c +26 -1
@@ -196,6 +196,9 @@ void unmask_msi_irq(unsigned int irq)void read_msi_msg_desc (struct irq_desc *desc,struct msi_msg *msg) {struct msi_desc *entry =get_irq_desc_msi (desc); + +BUG_ON (entry->dev->current_state !=PCI_D0 ); +if (entry->msi_attrib.is_msix) {void __iomem *base = entry->mask_base + entry->msi_attrib.entry_nr *PCI_MSIX_ENTRY_SIZE ;
@@ -229,10 +232,32 @@ void read_msi_msg(unsigned int irq, struct msi_msg *msg)read_msi_msg_desc (desc, msg); } +void get_cached_msi_msg_desc (struct irq_desc *desc,struct msi_msg *msg) +{ +struct msi_desc *entry =get_irq_desc_msi (desc); + +/* Assert that the cache is valid, assuming that +* valid messages are not all-zeroes. */ +BUG_ON (!(entry->msg.address_hi | entry->msg.address_lo | + entry->msg.data)); + + *msg = entry->msg; +} + +void get_cached_msi_msg (unsigned int irq,struct msi_msg *msg) +{ +struct irq_desc *desc =irq_to_desc (irq); + +get_cached_msi_msg_desc (desc, msg); +} +void write_msi_msg_desc (struct irq_desc *desc,struct msi_msg *msg) {struct msi_desc *entry =get_irq_desc_msi (desc); -if (entry->msi_attrib.is_msix) { + +if (entry->dev->current_state !=PCI_D0 ) { +/* Don't touch the hardware now */ + }else if (entry->msi_attrib.is_msix) {void __iomem *base; base = entry->mask_base + entry->msi_attrib.entry_nr *PCI_MSIX_ENTRY_SIZE ;
drivers/power/apm_power.c +1 -0
@@ -233,6 +233,7 @@ static int calculate_capacity(enum apm_source source) empty_design_prop =POWER_SUPPLY_PROP_ENERGY_EMPTY_DESIGN ; now_prop =POWER_SUPPLY_PROP_ENERGY_NOW ; avg_prop =POWER_SUPPLY_PROP_ENERGY_AVG ; +break ;case SOURCE_VOLTAGE : full_prop =POWER_SUPPLY_PROP_VOLTAGE_MAX ; empty_prop =POWER_SUPPLY_PROP_VOLTAGE_MIN ;
drivers/serial/bfin_sport_uart.c +1 -1
@@ -121,7 +121,7 @@ static int sport_uart_setup(struct sport_uart_port *up, int size, int baud_rate)unsigned int sclk =get_sclk ();/* Set TCR1 and TCR2, TFSR is not enabled for uart */ -SPORT_PUT_TCR1 (up, (ITFS |TLSBIT |ITCLK )); +SPORT_PUT_TCR1 (up, (LATFS |ITFS |TFSR |TLSBIT |ITCLK ));SPORT_PUT_TCR2 (up, size +1 );pr_debug ("%s TCR1:%x, TCR2:%x\n" , __func__,SPORT_GET_TCR1 (up),SPORT_GET_TCR2 (up));
drivers/staging/hv/netvsc_drv.c +3 -0
@@ -348,6 +348,9 @@ static const struct net_device_ops device_ops = { .ndo_stop = netvsc_close, .ndo_start_xmit = netvsc_start_xmit, .ndo_set_multicast_list = netvsc_set_multicast_list, + .ndo_change_mtu = eth_change_mtu, + .ndo_validate_addr = eth_validate_addr, + .ndo_set_mac_address = eth_mac_addr, };static int netvsc_probe (struct device *device)
drivers/staging/hv/ring_buffer.c +1 -2
@@ -192,8 +192,7 @@ Description:static inline u64 GetRingBufferIndices (RING_BUFFER_INFO *RingInfo) { -return ((u64 )RingInfo->RingBuffer->WriteIndex <<32 ) - || RingInfo->RingBuffer->ReadIndex; +return (u64 )RingInfo->RingBuffer->WriteIndex <<32 ; }
drivers/staging/hv/storvsc_api.h +2 -2
@@ -28,10 +28,10 @@#include "vmbus_api.h" /* Defines */ -#define STORVSC_RING_BUFFER_SIZE (10*PAGE_SIZE) +#define STORVSC_RING_BUFFER_SIZE (20*PAGE_SIZE)#define BLKVSC_RING_BUFFER_SIZE (20*PAGE_SIZE) -#define STORVSC_MAX_IO_REQUESTS 64 +#define STORVSC_MAX_IO_REQUESTS 128/* * In Hyper-V, each port/path/target maps to 1 scsi host adapter. In
drivers/staging/hv/storvsc_drv.c +7 -4
@@ -526,7 +526,7 @@ static unsigned int copy_to_bounce_buffer(struct scatterlist *orig_sgl,/* ASSERT(orig_sgl[i].offset + orig_sgl[i].length <= PAGE_SIZE); */ -if (j ==0 ) +if (bounce_addr ==0 ) bounce_addr = (unsigned long )kmap_atomic (sg_page ((&bounce_sgl[j])),KM_IRQ0 );while (srclen) {
@@ -587,7 +587,7 @@ static unsigned int copy_from_bounce_buffer(struct scatterlist *orig_sgl, destlen = orig_sgl[i].length;/* ASSERT(orig_sgl[i].offset + orig_sgl[i].length <= PAGE_SIZE); */ -if (j ==0 ) +if (bounce_addr ==0 ) bounce_addr = (unsigned long )kmap_atomic (sg_page ((&bounce_sgl[j])),KM_IRQ0 );while (destlen) {
@@ -646,6 +646,7 @@ static int storvsc_queuecommand(struct scsi_cmnd *scmnd,unsigned int request_size =0 ;int i;struct scatterlist *sgl; +unsigned int sg_count =0 ;DPRINT_ENTER (STORVSC_DRV );
@@ -730,6 +731,7 @@ static int storvsc_queuecommand(struct scsi_cmnd *scmnd, request->DataBuffer.Length =scsi_bufflen (scmnd);if (scsi_sg_count (scmnd)) { sgl = (struct scatterlist *)scsi_sglist (scmnd); + sg_count =scsi_sg_count (scmnd);/* check if we need to bounce the sgl */ if (do_bounce_buffer (sgl,scsi_sg_count (scmnd)) !=-1 ) {
@@ -764,15 +766,16 @@ static int storvsc_queuecommand(struct scsi_cmnd *scmnd, scsi_sg_count(scmnd)); sgl = cmd_request->bounce_sgl; + sg_count = cmd_request->bounce_sgl_count; } request->DataBuffer.Offset = sgl[0 ].offset; -for (i =0 ; i <scsi_sg_count (scmnd); i++) { +for (i =0 ; i < sg_count; i++) {DPRINT_DBG (STORVSC_DRV ,"sgl[%d] len %d offset %d\n" , i, sgl[i].length, sgl[i].offset); request->DataBuffer.PfnArray[i] = -page_to_pfn (sg_page ((&sgl[i]))); +page_to_pfn (sg_page ((&sgl[i]))); } }else if (scsi_sglist (scmnd)) {/* ASSERT(scsi_bufflen(scmnd) <= PAGE_SIZE); */
drivers/staging/rt2860/usb_main_dev.c +39 -2
87 lines not on this page · raw message
drivers/usb/atm/cxacru.c +22 -2
@@ -1128,6 +1128,7 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance, {struct cxacru_data *instance;struct usb_device *usb_dev =interface_to_usbdev (intf); +struct usb_host_endpoint *cmd_ep = usb_dev->ep_in[CXACRU_EP_CMD ];int ret;/* instance init */
@@ -1172,15 +1173,34 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance, goto fail; } -usb_fill_int_urb (instance->rcv_urb, +if (!cmd_ep) { +dbg ("cxacru_bind: no command endpoint" ); + ret = -ENODEV ; + goto fail; + } + +if ((cmd_ep->desc.bmAttributes &USB_ENDPOINT_XFERTYPE_MASK ) + ==USB_ENDPOINT_XFER_INT ) { +usb_fill_int_urb (instance->rcv_urb, usb_dev,usb_rcvintpipe (usb_dev,CXACRU_EP_CMD ), instance->rcv_buf,PAGE_SIZE , cxacru_blocking_completion, &instance->rcv_done,1 ); -usb_fill_int_urb (instance->snd_urb, +usb_fill_int_urb (instance->snd_urb, usb_dev,usb_sndintpipe (usb_dev,CXACRU_EP_CMD ), instance->snd_buf,PAGE_SIZE , cxacru_blocking_completion, &instance->snd_done,4 ); + }else { +usb_fill_bulk_urb (instance->rcv_urb, + usb_dev,usb_rcvbulkpipe (usb_dev,CXACRU_EP_CMD ), + instance->rcv_buf,PAGE_SIZE , + cxacru_blocking_completion, &instance->rcv_done); + +usb_fill_bulk_urb (instance->snd_urb, + usb_dev,usb_sndbulkpipe (usb_dev,CXACRU_EP_CMD ), + instance->snd_buf,PAGE_SIZE , + cxacru_blocking_completion, &instance->snd_done); + }mutex_init (&instance->cm_serialize);
drivers/usb/class/cdc-acm.c +22 -1
@@ -971,7 +971,8 @@ static int acm_probe(struct usb_interface *intf, }if (!buflen) { -if (intf->cur_altsetting->endpoint->extralen && +if (intf->cur_altsetting->endpoint && + intf->cur_altsetting->endpoint->extralen && intf->cur_altsetting->endpoint->extra) {dev_dbg (&intf->dev,"Seeking extra descriptors on endpoint\n" );
@@ -1487,6 +1488,11 @@ static int acm_reset_resume(struct usb_interface *intf) USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM, \ USB_CDC_ACM_PROTO_VENDOR) +#define SAMSUNG_PCSUITE_ACM_INFO (x) \ + USB_DEVICE_AND_INTERFACE_INFO(0x04e7, x, \ + USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM, \ + USB_CDC_ACM_PROTO_VENDOR) +/* * USB driver structure. */
@@ -1597,6 +1603,17 @@ static const struct usb_device_id acm_ids[] = { { NOKIA_PCSUITE_ACM_INFO(0x0108), }, /* Nokia 5320 XpressMusic 2G */ { NOKIA_PCSUITE_ACM_INFO(0x01f5), }, /* Nokia N97, RM-505 */ { NOKIA_PCSUITE_ACM_INFO(0x02e3), }, /* Nokia 5230, RM-588 */ + { NOKIA_PCSUITE_ACM_INFO(0x0178), }, /* Nokia E63 */ + { NOKIA_PCSUITE_ACM_INFO(0x010e), }, /* Nokia E75 */ + { NOKIA_PCSUITE_ACM_INFO(0x02d9), }, /* Nokia 6760 Slide */ + { NOKIA_PCSUITE_ACM_INFO(0x01d0), }, /* Nokia E52 */ + { NOKIA_PCSUITE_ACM_INFO(0x0223), }, /* Nokia E72 */ + { NOKIA_PCSUITE_ACM_INFO(0x0275), }, /* Nokia X6 */ + { NOKIA_PCSUITE_ACM_INFO(0x026c), }, /* Nokia N97 Mini */ + { NOKIA_PCSUITE_ACM_INFO(0x0154), }, /* Nokia 5800 XpressMusic */ + { NOKIA_PCSUITE_ACM_INFO(0x04ce), }, /* Nokia E90 */ + { NOKIA_PCSUITE_ACM_INFO(0x01d4), }, /* Nokia E55 */ + { SAMSUNG_PCSUITE_ACM_INFO(0x6651), }, /* Samsung GTi8510 (INNOV8) *//* NOTE: non-Nokia COMM/ACM/0xff is likely MSFT RNDIS... NOT a modem! */
@@ -1605,6 +1622,10 @@ static const struct usb_device_id acm_ids[] = { .driver_info = NOT_A_MODEM, }, +/* control interfaces without any protocol set */ + {USB_INTERFACE_INFO (USB_CLASS_COMM ,USB_CDC_SUBCLASS_ACM , + USB_CDC_PROTO_NONE) }, +/* control interfaces with various AT-command sets */ { USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM, USB_CDC_ACM_PROTO_AT_V25TER) },
drivers/usb/core/message.c +11 -11
@@ -1724,6 +1724,15 @@ free_interfaces:if (ret) goto free_interfaces; +/* if it's already configured, clear out old state first. +* getting rid of old interfaces means unbinding their drivers. +*/ +if (dev->state !=USB_STATE_ADDRESS ) +usb_disable_device (dev,1 );/* Skip ep0 */ + +/* Get rid of pending async Set-Config requests for this device */ +cancel_async_set_config (dev); +/* Make sure we have bandwidth (and available HCD resources) for this * configuration. Remove endpoints from the schedule if we're dropping * this configuration to set configuration 0. After this point, the
@@ -1733,20 +1742,11 @@ free_interfaces:mutex_lock (&hcd->bandwidth_mutex); ret =usb_hcd_alloc_bandwidth (dev, cp,NULL ,NULL );if (ret <0 ) { -usb_autosuspend_device (dev);mutex_unlock (&hcd->bandwidth_mutex); +usb_autosuspend_device (dev); goto free_interfaces; } -/* if it's already configured, clear out old state first. -* getting rid of old interfaces means unbinding their drivers. -*/ -if (dev->state !=USB_STATE_ADDRESS ) -usb_disable_device (dev,1 );/* Skip ep0 */ - -/* Get rid of pending async Set-Config requests for this device */ -cancel_async_set_config (dev); - ret =usb_control_msg (dev,usb_sndctrlpipe (dev,0 ),USB_REQ_SET_CONFIGURATION ,0 , configuration,0 ,NULL ,0 ,USB_CTRL_SET_TIMEOUT );
@@ -1761,8 +1761,8 @@ free_interfaces:if (!cp) {usb_set_device_state (dev,USB_STATE_ADDRESS );usb_hcd_alloc_bandwidth (dev,NULL ,NULL ,NULL ); -usb_autosuspend_device (dev);mutex_unlock (&hcd->bandwidth_mutex); +usb_autosuspend_device (dev); goto free_interfaces; }mutex_unlock (&hcd->bandwidth_mutex);
drivers/usb/gadget/rndis.c +7 -3
@@ -292,9 +292,13 @@ gen_ndis_query_resp (int configNr, u32 OID, u8 *buf, unsigned buf_len,/* mandatory */ case OID_GEN_VENDOR_DESCRIPTION :pr_debug ("%s: OID_GEN_VENDOR_DESCRIPTION\n" , __func__); - length =strlen (rndis_per_dev_params [configNr].vendorDescr); -memcpy (outbuf, - rndis_per_dev_params [configNr].vendorDescr, length); +if ( rndis_per_dev_params [configNr].vendorDescr ) { + length =strlen (rndis_per_dev_params [configNr].vendorDescr); +memcpy (outbuf, + rndis_per_dev_params [configNr].vendorDescr, length); + }else { + outbuf[0 ] =0 ; + } retval =0 ;break ;
drivers/usb/host/ehci-ppc-of.c +7 -5
@@ -192,17 +192,19 @@ ehci_hcd_ppc_of_probe(struct of_device *op, const struct of_device_id *match) } rv =usb_add_hcd (hcd, irq,0 ); -if (rv ==0 ) -return 0 ; +if (rv) + goto err_ehci; + +return 0 ; +err_ehci: +if (ehci->has_amcc_usb23) +iounmap (ehci->ohci_hcctrl_reg);iounmap (hcd->regs); err_ioremap:irq_dispose_mapping (irq); err_irq:release_mem_region (hcd->rsrc_start, hcd->rsrc_len); - -if (ehci->has_amcc_usb23) -iounmap (ehci->ohci_hcctrl_reg); err_rmr:usb_put_hcd (hcd);
drivers/usb/serial/cp210x.c +6 -4
@@ -88,6 +88,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x8149) }, /* West Mountain Radio Computerized Battery Analyzer */ { USB_DEVICE(0x10C4, 0x814A) }, /* West Mountain Radio RIGblaster P&P */ { USB_DEVICE(0x10C4, 0x814B) }, /* West Mountain Radio RIGtalk */ + { USB_DEVICE(0x10C4, 0x8156) }, /* B&G H3000 link cable */ { USB_DEVICE(0x10C4, 0x815E) }, /* Helicomm IP-Link 1220-DVM */ { USB_DEVICE(0x10C4, 0x818B) }, /* AVIT Research USB to TTL */ { USB_DEVICE(0x10C4, 0x819F) }, /* MJS USB Toslink Switcher */
@@ -109,6 +110,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x83A8) }, /* Amber Wireless AMB2560 */ { USB_DEVICE(0x10C4, 0x8411) }, /* Kyocera GPS Module */ { USB_DEVICE(0x10C4, 0x846E) }, /* BEI USB Sensor Interface (VCP) */ + { USB_DEVICE(0x10C4, 0x8477) }, /* Balluff RFID */ { USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA61) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA71) }, /* Infinity GPS-MIC-1 Radio Monophone */
@@ -122,14 +124,14 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x1555, 0x0004) }, /* Owen AC4 USB-RS485 Converter */ { USB_DEVICE(0x166A, 0x0303) }, /* Clipsal 5500PCU C-Bus USB interface */ { USB_DEVICE(0x16D6, 0x0001) }, /* Jablotron serial interface */ - { USB_DEVICE(0x17F4, 0xAAAA) }, /* Wavesense Jazz blood glucose meter */ - { USB_DEVICE(0x1843, 0x0200) }, /* Vaisala USB Instrument Cable */ - { USB_DEVICE(0x18EF, 0xE00F) }, /* ELV USB-I2C-Interface */ - { USB_DEVICE(0x413C, 0x9500) }, /* DW700 GPS USB interface */ { USB_DEVICE(0x16DC, 0x0010) }, /* W-IE-NE-R Plein & Baus GmbH PL512 Power Supply */ { USB_DEVICE(0x16DC, 0x0011) }, /* W-IE-NE-R Plein & Baus GmbH RCM Remote Control for MARATON Power Supply */ { USB_DEVICE(0x16DC, 0x0012) }, /* W-IE-NE-R Plein & Baus GmbH MPOD Multi Channel Power Supply */ { USB_DEVICE(0x16DC, 0x0015) }, /* W-IE-NE-R Plein & Baus GmbH CML Control, Monitoring and Data Logger */ + { USB_DEVICE(0x17F4, 0xAAAA) }, /* Wavesense Jazz blood glucose meter */ + { USB_DEVICE(0x1843, 0x0200) }, /* Vaisala USB Instrument Cable */ + { USB_DEVICE(0x18EF, 0xE00F) }, /* ELV USB-I2C-Interface */ + { USB_DEVICE(0x413C, 0x9500) }, /* DW700 GPS USB interface */ { } /* Terminating Entry */ };
drivers/usb/serial/ftdi_sio.c +8 -0
@@ -753,6 +753,14 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, SEGWAY_RMP200_PID) }, { USB_DEVICE(IONICS_VID, IONICS_PLUGCOMPUTER_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, + { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_24_MASTER_WING_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_PC_WING_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_USB_DMX_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_MIDI_TIMECODE_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_MINI_WING_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_MAXI_WING_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_MEDIA_WING_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_WING_PID) }, { }, /* Optional parameter entry */ { } /* Terminating entry */ };
drivers/usb/serial/ftdi_sio_ids.h +12 -0
@@ -135,6 +135,18 @@#define FTDI_NDI_AURORA_SCU_PID 0xDA74/* NDI Aurora SCU */ /* +* ChamSys Limited (www.chamsys.co.uk) USB wing/interface product IDs +*/ +#define FTDI_CHAMSYS_24_MASTER_WING_PID 0xDAF8 +#define FTDI_CHAMSYS_PC_WING_PID 0xDAF9 +#define FTDI_CHAMSYS_USB_DMX_PID 0xDAFA +#define FTDI_CHAMSYS_MIDI_TIMECODE_PID 0xDAFB +#define FTDI_CHAMSYS_MINI_WING_PID 0xDAFC +#define FTDI_CHAMSYS_MAXI_WING_PID 0xDAFD +#define FTDI_CHAMSYS_MEDIA_WING_PID 0xDAFE +#define FTDI_CHAMSYS_WING_PID 0xDAFF + +/* * Westrex International devices submitted by Cory Lee */ #define FTDI_WESTREX_MODEL_777_PID 0xDC00/* Model 777 */
drivers/usb/serial/mos7840.c +22 -10
@@ -119,16 +119,20 @@* by making a change here, in moschip_port_id_table, and in * moschip_id_table_combined */ -#define USB_VENDOR_ID_BANDB 0x0856 -#define BANDB_DEVICE_ID_USO9ML2_2 0xAC22 -#define BANDB_DEVICE_ID_USO9ML2_4 0xAC24 -#define BANDB_DEVICE_ID_US9ML2_2 0xAC29 -#define BANDB_DEVICE_ID_US9ML2_4 0xAC30 -#define BANDB_DEVICE_ID_USPTL4_2 0xAC31 -#define BANDB_DEVICE_ID_USPTL4_4 0xAC32 -#define BANDB_DEVICE_ID_USOPTL4_2 0xAC42 -#define BANDB_DEVICE_ID_USOPTL4_4 0xAC44 -#define BANDB_DEVICE_ID_USOPTL2_4 0xAC24 +#define USB_VENDOR_ID_BANDB 0x0856 +#define BANDB_DEVICE_ID_USO9ML2_2 0xAC22 +#define BANDB_DEVICE_ID_USO9ML2_2P 0xBC00 +#define BANDB_DEVICE_ID_USO9ML2_4 0xAC24 +#define BANDB_DEVICE_ID_USO9ML2_4P 0xBC01 +#define BANDB_DEVICE_ID_US9ML2_2 0xAC29 +#define BANDB_DEVICE_ID_US9ML2_4 0xAC30 +#define BANDB_DEVICE_ID_USPTL4_2 0xAC31 +#define BANDB_DEVICE_ID_USPTL4_4 0xAC32 +#define BANDB_DEVICE_ID_USOPTL4_2 0xAC42 +#define BANDB_DEVICE_ID_USOPTL4_2P 0xBC02 +#define BANDB_DEVICE_ID_USOPTL4_4 0xAC44 +#define BANDB_DEVICE_ID_USOPTL4_4P 0xBC03 +#define BANDB_DEVICE_ID_USOPTL2_4 0xAC24/* This driver also supports * ATEN UC2324 device using Moschip MCS7840
@@ -184,13 +188,17 @@ static const struct usb_device_id moschip_port_id_table[] = { {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7840)}, {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7820)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_2)}, + {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_2P)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_4)}, + {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_4P)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_US9ML2_2)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_US9ML2_4)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USPTL4_2)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USPTL4_4)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USOPTL4_2)}, + {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USOPTL4_2P)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USOPTL4_4)}, + {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USOPTL4_4P)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USOPTL2_4)}, {USB_DEVICE(USB_VENDOR_ID_ATENINTL, ATENINTL_DEVICE_ID_UC2324)}, {USB_DEVICE(USB_VENDOR_ID_ATENINTL, ATENINTL_DEVICE_ID_UC2322)},
@@ -201,13 +209,17 @@ static const struct usb_device_id moschip_id_table_combined[] __devinitconst = { {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7840)}, {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7820)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_2)}, + {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_2P)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_4)}, + {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_4P)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_US9ML2_2)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_US9ML2_4)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USPTL4_2)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USPTL4_4)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USOPTL4_2)}, + {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USOPTL4_2P)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USOPTL4_4)}, + {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USOPTL4_4P)}, {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USOPTL2_4)}, {USB_DEVICE(USB_VENDOR_ID_ATENINTL, ATENINTL_DEVICE_ID_UC2324)}, {USB_DEVICE(USB_VENDOR_ID_ATENINTL, ATENINTL_DEVICE_ID_UC2322)},
drivers/xen/events.c +16 -5
@@ -107,6 +107,7 @@ static inline unsigned long *cpu_evtchn_mask(int cpu)#define VALID_EVTCHN (chn) ((chn) != 0)static struct irq_chip xen_dynamic_chip; +static struct irq_chip xen_percpu_chip;/* Constructor for packed IRQ information. */ static struct irq_info mk_unbound_info (void )
@@ -363,7 +364,7 @@ int bind_evtchn_to_irq(unsigned int evtchn) irq =find_unbound_irq ();set_irq_chip_and_handler_name (irq, &xen_dynamic_chip, - handle_level_irq,"event" ); + handle_edge_irq,"event" ); evtchn_to_irq[evtchn] = irq; irq_info[irq] =mk_evtchn_info (evtchn);
@@ -389,8 +390,8 @@ static int bind_ipi_to_irq(unsigned int ipi, unsigned int cpu)if (irq <0 ) goto out; -set_irq_chip_and_handler_name (irq, &xen_dynamic_chip, - handle_level_irq,"ipi" ); +set_irq_chip_and_handler_name (irq, &xen_percpu_chip, + handle_percpu_irq,"ipi" ); bind_ipi.vcpu = cpu; if (HYPERVISOR_event_channel_op(EVTCHNOP_bind_ipi,
@@ -430,8 +431,8 @@ static int bind_virq_to_irq(unsigned int virq, unsigned int cpu) irq =find_unbound_irq (); -set_irq_chip_and_handler_name (irq, &xen_dynamic_chip, - handle_level_irq,"virq" ); +set_irq_chip_and_handler_name (irq, &xen_percpu_chip, + handle_percpu_irq,"virq" ); evtchn_to_irq[evtchn] = irq; irq_info[irq] =mk_virq_info (evtchn, virq);
@@ -934,6 +935,16 @@ static struct irq_chip xen_dynamic_chip __read_mostly = { .retrigger = retrigger_dynirq, }; +static struct irq_chip en_percpu_chip__read_mostly = { + .name ="xen-percpu" , + + .disable = disable_dynirq, + .mask = disable_dynirq, + .unmask = enable_dynirq, + + .ack = ack_dynirq, +}; +void __init xen_init_IRQ (void ) {int i;
fs/binfmt_misc.c +1 -1
@@ -723,7 +723,7 @@ static int __init init_misc_binfmt(void) {int err =register_filesystem (&bm_fs_type);if (!err) { - err =register_binfmt (&misc_format); + err =insert_binfmt (&misc_format);if (err)unregister_filesystem (&bm_fs_type); }
fs/cifs/connect.c +3 -3
@@ -1647,9 +1647,6 @@ cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb_vol *volume_info)if (ses) {cFYI (1 ,"Existing smb sess found (status=%d)" , ses->status); -/* existing SMB ses has a server reference already */ -cifs_put_tcp_session (server); -mutex_lock (&ses->session_mutex); rc =cifs_negotiate_protocol (xid, ses);if (rc) {
@@ -1672,6 +1669,9 @@ cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb_vol *volume_info) } }mutex_unlock (&ses->session_mutex); + +/* existing SMB ses has a server reference already */ +cifs_put_tcp_session (server);FreeXid (xid);return ses; }
fs/direct-io.c +16 -14
@@ -218,7 +218,7 @@ static struct page *dio_get_page(struct dio *dio)* filesystems can use it to hold additional state between get_block calls and * dio_complete. */ -static int dio_complete (struct dio *dio,loff_t offset,int ret) +static int dio_complete (struct dio *dio,loff_t offset,int ret,bool is_async) {ssize_t transferred =0 ;
@@ -239,14 +239,6 @@ static int dio_complete(struct dio *dio, loff_t offset, int ret) transferred = dio->i_size - offset; } -if (dio->end_io && dio->result) - dio->end_io (dio->iocb, offset, transferred, - dio->map_bh.b_private); - -if (dio->flags &DIO_LOCKING ) -/* lockdep: non-owner release */ -up_read_non_owner (&dio->inode->i_alloc_sem); -if (ret ==0 ) ret = dio->page_errors;if (ret ==0 )
@@ -254,6 +246,17 @@ static int dio_complete(struct dio *dio, loff_t offset, int ret)if (ret ==0 ) ret = transferred; +if (dio->end_io && dio->result) { + dio->end_io (dio->iocb, offset, transferred, + dio->map_bh.b_private, ret, is_async); + }else if (is_async) { +aio_complete (dio->iocb, ret,0 ); + } + +if (dio->flags &DIO_LOCKING ) +/* lockdep: non-owner release */ +up_read_non_owner (&dio->inode->i_alloc_sem); +return ret; }
@@ -277,8 +280,7 @@ static void dio_bio_end_aio(struct bio *bio, int error)spin_unlock_irqrestore (&dio->bio_lock, flags);if (remaining ==0 ) { -int ret =dio_complete (dio, dio->iocb->ki_pos,0 ); -aio_complete (dio->iocb, ret,0 ); +dio_complete (dio, dio->iocb->ki_pos,0 , true);kfree (dio); } }
@@ -632,7 +634,7 @@ static int dio_send_cur_page(struct dio *dio)int ret =0 ;if (dio->bio) { -loff_t cur_offset = dio->block_in_file << dio->blkbits; +loff_t cur_offset = dio->cur_page_fs_offset;loff_t bio_next_offset = dio->logical_offset_in_bio + dio->bio->bi_size;
@@ -657,7 +659,7 @@ static int dio_send_cur_page(struct dio *dio)* Submit now if the underlying fs is about to perform a * metadata read */ -if (dio->boundary) + else if (dio->boundary) dio_bio_submit(dio); }
@@ -1126,7 +1128,7 @@ direct_io_worker(int rw, struct kiocb *iocb, struct inode *inode,spin_unlock_irqrestore (&dio->bio_lock, flags);if (ret2 ==0 ) { - ret =dio_complete (dio, offset, ret); + ret =dio_complete (dio, offset, ret, false);kfree (dio); }else BUG_ON (ret != -EIOCBQUEUED );
fs/ext4/ext4.h +3 -1
@@ -167,13 +167,15 @@ struct mpage_da_data { };#define EXT4_IO_UNWRITTEN 0x1typedef struct ext4_io_end { -struct list_head list;/* per-file finished AIO list */ +struct list_head list;/* per-file finished IO list */ struct inode *inode;/* file being written to */ unsigned int flag;/* unwritten or not */ struct page *page;/* page struct for buffer write */ loff_t offset;/* offset in the file */ ssize_t size;/* size of the extent */ struct work_struct work;/* data work queue */ +struct kiocb *iocb;/* iocb struct for AIO */ +int result;/* error value for AIO */ }ext4_io_end_t ;/*
fs/ext4/inode.c +14 -3
@@ -3668,6 +3668,8 @@ static int ext4_end_io_nolock(ext4_io_end_t *io)return ret; } +if (io->iocb) +aio_complete (io->iocb, io->result,0 );/* clear the DIO AIO unwritten flag */ io->flag =0 ;return ret;
@@ -3767,6 +3769,8 @@ static ext4_io_end_t *ext4_init_io_end (struct inode *inode, gfp_t flags) io->offset =0 ; io->size =0 ; io->page =NULL ; + io->iocb =NULL ; + io->result =0 ;INIT_WORK (&io->work, ext4_end_io_work);INIT_LIST_HEAD (&io->list); }
@@ -3775,7 +3779,8 @@ static ext4_io_end_t *ext4_init_io_end (struct inode *inode, gfp_t flags) }static void ext4_end_io_dio (struct kiocb *iocb,loff_t offset, -ssize_t size,void *private) +ssize_t size,void *private,int ret, +bool is_async) {ext4_io_end_t *io_end = iocb->private;struct workqueue_struct *wq;
@@ -3784,7 +3789,7 @@ static void ext4_end_io_dio(struct kiocb *iocb, loff_t offset,/* if not async direct IO or dio with 0 bytes write, just return */ if (!io_end || !size) -return ; + goto out; ext_debug("ext4_end_io_dio(): io_end 0x%p" "for inode %lu, iocb 0x%p, offset %llu, size %llu\n",
@@ -3795,12 +3800,18 @@ static void ext4_end_io_dio(struct kiocb *iocb, loff_t offset,if (io_end->flag !=EXT4_IO_UNWRITTEN ){ext4_free_io_end (io_end); iocb->private =NULL ; +out: +if (is_async) +aio_complete (iocb, ret,0 );return ; } io_end->offset = offset; io_end->size = size; - io_end->flag =EXT4_IO_UNWRITTEN ; +if (is_async) { + io_end->iocb = iocb; + io_end->result = ret; + } wq =EXT4_SB (io_end->inode->i_sb)->dio_unwritten_wq;/* queue the work to convert unwritten extents to written */
fs/fuse/dev.c +12 -4
@@ -1552,6 +1552,14 @@ __acquires(&fc->lock) } } +static void end_queued_requests (struct fuse_conn *fc) +{ + fc->max_background =UINT_MAX ; +flush_bg_queue (fc); +end_requests (fc, &fc->pending); +end_requests (fc, &fc->processing); +} +/* * Abort all requests. *
@@ -1578,8 +1586,7 @@ void fuse_abort_conn(struct fuse_conn *fc) fc->connected =0 ; fc->blocked =0 ;end_io_requests (fc); -end_requests (fc, &fc->pending); -end_requests (fc, &fc->processing); +end_queued_requests (fc);wake_up_all (&fc->waitq);wake_up_all (&fc->blocked_waitq);kill_fasync (&fc->fasync,SIGIO ,POLL_IN );
@@ -1594,8 +1601,9 @@ int fuse_dev_release(struct inode *inode, struct file *file)if (fc) {spin_lock (&fc->lock); fc->connected =0 ; -end_requests (fc, &fc->pending); -end_requests (fc, &fc->processing); + fc->blocked =0 ; +end_queued_requests (fc); +wake_up_all (&fc->blocked_waitq);spin_unlock (&fc->lock);fuse_conn_put (fc); }
fs/minix/namei.c +1 -1
@@ -115,7 +115,7 @@ static int minix_mkdir(struct inode * dir, struct dentry *dentry, int mode)inode_inc_link_count (dir); - inode =minix_new_inode (dir, mode, &err); + inode =minix_new_inode (dir,S_IFDIR | mode, &err);if (!inode) goto out_dir;
fs/nfs/client.c +1 -1
@@ -274,7 +274,7 @@ static int nfs_sockaddr_match_ipaddr6(const struct sockaddr *sa1, sin1->sin6_scope_id != sin2->sin6_scope_id)return 0 ; -return ipv6_addr_equal (&sin1->sin6_addr, &sin1->sin6_addr); +return ipv6_addr_equal (&sin1->sin6_addr, &sin2->sin6_addr); }#else /* !defined(CONFIG_IPV6) && !defined(CONFIG_IPV6_MODULE) */ static int nfs_sockaddr_match_ipaddr6(const struct sockaddr *sa1,
fs/nfs/super.c +8 -0
@@ -431,7 +431,15 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf) goto out_err; error = server->nfs_client->rpc_ops->statfs (server, fh, &res); +if (unlikely (error == -ESTALE )) { +struct dentry *pd_dentry; + pd_dentry =dget_parent (dentry); +if (pd_dentry !=NULL ) { +nfs_zap_caches (pd_dentry->d_inode); +dput (pd_dentry); + } + }nfs_free_fattr (res.fattr);if (error <0 ) goto out_err;
fs/ocfs2/aops.c +6 -1
@@ -578,7 +578,9 @@ bail:static void ocfs2_dio_end_io (struct kiocb *iocb,loff_t offset,ssize_t bytes, -void *private) +void *private, +int ret, +bool is_async) {struct inode *inode = iocb->ki_filp->f_path.dentry->d_inode;int level;
@@ -592,6 +594,9 @@ static void ocfs2_dio_end_io(struct kiocb *iocb,if (!level)up_read (&inode->i_alloc_sem);ocfs2_rw_unlock (inode, level); + +if (is_async) +aio_complete (iocb, ret,0 ); }/*
fs/ocfs2/inode.c +5 -1
@@ -488,7 +488,11 @@ static int ocfs2_read_locked_inode(struct inode *inode, OCFS2_BH_IGNORE_CACHE); }else { status =ocfs2_read_blocks_sync (osb, args->fi_blkno,1 , &bh); -if (!status) +/* +* If buffer is in jbd, then its checksum may not have been +* computed as yet. +*/ +if (!status && !buffer_jbd (bh)) status =ocfs2_validate_inode_block (osb->sb, bh); }if (status <0 ) {
fs/sysfs/file.c +1 -1
@@ -340,7 +340,7 @@ static int sysfs_open_file(struct inode *inode, struct file *file)char *p; p =d_path (&file->f_path, last_sysfs_file,sizeof (last_sysfs_file)); -if (p) +if (!IS_ERR (p))memmove (last_sysfs_file, p,strlen (p) +1 );/* need attr_sd for attr and ops, its parent for kobj */
fs/xfs/linux-2.6/xfs_aops.c +21 -3
@@ -275,8 +275,11 @@ xfs_end_io(xfs_finish_ioend (ioend,0 );/* ensure we don't spin on blocked ioends */ delay (1 ); - }else + }else { +if (ioend->io_iocb) +aio_complete (ioend->io_iocb, ioend->io_result,0 );xfs_destroy_ioend (ioend); + } }/*
@@ -309,6 +312,8 @@ xfs_alloc_ioend(atomic_inc (&XFS_I (ioend->io_inode)->i_iocount); ioend->io_offset =0 ; ioend->io_size =0 ; + ioend->io_iocb =NULL ; + ioend->io_result =0 ;INIT_WORK (&ioend->io_work, xfs_end_io);return ioend;
@@ -1599,9 +1604,12 @@ xfs_end_io_direct(struct kiocb *iocb, loff_t offset, ssize_t size, - void *private) + void *private, + int ret, + bool is_async) { xfs_ioend_t *ioend = iocb->private; +bool complete_aio = is_async;/* * Non-NULL private data means we need to issue a transaction to
@@ -1627,7 +1635,14 @@ xfs_end_io_direct(if (ioend->io_type ==IO_READ ) {xfs_finish_ioend (ioend,0 ); }else if (private && size >0 ) { -xfs_finish_ioend (ioend,is_sync_kiocb (iocb)); +if (is_async) { + ioend->io_iocb = iocb; + ioend->io_result = ret; + complete_aio = false; +xfs_finish_ioend (ioend,0 ); + }else { +xfs_finish_ioend (ioend,1 ); + } }else {/* * A direct I/O write ioend starts it's life in unwritten
@@ -1645,6 +1660,9 @@ xfs_end_io_direct(* against double-freeing. */ iocb->private =NULL ; + +if (complete_aio) +aio_complete (iocb, ret,0 ); }STATIC ssize_t
fs/xfs/linux-2.6/xfs_aops.h +2 -0
@@ -37,6 +37,8 @@ typedef struct xfs_ioend {size_t io_size;/* size of the extent */ xfs_off_t io_offset;/* offset in the file */ struct work_struct io_work;/* xfsdatad work queue */ +struct kiocb *io_iocb; +int io_result; } xfs_ioend_t;extern const struct address_space_operations xfs_address_space_operations;
fs/xfs/xfs_ialloc.c +10 -6
@@ -1217,7 +1217,6 @@ xfs_imap_lookup(struct xfs_inobt_rec_incore rec;struct xfs_btree_cur *cur;struct xfs_buf *agbp; -xfs_agino_t startino;int error;int i;
@@ -1231,13 +1230,13 @@ xfs_imap_lookup( }/* -* derive and lookup the exact inode record for the given agino. If the -* record cannot be found, then it's an invalid inode number and we -* should abort. +* Lookup the inode record for the given agino. If the record cannot be +* found, then it's an invalid inode number and we should abort. Once +* we have a record, we need to ensure it contains the inode number +* we are looking up. */ cur =xfs_inobt_init_cursor (mp, tp, agbp, agno); - startino = agino & ~(XFS_IALLOC_INODES (mp) -1 ); - error =xfs_inobt_lookup (cur, startino,XFS_LOOKUP_EQ , &i); + error =xfs_inobt_lookup (cur, agino,XFS_LOOKUP_LE , &i);if (!error) {if (i) error =xfs_inobt_get_rec (cur, &rec, &i);
@@ -1250,6 +1249,11 @@ xfs_imap_lookup(if (error)return error; +/* check that the returned record contains the required inode */ +if (rec.ir_startino > agino || + rec.ir_startino +XFS_IALLOC_INODES (mp) <= agino) +return EINVAL ; +/* for untrusted inodes check it is allocated first */ if ((flags &XFS_IGET_UNTRUSTED ) && (rec.ir_free &XFS_INOBT_MASK (agino - rec.ir_startino)))
fs/xfs/xfs_inode.c +26 -23
110 lines not on this page · raw message
include/linux/compat.h +3 -0
@@ -360,5 +360,8 @@ extern ssize_t compat_rw_copy_check_uvector(int type, const struct compat_iovec __user *uvector, unsigned long nr_segs, unsigned long fast_segs, struct iovec *fast_pointer, struct iovec **ret_pointer); + +extern void __user *compat_alloc_user_space (unsigned long len); +#endif /* CONFIG_COMPAT */ #endif /* _LINUX_COMPAT_H */
include/linux/fs.h +2 -1
@@ -416,7 +416,8 @@ struct buffer_head;typedef int (get_block_t )(struct inode *inode,sector_t iblock,struct buffer_head *bh_result,int create);typedef void (dio_iodone_t )(struct kiocb *iocb,loff_t offset, -ssize_t bytes,void *private); +ssize_t bytes,void *private,int ret, +bool is_async);/* * Attribute flags. These should be or-ed together to figure out what
include/linux/libata.h +1 -0
@@ -335,6 +335,7 @@ enum {ATA_EHI_HOTPLUGGED = (1 <<0 ),/* could have been hotplugged */ ATA_EHI_NO_AUTOPSY = (1 <<2 ),/* no autopsy */ ATA_EHI_QUIET = (1 <<3 ),/* be quiet */ +ATA_EHI_NO_RECOVERY = (1 <<4 ),/* no recovery */ ATA_EHI_DID_SOFTRESET = (1 <<16 ),/* already soft-reset this port */ ATA_EHI_DID_HARDRESET = (1 << 17), /* already soft-reset this port */
include/linux/mmc/host.h +3 -0
@@ -124,6 +124,7 @@ struct mmc_host {unsigned int f_min;unsigned int f_max;u32 ocr_avail; +struct notifier_block pm_notify;#define MMC_VDD_165_195 0x00000080/* VDD voltage 1.65 - 1.95 */ #define MMC_VDD_20_21 0x00000100/* VDD voltage 2.0 ~ 2.1 */
@@ -183,6 +184,7 @@ struct mmc_host {/* Only used with MMC_CAP_DISABLE */ int enabled;/* host is enabled */ +int rescan_disable;/* disable card detection */ int nesting_cnt;/* "enable" nesting count */ int en_dis_recurs;/* detect recursion */ unsigned int disable_delay;/* disable delay in msecs */
@@ -257,6 +259,7 @@ int mmc_card_can_sleep(struct mmc_host *host);int mmc_host_enable (struct mmc_host *host);int mmc_host_disable (struct mmc_host *host);int mmc_host_lazy_disable (struct mmc_host *host); +int mmc_pm_notify (struct notifier_block *notify_block,unsigned long ,void *);static inline void mmc_set_disable_delay (struct mmc_host *host,unsigned int disable_delay)
include/linux/msi.h +2 -0
@@ -14,8 +14,10 @@ struct irq_desc;extern void mask_msi_irq (unsigned int irq);extern void unmask_msi_irq (unsigned int irq);extern void read_msi_msg_desc (struct irq_desc *desc,struct msi_msg *msg); +extern void get_cached_msi_msg_desc (struct irq_desc *desc,struct msi_msg *msg);extern void write_msi_msg_desc (struct irq_desc *desc,struct msi_msg *msg);extern void read_msi_msg (unsigned int irq,struct msi_msg *msg); +extern void get_cached_msi_msg (unsigned int irq,struct msi_msg *msg);extern void write_msi_msg (unsigned int irq,struct msi_msg *msg);struct msi_desc {
include/linux/swap.h +2 -1
@@ -19,6 +19,7 @@ struct bio;#define SWAP_FLAG_PREFER 0x8000/* set if swap priority specified */ #define SWAP_FLAG_PRIO_MASK 0x7fff#define SWAP_FLAG_PRIO_SHIFT 0 +#define SWAP_FLAG_DISCARD 0x10000/* discard swap cluster after use */ static inline int current_is_kswapd (void ) {
@@ -142,7 +143,7 @@ struct swap_extent {enum {SWP_USED = (1 <<0 ),/* is slot in swap_info[] used? */ SWP_WRITEOK = (1 <<1 ),/* ok to write to this swap? */ -SWP_DISCARDABLE = (1 <<2 ),/* blkdev supports discard */ +SWP_DISCARDABLE = (1 <<2 ),/* swapon+blkdev support discard */ SWP_DISCARDING = (1 <<3 ),/* now discarding a free cluster */ SWP_SOLIDSTATE = (1 <<4 ),/* blkdev seeks are cheap */ SWP_CONTINUED = (1 <<5 ),/* swap_map has count continuation */
kernel/compat.c +21 -0
@@ -1137,3 +1137,24 @@ compat_sys_sysinfo(struct compat_sysinfo __user *info)return 0 ; } + +/* +* Allocate user-space memory for the duration of a single system call, +* in order to marshall parameters inside a compat thunk. +*/ +void __user *compat_alloc_user_space (unsigned long len) +{ +void __user *ptr; + +/* If len would occupy more than half of the entire compat space... */ +if (unlikely (len > (((compat_uptr_t )~0 ) >>1 ))) +return NULL ; + + ptr =arch_compat_alloc_user_space (len); + +if (unlikely (!access_ok (VERIFY_WRITE , ptr, len))) +return NULL ; + +return ptr; +} +EXPORT_SYMBOL_GPL (compat_alloc_user_space);
kernel/gcov/fs.c +180 -64
95 lines not on this page · raw message
sound/pci/hda/patch_cirrus.c +50 -0
50 lines not on this page · raw message
sound/pci/hda/patch_conexant.c +58 -0
58 lines not on this page · raw message
sound/pci/hda/patch_nvhdmi.c +41 -20
61 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.