Linux 3.1.5
I'm announcing the release of the 3.1.5 kernel.
All users of the 3.1 kernel series must upgrade.
The updated 3.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.1.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/omap_hwmod.c | 6 arch/arm/mach-omap2/pm.c | 6 arch/arm/mach-omap2/smartreflex.c | 2 arch/arm/mach-omap2/twl-common.c | 11 + arch/arm/mach-omap2/twl-common.h | 3 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 | 14 ++ drivers/gpu/drm/i915/intel_panel.c | 3 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/hid/hid-core.c | 2 drivers/hid/hid-ids.h | 2 drivers/i2c/algos/i2c-algo-bit.c | 4 drivers/infiniband/core/addr.c | 9 - drivers/infiniband/hw/cxgb3/iwch_cm.c | 4 drivers/infiniband/hw/cxgb4/cm.c | 4 drivers/infiniband/hw/mlx4/qp.c | 2 drivers/infiniband/hw/nes/nes_cm.c | 6 drivers/infiniband/ulp/ipoib/ipoib_main.c | 18 +- drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 6 drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 36 +++-- drivers/net/wireless/iwlwifi/iwl-agn-sta.c | 5 drivers/net/wireless/iwlwifi/iwl-agn.c | 29 ++-- drivers/net/wireless/iwlwifi/iwl-agn.h | 2 drivers/net/wireless/iwlwifi/iwl-pci.c | 8 - drivers/net/wireless/p54/p54spi.c | 5 drivers/net/wireless/rt2x00/rt2800lib.c | 2 drivers/net/wireless/rtlwifi/ps.c | 17 +- 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/regulator/aat2870-regulator.c | 2 drivers/regulator/twl-regulator.c | 46 +++++++ drivers/rtc/class.c | 10 - drivers/rtc/interface.c | 44 +++++-- drivers/s390/net/qeth_l3_main.c | 7 + drivers/scsi/scsi_lib.c | 3 drivers/staging/comedi/comedi_fops.c | 94 +++++++++++---- drivers/staging/rts_pstor/rtsx.c | 1 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/musb/musb_core.c | 6 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 | 26 ++-- fs/ecryptfs/ecryptfs_kernel.h | 5 fs/ecryptfs/file.c | 23 +++ fs/ecryptfs/inode.c | 52 +++++--- fs/ext4/inode.c | 2 fs/xfs/xfs_buf.h | 1 fs/xfs/xfs_file.c | 34 ++++- fs/xfs/xfs_iops.c | 2 fs/xfs/xfs_mount.c | 29 +--- fs/xfs/xfs_qm.c | 3 fs/xfs/xfs_vnodeops.c | 14 +- include/drm/drm_mode.h | 2 include/drm/drm_pciids.h | 8 + include/linux/clocksource.h | 3 include/linux/sigma.h | 13 -- include/net/inetpeer.h | 1 include/net/red.h | 15 -- 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 | 62 ++++++++-- kernel/time/tick-broadcast.c | 2 kernel/time/timekeeping.c | 11 + kernel/trace/ftrace.c | 1 kernel/trace/trace_events.c | 1 kernel/trace/trace_events_filter.c | 6 mm/hugetlb.c | 2 mm/slab.c | 5 net/bridge/br_multicast.c | 2 net/ipv4/ah4.c | 6 net/ipv4/ip_options.c | 1 net/ipv4/route.c | 152 ++++++++++++++++--------- net/ipv6/ah6.c | 6 net/mac80211/agg-tx.c | 41 ++++++ net/mac80211/main.c | 6 net/sched/sch_red.c | 4 net/sched/sch_teql.c | 31 +++-- net/sunrpc/xprtsock.c | 3 net/wireless/nl80211.c | 4 net/wireless/reg.c | 49 +++++--- sound/pci/hda/patch_realtek.c | 14 ++ sound/pci/hda/patch_sigmatel.c | 18 -- sound/pci/hda/patch_via.c | 76 +++++++----- sound/pci/lx6464es/lx_core.c | 16 +- sound/soc/codecs/ad1836.h | 2 sound/soc/codecs/sta32x.c | 63 ++++++++++ sound/soc/codecs/sta32x.h | 1 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 135 files changed, 1170 insertions(+), 471 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()
Arve Hjønnevåg (1):
rtc: Fix some bugs that allowed accumulating time drift in suspend/resume
Axel Lin (2):
regulator: aat2870: Fix the logic of checking if no id is matched in aat2870_get_regulator
ASoC: Fix wrong define for AD1836_ADC_WORD_OFFSET
Bart Westgeest (1):
staging: usbip: bugfix for deadlock
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
Carlos Maiolino (1):
xfs: Fix possible memory corruption in xfs_readlink
Charles Chin (1):
ALSA: hda - Fix S3/S4 problem on machines with VREF-pin mute-LED
Christoph Hellwig (2):
xfs: avoid direct I/O write vs buffered I/O race
xfs: fix buffer flushing during unmount
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!
Dave Chinner (1):
xfs: don't serialise direct IO reads on page cache checks
David S. Miller (1):
ipv4: Perform peer validation on cached route lookup.
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.
Eric Dumazet (7):
IB: Fix RCU lockdep splats
ipv4: fix lockdep splat in rt_cache_seq_show
sch_teql: fix lockdep splat
ipv4: fix redirect handling
inet: add a redirect generation id in inetpeer
sch_red: fix red_calc_qavg_from_idle_time
sch_red: fix red_change
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
Flavio Leitner (1):
route: fix ICMP redirect validation
Frank Blaschka (1):
qeth: l3 fix rcu splat in xmit
Gao feng (1):
ipv4: avoid useless call of the function check_peer_pmtu
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 (1):
Linux 3.1.5
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
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
Johannes Berg (3):
cfg80211: fix regulatory NULL dereference
mac80211: don't stop a single aggregation session twice
iwlagn: fix HW crypto for TX-only keys
Johannes Stezenbach (1):
ASoC: sta32x: preserve coefficient RAM
John Stultz (1):
clocksource: Avoid selecting mult values that might overflow when adjusted
Julian Anastasov (1):
ipv4: make sure RTO_ONLINK is saved in routing cache
Kevin Hilman (2):
ARM: OMAP: PM: only register TWL with voltage layer when device is present
usb: musb: PM: fix context save/restore in suspend/resume path
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
Li Wei (1):
ipv4: fix for ip_options_rcv_srr() daddr update.
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 Buesch (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
Mitsuo Hayasaka (2):
xfs: Return -EIO when xfs_vn_getattr() failed
xfs: use doalloc flag in xfs_qm_dqattach_one()
Nick Bowler (2):
ah: Correctly pass error codes in ahash output callback.
ah: Read nexthdr value before overwriting it in ahash input callback.
Nikolay Martynov (1):
mac80211: fix race condition caused by late addBA response
Peter Chubb (1):
x86: Fix "Acer Aspire 1" reboot hang
Peter Zijlstra (2):
perf/x86: Fix PEBS instruction unwind
slab, lockdep: Fix silly bug
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
Simon Wunderlich (1):
mac80211: fill rate filter for internal scan requests
Stanislaw Gruszka (1):
rtlwifi: fix lps_lock deadlock
Steven Rostedt (2):
ftrace: Remove force undef config value left for testing
perf: Fix parsing of __print_flags() in TP_printk()
Takashi Iwai (3):
drm/i915: Fix inconsistent backlight level during disabled
ALSA: hda - Fix jack-detection control of VT1708
ALSA: hda/realtek - Fix missing inits of item indices for auto-mic
Tejun Heo (2):
ext4: fix racy use-after-free in ext4_end_io_dio()
trace_events_filter: Use rcu_assign_pointer() when setting ftrace_event_call->filter
Tero Kristo (1):
regulator: twl: fix twl4030 support for smps regulators
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 (1):
SUNRPC: Ensure we return EAGAIN in xs_nospace if congestion is cleared
Tyler Hicks (3):
eCryptfs: Prevent file create race condition
eCryptfs: Flush file in vma close
eCryptfs: Extend array bounds for all filename chars
Veli-Pekka Peltola (1):
usb: option: add SIMCom SIM5218
Wey-Yi Guy (2):
iwlwifi: allow pci_enable_msi fail
iwlwifi: do not re-configure HT40 after associated
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
sricharan (1):
ARM: OMAP: hwmod: Fix the addr space, irq, dma count APIs
stephen hemminger (1):
bridge: correct IPv6 checksum after pull
wwang (1):
staging:rts_pstor:Complete scanning_done variable
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 1 -SUBLEVEL = 4 +SUBLEVEL = 5 EXTRAVERSION = NAME = "Divemaster Edition"
arch/arm/Kconfig +12 -0
@@ -1297,6 +1297,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 source "arch/arm/common/Kconfig"
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
@@ -192,6 +192,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
@@ -329,6 +329,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/omap_hwmod.c +3 -3
@@ -749,7 +749,7 @@ static int _count_mpu_irqs(struct omap_hwmod *oh) ohii = &oh->mpu_irqs[i++]; }while (ohii->irq !=-1 ); -return i; +return i-1 ; }/**
@@ -772,7 +772,7 @@ static int _count_sdma_reqs(struct omap_hwmod *oh) ohdi = &oh->sdma_reqs[i++]; }while (ohdi->dma_req !=-1 ); -return i; +return i-1 ; }/**
@@ -795,7 +795,7 @@ static int _count_ocp_if_addr_spaces(struct omap_hwmod_ocp_if *os) mem = &os->addr[i++]; }while (mem->pa_start != mem->pa_end); -return i; +return i-1 ; }/**
arch/arm/mach-omap2/pm.c +2 -4
@@ -23,6 +23,7 @@#include "powerdomain.h" #include "clockdomain.h" #include "pm.h" +#include "twl-common.h" static struct omap_device_pm_latency *pm_lats;
@@ -251,11 +252,8 @@ postcore_initcall(omap2_common_pm_init);static int __init omap2_common_pm_late_init (void ) { -/* Init the OMAP TWL parameters */ -omap3_twl_init (); -omap4_twl_init (); -/* Init the voltage layer */ +omap_pmic_late_init ();omap_voltage_late_init ();/* Initialize the voltages */
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-omap2/twl-common.c +11 -0
@@ -30,6 +30,7 @@#include <plat/usb.h> #include "twl-common.h" +#include "pm.h" static struct i2c_board_info __initdata pmic_i2c_board_info = { .addr =0x48 ,
@@ -48,6 +49,16 @@ void __init omap_pmic_init(int bus, u32 clkrate,omap_register_i2c_bus (bus, clkrate, &pmic_i2c_board_info,1 ); } +void __init omap_pmic_late_init (void ) +{ +/* Init the OMAP TWL parameters (if PMIC has been registerd) */ +if (!pmic_i2c_board_info.irq) +return ; + +omap3_twl_init (); +omap4_twl_init (); +} +#if defined(CONFIG_ARCH_OMAP3 )static struct twl4030_usb_data omap3_usb_pdata = { .usb_mode = T2_USB_MODE_ULPI,
arch/arm/mach-omap2/twl-common.h +3 -0
@@ -1,6 +1,8 @@#ifndef __OMAP_PMIC_COMMON__#define __OMAP_PMIC_COMMON__ +#include <plat/irqs.h> +#define TWL_COMMON_PDATA_USB (1 << 0)#define TWL_COMMON_PDATA_BCI (1 << 1)#define TWL_COMMON_PDATA_MADC (1 << 2)
@@ -30,6 +32,7 @@ struct twl4030_platform_data;void omap_pmic_init (int bus,u32 clkrate,const char *pmic_type,int pmic_irq,struct twl4030_platform_data *pmic_data); +void omap_pmic_late_init (void );static inline void omap2_pmic_init (const char *pmic_type,struct twl4030_platform_data *pmic_data)
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
@@ -146,7 +146,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
@@ -338,7 +338,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
@@ -1868,6 +1868,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
@@ -822,6 +822,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
@@ -3401,6 +3401,10 @@#define GT_FIFO_FREE_ENTRIES 0x120008#define GT_FIFO_NUM_RESERVED_ENTRIES 20 +#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 +14 -0
@@ -7882,6 +7882,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/i915/intel_panel.c +2 -1
@@ -326,7 +326,8 @@ static int intel_panel_update_status(struct backlight_device *bd)static int intel_panel_get_brightness (struct backlight_device *bd) {struct drm_device *dev =bl_get_data (bd); -return intel_panel_get_backlight (dev); +struct drm_i915_private *dev_priv = dev->dev_private; +return dev_priv->backlight_level; }static const struct backlight_ops intel_panel_bl_ops = {
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/hid/hid-core.c +1 -1
@@ -1728,8 +1728,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/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/infiniband/core/addr.c +6 -3
@@ -215,7 +215,9 @@ static int addr4_resolve(struct sockaddr_in *src_in, neigh =neigh_lookup (&arp_tbl, &rt->rt_gateway, rt->dst.dev);if (!neigh || !(neigh->nud_state &NUD_VALID )) { +rcu_read_lock ();neigh_event_send (dst_get_neighbour (&rt->dst),NULL ); +rcu_read_unlock (); ret = -ENODATA ;if (neigh) goto release;
@@ -273,15 +275,16 @@ static int addr6_resolve(struct sockaddr_in6 *src_in, goto put; } +rcu_read_lock (); neigh =dst_get_neighbour (dst);if (!neigh || !(neigh->nud_state &NUD_VALID )) {if (neigh)neigh_event_send (neigh,NULL ); ret = -ENODATA ; - goto put; + }else { + ret =rdma_copy_addr (addr, dst->dev, neigh->ha); } - - ret =rdma_copy_addr (addr, dst->dev, neigh->ha); +rcu_read_unlock (); put:dst_release (dst);return ret;
drivers/infiniband/hw/cxgb3/iwch_cm.c +4 -0
@@ -1365,8 +1365,10 @@ static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) goto reject; } dst = &rt->dst; +rcu_read_lock (); neigh =dst_get_neighbour (dst); l2t =t3_l2t_get (tdev, neigh, neigh->dev); +rcu_read_unlock ();if (!l2t) { printk(KERN_ERR MOD "%s - failed to allocate l2t entry!\n", __func__);
@@ -1936,10 +1938,12 @@ int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) } ep->dst = &rt->dst; +rcu_read_lock (); neigh =dst_get_neighbour (ep->dst);/* get a l2t entry */ ep->l2t =t3_l2t_get (ep->com.tdev, neigh, neigh->dev); +rcu_read_unlock ();if (!ep->l2t) { printk(KERN_ERR MOD "%s - cannot alloc l2e.\n", __func__); err = -ENOMEM ;
drivers/infiniband/hw/cxgb4/cm.c +4 -0
@@ -1358,6 +1358,7 @@ static int pass_accept_req(struct c4iw_dev *dev, struct sk_buff *skb) goto reject; } dst = &rt->dst; +rcu_read_lock (); neigh =dst_get_neighbour (dst);if (neigh->dev->flags &IFF_LOOPBACK ) { pdev =ip_dev_find (&init_net, peer_ip);
@@ -1384,6 +1385,7 @@ static int pass_accept_req(struct c4iw_dev *dev, struct sk_buff *skb) rss_qid = dev->rdev.lldi.rxq_ids[cxgb4_port_idx (neigh->dev) * step]; } +rcu_read_unlock ();if (!l2t) { printk(KERN_ERR MOD "%s - failed to allocate l2t entry!\n", __func__);
@@ -1909,6 +1911,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) } ep->dst = &rt->dst; +rcu_read_lock (); neigh =dst_get_neighbour (ep->dst);/* get a l2t entry */
@@ -1945,6 +1948,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) ep->rss_qid = ep->com.dev->rdev.lldi.rxq_ids[cxgb4_port_idx (neigh->dev) * step]; } +rcu_read_unlock ();if (!ep->l2t) { printk(KERN_ERR MOD "%s - cannot alloc l2e.\n", __func__); err = -ENOMEM ;
drivers/infiniband/hw/mlx4/qp.c +1 -1
@@ -1309,7 +1309,7 @@ static int build_mlx_header(struct mlx4_ib_sqp *sqp, struct ib_send_wr *wr,int is_eth;int is_vlan =0 ;int is_grh; -u16 vlan; +u16 vlan =0 ; send_size =0 ;for (i =0 ; i < wr->num_sge; ++i)
drivers/infiniband/hw/nes/nes_cm.c +4 -2
@@ -1150,9 +1150,11 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpineigh_release (neigh); } -if ((neigh ==NULL ) || (!(neigh->nud_state &NUD_VALID ))) +if ((neigh ==NULL ) || (!(neigh->nud_state &NUD_VALID ))) { +rcu_read_lock ();neigh_event_send (dst_get_neighbour (&rt->dst),NULL ); - +rcu_read_unlock (); + }ip_rt_put (rt);return rc; }
drivers/infiniband/ulp/ipoib/ipoib_main.c +11 -7
@@ -555,6 +555,7 @@ static int path_rec_start(struct net_device *dev,return 0 ; } +/* called with rcu_read_lock */ static void neigh_add_path (struct sk_buff *skb,struct net_device *dev) {struct ipoib_dev_priv *priv =netdev_priv (dev);
@@ -636,6 +637,7 @@ err_drop:spin_unlock_irqrestore (&priv->lock, flags); } +/* called with rcu_read_lock */ static void ipoib_path_lookup (struct sk_buff *skb,struct net_device *dev) {struct ipoib_dev_priv *priv =netdev_priv (skb->dev);
@@ -720,13 +722,14 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)struct neighbour *n =NULL ;unsigned long flags; +rcu_read_lock ();if (likely (skb_dst (skb))) n =dst_get_neighbour (skb_dst (skb));if (likely (n)) {if (unlikely (!*to_ipoib_neigh (n))) {ipoib_path_lookup (skb, dev); -return NETDEV_TX_OK ; + goto unlock; } neigh = *to_ipoib_neigh (n);
@@ -749,17 +752,17 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)ipoib_neigh_free (dev, neigh);spin_unlock_irqrestore (&priv->lock, flags);ipoib_path_lookup (skb, dev); -return NETDEV_TX_OK ; + goto unlock; }if (ipoib_cm_get (neigh)) {if (ipoib_cm_up (neigh)) {ipoib_cm_send (dev, skb,ipoib_cm_get (neigh)); -return NETDEV_TX_OK ; + goto unlock; } }else if (neigh->ah) {ipoib_send (dev, skb, neigh->ah,IPOIB_QPN (n->ha)); -return NETDEV_TX_OK ; + goto unlock; }if (skb_queue_len (&neigh->queue) <IPOIB_MAX_PATH_REC_QUEUE ) {
@@ -793,13 +796,14 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev) phdr->hwaddr + 4);dev_kfree_skb_any (skb); ++dev->stats.tx_dropped; -return NETDEV_TX_OK ; + goto unlock; }unicast_arp_send (skb, dev, phdr); } } - +unlock: +rcu_read_unlock ();return NETDEV_TX_OK ; }
@@ -837,7 +841,7 @@ static int ipoib_hard_header(struct sk_buff *skb, dst =skb_dst (skb); n =NULL ;if (dst) - n =dst_get_neighbour (dst); + n =dst_get_neighbour_raw (dst);if ((!dst || !n) && daddr) {struct ipoib_pseudoheader *phdr = (struct ipoib_pseudoheader *)skb_push (skb,sizeof *phdr);
drivers/infiniband/ulp/ipoib/ipoib_multicast.c +4 -2
@@ -265,7 +265,7 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast, skb->dev = dev;if (dst) - n =dst_get_neighbour (dst); + n =dst_get_neighbour_raw (dst);if (!dst || !n) {/* put pseudoheader back on for next time */ skb_push (skb,sizeof (struct ipoib_pseudoheader ));
@@ -721,6 +721,8 @@ out:if (mcast && mcast->ah) {struct dst_entry *dst =skb_dst (skb);struct neighbour *n =NULL ; + +rcu_read_lock ();if (dst) n =dst_get_neighbour (dst);if (n && !*to_ipoib_neigh (n)) {
@@ -733,7 +735,7 @@ out:list_add_tail (&neigh->list, &mcast->neigh_list); } } - +rcu_read_unlock ();spin_unlock_irqrestore (&priv->lock, flags);ipoib_send (dev, skb, mcast->ah,IB_MULTICAST_QPN );return ;
drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +23 -13
@@ -542,6 +542,24 @@ int iwlagn_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)return 0 ; } +void iwlagn_config_ht40 (struct ieee80211_conf *conf, +struct iwl_rxon_context *ctx) +{ +if (conf_is_ht40_minus (conf)) { + ctx->ht.extension_chan_offset = +IEEE80211_HT_PARAM_CHA_SEC_BELOW ; + ctx->ht.is_40mhz = true; + }else if (conf_is_ht40_plus (conf)) { + ctx->ht.extension_chan_offset = +IEEE80211_HT_PARAM_CHA_SEC_ABOVE ; + ctx->ht.is_40mhz = true; + }else { + ctx->ht.extension_chan_offset = +IEEE80211_HT_PARAM_CHA_SEC_NONE ; + ctx->ht.is_40mhz = false; + } +} +int iwlagn_mac_config (struct ieee80211_hw *hw,u32 changed) {struct iwl_priv *priv = hw->priv;
@@ -600,19 +618,11 @@ int iwlagn_mac_config(struct ieee80211_hw *hw, u32 changed) ctx->ht.enabled =conf_is_ht (conf);if (ctx->ht.enabled) { -if (conf_is_ht40_minus (conf)) { - ctx->ht.extension_chan_offset = -IEEE80211_HT_PARAM_CHA_SEC_BELOW ; - ctx->ht.is_40mhz = true; - }else if (conf_is_ht40_plus (conf)) { - ctx->ht.extension_chan_offset = -IEEE80211_HT_PARAM_CHA_SEC_ABOVE ; - ctx->ht.is_40mhz = true; - }else { - ctx->ht.extension_chan_offset = -IEEE80211_HT_PARAM_CHA_SEC_NONE ; - ctx->ht.is_40mhz = false; - } +/* if HT40 is used, it should not change +* after associated except channel switch */ +if (iwl_is_associated_ctx (ctx) && + !ctx->ht.is_40mhz) +iwlagn_config_ht40 (conf, ctx); }else ctx->ht.is_40mhz = false;
drivers/net/wireless/iwlwifi/iwl-agn-sta.c +0 -5
@@ -440,9 +440,6 @@ int iwl_set_dynamic_key(struct iwl_priv *priv,switch (keyconf->cipher) {case WLAN_CIPHER_SUITE_TKIP : - keyconf->flags |=IEEE80211_KEY_FLAG_GENERATE_MMIC ; - keyconf->flags |=IEEE80211_KEY_FLAG_GENERATE_IV ; -if (sta) addr = sta->addr;else /* station mode case only */
@@ -455,8 +452,6 @@ int iwl_set_dynamic_key(struct iwl_priv *priv, seq.tkip.iv32, p1k, CMD_SYNC);break ;case WLAN_CIPHER_SUITE_CCMP : - keyconf->flags |=IEEE80211_KEY_FLAG_GENERATE_IV ; -/* fall through */ case WLAN_CIPHER_SUITE_WEP40 :case WLAN_CIPHER_SUITE_WEP104 : ret = iwlagn_send_sta_key(priv, keyconf, sta_id,
drivers/net/wireless/iwlwifi/iwl-agn.c +14 -15
@@ -2793,6 +2793,17 @@ static int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,return -EOPNOTSUPP ; } +switch (key->cipher) { +case WLAN_CIPHER_SUITE_TKIP : + key->flags |=IEEE80211_KEY_FLAG_GENERATE_MMIC ; +/* fall through */ +case WLAN_CIPHER_SUITE_CCMP : + key->flags |=IEEE80211_KEY_FLAG_GENERATE_IV ; +break ; +default : +break ; + } +/* * We could program these keys into the hardware as well, but we * don't expect much multicast traffic in IBSS and having keys
@@ -3075,21 +3086,9 @@ static void iwlagn_mac_channel_switch(struct ieee80211_hw *hw,/* Configure HT40 channels */ ctx->ht.enabled =conf_is_ht (conf); -if (ctx->ht.enabled) { -if (conf_is_ht40_minus (conf)) { - ctx->ht.extension_chan_offset = -IEEE80211_HT_PARAM_CHA_SEC_BELOW ; - ctx->ht.is_40mhz = true; - }else if (conf_is_ht40_plus (conf)) { - ctx->ht.extension_chan_offset = -IEEE80211_HT_PARAM_CHA_SEC_ABOVE ; - ctx->ht.is_40mhz = true; - }else { - ctx->ht.extension_chan_offset = -IEEE80211_HT_PARAM_CHA_SEC_NONE ; - ctx->ht.is_40mhz = false; - } - }else +if (ctx->ht.enabled) +iwlagn_config_ht40 (conf, ctx); +else ctx->ht.is_40mhz = false;if ((le16_to_cpu (ctx->staging.channel) != ch))
drivers/net/wireless/iwlwifi/iwl-agn.h +2 -0
@@ -135,6 +135,8 @@ void iwlagn_bss_info_changed(struct ieee80211_hw *hw,struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, u32 changes); +void iwlagn_config_ht40 (struct ieee80211_conf *conf, +struct iwl_rxon_context *ctx);/* uCode */ void iwlagn_rx_calib_result(struct iwl_priv *priv,
drivers/net/wireless/iwlwifi/iwl-pci.c +3 -5
@@ -442,10 +442,9 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)pci_write_config_byte (pdev,PCI_CFG_RETRY_TIMEOUT ,0x00 ); err =pci_enable_msi (pdev); -if (err) { -dev_printk (KERN_ERR , &pdev->dev,"pci_enable_msi failed" ); - goto out_iounmap; - } +if (err) +dev_printk (KERN_ERR , &pdev->dev, +"pci_enable_msi failed(0X%x)" , err);/* TODO: Move this away, not needed if not MSI */ /* enable rfkill interrupt: hw bug w/a */
@@ -466,7 +465,6 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) out_disable_msi:pci_disable_msi (pdev); -out_iounmap:pci_iounmap (pdev, pci_bus->hw_base); out_pci_release_regions:pci_set_drvdata (pdev,NULL );
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
@@ -3699,7 +3699,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/net/wireless/rtlwifi/ps.c +9 -8
@@ -394,7 +394,7 @@ void rtl_lps_enter(struct ieee80211_hw *hw)if (mac->link_state !=MAC80211_LINKED )return ; -spin_lock (&rtlpriv->locks.lps_lock); +spin_lock_irq (&rtlpriv->locks.lps_lock);/* Idle for a while if we connect to AP a while ago. */ if (mac->cnt_after_linked >=2 ) {
@@ -406,7 +406,7 @@ void rtl_lps_enter(struct ieee80211_hw *hw) } } -spin_unlock (&rtlpriv->locks.lps_lock); +spin_unlock_irq (&rtlpriv->locks.lps_lock); }/*Leave the leisure power save mode.*/
@@ -415,8 +415,9 @@ void rtl_lps_leave(struct ieee80211_hw *hw)struct rtl_priv *rtlpriv =rtl_priv (hw);struct rtl_ps_ctl *ppsc =rtl_psc (rtl_priv (hw));struct rtl_hal *rtlhal =rtl_hal (rtl_priv (hw)); +unsigned long flags; -spin_lock (&rtlpriv->locks.lps_lock); +spin_lock_irqsave (&rtlpriv->locks.lps_lock, flags);if (ppsc->fwctrl_lps) {if (ppsc->dot11_psmode !=EACTIVE ) {
@@ -437,7 +438,7 @@ void rtl_lps_leave(struct ieee80211_hw *hw)rtl_lps_set_psmode (hw,EACTIVE ); } } -spin_unlock (&rtlpriv->locks.lps_lock); +spin_unlock_irqrestore (&rtlpriv->locks.lps_lock, flags); }/* For sw LPS*/
@@ -538,9 +539,9 @@ void rtl_swlps_rf_awake(struct ieee80211_hw *hw)RT_CLEAR_PS_LEVEL (ppsc,RT_PS_LEVEL_ASPM ); } -spin_lock (&rtlpriv->locks.lps_lock); +spin_lock_irq (&rtlpriv->locks.lps_lock);rtl_ps_set_rf_state (hw,ERFON ,RF_CHANGE_BY_PS ); -spin_unlock (&rtlpriv->locks.lps_lock); +spin_unlock_irq (&rtlpriv->locks.lps_lock); }void rtl_swlps_rfon_wq_callback (void *data)
@@ -573,9 +574,9 @@ void rtl_swlps_rf_sleep(struct ieee80211_hw *hw)if (rtlpriv->link_info.busytraffic)return ; -spin_lock (&rtlpriv->locks.lps_lock); +spin_lock_irq (&rtlpriv->locks.lps_lock);rtl_ps_set_rf_state (hw,ERFSLEEP ,RF_CHANGE_BY_PS ); -spin_unlock (&rtlpriv->locks.lps_lock); +spin_unlock_irq (&rtlpriv->locks.lps_lock);if (ppsc->reg_rfps_level &RT_RF_OFF_LEVL_ASPM && !RT_IN_PS_LEVEL (ppsc,RT_PS_LEVEL_ASPM )) {
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/regulator/aat2870-regulator.c +1 -1
@@ -159,7 +159,7 @@ static struct aat2870_regulator *aat2870_get_regulator(int id)break ; } -if (!ri) +if (i ==ARRAY_SIZE (aat2870_regulators))return NULL ; ri->enable_addr =AAT2870_LDO_EN ;
drivers/regulator/twl-regulator.c +44 -2
70 lines not on this page · raw message
drivers/rtc/class.c +5 -5
@@ -66,7 +66,7 @@ static int rtc_suspend(struct device *dev, pm_message_t mesg)*/ delta =timespec_sub (old_system, old_rtc); delta_delta =timespec_sub (delta, old_delta); -if (abs (delta_delta.tv_sec) >=2 ) { +if (delta_delta.tv_sec <-2 || delta_delta.tv_sec >=2 ) {/* * if delta_delta is too large, assume time correction * has occured and set old_delta to the current delta.
@@ -100,9 +100,8 @@ static int rtc_resume(struct device *dev)rtc_tm_to_time (&tm, &new_rtc.tv_sec); new_rtc.tv_nsec =0 ; -if (new_rtc.tv_sec <= old_rtc.tv_sec) { -if (new_rtc.tv_sec < old_rtc.tv_sec) -pr_debug ("%s: time travel!\n" ,dev_name (&rtc->dev)); +if (new_rtc.tv_sec < old_rtc.tv_sec) { +pr_debug ("%s: time travel!\n" ,dev_name (&rtc->dev));return 0 ; }
@@ -119,7 +118,8 @@ static int rtc_resume(struct device *dev) sleep_time =timespec_sub (sleep_time,timespec_sub (new_system, old_system)); -timekeeping_inject_sleeptime (&sleep_time); +if (sleep_time.tv_sec >=0 ) +timekeeping_inject_sleeptime (&sleep_time);return 0 ; }
drivers/rtc/interface.c +34 -10
75 lines not on this page · raw message
drivers/s390/net/qeth_l3_main.c +7 -0
@@ -2740,11 +2740,13 @@ int inline qeth_l3_get_cast_type(struct qeth_card *card, struct sk_buff *skb)struct neighbour *n =NULL ;struct dst_entry *dst; +rcu_read_lock (); dst =skb_dst (skb);if (dst) n =dst_get_neighbour (dst);if (n) { cast_type = n->type; +rcu_read_unlock ();if ((cast_type ==RTN_BROADCAST ) || (cast_type ==RTN_MULTICAST ) || (cast_type ==RTN_ANYCAST ))
@@ -2752,6 +2754,8 @@ int inline qeth_l3_get_cast_type(struct qeth_card *card, struct sk_buff *skb)else return RTN_UNSPEC ; } +rcu_read_unlock (); +/* try something else */ if (skb->protocol ==ETH_P_IPV6 ) return (skb_network_header(skb)[24] == 0xff) ?
@@ -2807,6 +2811,8 @@ static void qeth_l3_fill_header(struct qeth_card *card, struct qeth_hdr *hdr, } hdr->hdr.l3.length = skb->len -sizeof (struct qeth_hdr ); + +rcu_read_lock (); dst =skb_dst (skb);if (dst) n =dst_get_neighbour (dst);
@@ -2853,6 +2859,7 @@ static void qeth_l3_fill_header(struct qeth_card *card, struct qeth_hdr *hdr,QETH_CAST_UNICAST |QETH_HDR_PASSTHRU ; } } +rcu_read_unlock (); } static inline void qeth_l3_hdr_csum(struct qeth_card *card,
drivers/scsi/scsi_lib.c +2 -1
@@ -1408,6 +1408,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;
@@ -1489,7 +1491,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/rts_pstor/rtsx.c +1 -0
@@ -1015,6 +1015,7 @@ static int __devinit rtsx_probe(struct pci_dev *pci, const struct pci_device_id th =kthread_create (rtsx_scan_thread, dev,"rtsx-scan" );if (IS_ERR (th)) {printk (KERN_ERR "Unable to start the device-scanning thread\n" ); +complete (&dev->scanning_done);quiesce_and_remove_host (dev); err =PTR_ERR (th); goto errout;
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
@@ -1476,30 +1476,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/musb/musb_core.c +0 -6
@@ -2302,18 +2302,12 @@ static int musb_suspend(struct device *dev)*/ } -musb_save_context (musb); -spin_unlock_irqrestore (&musb->lock, flags);return 0 ; }static int musb_resume_noirq (struct device *dev) { -struct musb *musb =dev_to_musb (dev); - -musb_restore_context (musb); -/* for static cmos like DaVinci, register values were preserved * unless for some reason the whole soc powered down or the USB * module got reset through the PSC (vs just being disabled).
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 +14 -12
@@ -967,7 +967,7 @@ static void ecryptfs_set_default_crypt_stat_vals(/** * ecryptfs_new_file_context -* @ecryptfs_dentry: The eCryptfs dentry +* @ecryptfs_inode: The eCryptfs inode * * If the crypto context for the file has not yet been established, * this is where we do that. Establishing a new crypto context
@@ -984,13 +984,13 @@ static void ecryptfs_set_default_crypt_stat_vals(* * Returns zero on success; non-zero otherwise */ -int ecryptfs_new_file_context (struct dentry *ecryptfs_dentry) +int ecryptfs_new_file_context (struct inode *ecryptfs_inode) {struct ecryptfs_crypt_stat *crypt_stat = - &ecryptfs_inode_to_private (ecryptfs_dentry->d_inode)->crypt_stat; + &ecryptfs_inode_to_private (ecryptfs_inode)->crypt_stat;struct ecryptfs_mount_crypt_stat *mount_crypt_stat = &ecryptfs_superblock_to_private ( - ecryptfs_dentry->d_sb)->mount_crypt_stat; + ecryptfs_inode->i_sb)->mount_crypt_stat;int cipher_name_len;int rc =0 ;
@@ -1299,12 +1299,12 @@ static int ecryptfs_write_headers_virt(char *page_virt, size_t max, }static int -ecryptfs_write_metadata_to_contents (struct dentry *ecryptfs_dentry, +ecryptfs_write_metadata_to_contents (struct inode *ecryptfs_inode,char *virt,size_t virt_len) {int rc; - rc =ecryptfs_write_lower (ecryptfs_dentry->d_inode, virt, + rc =ecryptfs_write_lower (ecryptfs_inode, virt,0 , virt_len);if (rc <0 ) printk(KERN_ERR "%s: Error attempting to write header "
@@ -1338,7 +1338,8 @@ static unsigned long ecryptfs_get_zeroed_pages(gfp_t gfp_mask,/** * ecryptfs_write_metadata -* @ecryptfs_dentry: The eCryptfs dentry +* @ecryptfs_dentry: The eCryptfs dentry, which should be negative +* @ecryptfs_inode: The newly created eCryptfs inode * * Write the file headers out. This will likely involve a userspace * callout, in which the session key is encrypted with one or more
@@ -1348,10 +1349,11 @@ static unsigned long ecryptfs_get_zeroed_pages(gfp_t gfp_mask,* * Returns zero on success; non-zero on error */ -int ecryptfs_write_metadata (struct dentry *ecryptfs_dentry) +int ecryptfs_write_metadata (struct dentry *ecryptfs_dentry, +struct inode *ecryptfs_inode) {struct ecryptfs_crypt_stat *crypt_stat = - &ecryptfs_inode_to_private (ecryptfs_dentry->d_inode)->crypt_stat; + &ecryptfs_inode_to_private (ecryptfs_inode)->crypt_stat;unsigned int order;char *virt;size_t virt_len;
@@ -1391,7 +1393,7 @@ int ecryptfs_write_metadata(struct dentry *ecryptfs_dentry) rc =ecryptfs_write_metadata_to_xattr (ecryptfs_dentry, virt, size); else - rc =ecryptfs_write_metadata_to_contents (ecryptfs_dentry, virt, + rc =ecryptfs_write_metadata_to_contents (ecryptfs_inode, virt, virt_len);if (rc) { printk(KERN_ERR "%s: Error writing metadata out to lower file; "
@@ -1943,7 +1945,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 +1961,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/ecryptfs_kernel.h +3 -2
@@ -584,9 +584,10 @@ int ecryptfs_init_crypt_ctx(struct ecryptfs_crypt_stat *crypt_stat);int ecryptfs_write_inode_size_to_metadata (struct inode *ecryptfs_inode);int ecryptfs_encrypt_page (struct page *page);int ecryptfs_decrypt_page (struct page *page); -int ecryptfs_write_metadata (struct dentry *ecryptfs_dentry); +int ecryptfs_write_metadata (struct dentry *ecryptfs_dentry, +struct inode *ecryptfs_inode);int ecryptfs_read_metadata (struct dentry *ecryptfs_dentry); -int ecryptfs_new_file_context (struct dentry *ecryptfs_dentry); +int ecryptfs_new_file_context (struct inode *ecryptfs_inode);void ecryptfs_write_crypt_stat_flags (char *page_virt,struct ecryptfs_crypt_stat *crypt_stat,size_t *written);
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;/**
@@ -349,7 +370,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/ecryptfs/inode.c +31 -21
127 lines not on this page · raw message
fs/ext4/inode.c +1 -1
@@ -2656,8 +2656,8 @@ out:spin_unlock_irqrestore (&ei->i_completed_io_lock, flags);/* queue the work to convert unwritten extents to written */ -queue_work (wq, &io_end->work); iocb->private =NULL ; +queue_work (wq, &io_end->work);/* XXX: probably should move into the real I/O completion handler */ inode_dio_done (inode);
fs/xfs/xfs_buf.h +0 -1
@@ -320,7 +320,6 @@ extern struct list_head *xfs_get_buftarg_list(void);#define xfs_getsize_buftarg (buftarg) block_size((buftarg)->bt_bdev)#define xfs_readonly_buftarg (buftarg) bdev_read_only((buftarg)->bt_bdev) -#define xfs_binval (buftarg) xfs_flush_buftarg(buftarg, 1)#define XFS_bflush (buftarg) xfs_flush_buftarg(buftarg, 1)#endif /* __XFS_BUF_H__ */
fs/xfs/xfs_file.c +28 -6
@@ -317,7 +317,19 @@ xfs_file_aio_read(if (XFS_FORCED_SHUTDOWN (mp))return -EIO ; -if (unlikely (ioflags &IO_ISDIRECT )) { +/* +* Locking is a bit tricky here. If we take an exclusive lock +* for direct IO, we effectively serialise all new concurrent +* read IO to this file and block it behind IO that is currently in +* progress because IO in progress holds the IO lock shared. We only +* need to hold the lock exclusive to blow away the page cache, so +* only take lock exclusively if the page cache needs invalidation. +* This allows the normal direct IO case of no page cache pages to +* proceeed concurrently without serialisation. +*/ +xfs_rw_ilock (ip,XFS_IOLOCK_SHARED ); +if ((ioflags &IO_ISDIRECT ) && inode->i_mapping->nrpages) { +xfs_rw_iunlock (ip,XFS_IOLOCK_SHARED );xfs_rw_ilock (ip,XFS_IOLOCK_EXCL );if (inode->i_mapping->nrpages) {
@@ -330,8 +342,7 @@ xfs_file_aio_read( } }xfs_rw_ilock_demote (ip,XFS_IOLOCK_EXCL ); - }else -xfs_rw_ilock (ip,XFS_IOLOCK_SHARED ); + }trace_xfs_file_read (ip, size, iocb->ki_pos, ioflags);
@@ -666,6 +677,7 @@ xfs_file_aio_write_checks(xfs_fsize_t new_size;int error =0 ; +xfs_rw_ilock (ip,XFS_ILOCK_EXCL ); error =generic_write_checks (file, pos, count,S_ISBLK (inode->i_mode));if (error) {xfs_rw_iunlock (ip,XFS_ILOCK_EXCL | *iolock);
@@ -757,14 +769,24 @@ xfs_file_dio_aio_write( *iolock =XFS_IOLOCK_EXCL ; else *iolock =XFS_IOLOCK_SHARED ; -xfs_rw_ilock (ip,XFS_ILOCK_EXCL | *iolock); +xfs_rw_ilock (ip, *iolock); ret =xfs_file_aio_write_checks (file, &pos, &count, iolock);if (ret)return ret; +/* +* Recheck if there are cached pages that need invalidate after we got +* the iolock to protect against other threads adding new pages while +* we were waiting for the iolock. +*/ +if (mapping->nrpages && *iolock ==XFS_IOLOCK_SHARED ) { +xfs_rw_iunlock (ip, *iolock); + *iolock =XFS_IOLOCK_EXCL ; +xfs_rw_ilock (ip, *iolock); + } +if (mapping->nrpages) { -WARN_ON (*iolock !=XFS_IOLOCK_EXCL ); ret = -xfs_flushinval_pages (ip, (pos &PAGE_CACHE_MASK ),-1 ,FI_REMAPF_LOCKED );if (ret)
@@ -809,7 +831,7 @@ xfs_file_buffered_aio_write(size_t count = ocount; *iolock =XFS_IOLOCK_EXCL ; -xfs_rw_ilock (ip,XFS_ILOCK_EXCL | *iolock); +xfs_rw_ilock (ip, *iolock); ret =xfs_file_aio_write_checks (file, &pos, &count, iolock);if (ret)
fs/xfs/xfs_iops.c +1 -1
@@ -465,7 +465,7 @@ xfs_vn_getattr(trace_xfs_getattr (ip);if (XFS_FORCED_SHUTDOWN (mp)) -return XFS_ERROR (EIO ); +return -XFS_ERROR (EIO ); stat->size =XFS_ISIZE (ip); stat->dev = inode->i_sb->s_dev;
fs/xfs/xfs_mount.c +10 -19
@@ -44,9 +44,6 @@#include "xfs_trace.h" -STATIC void xfs_unmountfs_wait(xfs_mount_t *); - -#ifdef HAVE_PERCPU_SB STATIC void xfs_icsb_balance_counter(xfs_mount_t *, xfs_sb_field_t,int );
@@ -1496,11 +1493,6 @@ xfs_unmountfs(*/ xfs_log_force (mp,XFS_LOG_SYNC ); -xfs_binval (mp->m_ddev_targp); -if (mp->m_rtdev_targp) { -xfs_binval (mp->m_rtdev_targp); - } -/* * Unreserve any blocks we have so that when we unmount we don't account * the reserved free space as used. This is really only necessary for
@@ -1526,7 +1518,16 @@ xfs_unmountfs(xfs_warn (mp,"Unable to update superblock counters. " "Freespace may not be correct on next mount." );xfs_unmountfs_writesb (mp); -xfs_unmountfs_wait (mp);/* wait for async bufs */ + +/* +* Make sure all buffers have been flushed and completed before +* unmounting the log. +*/ + error =xfs_flush_buftarg (mp->m_ddev_targp,1 ); +if (error) +xfs_warn (mp,"%d busy buffers during unmount." , error); +xfs_wait_buftarg (mp->m_ddev_targp); +xfs_log_unmount_write (mp);xfs_log_unmount (mp);xfs_uuid_unmount (mp);
@@ -1537,16 +1538,6 @@ xfs_unmountfs(xfs_free_perag (mp); } -STATIC void -xfs_unmountfs_wait (xfs_mount_t *mp) -{ -if (mp->m_logdev_targp != mp->m_ddev_targp) -xfs_wait_buftarg (mp->m_logdev_targp); -if (mp->m_rtdev_targp) -xfs_wait_buftarg (mp->m_rtdev_targp); -xfs_wait_buftarg (mp->m_ddev_targp); -} -int xfs_fs_writable (xfs_mount_t *mp) {
fs/xfs/xfs_qm.c +2 -1
@@ -674,7 +674,8 @@ xfs_qm_dqattach_one(* disk and we didn't ask it to allocate; * ESRCH if quotas got turned off suddenly. */ - error =xfs_qm_dqget (ip->i_mount, ip, id, type,XFS_QMOPT_DOWARN , &dqp); + error =xfs_qm_dqget (ip->i_mount, ip, id, type, + doalloc |XFS_QMOPT_DOWARN , &dqp);if (error)return error;
fs/xfs/xfs_vnodeops.c +10 -4
@@ -113,7 +113,7 @@ xfs_readlink( char *link) {xfs_mount_t *mp = ip->i_mount; -int pathlen; +xfs_fsize_t pathlen;int error =0 ;trace_xfs_readlink (ip);
@@ -123,13 +123,19 @@ xfs_readlink(xfs_ilock (ip,XFS_ILOCK_SHARED ); -ASSERT (S_ISLNK (ip->i_d.di_mode)); -ASSERT (ip->i_d.di_size <=MAXPATHLEN ); - pathlen = ip->i_d.di_size;if (!pathlen) goto out; +if (pathlen <0 || pathlen >MAXPATHLEN ) { +xfs_alert (mp,"%s: inode (%llu) bad symlink length (%lld)" , + __func__, (unsigned long long ) ip->i_ino, + (long long ) pathlen); +ASSERT (0 ); +return XFS_ERROR (EFSCORRUPTED ); + } + +if (ip->i_df.if_flags &XFS_IFINLINE ) {memcpy (link, ip->i_df.if_u1.if_data, pathlen); link[pathlen] ='\0' ;
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/clocksource.h +2 -1
@@ -156,6 +156,7 @@ extern u64 timecounter_cyc2time(struct timecounter *tc,* @mult: cycle to nanosecond multiplier * @shift: cycle to nanosecond divisor (power of two) * @max_idle_ns: max idle time permitted by the clocksource (nsecs) +* @maxadj maximum adjustment value to mult (~11%) * @flags: flags describing special properties * @archdata: arch-specific data * @suspend: suspend function for the clocksource, if necessary
@@ -172,7 +173,7 @@ struct clocksource {u32 mult;u32 shift;u64 max_idle_ns; - +u32 maxadj;#ifdef CONFIG_ARCH_CLOCKSOURCE_DATA struct arch_clocksource_data archdata;#endif
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);
include/net/inetpeer.h +1 -0
@@ -35,6 +35,7 @@ struct inet_peer {u32 metrics[RTAX_MAX ];u32 rate_tokens;/* rate limiting for ICMP */ +int redirect_genid;unsigned long rate_last;unsigned long pmtu_expires;u32 pmtu_orig;
include/net/red.h +6 -9
@@ -116,7 +116,7 @@ struct red_parms {u32 qR;/* Cached random number */ unsigned long qavg;/* Average queue length: A scaled */ -psched_time_t qidlestart;/* Start of current idle period */ +ktime_t qidlestart;/* Start of current idle period */ };static inline u32 red_rmask (u8 Plog)
@@ -148,17 +148,17 @@ static inline void red_set_parms(struct red_parms *p,static inline int red_is_idling (struct red_parms *p) { -return p->qidlestart !=PSCHED_PASTPERFECT ; +return p->qidlestart.tv64 !=0 ; }static inline void red_start_of_idle_period (struct red_parms *p) { - p->qidlestart =psched_get_time (); + p->qidlestart =ktime_get (); }static inline void red_end_of_idle_period (struct red_parms *p) { - p->qidlestart =PSCHED_PASTPERFECT ; + p->qidlestart.tv64 =0 ; }static inline void red_restart (struct red_parms *p)
@@ -170,13 +170,10 @@ static inline void red_restart(struct red_parms *p)static inline unsigned long red_calc_qavg_from_idle_time (struct red_parms *p) { -psched_time_t now; -long us_idle; +s64 delta =ktime_us_delta (ktime_get (), p->qidlestart); +long us_idle =min_t (s64, delta, p->Scell_max);int shift; - now =psched_get_time (); - us_idle =psched_tdiff_bounded (now, p->qidlestart, p->Scell_max); -/* * The problem: ideally, average length queue recalcultion should * be done over constant clock intervals. This is too expensive, so
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 +50 -12
114 lines not on this page · raw message
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 +11 -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));
@@ -820,6 +824,13 @@ static void timekeeping_adjust(s64 offset) }else return ; +WARN_ONCE (timekeeper.clock->maxadj && + (timekeeper.mult + adj > timekeeper.clock->mult + + timekeeper.clock->maxadj), +"Adjusting %s more then 11%% (%ld vs %ld)\n" , + timekeeper.clock->name, (long )timekeeper.mult + adj, + (long )timekeeper.clock->mult + + timekeeper.clock->maxadj); timekeeper.mult += adj; timekeeper.xtime_interval += interval; timekeeper.xtime_nsec -= offset;
kernel/trace/ftrace.c +0 -1
@@ -151,7 +151,6 @@ void clear_ftrace_function(void) ftrace_pid_function = ftrace_stub; } -#undef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST#ifndef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST /* * For those archs that do not test ftrace_trace_stop in their
kernel/trace/trace_events.c +0 -1
@@ -1078,7 +1078,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
@@ -2422,6 +2422,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 ;
mm/slab.c +4 -1
@@ -595,6 +595,7 @@ static enum {PARTIAL_AC ,PARTIAL_L3 ,EARLY , +LATE , FULL } g_cpucache_up;
@@ -671,7 +672,7 @@ static void init_node_lock_keys(int q) {struct cache_sizes *s = malloc_sizes; -if (g_cpucache_up !=FULL ) +if (g_cpucache_up <LATE )return ;for (s = malloc_sizes; s->cs_size !=ULONG_MAX ; s++) {
@@ -1666,6 +1667,8 @@ void __init kmem_cache_init_late(void) {struct kmem_cache *cachep; + g_cpucache_up =LATE ; +/* Annotate slab for lockdep -- annotate the malloc caches */ init_lock_keys ();
net/bridge/br_multicast.c +2 -0
@@ -1501,6 +1501,8 @@ static int br_multicast_ipv6_rcv(struct net_bridge *br,__skb_pull (skb2, offset);skb_reset_transport_header (skb2); +skb_postpull_rcsum (skb2,skb_network_header (skb2), +skb_network_header_len (skb2)); icmp6_type =icmp6_hdr (skb2)->icmp6_type;
net/ipv4/ah4.c +2 -4
@@ -136,8 +136,6 @@ static void ah_output_done(struct crypto_async_request *base, int err)memcpy (top_iph+1 , iph+1 , top_iph->ihl*4 -sizeof (struct iphdr )); } - err = ah->nexthdr; -kfree (AH_SKB_CB (skb)->tmp);xfrm_output_resume (skb, err); }
@@ -264,12 +262,12 @@ static void ah_input_done(struct crypto_async_request *base, int err)if (err) goto out; + err = ah->nexthdr; + skb->network_header += ah_hlen;memcpy (skb_network_header (skb), work_iph, ihl);__skb_pull (skb, ah_hlen + ihl);skb_set_transport_header (skb, -ihl); - - err = ah->nexthdr; out:kfree (AH_SKB_CB (skb)->tmp);xfrm_input_resume (skb, err);
net/ipv4/ip_options.c +1 -0
@@ -640,6 +640,7 @@ int ip_options_rcv_srr(struct sk_buff *skb) }if (srrptr <= srrspace) { opt->srr_is_hit =1 ; + iph->daddr = nexthop; opt->is_changed =1 ; }return 0 ;
net/ipv4/route.c +100 -52
241 lines not on this page · raw message
net/mac80211/agg-tx.c +38 -3
41 lines not on this page · raw message
net/wireless/reg.c +33 -16
49 lines not on this page · raw message
sound/pci/hda/patch_via.c +43 -33
76 lines not on this page · raw message
sound/soc/codecs/sta32x.c +62 -1
63 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.
Quoted 3 lines · Greg KH
I'm announcing the release of the 3.1.5 kernel.
All users of the 3.1 kernel series must upgrade.
<snip>
Quoted 2 lines
Thomas Poussevin (1):
� � �USB: EHCI: fix HUB TT scheduling issue with iso transfer
Hrm... this was added in 3.1.3, then reverted for 3.1.4 because it broke various devices:
http://thread.gmane.org/gmane.linux.kernel/1220960/focus=1221485
now it seems to be back in 3.1.5. Was there another commit that was added to solve the other issues?
josh
Quoted 10 lines · Josh Boyer
Quoted 3 lines · Greg KH
I'm announcing the release of the 3.1.5 kernel.
All users of the 3.1 kernel series must upgrade.
<snip>
Quoted 2 lines
Thomas Poussevin (1):
� � �USB: EHCI: fix HUB TT scheduling issue with iso transfer
Quoted 7 lines
Hrm... this was added in 3.1.3, then reverted for 3.1.4 because it broke various devices:
http://thread.gmane.org/gmane.linux.kernel/1220960/focus=1221485
now it seems to be back in 3.1.5. Was there another commit that was added to solve the other issues?
Yes, the one right after it.
thanks,
greg k-h
Quoted 14 lines · Greg KH
Quoted 13 lines · Josh Boyer
Quoted 3 lines · Greg KH
I'm announcing the release of the 3.1.5 kernel.
All users of the 3.1 kernel series must upgrade.
<snip>
Quoted 2 lines
Thomas Poussevin (1):
� � �USB: EHCI: fix HUB TT scheduling issue with iso transferHrm... this was added in 3.1.3, then reverted for 3.1.4 because it broke various devices:
Quoted 6 lines
Quoted 4 lines
http://thread.gmane.org/gmane.linux.kernel/1220960/focus=1221485
now it seems to be back in 3.1.5. �Was there another commit that was added to solve the other issues?
Yes, the one right after it.
Doh. I hadn't looked in git yet, so I missed it. Sorry for the noise.
josh