Linux 3.10.43
Greg KH
maintainerI'm announcing the release of the 3.10.43 kernel.
All users of the 3.10 kernel series must upgrade.
The updated 3.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.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
------------
Documentation/DocBook/media/Makefile | 2 Documentation/sysctl/kernel.txt | 26 +++ Makefile | 2 arch/arm/include/asm/uaccess.h | 3 arch/arm/kernel/perf_event.c | 11 + arch/arm/mach-imx/devices/platform-ipu-core.c | 2 arch/arm/mach-omap2/cclock3xxx_data.c | 3 arch/arm/mach-omap2/cpuidle44xx.c | 25 +++ arch/x86/kernel/cpu/perf_event.c | 12 + drivers/gpu/drm/i915/i915_gem_execbuffer.c | 54 ++++---- drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c | 2 drivers/gpu/drm/radeon/radeon_bios.c | 14 ++ drivers/gpu/drm/radeon/radeon_object.c | 38 +++-- drivers/hwmon/Kconfig | 2 drivers/hwmon/ntc_thermistor.c | 15 +- drivers/infiniband/ulp/isert/ib_isert.c | 2 drivers/md/dm-cache-target.c | 2 drivers/md/md.c | 5 drivers/staging/comedi/drivers/ni_daq_700.c | 2 drivers/staging/speakup/main.c | 1 drivers/staging/speakup/selection.c | 38 ++++- drivers/staging/speakup/speakup.h | 1 drivers/usb/core/driver.c | 9 - drivers/usb/core/hub.c | 15 +- drivers/usb/host/xhci-mem.c | 20 +-- drivers/usb/serial/ftdi_sio.c | 2 drivers/usb/serial/ftdi_sio_ids.h | 5 drivers/usb/serial/io_ti.c | 2 drivers/usb/serial/io_usbvend.h | 2 drivers/usb/serial/option.c | 2 include/linux/perf_event.h | 7 + include/uapi/linux/usb/Kbuild | 1 include/uapi/linux/usb/cdc-wdm.h | 2 kernel/cpu.c | 6 kernel/events/core.c | 157 +++++++++++++++++++----- kernel/sched/core.c | 1 kernel/sched/cpupri.c | 3 kernel/sched/cputime.c | 32 ++-- kernel/sysctl.c | 10 + mm/memory-failure.c | 2 mm/rmap.c | 3 net/ipv6/netfilter.c | 6 sound/pci/hda/patch_realtek.c | 10 - tools/perf/util/evsel.c | 2 44 files changed, 421 insertions(+), 140 deletions(-)
Alan Stern (1):
USB: Avoid runtime suspend loops for HCDs that can't handle suspend/resume
Alex Deucher (1):
drm/radeon: handle non-VGA class pci devices with ATRM
Alexej Starschenko (1):
USB: serial: option: add support for Novatel E371 PCIe card
Andrey Ryabinin (2):
ARM: 8051/1: put_user: fix possible data corruption in put_user
mm: rmap: fix use-after-free in __put_anon_vma
Ben Hutchings (1):
Staging: speakup: Move pasting into a work item
Ben Skeggs (1):
drm/gf119-/disp: fix nasty bug which can clobber SOR0's clock setup
Bjørn Mork (1):
usb: cdc-wdm: export cdc-wdm uapi header
Chris Wilson (1):
drm/i915: Only copy back the modified fields to userspace from execbuffer
Christian König (1):
drm/radeon: also try GART for CPU accessed buffers
Dave Hansen (1):
perf: Drop sample rate when sampling is too slow
David Ahern (1):
perf evsel: Fix printing of perf_event_paranoid message
Emil Goode (1):
ARM: imx: fix error handling in ipu device registration
George McCollister (1):
USB: ftdi_sio: add NovaTech OrionLXm product ID
Greg Kroah-Hartman (2):
USB: cdc-wdm: properly include types.h
Linux 3.10.43
Heinz Mauelshagen (1):
dm cache: always split discards on cache block boundaries
Ian Abbott (1):
staging: comedi: ni_daq_700: add mux settling delay
Jean Delvare (2):
hwmon: (ntc_thermistor) Fix dependencies
hwmon: (ntc_thermistor) Fix OF device ID mapping
Jiri Olsa (1):
perf: Prevent false warning in perf_swevent_add
Johan Hovold (1):
USB: io_ti: fix firmware download on big-endian machines (part 2)
Johannes Berg (1):
Documentation: fix DOCBOOKS=... building
Knut Petersen (1):
perf: Enforce 1 as lower limit for perf_event_max_sample_rate
Lai Jiangshan (1):
sched: Fix hotplug vs. set_cpus_allowed_ptr()
Laurent Pinchart (1):
ARM: OMAP3: clock: Back-propagate rate change from cam_mclk to dpll4_m5 on all OMAP3 platforms
Mathias Nyman (1):
xhci: delete endpoints from bandwidth list before freeing whole device
Naoya Horiguchi (1):
mm/memory-failure.c: fix memory leak by race between poison and unpoison
NeilBrown (2):
md: always set MD_RECOVERY_INTR when aborting a reshape or other "resync".
md: always set MD_RECOVERY_INTR when interrupting a reshape thread.
Nicholas Bellinger (1):
iser-target: Add missing target_put_sess_cmd for ImmedateData failure
Peter Zijlstra (2):
perf: Limit perf_event_attr::sample_period to 63 bits
perf: Fix race in removing an event
Ronan Marquet (1):
ALSA: hda/realtek - Correction of fixup codes for PB V7900 laptop
Santosh Shilimkar (1):
ARM: OMAP4: Fix the boot regression with CPU_IDLE enabled
Sergey Popovich (1):
netfilter: Fix potential use after free in ip6_route_me_harder()
Stephane Eranian (1):
perf: Fix interrupt handler timing harness
Steven Rostedt (Red Hat) (1):
sched: Use CPUPRI_NR_PRIORITIES instead of MAX_RT_PRIO in cpupri check
Takashi Iwai (1):
ALSA: hda/realtek - Fix COEF widget NID for ALC260 replacer fixup
Thomas Gleixner (1):
sched: Sanitize irq accounting madness
Will Deacon (1):
ARM: perf: hook up perf_sample_event_took around pmu irq handling
Greg KH
maintainerDocumentation/DocBook/media/Makefile +1 -1
@@ -195,7 +195,7 @@ DVB_DOCUMENTED = \ # install_media_images = \ - $(Q)cp $(OBJIMGFILES) $(MEDIA_SRC_DIR)/v4l/*.svg $(MEDIA_OBJ_DIR)/media_api + $(Q)-cp $(OBJIMGFILES) $(MEDIA_SRC_DIR)/v4l/*.svg $(MEDIA_OBJ_DIR)/media_api $(MEDIA_OBJ_DIR)/%: $(MEDIA_SRC_DIR)/%.b64 $(Q)base64 -d $< >$@
Documentation/sysctl/kernel.txt +26 -0
@@ -438,6 +438,32 @@ This file shows up if CONFIG_DEBUG_STACKOVERFLOW is enabled. ============================================================== +perf_cpu_time_max_percent: + +Hints to the kernel how much CPU time it should be allowed to +use to handle perf sampling events. If the perf subsystem +is informed that its samples are exceeding this limit, it +will drop its sampling frequency to attempt to reduce its CPU +usage. + +Some perf sampling happens in NMIs. If these samples +unexpectedly take too long to execute, the NMIs can become +stacked up next to each other so much that nothing else is +allowed to execute. + +0: disable the mechanism. Do not monitor or correct perf's + sampling rate no matter how CPU time it takes. + +1-100: attempt to throttle perf's sample rate to this + percentage of CPU. Note: the kernel calculates an + "expected" length of each sample event. 100 here means + 100% of that expected length. Even if this is set to + 100, you may still see sample throttling if this + length is exceeded. Set to 0 if you truly do not care + how much CPU is consumed. + +============================================================== + pid_max:
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 42 +SUBLEVEL = 43 EXTRAVERSION = NAME = TOSSUG Baby Fish
arch/arm/include/asm/uaccess.h +2 -1
@@ -164,8 +164,9 @@ extern int __put_user_8(void *, unsigned long long);#define __put_user_check (x,p) \ ({ \ unsigned long __limit = current_thread_info()->addr_limit - 1; \ + const typeof(*(p)) __user *__tmp_p = (p); \ register const typeof(*(p)) __r2 asm("r2") = (x); \ - register const typeof(*(p)) __user *__p asm("r0") = (p);\ + register const typeof(*(p)) __user *__p asm("r0") = __tmp_p; \ register unsigned long __l asm("r1") = __limit; \ register int __e asm("r0"); \ switch (sizeof(*(__p))) { \
arch/arm/kernel/perf_event.c +9 -2
@@ -303,11 +303,18 @@ static irqreturn_t armpmu_dispatch_irq(int irq, void *dev)struct arm_pmu *armpmu = (struct arm_pmu *) dev;struct platform_device *plat_device = armpmu->plat_device;struct arm_pmu_platdata *plat =dev_get_platdata (&plat_device->dev); +int ret; +u64 start_clock, finish_clock; + start_clock =sched_clock ();if (plat && plat->handle_irq) -return plat->handle_irq (irq, dev, armpmu->handle_irq); + ret = plat->handle_irq (irq, dev, armpmu->handle_irq);else -return armpmu->handle_irq (irq, dev); + ret = armpmu->handle_irq (irq, dev); + finish_clock =sched_clock (); + +perf_sample_event_took (finish_clock - start_clock); +return ret; } static void
arch/arm/mach-imx/devices/platform-ipu-core.c +1 -1
@@ -77,7 +77,7 @@ struct platform_device *__init imx_alloc_mx3_camera( pdev =platform_device_alloc ("mx3-camera" ,0 );if (!pdev) - goto err; +return ERR_PTR (-ENOMEM ); pdev->dev.dma_mask =kmalloc (sizeof (*pdev->dev.dma_mask),GFP_KERNEL );if (!pdev->dev.dma_mask)
arch/arm/mach-omap2/cclock3xxx_data.c +2 -1
@@ -418,7 +418,8 @@ static struct clk_hw_omap dpll4_m5x2_ck_hw = { .clkdm_name = "dpll4_clkdm", }; -DEFINE_STRUCT_CLK (dpll4_m5x2_ck, dpll4_m5x2_ck_parent_names, dpll4_m5x2_ck_ops); +DEFINE_STRUCT_CLK_FLAGS (dpll4_m5x2_ck, dpll4_m5x2_ck_parent_names, + dpll4_m5x2_ck_ops,CLK_SET_RATE_PARENT );static struct clk dpll4_m5x2_ck_3630 = { .name ="dpll4_m5x2_ck" ,
arch/arm/mach-omap2/cpuidle44xx.c +21 -4
@@ -14,6 +14,7 @@#include <linux/cpuidle.h> #include <linux/cpu_pm.h> #include <linux/export.h> +#include <linux/clockchips.h> #include <asm/cpuidle.h> #include <asm/proc-fns.h>
@@ -80,6 +81,7 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev, int index) {struct idle_statedata *cx = state_ptr + index; +int cpu_id =smp_processor_id ();/* * CPU0 has to wait and stay ON until CPU1 is OFF state.
@@ -104,6 +106,8 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev, } } +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ENTER , &cpu_id); +/* * Call idle CPU PM enter notifier chain so that * VFP and per CPU interrupt context is saved.
@@ -147,6 +151,8 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev, (cx->mpu_logic_state == PWRDM_POWER_OFF))cpu_cluster_pm_exit (); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_EXIT , &cpu_id); + fail:cpuidle_coupled_parallel_barrier (dev, &abort_barrier); cpu_done[dev->cpu] = false;
@@ -154,6 +160,16 @@ fail:return index; } +/* +* For each cpu, setup the broadcast timer because local timers +* stops for the states above C1. +*/ +static void omap_setup_broadcast_timer (void *arg) +{ +int cpu =smp_processor_id (); +clockevents_notify (CLOCK_EVT_NOTIFY_BROADCAST_ON , &cpu); +} +static struct cpuidle_driver omap4_idle_driver = { .name ="omap4_idle" , .owner =THIS_MODULE ,
@@ -171,8 +187,7 @@ static struct cpuidle_driver omap4_idle_driver = {/* C2 - CPU0 OFF + CPU1 OFF + MPU CSWR */ .exit_latency = 328 + 440, .target_residency = 960, - .flags =CPUIDLE_FLAG_TIME_VALID |CPUIDLE_FLAG_COUPLED | - CPUIDLE_FLAG_TIMER_STOP, + .flags = CPUIDLE_FLAG_TIME_VALID | CPUIDLE_FLAG_COUPLED, .enter = omap_enter_idle_coupled, .name = "C2", .desc = "CPUx OFF, MPUSS CSWR",
@@ -181,8 +196,7 @@ static struct cpuidle_driver omap4_idle_driver = {/* C3 - CPU0 OFF + CPU1 OFF + MPU OSWR */ .exit_latency = 460 + 518, .target_residency = 1100, - .flags =CPUIDLE_FLAG_TIME_VALID |CPUIDLE_FLAG_COUPLED | - CPUIDLE_FLAG_TIMER_STOP, + .flags = CPUIDLE_FLAG_TIME_VALID | CPUIDLE_FLAG_COUPLED, .enter = omap_enter_idle_coupled, .name = "C3", .desc = "CPUx OFF, MPUSS OSWR",
@@ -213,5 +227,8 @@ int __init omap4_idle_init(void)if (!cpu_clkdm[0 ] || !cpu_clkdm[1 ])return -ENODEV ; +/* Configure the broadcast timer on each cpu */ +on_each_cpu (omap_setup_broadcast_timer,NULL ,1 ); +return cpuidle_register (&omap4_idle_driver, cpu_online_mask); }
arch/x86/kernel/cpu/perf_event.c +11 -1
@@ -1252,10 +1252,20 @@ void perf_events_lapic_init(void)static int __kprobes perf_event_nmi_handler (unsigned int cmd,struct pt_regs *regs) { +int ret; +u64 start_clock; +u64 finish_clock; +if (!atomic_read (&active_events))return NMI_DONE ; -return x86_pmu.handle_irq (regs); + start_clock =local_clock (); + ret = x86_pmu.handle_irq (regs); + finish_clock =local_clock (); + +perf_sample_event_took (finish_clock - start_clock); + +return ret; }struct event_constraint emptyconstraint;
drivers/gpu/drm/i915/i915_gem_execbuffer.c +32 -22
73 lines not on this page · raw message
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c +1 -1
@@ -679,7 +679,7 @@ exec_clkcmp(struct nv50_disp_priv *priv, int head, int id, }if (outp ==8 ) -return false; +return conf; data =exec_lookup (priv, head, outp, ctrl, dcb, &ver, &hdr, &cnt, &len, &info1);if (data ==0x0000 )
drivers/gpu/drm/radeon/radeon_bios.c +14 -0
@@ -196,6 +196,20 @@ static bool radeon_atrm_get_bios(struct radeon_device *rdev) } } +if (!found) { +while ((pdev =pci_get_class (PCI_CLASS_DISPLAY_OTHER <<8 , pdev)) !=NULL ) { + dhandle =ACPI_HANDLE (&pdev->dev); +if (!dhandle) +continue ; + + status =acpi_get_handle (dhandle,"ATRM" , &atrm_handle); +if (!ACPI_FAILURE (status)) { + found = true; +break ; + } + } + } +if (!found)return false;
drivers/gpu/drm/radeon/radeon_object.c +23 -15
@@ -582,22 +582,30 @@ int radeon_bo_fault_reserve_notify(struct ttm_buffer_object *bo) rbo = container_of(bo, struct radeon_bo, tbo);radeon_bo_check_tiling (rbo,0 ,0 ); rdev = rbo->rdev; -if (bo->mem.mem_type ==TTM_PL_VRAM ) { - size = bo->mem.num_pages <<PAGE_SHIFT ; - offset = bo->mem.start <<PAGE_SHIFT ; -if ((offset + size) > rdev->mc.visible_vram_size) { -/* hurrah the memory is not visible ! */ -radeon_ttm_placement_from_domain (rbo,RADEON_GEM_DOMAIN_VRAM ); - rbo->placement.lpfn = rdev->mc.visible_vram_size >>PAGE_SHIFT ; - r =ttm_bo_validate (bo, &rbo->placement, false, false); -if (unlikely (r !=0 )) -return r; - offset = bo->mem.start <<PAGE_SHIFT ; -/* this should not happen */ -if ((offset + size) > rdev->mc.visible_vram_size) -return -EINVAL ; - } +if (bo->mem.mem_type !=TTM_PL_VRAM ) +return 0 ; + + size = bo->mem.num_pages <<PAGE_SHIFT ; + offset = bo->mem.start <<PAGE_SHIFT ; +if ((offset + size) <= rdev->mc.visible_vram_size) +return 0 ; + +/* hurrah the memory is not visible ! */ +radeon_ttm_placement_from_domain (rbo,RADEON_GEM_DOMAIN_VRAM ); + rbo->placement.lpfn = rdev->mc.visible_vram_size >>PAGE_SHIFT ; + r =ttm_bo_validate (bo, &rbo->placement, false, false); +if (unlikely (r == -ENOMEM )) { +radeon_ttm_placement_from_domain (rbo,RADEON_GEM_DOMAIN_GTT ); +return ttm_bo_validate (bo, &rbo->placement, false, false); + }else if (unlikely (r !=0 )) { +return r; } + + offset = bo->mem.start <<PAGE_SHIFT ; +/* this should never happen */ +if ((offset + size) > rdev->mc.visible_vram_size) +return -EINVAL ; +return 0 ; }
drivers/hwmon/Kconfig +1 -1
@@ -944,7 +944,7 @@ config SENSORS_NCT6775 config SENSORS_NTC_THERMISTOR tristate "NTC thermistor support" - depends on (!OF && !IIO) || (OF && IIO) + depends on !OF || IIO=n || IIO help This driver supports NTC thermistors sensor reading and its interpretation. The driver can also monitor the temperature and
drivers/hwmon/ntc_thermistor.c +9 -6
@@ -44,6 +44,7 @@ struct ntc_compensation {unsigned int ohm; }; +/* Order matters, ntc_match references the entries by index */ static const struct platform_device_id ntc_thermistor_id[] = { {"ncp15wb473" ,TYPE_NCPXXWB473 }, {"ncp18wb473" ,TYPE_NCPXXWB473 },
@@ -141,7 +142,7 @@ struct ntc_data {char name[PLATFORM_NAME_SIZE ]; }; -#ifdef CONFIG_OF +#if defined(CONFIG_OF ) &&IS_ENABLED (CONFIG_IIO )static int ntc_adc_iio_read (struct ntc_thermistor_platform_data *pdata) {struct iio_channel *channel = pdata->chan;
@@ -163,15 +164,15 @@ static int ntc_adc_iio_read(struct ntc_thermistor_platform_data *pdata)static const struct of_device_id ntc_match[] = { { .compatible ="ntc,ncp15wb473" , - .data = &ntc_thermistor_id[TYPE_NCPXXWB473 ] }, + .data = &ntc_thermistor_id[0 ] }, { .compatible ="ntc,ncp18wb473" , - .data = &ntc_thermistor_id[TYPE_NCPXXWB473 ] }, + .data = &ntc_thermistor_id[1 ] }, { .compatible ="ntc,ncp21wb473" , - .data = &ntc_thermistor_id[TYPE_NCPXXWB473 ] }, + .data = &ntc_thermistor_id[2 ] }, { .compatible ="ntc,ncp03wb473" , - .data = &ntc_thermistor_id[TYPE_NCPXXWB473 ] }, + .data = &ntc_thermistor_id[3 ] }, { .compatible ="ntc,ncp15wl333" , - .data = &ntc_thermistor_id[TYPE_NCPXXWL333 ] }, + .data = &ntc_thermistor_id[4 ] }, { }, };MODULE_DEVICE_TABLE (of, ntc_match);
@@ -223,6 +224,8 @@ ntc_thermistor_parse_dt(struct platform_device *pdev) return NULL; } +#define ntc_match NULL +static void ntc_iio_channel_release (struct ntc_thermistor_platform_data *pdata) { }#endif
drivers/infiniband/ulp/isert/ib_isert.c +2 -0
@@ -965,6 +965,8 @@ sequence_cmd:if (!rc && dump_payload == false && unsol_data)iscsit_set_unsoliticed_dataout (cmd); +else if (dump_payload && imm_data) +target_put_sess_cmd (conn->sess->se_sess, &cmd->se_cmd);return 0 ; }
drivers/md/dm-cache-target.c +2 -0
@@ -1954,6 +1954,8 @@ static int cache_create(struct cache_args *ca, struct cache **result) ti->num_discard_bios =1 ; ti->discards_supported = true; ti->discard_zeroes_data_unsupported = true; +/* Discard bios must be split on a block boundary */ + ti->split_discard_bios = true; cache->features = ca->features; ti->per_bio_data_size =get_per_bio_data_size (cache);
drivers/md/md.c +4 -1
@@ -7338,8 +7338,10 @@ void md_do_sync(struct md_thread *thread)/* just incase thread restarts... */ if (test_bit (MD_RECOVERY_DONE , &mddev->recovery))return ; -if (mddev->ro)/* never try to sync a read-only array */ +if (mddev->ro) {/* never try to sync a read-only array */ +set_bit (MD_RECOVERY_INTR , &mddev->recovery);return ; + }if (test_bit (MD_RECOVERY_SYNC , &mddev->recovery)) {if (test_bit (MD_RECOVERY_CHECK , &mddev->recovery))
@@ -7788,6 +7790,7 @@ void md_check_recovery(struct mddev *mddev)/* There is no thread, but we need to call * ->spare_active and clear saved_raid_disk */ +set_bit (MD_RECOVERY_INTR , &mddev->recovery);md_reap_sync_thread (mddev);clear_bit (MD_RECOVERY_NEEDED , &mddev->recovery); goto unlock;
drivers/staging/comedi/drivers/ni_daq_700.c +2 -0
@@ -127,6 +127,8 @@ static int daq700_ai_rinsn(struct comedi_device *dev,/* write channel to multiplexer */ /* set mask scan bit high to disable scanning */ outb (chan |0x80 , dev->iobase +CMD_R1 ); +/* mux needs 2us to really settle [Fred Brooks]. */ +udelay (2 );/* convert n samples */ for (n =0 ; n < insn->n; n++) {
drivers/staging/speakup/main.c +1 -0
@@ -2219,6 +2219,7 @@ static void __exit speakup_exit(void)unregister_keyboard_notifier (&keyboard_notifier_block);unregister_vt_notifier (&vt_notifier_block);speakup_unregister_devsynth (); +speakup_cancel_paste ();del_timer (&cursor_timer);kthread_stop (speakup_task); speakup_task =NULL ;
drivers/staging/speakup/selection.c +32 -6
@@ -4,6 +4,8 @@#include <linux/sched.h> #include <linux/device.h> /* for dev_warn */ #include <linux/selection.h> +#include <linux/workqueue.h> +#include <asm/cmpxchg.h> #include "speakup.h"
@@ -121,20 +123,24 @@ int speakup_set_selection(struct tty_struct *tty)return 0 ; } -/* TODO: move to some helper thread, probably. That'd fix having to check for -* in_atomic(). */ -int speakup_paste_selection (struct tty_struct *tty) +struct speakup_paste_work { +struct work_struct work; +struct tty_struct *tty; +}; + +static void __speakup_paste_selection (struct work_struct *work) { +struct speakup_paste_work *spw = + container_of(work, struct speakup_paste_work, work); +struct tty_struct *tty =xchg (&spw->tty,NULL );struct vc_data *vc = (struct vc_data *) tty->driver_data;int pasted =0 , count;DECLARE_WAITQUEUE (wait, current); +add_wait_queue (&vc->paste_wait, &wait);while (sel_buffer && sel_buffer_lth > pasted) {set_current_state (TASK_INTERRUPTIBLE );if (test_bit (TTY_THROTTLED , &tty->flags)) { -if (in_atomic ()) -/* if we are in an interrupt handler, abort */ -break ;schedule ();continue ; }
@@ -146,6 +152,26 @@ int speakup_paste_selection(struct tty_struct *tty) }remove_wait_queue (&vc->paste_wait, &wait); current->state =TASK_RUNNING ; +tty_kref_put (tty); +} + +static struct speakup_paste_work speakup_paste_work = { + .work =__WORK_INITIALIZER (speakup_paste_work.work, + __speakup_paste_selection) +}; + +int speakup_paste_selection (struct tty_struct *tty) +{ +if (cmpxchg (&speakup_paste_work.tty,NULL , tty) !=NULL ) +return -EBUSY ; + +tty_kref_get (tty); +schedule_work_on (WORK_CPU_UNBOUND , &speakup_paste_work.work);return 0 ; } +void speakup_cancel_paste (void ) +{ +cancel_work_sync (&speakup_paste_work.work); +tty_kref_put (speakup_paste_work.tty); +}
drivers/staging/speakup/speakup.h +1 -0
@@ -77,6 +77,7 @@ extern void synth_buffer_clear(void);extern void speakup_clear_selection (void );extern int speakup_set_selection (struct tty_struct *tty);extern int speakup_paste_selection (struct tty_struct *tty); +extern void speakup_cancel_paste (void );extern void speakup_register_devsynth (void );extern void speakup_unregister_devsynth (void );extern void synth_write (const char *buf,size_t count);
drivers/usb/core/driver.c +6 -3
@@ -1754,10 +1754,13 @@ int usb_runtime_suspend(struct device *dev)if (status == -EAGAIN || status == -EBUSY )usb_mark_last_busy (udev); -/* The PM core reacts badly unless the return code is 0, -* -EAGAIN, or -EBUSY, so always return -EBUSY on an error. +/* +* The PM core reacts badly unless the return code is 0, +* -EAGAIN, or -EBUSY, so always return -EBUSY on an error +* (except for root hubs, because they don't suspend through +* an upstream port like other USB devices). */ -if (status !=0 ) +if (status !=0 && udev->parent)return -EBUSY ;return status; }
drivers/usb/core/hub.c +13 -2
@@ -1683,8 +1683,19 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)*/ pm_runtime_set_autosuspend_delay (&hdev->dev,0 ); -/* Hubs have proper suspend/resume support. */ -usb_enable_autosuspend (hdev); +/* +* Hubs have proper suspend/resume support, except for root hubs +* where the controller driver doesn't have bus_suspend and +* bus_resume methods. +*/ +if (hdev->parent) {/* normal device */ +usb_enable_autosuspend (hdev); + }else {/* root hub */ +const struct hc_driver *drv =bus_to_hcd (hdev->bus)->driver; + +if (drv->bus_suspend && drv->bus_resume) +usb_enable_autosuspend (hdev); + }if (hdev->level ==MAX_TOPO_LEVEL ) { dev_err(&intf->dev,
drivers/usb/host/xhci-mem.c +10 -10
@@ -1794,6 +1794,16 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)kfree (cur_cd); } + num_ports =HCS_MAX_PORTS (xhci->hcs_params1); +for (i =0 ; i < num_ports; i++) { +struct xhci_interval_bw_table *bwt = &xhci->rh_bw[i].bw_table; +for (j =0 ; j <XHCI_MAX_INTERVAL ; j++) { +struct list_head *ep = &bwt->interval_bw[j].endpoints; +while (!list_empty (ep)) +list_del_init (ep->next); + } + } +for (i =1 ; i <MAX_HC_SLOTS ; ++i)xhci_free_virt_device (xhci, i);
@@ -1834,16 +1844,6 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)if (!xhci->rh_bw) goto no_bw; - num_ports =HCS_MAX_PORTS (xhci->hcs_params1); -for (i =0 ; i < num_ports; i++) { -struct xhci_interval_bw_table *bwt = &xhci->rh_bw[i].bw_table; -for (j =0 ; j <XHCI_MAX_INTERVAL ; j++) { -struct list_head *ep = &bwt->interval_bw[j].endpoints; -while (!list_empty (ep)) -list_del_init (ep->next); - } - } -for (i =0 ; i < num_ports; i++) {struct xhci_tt_bw_info *tt, *n;list_for_each_entry_safe (tt, n, &xhci->rh_bw[i].tts, tt_list) {
drivers/usb/serial/ftdi_sio.c +2 -0
@@ -583,6 +583,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_TAVIR_STK500_PID) }, { USB_DEVICE(FTDI_VID, FTDI_TIAO_UMPA_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, + { USB_DEVICE(FTDI_VID, FTDI_NT_ORIONLXM_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },/* * ELV devices: */
drivers/usb/serial/ftdi_sio_ids.h +5 -0
@@ -538,6 +538,11 @@*/ #define FTDI_TIAO_UMPA_PID 0x8a98/* TIAO/DIYGADGET USB Multi-Protocol Adapter */ +/* +* NovaTech product ids (FTDI_VID) +*/ +#define FTDI_NT_ORIONLXM_PID 0x7c90/* OrionLXm Substation Automation Platform */ +/********************************/ /** third-party VID/PID combos **/
drivers/usb/serial/io_ti.c +1 -1
@@ -835,7 +835,7 @@ static int build_i2c_fw_hdr(__u8 *header, struct device *dev) firmware_rec = (struct ti_i2c_firmware_rec *)i2c_header->Data; i2c_header->Type =I2C_DESC_TYPE_FIRMWARE_BLANK ; - i2c_header->Size = (__u16 )buffer_size; + i2c_header->Size =cpu_to_le16 (buffer_size); i2c_header->CheckSum = cs; firmware_rec->Ver_Major = OperationalMajorVersion; firmware_rec->Ver_Minor = OperationalMinorVersion;
drivers/usb/serial/io_usbvend.h +1 -1
@@ -594,7 +594,7 @@ struct edge_boot_descriptor {struct ti_i2c_desc {__u8 Type;// Type of descriptor -__u16 Size;// Size of data only not including header +__le16 Size;// Size of data only not including header __u8 CheckSum;// Checksum (8 bit sum of data only) __u8 Data[0 ];// Data starts here } __attribute__((packed));
drivers/usb/serial/option.c +2 -0
@@ -161,6 +161,7 @@ static void option_instat_callback(struct urb *urb);#define NOVATELWIRELESS_PRODUCT_HSPA_EMBEDDED_FULLSPEED 0x9000#define NOVATELWIRELESS_PRODUCT_HSPA_EMBEDDED_HIGHSPEED 0x9001#define NOVATELWIRELESS_PRODUCT_E362 0x9010 +#define NOVATELWIRELESS_PRODUCT_E371 0x9011#define NOVATELWIRELESS_PRODUCT_G2 0xA010#define NOVATELWIRELESS_PRODUCT_MC551 0xB001
@@ -1012,6 +1013,7 @@ static const struct usb_device_id option_ids[] = {/* Novatel Ovation MC551 a.k.a. Verizon USB551L */ { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_MC551, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_E362, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_E371, 0xff, 0xff, 0xff) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_H01) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_H01A) },
include/linux/perf_event.h +7 -0
@@ -695,10 +695,17 @@ static inline void perf_callchain_store(struct perf_callchain_entry *entry, u64extern int sysctl_perf_event_paranoid;extern int sysctl_perf_event_mlock;extern int sysctl_perf_event_sample_rate; +extern int sysctl_perf_cpu_time_max_percent; + +extern void perf_sample_event_took (u64 sample_len_ns);extern int perf_proc_update_handler (struct ctl_table *table,int write,void __user *buffer,size_t *lenp,loff_t *ppos); +extern int perf_cpu_time_max_percent_handler (struct ctl_table *table,int write, +void __user *buffer,size_t *lenp, +loff_t *ppos); +static inline bool perf_paranoid_tracepoint_raw (void ) {
include/uapi/linux/usb/Kbuild +1 -0
@@ -1,6 +1,7 @@ # UAPI Header export list header-y += audio.h header-y += cdc.h +header-y += cdc-wdm.h header-y += ch11.h header-y += ch9.h header-y += functionfs.h
include/uapi/linux/usb/cdc-wdm.h +2 -0
@@ -9,6 +9,8 @@#ifndef _UAPI__LINUX_USB_CDC_WDM_H#define _UAPI__LINUX_USB_CDC_WDM_H +#include <linux/types.h> +/* * This IOCTL is used to retrieve the wMaxCommand for the device, * defining the message limit for both reading and writing.
kernel/cpu.c +4 -2
@@ -698,10 +698,12 @@ void set_cpu_present(unsigned int cpu, bool present)void set_cpu_online (unsigned int cpu,bool online) { -if (online) +if (online) {cpumask_set_cpu (cpu,to_cpumask (cpu_online_bits)); -else +cpumask_set_cpu (cpu,to_cpumask (cpu_active_bits)); + }else {cpumask_clear_cpu (cpu,to_cpumask (cpu_online_bits)); + } }void set_cpu_active (unsigned int cpu,bool active)
kernel/events/core.c +130 -27
291 lines not on this page · raw message
kernel/sched/core.c +0 -1
@@ -5270,7 +5270,6 @@ static int __cpuinit sched_cpu_active(struct notifier_block *nfb, unsigned long action, void *hcpu) {switch (action & ~CPU_TASKS_FROZEN ) { -case CPU_STARTING :case CPU_DOWN_FAILED :set_cpu_active ((long )hcpu, true);return NOTIFY_OK ;
kernel/sched/cpupri.c +1 -2
@@ -70,8 +70,7 @@ int cpupri_find(struct cpupri *cp, struct task_struct *p,int idx =0 ;int task_pri =convert_prio (p->prio); -if (task_pri >=MAX_RT_PRIO ) -return 0 ; +BUG_ON (task_pri >=CPUPRI_NR_PRIORITIES );for (idx =0 ; idx < task_pri; idx++) {struct cpupri_vec *vec = &cp->pri_to_cpu[idx];
kernel/sched/cputime.c +16 -16
@@ -326,50 +326,50 @@ out:* softirq as those do not count in task exec_runtime any more. */ static void irqtime_account_process_tick (struct task_struct *p,int user_tick, -struct rq *rq) +struct rq *rq,int ticks) { -cputime_t one_jiffy_scaled =cputime_to_scaled (cputime_one_jiffy); +cputime_t scaled =cputime_to_scaled (cputime_one_jiffy); +u64 cputime = (__force u64 ) cputime_one_jiffy;u64 *cpustat = kcpustat_this_cpu->cpustat;if (steal_account_process_tick ())return ; + cputime *= ticks; + scaled *= ticks; +if (irqtime_account_hi_update ()) { - cpustat[CPUTIME_IRQ ] += (__force u64 ) cputime_one_jiffy; + cpustat[CPUTIME_IRQ ] += cputime; }else if (irqtime_account_si_update ()) { - cpustat[CPUTIME_SOFTIRQ ] += (__force u64 ) cputime_one_jiffy; + cpustat[CPUTIME_SOFTIRQ ] += cputime; }else if (this_cpu_ksoftirqd () == p) {/* * ksoftirqd time do not get accounted in cpu_softirq_time. * So, we have to handle it separately here. * Also, p->stime needs to be updated for ksoftirqd. */ -__account_system_time (p, cputime_one_jiffy, one_jiffy_scaled, -CPUTIME_SOFTIRQ ); +__account_system_time (p, cputime, scaled,CPUTIME_SOFTIRQ ); }else if (user_tick) { -account_user_time (p, cputime_one_jiffy, one_jiffy_scaled); +account_user_time (p, cputime, scaled); }else if (p == rq->idle) { -account_idle_time (cputime_one_jiffy); +account_idle_time (cputime); }else if (p->flags &PF_VCPU ) {/* System time or guest time */ -account_guest_time (p, cputime_one_jiffy, one_jiffy_scaled); +account_guest_time (p, cputime, scaled); }else { -__account_system_time (p, cputime_one_jiffy, one_jiffy_scaled, -CPUTIME_SYSTEM ); +__account_system_time (p, cputime, scaled,CPUTIME_SYSTEM ); } }static void irqtime_account_idle_ticks (int ticks) { -int i;struct rq *rq =this_rq (); -for (i =0 ; i < ticks; i++) -irqtime_account_process_tick (current,0 , rq); +irqtime_account_process_tick (current,0 , rq, ticks); }#else /* CONFIG_IRQ_TIME_ACCOUNTING */ static inline void irqtime_account_idle_ticks (int ticks) {}static inline void irqtime_account_process_tick (struct task_struct *p,int user_tick, -struct rq *rq) {} +struct rq *rq,int nr_ticks) {}#endif /* CONFIG_IRQ_TIME_ACCOUNTING */ /*
@@ -464,7 +464,7 @@ void account_process_tick(struct task_struct *p, int user_tick)return ;if (sched_clock_irqtime) { -irqtime_account_process_tick (p, user_tick, rq); +irqtime_account_process_tick (p, user_tick, rq,1 );return ; }
kernel/sysctl.c +10 -0
@@ -1049,6 +1049,16 @@ static struct ctl_table kern_table[] = { .maxlen = sizeof(sysctl_perf_event_sample_rate), .mode = 0644, .proc_handler = perf_proc_update_handler, + .extra1 = &one, + }, + { + .procname = "perf_cpu_time_max_percent", + .data = &sysctl_perf_cpu_time_max_percent, + .maxlen = sizeof(sysctl_perf_cpu_time_max_percent), + .mode = 0644, + .proc_handler = perf_cpu_time_max_percent_handler, + .extra1 = &zero, + .extra2 = &one_hundred, },#endif #ifdef CONFIG_KMEMCHECK
mm/memory-failure.c +2 -0
@@ -1153,6 +1153,8 @@ int memory_failure(unsigned long pfn, int trapno, int flags)*/ if (!PageHWPoison (p)) {printk (KERN_ERR "MCE %#lx: just unpoisoned\n" , pfn); +atomic_long_sub (nr_pages, &num_poisoned_pages); +put_page (hpage); res =0 ; goto out; }
mm/rmap.c +1 -2
@@ -1675,10 +1675,9 @@ void __put_anon_vma(struct anon_vma *anon_vma) {struct anon_vma *root = anon_vma->root; +anon_vma_free (anon_vma);if (root != anon_vma &&atomic_dec_and_test (&root->refcount))anon_vma_free (root); - -anon_vma_free (anon_vma); }#ifdef CONFIG_MIGRATION
net/ipv6/netfilter.c +4 -2
@@ -30,13 +30,15 @@ int ip6_route_me_harder(struct sk_buff *skb) .daddr = iph->daddr, .saddr = iph->saddr, }; +int err; dst =ip6_route_output (net, skb->sk, &fl6); -if (dst->error) { + err = dst->error; +if (err) {IP6_INC_STATS (net,ip6_dst_idev (dst),IPSTATS_MIB_OUTNOROUTES );LIMIT_NETDEBUG (KERN_DEBUG "ip6_route_me_harder: No more route.\n" );dst_release (dst); -return dst->error; +return err; }/* Drop old route. */
sound/pci/hda/patch_realtek.c +4 -6
@@ -1590,12 +1590,10 @@ static const struct hda_fixup alc260_fixups[] = { [ALC260_FIXUP_COEF] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb []) { - {0x20 ,AC_VERB_SET_COEF_INDEX ,0x07 }, - {0x20 ,AC_VERB_SET_PROC_COEF ,0x3040 }, + {0x1a ,AC_VERB_SET_COEF_INDEX ,0x07 }, + {0x1a ,AC_VERB_SET_PROC_COEF ,0x3040 }, { } }, - .chained = true, - .chain_id = ALC260_FIXUP_HP_PIN_0F, }, [ALC260_FIXUP_GPIO1] = { .type = HDA_FIXUP_VERBS,
@@ -1610,8 +1608,8 @@ static const struct hda_fixup alc260_fixups[] = { [ALC260_FIXUP_REPLACER] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb []) { - {0x20 ,AC_VERB_SET_COEF_INDEX ,0x07 }, - {0x20 ,AC_VERB_SET_PROC_COEF ,0x3050 }, + {0x1a ,AC_VERB_SET_COEF_INDEX ,0x07 }, + {0x1a ,AC_VERB_SET_PROC_COEF ,0x3050 }, { } }, .chained = true,
tools/perf/util/evsel.c +1 -1
@@ -1514,7 +1514,7 @@ int perf_evsel__open_strerror(struct perf_evsel *evsel,switch (err) {case EPERM :case EACCES : -return scnprintf (msg, size,"%s" , +return scnprintf (msg, size,"You may not have permission to collect %sstats.\n" "Consider tweaking /proc/sys/kernel/perf_event_paranoid:\n" " -1 - Not paranoid at all\n"