Linux 3.9.1
Greg KH
maintainerI'm announcing the release of the 3.9.1 kernel.
All users of the 3.9 kernel series must upgrade.
The updated 3.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.9.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/boot/dts/at91sam9260.dtsi | 16 ++--- arch/arm/boot/dts/at91sam9g15.dtsi | 2 arch/arm/boot/dts/at91sam9g15ek.dts | 2 arch/arm/boot/dts/at91sam9g25.dtsi | 2 arch/arm/boot/dts/at91sam9g35.dtsi | 2 arch/arm/boot/dts/at91sam9x25.dtsi | 2 arch/arm/boot/dts/at91sam9x35.dtsi | 2 arch/arm/boot/dts/at91sam9x5ek.dtsi | 2 arch/arm/configs/at91sam9g45_defconfig | 1 arch/arm/include/asm/pgtable.h | 9 +++ arch/arm/mach-at91/setup.c | 2 arch/arm/mach-omap2/cpuidle34xx.c | 5 + arch/arm/mach-u300/include/mach/u300-regs.h | 2 arch/avr32/configs/favr-32_defconfig | 1 arch/avr32/configs/merisc_defconfig | 1 arch/ia64/include/asm/futex.h | 5 - arch/ia64/include/asm/mca.h | 1 arch/ia64/kernel/irq.c | 8 ++ arch/ia64/kernel/mca.c | 37 ++++++++---- arch/ia64/kvm/vtlb.c | 2 arch/powerpc/kernel/cpu_setup_power.S | 1 arch/powerpc/kernel/exceptions-64s.S | 2 arch/powerpc/kernel/head_64.S | 1 arch/powerpc/platforms/cell/spufs/inode.c | 1 arch/x86/crypto/crc32c-pcl-intel-asm_64.S | 5 + arch/x86/kernel/head64.c | 3 - arch/x86/kernel/head_64.S | 1 arch/x86/kernel/irq.c | 4 - arch/x86/kvm/emulate.c | 4 + arch/x86/xen/enlighten.c | 5 + arch/x86/xen/smp.c | 2 arch/x86/xen/time.c | 6 +- drivers/acpi/osl.c | 2 drivers/acpi/pci_root.c | 4 - drivers/acpi/thermal.c | 16 ++++- drivers/ata/libata-acpi.c | 45 +++++++++------ drivers/ata/sata_highbank.c | 2 drivers/char/tpm/tpm.c | 31 +++++++++- drivers/char/tpm/tpm.h | 3 + drivers/hv/ring_buffer.c | 1 drivers/i2c/busses/i2c-xiic.c | 6 -- drivers/md/md.c | 9 +-- drivers/md/raid1.c | 7 ++ drivers/md/raid10.c | 7 ++ drivers/mfd/adp5520.c | 8 ++ drivers/mmc/core/mmc.c | 2 drivers/mmc/host/Kconfig | 10 --- drivers/mmc/host/atmel-mci.c | 16 +++-- drivers/net/ethernet/freescale/gianfar_ptp.c | 3 - drivers/net/ethernet/intel/e1000e/ptp.c | 3 - drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 10 +++ drivers/net/wireless/iwlwifi/dvm/debugfs.c | 16 ++--- drivers/net/wireless/iwlwifi/dvm/sta.c | 5 + drivers/net/wireless/mwifiex/pcie.c | 4 - drivers/net/wireless/rt2x00/rt2800lib.c | 8 ++ drivers/pci/pci.c | 12 +--- drivers/rtc/rtc-at91rm9200.c | 14 +++- drivers/rtc/rtc-cmos.c | 4 - drivers/s390/char/sclp_cmd.c | 4 + drivers/staging/zsmalloc/Kconfig | 2 drivers/staging/zsmalloc/zsmalloc-main.c | 5 - drivers/tty/pty.c | 3 + drivers/tty/serial/serial_core.c | 4 + drivers/tty/tty_io.c | 4 - drivers/usb/chipidea/udc.c | 8 ++ drivers/usb/chipidea/udc.h | 4 - drivers/usb/core/devio.c | 2 drivers/usb/host/ehci-hcd.c | 3 - drivers/usb/misc/appledisplay.c | 1 drivers/usb/serial/ftdi_sio.c | 23 +++++-- drivers/usb/serial/ftdi_sio_ids.h | 4 + drivers/usb/serial/io_ti.c | 2 drivers/usb/serial/option.c | 8 ++ drivers/usb/storage/cypress_atacb.c | 16 ++++- drivers/video/console/fbcon.c | 2 fs/dcache.c | 4 + fs/exec.c | 7 +- fs/ext4/Kconfig | 3 - fs/ext4/ext4_jbd2.h | 6 +- fs/ext4/fsync.c | 3 - fs/ext4/inode.c | 11 +-- fs/ext4/mballoc.c | 8 +- fs/ext4/mmp.c | 2 fs/ext4/resize.c | 2 fs/ext4/super.c | 14 +++- fs/fscache/stats.c | 2 fs/jbd2/commit.c | 50 +++++++++-------- fs/jbd2/journal.c | 31 ++++++++++ fs/lockd/clntlock.c | 3 + fs/lockd/clntproc.c | 3 - fs/namespace.c | 5 - fs/nfs/nfs4proc.c | 12 ++++ fs/nfsd/nfs4proc.c | 8 +- fs/nfsd/nfs4state.c | 10 --- fs/nfsd/nfs4xdr.c | 19 +----- fs/notify/inotify/inotify_user.c | 6 +- fs/sysfs/dir.c | 15 +++-- include/asm-generic/pgtable.h | 10 +++ include/linux/cgroup.h | 3 - include/linux/ipc_namespace.h | 2 include/linux/jbd2.h | 2 include/linux/sched.h | 18 +----- include/sound/emu10k1.h | 1 ipc/shm.c | 2 kernel/cgroup.c | 13 ++-- kernel/hrtimer.c | 6 ++ kernel/rcutree_trace.c | 8 +- kernel/time/tick-broadcast.c | 4 + kernel/time/tick-common.c | 1 kernel/trace/ftrace.c | 5 + kernel/trace/trace.c | 2 kernel/trace/trace_stack.c | 76 +++++++++++++++++++++++--- kernel/trace/trace_stat.c | 2 lib/oid_registry.c | 5 + mm/mmap.c | 4 - mm/page_io.c | 17 +++++ net/mac80211/cfg.c | 1 net/mac80211/iface.c | 5 + net/mac80211/pm.c | 3 - net/wireless/reg.c | 2 scripts/kconfig/streamline_config.pl | 17 ++--- sound/pci/emu10k1/emu10k1_main.c | 39 +++++++++++-- sound/pci/hda/hda_generic.c | 22 +++++-- sound/pci/hda/patch_realtek.c | 6 ++ sound/soc/codecs/max98088.c | 2 sound/usb/6fire/pcm.c | 1 sound/usb/caiaq/audio.c | 3 - sound/usb/card.c | 4 + sound/usb/card.h | 1 sound/usb/endpoint.c | 5 - sound/usb/midi.c | 13 ---- sound/usb/misc/ua101.c | 3 - sound/usb/pcm.c | 2 sound/usb/quirks.c | 1 sound/usb/stream.c | 9 +++ sound/usb/usx2y/usb_stream.c | 1 sound/usb/usx2y/usbusx2yaudio.c | 1 sound/usb/usx2y/usx2yhwdeppcm.c | 1 139 files changed, 690 insertions(+), 341 deletions(-)
Aaron Lu (1):
libata: acpi: make ata_ap_acpi_handle not block
Adrian Thomasset (2):
USB: ftdi_sio: correct ST Micro Connect Lite PIDs
USB: ftdi_sio: enable two UART ports on ST Microconnect Lite
Al Viro (2):
do_mount(): fix a leak introduced in 3.9 ("mount: consolidate permission checks")
rcutrace: single_open() leaks
Alex A. Mihaylov (1):
rt2x00: Fix transmit power troubles on some Ralink RT30xx cards
Anurup m (1):
fs/fscache/stats.c: fix memory leak
Ben Jencks (1):
usb/misc/appledisplay: Add 24" LED Cinema display
Bjørn Mork (1):
USB: option: add a D-Link DWM-156 variant
Bob Copeland (1):
mac80211: use synchronize_rcu() with rcu_barrier()
Bryan Schumaker (1):
nfsd: Decode and send 64bit time values
Calvin Owens (1):
ALSA: usb: Add quirk for 192KHz recording on E-Mu devices
Catalin Marinas (1):
arm: set the page table freeing ceiling to TASK_SIZE
Clemens Ladisch (2):
ALSA: usb-audio: disable autopm for MIDI devices
ALSA: USB: adjust for changed 3.8 USB API
Daniel Lezcano (1):
ARM: omap3: cpuidle: enable time keeping
Daniel Mack (1):
ALSA: snd-usb: try harder to find USB_DT_CS_ENDPOINT
David Engraf (1):
hrtimer: Fix ktime_add_ns() overflow on 32bit architectures
David Howells (1):
Give the OID registry file module info to avoid kernel tainting
Derek Basehore (1):
drivers/rtc/rtc-cmos.c: don't disable hpet emulation on suspend
Dmitry Monakhov (4):
jbd2: fix race between jbd2_journal_remove_checkpoint and ->j_commit_callback
ext4: fix journal callback list traversal
ext4: unregister es_shrinker if mount failed
ext4: fix big-endian bug in metadata checksum calculations
Douglas Gilbert (1):
ARM: at91/at91sam9260.dtsi: fix u(s)art pinctrl encoding
Duncan Laurie (1):
TPM: Retry SaveState command in suspend path
Dylan Reid (1):
ASoC: max98088: Fix logging of hardware revision.
Emmanuel Grumbach (1):
iwlwifi: dvm: don't send zeroed LQ cmd
Federico Vaga (1):
serial_core.c: add put_device() after device_find_child()
Filippo Turato (1):
USB: serial: option: Added support Olivetti Olicard 145
Gleb Natapov (1):
KVM: X86 emulator: fix source operand decoding for 8bit mov[zs]x instructions
Greg Kroah-Hartman (1):
Linux 3.9.1
Greg Thelen (1):
fs/dcache.c: add cond_resched() to shrink_dcache_parent()
H. Peter Anvin (1):
x86-64, init: Do not set NX bits on non-NX capable hardware
Hans de Goede (1):
usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl ep
Heiko Carstens (1):
s390/memory hotplug: prevent offline of active memory increments
Hugh Dickins (1):
mm: allow arch code to control the user page table ceiling
J. Bruce Fields (1):
nfsd4: don't close read-write opens too soon
Jacob Keller (1):
ixgbe: fix EICR write in ixgbe_msix_other
Jerome Marchand (1):
swap: redirty page if page write fails on swap file
Joerg Roedel (1):
staging: zsmalloc: Fix link error on ARM
Johan Hovold (3):
USB: io_ti: fix TIOCGSERIAL drivers/rtc/rtc-at91rm9200.c: fix missing iounmap
mmc: at91/avr32/atmel-mci: fix DMA-channel leak on module unload
Johannes Berg (2):
mac80211: fix station entry leak/warning while suspending
wireless: regulatory: fix channel disabling race condition
K. Y. Srinivasan (1):
Drivers: hv: vmbus: Fix a bug in hv_need_to_signal()
Kailang Yang (1):
ALSA: hda - Add the support for ALC286 codec
Konrad Rzeszutek Wilk (3):
xen/time: Fix kasprintf splat when allocating timer%d IRQ line.
xen/smp: Fix leakage of timer interrupt line for every CPU online/offline. xen/smp/spinlock: Fix leakage of the spinlock interrupt line for every CPU online/offline
Lars-Peter Clausen (1):
mfd: adp5520: Restore mode bits on resume
Li Fei (1):
x86: Eliminate irq_mis_count counted in arch_irq_stat
Li Zefan (2):
cgroup: fix an off-by-one bug which may trigger BUG_ON()
cgroup: fix broken file xattrs
Linus Torvalds (1):
tty: fix up atime/mtime mess, take three
Linus Walleij (1):
ARM: u300: fix ages old copy/paste bug
Maxime Ripard (1):
ARM: at91: Fix typo in restart code panic message
Mel Gorman (1):
mm: swap: mark swap pages writeback before queueing for direct IO
Michael Ellerman (1):
powerpc/spufs: Initialise inode->i_ino in spufs_new_inode()
Michael Grzeschik (2):
usb: chipidea: udc: fix memory access of shared memory on armv5 machines
usb: chipidea: udc: fix memory leak in _ep_nuke
Michael Neuling (3):
powerpc: Add isync to copy_and_flush
powerpc: Fix hardware IRQs with MMU on exceptions when HV=0 powerpc/power8: Fix secondary CPUs hanging on boot for HV=0
Mika Kuoppala (1):
fbcon: when font is freed, clear also vc_font.data
Ming Lei (1):
sysfs: fix use after free in case of concurrent read/write and readdir
Namhyung Kim (3):
tracing: Fix off-by-one on allocating stat->pages
tracing: Check return value of tracing_init_dentry()
tracing: Reset ftrace_graph_filter_enabled if count is zero
NeilBrown (1):
md: bad block list should default to disabled.
Nicolas Ferre (3):
ARM: at91: remove partial parameter in bootargs for at91sam9x5ek.dtsi
ARM: at91/trivial: fix model name for SAM9G15-EK
ARM: at91/trivial: typos in compatible property
Oleg Nesterov (1):
exec: do not abuse ->cred_guard_mutex in threadgroup_lock()
Philip Rakity (1):
mmc: core: Fix bit width test failing on old eMMC cards
Prarit Bhargava (1):
hrtimer: Add expiry time overflow check in hrtimer_interrupt
Rafael J. Wysocki (1):
PCI/PM: Fix fallback to PCI_D0 in pci_platform_power_transition()
Richard Cochran (2):
gianfar: do not advertise any alarm capability.
e1000e: fix numeric overflow in phc settime method
Robert Richter (1):
sata_highbank: Rename proc_name to the module name
Robin Holt (1):
ipc: sysv shared memory limited to 8TiB
Sandy Wu (1):
crypto: crc32-pclmul - Use gas macro for pclmulqdq
Shaohua Li (1):
MD: ignore discard request for hard disks of hybid raid1/raid10 array
Shengzhou Liu (1):
usb: remove redundant tdi_reset
Stanislaw Gruszka (1):
iwlwifi: fix freeing uninitialized pointer
Stefani Seibold (1):
USB: add ftdi_sio USB ID for GDM Boost V1.x
Stephan Schreiber (2):
Wrong asm register contraints in the futex implementation Wrong asm register contraints in the kvm implementation
Steven A. Falco (1):
i2c: xiic: must always write 16-bit words to TX_FIFO
Steven Rostedt (1):
localmodconfig: Process source kconfig files as they are found
Steven Rostedt (Red Hat) (3):
tracing: Use stack of calling function for stack tracer
tracing: Fix stack tracer with fentry use
tracing: Remove most or all of stack tracer stack size from stack_max_size
Takashi Iwai (3):
ALSA: emu10k1: Fix dock firmware loading
ALSA: usb-audio: Fix autopm error during probing
ALSA: hda - Fix aamix activation with loopback control on VIA codecs
Terry Barnaby (1):
mmc: atmel-mci: pio hang on block errors
Theodore Ts'o (3):
ext4/jbd2: don't wait (forever) for stale tid caused by wraparound
ext4: fix online resizing for ext3-compat file systems
ext4: fix Kconfig documentation for CONFIG_EXT4_DEBUG
Thomas Gleixner (1):
clockevents: Set dummy handler on CPU_DEAD shutdown
Tony Luck (1):
Fix initialization of CMCI/CMCP interrupts
Tormod Volden (1):
usb-storage: CY7C68300A chips do not support Cypress ATACB
Trond Myklebust (3):
LOCKD: Ensure that nlmclnt_block resets block->b_status after a server reboot
NFSv4: Handle NFS4ERR_DELAY and NFS4ERR_GRACE in nfs4_lock_delegation_recall
NFSv4: Handle NFS4ERR_DELAY and NFS4ERR_GRACE in nfs4_open_delegation_recall
Wang YanQing (1):
ACPI: Fix wrong parameter passed to memblock_reserve
Wei Yongjun (1):
nfsd: use kmem_cache_free() instead of kfree()
Yinghai Lu (1):
PCI / ACPI: Don't query OSC support with all possible controls
Yogesh Ashok Powar (2):
mwifiex: Use pci_release_region() instead of a pci_release_regions()
mwifiex: Call pci_release_region after calling pci_disable_device
Zhang Rui (1):
ACPI / thermal: do not always return THERMAL_TREND_RAISING for active trip points
Zhao Hongjiang (1):
inotify: invalid mask should return a error number but not set it
fanchaoting (1):
nfsd: don't run get_file if nfs4_preprocess_stateid_op return error
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 9 -SUBLEVEL = 0 +SUBLEVEL = 1 EXTRAVERSION = NAME = Unicycling Gorilla
arch/arm/boot/dts/at91sam9260.dtsi +8 -8
@@ -158,8 +158,8 @@ usart1 { pinctrl_usart1: usart1-0 { atmel,pins = - <2 6 0x1 0x1 /* PB6 periph A with pullup */ - 2 7 0x1 0x0>; /* PB7 periph A */ + <1 6 0x1 0x1 /* PB6 periph A with pullup */ + 1 7 0x1 0x0>; /* PB7 periph A */ }; pinctrl_usart1_rts: usart1_rts-0 {
@@ -194,18 +194,18 @@ usart3 { pinctrl_usart3: usart3-0 { atmel,pins = - <2 10 0x1 0x1 /* PB10 periph A with pullup */ - 2 11 0x1 0x0>; /* PB11 periph A */ + <1 10 0x1 0x1 /* PB10 periph A with pullup */ + 1 11 0x1 0x0>; /* PB11 periph A */ }; pinctrl_usart3_rts: usart3_rts-0 { atmel,pins = - <3 8 0x2 0x0>; /* PB8 periph B */ + <2 8 0x2 0x0>; /* PC8 periph B */ }; pinctrl_usart3_cts: usart3_cts-0 { atmel,pins = - <3 10 0x2 0x0>; /* PB10 periph B */ + <2 10 0x2 0x0>; /* PC10 periph B */ }; };
@@ -220,8 +220,8 @@ uart1 { pinctrl_uart1: uart1-0 { atmel,pins = - <2 12 0x1 0x1 /* PB12 periph A with pullup */ - 2 13 0x1 0x0>; /* PB13 periph A */ + <1 12 0x1 0x1 /* PB12 periph A with pullup */ + 1 13 0x1 0x0>; /* PB13 periph A */ }; };
arch/arm/boot/dts/at91sam9g15.dtsi +1 -1
@@ -10,7 +10,7 @@ / { model = "Atmel AT91SAM9G15 SoC"; - compatible = "atmel, at91sam9g15, atmel,at91sam9x5"; + compatible = "atmel,at91sam9g15", "atmel,at91sam9x5"; ahb { apb {
arch/arm/boot/dts/at91sam9g15ek.dts +1 -1
@@ -11,6 +11,6 @@ /include/ "at91sam9x5ek.dtsi" / { - model = "Atmel AT91SAM9G25-EK"; + model = "Atmel AT91SAM9G15-EK"; compatible = "atmel,at91sam9g15ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; };
arch/arm/boot/dts/at91sam9g25.dtsi +1 -1
@@ -10,7 +10,7 @@ / { model = "Atmel AT91SAM9G25 SoC"; - compatible = "atmel, at91sam9g25, atmel,at91sam9x5"; + compatible = "atmel,at91sam9g25", "atmel,at91sam9x5"; ahb { apb {
arch/arm/boot/dts/at91sam9g35.dtsi +1 -1
@@ -10,7 +10,7 @@ / { model = "Atmel AT91SAM9G35 SoC"; - compatible = "atmel, at91sam9g35, atmel,at91sam9x5"; + compatible = "atmel,at91sam9g35", "atmel,at91sam9x5"; ahb { apb {
arch/arm/boot/dts/at91sam9x25.dtsi +1 -1
@@ -10,7 +10,7 @@ / { model = "Atmel AT91SAM9X25 SoC"; - compatible = "atmel, at91sam9x25, atmel,at91sam9x5"; + compatible = "atmel,at91sam9x25", "atmel,at91sam9x5"; ahb { apb {
arch/arm/boot/dts/at91sam9x35.dtsi +1 -1
@@ -10,7 +10,7 @@ / { model = "Atmel AT91SAM9X35 SoC"; - compatible = "atmel, at91sam9x35, atmel,at91sam9x5"; + compatible = "atmel,at91sam9x35", "atmel,at91sam9x5"; ahb { apb {
arch/arm/boot/dts/at91sam9x5ek.dtsi +1 -1
@@ -13,7 +13,7 @@ compatible = "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; chosen { - bootargs = "128M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs"; + bootargs = "console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs"; }; ahb {
arch/arm/configs/at91sam9g45_defconfig +0 -1
@@ -173,7 +173,6 @@ CONFIG_MMC=y # CONFIG_MMC_BLOCK_BOUNCE is not set CONFIG_SDIO_UART=m CONFIG_MMC_ATMELMCI=y -CONFIG_MMC_ATMELMCI_DMA=y CONFIG_LEDS_ATMEL_PWM=y CONFIG_LEDS_GPIO=y CONFIG_LEDS_TRIGGER_TIMER=y
arch/arm/include/asm/pgtable.h +9 -0
@@ -61,6 +61,15 @@ extern void __pgd_error(const char *file, int line, pgd_t);#define FIRST_USER_ADDRESS PAGE_SIZE/* +* Use TASK_SIZE as the ceiling argument for free_pgtables() and +* free_pgd_range() to avoid freeing the modules pmd when LPAE is enabled (pmd +* page shared between user and kernel). +*/ +#ifdef CONFIG_ARM_LPAE +#define USER_PGTABLES_CEILING TASK_SIZE +#endif + +/* * The pgprot_* and protection_map entries will be fixed up in runtime * to include the cachable and bufferable bits based on memory policy, * as well as any architecture dependent bits like global/ASID and SMP
arch/arm/mach-at91/setup.c +1 -1
@@ -333,7 +333,7 @@ static void at91_dt_rstc(void) of_id =of_match_node (rstc_ids, np);if (!of_id) -panic ("AT91: rtsc no restart function availlable\n" ); +panic ("AT91: rtsc no restart function available\n" ); arm_pm_restart = of_id->data;
arch/arm/mach-omap2/cpuidle34xx.c +3 -2
@@ -274,8 +274,9 @@ static int omap3_enter_idle_bm(struct cpuidle_device *dev, static DEFINE_PER_CPU(struct cpuidle_device, omap3_idle_dev);static struct cpuidle_driver omap3_idle_driver = { - .name ="omap3_idle" , - .owner =THIS_MODULE , + .name ="omap3_idle" , + .owner =THIS_MODULE , + .en_core_tk_irqen =1 , .states = { { .enter = omap3_enter_idle_bm,
arch/arm/mach-u300/include/mach/u300-regs.h +1 -1
@@ -95,7 +95,7 @@#define U300_SPI_BASE (U300_FAST_PER_PHYS_BASE+0x6000)/* Fast UART1 on U335 only */ -#define U300_UART1_BASE (U300_SLOW_PER_PHYS_BASE+0x7000) +#define U300_UART1_BASE (U300_FAST_PER_PHYS_BASE+0x7000)/* * SLOW peripherals
arch/avr32/configs/favr-32_defconfig +0 -1
@@ -122,7 +122,6 @@ CONFIG_USB_G_SERIAL=m CONFIG_USB_CDC_COMPOSITE=m CONFIG_MMC=y CONFIG_MMC_ATMELMCI=y -CONFIG_MMC_ATMELMCI_DMA=y CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y CONFIG_LEDS_ATMEL_PWM=m
arch/avr32/configs/merisc_defconfig +0 -1
@@ -102,7 +102,6 @@ CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_LOGO=y CONFIG_MMC=y CONFIG_MMC_ATMELMCI=y -CONFIG_MMC_ATMELMCI_DMA=y CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y CONFIG_LEDS_ATMEL_PWM=y
arch/ia64/include/asm/futex.h +2 -3
@@ -106,16 +106,15 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,return -EFAULT ; { - registerunsigned long r8 __asm ("r8" ); + register unsigned long r8 __asm ("r8") = 0;unsigned long prev; __asm__ __volatile__(" mf;; \n" -" mov %0=r0 \n" " mov ar.ccv=%4;; \n" "[1:] cmpxchg4.acq %1=[%2],%3,ar.ccv \n" " .xdata4 \"__ex_table\", 1b-., 2f-. \n" "[2:]" - :"=r" (r8),"=r" (prev) + :"+r" (r8),"=&r" (prev) :"r" (uaddr),"r" (newval),"rO" ((long ) (unsigned ) oldval) :"memory" );
arch/ia64/include/asm/mca.h +1 -0
@@ -143,6 +143,7 @@ extern unsigned long __per_cpu_mca[NR_CPUS];extern int cpe_vector;extern int ia64_cpe_irq;extern void ia64_mca_init (void ); +extern void ia64_mca_irq_init (void );extern void ia64_mca_cpu_init (void *);extern void ia64_os_mca_dispatch (void );extern void ia64_os_mca_dispatch_end (void );
arch/ia64/kernel/irq.c +8 -0
@@ -23,6 +23,8 @@#include <linux/interrupt.h> #include <linux/kernel_stat.h> +#include <asm/mca.h> +/* * 'what should we do if we get a hw irq event on an illegal vector'. * each architecture has to answer this themselves.
@@ -83,6 +85,12 @@ bool is_affinity_mask_valid(const struct cpumask *cpumask)#endif /* CONFIG_SMP */ +int __init arch_early_irq_init (void ) +{ +ia64_mca_irq_init (); +return 0 ; +} +#ifdef CONFIG_HOTPLUG_CPU unsigned int vectors_in_migration[NR_IRQS ];
arch/ia64/kernel/mca.c +24 -13
@@ -2074,22 +2074,16 @@ ia64_mca_init(void)printk (KERN_INFO "MCA related initialization done\n" ); } +/* -* ia64_mca_late_init -* -* Opportunity to setup things that require initialization later -* than ia64_mca_init. Setup a timer to poll for CPEs if the -* platform doesn't support an interrupt driven mechanism. -* -* Inputs : None -* Outputs : Status +* These pieces cannot be done in ia64_mca_init() because it is called before +* early_irq_init() which would wipe out our percpu irq registrations. But we +* cannot leave them until ia64_mca_late_init() because by then all the other +* processors have been brought online and have set their own CMC vectors to +* point at a non-existant action. Called from arch_early_irq_init(). */ -static int __init -ia64_mca_late_init (void ) +void __init ia64_mca_irq_init (void ) { -if (!mca_init) -return 0 ; -/* * Configure the CMCI/P vector and handler. Interrupts for CMC are * per-processor, so AP CMC interrupts are setup in smp_callin() (smpboot.c).
@@ -2108,6 +2102,23 @@ ia64_mca_late_init(void)/* Setup the CPEI/P handler */ register_percpu_irq (IA64_CPEP_VECTOR , &mca_cpep_irqaction);#endif +} + +/* +* ia64_mca_late_init +* +* Opportunity to setup things that require initialization later +* than ia64_mca_init. Setup a timer to poll for CPEs if the +* platform doesn't support an interrupt driven mechanism. +* +* Inputs : None +* Outputs : Status +*/ +static int __init +ia64_mca_late_init (void ) +{ +if (!mca_init) +return 0 ;register_hotcpu_notifier (&mca_cpu_notifier);
arch/ia64/kvm/vtlb.c +1 -1
@@ -256,7 +256,7 @@ u64 guest_vhpt_lookup(u64 iha, u64 *pte)"srlz.d;;" "ssm psr.i;;" "srlz.d;;" - : "=r"(ret) : "r"(iha), "r"(pte):"memory"); + : "=&r"(ret) : "r"(iha), "r"(pte) : "memory"); return ret; }
arch/powerpc/kernel/cpu_setup_power.S +1 -0
@@ -66,6 +66,7 @@ _GLOBAL(__restore_cpu_power8) bl __init_FSCR mfmsr r3 rldicl. r0,r3,4,63 + mtlr r11 beqlr li r0,0 mtspr SPRN_LPID,r0
arch/powerpc/kernel/exceptions-64s.S +1 -1
@@ -797,7 +797,7 @@ hardware_interrupt_relon_hv: _MASKABLE_RELON_EXCEPTION_PSERIES(0x502, hardware_interrupt, EXC_HV, SOFTEN_TEST_HV) FTR_SECTION_ELSE _MASKABLE_RELON_EXCEPTION_PSERIES(0x500, hardware_interrupt, EXC_STD, SOFTEN_TEST_PR) - ALT_FTR_SECTION_END_IFSET(CPU_FTR_ARCH_206) + ALT_FTR_SECTION_END_IFSET(CPU_FTR_HVMODE) STD_RELON_EXCEPTION_PSERIES(0x4600, 0x600, alignment) STD_RELON_EXCEPTION_PSERIES(0x4700, 0x700, program_check) STD_RELON_EXCEPTION_PSERIES(0x4800, 0x800, fp_unavailable)
arch/powerpc/kernel/head_64.S +1 -0
@@ -509,6 +509,7 @@ _GLOBAL(copy_and_flush) sync addi r5,r5,8 addi r6,r6,8 + isync blr .align 8
arch/powerpc/platforms/cell/spufs/inode.c +1 -0
@@ -99,6 +99,7 @@ spufs_new_inode(struct super_block *sb, umode_t mode)if (!inode) goto out; + inode->i_ino =get_next_ino (); inode->i_mode = mode; inode->i_uid =current_fsuid (); inode->i_gid =current_fsgid ();
arch/x86/crypto/crc32c-pcl-intel-asm_64.S +3 -2
@@ -42,6 +42,7 @@ * SOFTWARE. */ +#include <asm/inst.h> #include <linux/linkage.h> ## ISCSI CRC 32 Implementation with crc32 and pclmulqdq Instruction
@@ -225,10 +226,10 @@ LABEL crc_ %i movdqa (bufp), %xmm0 # 2 consts: K1:K2 movq crc_init, %xmm1 # CRC for block 1 - pclmulqdq $0x00,%xmm0,%xmm1 # Multiply by K2 + PCLMULQDQ 0x00,%xmm0,%xmm1 # Multiply by K2 movq crc1, %xmm2 # CRC for block 2 - pclmulqdq $0x10, %xmm0, %xmm2 # Multiply by K1 + PCLMULQDQ 0x10, %xmm0, %xmm2 # Multiply by K1 pxor %xmm2,%xmm1 movq %xmm1, %rax
arch/x86/kernel/head64.c +2 -1
@@ -34,6 +34,7 @@extern pgd_t early_level4_pgt[PTRS_PER_PGD ];extern pmd_t early_dynamic_pgts[EARLY_DYNAMIC_PAGE_TABLES ][PTRS_PER_PMD ];static unsigned int __initdata next_early_pgt =2 ; +pmdval_t __initdata early_pmd_flags = __PAGE_KERNEL_LARGE & ~(_PAGE_GLOBAL | _PAGE_NX);/* Wipe all early page tables except for the kernel symbol map */ static void __init reset_early_page_tables (void )
@@ -99,7 +100,7 @@ again: pmd_p[i] =0 ; *pud_p = (pudval_t )pmd_p - __START_KERNEL_map + phys_base + _KERNPG_TABLE; } - pmd = (physaddr &PMD_MASK ) + (__PAGE_KERNEL_LARGE & ~_PAGE_GLOBAL); + pmd = (physaddr &PMD_MASK ) + early_pmd_flags; pmd_p[pmd_index (address)] = pmd;return 0 ;
arch/x86/kernel/head_64.S +1 -0
@@ -200,6 +200,7 @@ ENTRY(secondary_startup_64) btl $20,%edi /* No Execute supported? */ jnc 1f btsl $_EFER_NX, %eax + btsq $_PAGE_BIT_NX,early_pmd_flags(%rip) 1: wrmsr /* Make changes effective */ /* Setup cr0 */
arch/x86/kernel/irq.c +0 -4
@@ -165,10 +165,6 @@ u64 arch_irq_stat_cpu(unsigned int cpu)u64 arch_irq_stat (void ) {u64 sum =atomic_read (&irq_err_count); - -#ifdef CONFIG_X86_IO_APIC - sum +=atomic_read (&irq_mis_count); -#endif return sum; }
arch/x86/kvm/emulate.c +4 -0
@@ -4162,6 +4162,10 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op,break ;case OpMem8: ctxt->memop.bytes =1 ; +if (ctxt->memop.type ==OP_REG ) { + ctxt->memop.addr.reg =decode_register (ctxt, ctxt->modrm_rm,1 ); +fetch_register_operand (&ctxt->memop); + } goto mem_common;case OpMem16: ctxt->memop.bytes =2 ;
arch/x86/xen/enlighten.c +4 -1
@@ -1589,8 +1589,11 @@ static int __cpuinit xen_hvm_cpu_notify(struct notifier_block *self,switch (action) {case CPU_UP_PREPARE :xen_vcpu_setup (cpu); -if (xen_have_vector_callback) +if (xen_have_vector_callback) {xen_init_lock_cpu (cpu); +if (xen_feature (XENFEAT_hvm_safe_pvclock)) +xen_setup_timer (cpu); + }break ;default :break ;
arch/x86/xen/smp.c +2 -0
@@ -662,6 +662,8 @@ static void xen_hvm_cpu_die(unsigned int cpu)unbind_from_irqhandler (per_cpu (xen_debug_irq, cpu),NULL );unbind_from_irqhandler (per_cpu (xen_callfuncsingle_irq, cpu),NULL );unbind_from_irqhandler (per_cpu (xen_irq_work, cpu),NULL ); +xen_uninit_lock_cpu (cpu); +xen_teardown_timer (cpu);native_cpu_die (cpu); }
arch/x86/xen/time.c +5 -1
@@ -497,7 +497,11 @@ static void xen_hvm_setup_cpu_clockevents(void) {int cpu =smp_processor_id ();xen_setup_runstate_info (cpu); -xen_setup_timer (cpu); +/* +* xen_setup_timer(cpu) - snprintf is bad in atomic context. Hence +* doing it xen_hvm_cpu_notify (which gets called by smp_init during +* early bootup and also during CPU hotplug events). +*/ xen_setup_cpu_clockevents (); }
drivers/acpi/osl.c +1 -1
@@ -641,7 +641,7 @@ void __init acpi_initrd_override(void *data, size_t size)* Both memblock_reserve and e820_add_region (via arch_reserve_mem_area) * works fine. */ -memblock_reserve (acpi_tables_addr, acpi_tables_addr + all_tables_size); +memblock_reserve (acpi_tables_addr, all_tables_size);arch_reserve_mem_area (acpi_tables_addr, all_tables_size); p =early_ioremap (acpi_tables_addr, all_tables_size);
drivers/acpi/pci_root.c +2 -2
@@ -201,8 +201,8 @@ static acpi_status acpi_pci_query_osc(struct acpi_pci_root *root, *control &=OSC_PCI_CONTROL_MASKS ; capbuf[OSC_CONTROL_TYPE ] = *control | root->osc_control_set; }else { -/* Run _OSC query for all possible controls. */ - capbuf[OSC_CONTROL_TYPE ] =OSC_PCI_CONTROL_MASKS ; +/* Run _OSC query only with existing controls. */ + capbuf[OSC_CONTROL_TYPE ] = root->osc_control_set; } status =acpi_pci_run_osc (root->device->handle, capbuf, &result);
drivers/acpi/thermal.c +13 -3
@@ -723,9 +723,19 @@ static int thermal_get_trend(struct thermal_zone_device *thermal,return -EINVAL ;if (type ==THERMAL_TRIP_ACTIVE ) { -/* aggressive active cooling */ - *trend =THERMAL_TREND_RAISING ; -return 0 ; +unsigned long trip_temp; +unsigned long temp =KELVIN_TO_MILLICELSIUS (tz->temperature, + tz->kelvin_offset); +if (thermal_get_trip_temp (thermal, trip, &trip_temp)) +return -EINVAL ; + +if (temp > trip_temp) { + *trend =THERMAL_TREND_RAISING ; +return 0 ; + }else { +/* Fall back on default trend */ +return -EINVAL ; + } }/*
drivers/ata/libata-acpi.c +27 -18
75 lines not on this page · raw message
drivers/ata/sata_highbank.c +1 -1
@@ -251,7 +251,7 @@ static const struct ata_port_info ahci_highbank_port_info = { };static struct scsi_host_template ahci_highbank_platform_sht = { -AHCI_SHT ("highbank-ahci" ), +AHCI_SHT ("sata_highbank" ), };static const struct of_device_id ahci_of_match[] = {
drivers/char/tpm/tpm.c +27 -4
@@ -1337,7 +1337,7 @@ int tpm_pm_suspend(struct device *dev) {struct tpm_chip *chip =dev_get_drvdata (dev);struct tpm_cmd_t cmd; -int rc; +int rc, try;u8 dummy_hash[TPM_DIGEST_SIZE ] = {0 };
@@ -1355,9 +1355,32 @@ int tpm_pm_suspend(struct device *dev) }/* now do the actual savestate */ - cmd.header.in = savestate_header; - rc =transmit_cmd (chip, &cmd,SAVESTATE_RESULT_SIZE , -"sending savestate before suspend" ); +for (try =0 ; try <TPM_RETRY ; try++) { + cmd.header.in = savestate_header; + rc =transmit_cmd (chip, &cmd,SAVESTATE_RESULT_SIZE ,NULL ); + +/* +* If the TPM indicates that it is too busy to respond to +* this command then retry before giving up. It can take +* several seconds for this TPM to be ready. +* +* This can happen if the TPM has already been sent the +* SaveState command before the driver has loaded. TCG 1.2 +* specification states that any communication after SaveState +* may cause the TPM to invalidate previously saved state. +*/ +if (rc !=TPM_WARN_RETRY ) +break ; +msleep (TPM_TIMEOUT_RETRY ); + } + +if (rc) +dev_err (chip->dev, +"Error (%d) sending savestate before suspend\n" , rc); +else if (try >0 ) +dev_warn (chip->dev,"TPM savestate took %dms\n" , + try *TPM_TIMEOUT_RETRY ); +return rc; }EXPORT_SYMBOL_GPL (tpm_pm_suspend);
drivers/char/tpm/tpm.h +3 -0
@@ -32,10 +32,12 @@ enum tpm_const {TPM_MINOR =224 ,/* officially assigned */ TPM_BUFSIZE =4096 ,TPM_NUM_DEVICES =256 , + TPM_RETRY = 50, /* 5 seconds */ };enum tpm_timeout {TPM_TIMEOUT =5 ,/* msecs */ +TPM_TIMEOUT_RETRY =100 /* msecs */ };/* TPM addresses */
@@ -44,6 +46,7 @@ enum tpm_addr { TPM_ADDR = 0x4E, }; +#define TPM_WARN_RETRY 0x800#define TPM_WARN_DOING_SELFTEST 0x802#define TPM_ERR_DEACTIVATED 0x6#define TPM_ERR_DISABLED 0x7
drivers/hv/ring_buffer.c +1 -0
@@ -71,6 +71,7 @@ u32 hv_end_read(struct hv_ring_buffer_info *rbi)static bool hv_need_to_signal (u32 old_write,struct hv_ring_buffer_info *rbi) { +smp_mb ();if (rbi->ring_buffer->interrupt_mask)return false;
drivers/i2c/busses/i2c-xiic.c +2 -4
@@ -312,10 +312,8 @@ static void xiic_fill_tx_fifo(struct xiic_i2c *i2c)/* last message in transfer -> STOP */ data |=XIIC_TX_DYN_STOP_MASK ;dev_dbg (i2c->adap.dev.parent,"%s TX STOP\n" , __func__); - -xiic_setreg16 (i2c,XIIC_DTR_REG_OFFSET , data); - }else -xiic_setreg8 (i2c,XIIC_DTR_REG_OFFSET , data); + } +xiic_setreg16 (i2c,XIIC_DTR_REG_OFFSET , data); } }
drivers/md/md.c +3 -6
@@ -1564,8 +1564,8 @@ static int super_1_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor_ sector, count, 1) == 0)return -EINVAL ; } - }else if (sb->bblog_offset ==0 ) - rdev->badblocks.shift =-1 ; + }else if (sb->bblog_offset !=0 ) + rdev->badblocks.shift =0 ;if (!refdev) { ret =1 ;
@@ -3221,7 +3221,7 @@ int md_rdev_init(struct md_rdev *rdev)* be used - I wonder if that matters */ rdev->badblocks.count =0 ; - rdev->badblocks.shift =0 ; + rdev->badblocks.shift =-1 ;/* disabled until explicitly enabled */ rdev->badblocks.page =kmalloc (PAGE_SIZE ,GFP_KERNEL );seqlock_init (&rdev->badblocks.lock);if (rdev->badblocks.page ==NULL )
@@ -3293,9 +3293,6 @@ static struct md_rdev *md_import_device(dev_t newdev, int super_format, int supe goto abort_free; } } -if (super_format ==-1 ) -/* hot-add for 0.90, or non-persistent: so no badblocks */ - rdev->badblocks.shift =-1 ;return rdev;
drivers/md/raid1.c +6 -1
@@ -981,7 +981,12 @@ static void raid1_unplug(struct blk_plug_cb *cb, bool from_schedule)while (bio) {/* submit pending writes */ struct bio *next = bio->bi_next; bio->bi_next =NULL ; -generic_make_request (bio); +if (unlikely ((bio->bi_rw &REQ_DISCARD ) && + !blk_queue_discard (bdev_get_queue (bio->bi_bdev)))) +/* Just ignore it */ +bio_endio (bio,0 ); +else +generic_make_request (bio); bio = next; }kfree (plug);
drivers/md/raid10.c +6 -1
@@ -1133,7 +1133,12 @@ static void raid10_unplug(struct blk_plug_cb *cb, bool from_schedule)while (bio) {/* submit pending writes */ struct bio *next = bio->bi_next; bio->bi_next =NULL ; -generic_make_request (bio); +if (unlikely ((bio->bi_rw &REQ_DISCARD ) && + !blk_queue_discard (bdev_get_queue (bio->bi_bdev)))) +/* Just ignore it */ +bio_endio (bio,0 ); +else +generic_make_request (bio); bio = next; }kfree (plug);
drivers/mfd/adp5520.c +6 -2
@@ -36,6 +36,7 @@ struct adp5520_chip {struct blocking_notifier_head notifier_list;int irq;unsigned long id; +uint8_t mode; }; static int __adp5520_read(struct i2c_client *client,
@@ -326,7 +327,10 @@ static int adp5520_suspend(struct device *dev)struct i2c_client *client =to_i2c_client (dev);struct adp5520_chip *chip =dev_get_drvdata (&client->dev); -adp5520_clr_bits (chip->dev,ADP5520_MODE_STATUS , ADP5520_nSTNBY); +adp5520_read (chip->dev,ADP5520_MODE_STATUS , &chip->mode); +/* All other bits are W1C */ + chip->mode &=ADP5520_BL_EN |ADP5520_DIM_EN | ADP5520_nSTNBY; +adp5520_write (chip->dev,ADP5520_MODE_STATUS ,0 );return 0 ; }
@@ -335,7 +339,7 @@ static int adp5520_resume(struct device *dev)struct i2c_client *client =to_i2c_client (dev);struct adp5520_chip *chip =dev_get_drvdata (&client->dev); -adp5520_set_bits (chip->dev,ADP5520_MODE_STATUS , ADP5520_nSTNBY); +adp5520_write (chip->dev,ADP5520_MODE_STATUS , chip->mode); return 0; }#endif
drivers/mmc/core/mmc.c +1 -1
@@ -368,13 +368,13 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd) ext_csd[EXT_CSD_SEC_FEATURE_SUPPORT ]; card->ext_csd.raw_trim_mult = ext_csd[EXT_CSD_TRIM_MULT ]; + card->ext_csd.raw_partition_support = ext_csd[EXT_CSD_PARTITION_SUPPORT ];if (card->ext_csd.rev >=4 ) {/* * Enhanced area feature support -- check whether the eMMC * card has the Enhanced area enabled. If so, export enhanced * area offset and size to user by adding sysfs interface. */ - card->ext_csd.raw_partition_support = ext_csd[EXT_CSD_PARTITION_SUPPORT ];if ((ext_csd[EXT_CSD_PARTITION_SUPPORT ] &0x2 ) && (ext_csd[EXT_CSD_PARTITION_ATTRIBUTE ] &0x1 )) { hc_erase_grp_sz =
drivers/mmc/host/Kconfig +0 -10
@@ -300,16 +300,6 @@ config MMC_ATMELMCI If unsure, say N. -config MMC_ATMELMCI_DMA - bool "Atmel MCI DMA support" - depends on MMC_ATMELMCI && (AVR32 || ARCH_AT91SAM9G45) && DMA_ENGINE - help - Say Y here to have the Atmel MCI driver use a DMA engine to - do data transfers and thus increase the throughput and - reduce the CPU utilization. - - If unsure, say N. - config MMC_MSM tristate "Qualcomm SDCC Controller Support" depends on MMC && ARCH_MSM
drivers/mmc/host/atmel-mci.c +10 -6
@@ -178,6 +178,7 @@ struct atmel_mci {void __iomem *regs;struct scatterlist *sg; +unsigned int sg_len;unsigned int pio_offset;unsigned int *buffer;unsigned int buf_size;
@@ -892,6 +893,7 @@ static u32 atmci_prepare_data(struct atmel_mci *host, struct mmc_data *data) data->error = -EINPROGRESS ; host->sg = data->sg; + host->sg_len = data->sg_len; host->data = data; host->data_chan =NULL ;
@@ -1826,7 +1828,8 @@ static void atmci_read_data_pio(struct atmel_mci *host)if (offset == sg->length) {flush_dcache_page (sg_page (sg)); host->sg = sg =sg_next (sg); -if (!sg) + host->sg_len--; +if (!sg || !host->sg_len) goto done; offset =0 ;
@@ -1839,7 +1842,8 @@ static void atmci_read_data_pio(struct atmel_mci *host)flush_dcache_page (sg_page (sg)); host->sg = sg =sg_next (sg); -if (!sg) + host->sg_len--; +if (!sg || !host->sg_len) goto done; offset =4 - remaining;
@@ -1890,7 +1894,8 @@ static void atmci_write_data_pio(struct atmel_mci *host) nbytes +=4 ;if (offset == sg->length) { host->sg = sg =sg_next (sg); -if (!sg) + host->sg_len--; +if (!sg || !host->sg_len) goto done; offset =0 ;
@@ -1904,7 +1909,8 @@ static void atmci_write_data_pio(struct atmel_mci *host) nbytes += remaining; host->sg = sg =sg_next (sg); -if (!sg) { + host->sg_len--; +if (!sg || !host->sg_len) {atmci_writel (host,ATMCI_TDR , value); goto done; }
@@ -2487,10 +2493,8 @@ static int __exit atmci_remove(struct platform_device *pdev)atmci_readl (host,ATMCI_SR );clk_disable (host->mck); -#ifdef CONFIG_MMC_ATMELMCI_DMA if (host->dma.chan)dma_release_channel (host->dma.chan); -#endif free_irq (platform_get_irq (pdev,0 ), host);iounmap (host->regs);
drivers/net/ethernet/freescale/gianfar_ptp.c +1 -2
@@ -127,7 +127,6 @@ struct gianfar_ptp_registers {#define DRIVER "gianfar_ptp"#define DEFAULT_CKSEL 1 -#define N_ALARM 1/* first alarm is used internally to reset fipers */ #define N_EXT_TS 2#define REG_SIZE sizeof(struct gianfar_ptp_registers)
@@ -410,7 +409,7 @@ static struct ptp_clock_info ptp_gianfar_caps = { .owner = THIS_MODULE, .name = "gianfar clock", .max_adj = 512000, - .n_alarm = N_ALARM, + .n_alarm = 0, .n_ext_ts = N_EXT_TS, .n_per_out = 0, .pps = 1,
drivers/net/ethernet/intel/e1000e/ptp.c +1 -2
@@ -145,8 +145,7 @@ static int e1000e_phc_settime(struct ptp_clock_info *ptp,unsigned long flags;u64 ns; - ns = ts->tv_sec *NSEC_PER_SEC ; - ns += ts->tv_nsec; + ns =timespec_to_ns (ts);/* reset the timecounter */ spin_lock_irqsave (&adapter->systim_lock, flags);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +10 -0
@@ -2405,6 +2405,16 @@ static irqreturn_t ixgbe_msix_other(int irq, void *data)* with the write to EICR. */ eicr =IXGBE_READ_REG (hw,IXGBE_EICS ); + +/* The lower 16bits of the EICR register are for the queue interrupts +* which should be masked here in order to not accidently clear them if +* the bits are high when ixgbe_msix_other is called. There is a race +* condition otherwise which results in possible performance loss +* especially if the ixgbe_msix_other interrupt is triggering +* consistently (as it would when PPS is turned on for the X540 device) +*/ + eicr &=0xFFFF0000 ; +IXGBE_WRITE_REG (hw,IXGBE_EICR , eicr);if (eicr &IXGBE_EICR_LSC )
drivers/net/wireless/iwlwifi/dvm/debugfs.c +8 -8
@@ -2237,15 +2237,15 @@ static ssize_t iwl_dbgfs_log_event_read(struct file *file, size_t count, loff_t *ppos) { struct iwl_priv *priv = file->private_data; -char *buf; -int pos =0 ; -ssize_t ret = -ENOMEM ; +char *buf =NULL ; +ssize_t ret; - ret = pos =iwl_dump_nic_event_log (priv, true, &buf, true); -if (buf) { - ret =simple_read_from_buffer (user_buf, count, ppos, buf, pos); -kfree (buf); - } + ret =iwl_dump_nic_event_log (priv, true, &buf, true); +if (ret <0 ) + goto err; + ret =simple_read_from_buffer (user_buf, count, ppos, buf, ret); +err: +kfree (buf);return ret; }
drivers/net/wireless/iwlwifi/dvm/sta.c +4 -1
@@ -695,6 +695,7 @@ void iwl_clear_ucode_stations(struct iwl_priv *priv,void iwl_restore_stations (struct iwl_priv *priv,struct iwl_rxon_context *ctx) {struct iwl_addsta_cmd sta_cmd; +static const struct iwl_link_quality_cmd zero_lq = {};struct iwl_link_quality_cmd lq;int i;bool found = false;
@@ -733,7 +734,9 @@ void iwl_restore_stations(struct iwl_priv *priv, struct iwl_rxon_context *ctx)else memcpy (&lq, priv->stations[i].lq,sizeof (struct iwl_link_quality_cmd )); - send_lq = true; + +if (!memcmp (&lq, &zero_lq,sizeof (lq))) + send_lq = true; }spin_unlock_bh (&priv->sta_lock); ret =iwl_send_add_sta (priv, &sta_cmd,CMD_SYNC );
drivers/net/wireless/mwifiex/pcie.c +2 -2
@@ -2281,9 +2281,9 @@ static void mwifiex_pcie_cleanup(struct mwifiex_adapter *adapter)if (pdev) {pci_iounmap (pdev, card->pci_mmap);pci_iounmap (pdev, card->pci_mmap1); - -pci_release_regions (pdev);pci_disable_device (pdev); +pci_release_region (pdev,2 ); +pci_release_region (pdev,0 );pci_set_drvdata (pdev,NULL ); } }
drivers/net/wireless/rt2x00/rt2800lib.c +6 -2
@@ -4436,6 +4436,8 @@ static int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev)if (!rt2x00_rt (rt2x00dev,RT5390 ) && !rt2x00_rt (rt2x00dev,RT5392 )) { +u8 min_gain =rt2x00_rt (rt2x00dev,RT3070 ) ?1 :2 ; +rt2800_rfcsr_read (rt2x00dev,17 , &rfcsr);rt2x00_set_field8 (&rfcsr,RFCSR17_TX_LO1_EN ,0 ); if (rt2x00_rt(rt2x00dev, RT3070) ||
@@ -4446,8 +4448,10 @@ static int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev) &rt2x00dev->cap_flags))rt2x00_set_field8 (&rfcsr,RFCSR17_R ,1 ); } -rt2x00_set_field8 (&rfcsr,RFCSR17_TXMIXER_GAIN , - drv_data->txmixer_gain_24g); +if (drv_data->txmixer_gain_24g >= min_gain) { +rt2x00_set_field8 (&rfcsr,RFCSR17_TXMIXER_GAIN , + drv_data->txmixer_gain_24g); + }rt2800_rfcsr_write (rt2x00dev,17 , rfcsr); }
drivers/pci/pci.c +4 -8
@@ -646,15 +646,11 @@ static int pci_platform_power_transition(struct pci_dev *dev, pci_power_t state) error =platform_pci_set_power_state (dev, state);if (!error)pci_update_current_state (dev, state); -/* Fall back to PCI_D0 if native PM is not supported */ -if (!dev->pm_cap) - dev->current_state =PCI_D0 ; - }else { + }else error = -ENODEV ; -/* Fall back to PCI_D0 if native PM is not supported */ -if (!dev->pm_cap) - dev->current_state =PCI_D0 ; - } + +if (error && !dev->pm_cap)/* Fall back to PCI_D0 */ + dev->current_state =PCI_D0 ;return error; }
drivers/rtc/rtc-at91rm9200.c +11 -3
@@ -297,7 +297,7 @@ static int __init at91_rtc_probe(struct platform_device *pdev) "at91_rtc", pdev);if (ret) {dev_err (&pdev->dev,"IRQ %d already in use.\n" , irq); -return ret; + goto err_unmap; }/* cpu init code should really have flagged this device as
@@ -309,13 +309,20 @@ static int __init at91_rtc_probe(struct platform_device *pdev) rtc =rtc_device_register (pdev->name, &pdev->dev, &at91_rtc_ops,THIS_MODULE );if (IS_ERR (rtc)) { -free_irq (irq, pdev); -return PTR_ERR (rtc); + ret =PTR_ERR (rtc); + goto err_free_irq; }platform_set_drvdata (pdev, rtc);dev_info (&pdev->dev,"AT91 Real Time Clock driver.\n" );return 0 ; + +err_free_irq: +free_irq (irq, pdev); +err_unmap: +iounmap (at91_rtc_regs); + +return ret; }/*
@@ -332,6 +339,7 @@ static int __exit at91_rtc_remove(struct platform_device *pdev)free_irq (irq, pdev);rtc_device_unregister (rtc); +iounmap (at91_rtc_regs);platform_set_drvdata (pdev,NULL );return 0 ;
drivers/rtc/rtc-cmos.c +2 -2
@@ -804,9 +804,8 @@ static int cmos_suspend(struct device *dev) mask =RTC_IRQMASK ; tmp &= ~mask;CMOS_WRITE (tmp,RTC_CONTROL ); +hpet_mask_rtc_irq_bit (mask); -/* shut down hpet emulation - we don't need it for alarm */ -hpet_mask_rtc_irq_bit (RTC_PIE |RTC_AIE |RTC_UIE );cmos_checkintr (cmos, tmp); }spin_unlock_irq (&rtc_lock);
@@ -870,6 +869,7 @@ static int cmos_resume(struct device *dev)rtc_update_irq (cmos->rtc,1 , mask); tmp &= ~RTC_AIE ;hpet_mask_rtc_irq_bit (RTC_AIE ); +hpet_rtc_timer_init (); }while (mask &RTC_AIE );spin_unlock_irq (&rtc_lock); }
drivers/s390/char/sclp_cmd.c +3 -1
@@ -561,6 +561,8 @@ static void __init sclp_add_standby_memory(void)add_memory_merged (0 ); } +#define MEM_SCT_SIZE (1UL << SECTION_SIZE_BITS) +static void __init insert_increment (u16 rn,int standby,int assigned) {struct memory_increment *incr, *new_incr;
@@ -573,7 +575,7 @@ static void __init insert_increment(u16 rn, int standby, int assigned) new_incr->rn = rn; new_incr->standby = standby;if (!standby) - new_incr->usecount =1 ; + new_incr->usecount = rzm >MEM_SCT_SIZE ? rzm/MEM_SCT_SIZE :1 ; last_rn =0 ; prev = &sclp_mem_list;list_for_each_entry (incr, &sclp_mem_list, list) {
drivers/staging/zsmalloc/Kconfig +1 -1
@@ -1,5 +1,5 @@ config ZSMALLOC - tristate "Memory allocator for compressed pages" + bool "Memory allocator for compressed pages" default n help zsmalloc is a slab-based memory allocator designed to store
drivers/staging/zsmalloc/zsmalloc-main.c +1 -4
@@ -656,11 +656,8 @@ static inline void __zs_unmap_object(struct mapping_area *area, struct page *pages[2], int off, int size) { unsigned long addr = (unsigned long)area->vm_addr; -unsigned long end = addr + (PAGE_SIZE *2 ); -flush_cache_vunmap (addr, end); -unmap_kernel_range_noflush (addr,PAGE_SIZE *2 ); -flush_tlb_kernel_range (addr, end); +unmap_kernel_range (addr,PAGE_SIZE *2 ); }#else /* USE_PGTABLE_MAPPING */
drivers/tty/pty.c +3 -0
@@ -682,6 +682,9 @@ static int ptmx_open(struct inode *inode, struct file *filp)nonseekable_open (inode, filp); +/* We refuse fsnotify events on ptmx, since it's a shared resource */ + filp->f_mode |=FMODE_NONOTIFY ; + retval =tty_alloc_file (filp);if (retval)return retval;
drivers/tty/serial/serial_core.c +4 -0
@@ -1941,6 +1941,8 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport)mutex_unlock (&port->mutex);return 0 ; } +put_device (tty_dev); +if (console_suspend_enabled || !uart_console (uport)) uport->suspended =1 ;
@@ -2006,9 +2008,11 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)disable_irq_wake (uport->irq); uport->irq_wake =0 ; } +put_device (tty_dev);mutex_unlock (&port->mutex);return 0 ; } +put_device (tty_dev); uport->suspended =0 ;/*
drivers/tty/tty_io.c +2 -2
@@ -941,10 +941,10 @@ void start_tty(struct tty_struct *tty)EXPORT_SYMBOL (start_tty); +/* We limit tty time update visibility to every 8 seconds or so. */ static void tty_update_time (struct timespec *time) { -unsigned long sec =get_seconds (); - sec -= sec %60 ; +unsigned long sec =get_seconds () & ~7 ;if ((long )(sec - time->tv_sec) >0 ) time->tv_sec = sec; }
drivers/usb/chipidea/udc.c +8 -0
@@ -461,6 +461,8 @@ static int _hardware_enqueue(struct ci13xxx_ep *mEp, struct ci13xxx_req *mReq) mReq->ptr->page[i] = (mReq->req.dma + i *CI13XXX_PAGE_SIZE ) & ~TD_RESERVED_MASK ; +wmb (); +if (!list_empty (&mEp->qh.queue)) {struct ci13xxx_req *mReqPrev;int n =hw_ep_bit (mEp->num, mEp->dir);
@@ -561,6 +563,12 @@ __acquires(mEp->lock)struct ci13xxx_req *mReq = \list_entry (mEp->qh.queue.next, struct ci13xxx_req, queue); + +if (mReq->zptr) { +dma_pool_free (mEp->td_pool, mReq->zptr, mReq->zdma); + mReq->zptr =NULL ; + } +list_del_init (&mReq->queue); mReq->req.status = -ESHUTDOWN ;
drivers/usb/chipidea/udc.h +2 -2
@@ -40,7 +40,7 @@ struct ci13xxx_td {#define TD_CURR_OFFSET (0x0FFFUL << 0)#define TD_FRAME_NUM (0x07FFUL << 0)#define TD_RESERVED_MASK (0x0FFFUL << 0) -} __attribute__ ((packed)); +} __attribute__ ((packed, aligned(4)));/* DMA layout of queue heads */ struct ci13xxx_qh {
@@ -57,7 +57,7 @@ struct ci13xxx_qh {/* 9 */ u32 RESERVED ;struct usb_ctrlrequest setup; -} __attribute__ ((packed)); +} __attribute__ ((packed, aligned(4)));/** * struct ci13xxx_req - usb request representation
drivers/usb/core/devio.c +2 -0
@@ -739,6 +739,8 @@ static int check_ctrlrecip(struct dev_state *ps, unsigned int requesttype, index &=0xff ;switch (requesttype &USB_RECIP_MASK ) {case USB_RECIP_ENDPOINT : +if ((index & ~USB_DIR_IN ) ==0 ) +return 0 ; ret =findintfep (ps->dev, index);if (ret >=0 ) ret =checkintf (ps, ret);
drivers/usb/host/ehci-hcd.c +0 -3
@@ -670,9 +670,6 @@ int ehci_setup(struct usb_hcd *hcd)if (retval)return retval; -if (ehci_is_TDI (ehci)) -tdi_reset (ehci); -ehci_reset (ehci);return 0 ;
drivers/usb/misc/appledisplay.c +1 -0
@@ -63,6 +63,7 @@ static const struct usb_device_id appledisplay_table[] = { { APPLEDISPLAY_DEVICE(0x9219) }, { APPLEDISPLAY_DEVICE(0x921c) }, { APPLEDISPLAY_DEVICE(0x921d) }, + { APPLEDISPLAY_DEVICE(0x9236) }, /* Terminating entry */ { }
drivers/usb/serial/ftdi_sio.c +15 -8
@@ -189,6 +189,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_THROTTLE_PID) }, { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GATEWAY_PID) }, { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GBM_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GBM_BOOST_PID) }, { USB_DEVICE(NEWPORT_VID, NEWPORT_AGILIS_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) },
@@ -870,7 +871,9 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_DOTEC_PID) }, { USB_DEVICE(QIHARDWARE_VID, MILKYMISTONE_JTAGSERIAL_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, - { USB_DEVICE(ST_VID, ST_STMCLT1030_PID), + { USB_DEVICE(ST_VID, ST_STMCLT_2232_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, + { USB_DEVICE(ST_VID, ST_STMCLT_4232_PID), .driver_info = (kernel_ulong_t)&ftdi_stmclite_quirk }, { USB_DEVICE(FTDI_VID, FTDI_RF_R106) }, { USB_DEVICE(FTDI_VID, FTDI_DISTORTEC_JTAG_LOCK_PICK_PID),
@@ -1792,20 +1795,24 @@ static int ftdi_8u2232c_probe(struct usb_serial *serial) }/* -* First and second port on STMCLiteadaptors is reserved for JTAG interface -* and the forth port for pio +* First two ports on JTAG adaptors using an FT4232 such as STMicroelectronics's +* ST Micro Connect Lite are reserved for JTAG or other non-UART interfaces and +* can be accessed from userspace. +* The next two ports are enabled as UARTs by default, where port 2 is +* a conventional RS-232 UART. */ static int ftdi_stmclite_probe (struct usb_serial *serial) {struct usb_device *udev = serial->dev;struct usb_interface *interface = serial->interface; -if (interface == udev->actconfig->interface[2 ]) -return 0 ; - -dev_info (&udev->dev,"Ignoring serial port reserved for JTAG\n" ); +if (interface == udev->actconfig->interface[0 ] || + interface == udev->actconfig->interface[1 ]) { +dev_info (&udev->dev,"Ignoring serial port reserved for JTAG\n" ); +return -ENODEV ; + } -return -ENODEV ; +return 0 ; }/*
drivers/usb/serial/ftdi_sio_ids.h +3 -1
@@ -74,6 +74,7 @@#define FTDI_OPENDCC_THROTTLE_PID 0xBFDA#define FTDI_OPENDCC_GATEWAY_PID 0xBFDB#define FTDI_OPENDCC_GBM_PID 0xBFDC +#define FTDI_OPENDCC_GBM_BOOST_PID 0xBFDD/* NZR SEM 16+ USB (http://www.nzr.de) */ #define FTDI_NZR_SEM_USB_PID 0xC1E0/* NZR SEM-LOG16+ */
@@ -1150,7 +1151,8 @@* STMicroelectonics */ #define ST_VID 0x0483 -#define ST_STMCLT1030_PID 0x3747/* ST Micro Connect Lite STMCLT1030 */ +#define ST_STMCLT_2232_PID 0x3746 +#define ST_STMCLT_4232_PID 0x3747/* * Papouch products (http://www.papouch.com/)
drivers/usb/serial/io_ti.c +1 -1
@@ -2392,7 +2392,7 @@ static int get_serial_info(struct edgeport_port *edge_port, cwait = edge_port->port->port.closing_wait;if (cwait !=ASYNC_CLOSING_WAIT_NONE ) - cwait =jiffies_to_msecs (closing_wait) /10 ; + cwait =jiffies_to_msecs (cwait) /10 ;memset (&tmp,0 ,sizeof (tmp));
drivers/usb/serial/option.c +8 -0
@@ -347,6 +347,7 @@ static void option_instat_callback(struct urb *urb);/* Olivetti products */ #define OLIVETTI_VENDOR_ID 0x0b3c#define OLIVETTI_PRODUCT_OLICARD100 0xc000 +#define OLIVETTI_PRODUCT_OLICARD145 0xc003/* Celot products */ #define CELOT_VENDOR_ID 0x211f
@@ -1273,6 +1274,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(SIEMENS_VENDOR_ID, CINTERION_PRODUCT_HC28_MDMNET) }, { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100) }, + { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD145) }, { USB_DEVICE(CELOT_VENDOR_ID, CELOT_PRODUCT_CT680M) }, /* CT-650 CDMA 450 1xEVDO modem */ { USB_DEVICE(ONDA_VENDOR_ID, ONDA_MT825UP) }, /* ONDA MT825UP modem */ { USB_DEVICE_AND_INTERFACE_INFO(SAMSUNG_VENDOR_ID, SAMSUNG_PRODUCT_GT_B3730, USB_CLASS_CDC_DATA, 0x00, 0x00) }, /* Samsung GT-B3730 LTE USB modem.*/
@@ -1350,6 +1352,12 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(TPLINK_VENDOR_ID, TPLINK_PRODUCT_MA180), .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE(CHANGHONG_VENDOR_ID, CHANGHONG_PRODUCT_CH690) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d01, 0xff, 0x02, 0x01) }, /* D-Link DWM-156 (variant) */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d01, 0xff, 0x00, 0x00) }, /* D-Link DWM-156 (variant) */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d02, 0xff, 0x02, 0x01) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d02, 0xff, 0x00, 0x00) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x02, 0x01) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x00, 0x00) }, { } /* Terminating entry */ };MODULE_DEVICE_TABLE (usb, option_ids);
drivers/usb/storage/cypress_atacb.c +14 -2
@@ -248,14 +248,26 @@ static int cypress_probe(struct usb_interface *intf, {struct us_data *us;int result; +struct usb_device *device; result =usb_stor_probe1 (&us, intf, id, (id - cypress_usb_ids) + cypress_unusual_dev_list);if (result)return result; - us->protocol_name ="Transparent SCSI with Cypress ATACB" ; - us->proto_handler = cypress_atacb_passthrough; +/* Among CY7C68300 chips, the A revision does not support Cypress ATACB +* Filter out this revision from EEPROM default descriptor values +*/ + device =interface_to_usbdev (intf); +if (device->descriptor.iManufacturer !=0x38 || + device->descriptor.iProduct !=0x4e || + device->descriptor.iSerialNumber !=0x64 ) { + us->protocol_name ="Transparent SCSI with Cypress ATACB" ; + us->proto_handler = cypress_atacb_passthrough; + }else { + us->protocol_name ="Transparent SCSI" ; + us->proto_handler = usb_stor_transparent_scsi_command; + } result =usb_stor_probe2 (us);return result;
drivers/video/console/fbcon.c +2 -0
@@ -1228,6 +1228,8 @@ static void fbcon_deinit(struct vc_data *vc) finished:fbcon_free_font (p, free_font); +if (free_font) + vc->vc_font.data =NULL ;if (!con_is_bound (&fb_con))fbcon_exit ();
fs/dcache.c +3 -1
@@ -1230,8 +1230,10 @@ void shrink_dcache_parent(struct dentry * parent)LIST_HEAD (dispose);int found; -while ((found =select_parent (parent, &dispose)) !=0 ) +while ((found =select_parent (parent, &dispose)) !=0 ) {shrink_dentry_list (&dispose); +cond_resched (); + } }EXPORT_SYMBOL (shrink_dcache_parent);
fs/exec.c +5 -2
@@ -613,7 +613,7 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)* when the old and new regions overlap clear from new_end. */ free_pgd_range (&tlb, new_end, old_end, new_end, - vma->vm_next ? vma->vm_next->vm_start :0 ); + vma->vm_next ? vma->vm_next->vm_start :USER_PGTABLES_CEILING ); }else {/* * otherwise, clean from old_start; this is done to not touch
@@ -622,7 +622,7 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)* for the others its just a little faster. */ free_pgd_range (&tlb, old_start, old_end, new_end, - vma->vm_next ? vma->vm_next->vm_start :0 ); + vma->vm_next ? vma->vm_next->vm_start :USER_PGTABLES_CEILING ); }tlb_finish_mmu (&tlb, new_end, old_end);
@@ -898,11 +898,13 @@ static int de_thread(struct task_struct *tsk) sig->notify_count =-1 ;/* for exit_notify() */ for (;;) { +threadgroup_change_begin (tsk);write_lock_irq (&tasklist_lock);if (likely (leader->exit_state))break ;__set_current_state (TASK_KILLABLE );write_unlock_irq (&tasklist_lock); +threadgroup_change_end (tsk);schedule ();if (unlikely (__fatal_signal_pending (tsk))) goto killed;
@@ -960,6 +962,7 @@ static int de_thread(struct task_struct *tsk)if (unlikely (leader->ptrace))__wake_up_parent (leader, leader->parent);write_unlock_irq (&tasklist_lock); +threadgroup_change_end (tsk);release_task (leader); }
fs/ext4/Kconfig +2 -1
@@ -71,4 +71,5 @@ config EXT4_DEBUG Enables run-time debugging support for the ext4 filesystem. If you select Y here, then you will be able to turn on debugging - with a command such as "echo 1 > /sys/kernel/debug/ext4/mballoc-debug" + with a command such as: + echo 1 > /sys/module/ext4/parameters/mballoc_debug
fs/ext4/ext4_jbd2.h +5 -1
@@ -194,16 +194,20 @@ static inline void ext4_journal_callback_add(handle_t *handle,* ext4_journal_callback_del: delete a registered callback * @handle: active journal transaction handle on which callback was registered * @jce: registered journal callback entry to unregister +* Return true if object was sucessfully removed */ -static inline void ext4_journal_callback_del (handle_t *handle, +static inline bool ext4_journal_callback_try_del (handle_t *handle,struct ext4_journal_cb_entry *jce) { +bool deleted;struct ext4_sb_info *sbi =EXT4_SB (handle->h_transaction->t_journal->j_private);spin_lock (&sbi->s_md_lock); + deleted = !list_empty (&jce->jce_list);list_del_init (&jce->jce_list);spin_unlock (&sbi->s_md_lock); +return deleted; }int
fs/ext4/fsync.c +1 -2
@@ -166,8 +166,7 @@ int ext4_sync_file(struct file *file, loff_t start, loff_t end, int datasync)if (journal->j_flags &JBD2_BARRIER && !jbd2_trans_will_send_data_barrier (journal, commit_tid)) needs_barrier = true; -jbd2_log_start_commit (journal, commit_tid); - ret =jbd2_log_wait_commit (journal, commit_tid); + ret =jbd2_complete_transaction (journal, commit_tid);if (needs_barrier) { err =blkdev_issue_flush (inode->i_sb->s_bdev,GFP_KERNEL ,NULL );if (!ret)
fs/ext4/inode.c +5 -6
@@ -55,21 +55,21 @@ static __u32 ext4_inode_csum(struct inode *inode, struct ext4_inode *raw,__u16 csum_hi =0 ;__u32 csum; - csum_lo = raw->i_checksum_lo; + csum_lo =le16_to_cpu (raw->i_checksum_lo); raw->i_checksum_lo =0 ;if (EXT4_INODE_SIZE (inode->i_sb) >EXT4_GOOD_OLD_INODE_SIZE &&EXT4_FITS_IN_INODE (raw, ei, i_checksum_hi)) { - csum_hi = raw->i_checksum_hi; + csum_hi =le16_to_cpu (raw->i_checksum_hi); raw->i_checksum_hi =0 ; } csum =ext4_chksum (sbi, ei->i_csum_seed, (__u8 *)raw,EXT4_INODE_SIZE (inode->i_sb)); - raw->i_checksum_lo = csum_lo; + raw->i_checksum_lo =cpu_to_le16 (csum_lo);if (EXT4_INODE_SIZE (inode->i_sb) >EXT4_GOOD_OLD_INODE_SIZE &&EXT4_FITS_IN_INODE (raw, ei, i_checksum_hi)) - raw->i_checksum_hi = csum_hi; + raw->i_checksum_hi =cpu_to_le16 (csum_hi);return csum; }
@@ -210,8 +210,7 @@ void ext4_evict_inode(struct inode *inode)journal_t *journal =EXT4_SB (inode->i_sb)->s_journal;tid_t commit_tid =EXT4_I (inode)->i_datasync_tid; -jbd2_log_start_commit (journal, commit_tid); -jbd2_log_wait_commit (journal, commit_tid); +jbd2_complete_transaction (journal, commit_tid);filemap_write_and_wait (&inode->i_data); }truncate_inode_pages (&inode->i_data,0 );
fs/ext4/mballoc.c +4 -4
@@ -4420,11 +4420,11 @@ ext4_mb_free_metadata(handle_t *handle, struct ext4_buddy *e4b, node =rb_prev (new_node);if (node) { entry = rb_entry(node, struct ext4_free_data, efd_node); -if (can_merge (entry, new_entry)) { +if (can_merge (entry, new_entry) && +ext4_journal_callback_try_del (handle, &entry->efd_jce)) { new_entry->efd_start_cluster = entry->efd_start_cluster; new_entry->efd_count += entry->efd_count;rb_erase (node, &(db->bb_free_root)); -ext4_journal_callback_del (handle, &entry->efd_jce);kmem_cache_free (ext4_free_data_cachep, entry); } }
@@ -4432,10 +4432,10 @@ ext4_mb_free_metadata(handle_t *handle, struct ext4_buddy *e4b, node =rb_next (new_node);if (node) { entry = rb_entry(node, struct ext4_free_data, efd_node); -if (can_merge (new_entry, entry)) { +if (can_merge (new_entry, entry) && +ext4_journal_callback_try_del (handle, &entry->efd_jce)) { new_entry->efd_count += entry->efd_count;rb_erase (node, &(db->bb_free_root)); -ext4_journal_callback_del (handle, &entry->efd_jce);kmem_cache_free (ext4_free_data_cachep, entry); } }
fs/ext4/mmp.c +1 -1
@@ -7,7 +7,7 @@#include "ext4.h" /* Checksumming functions */ -static __u32 ext4_mmp_csum (struct super_block *sb,struct mmp_struct *mmp) +static __le32 ext4_mmp_csum (struct super_block *sb,struct mmp_struct *mmp) {struct ext4_sb_info *sbi =EXT4_SB (sb);int offset = offsetof(struct mmp_struct , mmp_checksum);
fs/ext4/resize.c +2 -0
@@ -1341,6 +1341,8 @@ static void ext4_update_super(struct super_block *sb,/* Update the global fs size fields */ sbi->s_groups_count += flex_gd->count; + sbi->s_blockfile_groups =min_t (ext4_group_t, sbi->s_groups_count, + (EXT4_MAX_BLOCK_FILE_PHYS /EXT4_BLOCKS_PER_GROUP (sb)));/* Update the reserved block counts only once the new group is * active. */
fs/ext4/super.c +9 -5
@@ -353,10 +353,13 @@ static void ext4_journal_commit_callback(journal_t *journal, transaction_t *txn)struct super_block *sb = journal->j_private;struct ext4_sb_info *sbi =EXT4_SB (sb);int error =is_journal_aborted (journal); -struct ext4_journal_cb_entry *jce, *tmp; +struct ext4_journal_cb_entry *jce; +BUG_ON (txn->t_state ==T_FINISHED );spin_lock (&sbi->s_md_lock); -list_for_each_entry_safe (jce, tmp, &txn->t_private_list, jce_list) { +while (!list_empty (&txn->t_private_list)) { + jce =list_entry (txn->t_private_list.next, + struct ext4_journal_cb_entry, jce_list);list_del_init (&jce->jce_list);spin_unlock (&sbi->s_md_lock); jce->jce_func (sb, jce, error);
@@ -3698,6 +3701,9 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) sbi->s_err_report.function = print_daily_error_info; sbi->s_err_report.data = (unsigned long ) sb; +/* Register extent status tree shrinker */ +ext4_es_register_shrinker (sb); + err =percpu_counter_init (&sbi->s_freeclusters_counter,ext4_count_free_clusters (sb));if (!err) {
@@ -3723,9 +3729,6 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) sbi->s_max_writeback_mb_bump =128 ; sbi->s_extent_max_zeroout_kb =32 ; -/* Register extent status tree shrinker */ -ext4_es_register_shrinker (sb); -/* * set up enough so that it can read an inode */
@@ -4010,6 +4013,7 @@ failed_mount_wq: sbi->s_journal =NULL ; } failed_mount3: +ext4_es_unregister_shrinker (sb);del_timer (&sbi->s_err_report);if (sbi->s_flex_groups)ext4_kvfree (sbi->s_flex_groups);
fs/fscache/stats.c +1 -1
@@ -287,5 +287,5 @@ const struct file_operations fscache_stats_fops = { .open = fscache_stats_open, .read = seq_read, .llseek = seq_lseek, - .release = seq_release, + .release = single_release, };
fs/jbd2/commit.c +28 -22
80 lines not on this page · raw message
fs/jbd2/journal.c +31 -0
@@ -710,6 +710,37 @@ int jbd2_log_wait_commit(journal_t *journal, tid_t tid) }/* +* When this function returns the transaction corresponding to tid +* will be completed. If the transaction has currently running, start +* committing that transaction before waiting for it to complete. If +* the transaction id is stale, it is by definition already completed, +* so just return SUCCESS. +*/ +int jbd2_complete_transaction (journal_t *journal,tid_t tid) +{ +int need_to_wait =1 ; + +read_lock (&journal->j_state_lock); +if (journal->j_running_transaction && + journal->j_running_transaction->t_tid == tid) { +if (journal->j_commit_request != tid) { +/* transaction not yet started, so request it */ +read_unlock (&journal->j_state_lock); +jbd2_log_start_commit (journal, tid); + goto wait_commit; + } + }else if (!(journal->j_committing_transaction && + journal->j_committing_transaction->t_tid == tid)) + need_to_wait =0 ; +read_unlock (&journal->j_state_lock); +if (!need_to_wait) +return 0 ; +wait_commit: +return jbd2_log_wait_commit (journal, tid); +} +EXPORT_SYMBOL (jbd2_complete_transaction); + +/* * Log buffer allocation routines: */
fs/lockd/clntlock.c +3 -0
@@ -144,6 +144,9 @@ int nlmclnt_block(struct nlm_wait *block, struct nlm_rqst *req, long timeout) timeout);if (ret <0 )return -ERESTARTSYS ; +/* Reset the lock status after a server reboot so we resend */ +if (block->b_status == nlm_lck_denied_grace_period) + block->b_status = nlm_lck_blocked; req->a_res.status = block->b_status;return 0 ; }
fs/lockd/clntproc.c +0 -3
@@ -550,9 +550,6 @@ again: status =nlmclnt_block (block, req,NLMCLNT_POLL_TIMEOUT );if (status <0 )break ; -/* Resend the blocking lock request after a server reboot */ -if (resp->status == nlm_lck_denied_grace_period) -continue ;if (resp->status != nlm_lck_blocked)break ; }
fs/namespace.c +2 -3
@@ -2238,12 +2238,11 @@ long do_mount(const char *dev_name, const char *dir_name, retval =security_sb_mount (dev_name, &path, type_page, flags, data_page); +if (!retval && !may_mount ()) + retval = -EPERM ;if (retval) goto dput_out; -if (!may_mount ()) -return -EPERM ; -/* Default to relatime unless overriden */ if (!(flags &MS_NOATIME )) mnt_flags |=MNT_RELATIME ;
fs/nfs/nfs4proc.c +12 -0
@@ -1380,6 +1380,12 @@ int nfs4_open_delegation_recall(struct nfs_open_context *ctx, struct nfs4_statecase -ENOMEM : err =0 ; goto out; +case -NFS4ERR_DELAY : +case -NFS4ERR_GRACE : +set_bit (NFS_DELEGATED_STATE , &state->flags); +ssleep (1 ); + err = -EAGAIN ; + goto out; }set_bit (NFS_DELEGATED_STATE , &state->flags); err =nfs4_handle_exception (server, err, &exception);
@@ -5025,6 +5031,12 @@ int nfs4_lock_delegation_recall(struct nfs4_state *state, struct file_lock *fl)nfs4_schedule_stateid_recovery (server, state); err =0 ; goto out; +case -NFS4ERR_DELAY : +case -NFS4ERR_GRACE : +set_bit (NFS_DELEGATED_STATE , &state->flags); +ssleep (1 ); + err = -EAGAIN ; + goto out;case -ENOMEM :case -NFS4ERR_DENIED :/* kill_proc(fl->fl_pid, SIGLOST, 1); */
fs/nfsd/nfs4proc.c +4 -4
@@ -931,14 +931,14 @@ nfsd4_write(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,nfs4_lock_state (); status =nfs4_preprocess_stateid_op (SVC_NET (rqstp), cstate, stateid,WR_STATE , &filp); -if (filp) -get_file (filp); -nfs4_unlock_state (); -if (status) { +nfs4_unlock_state ();dprintk ("NFSD: nfsd4_write: couldn't process stateid!\n" );return status; } +if (filp) +get_file (filp); +nfs4_unlock_state (); cnt = write->wr_buflen; write->wr_how_written = write->wr_stable_how;
fs/nfsd/nfs4state.c +2 -8
@@ -210,13 +210,7 @@ static void __nfs4_file_put_access(struct nfs4_file *fp, int oflag) {if (atomic_dec_and_test (&fp->fi_access[oflag])) {nfs4_file_put_fd (fp, oflag); -/* -* It's also safe to get rid of the RDWR open *if* -* we no longer have need of the other kind of access -* or if we already have the other kind of open: -*/ -if (fp->fi_fds[1 -oflag] - ||atomic_read (&fp->fi_access[1 - oflag]) ==0 ) +if (atomic_read (&fp->fi_access[1 - oflag]) ==0 )nfs4_file_put_fd (fp,O_RDWR ); } }
@@ -267,7 +261,7 @@ kmem_cache *slab) min_stateid =0 ;return stid; out_free: -kfree (stid); +kmem_cache_free (slab, stid);return NULL ; }
fs/nfsd/nfs4xdr.c +5 -14
@@ -344,10 +344,7 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,all 32 bits of 'nseconds'. */ READ_BUF (12 ); len +=12 ; -READ32 (dummy32); -if (dummy32) -return nfserr_inval; -READ32 (iattr->ia_atime.tv_sec); +READ64 (iattr->ia_atime.tv_sec);READ32 (iattr->ia_atime.tv_nsec);if (iattr->ia_atime.tv_nsec >= (u32 )1000000000 )return nfserr_inval;
@@ -370,10 +367,7 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,all 32 bits of 'nseconds'. */ READ_BUF (12 ); len +=12 ; -READ32 (dummy32); -if (dummy32) -return nfserr_inval; -READ32 (iattr->ia_mtime.tv_sec); +READ64 (iattr->ia_mtime.tv_sec);READ32 (iattr->ia_mtime.tv_nsec);if (iattr->ia_mtime.tv_nsec >= (u32 )1000000000 )return nfserr_inval;
@@ -2401,8 +2395,7 @@ out_acl:if (bmval1 &FATTR4_WORD1_TIME_ACCESS ) {if ((buflen -=12 ) <0 ) goto out_resource; -WRITE32 (0 ); -WRITE32 (stat.atime.tv_sec); +WRITE64 ((s64 )stat.atime.tv_sec);WRITE32 (stat.atime.tv_nsec); }if (bmval1 &FATTR4_WORD1_TIME_DELTA ) {
@@ -2415,15 +2408,13 @@ out_acl:if (bmval1 &FATTR4_WORD1_TIME_METADATA ) {if ((buflen -=12 ) <0 ) goto out_resource; -WRITE32 (0 ); -WRITE32 (stat.ctime.tv_sec); +WRITE64 ((s64 )stat.ctime.tv_sec);WRITE32 (stat.ctime.tv_nsec); }if (bmval1 &FATTR4_WORD1_TIME_MODIFY ) {if ((buflen -=12 ) <0 ) goto out_resource; -WRITE32 (0 ); -WRITE32 (stat.mtime.tv_sec); +WRITE64 ((s64 )stat.mtime.tv_sec);WRITE32 (stat.mtime.tv_nsec); }if (bmval1 &FATTR4_WORD1_MOUNTED_ON_FILEID ) {
fs/notify/inotify/inotify_user.c +4 -2
@@ -572,7 +572,6 @@ static int inotify_update_existing_watch(struct fsnotify_group *group,int add = (arg &IN_MASK_ADD );int ret; -/* don't allow invalid bits: we don't want flags set */ mask =inotify_arg_to_mask (arg); fsn_mark =fsnotify_find_inode_mark (group, inode);
@@ -623,7 +622,6 @@ static int inotify_new_watch(struct fsnotify_group *group,struct idr *idr = &group->inotify_data.idr;spinlock_t *idr_lock = &group->inotify_data.idr_lock; -/* don't allow invalid bits: we don't want flags set */ mask =inotify_arg_to_mask (arg); tmp_i_mark =kmem_cache_alloc (inotify_inode_mark_cachep,GFP_KERNEL );
@@ -751,6 +749,10 @@ SYSCALL_DEFINE3(inotify_add_watch, int, fd, const char __user *, pathname,int ret;unsigned flags =0 ; +/* don't allow invalid bits: we don't want flags set */ +if (unlikely (!(mask &ALL_INOTIFY_BITS ))) +return -EINVAL ; + f =fdget (fd);if (unlikely (!f.file))return -EBADF ;
fs/sysfs/dir.c +11 -4
@@ -1012,6 +1012,7 @@ static int sysfs_readdir(struct file * filp, void * dirent, filldir_t filldir)enum kobj_ns_type type;const void *ns;ino_t ino; +loff_t off; type =sysfs_ns_type (parent_sd); ns =sysfs_info (dentry->d_sb)->ns[type];
@@ -1034,6 +1035,7 @@ static int sysfs_readdir(struct file * filp, void * dirent, filldir_t filldir)return 0 ; }mutex_lock (&sysfs_mutex); + off = filp->f_pos;for (pos =sysfs_dir_pos (ns, parent_sd, filp->f_pos, pos); pos; pos =sysfs_dir_next_pos (ns, parent_sd, filp->f_pos, pos)) {
@@ -1045,19 +1047,24 @@ static int sysfs_readdir(struct file * filp, void * dirent, filldir_t filldir) len =strlen (name); ino = pos->s_ino; type =dt_type (pos); - filp->f_pos = pos->s_hash; + off = filp->f_pos = pos->s_hash; filp->private_data =sysfs_get (pos);mutex_unlock (&sysfs_mutex); - ret =filldir (dirent, name, len, filp->f_pos, ino, type); + ret =filldir (dirent, name, len, off, ino, type);mutex_lock (&sysfs_mutex);if (ret <0 )break ; }mutex_unlock (&sysfs_mutex); -if ((filp->f_pos >1 ) && !pos) {/* EOF */ - filp->f_pos =INT_MAX ; + +/* don't reference last entry if its refcount is dropped */ +if (!pos) { filp->private_data =NULL ; + +/* EOF and not changed as 0 or 1 in read/write path */ +if (off == filp->f_pos && off >1 ) + filp->f_pos =INT_MAX ; }return 0 ; }
include/asm-generic/pgtable.h +10 -0
@@ -7,6 +7,16 @@#include <linux/mm_types.h> #include <linux/bug.h> +/* +* On almost all architectures and configurations, 0 can be used as the +* upper ceiling to free_pgtables(): on many architectures it has the same +* effect as using TASK_SIZE. However, there is one configuration which +* must impose a more careful limit, to avoid freeing kernel pgtables. +*/ +#ifndef USER_PGTABLES_CEILING +#define USER_PGTABLES_CEILING 0UL +#endif +#ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS extern int ptep_set_access_flags(struct vm_area_struct *vma, unsigned long address, pte_t *ptep,
include/linux/cgroup.h +0 -3
@@ -304,9 +304,6 @@ struct cftype {/* CFTYPE_* flags */ unsigned int flags; -/* file xattrs */ -struct simple_xattrs xattrs; -int (*open)(struct inode *inode,struct file *file); ssize_t (*read)(struct cgroup *cgrp, struct cftype *cft, struct file *file,
include/linux/ipc_namespace.h +1 -1
@@ -43,8 +43,8 @@ struct ipc_namespace {size_t shm_ctlmax;size_t shm_ctlall; +unsigned long shm_tot;int shm_ctlmni; -int shm_tot;/* * Defines whether IPC_RMID is forced for _all_ shm segments regardless * of shmctl()
include/linux/jbd2.h +2 -0
@@ -480,6 +480,7 @@ struct transaction_sT_COMMIT ,T_COMMIT_DFLUSH ,T_COMMIT_JFLUSH , +T_COMMIT_CALLBACK , T_FINISHED } t_state;
@@ -1200,6 +1201,7 @@ int __jbd2_log_start_commit(journal_t *journal, tid_t tid);int jbd2_journal_start_commit (journal_t *journal,tid_t *tid);int jbd2_journal_force_commit_nested (journal_t *journal);int jbd2_log_wait_commit (journal_t *journal,tid_t tid); +int jbd2_complete_transaction (journal_t *journal,tid_t tid);int jbd2_log_do_checkpoint (journal_t *journal);int jbd2_trans_will_send_data_barrier (journal_t *journal,tid_t tid);
include/linux/sched.h +4 -14
@@ -2413,27 +2413,18 @@ static inline void threadgroup_change_end(struct task_struct *tsk)* * Lock the threadgroup @tsk belongs to. No new task is allowed to enter * and member tasks aren't allowed to exit (as indicated by PF_EXITING) or -* perform exec. This is useful for cases where the threadgroup needs to -* stay stable across blockable operations. +* change ->group_leader/pid. This is useful for cases where the threadgroup +* needs to stay stable across blockable operations. * * fork and exit paths explicitly call threadgroup_change_{begin|end}() for * synchronization. While held, no new task will be added to threadgroup * and no existing live task will have its PF_EXITING set. * -* During exec, a task goes and puts its thread group through unusual -* changes. After de-threading, exclusive access is assumed to resources -* which are usually shared by tasks in the same group - e.g. sighand may -* be replaced with a new one. Also, the exec'ing task takes over group -* leader role including its pid. Exclude these changes while locked by -* grabbing cred_guard_mutex which is used to synchronize exec path. +* de_thread() does threadgroup_change_{begin|end}() when a non-leader +* sub-thread becomes a new leader. */ static inline void threadgroup_lock (struct task_struct *tsk) { -/* -* exec uses exit for de-threading nesting group_rwsem inside -* cred_guard_mutex. Grab cred_guard_mutex first. -*/ -mutex_lock (&tsk->signal->cred_guard_mutex);down_write (&tsk->signal->group_rwsem); }
@@ -2446,7 +2437,6 @@ static inline void threadgroup_lock(struct task_struct *tsk)static inline void threadgroup_unlock (struct task_struct *tsk) {up_write (&tsk->signal->group_rwsem); -mutex_unlock (&tsk->signal->cred_guard_mutex); }#else static inline void threadgroup_change_begin (struct task_struct *tsk) {}
include/sound/emu10k1.h +1 -0
@@ -1787,6 +1787,7 @@ struct snd_emu10k1 {unsigned int next_free_voice;const struct firmware *firmware; +const struct firmware *dock_fw;#ifdef CONFIG_PM_SLEEP unsigned int *saved_ptr;
ipc/shm.c +1 -1
@@ -462,7 +462,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params)size_t size = params->u.size;int error;struct shmid_kernel *shp; -int numpages = (size +PAGE_SIZE -1 ) >>PAGE_SHIFT ; +size_t numpages = (size +PAGE_SIZE -1 ) >>PAGE_SHIFT ;struct file * file;char name[13 ];int id;
kernel/cgroup.c +7 -6
@@ -162,6 +162,9 @@ struct cfent {struct list_head node;struct dentry *dentry;struct cftype *type; + +/* file xattrs */ +struct simple_xattrs xattrs; };/*
@@ -910,13 +913,12 @@ static void cgroup_diput(struct dentry *dentry, struct inode *inode) }else {struct cfent *cfe =__d_cfe (dentry);struct cgroup *cgrp = dentry->d_parent->d_fsdata; -struct cftype *cft = cfe->type;WARN_ONCE (!list_empty (&cfe->node) && cgrp != &cgrp->root->top_cgroup,"cfe still linked for %s\n" , cfe->type->name); +simple_xattrs_free (&cfe->xattrs);kfree (cfe); -simple_xattrs_free (&cft->xattrs); }iput (inode); }
@@ -2065,7 +2067,7 @@ static int cgroup_attach_proc(struct cgroup *cgrp, struct task_struct *leader)if (!group)return -ENOMEM ;/* pre-allocate to guarantee space while iterating in rcu read-side. */ - retval =flex_array_prealloc (group,0 , group_size -1 ,GFP_KERNEL ); + retval =flex_array_prealloc (group,0 , group_size,GFP_KERNEL );if (retval) goto out_free_group_list;
@@ -2551,7 +2553,7 @@ static struct simple_xattrs *__d_xattrs(struct dentry *dentry)if (S_ISDIR (dentry->d_inode->i_mode))return &__d_cgrp (dentry)->xattrs;else -return &__d_cft (dentry)->xattrs; +return &__d_cfe (dentry)->xattrs; }static inline int xattr_enabled (struct dentry *dentry)
@@ -2727,8 +2729,6 @@ static int cgroup_add_file(struct cgroup *cgrp, struct cgroup_subsys *subsys,umode_t mode;char name[MAX_CGROUP_TYPE_NAMELEN +MAX_CFTYPE_NAME +2 ] = {0 }; -simple_xattrs_init (&cft->xattrs); -if (subsys && !test_bit (ROOT_NOPREFIX , &cgrp->root->flags)) {strcpy (name, subsys->name);strcat (name,"." );
@@ -2753,6 +2753,7 @@ static int cgroup_add_file(struct cgroup *cgrp, struct cgroup_subsys *subsys, cfe->type = (void *)cft; cfe->dentry = dentry; dentry->d_fsdata = cfe; +simple_xattrs_init (&cfe->xattrs);list_add_tail (&cfe->node, &parent->files); cfe =NULL ; }
kernel/hrtimer.c +6 -0
@@ -276,6 +276,10 @@ ktime_t ktime_add_ns(const ktime_t kt, u64 nsec) }else {unsigned long rem =do_div (nsec,NSEC_PER_SEC ); +/* Make sure nsec fits into long */ +if (unlikely (nsec >KTIME_SEC_MAX )) +return (ktime_t ){ .tv64 =KTIME_MAX }; + tmp =ktime_set ((long )nsec, rem); }
@@ -1310,6 +1314,8 @@ retry: expires =ktime_sub (hrtimer_get_expires (timer), base->offset); +if (expires.tv64 <0 ) + expires.tv64 =KTIME_MAX ;if (expires.tv64 < expires_next.tv64) expires_next = expires;break ;
kernel/rcutree_trace.c +4 -4
@@ -97,7 +97,7 @@ static const struct file_operations rcubarrier_fops = { .open = rcubarrier_open, .read = seq_read, .llseek = no_llseek, - .release = seq_release, + .release = single_release, };#ifdef CONFIG_RCU_BOOST
@@ -208,7 +208,7 @@ static const struct file_operations rcuexp_fops = { .open = rcuexp_open, .read = seq_read, .llseek = no_llseek, - .release = seq_release, + .release = single_release, };#ifdef CONFIG_RCU_BOOST
@@ -308,7 +308,7 @@ static const struct file_operations rcuhier_fops = { .open = rcuhier_open, .read = seq_read, .llseek = no_llseek, - .release = seq_release, + .release = single_release, };static void show_one_rcugp (struct seq_file *m,struct rcu_state *rsp)
@@ -350,7 +350,7 @@ static const struct file_operations rcugp_fops = { .open = rcugp_open, .read = seq_read, .llseek = no_llseek, - .release = seq_release, + .release = single_release, };static void print_one_rcu_pending (struct seq_file *m,struct rcu_data *rdp)
kernel/time/tick-broadcast.c +4 -0
@@ -67,6 +67,8 @@ static void tick_broadcast_start_periodic(struct clock_event_device *bc)*/ int tick_check_broadcast_device (struct clock_event_device *dev) { +struct clock_event_device *cur = tick_broadcast_device.evtdev; + if ((dev->features & CLOCK_EVT_FEAT_DUMMY) || (tick_broadcast_device.evtdev && tick_broadcast_device.evtdev->rating >= dev->rating) ||
@@ -74,6 +76,8 @@ int tick_check_broadcast_device(struct clock_event_device *dev)return 0 ;clockevents_exchange_device (tick_broadcast_device.evtdev, dev); +if (cur) + cur->event_handler = clockevents_handle_noop; tick_broadcast_device.evtdev = dev;if (!cpumask_empty (tick_get_broadcast_mask ()))tick_broadcast_start_periodic (dev);
kernel/time/tick-common.c +1 -0
@@ -323,6 +323,7 @@ static void tick_shutdown(unsigned int *cpup)*/ dev->mode =CLOCK_EVT_MODE_UNUSED ;clockevents_exchange_device (dev,NULL ); + dev->event_handler = clockevents_handle_noop; td->evtdev =NULL ; }raw_spin_unlock_irqrestore (&tick_device_lock, flags);
kernel/trace/ftrace.c +3 -2
@@ -676,7 +676,7 @@ int ftrace_profile_pages_init(struct ftrace_profile_stat *stat) pages =DIV_ROUND_UP (functions,PROFILES_PER_PAGE ); -for (i =0 ; i < pages; i++) { +for (i =1 ; i < pages; i++) { pg->next = (void *)get_zeroed_page (GFP_KERNEL );if (!pg->next) goto out_free;
@@ -3736,7 +3736,8 @@ out:if (fail)return -EINVAL ; - ftrace_graph_filter_enabled =1 ; + ftrace_graph_filter_enabled = !!(*idx); +return 0 ; }
kernel/trace/trace.c +2 -0
@@ -5028,6 +5028,8 @@ static __init int tracer_init_debugfs(void)trace_access_lock_init (); d_tracer =tracing_init_dentry (); +if (!d_tracer) +return 0 ;trace_create_file ("trace_options" ,0644 , d_tracer,NULL , &tracing_iter_fops);
kernel/trace/trace_stack.c +69 -7
142 lines not on this page · raw message
kernel/trace/trace_stat.c +2 -0
@@ -307,6 +307,8 @@ static int tracing_stat_init(void)struct dentry *d_tracing; d_tracing =tracing_init_dentry (); +if (!d_tracing) +return 0 ; stat_dir =debugfs_create_dir ("trace_stat" , d_tracing);if (!stat_dir)
lib/oid_registry.c +5 -0
@@ -9,6 +9,7 @@* 2 of the Licence, or (at your option) any later version. */ +#include <linux/module.h> #include <linux/export.h> #include <linux/oid_registry.h> #include <linux/kernel.h>
@@ -16,6 +17,10 @@#include <linux/bug.h> #include "oid_registry_data.c" +MODULE_DESCRIPTION ("OID Registry" ); +MODULE_AUTHOR ("Red Hat, Inc." ); +MODULE_LICENSE ("GPL" ); +/** * look_up_OID - Find an OID registration for the specified data * @data: Binary representation of the OID
mm/mmap.c +2 -2
@@ -2305,7 +2305,7 @@ static void unmap_region(struct mm_struct *mm,update_hiwater_rss (mm);unmap_vmas (&tlb, vma, start, end);free_pgtables (&tlb, vma, prev ? prev->vm_end :FIRST_USER_ADDRESS , - next ? next->vm_start :0 ); + next ? next->vm_start :USER_PGTABLES_CEILING );tlb_finish_mmu (&tlb, start, end); }
@@ -2685,7 +2685,7 @@ void exit_mmap(struct mm_struct *mm)/* Use -1 here to ensure all VMAs in the mm are unmapped */ unmap_vmas (&tlb, vma,0 ,-1 ); -free_pgtables (&tlb, vma,FIRST_USER_ADDRESS ,0 ); +free_pgtables (&tlb, vma,FIRST_USER_ADDRESS ,USER_PGTABLES_CEILING );tlb_finish_mmu (&tlb,0 ,-1 );/*
mm/page_io.c +17 -0
@@ -214,6 +214,7 @@ int swap_writepage(struct page *page, struct writeback_control *wbc) kiocb.ki_left =PAGE_SIZE ; kiocb.ki_nbytes =PAGE_SIZE ; +set_page_writeback (page);unlock_page (page); ret = mapping->a_ops->direct_IO(KERNEL_WRITE, &kiocb, &iov,
@@ -222,7 +223,23 @@ int swap_writepage(struct page *page, struct writeback_control *wbc)if (ret ==PAGE_SIZE ) {count_vm_event (PSWPOUT ); ret =0 ; + }else { +/* +* In the case of swap-over-nfs, this can be a +* temporary failure if the system has limited +* memory for allocating transmit buffers. +* Mark the page dirty and avoid +* rotate_reclaimable_page but rate-limit the +* messages but do not flag PageError like +* the normal direct-to-bio case as it could +* be temporary. +*/ +set_page_dirty (page); +ClearPageReclaim (page); +pr_err_ratelimited ("Write error on dio swapfile (%Lu)\n" , +page_file_offset (page)); } +end_page_writeback (page);return ret; }
net/mac80211/cfg.c +1 -0
@@ -1034,6 +1034,7 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)list_for_each_entry (vlan, &sdata->u.ap.vlans, u.vlan.list)sta_info_flush_defer (vlan);sta_info_flush_defer (sdata); +synchronize_net ();rcu_barrier ();list_for_each_entry (vlan, &sdata->u.ap.vlans, u.vlan.list)sta_info_flush_cleanup (vlan);
net/mac80211/iface.c +3 -2
@@ -844,11 +844,12 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,* * sta_info_flush_cleanup() requires rcu_barrier() * first to wait for the station call_rcu() calls -* to complete, here we need at least sychronize_rcu() -* it to wait for the RX path in case it is using the +* to complete, and we also need synchronize_rcu() +* to wait for the RX path in case it is using the * interface and enqueuing frames at this very time on * another CPU. */ +synchronize_rcu ();rcu_barrier ();sta_info_flush_cleanup (sdata);
net/mac80211/pm.c +2 -1
@@ -53,8 +53,9 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)ieee80211_stop_queues_by_reason (hw,IEEE80211_QUEUE_STOP_REASON_SUSPEND ); -/* flush out all packets */ +/* flush out all packets and station cleanup call_rcu()s */ synchronize_net (); +rcu_barrier ();drv_flush (local, false);
net/wireless/reg.c +1 -1
@@ -855,7 +855,7 @@ static void handle_channel(struct wiphy *wiphy,return ;REG_DBG_PRINT ("Disabling freq %d MHz\n" , chan->center_freq); - chan->flags =IEEE80211_CHAN_DISABLED ; + chan->flags |=IEEE80211_CHAN_DISABLED ;return ; }
scripts/kconfig/streamline_config.pl +7 -10
@@ -156,7 +156,6 @@ sub read_kconfig { my $state = "NONE"; my $config; - my @kconfigs; my $cont = 0; my $line;
@@ -190,7 +189,13 @@ sub read_kconfig { # collect any Kconfig sources if (/^source\s*"(.*)"/) { - $kconfigs[$#kconfigs+1] = $1; + my $kconfig = $1; + # prevent reading twice. + if (!defined($read_kconfigs{$kconfig})) { + $read_kconfigs{$kconfig} = 1; + read_kconfig($kconfig); + } + next; } # configs found
@@ -250,14 +255,6 @@ sub read_kconfig { } } close($kinfile); - - # read in any configs that were found. - foreach my $kconfig (@kconfigs) { - if (!defined($read_kconfigs{$kconfig})) { - $read_kconfigs{$kconfig} = 1; - read_kconfig($kconfig); - } - } } if ($kconfig) {
sound/pci/emu10k1/emu10k1_main.c +33 -6
@@ -657,14 +657,14 @@ static int snd_emu10k1_cardbus_init(struct snd_emu10k1 *emu)return 0 ; } -static int snd_emu1010_load_firmware (struct snd_emu10k1 *emu) +static int snd_emu1010_load_firmware (struct snd_emu10k1 *emu, +const struct firmware *fw_entry) {int n, i;int reg;int value;unsigned int write_post;unsigned long flags; -const struct firmware *fw_entry = emu->firmware;if (!fw_entry)return -EIO ;
@@ -725,9 +725,34 @@ static int emu1010_firmware_thread(void *data)/* Return to Audio Dock programming mode */ snd_printk (KERN_INFO "emu1010: Loading Audio Dock Firmware\n" );snd_emu1010_fpga_write (emu,EMU_HANA_FPGA_CONFIG ,EMU_HANA_FPGA_CONFIG_AUDIODOCK ); - err =snd_emu1010_load_firmware (emu); -if (err !=0 ) -continue ; + +if (!emu->dock_fw) { +const char *filename =NULL ; +switch (emu->card_capabilities->emu_model) { +case EMU_MODEL_EMU1010 : + filename =DOCK_FILENAME ; +break ; +case EMU_MODEL_EMU1010B : + filename =MICRO_DOCK_FILENAME ; +break ; +case EMU_MODEL_EMU1616 : + filename =MICRO_DOCK_FILENAME ; +break ; + } +if (filename) { + err =request_firmware (&emu->dock_fw, + filename, + &emu->pci->dev); +if (err) +continue ; + } + } + +if (emu->dock_fw) { + err =snd_emu1010_load_firmware (emu, emu->dock_fw); +if (err) +continue ; + }snd_emu1010_fpga_write (emu,EMU_HANA_FPGA_CONFIG ,0 );snd_emu1010_fpga_read (emu,EMU_HANA_IRQ_STATUS , ®);
@@ -862,7 +887,7 @@ static int snd_emu10k1_emu1010_init(struct snd_emu10k1 *emu) filename, emu->firmware->size); } - err =snd_emu1010_load_firmware (emu); + err =snd_emu1010_load_firmware (emu, emu->firmware);if (err !=0 ) {snd_printk (KERN_INFO "emu1010: Loading Firmware failed\n" );return err;
@@ -1253,6 +1278,8 @@ static int snd_emu10k1_free(struct snd_emu10k1 *emu)kthread_stop (emu->emu1010.firmware_thread);if (emu->firmware)release_firmware (emu->firmware); +if (emu->dock_fw) +release_firmware (emu->dock_fw);if (emu->irq >=0 )free_irq (emu->irq, emu);/* remove reserved page */
sound/pci/hda/hda_generic.c +16 -6
@@ -2072,6 +2072,14 @@ get_multiio_path(struct hda_codec *codec, int idx)static void update_automute_all (struct hda_codec *codec); +/* Default value to be passed as aamix argument for snd_hda_activate_path(); +* used for output paths +*/ +static bool aamix_default (struct hda_gen_spec *spec) +{ +return !spec->have_aamix_ctl || spec->aamix_mode; +} +static int set_multi_io (struct hda_codec *codec,int idx,bool output) {struct hda_gen_spec *spec = codec->spec;
@@ -2087,11 +2095,11 @@ static int set_multi_io(struct hda_codec *codec, int idx, bool output)if (output) {set_pin_target (codec, nid,PIN_OUT , true); -snd_hda_activate_path (codec, path, true, true); +snd_hda_activate_path (codec, path, true,aamix_default (spec));set_pin_eapd (codec, nid, true); }else {set_pin_eapd (codec, nid, false); -snd_hda_activate_path (codec, path, false, true); +snd_hda_activate_path (codec, path, false,aamix_default (spec));set_pin_target (codec, nid, spec->multi_io[idx].ctl_in, true);path_power_down_sync (codec, path); }
@@ -2182,8 +2190,8 @@ static void update_aamix_paths(struct hda_codec *codec, bool do_mix,snd_hda_activate_path (codec, mix_path, true, true);path_power_down_sync (codec, nomix_path); }else { -snd_hda_activate_path (codec, mix_path, false, true); -snd_hda_activate_path (codec, nomix_path, true, true); +snd_hda_activate_path (codec, mix_path, false, false); +snd_hda_activate_path (codec, nomix_path, true, false);path_power_down_sync (codec, mix_path); } }
@@ -4729,7 +4737,8 @@ static void set_output_and_unmute(struct hda_codec *codec, int path_idx)return ; pin = path->path[path->depth -1 ];restore_pin_ctl (codec, pin); -snd_hda_activate_path (codec, path, path->active, true); +snd_hda_activate_path (codec, path, path->active, +aamix_default (codec->spec));set_pin_eapd (codec, pin, path->active); }
@@ -4779,7 +4788,8 @@ static void init_multi_io(struct hda_codec *codec)if (!spec->multi_io[i].ctl_in) spec->multi_io[i].ctl_in =snd_hda_codec_get_pin_target (codec, pin); -snd_hda_activate_path (codec, path, path->active, true); +snd_hda_activate_path (codec, path, path->active, +aamix_default (spec)); } }
sound/pci/hda/patch_realtek.c +6 -0
@@ -2515,6 +2515,7 @@ enum {ALC269_TYPE_ALC280 ,ALC269_TYPE_ALC282 ,ALC269_TYPE_ALC284 , + ALC269_TYPE_ALC286, };/*
@@ -2538,6 +2539,7 @@ static int alc269_parse_auto_config(struct hda_codec *codec)case ALC269_TYPE_ALC269VB :case ALC269_TYPE_ALC269VD :case ALC269_TYPE_ALC282 : +case ALC269_TYPE_ALC286 : ssids = alc269_ssids;break ;default :
@@ -3172,6 +3174,9 @@ static int patch_alc269(struct hda_codec *codec)case 0x10ec0292 : spec->codec_variant =ALC269_TYPE_ALC284 ;break ; +case 0x10ec0286 : + spec->codec_variant =ALC269_TYPE_ALC286 ; +break ; }/* automatic parse from the BIOS config */
@@ -3878,6 +3883,7 @@ static const struct hda_codec_preset snd_hda_preset_realtek[] = { { .id = 0x10ec0282, .name = "ALC282", .patch = patch_alc269 }, { .id = 0x10ec0283, .name = "ALC283", .patch = patch_alc269 }, { .id = 0x10ec0284, .name = "ALC284", .patch = patch_alc269 }, + { .id = 0x10ec0286, .name = "ALC286", .patch = patch_alc269 }, { .id = 0x10ec0290, .name = "ALC290", .patch = patch_alc269 }, { .id = 0x10ec0292, .name = "ALC292", .patch = patch_alc269 }, { .id = 0x10ec0861, .rev = 0x100340, .name = "ALC660",
sound/soc/codecs/max98088.c +1 -1
@@ -2006,7 +2006,7 @@ static int max98088_probe(struct snd_soc_codec *codec) ret); goto err_access; } -dev_info (codec->dev,"revision %c\n" , ret +'A' ); +dev_info (codec->dev,"revision %c\n" , ret -0x40 +'A' );snd_soc_write (codec,M98088_REG_51_PWR_SYS ,M98088_PWRSV );
sound/usb/6fire/pcm.c +0 -1
@@ -575,7 +575,6 @@ static void usb6fire_pcm_init_urb(struct pcm_urb *urb, urb->instance.pipe = in ?usb_rcvisocpipe (chip->dev, ep) :usb_sndisocpipe (chip->dev, ep); urb->instance.interval =1 ; - urb->instance.transfer_flags =URB_ISO_ASAP ; urb->instance.complete = handler; urb->instance.context = urb; urb->instance.number_of_packets =PCM_N_PACKETS_PER_URB ;
sound/usb/caiaq/audio.c +0 -3
@@ -670,7 +670,6 @@ static void read_completed(struct urb *urb)if (send_it) { out->number_of_packets = outframe; - out->transfer_flags =URB_ISO_ASAP ;usb_submit_urb (out,GFP_ATOMIC ); }else {struct snd_usb_caiaq_cb_info *oinfo = out->context;
@@ -686,7 +685,6 @@ requeue: } urb->number_of_packets =FRAMES_PER_URB ; - urb->transfer_flags =URB_ISO_ASAP ;usb_submit_urb (urb,GFP_ATOMIC ); }
@@ -751,7 +749,6 @@ static struct urb **alloc_urbs(struct snd_usb_caiaqdev *dev, int dir, int *ret) *BYTES_PER_FRAME ; urbs[i]->context = &dev->data_cb_info[i]; urbs[i]->interval =1 ; - urbs[i]->transfer_flags =URB_ISO_ASAP ; urbs[i]->number_of_packets =FRAMES_PER_URB ; urbs[i]->complete = (dir ==SNDRV_PCM_STREAM_CAPTURE ) ? read_completed : write_completed;
sound/usb/card.c +3 -1
@@ -627,7 +627,9 @@ int snd_usb_autoresume(struct snd_usb_audio *chip)int err = -ENODEV ;down_read (&chip->shutdown_rwsem); -if (!chip->shutdown && !chip->probing) +if (chip->probing) + err =0 ; +else if (!chip->shutdown) err =usb_autopm_get_interface (chip->pm_intf);up_read (&chip->shutdown_rwsem);
sound/usb/card.h +1 -0
@@ -116,6 +116,7 @@ struct snd_usb_substream {unsigned int altset_idx;/* USB data format: index of alternate setting */ unsigned int txfr_quirk:1; /* allow sub-frame alignment */unsigned int fmt_type;/* USB audio format type (1-3) */ +unsigned int pkt_offset_adj;/* Bytes to drop from beginning of packets (for non-compliant devices) */ unsigned int running: 1; /* running status */
sound/usb/endpoint.c +2 -3
@@ -677,7 +677,7 @@ static int data_ep_set_params(struct snd_usb_endpoint *ep,if (!u->urb->transfer_buffer) goto out_of_memory; u->urb->pipe = ep->pipe; - u->urb->transfer_flags =URB_ISO_ASAP |URB_NO_TRANSFER_DMA_MAP ; + u->urb->transfer_flags =URB_NO_TRANSFER_DMA_MAP ; u->urb->interval =1 << ep->datainterval; u->urb->context = u; u->urb->complete = snd_complete_urb;
@@ -716,8 +716,7 @@ static int sync_ep_set_params(struct snd_usb_endpoint *ep, u->urb->transfer_dma = ep->sync_dma + i *4 ; u->urb->transfer_buffer_length =4 ; u->urb->pipe = ep->pipe; - u->urb->transfer_flags =URB_ISO_ASAP | -URB_NO_TRANSFER_DMA_MAP ; + u->urb->transfer_flags =URB_NO_TRANSFER_DMA_MAP ; u->urb->number_of_packets =1 ; u->urb->interval =1 << ep->syncinterval; u->urb->context = u;
sound/usb/midi.c +2 -11
@@ -126,7 +126,6 @@ struct snd_usb_midi {struct snd_usb_midi_in_endpoint *in; } endpoints[MIDI_MAX_ENDPOINTS ];unsigned long input_triggered; -bool autopm_reference;unsigned int opened[2 ];unsigned char disconnected;unsigned char input_running;
@@ -1040,7 +1039,6 @@ static int substream_open(struct snd_rawmidi_substream *substream, int dir, {struct snd_usb_midi * umidi = substream->rmidi->private_data;struct snd_kcontrol *ctl; -int err;down_read (&umidi->disc_rwsem);if (umidi->disconnected) {
@@ -1051,13 +1049,6 @@ static int substream_open(struct snd_rawmidi_substream *substream, int dir,mutex_lock (&umidi->mutex);if (open) {if (!umidi->opened[0 ] && !umidi->opened[1 ]) { - err =usb_autopm_get_interface (umidi->iface); - umidi->autopm_reference = err >=0 ; -if (err <0 && err != -EACCES ) { -mutex_unlock (&umidi->mutex); -up_read (&umidi->disc_rwsem); -return -EIO ; - }if (umidi->roland_load_ctl) { ctl = umidi->roland_load_ctl; ctl->vd[0 ].access |=SNDRV_CTL_ELEM_ACCESS_INACTIVE ;
@@ -1080,8 +1071,6 @@ static int substream_open(struct snd_rawmidi_substream *substream, int dir,snd_ctl_notify (umidi->card,SNDRV_CTL_EVENT_MASK_INFO , &ctl->id); } -if (umidi->autopm_reference) -usb_autopm_put_interface (umidi->iface); } }mutex_unlock (&umidi->mutex);
@@ -2256,6 +2245,8 @@ int snd_usbmidi_create(struct snd_card *card,return err; } +usb_autopm_get_interface_no_resume (umidi->iface); +list_add_tail (&umidi->list, midi_list);return 0 ; }
sound/usb/misc/ua101.c +1 -2
@@ -1120,8 +1120,7 @@ static int alloc_stream_urbs(struct ua101 *ua, struct ua101_stream *stream,usb_init_urb (&urb->urb); urb->urb.dev = ua->dev; urb->urb.pipe = stream->usb_pipe; - urb->urb.transfer_flags =URB_ISO_ASAP | -URB_NO_TRANSFER_DMA_MAP ; + urb->urb.transfer_flags =URB_NO_TRANSFER_DMA_MAP ; urb->urb.transfer_buffer = addr; urb->urb.transfer_dma = dma; urb->urb.transfer_buffer_length = max_packet_size;
sound/usb/pcm.c +1 -1
@@ -1170,7 +1170,7 @@ static void retire_capture_urb(struct snd_usb_substream *subs, stride = runtime->frame_bits >>3 ;for (i =0 ; i < urb->number_of_packets; i++) { - cp = (unsigned char *)urb->transfer_buffer + urb->iso_frame_desc[i].offset; + cp = (unsigned char *)urb->transfer_buffer + urb->iso_frame_desc[i].offset + subs->pkt_offset_adj;if (urb->iso_frame_desc[i].status &&printk_ratelimit ()) {snd_printdd (KERN_ERR "frame %d active: %d\n" , i, urb->iso_frame_desc[i].status);// continue;
sound/usb/quirks.c +1 -0
@@ -837,6 +837,7 @@ static void set_format_emu_quirk(struct snd_usb_substream *subs,break ; }snd_emuusb_set_samplerate (subs->stream->chip, emu_samplerate_id); + subs->pkt_offset_adj = (emu_samplerate_id >=EMU_QUIRK_SR_176400HZ ) ?4 :0 ; } void snd_usb_set_format_quirk(struct snd_usb_substream *subs,
sound/usb/stream.c +9 -0
@@ -94,6 +94,7 @@ static void snd_usb_init_substream(struct snd_usb_stream *as, subs->dev = as->chip->dev; subs->txfr_quirk = as->chip->txfr_quirk; subs->speed =snd_usb_get_speed (subs->dev); + subs->pkt_offset_adj =0 ;snd_usb_set_pcm_ops (as->pcm, stream);
@@ -396,6 +397,14 @@ static int parse_uac_endpoint_attributes(struct snd_usb_audio *chip,if (!csep && altsd->bNumEndpoints >=2 ) csep =snd_usb_find_desc (alts->endpoint[1 ].extra, alts->endpoint[1 ].extralen,NULL ,USB_DT_CS_ENDPOINT ); +/* +* If we can't locate the USB_DT_CS_ENDPOINT descriptor in the extra +* bytes after the first endpoint, go search the entire interface. +* Some devices have it directly *before* the standard endpoint. +*/ +if (!csep) + csep =snd_usb_find_desc (alts->extra, alts->extralen,NULL ,USB_DT_CS_ENDPOINT ); +if (!csep || csep->bLength <7 || csep->bDescriptorSubtype !=UAC_EP_GENERAL ) { snd_printk(KERN_WARNING "%d:%u:%d : no or invalid"
sound/usb/usx2y/usb_stream.c +0 -1
@@ -69,7 +69,6 @@ static void init_pipe_urbs(struct usb_stream_kernel *sk, unsigned use_packsize, ++u, transfer += transfer_length) {struct urb *urb = urbs[u];struct usb_iso_packet_descriptor *desc; - urb->transfer_flags =URB_ISO_ASAP ; urb->transfer_buffer = transfer; urb->dev = dev; urb->pipe = pipe;
sound/usb/usx2y/usbusx2yaudio.c +0 -1
@@ -503,7 +503,6 @@ static int usX2Y_urbs_start(struct snd_usX2Y_substream *subs)if (0 == i)atomic_set (&subs->state, state_STARTING3); urb->dev = usX2Y->dev; - urb->transfer_flags =URB_ISO_ASAP ;for (pack =0 ; pack <nr_of_packs (); pack++) { urb->iso_frame_desc[pack].offset = subs->maxpacksize * pack; urb->iso_frame_desc[pack].length = subs->maxpacksize;
sound/usb/usx2y/usx2yhwdeppcm.c +0 -1
@@ -443,7 +443,6 @@ static int usX2Y_usbpcm_urbs_start(struct snd_usX2Y_substream *subs)if (0 == u)atomic_set (&subs->state, state_STARTING3); urb->dev = usX2Y->dev; - urb->transfer_flags =URB_ISO_ASAP ;for (pack =0 ; pack <nr_of_packs (); pack++) { urb->iso_frame_desc[pack].offset = subs->maxpacksize * (pack + u *nr_of_packs ()); urb->iso_frame_desc[pack].length = subs->maxpacksize;
Quoted 6 lines · Greg KH
I'm announcing the release of the 3.9.1 kernel.
All users of the 3.9 kernel series must upgrade.
The updated 3.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.9.y
Usually I can:
git pull git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git master
which means not having to update scripts/commandline history on each major verison change, but this time I did indeed need to:
git pull git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.9.y
is this an intended change, or did you do something like forgetting to merge into master on linux-stable ?
Signature · 4 lines
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - MEGreg KH
maintainerQuoted 11 lines · Athanasius
Quoted 6 lines · Greg KH
I'm announcing the release of the 3.9.1 kernel.
All users of the 3.9 kernel series must upgrade.
The updated 3.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.9.yUsually I can:
git pull
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitmaster
If you do that, you only get the master branch updated locally. Which tracks Linus's tree, not the different stable releases.
Quoted 7 lines
which means not having to update
scripts/commandlinehistory on each major verison change, but this time I did indeed need to:git pull
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.9.yis this an intended change, or did you do something like forgetting to merge into master on linux-stable ?
No, I have not changed anything on my end, perhaps you never really were updating the different stable branches?
thanks,
greg k-h
Quoted 19 lines · Greg KH
Quoted 11 lines · Athanasius
Quoted 6 lines · Greg KH
I'm announcing the release of the 3.9.1 kernel.
All users of the 3.9 kernel series must upgrade.
The updated 3.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.9.yUsually I can:
git pull
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitmasterIf you do that, you only get the master branch updated locally. Which tracks Linus's tree, not the different stable releases.
Quoted 3 lines
which means not having to update
scripts/commandlinehistory on each major verison change, but this time I did indeed need to:
Quoted 7 lines
Quoted 4 lines
git pull
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.9.yis this an intended change, or did you do something like forgetting to merge into master on linux-stable ?
No, I have not changed anything on my end, perhaps you never really were updating the different stable branches?
'uname -r' says I was. Also 'git log' for my v3.8 branch currently on
3.8.9 via the 'master' method does include at least the top few commits listed on:
<https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/?id=refs/tags/v3.8.9>
Of course only having gotten to 3.8.9 a pull against linux-3.8.y does see changes. Perhaps someone else, or a script on git.kernel.org was merging into master before and now isn't ?
Anyway, if it's unsupported to pull from linux-stable.git master I'll
change my scripts.
Signature · 4 lines
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - MEGreg KH
maintainerQuoted 32 lines · Athanasius
Quoted 19 lines · Greg KH
Quoted 11 lines · Athanasius
Quoted 6 lines · Greg KH
I'm announcing the release of the 3.9.1 kernel.
All users of the 3.9 kernel series must upgrade.
The updated 3.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.9.yUsually I can:
git pull
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitmasterIf you do that, you only get the master branch updated locally. Which tracks Linus's tree, not the different stable releases.
Quoted 3 lines
which means not having to update
scripts/commandlinehistory on each major verison change, but this time I did indeed need to:Quoted 7 lines
Quoted 4 lines
git pull
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.9.yis this an intended change, or did you do something like forgetting to merge into master on linux-stable ?
No, I have not changed anything on my end, perhaps you never really were updating the different stable branches?
'uname -r' says I was. Also 'git log' for my v3.8 branch currently on
3.8.9 via the 'master' method does include at least the top few commits listed on:
Quoted 5 lines
<https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/?id=refs/tags/v3.8.9>
Of course only having gotten to 3.8.9 a pull against linux-3.8.y does see changes. Perhaps someone else, or a script on git.kernel.org was merging into master before and now isn't ?
No, nothing was ever mergeing into master in the linux-stable git tree. You might have been doing that locally, check the merges to see who was doing it.
Quoted 2 lines
Anyway, if it's unsupported to pull from linux-stable.git master I'll
change my scripts.
It's not unsupported, you will just get a copy of Linus's tree there, delayed by usually a -rc release or so.
thanks,
greg k-h
Quoted 7 lines · Greg KH
Quoted 6 lines · Athanasius
'uname -r' says I was. Also 'git log' for my v3.8 branch currently on
3.8.9 via the 'master' method does include at least the top few commits listed on:<https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/?id=refs/tags/v3.8.9>
Quoted 7 lines
Quoted 3 lines
Of course only having gotten to 3.8.9 a pull against linux-3.8.y does see changes. Perhaps someone else, or a script on git.kernel.org was merging into master before and now isn't ?
No, nothing was ever mergeing into master in the linux-stable git tree. You might have been doing that locally, check the merges to see who was doing it.
It really is just your Makefile/version commits, and then the commits
you merged in to make the release.
Quoted 5 lines
Quoted 2 lines
Anyway, if it's unsupported to pull from linux-stable.git master I'll
change my scripts.It's not unsupported, you will just get a copy of Linus's tree there, delayed by usually a -rc release or so.
I'm going to guess that what happened then was I was lucky enough for
Linus to have released a new -rc by the time I pulled a new stable. So, then checking out the stable tag would have pointed to the right commit to also checkout the associated commits.
Anyway, enough noise over this now.
Signature · 4 lines
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME