Linux 3.10.49
Greg KH
maintainerI'm announcing the release of the 3.10.49 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
------------
Makefile | 2 arch/arm64/include/asm/memory.h | 2 arch/parisc/kernel/hardware.c | 3 arch/powerpc/include/asm/perf_event_server.h | 2 arch/powerpc/perf/core-book3s.c | 22 ++ arch/powerpc/perf/power8-pmu.c | 2 arch/score/Kconfig | 3 arch/score/Makefile | 4 arch/score/include/asm/checksum.h | 93 +++++---- arch/score/include/asm/io.h | 1 arch/score/include/asm/pgalloc.h | 2 arch/score/kernel/entry.S | 4 arch/score/kernel/process.c | 4 arch/score/kernel/vmlinux.lds.S | 1 arch/x86/crypto/sha512_ssse3_glue.c | 2 arch/x86/mm/ioremap.c | 26 ++ drivers/acpi/battery.c | 27 ++ drivers/acpi/resource.c | 10 - drivers/clk/spear/spear3xx_clock.c | 2 drivers/cpufreq/Makefile | 2 drivers/gpu/drm/radeon/evergreen.c | 8 drivers/gpu/drm/radeon/rs600.c | 6 drivers/hv/connection.c | 8 drivers/hwmon/adm1021.c | 14 - drivers/hwmon/adm1029.c | 3 drivers/hwmon/adm1031.c | 8 drivers/hwmon/amc6821.c | 2 drivers/md/dm-io.c | 22 -- drivers/usb/serial/cp210x.c | 1 drivers/usb/serial/ftdi_sio.c | 5 drivers/usb/serial/ftdi_sio_ids.h | 9 drivers/usb/serial/option.c | 2 fs/ext4/ialloc.c | 14 - fs/ext4/super.c | 9 fs/jbd2/transaction.c | 5 include/linux/ring_buffer.h | 2 kernel/cpuset.c | 8 kernel/rtmutex-debug.h | 5 kernel/rtmutex.c | 252 +++++++++++++++++++++++---- kernel/rtmutex.h | 5 kernel/trace/ring_buffer.c | 5 kernel/trace/trace.c | 25 +- kernel/trace/trace.h | 4 kernel/workqueue.c | 3 mm/mempolicy.c | 2 45 files changed, 478 insertions(+), 163 deletions(-)
Alex Deucher (1):
drm/radeon: fix typo in golden register setup on evergreen
Andras Kovacs (1):
USB: cp210x: add support for Corsair usb dongle
Andy Whitcroft (1):
ACPI / resources: only reject zero length resources based at address zero
Anton Blanchard (1):
powerpc/perf: Never program book3s PMCs with values >= 0x80000000
Axel Lin (3):
hwmon: (amc6821) Fix permissions for temp2_input
hwmon: (adm1029) Ensure the fan_div cache is updated in set_fan_div
hwmon: (adm1021) Fix cache problem when writing temperature limits
Bernd Wachter (1):
usb: option: Add ID for Telewell TW-LTE 4G v2
Bert Vermeulen (1):
USB: ftdi_sio: Add extra PID.
Christian König (1):
drm/radeon: stop poisoning the GART TLB
Colin Cross (1):
arm64: implement TASK_SIZE_OF
Eric Sandeen (1):
ext4: disable synchronous transaction batching if max_batch_time==0
Greg Kroah-Hartman (1):
Linux 3.10.49
Gu Zheng (1):
cpuset,mempolicy: fix sleeping function called from invalid context
Guenter Roeck (1):
hwmon: (adm1031) Fix writes to limit registers
Helge Deller (1):
parisc: add serial ports of C8000/1GHz machine to hardware database
Jiang Liu (1):
score: normalize global variables exported by vmlinux.lds
Joe Thornber (1):
dm io: fix a race condition in the wake up code for sync_io
Joel Stanley (2):
powerpc/perf: Add PPMU_ARCH_207S define
powerpc/perf: Clear MMCR2 when enabling PMU
Jussi Kivilinna (1):
crypto: sha512_ssse3 - fix byte count to bit count conversion
K. Y. Srinivasan (1):
Drivers: hv: vmbus: Fix a bug in the channel callback dispatch code
Lan Tianyu (1):
ACPI / battery: Retry to get battery information if failed during probing
Lennox Wu (3):
Score: Implement the function csum_ipv6_magic
Score: The commit is for compiling successfully.
Score: Modify the Makefile of Score, remove -mlong-calls for compiling
Maxime Bizon (1):
workqueue: fix dev_set_uevent_suppress() imbalance
Michal Sojka (1):
USB: serial: ftdi_sio: Add Infineon Triboard
Prabhakar Lad (1):
cpufreq: Makefile: fix compilation for davinci platform
Roland Dreier (1):
x86, ioremap: Speed up check for RAM pages
Steven Rostedt (Red Hat) (1):
ring-buffer: Check if buffer exists before polling
Theodore Ts'o (2):
ext4: fix unjournalled bg descriptor while initializing inode bitmap
ext4: clarify error count warning messages
Thomas Gleixner (5):
clk: spear3xx: Use proper control register offset
rtmutex: Fix deadlock detector for real
rtmutex: Detect changes in the pi lock chain
rtmutex: Handle deadlock detection smarter
rtmutex: Plug slow unlock race
Yasuaki Ishimatsu (1):
workqueue: zero cpumask of wq_numa_possible_cpumask on init
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 48 +SUBLEVEL = 49 EXTRAVERSION = NAME = TOSSUG Baby Fish
arch/arm64/include/asm/memory.h +2 -0
@@ -51,6 +51,8 @@#define TASK_SIZE_32 UL(0x100000000)#define TASK_SIZE (test_thread_flag(TIF_32BIT) ? \ TASK_SIZE_32 : TASK_SIZE_64) +#define TASK_SIZE_OF (tsk) (test_tsk_thread_flag(tsk, TIF_32BIT) ? \ + TASK_SIZE_32 : TASK_SIZE_64)#else #define TASK_SIZE TASK_SIZE_64#endif /* CONFIG_COMPAT */
arch/parisc/kernel/hardware.c +2 -1
@@ -1205,7 +1205,8 @@ static struct hp_hardware hp_hardware_list[] = { {HPHW_FIO, 0x004, 0x00320, 0x0, "Metheus Frame Buffer"}, {HPHW_FIO, 0x004, 0x00340, 0x0, "BARCO CX4500 VME Grphx Cnsl"}, {HPHW_FIO, 0x004, 0x00360, 0x0, "Hughes TOG VME FDDI"}, - {HPHW_FIO, 0x076, 0x000AD, 0x00, "Crestone Peak RS-232"}, + {HPHW_FIO, 0x076, 0x000AD, 0x0, "Crestone Peak Core RS-232"}, + {HPHW_FIO, 0x077, 0x000AD, 0x0, "Crestone Peak Fast? Core RS-232"}, {HPHW_IOA, 0x185, 0x0000B, 0x00, "Java BC Summit Port"}, {HPHW_IOA, 0x1FF, 0x0000B, 0x00, "Hitachi Ghostview Summit Port"}, {HPHW_IOA, 0x580, 0x0000B, 0x10, "U2-IOA BC Runway Port"},
arch/powerpc/include/asm/perf_event_server.h +1 -1
@@ -59,7 +59,7 @@ struct power_pmu {#define PPMU_SIAR_VALID 0x00000010/* Processor has SIAR Valid bit */ #define PPMU_HAS_SSLOT 0x00000020/* Has sampled slot in MMCRA */ #define PPMU_HAS_SIER 0x00000040/* Has SIER */ -#define PPMU_BHRB 0x00000080/* has BHRB feature enabled */ +#define PPMU_ARCH_207S 0x00000080/* PMC is architecture v2.07S */ /* * Values for flags to get_alternatives()
arch/powerpc/perf/core-book3s.c +20 -2
@@ -749,7 +749,22 @@ static void power_pmu_read(struct perf_event *event) }while (local64_cmpxchg (&event->hw.prev_count, prev, val) != prev);local64_add (delta, &event->count); -local64_sub (delta, &event->hw.period_left); + +/* +* A number of places program the PMC with (0x80000000 - period_left). +* We never want period_left to be less than 1 because we will program +* the PMC with a value >= 0x800000000 and an edge detected PMC will +* roll around to 0 before taking an exception. We have seen this +* on POWER8. +* +* To fix this, clamp the minimum value of period_left to 1. +*/ +do { + prev =local64_read (&event->hw.period_left); + val = prev - delta; +if (val <1 ) + val =1 ; + }while (local64_cmpxchg (&event->hw.period_left, prev, val) != prev); }/*
@@ -1327,6 +1342,9 @@ static int can_go_on_limited_pmc(struct perf_event *event, u64 ev,if (ppmu->limited_pmc_event (ev))return 1 ; +if (ppmu->flags &PPMU_ARCH_207S ) +mtspr (SPRN_MMCR2 ,0 ); +/* * The requested event_id isn't on a limited PMC already; * see if any alternative code goes on a limited PMC.
@@ -1421,7 +1439,7 @@ static int power_pmu_event_init(struct perf_event *event)if (has_branch_stack (event)) {/* PMU has BHRB enabled */ -if (!(ppmu->flags &PPMU_BHRB )) +if (!(ppmu->flags &PPMU_ARCH_207S ))return -EOPNOTSUPP ; }
arch/powerpc/perf/power8-pmu.c +1 -1
@@ -592,7 +592,7 @@ static struct power_pmu power8_pmu = { .get_constraint = power8_get_constraint, .get_alternatives = power8_get_alternatives, .disable_pmc = power8_disable_pmc, - .flags = PPMU_HAS_SSLOT | PPMU_HAS_SIER | PPMU_BHRB, + .flags = PPMU_HAS_SSLOT | PPMU_HAS_SIER | PPMU_ARCH_207S, .n_generic = ARRAY_SIZE(power8_generic_events), .generic_events = power8_generic_events, .attr_groups = power8_pmu_attr_groups,
arch/score/Kconfig +3 -0
@@ -109,3 +109,6 @@ source "security/Kconfig" source "crypto/Kconfig" source "lib/Kconfig" + +config NO_IOMEM + def_bool y
arch/score/Makefile +2 -2
@@ -20,8 +20,8 @@ cflags-y += -G0 -pipe -mel -mnhwloop -D__SCOREEL__ \ # KBUILD_AFLAGS += $(cflags-y) KBUILD_CFLAGS += $(cflags-y) -KBUILD_AFLAGS_MODULE += -mlong-calls -KBUILD_CFLAGS_MODULE += -mlong-calls +KBUILD_AFLAGS_MODULE += +KBUILD_CFLAGS_MODULE += LDFLAGS += --oformat elf32-littlescore LDFLAGS_vmlinux += -G0 -static -nostdlib
arch/score/include/asm/checksum.h +51 -42
99 lines not on this page · raw message
arch/score/include/asm/io.h +0 -1
@@ -5,5 +5,4 @@#define virt_to_bus virt_to_phys#define bus_to_virt phys_to_virt -#endif /* _ASM_SCORE_IO_H */
arch/score/include/asm/pgalloc.h +1 -1
@@ -2,7 +2,7 @@#define _ASM_SCORE_PGALLOC_H#include <linux/mm.h> - +#include <linux/highmem.h> static inline void pmd_populate_kernel (struct mm_struct *mm,pmd_t *pmd,pte_t *pte) {
arch/score/kernel/entry.S +2 -2
@@ -264,7 +264,7 @@ resume_kernel: disable_irq lw r8, [r28, TI_PRE_COUNT] cmpz.c r8 - bne r8, restore_all + bne restore_all need_resched: lw r8, [r28, TI_FLAGS] andri.c r9, r8, _TIF_NEED_RESCHED
@@ -415,7 +415,7 @@ ENTRY(handle_sys) sw r9, [r0, PT_EPC] cmpi.c r27, __NR_syscalls # check syscall number - bgeu illegal_syscall + bcs illegal_syscall slli r8, r27, 2 # get syscall routine la r11, sys_call_table
arch/score/kernel/process.c +2 -2
@@ -78,8 +78,8 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, p->thread.reg0 = (unsigned long ) childregs;if (unlikely (p->flags &PF_KTHREAD )) {memset (childregs,0 ,sizeof (struct pt_regs )); - p->thread->reg12 = usp; - p->thread->reg13 = arg; + p->thread.reg12 = usp; + p->thread.reg13 = arg; p->thread.reg3 = (unsigned long ) ret_from_kernel_thread; }else { *childregs = *current_pt_regs ();
arch/score/kernel/vmlinux.lds.S +1 -0
@@ -49,6 +49,7 @@ SECTIONS } . = ALIGN(16); + _sdata = .; /* Start of data section */ RODATA EXCEPTION_TABLE(16)
arch/x86/crypto/sha512_ssse3_glue.c +1 -1
@@ -141,7 +141,7 @@ static int sha512_ssse3_final(struct shash_desc *desc, u8 *out)/* save number of bits */ bits[1 ] =cpu_to_be64 (sctx->count[0 ] <<3 ); - bits[0 ] =cpu_to_be64 (sctx->count[1 ] <<3 ) | sctx->count[0 ] >>61 ; + bits[0 ] =cpu_to_be64 (sctx->count[1 ] <<3 | sctx->count[0 ] >>61 );/* Pad out to 112 mod 128 and append length */ index = sctx->count[0 ] &0x7f ;
arch/x86/mm/ioremap.c +19 -7
@@ -50,6 +50,21 @@ int ioremap_change_attr(unsigned long vaddr, unsigned long size,return err; } +static int __ioremap_check_ram (unsigned long start_pfn,unsigned long nr_pages, +void *arg) +{ +unsigned long i; + +for (i =0 ; i < nr_pages; ++i) +if (pfn_valid (start_pfn + i) && + !PageReserved (pfn_to_page (start_pfn + i))) +return 1 ; + +WARN_ONCE (1 ,"ioremap on RAM pfn 0x%lx\n" , start_pfn); + +return 0 ; +} +/* * Remap an arbitrary physical address space into the kernel virtual * address space. Needed when the kernel wants to access high addresses
@@ -93,14 +108,11 @@ static void __iomem *__ioremap_caller(resource_size_t phys_addr,/* * Don't allow anybody to remap normal RAM that we're using.. */ + pfn = phys_addr >>PAGE_SHIFT ; last_pfn = last_addr >>PAGE_SHIFT ; -for (pfn = phys_addr >>PAGE_SHIFT ; pfn <= last_pfn; pfn++) { -int is_ram =page_is_ram (pfn); - -if (is_ram &&pfn_valid (pfn) && !PageReserved (pfn_to_page (pfn))) -return NULL ; -WARN_ON_ONCE (is_ram); - } +if (walk_system_ram_range (pfn, last_pfn - pfn +1 ,NULL , + __ioremap_check_ram) ==1 ) +return NULL ;/* * Mappings have to be page-aligned
drivers/acpi/battery.c +26 -1
@@ -34,6 +34,7 @@#include <linux/dmi.h> #include <linux/slab.h> #include <linux/suspend.h> +#include <linux/delay.h> #include <asm/unaligned.h> #ifdef CONFIG_ACPI_PROCFS_POWER
@@ -1081,6 +1082,28 @@ static struct dmi_system_id bat_dmi_table[] = { {}, }; +/* +* Some machines'(E,G Lenovo Z480) ECs are not stable +* during boot up and this causes battery driver fails to be +* probed due to failure of getting battery information +* from EC sometimes. After several retries, the operation +* may work. So add retry code here and 20ms sleep between +* every retries. +*/ +static int acpi_battery_update_retry (struct acpi_battery *battery) +{ +int retry, ret; + +for (retry =5 ; retry; retry--) { + ret =acpi_battery_update (battery); +if (!ret) +break ; + +msleep (20 ); + } +return ret; +} +static int acpi_battery_add (struct acpi_device *device) {int result =0 ;
@@ -1100,9 +1123,11 @@ static int acpi_battery_add(struct acpi_device *device)if (ACPI_SUCCESS (acpi_get_handle (battery->device->handle,"_BIX" , &handle)))set_bit (ACPI_BATTERY_XINFO_PRESENT , &battery->flags); - result =acpi_battery_update (battery); + + result =acpi_battery_update_retry (battery);if (result) goto fail; +#ifdef CONFIG_ACPI_PROCFS_POWER result =acpi_battery_add_fs (device);#endif
drivers/acpi/resource.c +5 -5
@@ -77,7 +77,7 @@ bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res)switch (ares->type) {case ACPI_RESOURCE_TYPE_MEMORY24 : memory24 = &ares->data.memory24; -if (!memory24->address_length) +if (!memory24->minimum && !memory24->address_length)return false; acpi_dev_get_memresource(res, memory24->minimum, memory24->address_length,
@@ -85,7 +85,7 @@ bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res)break ;case ACPI_RESOURCE_TYPE_MEMORY32 : memory32 = &ares->data.memory32; -if (!memory32->address_length) +if (!memory32->minimum && !memory32->address_length)return false; acpi_dev_get_memresource(res, memory32->minimum, memory32->address_length,
@@ -93,7 +93,7 @@ bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res)break ;case ACPI_RESOURCE_TYPE_FIXED_MEMORY32 : fixed_memory32 = &ares->data.fixed_memory32; -if (!fixed_memory32->address_length) +if (!fixed_memory32->address && !fixed_memory32->address_length)return false; acpi_dev_get_memresource(res, fixed_memory32->address, fixed_memory32->address_length,
@@ -150,7 +150,7 @@ bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res)switch (ares->type) {case ACPI_RESOURCE_TYPE_IO : io = &ares->data.io; -if (!io->address_length) +if (!io->minimum && !io->address_length)return false; acpi_dev_get_ioresource(res, io->minimum, io->address_length,
@@ -158,7 +158,7 @@ bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res)break ;case ACPI_RESOURCE_TYPE_FIXED_IO : fixed_io = &ares->data.fixed_io; -if (!fixed_io->address_length) +if (!fixed_io->address && !fixed_io->address_length)return false; acpi_dev_get_ioresource(res, fixed_io->address, fixed_io->address_length,
drivers/clk/spear/spear3xx_clock.c +1 -1
@@ -211,7 +211,7 @@ static inline void spear310_clk_init(void) { }/* array of all spear 320 clock lookups */ #ifdef CONFIG_MACH_SPEAR320 -#define SPEAR320_CONTROL_REG (soc_config_base + 0x0000) +#define SPEAR320_CONTROL_REG (soc_config_base + 0x0010)#define SPEAR320_EXT_CTRL_REG (soc_config_base + 0x0018)#define SPEAR320_UARTX_PCLK_MASK 0x1
drivers/cpufreq/Makefile +1 -1
@@ -50,7 +50,7 @@ obj-$(CONFIG_ARM_BIG_LITTLE_CPUFREQ) += arm_big_little.o # LITTLE drivers, so that it is probed last. obj-$(CONFIG_ARM_DT_BL_CPUFREQ) += arm_big_little_dt.o -obj-$(CONFIG_ARCH_DAVINCI_DA850) += davinci-cpufreq.o +obj-$(CONFIG_ARCH_DAVINCI) += davinci-cpufreq.o obj-$(CONFIG_UX500_SOC_DB8500) += dbx500-cpufreq.o obj-$(CONFIG_ARM_EXYNOS_CPUFREQ) += exynos-cpufreq.o obj-$(CONFIG_ARM_EXYNOS4210_CPUFREQ) += exynos4210-cpufreq.o
drivers/gpu/drm/radeon/evergreen.c +4 -4
@@ -94,7 +94,7 @@ static const u32 evergreen_golden_registers[] =0x8c1c ,0xffffffff ,0x00001010 ,0x28350 ,0xffffffff ,0x00000000 ,0xa008 ,0xffffffff ,0x00010000 , -0x5cc ,0xffffffff ,0x00000001 , +0x5c4 ,0xffffffff ,0x00000001 ,0x9508 ,0xffffffff ,0x00000002 ,0x913c ,0x0000000f ,0x0000000a };
@@ -381,7 +381,7 @@ static const u32 cedar_golden_registers[] =0x8c1c ,0xffffffff ,0x00001010 ,0x28350 ,0xffffffff ,0x00000000 ,0xa008 ,0xffffffff ,0x00010000 , -0x5cc ,0xffffffff ,0x00000001 , +0x5c4 ,0xffffffff ,0x00000001 ,0x9508 ,0xffffffff ,0x00000002 };
@@ -540,7 +540,7 @@ static const u32 juniper_mgcg_init[] =static const u32 supersumo_golden_registers[] = {0x5eb4 ,0xffffffff ,0x00000002 , -0x5cc ,0xffffffff ,0x00000001 , +0x5c4 ,0xffffffff ,0x00000001 ,0x7030 ,0xffffffff ,0x00000011 ,0x7c30 ,0xffffffff ,0x00000011 ,0x6104 ,0x01000300 ,0x00000000 ,
@@ -624,7 +624,7 @@ static const u32 sumo_golden_registers[] =static const u32 wrestler_golden_registers[] = {0x5eb4 ,0xffffffff ,0x00000002 , -0x5cc ,0xffffffff ,0x00000001 , +0x5c4 ,0xffffffff ,0x00000001 ,0x7030 ,0xffffffff ,0x00000011 ,0x7c30 ,0xffffffff ,0x00000011 ,0x6104 ,0x01000300 ,0x00000000 ,
drivers/gpu/drm/radeon/rs600.c +4 -2
@@ -582,8 +582,10 @@ int rs600_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr)return -EINVAL ; } addr = addr &0xFFFFFFFFFFFFF000ULL ; - addr |=R600_PTE_VALID |R600_PTE_SYSTEM |R600_PTE_SNOOPED ; - addr |=R600_PTE_READABLE |R600_PTE_WRITEABLE ; +if (addr != rdev->dummy_page.addr) + addr |=R600_PTE_VALID |R600_PTE_READABLE | +R600_PTE_WRITEABLE ; + addr |=R600_PTE_SYSTEM |R600_PTE_SNOOPED ;writeq (addr, ptr + (i *8 ));return 0 ; }
drivers/hv/connection.c +6 -2
@@ -304,9 +304,13 @@ static void process_chn_event(u32 relid)*/ do { -hv_begin_read (&channel->inbound); +if (read_state) +hv_begin_read (&channel->inbound); channel->onchannel_callback (arg); - bytes_to_read =hv_end_read (&channel->inbound); +if (read_state) + bytes_to_read =hv_end_read (&channel->inbound); +else + bytes_to_read =0 ; }while (read_state && (bytes_to_read !=0 )); }else {pr_err ("no channel callback for relid - %u\n" , relid);
drivers/hwmon/adm1021.c +8 -6
@@ -185,7 +185,7 @@ static ssize_t set_temp_max(struct device *dev,struct i2c_client *client =to_i2c_client (dev);struct adm1021_data *data =i2c_get_clientdata (client);long temp; -int err; +int reg_val, err; err =kstrtol (buf,10 , &temp);if (err)
@@ -193,10 +193,11 @@ static ssize_t set_temp_max(struct device *dev, temp /=1000 ;mutex_lock (&data->update_lock); - data->temp_max[index] =clamp_val (temp,-128 ,127 ); + reg_val =clamp_val (temp,-128 ,127 ); + data->temp_max[index] = reg_val *1000 ;if (!read_only)i2c_smbus_write_byte_data (client,ADM1021_REG_TOS_W (index), - data->temp_max[index]); + reg_val);mutex_unlock (&data->update_lock);return count;
@@ -210,7 +211,7 @@ static ssize_t set_temp_min(struct device *dev,struct i2c_client *client =to_i2c_client (dev);struct adm1021_data *data =i2c_get_clientdata (client);long temp; -int err; +int reg_val, err; err =kstrtol (buf,10 , &temp);if (err)
@@ -218,10 +219,11 @@ static ssize_t set_temp_min(struct device *dev, temp /=1000 ;mutex_lock (&data->update_lock); - data->temp_min[index] =clamp_val (temp,-128 ,127 ); + reg_val =clamp_val (temp,-128 ,127 ); + data->temp_min[index] = reg_val *1000 ;if (!read_only)i2c_smbus_write_byte_data (client,ADM1021_REG_THYST_W (index), - data->temp_min[index]); + reg_val);mutex_unlock (&data->update_lock);return count;
drivers/hwmon/adm1029.c +3 -0
@@ -232,6 +232,9 @@ static ssize_t set_fan_div(struct device *dev,/* Update the value */ reg = (reg &0x3F ) | (val <<6 ); +/* Update the cache */ + data->fan_div[attr->index] = reg; +/* Write value */ i2c_smbus_write_byte_data (client,ADM1029_REG_FAN_DIV [attr->index], reg);
drivers/hwmon/adm1031.c +5 -3
@@ -365,6 +365,7 @@ set_auto_temp_min(struct device *dev, struct device_attribute *attr,if (ret)return ret; + val =clamp_val (val,0 ,127000 );mutex_lock (&data->update_lock); data->auto_temp[nr] =AUTO_TEMP_MIN_TO_REG (val, data->auto_temp[nr]); adm1031_write_value(client, ADM1031_REG_AUTO_TEMP(nr),
@@ -394,6 +395,7 @@ set_auto_temp_max(struct device *dev, struct device_attribute *attr,if (ret)return ret; + val =clamp_val (val,0 ,127000 );mutex_lock (&data->update_lock); data->temp_max[nr] =AUTO_TEMP_MAX_TO_REG (val, data->auto_temp[nr], data->pwm[nr]);
@@ -696,7 +698,7 @@ static ssize_t set_temp_min(struct device *dev, struct device_attribute *attr,if (ret)return ret; - val =clamp_val (val,-55000 , nr ==0 ?127750 :127875 ); + val =clamp_val (val,-55000 ,127000 );mutex_lock (&data->update_lock); data->temp_min[nr] =TEMP_TO_REG (val); adm1031_write_value(client, ADM1031_REG_TEMP_MIN(nr),
@@ -717,7 +719,7 @@ static ssize_t set_temp_max(struct device *dev, struct device_attribute *attr,if (ret)return ret; - val =clamp_val (val,-55000 , nr ==0 ?127750 :127875 ); + val =clamp_val (val,-55000 ,127000 );mutex_lock (&data->update_lock); data->temp_max[nr] =TEMP_TO_REG (val); adm1031_write_value(client, ADM1031_REG_TEMP_MAX(nr),
@@ -738,7 +740,7 @@ static ssize_t set_temp_crit(struct device *dev, struct device_attribute *attr,if (ret)return ret; - val =clamp_val (val,-55000 , nr ==0 ?127750 :127875 ); + val =clamp_val (val,-55000 ,127000 );mutex_lock (&data->update_lock); data->temp_crit[nr] =TEMP_TO_REG (val); adm1031_write_value(client, ADM1031_REG_TEMP_CRIT(nr),
drivers/hwmon/amc6821.c +1 -1
@@ -707,7 +707,7 @@ static SENSOR_DEVICE_ATTR(temp1_max_alarm, S_IRUGO, get_temp_alarm, NULL, IDX_TEMP1_MAX); static SENSOR_DEVICE_ATTR(temp1_crit_alarm, S_IRUGO, get_temp_alarm, NULL, IDX_TEMP1_CRIT); -static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO | S_IWUSR, +static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, get_temp, NULL, IDX_TEMP2_INPUT); static SENSOR_DEVICE_ATTR(temp2_min, S_IRUGO | S_IWUSR, get_temp, set_temp, IDX_TEMP2_MIN);
drivers/md/dm-io.c +8 -14
@@ -10,6 +10,7 @@#include <linux/device-mapper.h> #include <linux/bio.h> +#include <linux/completion.h> #include <linux/mempool.h> #include <linux/module.h> #include <linux/sched.h>
@@ -34,7 +35,7 @@ struct dm_io_client {struct io {unsigned long error_bits;atomic_t count; -struct task_struct *sleeper; +struct completion *wait;struct dm_io_client *client;io_notify_fn callback;void *context;
@@ -122,8 +123,8 @@ static void dec_count(struct io *io, unsigned int region, int error)invalidate_kernel_vmap_range (io->vma_invalidate_address, io->vma_invalidate_size); -if (io->sleeper) -wake_up_process (io->sleeper); +if (io->wait) +complete (io->wait);else {unsigned long r = io->error_bits;
@@ -386,6 +387,7 @@ static int sync_io(struct dm_io_client *client, unsigned int num_regions,*/ volatile char io_[sizeof (struct io ) + __alignof__(struct io ) -1 ];struct io *io = (struct io *)PTR_ALIGN (&io_, __alignof__(struct io )); +DECLARE_COMPLETION_ONSTACK (wait);if (num_regions >1 && (rw &RW_MASK ) !=WRITE ) {WARN_ON (1 );
@@ -394,7 +396,7 @@ static int sync_io(struct dm_io_client *client, unsigned int num_regions, io->error_bits =0 ;atomic_set (&io->count,1 );/* see dispatch_io() */ - io->sleeper = current; + io->wait = &wait; io->client = client; io->vma_invalidate_address = dp->vma_invalidate_address;
@@ -402,15 +404,7 @@ static int sync_io(struct dm_io_client *client, unsigned int num_regions,dispatch_io (rw, num_regions, where, dp, io,1 ); -while (1 ) { -set_current_state (TASK_UNINTERRUPTIBLE ); - -if (!atomic_read (&io->count)) -break ; - -io_schedule (); - } -set_current_state (TASK_RUNNING ); +wait_for_completion_io (&wait);if (error_bits) *error_bits = io->error_bits;
@@ -433,7 +427,7 @@ static int async_io(struct dm_io_client *client, unsigned int num_regions, io =mempool_alloc (client->pool,GFP_NOIO ); io->error_bits =0 ;atomic_set (&io->count,1 );/* see dispatch_io() */ - io->sleeper =NULL ; + io->wait =NULL ; io->client = client; io->callback = fn; io->context = context;
drivers/usb/serial/cp210x.c +1 -0
@@ -153,6 +153,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x1843, 0x0200) }, /* Vaisala USB Instrument Cable */ { USB_DEVICE(0x18EF, 0xE00F) }, /* ELV USB-I2C-Interface */ { USB_DEVICE(0x1ADB, 0x0001) }, /* Schweitzer Engineering C662 Cable */ + { USB_DEVICE(0x1B1C, 0x1C00) }, /* Corsair USB Dongle */ { USB_DEVICE(0x1BE3, 0x07A6) }, /* WAGO 750-923 USB Service Cable */ { USB_DEVICE(0x1E29, 0x0102) }, /* Festo CPX-USB */ { USB_DEVICE(0x1E29, 0x0501) }, /* Festo CMSP */
drivers/usb/serial/ftdi_sio.c +4 -1
@@ -723,7 +723,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_ACG_HFDUAL_PID) }, { USB_DEVICE(FTDI_VID, FTDI_YEI_SERVOCENTER31_PID) }, { USB_DEVICE(FTDI_VID, FTDI_THORLABS_PID) }, - { USB_DEVICE(TESTO_VID, TESTO_USB_INTERFACE_PID) }, + { USB_DEVICE(TESTO_VID, TESTO_1_PID) }, + { USB_DEVICE(TESTO_VID, TESTO_3_PID) }, { USB_DEVICE(FTDI_VID, FTDI_GAMMA_SCOUT_PID) }, { USB_DEVICE(FTDI_VID, FTDI_TACTRIX_OPENPORT_13M_PID) }, { USB_DEVICE(FTDI_VID, FTDI_TACTRIX_OPENPORT_13S_PID) },
@@ -947,6 +948,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(BRAINBOXES_VID, BRAINBOXES_US_842_2_PID) }, { USB_DEVICE(BRAINBOXES_VID, BRAINBOXES_US_842_3_PID) }, { USB_DEVICE(BRAINBOXES_VID, BRAINBOXES_US_842_4_PID) }, +/* Infineon Devices */ + { USB_DEVICE_INTERFACE_NUMBER(INFINEON_VID, INFINEON_TRIBOARD_PID, 1) }, { }, /* Optional parameter entry */ { } /* Terminating entry */ };
drivers/usb/serial/ftdi_sio_ids.h +8 -1
@@ -584,6 +584,12 @@#define RATOC_PRODUCT_ID_USB60F 0xb020/* +* Infineon Technologies +*/ +#define INFINEON_VID 0x058b +#define INFINEON_TRIBOARD_PID 0x0028/* DAS JTAG TriBoard TC1798 V1.0 */ + +/* * Acton Research Corp. */ #define ACTON_VID 0x0647/* Vendor ID */
@@ -798,7 +804,8 @@* Submitted by Colin Leroy */ #define TESTO_VID 0x128D -#define TESTO_USB_INTERFACE_PID 0x0001 +#define TESTO_1_PID 0x0001 +#define TESTO_3_PID 0x0003/* * Mobility Electronics products.
drivers/usb/serial/option.c +2 -0
@@ -1487,6 +1487,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = (kernel_ulong_t)&net_intf2_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1426, 0xff, 0xff, 0xff), /* ZTE MF91 */ .driver_info = (kernel_ulong_t)&net_intf2_blacklist }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1428, 0xff, 0xff, 0xff), /* Telewell TW-LTE 4G v2 */ + .driver_info = (kernel_ulong_t)&net_intf2_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1533, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1534, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1535, 0xff, 0xff, 0xff) },
fs/ext4/ialloc.c +7 -7
@@ -780,6 +780,13 @@ got: goto out; } +BUFFER_TRACE (group_desc_bh,"get_write_access" ); + err =ext4_journal_get_write_access (handle, group_desc_bh); +if (err) { +ext4_std_error (sb, err); + goto out; + } +/* We may have to initialize the block bitmap if it isn't already */ if (ext4_has_group_desc_csum (sb) && gdp->bg_flags &cpu_to_le16 (EXT4_BG_BLOCK_UNINIT )) {
@@ -816,13 +823,6 @@ got: } } -BUFFER_TRACE (group_desc_bh,"get_write_access" ); - err =ext4_journal_get_write_access (handle, group_desc_bh); -if (err) { -ext4_std_error (sb, err); - goto out; - } -/* Update the relevant bg descriptor fields */ if (ext4_has_group_desc_csum (sb)) {int free;
fs/ext4/super.c +4 -5
@@ -1483,8 +1483,6 @@ static int handle_mount_opt(struct super_block *sb, char *opt, int token, arg =JBD2_DEFAULT_MAX_COMMIT_AGE ; sbi->s_commit_interval =HZ * arg; }else if (token == Opt_max_batch_time) { -if (arg ==0 ) - arg =EXT4_DEF_MAX_BATCH_TIME ; sbi->s_max_batch_time = arg; }else if (token == Opt_min_batch_time) { sbi->s_min_batch_time = arg;
@@ -2687,10 +2685,11 @@ static void print_daily_error_info(unsigned long arg) es = sbi->s_es;if (es->s_error_count) -ext4_msg (sb,KERN_NOTICE ,"error count: %u" , +/* fsck newer than v1.41.13 is needed to clean this condition. */ +ext4_msg (sb,KERN_NOTICE ,"error count since last fsck: %u" ,le32_to_cpu (es->s_error_count));if (es->s_first_error_time) { - printk(KERN_NOTICE "EXT4-fs (%s): initial error at %u: %.*s:%d", + printk(KERN_NOTICE "EXT4-fs (%s): initial error at time %u: %.*s:%d", sb->s_id, le32_to_cpu(es->s_first_error_time), (int) sizeof(es->s_first_error_func), es->s_first_error_func,
@@ -2704,7 +2703,7 @@ static void print_daily_error_info(unsigned long arg)printk ("\n" ); }if (es->s_last_error_time) { - printk(KERN_NOTICE "EXT4-fs (%s): last error at %u: %.*s:%d", + printk(KERN_NOTICE "EXT4-fs (%s): last error at time %u: %.*s:%d", sb->s_id, le32_to_cpu(es->s_last_error_time), (int) sizeof(es->s_last_error_func), es->s_last_error_func,
fs/jbd2/transaction.c +4 -1
@@ -1442,9 +1442,12 @@ int jbd2_journal_stop(handle_t *handle)* to perform a synchronous write. We do this to detect the * case where a single process is doing a stream of sync * writes. No point in waiting for joiners in that case. +* +* Setting max_batch_time to 0 disables this completely. */ pid = current->pid; -if (handle->h_sync && journal->j_last_sync_writer != pid) { +if (handle->h_sync && journal->j_last_sync_writer != pid && + journal->j_max_batch_time) {u64 commit_time, trans_time; journal->j_last_sync_writer = pid;
include/linux/ring_buffer.h +1 -1
@@ -97,7 +97,7 @@ __ring_buffer_alloc(unsigned long size, unsigned flags, struct lock_class_key *k__ring_buffer_alloc ((size), (flags), &__key); \ }) -void ring_buffer_wait (struct ring_buffer *buffer,int cpu); +int ring_buffer_wait (struct ring_buffer *buffer,int cpu);int ring_buffer_poll_wait (struct ring_buffer *buffer,int cpu,struct file *filp,poll_table *poll_table);
kernel/cpuset.c +7 -1
@@ -1153,7 +1153,13 @@ done:int current_cpuset_is_being_rebound (void ) { -return task_cs (current) == cpuset_being_rebound; +int ret; + +rcu_read_lock (); + ret =task_cs (current) == cpuset_being_rebound; +rcu_read_unlock (); + +return ret; }static int update_relax_domain_level (struct cpuset *cs,s64 val)
kernel/rtmutex-debug.h +5 -0
@@ -31,3 +31,8 @@ static inline int debug_rt_mutex_detect_deadlock(struct rt_mutex_waiter *waiter, {return (waiter !=NULL ); } + +static inline void rt_mutex_print_deadlock (struct rt_mutex_waiter *w) +{ +debug_rt_mutex_print_deadlock (w); +}
kernel/rtmutex.c +223 -29
423 lines not on this page · raw message
kernel/rtmutex.h +5 -0
@@ -24,3 +24,8 @@#define debug_rt_mutex_print_deadlock (w) do { } while (0)#define debug_rt_mutex_detect_deadlock (w,d) (d)#define debug_rt_mutex_reset_waiter (w) do { } while (0) + +static inline void rt_mutex_print_deadlock (struct rt_mutex_waiter *w) +{ +WARN (1 ,"rtmutex deadlock detected\n" ); +}
kernel/trace/ring_buffer.c +4 -1
@@ -543,7 +543,7 @@ static void rb_wake_up_waiters(struct irq_work *work)* as data is added to any of the @buffer's cpu buffers. Otherwise * it will wait for data to be added to a specific cpu buffer. */ -void ring_buffer_wait (struct ring_buffer *buffer,int cpu) +int ring_buffer_wait (struct ring_buffer *buffer,int cpu) {struct ring_buffer_per_cpu *cpu_buffer;DEFINE_WAIT (wait);
@@ -557,6 +557,8 @@ void ring_buffer_wait(struct ring_buffer *buffer, int cpu)if (cpu ==RING_BUFFER_ALL_CPUS ) work = &buffer->irq_work;else { +if (!cpumask_test_cpu (cpu, buffer->cpumask)) +return -ENODEV ; cpu_buffer = buffer->buffers[cpu]; work = &cpu_buffer->irq_work; }
@@ -591,6 +593,7 @@ void ring_buffer_wait(struct ring_buffer *buffer, int cpu)schedule ();finish_wait (&work->waiters, &wait); +return 0 ; }/**
kernel/trace/trace.c +18 -7
@@ -1027,13 +1027,13 @@ update_max_tr_single(struct trace_array *tr, struct task_struct *tsk, int cpu) }#endif /* CONFIG_TRACER_MAX_TRACE */ -static void default_wait_pipe (struct trace_iterator *iter) +static int default_wait_pipe (struct trace_iterator *iter) {/* Iterators are static, they should be filled or empty */ if (trace_buffer_iter (iter, iter->cpu_file)) -return ; +return 0 ; -ring_buffer_wait (iter->trace_buffer->buffer, iter->cpu_file); +return ring_buffer_wait (iter->trace_buffer->buffer, iter->cpu_file); }#ifdef CONFIG_FTRACE_STARTUP_TEST
@@ -4054,17 +4054,19 @@ tracing_poll_pipe(struct file *filp, poll_table *poll_table)* * Anyway, this is really very primitive wakeup. */ -void poll_wait_pipe (struct trace_iterator *iter) +int poll_wait_pipe (struct trace_iterator *iter) {set_current_state (TASK_INTERRUPTIBLE );/* sleep for 100 msecs, and try again. */ schedule_timeout (HZ /10 ); +return 0 ; }/* Must be called with trace_types_lock mutex held. */ static int tracing_wait_pipe (struct file *filp) {struct trace_iterator *iter = filp->private_data; +int ret;while (trace_empty (iter)) {
@@ -4074,10 +4076,13 @@ static int tracing_wait_pipe(struct file *filp)mutex_unlock (&iter->mutex); - iter->trace->wait_pipe (iter); + ret = iter->trace->wait_pipe (iter);mutex_lock (&iter->mutex); +if (ret) +return ret; +if (signal_pending (current))return -EINTR ;
@@ -5011,8 +5016,12 @@ tracing_buffers_read(struct file *filp, char __user *ubuf, goto out_unlock; }mutex_unlock (&trace_types_lock); - iter->trace->wait_pipe (iter); + ret = iter->trace->wait_pipe (iter);mutex_lock (&trace_types_lock); +if (ret) { + size = ret; + goto out_unlock; + }if (signal_pending (current)) { size = -EINTR ; goto out_unlock;
@@ -5224,8 +5233,10 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos, goto out; }mutex_unlock (&trace_types_lock); - iter->trace->wait_pipe (iter); + ret = iter->trace->wait_pipe (iter);mutex_lock (&trace_types_lock); +if (ret) + goto out;if (signal_pending (current)) { ret = -EINTR ; goto out;
kernel/trace/trace.h +2 -2
@@ -342,7 +342,7 @@ struct tracer {void (*stop)(struct trace_array *tr);void (*open)(struct trace_iterator *iter);void (*pipe_open)(struct trace_iterator *iter); -void (*wait_pipe)(struct trace_iterator *iter); +int (*wait_pipe)(struct trace_iterator *iter);void (*close)(struct trace_iterator *iter);void (*pipe_close)(struct trace_iterator *iter); ssize_t (*read)(struct trace_iterator *iter,
@@ -557,7 +557,7 @@ void trace_init_global_iter(struct trace_iterator *iter);void tracing_iter_reset (struct trace_iterator *iter,int cpu); -void poll_wait_pipe (struct trace_iterator *iter); +int poll_wait_pipe (struct trace_iterator *iter); void ftrace(struct trace_array *tr, struct trace_array_cpu *data,
kernel/workqueue.c +2 -1
@@ -3373,6 +3373,7 @@ int workqueue_sysfs_register(struct workqueue_struct *wq) } } +dev_set_uevent_suppress (&wq_dev->dev, false);kobject_uevent (&wq_dev->dev.kobj,KOBJ_ADD );return 0 ; }
@@ -4967,7 +4968,7 @@ static void __init wq_numa_init(void)BUG_ON (!tbl);for_each_node (node) -BUG_ON (!alloc_cpumask_var_node (&tbl[node],GFP_KERNEL , +BUG_ON (!zalloc_cpumask_var_node (&tbl[node],GFP_KERNEL ,node_online (node) ? node :NUMA_NO_NODE ));for_each_possible_cpu (cpu) {
mm/mempolicy.c +0 -2
@@ -2086,7 +2086,6 @@ struct mempolicy *__mpol_dup(struct mempolicy *old) }else *new = *old; -rcu_read_lock ();if (current_cpuset_is_being_rebound ()) {nodemask_t mems =cpuset_mems_allowed (current);if (new->flags &MPOL_F_REBINDING )
@@ -2094,7 +2093,6 @@ struct mempolicy *__mpol_dup(struct mempolicy *old)else mpol_rebind_policy (new, &mems,MPOL_REBIND_ONCE ); } -rcu_read_unlock ();atomic_set (&new->refcnt,1 );return new; }