Linux 3.0.13
I'm announcing the release of the 3.0.13 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/Kconfig | 12 +++ arch/arm/configs/ezx_defconfig | 2 arch/arm/configs/imote2_defconfig | 2 arch/arm/configs/magician_defconfig | 2 arch/arm/configs/zeus_defconfig | 2 arch/arm/kernel/process.c | 3 arch/arm/mach-mxs/clock-mx28.c | 2 arch/arm/mach-omap2/Kconfig | 1 arch/arm/mach-omap2/smartreflex.c | 2 arch/arm/mach-pxa/balloon3.c | 2 arch/arm/mach-pxa/colibri-pxa320.c | 2 arch/arm/mach-pxa/gumstix.c | 2 arch/arm/mach-pxa/include/mach/palm27x.h | 4 - arch/arm/mach-pxa/palm27x.c | 4 - arch/arm/mach-pxa/palmtc.c | 2 arch/arm/mach-pxa/vpac270.c | 2 arch/s390/kernel/ptrace.c | 18 +++++ arch/x86/include/asm/timer.h | 23 +++++++ arch/x86/kernel/cpu/perf_event_intel_ds.c | 6 + arch/x86/kernel/mpparse.c | 2 arch/x86/kernel/reboot.c | 13 +++- arch/x86/mm/highmem_32.c | 2 arch/x86/oprofile/init.c | 7 +- drivers/crypto/mv_cesa.c | 12 ++- drivers/firmware/sigma.c | 81 ++++++++++++++++++------- drivers/gpu/drm/drm_crtc.c | 4 + drivers/gpu/drm/i915/i915_irq.c | 1 drivers/gpu/drm/i915/i915_reg.h | 4 + drivers/gpu/drm/i915/i915_suspend.c | 2 drivers/gpu/drm/i915/intel_display.c | 16 ++++- drivers/gpu/drm/radeon/evergreen.c | 7 +- drivers/gpu/drm/radeon/r100.c | 7 +- drivers/gpu/drm/radeon/radeon_atombios.c | 24 +++++++ drivers/gpu/drm/radeon/rs600.c | 7 +- drivers/gpu/drm/radeon/rv770.c | 7 +- drivers/gpu/drm/ttm/ttm_bo.c | 3 drivers/hid/hid-core.c | 2 drivers/hid/hid-ids.h | 2 drivers/hwmon/coretemp.c | 2 drivers/i2c/algos/i2c-algo-bit.c | 4 - drivers/mfd/twl-core.c | 2 drivers/net/wireless/p54/p54spi.c | 5 - drivers/net/wireless/rt2x00/rt2800lib.c | 2 drivers/oprofile/oprof.c | 29 +++++++-- drivers/oprofile/timer_int.c | 1 drivers/pci/hotplug/shpchp_core.c | 4 - drivers/pci/hotplug/shpchp_hpc.c | 4 - drivers/rtc/interface.c | 44 ++++++++++---- drivers/scsi/scsi_lib.c | 3 drivers/staging/comedi/comedi_fops.c | 94 ++++++++++++++++++++++-------- drivers/staging/usbip/vhci_rx.c | 10 +-- drivers/usb/host/ehci-sched.c | 22 ++++--- drivers/usb/host/whci/qset.c | 2 drivers/usb/host/xhci.c | 5 + drivers/usb/serial/ftdi_sio.c | 1 drivers/usb/serial/ftdi_sio_ids.h | 1 drivers/usb/serial/option.c | 4 + drivers/usb/storage/unusual_devs.h | 7 ++ drivers/video/via/share.h | 4 - fs/ecryptfs/crypto.c | 4 - fs/ecryptfs/file.c | 23 +++++++ fs/nfs/nfs4filelayout.c | 8 ++ fs/nfs/pnfs.c | 3 fs/xfs/linux-2.6/xfs_acl.c | 2 fs/xfs/linux-2.6/xfs_sync.c | 11 +++ fs/xfs/xfs_attr_leaf.c | 64 ++++++++++++-------- fs/xfs/xfs_inode.c | 21 ++++++ fs/xfs/xfs_inode.h | 1 include/drm/drm_mode.h | 2 include/drm/drm_pciids.h | 8 ++ include/linux/sigma.h | 13 +--- kernel/cgroup_freezer.c | 11 ++- kernel/hrtimer.c | 6 + kernel/irq/manage.c | 5 + kernel/irq/spurious.c | 4 - kernel/jump_label.c | 3 kernel/time/clockevents.c | 1 kernel/time/clocksource.c | 4 - kernel/time/tick-broadcast.c | 2 kernel/time/timekeeping.c | 4 + kernel/trace/trace_events.c | 1 kernel/trace/trace_events_filter.c | 6 - mm/hugetlb.c | 2 net/mac80211/agg-tx.c | 24 +++++++ net/sunrpc/xprtsock.c | 3 net/wireless/nl80211.c | 4 - net/wireless/reg.c | 49 ++++++++++----- sound/pci/lx6464es/lx_core.c | 16 +++-- sound/soc/codecs/wm8731.c | 1 sound/soc/codecs/wm8753.c | 3 sound/soc/fsl/fsl_ssi.c | 1 tools/perf/util/trace-event-parse.c | 2 93 files changed, 659 insertions(+), 201 deletions(-)
Alex Deucher (4):
drm/radeon/kms: fix up gpio i2c mask bits for r4xx for real drm/radeon/kms: fix up gpio i2c mask bits for r4xx drm/radeon/kms: add some new pci ids drm/radeon/kms: add some loop timeouts in pageflip code
Andiry Xu (1):
xHCI: fix bug in xhci_clear_command_ring()
Bart Westgeest (1):
staging: usbip: bugfix for deadlock
Ben Skeggs (1):
drm/ttm: request zeroed system memory pages for new TT buffer objects
Benjamin Tissoires (1):
HID: Correct General touch PID
Bernd Porr (1):
staging: comedi: fix oops for USB DAQ devices.
Bjorn Helgaas (2):
PCI hotplug: shpchp: don't blindly claim non-AMD 0x7450 device IDs x86/mpparse: Account for bus types other than ISA and PCI
Christoph Hellwig (3):
xfs: validate acl count
xfs: force buffer writeback before blocking on the ilock in inode reclaim
xfs: fix attr2 vs large data fork assert
Dan Carpenter (1):
USB: whci-hcd: fix endian conversion in qset_clear()
Daniel Drake (1):
viafb: correct sync polarity for OLPC DCON
Daniel Vetter (1):
drm/i915: Ivybridge still has fences!
Dirk Nehring (1):
usb: option: add Huawei E353 controlling interfaces
Edward Donovan (1):
genirq: fix regression in irqfixup, irqpoll
Eliad Peller (1):
nl80211: fix MAC address validation
Emmanuel Grumbach (1):
mac80211: fix race between the AGG SM and the Tx data path
Eric Anholt (2):
drm/i915: Turn on a required 3D clock gating bit on Sandybridge. drm/i915: Turn on another required clock gating bit on gen6.
Federico Vaga (2):
Staging: comedi: fix mmap_count
Staging: comedi: fix signal handling in read and write
Felipe Balbi (1):
ARM: OMAP: smartreflex: fix IRQ handling bug
Gertjan van Wingerde (1):
rt2x00: Fix efuse EEPROM reading on PPC32.
Gleb Natapov (1):
jump_label: jump_label_inc may return before the code is patched
Greg Kroah-Hartman (2):
revert "mfd: Fix twl4030 dependencies for audio codec" Linux 3.0.13
Hannes Reinecke (1):
SCSI: Silencing 'killing requests for dead queue'
Haojian Zhuang (1):
ARM: pxa: fix inconsistent CONFIG_USB_PXA27X
Hector Palacios (1):
timekeeping: add arch_offset hook to ktime_get functions
Hillf Danton (1):
hugetlb: release pages in the error path of hugetlb_cow()
Ido Yariv (1):
genirq: Fix race condition when stopping the irq thread
Ilya Dryomov (1):
tracing: fix event_subsystem ref counting
Jean Delvare (1):
hwmon: (coretemp) Fix oops on driver load
Jeff Ohlstein (1):
hrtimer: Fix extra wakeups from __remove_hrtimer()
Jeffrey (Sheng-Hui) Chu (1):
i2c-algo-bit: Generate correct i2c address sequence for 10-bit target
Jesse Barnes (1):
drm/i915: fix CB tuning check for ILK+
Johannes Berg (2):
cfg80211: fix regulatory NULL dereference
mac80211: don't stop a single aggregation session twice
Konrad Rzeszutek Wilk (1):
x86/paravirt: PTE updates in k(un)map_atomic need to be synchronous, regardless of lazy_mmu mode
Lars-Peter Clausen (3):
firmware: Sigma: Prevent out of bounds memory access
firmware: Sigma: Skip header during CRC generation
firmware: Sigma: Fix endianess issues
Luis R. Rodriguez (2):
cfg80211: fix race on init and driver registration
cfg80211: amend regulatory NULL dereference fix
Marcin Kościelnicki (1):
usb: ftdi_sio: add PID for Propox ISPcable III
Mark Brown (1):
ASoC: Ensure WM8731 register cache is synced when resuming from disabled
Martin Schwidefsky (1):
add missing .set function for NT_S390_LAST_BREAK regset
Matthieu CASTET (1):
EHCI : Fix a regression in the ISO scheduler
Michael Büsch (2):
p54spi: Add missing spin_lock_init
p54spi: Fix workqueue deadlock
Michal Hocko (1):
cgroup_freezer: fix freezing groups with stopped tasks
Ming Lei (1):
ARM: OMAP2: select ARM_AMBA if OMAP3_EMU is defined
Peter Chubb (1):
x86: Fix "Acer Aspire 1" reboot hang
Peter Zijlstra (1):
perf/x86: Fix PEBS instruction unwind
Phil Sutter (1):
crypto: mv_cesa - fix hashing of chunks > 1920 bytes
Qinglin Ye (1):
USB: usb-storage: unusual_devs entry for Kingston DT 101 G2
Rabin Vincent (1):
rtc: Disable the alarm in the hardware
Robert Richter (2):
oprofile, x86: Fix crash when unloading module (nmi timer mode)
oprofile: Fix crash when unloading module (hr timer mode)
Salman Qazi (1):
sched, x86: Avoid unnecessary overflow in sched_clock
Steven Rostedt (1):
perf: Fix parsing of __print_flags() in TP_printk()
Tejun Heo (1):
trace_events_filter: Use rcu_assign_pointer() when setting ftrace_event_call->filter
Thomas Gleixner (2):
tick-broadcast: Stop active broadcast device when replacing it
clockevents: Set noop handler in clockevents_exchange_device()
Thomas Poussevin (1):
USB: EHCI: fix HUB TT scheduling issue with iso transfer
Tim Blechmann (1):
ALSA: lx6464es - fix device communication via command bus
Timo Juhani Lindfors (1):
ASoC: wm8753: Skip noop reconfiguration of DAI mode
Timur Tabi (1):
ASoC: fsl_ssi: properly initialize the sysfs attribute object
Trond Myklebust (2):
SUNRPC: Ensure we return EAGAIN in xs_nospace if congestion is cleared
NFS: Prevent 3.0 from crashing if it receives a partial layout
Tyler Hicks (2):
eCryptfs: Flush file in vma close
eCryptfs: Extend array bounds for all filename chars
Veli-Pekka Peltola (1):
usb: option: add SIMCom SIM5218
Will Deacon (1):
ARM: 7161/1: errata: no automatic store buffer drain
Wolfram Sang (1):
arm: mx28: fix bit operation in clock setting
Xi Wang (1):
drm: integer overflow in drm_mode_dirtyfb_ioctl()
Yang Honggang (Joseph) (1):
clocksource: Fix bug with max_deferment margin calculation
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 12 +SUBLEVEL = 13 EXTRAVERSION = NAME = Sneaky Weasel
arch/arm/Kconfig +12 -0
@@ -1312,6 +1312,18 @@ config ARM_ERRATA_764369 relevant cache maintenance functions and sets a specific bit in the diagnostic control register of the SCU. +config PL310_ERRATA_769419 + bool "PL310 errata: no automatic Store Buffer drain" + depends on CACHE_L2X0 + help + On revisions of the PL310 prior to r3p2, the Store Buffer does + not automatically drain. This can cause normal, non-cacheable + writes to be retained when the memory system is idle, leading + to suboptimal I/O performance for drivers using coherent DMA. + This option adds a write barrier to the cpu_idle loop so that, + on systems with an outer cache, the store buffer is drained + explicitly. + endmenu menu "Kernel Features"
arch/arm/configs/ezx_defconfig +1 -1
@@ -287,7 +287,7 @@ CONFIG_USB=y # CONFIG_USB_DEVICE_CLASS is not set CONFIG_USB_OHCI_HCD=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PXA27X=y +CONFIG_USB_PXA27X=y CONFIG_USB_ETH=m # CONFIG_USB_ETH_RNDIS is not set CONFIG_MMC=y
arch/arm/configs/imote2_defconfig +1 -1
@@ -263,7 +263,7 @@ CONFIG_USB=y # CONFIG_USB_DEVICE_CLASS is not set CONFIG_USB_OHCI_HCD=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PXA27X=y +CONFIG_USB_PXA27X=y CONFIG_USB_ETH=m # CONFIG_USB_ETH_RNDIS is not set CONFIG_MMC=y
arch/arm/configs/magician_defconfig +1 -1
@@ -132,7 +132,7 @@ CONFIG_USB_MON=m CONFIG_USB_OHCI_HCD=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_VBUS_DRAW=500 -CONFIG_USB_GADGET_PXA27X=y +CONFIG_USB_PXA27X=y CONFIG_USB_ETH=m # CONFIG_USB_ETH_RNDIS is not set CONFIG_USB_GADGETFS=m
arch/arm/configs/zeus_defconfig +1 -1
@@ -140,7 +140,7 @@ CONFIG_USB_SERIAL=m CONFIG_USB_SERIAL_GENERIC=y CONFIG_USB_SERIAL_MCT_U232=m CONFIG_USB_GADGET=m -CONFIG_USB_GADGET_PXA27X=y +CONFIG_USB_PXA27X=y CONFIG_USB_ETH=m CONFIG_USB_GADGETFS=m CONFIG_USB_FILE_STORAGE=m
arch/arm/kernel/process.c +3 -0
@@ -191,6 +191,9 @@ void cpu_idle(void)#endif local_irq_disable (); +#ifdef CONFIG_PL310_ERRATA_769419 +wmb (); +#endif if (hlt_counter) {local_irq_enable ();cpu_relax ();
arch/arm/mach-mxs/clock-mx28.c +1 -1
@@ -404,7 +404,7 @@ static int name##_set_rate(struct clk *clk, unsigned long rate) \ reg = __raw_readl(CLKCTRL_BASE_ADDR + HW_CLKCTRL_##dr); \ reg &= ~BM_CLKCTRL_##dr##_DIV; \ reg |= div << BP_CLKCTRL_##dr##_DIV; \ - if (reg | (1 << clk->enable_shift)) { \ + if (reg & (1 << clk->enable_shift)) { \ pr_err("%s: clock is gated\n", __func__); \ return -EINVAL; \ } \
arch/arm/mach-omap2/Kconfig +1 -0
@@ -326,6 +326,7 @@ config MACH_OMAP4_PANDA config OMAP3_EMU bool "OMAP3 debugging peripherals" depends on ARCH_OMAP3 + select ARM_AMBA select OC_ETM help Say Y here to enable debugging hardware of omap3
arch/arm/mach-omap2/smartreflex.c +1 -1
@@ -137,7 +137,7 @@ static irqreturn_t sr_interrupt(int irq, void *data)sr_write_reg (sr_info,ERRCONFIG_V1 , status); }else if (sr_info->ip_type ==SR_TYPE_V2 ) {/* Read the status bits */ -sr_read_reg (sr_info,IRQSTATUS ); + status =sr_read_reg (sr_info,IRQSTATUS );/* Clear them by writing back */ sr_write_reg (sr_info,IRQSTATUS , status);
arch/arm/mach-pxa/balloon3.c +1 -1
@@ -307,7 +307,7 @@ static inline void balloon3_mmc_init(void) {}/****************************************************************************** * USB Gadget ******************************************************************************/ -#if defined(CONFIG_USB_GADGET_PXA27X )||defined(CONFIG_USB_GADGET_PXA27X_MODULE ) +#if defined(CONFIG_USB_PXA27X )||defined(CONFIG_USB_PXA27X_MODULE )static void balloon3_udc_command (int cmd) {if (cmd ==PXA2XX_UDC_CMD_CONNECT )
arch/arm/mach-pxa/colibri-pxa320.c +1 -1
@@ -147,7 +147,7 @@ static void __init colibri_pxa320_init_eth(void)static inline void __init colibri_pxa320_init_eth (void ) {}#endif /* CONFIG_AX88796 */ -#if defined(CONFIG_USB_GADGET_PXA27X )||defined(CONFIG_USB_GADGET_PXA27X_MODULE ) +#if defined(CONFIG_USB_PXA27X )||defined(CONFIG_USB_PXA27X_MODULE )static struct gpio_vbus_mach_info colibri_pxa320_gpio_vbus_info = { .gpio_vbus =mfp_to_gpio (MFP_PIN_GPIO96 ), .gpio_pullup = -1,
arch/arm/mach-pxa/gumstix.c +1 -1
@@ -106,7 +106,7 @@ static void __init gumstix_mmc_init(void) }#endif -#ifdef CONFIG_USB_GADGET_PXA25X +#ifdef CONFIG_USB_PXA25X static struct gpio_vbus_mach_info gumstix_udc_info = { .gpio_vbus = GPIO_GUMSTIX_USB_GPIOn, .gpio_pullup = GPIO_GUMSTIX_USB_GPIOx,
arch/arm/mach-pxa/include/mach/palm27x.h +2 -2
@@ -37,8 +37,8 @@ extern void __init palm27x_lcd_init(int power,static inline void palm27x_lcd_init (int power,struct pxafb_mode_info *mode) {}#endif -#if defined(CONFIG_USB_GADGET_PXA27X ) || \ - defined(CONFIG_USB_GADGET_PXA27X_MODULE ) +#if defined(CONFIG_USB_PXA27X ) || \ + defined(CONFIG_USB_PXA27X_MODULE )extern void __init palm27x_udc_init (int vbus,int pullup,int vbus_inverted);#else
arch/arm/mach-pxa/palm27x.c +2 -2
@@ -164,8 +164,8 @@ void __init palm27x_lcd_init(int power, struct pxafb_mode_info *mode)/****************************************************************************** * USB Gadget ******************************************************************************/ -#if defined(CONFIG_USB_GADGET_PXA27X ) || \ - defined(CONFIG_USB_GADGET_PXA27X_MODULE ) +#if defined(CONFIG_USB_PXA27X ) || \ + defined(CONFIG_USB_PXA27X_MODULE )static struct gpio_vbus_mach_info palm27x_udc_info = { .gpio_vbus_inverted =1 , };
arch/arm/mach-pxa/palmtc.c +1 -1
@@ -339,7 +339,7 @@ static inline void palmtc_mkp_init(void) {}/****************************************************************************** * UDC ******************************************************************************/ -#if defined(CONFIG_USB_GADGET_PXA25X )||defined(CONFIG_USB_GADGET_PXA25X_MODULE ) +#if defined(CONFIG_USB_PXA25X )||defined(CONFIG_USB_PXA25X_MODULE )static struct gpio_vbus_mach_info palmtc_udc_info = { .gpio_vbus =GPIO_NR_PALMTC_USB_DETECT_N , .gpio_vbus_inverted = 1,
arch/arm/mach-pxa/vpac270.c +1 -1
@@ -343,7 +343,7 @@ static inline void vpac270_uhc_init(void) {}/****************************************************************************** * USB Gadget ******************************************************************************/ -#if defined(CONFIG_USB_GADGET_PXA27X )||defined(CONFIG_USB_GADGET_PXA27X_MODULE ) +#if defined(CONFIG_USB_PXA27X )||defined(CONFIG_USB_PXA27X_MODULE )static struct gpio_vbus_mach_info vpac270_gpio_vbus_info = { .gpio_vbus =GPIO41_VPAC270_UDC_DETECT , .gpio_pullup = -1,
arch/s390/kernel/ptrace.c +18 -0
@@ -897,6 +897,14 @@ static int s390_last_break_get(struct task_struct *target,return 0 ; } +static int s390_last_break_set (struct task_struct *target, +const struct user_regset *regset, +unsigned int pos,unsigned int count, +const void *kbuf,const void __user *ubuf) +{ +return 0 ; +} +#endif static const struct user_regset s390_regsets[] = {
@@ -923,6 +931,7 @@ static const struct user_regset s390_regsets[] = { .size = sizeof(long), .align = sizeof(long), .get = s390_last_break_get, + .set = s390_last_break_set, },#endif };
@@ -1080,6 +1089,14 @@ static int s390_compat_last_break_get(struct task_struct *target,return 0 ; } +static int s390_compat_last_break_set (struct task_struct *target, +const struct user_regset *regset, +unsigned int pos,unsigned int count, +const void *kbuf,const void __user *ubuf) +{ +return 0 ; +} +static const struct user_regset s390_compat_regsets[] = { [REGSET_GENERAL ] = { .core_note_type =NT_PRSTATUS ,
@@ -1103,6 +1120,7 @@ static const struct user_regset s390_compat_regsets[] = { .size = sizeof(long), .align = sizeof(long), .get = s390_compat_last_break_get, + .set = s390_compat_last_break_set, }, [REGSET_GENERAL_EXTENDED] = { .core_note_type = NT_S390_HIGH_GPRS,
arch/x86/include/asm/timer.h +22 -1
@@ -32,6 +32,22 @@ extern int no_timer_check;* ([email protected]) * * [email protected] "math is hard, lets go shopping!" +* +* In: +* +* ns = cycles * cyc2ns_scale / SC +* +* Although we may still have enough bits to store the value of ns, +* in some cases, we may not have enough bits to store cycles * cyc2ns_scale, +* leading to an incorrect result. +* +* To avoid this, we can decompose 'cycles' into quotient and remainder +* of division by SC. Then, +* +* ns = (quot * SC + rem) * cyc2ns_scale / SC +* = quot * cyc2ns_scale + (rem * cyc2ns_scale) / SC +* +* - [email protected] */ DECLARE_PER_CPU(unsigned long, cyc2ns);
@@ -41,9 +57,14 @@ DECLARE_PER_CPU(unsigned long long, cyc2ns_offset);static inline unsigned long long __cycles_2_ns (unsigned long long cyc) { +unsigned long long quot; +unsigned long long rem;int cpu =smp_processor_id ();unsigned long long ns =per_cpu (cyc2ns_offset, cpu); - ns += cyc *per_cpu (cyc2ns, cpu) >>CYC2NS_SCALE_FACTOR ; + quot = (cyc >>CYC2NS_SCALE_FACTOR ); + rem = cyc & ((1ULL <<CYC2NS_SCALE_FACTOR ) -1 ); + ns += quot *per_cpu (cyc2ns, cpu) + + ((rem *per_cpu (cyc2ns, cpu)) >>CYC2NS_SCALE_FACTOR );return ns; }
arch/x86/kernel/cpu/perf_event_intel_ds.c +5 -1
@@ -508,6 +508,7 @@ static int intel_pmu_pebs_fixup_ip(struct pt_regs *regs)unsigned long from = cpuc->lbr_entries[0 ].from;unsigned long old_to, to = cpuc->lbr_entries[0 ].to;unsigned long ip = regs->ip; +int is_64bit =0 ;/* * We don't need to fixup if the PEBS assist is fault like
@@ -559,7 +560,10 @@ static int intel_pmu_pebs_fixup_ip(struct pt_regs *regs) }else kaddr = (void *)to; -kernel_insn_init (&insn, kaddr); +#ifdef CONFIG_X86_64 + is_64bit =kernel_ip (to) || !test_thread_flag (TIF_IA32 ); +#endif +insn_init (&insn, kaddr, is_64bit);insn_get_length (&insn); to += insn.length; }while (to < ip);
arch/x86/kernel/mpparse.c +1 -1
@@ -95,8 +95,8 @@ static void __init MP_bus_info(struct mpc_bus *m) }#endif +set_bit (m->busid, mp_bus_not_pci);if (strncmp (str,BUSTYPE_ISA ,sizeof (BUSTYPE_ISA ) -1 ) ==0 ) { -set_bit (m->busid, mp_bus_not_pci);#if defined(CONFIG_EISA ) || defined(CONFIG_MCA ) mp_bus_id_to_type[m->busid] =MP_BUS_ISA ;#endif
arch/x86/kernel/reboot.c +11 -2
@@ -124,7 +124,7 @@ __setup("reboot=", reboot_setup);*/ /* -* Some machines require the "reboot=b" commandline option, +* Some machines require the "reboot=b" or "reboot=k" commandline options, * this quirk makes that automatic. */ static int __init set_bios_reboot (const struct dmi_system_id *d)
@@ -136,6 +136,15 @@ static int __init set_bios_reboot(const struct dmi_system_id *d)return 0 ; } +static int __init set_kbd_reboot (const struct dmi_system_id *d) +{ +if (reboot_type !=BOOT_KBD ) { + reboot_type =BOOT_KBD ; +printk (KERN_INFO "%s series board detected. Selecting KBD-method for reboot.\n" , d->ident); + } +return 0 ; +} +static struct dmi_system_id __initdata reboot_dmi_table[] = { {/* Handle problems with rebooting on Dell E520's */ .callback = set_bios_reboot,
@@ -295,7 +304,7 @@ static struct dmi_system_id __initdata reboot_dmi_table[] = { }, }, {/* Handle reboot issue on Acer Aspire one */ - .callback = set_bios_reboot, + .callback = set_kbd_reboot, .ident = "Acer Aspire One A110", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
arch/x86/mm/highmem_32.c +2 -0
@@ -45,6 +45,7 @@ void *kmap_atomic_prot(struct page *page, pgprot_t prot) vaddr =__fix_to_virt (FIX_KMAP_BEGIN + idx);BUG_ON (!pte_none (*(kmap_pte-idx)));set_pte (kmap_pte-idx,mk_pte (page, prot)); +arch_flush_lazy_mmu_mode ();return (void *)vaddr; }
@@ -88,6 +89,7 @@ void __kunmap_atomic(void *kvaddr)*/ kpte_clear_flush (kmap_pte-idx, vaddr);kmap_atomic_idx_pop (); +arch_flush_lazy_mmu_mode (); }#ifdef CONFIG_DEBUG_HIGHMEM else {
arch/x86/oprofile/init.c +5 -2
@@ -21,6 +21,7 @@ extern int op_nmi_timer_init(struct oprofile_operations *ops);extern void op_nmi_exit (void );extern void x86_backtrace (struct pt_regs *const regs,unsigned int depth); +static int nmi_timer;int __init oprofile_arch_init (struct oprofile_operations *ops) {
@@ -31,8 +32,9 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)#ifdef CONFIG_X86_LOCAL_APIC ret =op_nmi_init (ops);#endif + nmi_timer = (ret !=0 );#ifdef CONFIG_X86_IO_APIC -if (ret <0 ) +if (nmi_timer) ret =op_nmi_timer_init (ops);#endif ops->backtrace = x86_backtrace;
@@ -44,6 +46,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)void oprofile_arch_exit (void ) {#ifdef CONFIG_X86_LOCAL_APIC -op_nmi_exit (); +if (!nmi_timer) +op_nmi_exit ();#endif }
drivers/crypto/mv_cesa.c +7 -5
@@ -342,11 +342,13 @@ static void mv_process_hash_current(int first_block)else op.config |=CFG_MID_FRAG ; -writel (req_ctx->state[0 ], cpg->reg +DIGEST_INITIAL_VAL_A ); -writel (req_ctx->state[1 ], cpg->reg +DIGEST_INITIAL_VAL_B ); -writel (req_ctx->state[2 ], cpg->reg +DIGEST_INITIAL_VAL_C ); -writel (req_ctx->state[3 ], cpg->reg +DIGEST_INITIAL_VAL_D ); -writel (req_ctx->state[4 ], cpg->reg +DIGEST_INITIAL_VAL_E ); +if (first_block) { +writel (req_ctx->state[0 ], cpg->reg +DIGEST_INITIAL_VAL_A ); +writel (req_ctx->state[1 ], cpg->reg +DIGEST_INITIAL_VAL_B ); +writel (req_ctx->state[2 ], cpg->reg +DIGEST_INITIAL_VAL_C ); +writel (req_ctx->state[3 ], cpg->reg +DIGEST_INITIAL_VAL_D ); +writel (req_ctx->state[4 ], cpg->reg +DIGEST_INITIAL_VAL_E ); + } }memcpy (cpg->sram +SRAM_CONFIG , &op,sizeof (struct sec_accel_config ));
drivers/firmware/sigma.c +58 -23
131 lines not on this page · raw message
drivers/gpu/drm/drm_crtc.c +4 -0
@@ -1866,6 +1866,10 @@ int drm_mode_dirtyfb_ioctl(struct drm_device *dev, }if (num_clips && clips_ptr) { +if (num_clips <0 || num_clips >DRM_MODE_FB_DIRTY_MAX_CLIPS ) { + ret = -EINVAL ; + goto out_err1; + } clips =kzalloc (num_clips *sizeof (*clips),GFP_KERNEL );if (!clips) { ret = -ENOMEM ;
drivers/gpu/drm/i915/i915_irq.c +1 -0
@@ -820,6 +820,7 @@ static void i915_gem_record_fences(struct drm_device *dev,/* Fences */ switch (INTEL_INFO (dev)->gen) { +case 7 :case 6 :for (i =0 ; i <16 ; i++) error->fence[i] =I915_READ64 (FENCE_REG_SANDYBRIDGE_0 + (i *8 ));
drivers/gpu/drm/i915/i915_reg.h +4 -0
@@ -3370,6 +3370,10 @@#define GT_FIFO_FREE_ENTRIES 0x120008 +#define GEN6_UCGCTL2 0x9404 +# define GEN6_RCPBUNIT_CLOCK_GATE_DISABLE (1 << 12) +# define GEN6_RCCUNIT_CLOCK_GATE_DISABLE (1 << 11) +#define GEN6_RPNSWREQ 0xA008#define GEN6_TURBO_DISABLE (1<<31)#define GEN6_FREQUENCY (x) ((x)<<25)
drivers/gpu/drm/i915/i915_suspend.c +2 -0
@@ -370,6 +370,7 @@ static void i915_save_modeset_reg(struct drm_device *dev)/* Fences */ switch (INTEL_INFO (dev)->gen) { +case 7 :case 6 :for (i =0 ; i <16 ; i++) dev_priv->saveFENCE[i] =I915_READ64 (FENCE_REG_SANDYBRIDGE_0 + (i *8 ));
@@ -404,6 +405,7 @@ static void i915_restore_modeset_reg(struct drm_device *dev)/* Fences */ switch (INTEL_INFO (dev)->gen) { +case 7 :case 6 :for (i =0 ; i <16 ; i++)I915_WRITE64 (FENCE_REG_SANDYBRIDGE_0 + (i *8 ), dev_priv->saveFENCE[i]);
drivers/gpu/drm/i915/intel_display.c +15 -1
@@ -4972,7 +4972,7 @@ static int ironlake_crtc_mode_set(struct drm_crtc *crtc, }else if (is_sdvo && is_tv) factor =20 ; -if (clock.m1 < factor * clock.n) +if (clock.m < factor * clock.n) fp |=FP_CB_TUNE ; dpll =0 ;
@@ -7405,6 +7405,20 @@ static void gen6_init_clock_gating(struct drm_device *dev)I915_WRITE (WM2_LP_ILK ,0 );I915_WRITE (WM1_LP_ILK ,0 ); +/* According to the BSpec vol1g, bit 12 (RCPBUNIT) clock +* gating disable must be set. Failure to set it results in +* flickering pixels due to Z write ordering failures after +* some amount of runtime in the Mesa "fire" demo, and Unigine +* Sanctuary and Tropics, and apparently anything else with +* alpha test or pixel discard. +* +* According to the spec, bit 11 (RCCUNIT) must also be set, +* but we didn't debug actual testcases to find it out. +*/ +I915_WRITE (GEN6_UCGCTL2 , +GEN6_RCPBUNIT_CLOCK_GATE_DISABLE | +GEN6_RCCUNIT_CLOCK_GATE_DISABLE ); +/* * According to the spec the following bits should be * set in order to enable memory self-refresh and fbc:
drivers/gpu/drm/radeon/evergreen.c +6 -1
@@ -82,6 +82,7 @@ u32 evergreen_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base) {struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id];u32 tmp =RREG32 (EVERGREEN_GRPH_UPDATE + radeon_crtc->crtc_offset); +int i;/* Lock the graphics update lock */ tmp |=EVERGREEN_GRPH_UPDATE_LOCK ;
@@ -99,7 +100,11 @@ u32 evergreen_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base) (u32)crtc_base);/* Wait for update_pending to go high. */ -while (!(RREG32 (EVERGREEN_GRPH_UPDATE + radeon_crtc->crtc_offset) &EVERGREEN_GRPH_SURFACE_UPDATE_PENDING )); +for (i =0 ; i < rdev->usec_timeout; i++) { +if (RREG32 (EVERGREEN_GRPH_UPDATE + radeon_crtc->crtc_offset) &EVERGREEN_GRPH_SURFACE_UPDATE_PENDING ) +break ; +udelay (1 ); + }DRM_DEBUG ("Update pending now high. Unlocking vupdate_lock.\n" );/* Unlock the lock, so double-buffering can take place inside vblank */
drivers/gpu/drm/radeon/r100.c +6 -1
@@ -84,13 +84,18 @@ u32 r100_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base) {struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id];u32 tmp = ((u32 )crtc_base) |RADEON_CRTC_OFFSET__OFFSET_LOCK ; +int i;/* Lock the graphics update lock */ /* update the scanout addresses */ WREG32 (RADEON_CRTC_OFFSET + radeon_crtc->crtc_offset, tmp);/* Wait for update_pending to go high. */ -while (!(RREG32 (RADEON_CRTC_OFFSET + radeon_crtc->crtc_offset) &RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET )); +for (i =0 ; i < rdev->usec_timeout; i++) { +if (RREG32 (RADEON_CRTC_OFFSET + radeon_crtc->crtc_offset) &RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET ) +break ; +udelay (1 ); + }DRM_DEBUG ("Update pending now high. Unlocking vupdate_lock.\n" );/* Unlock the lock, so double-buffering can take place inside vblank */
drivers/gpu/drm/radeon/radeon_atombios.c +24 -0
@@ -85,6 +85,18 @@ static inline struct radeon_i2c_bus_rec radeon_lookup_i2c_gpio(struct radeon_devfor (i =0 ; i < num_indices; i++) { gpio = &i2c_info->asGPIO_Info[i]; +/* r4xx mask is technically not used by the hw, so patch in the legacy mask bits */ +if ((rdev->family ==CHIP_R420 ) || + (rdev->family ==CHIP_R423 ) || + (rdev->family ==CHIP_RV410 )) { +if ((le16_to_cpu (gpio->usClkMaskRegisterIndex) ==0x0018 ) || + (le16_to_cpu (gpio->usClkMaskRegisterIndex) ==0x0019 ) || + (le16_to_cpu (gpio->usClkMaskRegisterIndex) ==0x001a )) { + gpio->ucClkMaskShift =0x19 ; + gpio->ucDataMaskShift =0x18 ; + } + } +/* some evergreen boards have bad data for this entry */ if (ASIC_IS_DCE4 (rdev)) { if ((i == 7) &&
@@ -169,6 +181,18 @@ void radeon_atombios_i2c_init(struct radeon_device *rdev) gpio = &i2c_info->asGPIO_Info[i]; i2c.valid = false; +/* r4xx mask is technically not used by the hw, so patch in the legacy mask bits */ +if ((rdev->family ==CHIP_R420 ) || + (rdev->family ==CHIP_R423 ) || + (rdev->family ==CHIP_RV410 )) { +if ((le16_to_cpu (gpio->usClkMaskRegisterIndex) ==0x0018 ) || + (le16_to_cpu (gpio->usClkMaskRegisterIndex) ==0x0019 ) || + (le16_to_cpu (gpio->usClkMaskRegisterIndex) ==0x001a )) { + gpio->ucClkMaskShift =0x19 ; + gpio->ucDataMaskShift =0x18 ; + } + } +/* some evergreen boards have bad data for this entry */ if (ASIC_IS_DCE4 (rdev)) { if ((i == 7) &&
drivers/gpu/drm/radeon/rs600.c +6 -1
@@ -62,6 +62,7 @@ u32 rs600_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base) {struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id];u32 tmp =RREG32 (AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset); +int i;/* Lock the graphics update lock */ tmp |=AVIVO_D1GRPH_UPDATE_LOCK ;
@@ -74,7 +75,11 @@ u32 rs600_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base) (u32)crtc_base);/* Wait for update_pending to go high. */ -while (!(RREG32 (AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset) &AVIVO_D1GRPH_SURFACE_UPDATE_PENDING )); +for (i =0 ; i < rdev->usec_timeout; i++) { +if (RREG32 (AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset) &AVIVO_D1GRPH_SURFACE_UPDATE_PENDING ) +break ; +udelay (1 ); + }DRM_DEBUG ("Update pending now high. Unlocking vupdate_lock.\n" );/* Unlock the lock, so double-buffering can take place inside vblank */
drivers/gpu/drm/radeon/rv770.c +6 -1
@@ -47,6 +47,7 @@ u32 rv770_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base) {struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id];u32 tmp =RREG32 (AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset); +int i;/* Lock the graphics update lock */ tmp |=AVIVO_D1GRPH_UPDATE_LOCK ;
@@ -66,7 +67,11 @@ u32 rv770_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base) (u32)crtc_base);/* Wait for update_pending to go high. */ -while (!(RREG32 (AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset) &AVIVO_D1GRPH_SURFACE_UPDATE_PENDING )); +for (i =0 ; i < rdev->usec_timeout; i++) { +if (RREG32 (AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset) &AVIVO_D1GRPH_SURFACE_UPDATE_PENDING ) +break ; +udelay (1 ); + }DRM_DEBUG ("Update pending now high. Unlocking vupdate_lock.\n" );/* Unlock the lock, so double-buffering can take place inside vblank */
drivers/gpu/drm/ttm/ttm_bo.c +2 -1
@@ -394,7 +394,8 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,if (!(new_man->flags &TTM_MEMTYPE_FLAG_FIXED )) {if (bo->ttm ==NULL ) { - ret =ttm_bo_add_ttm (bo, false); +bool zero = !(old_man->flags &TTM_MEMTYPE_FLAG_FIXED ); + ret =ttm_bo_add_ttm (bo, zero);if (ret) goto out_err; }
drivers/hid/hid-core.c +1 -1
@@ -1721,8 +1721,8 @@ static const struct hid_device_id hid_ignore_list[] = { { HID_USB_DEVICE(USB_VENDOR_ID_ESSENTIAL_REALITY, USB_DEVICE_ID_ESSENTIAL_REALITY_P5) }, { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC5UH) }, { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC4UM) }, + { HID_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH, 0x0001) }, { HID_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH, 0x0002) }, - { HID_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH, 0x0003) }, { HID_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH, 0x0004) }, { HID_USB_DEVICE(USB_VENDOR_ID_GLAB, USB_DEVICE_ID_4_PHIDGETSERVO_30) }, { HID_USB_DEVICE(USB_VENDOR_ID_GLAB, USB_DEVICE_ID_1_PHIDGETSERVO_30) },
drivers/hid/hid-ids.h +1 -1
@@ -266,7 +266,7 @@#define USB_DEVICE_ID_GAMERON_DUAL_PCS_ADAPTOR 0x0002#define USB_VENDOR_ID_GENERAL_TOUCH 0x0dfc -#define USB_DEVICE_ID_GENERAL_TOUCH_WIN7_TWOFINGERS 0x0001 +#define USB_DEVICE_ID_GENERAL_TOUCH_WIN7_TWOFINGERS 0x0003#define USB_VENDOR_ID_GLAB 0x06c2#define USB_DEVICE_ID_4_PHIDGETSERVO_30 0x0038
drivers/hwmon/coretemp.c +2 -0
@@ -539,6 +539,8 @@ static void coretemp_add_core(unsigned int cpu, int pkg_flag)return ; pdata =platform_get_drvdata (pdev); +if (!pdata) +return ; err =create_core_data (pdata, pdev, cpu, pkg_flag);if (err)
drivers/i2c/algos/i2c-algo-bit.c +2 -2
@@ -486,7 +486,7 @@ static int bit_doAddress(struct i2c_adapter *i2c_adap, struct i2c_msg *msg)if (flags &I2C_M_TEN ) {/* a ten bit address */ - addr =0xf0 | ((msg->addr >>7 ) &0x03 ); + addr =0xf0 | ((msg->addr >>7 ) &0x06 );bit_dbg (2 , &i2c_adap->dev,"addr0: %d\n" , addr);/* try extended address code...*/ ret =try_address (i2c_adap, addr, retries);
@@ -496,7 +496,7 @@ static int bit_doAddress(struct i2c_adapter *i2c_adap, struct i2c_msg *msg)return -EREMOTEIO ; }/* the remaining 8 bit address */ - ret =i2c_outb (i2c_adap, msg->addr &0x7f ); + ret =i2c_outb (i2c_adap, msg->addr &0xff );if ((ret !=1 ) && !nak_ok) {/* the chip did not ack / xmission error occurred */ dev_err (&i2c_adap->dev,"died at 2nd address code\n" );
drivers/mfd/twl-core.c +1 -1
@@ -109,7 +109,7 @@#define twl_has_watchdog () false#endif -#if defined(CONFIG_MFD_TWL4030_AUDIO ) || defined(CONFIG_MFD_TWL4030_AUDIO_MODULE ) ||\ +#if defined(CONFIG_TWL4030_CODEC ) || defined(CONFIG_TWL4030_CODEC_MODULE ) ||\ defined(CONFIG_SND_SOC_TWL6040 ) || defined(CONFIG_SND_SOC_TWL6040_MODULE )#define twl_has_codec () true#else
drivers/net/wireless/p54/p54spi.c +3 -2
@@ -589,8 +589,6 @@ static void p54spi_op_stop(struct ieee80211_hw *dev)WARN_ON (priv->fw_state !=FW_STATE_READY ); -cancel_work_sync (&priv->work); -p54spi_power_off (priv);spin_lock_irqsave (&priv->tx_lock, flags);INIT_LIST_HEAD (&priv->tx_pending);
@@ -598,6 +596,8 @@ static void p54spi_op_stop(struct ieee80211_hw *dev) priv->fw_state =FW_STATE_OFF ;mutex_unlock (&priv->mutex); + +cancel_work_sync (&priv->work); }static int __devinit p54spi_probe (struct spi_device *spi)
@@ -657,6 +657,7 @@ static int __devinit p54spi_probe(struct spi_device *spi)init_completion (&priv->fw_comp);INIT_LIST_HEAD (&priv->tx_pending);mutex_init (&priv->mutex); +spin_lock_init (&priv->tx_lock);SET_IEEE80211_DEV (hw, &spi->dev); priv->common.open = p54spi_op_start; priv->common.stop = p54spi_op_stop;
drivers/net/wireless/rt2x00/rt2800lib.c +1 -1
@@ -3514,7 +3514,7 @@ static void rt2800_efuse_read(struct rt2x00_dev *rt2x00dev, unsigned int i)/* Apparently the data is read from end to start */ rt2800_register_read_lock (rt2x00dev,EFUSE_DATA3 , ®);/* The returned value is in CPU order, but eeprom is le */ - rt2x00dev->eeprom[i] =cpu_to_le32 (reg); + *(u32 *)&rt2x00dev->eeprom[i] =cpu_to_le32 (reg);rt2800_register_read_lock (rt2x00dev,EFUSE_DATA2 , ®); *(u32 *)&rt2x00dev->eeprom[i +2 ] =cpu_to_le32 (reg);rt2800_register_read_lock (rt2x00dev,EFUSE_DATA1 , ®);
drivers/oprofile/oprof.c +24 -5
@@ -239,26 +239,45 @@ int oprofile_set_ulong(unsigned long *addr, unsigned long val)return err; } +static int timer_mode; +static int __init oprofile_init (void ) {int err; +/* always init architecture to setup backtrace support */ err =oprofile_arch_init (&oprofile_ops); -if (err <0 || timer) { -printk (KERN_INFO "oprofile: using timer interrupt.\n" ); + + timer_mode = err || timer;/* fall back to timer mode on errors */ +if (timer_mode) { +if (!err) +oprofile_arch_exit (); err =oprofile_timer_init (&oprofile_ops);if (err)return err; } -return oprofilefs_register (); + + err =oprofilefs_register (); +if (!err) +return 0 ; + +/* failed */ +if (timer_mode) +oprofile_timer_exit (); +else +oprofile_arch_exit (); + +return err; } static void __exit oprofile_exit(void) { -oprofile_timer_exit ();oprofilefs_unregister (); -oprofile_arch_exit (); +if (timer_mode) +oprofile_timer_exit (); +else +oprofile_arch_exit (); }
drivers/oprofile/timer_int.c +1 -0
@@ -110,6 +110,7 @@ int oprofile_timer_init(struct oprofile_operations *ops) ops->start = oprofile_hrtimer_start; ops->stop = oprofile_hrtimer_stop; ops->cpu_type ="timer" ; +printk (KERN_INFO "oprofile: using timer interrupt.\n" );return 0 ; }
drivers/pci/hotplug/shpchp_core.c +2 -2
@@ -278,8 +278,8 @@ static int get_adapter_status (struct hotplug_slot *hotplug_slot, u8 *value)static int is_shpc_capable (struct pci_dev *dev) { -if ((dev->vendor ==PCI_VENDOR_ID_AMD ) || (dev->device == -PCI_DEVICE_ID_AMD_GOLAM_7450 )) +if (dev->vendor ==PCI_VENDOR_ID_AMD && + dev->device ==PCI_DEVICE_ID_AMD_GOLAM_7450 )return 1 ;if (!pci_find_capability (dev,PCI_CAP_ID_SHPC ))return 0 ;
drivers/pci/hotplug/shpchp_hpc.c +2 -2
@@ -944,8 +944,8 @@ int shpc_init(struct controller *ctrl, struct pci_dev *pdev) ctrl->pci_dev = pdev;/* pci_dev of the P2P bridge */ ctrl_dbg (ctrl,"Hotplug Controller:\n" ); -if ((pdev->vendor ==PCI_VENDOR_ID_AMD ) || (pdev->device == -PCI_DEVICE_ID_AMD_GOLAM_7450 )) { +if (pdev->vendor ==PCI_VENDOR_ID_AMD && + pdev->device ==PCI_DEVICE_ID_AMD_GOLAM_7450 ) {/* amd shpc driver doesn't use Base Offset; assume 0 */ ctrl->mmio_base =pci_resource_start (pdev,0 ); ctrl->mmio_size =pci_resource_len (pdev,0 );
drivers/rtc/interface.c +34 -10
75 lines not on this page · raw message
drivers/scsi/scsi_lib.c +2 -1
@@ -1407,6 +1407,8 @@ static void scsi_kill_request(struct request *req, struct request_queue *q)blk_start_request (req); +scmd_printk (KERN_INFO , cmd,"killing request\n" ); + sdev = cmd->device; starget =scsi_target (sdev); shost = sdev->host;
@@ -1488,7 +1490,6 @@ static void scsi_request_fn(struct request_queue *q)struct request *req;if (!sdev) { -printk ("scsi: killing requests for dead queue\n" );while ((req =blk_peek_request (q)) !=NULL )scsi_kill_request (req, q);return ;
drivers/staging/comedi/comedi_fops.c +72 -22
172 lines not on this page · raw message
drivers/staging/usbip/vhci_rx.c +6 -4
@@ -68,6 +68,7 @@ static void vhci_recv_ret_submit(struct vhci_device *vdev, {struct usbip_device *ud = &vdev->ud;struct urb *urb; +unsigned long flags;spin_lock (&vdev->priv_lock); urb =pickup_urb_and_free_priv (vdev, pdu->base.seqnum);
@@ -101,9 +102,9 @@ static void vhci_recv_ret_submit(struct vhci_device *vdev,usbip_dbg_vhci_rx ("now giveback urb %p\n" , urb); -spin_lock (&the_controller->lock); +spin_lock_irqsave (&the_controller->lock, flags);usb_hcd_unlink_urb_from_ep (vhci_to_hcd (the_controller), urb); -spin_unlock (&the_controller->lock); +spin_unlock_irqrestore (&the_controller->lock, flags);usb_hcd_giveback_urb (vhci_to_hcd (the_controller), urb, urb->status);
@@ -141,6 +142,7 @@ static void vhci_recv_ret_unlink(struct vhci_device *vdev, {struct vhci_unlink *unlink;struct urb *urb; +unsigned long flags;usbip_dump_header (pdu);
@@ -170,9 +172,9 @@ static void vhci_recv_ret_unlink(struct vhci_device *vdev, urb->status = pdu->u.ret_unlink.status;pr_info ("urb->status %d\n" , urb->status); -spin_lock (&the_controller->lock); +spin_lock_irqsave (&the_controller->lock, flags);usb_hcd_unlink_urb_from_ep (vhci_to_hcd (the_controller), urb); -spin_unlock (&the_controller->lock); +spin_unlock_irqrestore (&the_controller->lock, flags);usb_hcd_giveback_urb (vhci_to_hcd (the_controller), urb, urb->status);
drivers/usb/host/ehci-sched.c +14 -8
@@ -1479,30 +1479,36 @@ iso_stream_schedule (* jump until after the queue is primed. */ else { +int done =0 ; start =SCHEDULE_SLOP + (now & ~0x07 );/* NOTE: assumes URB_ISO_ASAP, to limit complexity/bugs */ -/* find a uframe slot with enough bandwidth */ - next = start + period; -for (; start < next; start++) { - +/* find a uframe slot with enough bandwidth. +* Early uframes are more precious because full-speed +* iso IN transfers can't use late uframes, +* and therefore they should be allocated last. +*/ + next = start; + start += period; +do { + start--;/* check schedule: enough space? */ if (stream->highspeed) {if (itd_slot_ok (ehci, mod, start, stream->usecs, period)) -break ; + done =1 ; }else {if ((start %8 ) >=6 )continue ;if (sitd_slot_ok (ehci, mod, stream, start, sched, period)) -break ; + done =1 ; } - } + }while (start > next && !done);/* no room in the schedule */ -if (start == next) { +if (!done) {ehci_dbg (ehci,"iso resched full %p (now %d max %d)\n" , urb, now, now + mod); status = -ENOSPC ;
drivers/usb/host/whci/qset.c +1 -1
@@ -124,7 +124,7 @@ void qset_clear(struct whc *whc, struct whc_qset *qset) { qset->td_start = qset->td_end = qset->ntds =0 ; - qset->qh.link =cpu_to_le32 (QH_LINK_NTDS (8 ) |QH_LINK_T ); + qset->qh.link =cpu_to_le64 (QH_LINK_NTDS (8 ) |QH_LINK_T ); qset->qh.status = qset->qh.status &QH_STATUS_SEQ_MASK ; qset->qh.err_count =0 ; qset->qh.scratch[0 ] =0 ;
drivers/usb/host/xhci.c +4 -1
@@ -657,7 +657,10 @@ static void xhci_clear_command_ring(struct xhci_hcd *xhci) ring = xhci->cmd_ring; seg = ring->deq_seg;do { -memset (seg->trbs,0 ,SEGMENT_SIZE ); +memset (seg->trbs,0 , +sizeof (union xhci_trb ) * (TRBS_PER_SEGMENT -1 )); + seg->trbs[TRBS_PER_SEGMENT -1 ].link.control &= +cpu_to_le32 (~TRB_CYCLE ); seg = seg->next; }while (seg != ring->deq_seg);
drivers/usb/serial/ftdi_sio.c +1 -0
@@ -735,6 +735,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(TML_VID, TML_USB_SERIAL_PID) }, { USB_DEVICE(FTDI_VID, FTDI_ELSTER_UNICOM_PID) }, { USB_DEVICE(FTDI_VID, FTDI_PROPOX_JTAGCABLEII_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_PROPOX_ISPCABLEIII_PID) }, { USB_DEVICE(OLIMEX_VID, OLIMEX_ARM_USB_OCD_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { USB_DEVICE(OLIMEX_VID, OLIMEX_ARM_USB_OCD_H_PID),
drivers/usb/serial/ftdi_sio_ids.h +1 -0
@@ -112,6 +112,7 @@/* Propox devices */ #define FTDI_PROPOX_JTAGCABLEII_PID 0xD738 +#define FTDI_PROPOX_ISPCABLEIII_PID 0xD739/* Lenz LI-USB Computer Interface. */ #define FTDI_LENZ_LIUSB_PID 0xD780
drivers/usb/serial/option.c +4 -0
@@ -657,6 +657,9 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4511, 0xff, 0x01, 0x31) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4511, 0xff, 0x01, 0x32) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E353, 0xff, 0x01, 0x01) }, + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E353, 0xff, 0x01, 0x02) }, + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E353, 0xff, 0x01, 0x03) }, + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E353, 0xff, 0x01, 0x08) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V640) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V620) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V740) },
@@ -743,6 +746,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(KYOCERA_VENDOR_ID, KYOCERA_PRODUCT_KPC680) }, { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x6000)}, /* ZTE AC8700 */ { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x6613)}, /* Onda H600/ZTE MF330 */ + { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000)}, /* SIMCom SIM5218 */ { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6280) }, /* BP3-USB & BP3-EXT HSDPA */ { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6008) }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_UC864E) },
drivers/usb/storage/unusual_devs.h +7 -0
@@ -1854,6 +1854,13 @@ UNUSUAL_DEV( 0x1370, 0x6828, 0x0110, 0x0110, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_IGNORE_RESIDUE ), +/* Reported by Qinglin Ye <[email protected]> */ +UNUSUAL_DEV (0x13fe ,0x3600 ,0x0100 ,0x0100 , +"Kingston" , +"DT 101 G2" , +USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , +US_FL_BULK_IGNORE_TAG ), +/* Reported by Francesco Foresti <[email protected]> */ UNUSUAL_DEV( 0x14cd, 0x6600, 0x0201, 0x0201, "Super Top",
drivers/video/via/share.h +2 -2
@@ -557,8 +557,8 @@#define M1200X720_R60_VSP POSITIVE/* 1200x900@60 Sync Polarity (DCON) */ -#define M1200X900_R60_HSP NEGATIVE -#define M1200X900_R60_VSP NEGATIVE +#define M1200X900_R60_HSP POSITIVE +#define M1200X900_R60_VSP POSITIVE/* 1280x600@60 Sync Polarity (GTF Mode) */ #define M1280x600_R60_HSP NEGATIVE
fs/ecryptfs/crypto.c +2 -2
@@ -1943,7 +1943,7 @@ static unsigned char *portable_filename_chars = ("-.0123456789ABCD"/* We could either offset on every reverse map or just pad some 0x00's * at the front here */ -static const unsigned char filename_rev_map[] = { +static const unsigned char filename_rev_map[256 ] = {0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,/* 7 */ 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,/* 15 */ 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,/* 23 */
@@ -1959,7 +1959,7 @@ static const unsigned char filename_rev_map[] = {0x00 ,0x26 ,0x27 ,0x28 ,0x29 ,0x2A ,0x2B ,0x2C ,/* 103 */ 0x2D ,0x2E ,0x2F ,0x30 ,0x31 ,0x32 ,0x33 ,0x34 ,/* 111 */ 0x35 ,0x36 ,0x37 ,0x38 ,0x39 ,0x3A ,0x3B ,0x3C ,/* 119 */ -0x3D ,0x3E ,0x3F +0x3D ,0x3E ,0x3F /* 123 - 255 initialized to 0x00 */ };/**
fs/ecryptfs/file.c +22 -1
@@ -139,6 +139,27 @@ out:return rc; } +static void ecryptfs_vma_close (struct vm_area_struct *vma) +{ +filemap_write_and_wait (vma->vm_file->f_mapping); +} + +static const struct vm_operations_struct ecryptfs_file_vm_ops = { + .close = ecryptfs_vma_close, + .fault = filemap_fault, +}; + +static int ecryptfs_file_mmap (struct file *file,struct vm_area_struct *vma) +{ +int rc; + + rc =generic_file_mmap (file, vma); +if (!rc) + vma->vm_ops = &ecryptfs_file_vm_ops; + +return rc; +} +struct kmem_cache *ecryptfs_file_info_cache;/**
@@ -348,7 +369,7 @@ const struct file_operations ecryptfs_main_fops = {#ifdef CONFIG_COMPAT .compat_ioctl = ecryptfs_compat_ioctl, #endif - .mmap = generic_file_mmap, + .mmap = ecryptfs_file_mmap, .open = ecryptfs_open, .flush = ecryptfs_flush, .release = ecryptfs_release,
fs/nfs/nfs4filelayout.c +8 -0
@@ -428,6 +428,14 @@ filelayout_check_layout(struct pnfs_layout_hdr *lo,dprintk ("--> %s\n" , __func__); +/* FIXME: remove this check when layout segment support is added */ +if (lgr->range.offset !=0 || + lgr->range.length !=NFS4_MAX_UINT64 ) { +dprintk ("%s Only whole file layouts supported. Use MDS i/o\n" , + __func__); + goto out; + } +if (fl->pattern_offset > lgr->range.offset) {dprintk ("%s pattern_offset %lld too large\n" , __func__, fl->pattern_offset);
fs/nfs/pnfs.c +2 -1
@@ -980,7 +980,8 @@ pnfs_update_layout(struct inode *ino, arg.offset -= pg_offset; arg.length += pg_offset; } - arg.length =PAGE_CACHE_ALIGN (arg.length); +if (arg.length !=NFS4_MAX_UINT64 ) + arg.length =PAGE_CACHE_ALIGN (arg.length); lseg =send_layoutget (lo, ctx, &arg, gfp_flags);if (!lseg && first) {
fs/xfs/linux-2.6/xfs_acl.c +2 -0
@@ -42,6 +42,8 @@ xfs_acl_from_disk(struct xfs_acl *aclp)int count, i; count =be32_to_cpu (aclp->acl_cnt); +if (count >XFS_ACL_MAX_ENTRIES ) +return ERR_PTR (-EFSCORRUPTED ); acl =posix_acl_alloc (count,GFP_KERNEL );if (!acl)
fs/xfs/linux-2.6/xfs_sync.c +11 -0
@@ -772,6 +772,17 @@ restart:if (!xfs_iflock_nowait (ip)) {if (!(sync_mode &SYNC_WAIT )) goto out; + +/* +* If we only have a single dirty inode in a cluster there is +* a fair chance that the AIL push may have pushed it into +* the buffer, but xfsbufd won't touch it until 30 seconds +* from now, and thus we will lock up here. +* +* Promote the inode buffer to the front of the delwri list +* and wake up xfsbufd now. +*/ +xfs_promote_inode (ip);xfs_iflock (ip); }
fs/xfs/xfs_attr_leaf.c +39 -25
109 lines not on this page · raw message
fs/xfs/xfs_inode.c +21 -0
@@ -3099,6 +3099,27 @@ corrupt_out:return XFS_ERROR (EFSCORRUPTED ); } +void +xfs_promote_inode ( +struct xfs_inode *ip) +{ +struct xfs_buf *bp; + +ASSERT (xfs_isilocked (ip,XFS_ILOCK_EXCL |XFS_ILOCK_SHARED )); + + bp =xfs_incore (ip->i_mount->m_ddev_targp, ip->i_imap.im_blkno, + ip->i_imap.im_len,XBF_TRYLOCK ); +if (!bp) +return ; + +if (XFS_BUF_ISDELAYWRITE (bp)) { +xfs_buf_delwri_promote (bp); +wake_up_process (ip->i_mount->m_ddev_targp->bt_task); + } + +xfs_buf_relse (bp); +} +/* * Return a pointer to the extent record at file index idx. */
fs/xfs/xfs_inode.h +1 -0
@@ -509,6 +509,7 @@ int xfs_iunlink(struct xfs_trans *, xfs_inode_t *);void xfs_iext_realloc (xfs_inode_t *,int ,int );void xfs_iunpin_wait (xfs_inode_t *);int xfs_iflush (xfs_inode_t *,uint ); +void xfs_promote_inode (struct xfs_inode *);void xfs_lock_inodes (xfs_inode_t **,int ,uint );void xfs_lock_two_inodes (xfs_inode_t *,xfs_inode_t *,uint );
include/drm/drm_mode.h +2 -0
@@ -233,6 +233,8 @@ struct drm_mode_fb_cmd {#define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02#define DRM_MODE_FB_DIRTY_FLAGS 0x03 +#define DRM_MODE_FB_DIRTY_MAX_CLIPS 256 +/* * Mark a region of a framebuffer as dirty. *
include/drm/drm_pciids.h +8 -0
@@ -197,6 +197,14 @@ {0x1002, 0x6770, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6778, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6779, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6840, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6841, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6842, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6843, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6849, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6850, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6858, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6859, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6880, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6888, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6889, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \
include/linux/sigma.h +4 -9
@@ -24,7 +24,7 @@ struct sigma_firmware {struct sigma_firmware_header {unsigned char magic[7 ];u8 version; -u32 crc; +__le32 crc; };enum {
@@ -40,19 +40,14 @@ enum {struct sigma_action {u8 instr;u8 len_hi; -u16 len; -u16 addr; +__le16 len; +__be16 addr;unsigned char payload[]; };static inline u32 sigma_action_len (struct sigma_action *sa) { -return (sa->len_hi <<16 ) | sa->len; -} - -static inline size_t sigma_action_size (struct sigma_action *sa,u32 payload_len) -{ -return sizeof (*sa) + payload_len + (payload_len %2 ); +return (sa->len_hi <<16 ) |le16_to_cpu (sa->len); }extern int process_sigma_firmware (struct i2c_client *client,const char *name);
kernel/cgroup_freezer.c +9 -2
@@ -153,6 +153,13 @@ static void freezer_destroy(struct cgroup_subsys *ss,kfree (cgroup_freezer (cgroup)); } +/* task is frozen or will freeze immediately when next it gets woken */ +static bool is_task_frozen_enough (struct task_struct *task) +{ +return frozen (task) || + (task_is_stopped_or_traced (task) &&freezing (task)); +} +/* * The call to cgroup_lock() in the freezer.state write method prevents * a write to that file racing against an attach, and hence the
@@ -231,7 +238,7 @@ static void update_if_frozen(struct cgroup *cgroup,cgroup_iter_start (cgroup, &it);while ((task =cgroup_iter_next (cgroup, &it))) { ntotal++; -if (frozen (task)) +if (is_task_frozen_enough (task)) nfrozen++; }
@@ -284,7 +291,7 @@ static int try_to_freeze_cgroup(struct cgroup *cgroup, struct freezer *freezer)while ((task =cgroup_iter_next (cgroup, &it))) {if (!freeze_task (task, true))continue ; -if (frozen (task)) +if (is_task_frozen_enough (task))continue ;if (!freezing (task) && !freezer_should_skip (task)) num_cant_freeze_now++;
kernel/hrtimer.c +4 -2
@@ -885,10 +885,13 @@ static void __remove_hrtimer(struct hrtimer *timer,struct hrtimer_clock_base *base, unsigned long newstate, int reprogram) { + struct timerqueue_node *next_timer;if (!(timer->state &HRTIMER_STATE_ENQUEUED )) goto out; -if (&timer->node ==timerqueue_getnext (&base->active)) { + next_timer =timerqueue_getnext (&base->active); +timerqueue_del (&base->active, &timer->node); +if (&timer->node == next_timer) {#ifdef CONFIG_HIGH_RES_TIMERS /* Reprogram the clock event device. if enabled */ if (reprogram &&hrtimer_hres_active ()) {
@@ -901,7 +904,6 @@ static void __remove_hrtimer(struct hrtimer *timer, }#endif } -timerqueue_del (&base->active, &timer->node);if (!timerqueue_getnext (&base->active)) base->cpu_base->active_bases &= ~(1 << base->index); out:
kernel/irq/manage.c +4 -1
@@ -620,8 +620,9 @@ static irqreturn_t irq_nested_primary_handler(int irq, void *dev_id)static int irq_wait_for_interrupt (struct irqaction *action) { +set_current_state (TASK_INTERRUPTIBLE ); +while (!kthread_should_stop ()) { -set_current_state (TASK_INTERRUPTIBLE );if (test_and_clear_bit (IRQTF_RUNTHREAD , &action->thread_flags)) {
@@ -629,7 +630,9 @@ static int irq_wait_for_interrupt(struct irqaction *action)return 0 ; }schedule (); +set_current_state (TASK_INTERRUPTIBLE ); } +__set_current_state (TASK_RUNNING );return -1 ; }
kernel/irq/spurious.c +3 -1
@@ -84,7 +84,9 @@ static int try_one_irq(int irq, struct irq_desc *desc, bool force)*/ action = desc->action;if (!action || !(action->flags &IRQF_SHARED ) || - (action->flags & __IRQF_TIMER) || !action->next) + (action->flags & __IRQF_TIMER) || + (action->handler (irq, action->dev_id) ==IRQ_HANDLED ) || + !action->next) goto out;/* Already running on another processor */
kernel/jump_label.c +2 -1
@@ -66,8 +66,9 @@ void jump_label_inc(struct jump_label_key *key)return ;jump_label_lock (); -if (atomic_add_return (1 , &key->enabled) ==1 ) +if (atomic_read (&key->enabled) ==0 )jump_label_update (key,JUMP_LABEL_ENABLE ); +atomic_inc (&key->enabled);jump_label_unlock (); }
kernel/time/clockevents.c +1 -0
@@ -286,6 +286,7 @@ void clockevents_exchange_device(struct clock_event_device *old,* released list and do a notify add later. */ if (old) { + old->event_handler = clockevents_handle_noop;clockevents_set_mode (old,CLOCK_EVT_MODE_UNUSED );list_del (&old->list);list_add (&old->list, &clockevents_released);
kernel/time/clocksource.c +2 -2
@@ -531,7 +531,7 @@ static u64 clocksource_max_deferment(struct clocksource *cs)* note a margin of 12.5% is used because this can be computed with * a shift, versus say 10% which would require division. */ -return max_nsecs - (max_nsecs >>5 ); +return max_nsecs - (max_nsecs >>3 ); }#ifndef CONFIG_ARCH_USES_GETTIMEOFFSET
@@ -653,7 +653,7 @@ void __clocksource_updatefreq_scale(struct clocksource *cs, u32 scale, u32 freq)* ~ 0.06ppm granularity for NTP. We apply the same 12.5% * margin as we do in clocksource_max_deferment() */ - sec = (cs->mask - (cs->mask >>5 )); + sec = (cs->mask - (cs->mask >>3 ));do_div (sec, freq);do_div (sec, scale);if (!sec)
kernel/time/tick-broadcast.c +1 -1
@@ -71,7 +71,7 @@ int tick_check_broadcast_device(struct clock_event_device *dev) (dev->features & CLOCK_EVT_FEAT_C3STOP))return 0 ; -clockevents_exchange_device (NULL , dev); +clockevents_exchange_device (tick_broadcast_device.evtdev, dev); tick_broadcast_device.evtdev = dev;if (!cpumask_empty (tick_get_broadcast_mask ()))tick_broadcast_start_periodic (dev);
kernel/time/timekeeping.c +4 -0
@@ -249,6 +249,8 @@ ktime_t ktime_get(void) secs = xtime.tv_sec + wall_to_monotonic.tv_sec; nsecs = xtime.tv_nsec + wall_to_monotonic.tv_nsec; nsecs +=timekeeping_get_ns (); +/* If arch requires, add in gettimeoffset() */ + nsecs +=arch_gettimeoffset (); }while (read_seqretry (&xtime_lock, seq));/*
@@ -280,6 +282,8 @@ void ktime_get_ts(struct timespec *ts) *ts = xtime; tomono = wall_to_monotonic; nsecs =timekeeping_get_ns (); +/* If arch requires, add in gettimeoffset() */ + nsecs +=arch_gettimeoffset (); }while (read_seqretry (&xtime_lock, seq));
kernel/trace/trace_events.c +0 -1
@@ -1096,7 +1096,6 @@ event_subsystem_dir(const char *name, struct dentry *d_events)/* First see if we did not already create this dir */ list_for_each_entry (system, &event_subsystems, list) {if (strcmp (system->name, name) ==0 ) { -__get_system (system); system->nr_events++;return system->entry; }
kernel/trace/trace_events_filter.c +3 -3
@@ -1766,7 +1766,7 @@ static int replace_system_preds(struct event_subsystem *system,* replace the filter for the call. */ filter = call->filter; - call->filter = filter_item->filter; +rcu_assign_pointer (call->filter, filter_item->filter); filter_item->filter = filter; fail = false;
@@ -1821,7 +1821,7 @@ int apply_event_filter(struct ftrace_event_call *call, char *filter_string) filter = call->filter;if (!filter) goto out_unlock; - call->filter =NULL ; +RCU_INIT_POINTER (call->filter,NULL );/* Make sure the filter is not being used */ synchronize_sched ();__free_filter (filter);
@@ -1862,7 +1862,7 @@ out:* string */ tmp = call->filter; - call->filter = filter; +rcu_assign_pointer (call->filter, filter);if (tmp) {/* Make sure the call is done with the filter */ synchronize_sched ();
mm/hugetlb.c +2 -0
@@ -2415,6 +2415,8 @@ retry_avoidcopy:* anon_vma prepared. */ if (unlikely (anon_vma_prepare (vma))) { +page_cache_release (new_page); +page_cache_release (old_page);/* Caller expects lock to be held */ spin_lock (&mm->page_table_lock);return VM_FAULT_OOM ;
net/mac80211/agg-tx.c +22 -2
@@ -162,6 +162,12 @@ int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,return -ENOENT ; } +/* if we're already stopping ignore any new requests to stop */ +if (test_bit (HT_AGG_STATE_STOPPING , &tid_tx->state)) { +spin_unlock_bh (&sta->lock); +return -EALREADY ; + } +if (test_bit (HT_AGG_STATE_WANT_START , &tid_tx->state)) {/* not even started yet! */ ieee80211_assign_tid_tx (sta, tid,NULL );
@@ -170,6 +176,8 @@ int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,return 0 ; } +set_bit (HT_AGG_STATE_STOPPING , &tid_tx->state); +spin_unlock_bh (&sta->lock);#ifdef CONFIG_MAC80211_HT_DEBUG
@@ -177,8 +185,6 @@ int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid, sta->sta.addr, tid);#endif /* CONFIG_MAC80211_HT_DEBUG */ -set_bit (HT_AGG_STATE_STOPPING , &tid_tx->state); -del_timer_sync (&tid_tx->addba_resp_timer);/*
@@ -188,6 +194,20 @@ int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,*/ clear_bit (HT_AGG_STATE_OPERATIONAL , &tid_tx->state); +/* +* There might be a few packets being processed right now (on +* another CPU) that have already gotten past the aggregation +* check when it was still OPERATIONAL and consequently have +* IEEE80211_TX_CTL_AMPDU set. In that case, this code might +* call into the driver at the same time or even before the +* TX paths calls into it, which could confuse the driver. +* +* Wait for all currently running TX paths to finish before +* telling the driver. New packets will not go through since +* the aggregation session is no longer OPERATIONAL. +*/ +synchronize_net (); + tid_tx->stop_initiator = initiator; tid_tx->tx_stop = tx;
net/sunrpc/xprtsock.c +1 -2
@@ -485,7 +485,7 @@ static int xs_nospace(struct rpc_task *task)struct rpc_rqst *req = task->tk_rqstp;struct rpc_xprt *xprt = req->rq_xprt; struct sock_xprt *transport = container_of(xprt, struct sock_xprt, xprt); -int ret =0 ; +int ret = -EAGAIN ; dprintk("RPC: %5u xmit incomplete (%u left of %u)\n", task->tk_pid, req->rq_slen - req->rq_bytes_sent,
@@ -497,7 +497,6 @@ static int xs_nospace(struct rpc_task *task)/* Don't race with disconnect */ if (xprt_connected (xprt)) {if (test_bit (SOCK_ASYNC_NOSPACE , &transport->sock->flags)) { - ret = -EAGAIN ;/* * Notify TCP that we're limited by the application * window size
net/wireless/nl80211.c +2 -2
@@ -83,8 +83,8 @@ static const struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] = { [NL80211_ATTR_IFINDEX] = { .type = NLA_U32 }, [NL80211_ATTR_IFNAME] = { .type = NLA_NUL_STRING, .len = IFNAMSIZ-1 }, - [NL80211_ATTR_MAC] = { .type = NLA_BINARY, .len = ETH_ALEN }, - [NL80211_ATTR_PREV_BSSID] = { .type = NLA_BINARY, .len = ETH_ALEN }, + [NL80211_ATTR_MAC] = { .len = ETH_ALEN }, + [NL80211_ATTR_PREV_BSSID] = { .len = ETH_ALEN }, [NL80211_ATTR_KEY] = { .type = NLA_NESTED, }, [NL80211_ATTR_KEY_DATA] = { .type = NLA_BINARY,
net/wireless/reg.c +33 -16
128 lines not on this page · raw message
sound/pci/lx6464es/lx_core.c +12 -4
@@ -80,8 +80,12 @@ unsigned long lx_dsp_reg_read(struct lx6464es *chip, int port)void lx_dsp_reg_readbuf (struct lx6464es *chip,int port,u32 *data,u32 len) { -void __iomem *address =lx_dsp_register (chip, port); -memcpy_fromio (data, address, len*sizeof (u32)); +u32 __iomem *address =lx_dsp_register (chip, port); +int i; + +/* we cannot use memcpy_fromio */ +for (i =0 ; i != len; ++i) + data[i] =ioread32 (address + i); }
@@ -94,8 +98,12 @@ void lx_dsp_reg_write(struct lx6464es *chip, int port, unsigned data)void lx_dsp_reg_writebuf (struct lx6464es *chip,int port,const u32 *data,u32 len) { -void __iomem *address =lx_dsp_register (chip, port); -memcpy_toio (address, data, len*sizeof (u32)); +u32 __iomem *address =lx_dsp_register (chip, port); +int i; + +/* we cannot use memcpy_to */ +for (i =0 ; i != len; ++i) +iowrite32 (data[i], address + i); }
sound/soc/codecs/wm8731.c +1 -0
@@ -463,6 +463,7 @@ static int wm8731_set_bias_level(struct snd_soc_codec *codec,snd_soc_write (codec,WM8731_PWR ,0xffff );regulator_bulk_disable (ARRAY_SIZE (wm8731->supplies), wm8731->supplies); + codec->cache_sync =1 ;break ; } codec->dapm.bias_level = level;
sound/soc/codecs/wm8753.c +3 -0
@@ -189,6 +189,9 @@ static int wm8753_set_dai(struct snd_kcontrol *kcontrol,struct wm8753_priv *wm8753 =snd_soc_codec_get_drvdata (codec);u16 ioctl; +if (wm8753->dai_func == ucontrol->value.integer.value[0 ]) +return 0 ; +if (codec->active)return -EBUSY ;
sound/soc/fsl/fsl_ssi.c +1 -0
@@ -698,6 +698,7 @@ static int __devinit fsl_ssi_probe(struct platform_device *pdev)/* Initialize the the device_attribute structure */ dev_attr = &ssi_private->dev_attr; +sysfs_attr_init (&dev_attr->attr); dev_attr->attr.name ="statistics" ; dev_attr->attr.mode =S_IRUGO ; dev_attr->show = fsl_sysfs_ssi_show;
tools/perf/util/trace-event-parse.c +2 -0
@@ -1537,6 +1537,8 @@ process_flags(struct event *event, struct print_arg *arg, char **tok) field =malloc_or_die (sizeof (*field)); type =process_arg (event, field, &token); +while (type ==EVENT_OP ) + type =process_op (event, field, &token);if (test_type_token (type, token,EVENT_DELIM ,"," )) goto out_free;