Linux 3.11.6
Greg KH
maintainerI'm announcing the release of the 3.11.6 kernel.
All users of the 3.11 kernel series must upgrade.
The updated 3.11.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.11.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/arc/include/asm/delay.h | 5 arch/arc/include/asm/spinlock.h | 9 + arch/arc/include/asm/uaccess.h | 4 arch/arc/kernel/ptrace.c | 2 arch/arc/kernel/signal.c | 25 +-- arch/arc/kernel/unaligned.c | 6 arch/arm/include/asm/jump_label.h | 2 arch/mips/include/asm/jump_label.h | 2 arch/mips/kernel/octeon_switch.S | 2 arch/mips/kernel/r2300_switch.S | 2 arch/mips/kernel/r4k_switch.S | 2 arch/parisc/kernel/traps.c | 6 arch/powerpc/include/asm/jump_label.h | 2 arch/powerpc/kvm/book3s_hv_rmhandlers.S | 2 arch/s390/include/asm/jump_label.h | 2 arch/sparc/include/asm/jump_label.h | 2 arch/x86/include/asm/cpufeature.h | 6 arch/x86/include/asm/e820.h | 2 arch/x86/include/asm/jump_label.h | 2 arch/x86/kernel/e820.c | 5 arch/x86/kernel/setup.c | 19 +- drivers/char/random.c | 3 drivers/gpu/drm/i915/i915_reg.h | 6 drivers/gpu/drm/i915/intel_display.c | 8 - drivers/gpu/drm/i915/intel_pm.c | 9 - drivers/gpu/drm/radeon/btc_dpm.c | 6 drivers/gpu/drm/radeon/evergreen.c | 2 drivers/gpu/drm/radeon/evergreend.h | 4 drivers/gpu/drm/radeon/r600d.h | 2 drivers/gpu/drm/radeon/radeon_test.c | 4 drivers/gpu/drm/radeon/si_dpm.c | 6 drivers/gpu/drm/radeon/sid.h | 4 drivers/hwmon/applesmc.c | 13 + drivers/i2c/busses/i2c-omap.c | 3 drivers/watchdog/kempld_wdt.c | 2 drivers/watchdog/ts72xx_wdt.c | 3 fs/btrfs/inode.c | 2 fs/ext4/xattr.c | 2 fs/statfs.c | 2 include/linux/compiler-gcc4.h | 15 + include/linux/ipc_namespace.h | 2 include/linux/random.h | 1 init/main.c | 2 ipc/msg.c | 25 +-- ipc/namespace.c | 7 ipc/sem.c | 82 +++++++--- ipc/shm.c | 255 ++++++++++++++++++-------------- ipc/util.c | 82 +++------- ipc/util.h | 14 - sound/pci/hda/patch_hdmi.c | 18 +- sound/pci/hda/patch_realtek.c | 37 ++++ sound/usb/usx2y/usbusx2yaudio.c | 22 -- sound/usb/usx2y/usx2yhwdeppcm.c | 7 54 files changed, 436 insertions(+), 325 deletions(-)
Alex Deucher (1):
drm/radeon: fix typo in CP DMA register headers
Anssi Hannula (1):
ALSA: hda - hdmi: Fix channel map switch not taking effect
Chris Wilson (1):
drm/i915: Only apply DPMS to the encoder if enabled
Christian Ruppert (1):
ARC: Fix signal frame management for SA_SIGINFO
Dan Carpenter (4):
watchdog: ts72xx_wdt: locking bug in ioctl drm/radeon/dpm/btc: off by one in btc_set_mc_special_registers() drm/radeon/dpm: off by one in si_set_mc_special_registers() drm/radeon: forever loop on error in radeon_do_test_moves()
Daniel Mack (1):
ALSA: snd-usb-usx2y: remove bogus frame checks
Dave Jones (1):
ext4: fix memory leak in xattr
David Henningsson (2):
ALSA: hda - Fix microphone for Sony VAIO Pro 13 (Haswell model)
ALSA: hda - Fix mono speakers and headset mic on Dell Vostro 5470
Davidlohr Bueso (15):
ipc,shm: introduce lockless functions to obtain the ipc object ipc,shm: shorten critical region in shmctl_down
ipc: drop ipcctl_pre_down
ipc,shm: introduce shmctl_nolock
ipc,shm: make shmctl_nolock lockless
ipc,shm: shorten critical region for shmctl ipc,shm: cleanup do_shmat pasta
ipc,shm: shorten critical region for shmat
ipc: rename ids->rw_mutex
ipc,msg: drop msg_unlock
ipc: document general ipc locking scheme
ipc, shm: guard against non-existant vma in shmdt(2)
ipc: drop ipc_lock_by_ptr
ipc, shm: drop shm_lock_check
ipc: drop ipc_lock_check
Francisco Jerez (1):
drm/i915/hsw: Disable L3 caching of atomic memory operations.
Greg Kroah-Hartman (1):
Linux 3.11.6
Helge Deller (1):
parisc: fix interruption handler to respect pagefault_disable()
Henrik Rydberg (1):
hwmon: (applesmc) Always read until end of data
Imre Deak (1):
drm/i915: fix rps.vlv_work initialization
Ingo Molnar (1):
compiler/gcc4: Add quirk for 'asm goto' miscompilation bug
James Hogan (1):
MIPS: stack protector: Fix per-task canary switch
Jingoo Han (1):
watchdog: kempld_wdt: Fix bit mask definition
Josef Bacik (1):
Btrfs: use right root when checking for hash collision
Linn Crosetto (1):
x86: avoid remapping data in parse_setup_data()
Linus Torvalds (1):
vfs: allow O_PATH file descriptors for fstatfs()
Manfred Spraul (3):
ipc/sem.c: optimize sem_lock() ipc/sem.c: synchronize the proc interface ipc/sem.c: update sem_otime for all operations
Mischa Jonker (2):
ARC: Fix __udelay calculation
ARC: Handle zero-overhead-loop in unaligned access handler
Paul Mackerras (1):
KVM: PPC: Book3S HV: Fix typo in saving DSCR
Takashi Iwai (1):
ALSA: hda - Add fixup for ASUS N56VZ
Taras Kondratiuk (1):
i2c: omap: Clear ARDY bit twice
Theodore Ts'o (1):
random: run random_int_secret_init() run after all late_initcalls
Vineet Gupta (3):
ARC: Fix 32-bit wrap around in access_ok()
ARC: Workaround spinlock livelock in SMP SystemC simulation
ARC: Ignore ptrace SETREGSET request for synthetic register "stop_pc"
wojciech kapuscinski (1):
drm/radeon: fix hw contexts for SUMO2 asics
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 11 -SUBLEVEL = 5 +SUBLEVEL = 6 EXTRAVERSION = NAME = Linux for Workgroups
arch/arc/include/asm/delay.h +2 -3
@@ -53,11 +53,10 @@ static inline void __udelay(unsigned long usecs) {unsigned long loops; -/* (long long) cast ensures 64 bit MPY - real or emulated +/* (u64) cast ensures 64 bit MPY - real or emulated * HZ * 4295 is pre-evaluated by gcc - hence only 2 mpy ops */ - loops = ((long long )(usecs *4295 *HZ ) * - (long long )(loops_per_jiffy)) >>32 ; + loops = ((u64 ) usecs *4295 *HZ * loops_per_jiffy) >>32 ;__delay (loops); }
arch/arc/include/asm/spinlock.h +8 -1
@@ -45,7 +45,14 @@ static inline int arch_spin_trylock(arch_spinlock_t *lock)static inline void arch_spin_unlock (arch_spinlock_t *lock) { - lock->slock = __ARCH_SPIN_LOCK_UNLOCKED__; +unsigned int tmp = __ARCH_SPIN_LOCK_UNLOCKED__; + + __asm__ __volatile__( +" ex %0, [%1] \n" + :"+r" (tmp) + :"r" (&(lock->slock)) + :"memory" ); +smp_mb (); }
arch/arc/include/asm/uaccess.h +2 -2
@@ -43,7 +43,7 @@* Because it essentially checks if buffer end is within limit and @len is * non-ngeative, which implies that buffer start will be within limit too. * -* The reason for rewriting being, for majorit yof cases, @len is generally +* The reason for rewriting being, for majority of cases, @len is generally * compile time constant, causing first sub-expression to be compile time * subsumed. *
@@ -53,7 +53,7 @@* */ #define __user_ok (addr, sz) (((sz) <= TASK_SIZE) && \ - (((addr)+(sz)) <= get_fs())) + ((addr) <= (get_fs() - (sz))))#define __access_ok (addr, sz) (unlikely(__kernel_ok) || \ likely(__user_ok((addr), (sz))))
arch/arc/kernel/ptrace.c +1 -1
@@ -102,7 +102,7 @@ static int genregs_set(struct task_struct *target,REG_IGNORE_ONE (pad2);REG_IN_CHUNK (callee, efa, cregs);/* callee_regs[r25..r13] */ REG_IGNORE_ONE (efa);/* efa update invalid */ -REG_IN_ONE (stop_pc, &ptregs->ret);/* stop_pc: PC update */ +REG_IGNORE_ONE (stop_pc);/* PC updated via @ret */ return ret; }
arch/arc/kernel/signal.c +13 -12
@@ -101,7 +101,6 @@ SYSCALL_DEFINE0(rt_sigreturn) {struct rt_sigframe __user *sf;unsigned int magic; -int err;struct pt_regs *regs =current_pt_regs ();/* Always make any pending restarted system calls return -EINTR */
@@ -119,15 +118,16 @@ SYSCALL_DEFINE0(rt_sigreturn)if (!access_ok (VERIFY_READ , sf,sizeof (*sf))) goto badframe; - err =restore_usr_regs (regs, sf); - err |=__get_user (magic, &sf->sigret_magic); -if (err) +if (__get_user (magic, &sf->sigret_magic)) goto badframe;if (unlikely (is_do_ss_needed (magic)))if (restore_altstack (&sf->uc.uc_stack)) goto badframe; +if (restore_usr_regs (regs, sf)) + goto badframe; +/* Don't restart from sigreturn */ syscall_wont_restart (regs);
@@ -191,6 +191,15 @@ setup_rt_frame(int signo, struct k_sigaction *ka, siginfo_t *info,return 1 ;/* +* w/o SA_SIGINFO, struct ucontext is partially populated (only +* uc_mcontext/uc_sigmask) for kernel's normal user state preservation +* during signal handler execution. This works for SA_SIGINFO as well +* although the semantics are now overloaded (the same reg state can be +* inspected by userland: but are they allowed to fiddle with it ? +*/ + err |=stash_usr_regs (sf, regs, set); + +/* * SA_SIGINFO requires 3 args to signal handler: * #1: sig-no (common to any handler) * #2: struct siginfo
@@ -213,14 +222,6 @@ setup_rt_frame(int signo, struct k_sigaction *ka, siginfo_t *info, magic =MAGIC_SIGALTSTK ; } -/* -* w/o SA_SIGINFO, struct ucontext is partially populated (only -* uc_mcontext/uc_sigmask) for kernel's normal user state preservation -* during signal handler execution. This works for SA_SIGINFO as well -* although the semantics are now overloaded (the same reg state can be -* inspected by userland: but are they allowed to fiddle with it ? -*/ - err |=stash_usr_regs (sf, regs, set); err |=__put_user (magic, &sf->sigret_magic);if (err)return err;
arch/arc/kernel/unaligned.c +6 -0
@@ -233,6 +233,12 @@ int misaligned_fixup(unsigned long address, struct pt_regs *regs, regs->status32 &= ~STATUS_DE_MASK ; }else { regs->ret += state.instr_len; + +/* handle zero-overhead-loop */ +if ((regs->ret == regs->lp_end) && (regs->lp_count)) { + regs->ret = regs->lp_start; + regs->lp_count--; + } }return 0 ;
arch/arm/include/asm/jump_label.h +1 -1
@@ -16,7 +16,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("1:\n\t" +asm_volatile_goto ("1:\n\t" JUMP_LABEL_NOP "\n\t" ".pushsection __jump_table, \"aw\"\n\t" ".word 1b, %l[l_yes], %c0\n\t"
arch/mips/include/asm/jump_label.h +1 -1
@@ -22,7 +22,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("1:\tnop\n\t" +asm_volatile_goto ("1:\tnop\n\t" "nop\n\t" ".pushsection __jump_table, \"aw\"\n\t" WORD_INSN " 1b, %l[l_yes], %0\n\t"
arch/mips/kernel/octeon_switch.S +1 -1
@@ -73,7 +73,7 @@ 3: #if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP) - PTR_L t8, __stack_chk_guard + PTR_LA t8, __stack_chk_guard LONG_L t9, TASK_STACK_CANARY(a1) LONG_S t9, 0(t8) #endif
arch/mips/kernel/r2300_switch.S +1 -1
@@ -67,7 +67,7 @@ LEAF(resume) 1: #if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP) - PTR_L t8, __stack_chk_guard + PTR_LA t8, __stack_chk_guard LONG_L t9, TASK_STACK_CANARY(a1) LONG_S t9, 0(t8) #endif
arch/mips/kernel/r4k_switch.S +1 -1
@@ -69,7 +69,7 @@ 1: #if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP) - PTR_L t8, __stack_chk_guard + PTR_LA t8, __stack_chk_guard LONG_L t9, TASK_STACK_CANARY(a1) LONG_S t9, 0(t8) #endif
arch/parisc/kernel/traps.c +3 -3
@@ -805,14 +805,14 @@ void notrace handle_interruption(int code, struct pt_regs *regs)else {/* -* The kernel should never fault on its own address space. +* The kernel should never fault on its own address space, +* unless pagefault_disable() was called before. */ -if (fault_space ==0 ) +if (fault_space ==0 && !in_atomic ()) {pdc_chassis_send_status (PDC_CHASSIS_DIRECT_PANIC );parisc_terminate ("Kernel Fault" , regs, code, fault_address); - } }
arch/powerpc/include/asm/jump_label.h +1 -1
@@ -19,7 +19,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("1:\n\t" +asm_volatile_goto ("1:\n\t" "nop\n\t" ".pushsection __jump_table, \"aw\"\n\t" JUMP_ENTRY_TYPE "1b, %l[l_yes], %c0\n\t"
arch/powerpc/kvm/book3s_hv_rmhandlers.S +1 -1
@@ -1054,7 +1054,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_206) BEGIN_FTR_SECTION mfspr r8, SPRN_DSCR ld r7, HSTATE_DSCR(r13) - std r8, VCPU_DSCR(r7) + std r8, VCPU_DSCR(r9) mtspr SPRN_DSCR, r7 END_FTR_SECTION_IFSET(CPU_FTR_ARCH_206)
arch/s390/include/asm/jump_label.h +1 -1
@@ -15,7 +15,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("0: brcl 0,0\n" +asm_volatile_goto ("0: brcl 0,0\n" ".pushsection __jump_table, \"aw\"\n" ASM_ALIGN "\n" ASM_PTR " 0b, %l[label], %0\n"
arch/sparc/include/asm/jump_label.h +1 -1
@@ -9,7 +9,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("1:\n\t" +asm_volatile_goto ("1:\n\t" "nop\n\t" "nop\n\t" ".pushsection __jump_table, \"aw\"\n\t"
arch/x86/include/asm/cpufeature.h +3 -3
@@ -373,7 +373,7 @@ static __always_inline __pure bool __static_cpu_has(u16 bit)* Catch too early usage of this before alternatives * have run. */ - asm goto("1: jmp %l[t_warn]\n" +asm_volatile_goto ("1: jmp %l[t_warn]\n" "2:\n" ".section .altinstructions,\"a\"\n" " .long 1b - .\n"
@@ -386,7 +386,7 @@ static __always_inline __pure bool __static_cpu_has(u16 bit) : : "i" (X86_FEATURE_ALWAYS) : : t_warn);#endif - asm goto("1: jmp %l[t_no]\n" +asm_volatile_goto ("1: jmp %l[t_no]\n" "2:\n" ".section .altinstructions,\"a\"\n" " .long 1b - .\n"
@@ -448,7 +448,7 @@ static __always_inline __pure bool _static_cpu_has_safe(u16 bit)* have. Thus, we force the jump to the widest, 4-byte, signed relative * offset even though the last would often fit in less bytes. */ - asm goto("1: .byte 0xe9\n .long %l[t_dynamic] - 2f\n" +asm_volatile_goto ("1: .byte 0xe9\n .long %l[t_dynamic] - 2f\n" "2:\n" ".section .altinstructions,\"a\"\n" " .long 1b - .\n" /* src offset */
arch/x86/include/asm/e820.h +1 -1
@@ -29,7 +29,7 @@ extern void e820_setup_gap(void);extern int e820_search_gap (unsigned long *gapstart,unsigned long *gapsize,unsigned long start_addr,unsigned long long end_addr);struct setup_data ; -extern void parse_e820_ext (struct setup_data *data); +extern void parse_e820_ext (u64 phys_addr,u32 data_len);#if defined(CONFIG_X86_64 ) || \ (defined(CONFIG_X86_32 ) && defined(CONFIG_HIBERNATION ))
arch/x86/include/asm/jump_label.h +1 -1
@@ -13,7 +13,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("1:" +asm_volatile_goto ("1:" STATIC_KEY_INITIAL_NOP ".pushsection __jump_table, \"aw\" \n\t" _ASM_ALIGN "\n\t"
arch/x86/kernel/e820.c +4 -1
@@ -658,15 +658,18 @@ __init void e820_setup_gap(void)* boot_params.e820_map, others are passed via SETUP_E820_EXT node of * linked list of struct setup_data, which is parsed here. */ -void __init parse_e820_ext (struct setup_data *sdata) +void __init parse_e820_ext (u64 phys_addr,u32 data_len) {int entries;struct e820entry *extmap; +struct setup_data *sdata; + sdata =early_memremap (phys_addr, data_len); entries = sdata->len /sizeof (struct e820entry ); extmap = (struct e820entry *)(sdata->data);__append_e820_map (extmap, entries);sanitize_e820_map (e820.map,ARRAY_SIZE (e820.map), &e820.nr_map); +early_iounmap (sdata, data_len);printk (KERN_INFO "e820: extended physical RAM map:\n" );e820_print_map ("extended" ); }
arch/x86/kernel/setup.c +8 -11
@@ -426,25 +426,23 @@ static void __init reserve_initrd(void)static void __init parse_setup_data (void ) {struct setup_data *data; -u64 pa_data; +u64 pa_data, pa_next; pa_data = boot_params.hdr.setup_data;while (pa_data) { -u32 data_len, map_len; +u32 data_len, map_len, data_type; map_len =max (PAGE_SIZE - (pa_data & ~PAGE_MASK ), (u64 )sizeof (struct setup_data )); data =early_memremap (pa_data, map_len); data_len = data->len +sizeof (struct setup_data ); -if (data_len > map_len) { -early_iounmap (data, map_len); - data =early_memremap (pa_data, data_len); - map_len = data_len; - } + data_type = data->type; + pa_next = data->next; +early_iounmap (data, map_len); -switch (data->type) { +switch (data_type) {case SETUP_E820_EXT : -parse_e820_ext (data); +parse_e820_ext (pa_data, data_len);break ;case SETUP_DTB :add_dtb (pa_data);
@@ -452,8 +450,7 @@ static void __init parse_setup_data(void)default :break ; } - pa_data = data->next; -early_iounmap (data, map_len); + pa_data = pa_next; } }
drivers/char/random.c +1 -2
@@ -1462,12 +1462,11 @@ struct ctl_table random_table[] = {static u32 random_int_secret[MD5_MESSAGE_BYTES /4 ]____cacheline_aligned ; -static int __init random_int_secret_init (void ) +int random_int_secret_init (void ) {get_random_bytes (random_int_secret,sizeof (random_int_secret));return 0 ; } -late_initcall (random_int_secret_init);/* * Get a random word for internal kernel use only. Similar to urandom but
drivers/gpu/drm/i915/i915_reg.h +6 -0
@@ -3791,6 +3791,9 @@#define GEN7_SQ_CHICKEN_MBCUNIT_CONFIG 0x9030#define GEN7_SQ_CHICKEN_MBCUNIT_SQINTMOB (1<<11) +#define HSW_SCRATCH1 0xb038 +#define HSW_SCRATCH1_L3_DATA_ATOMICS_DISABLE (1<<27) +#define HSW_FUSE_STRAP 0x42014#define HSW_CDCLK_LIMIT (1 << 24)
@@ -4624,6 +4627,9 @@#define GEN7_ROW_CHICKEN2_GT2 0xf4f4#define DOP_CLOCK_GATING_DISABLE (1<<0) +#define HSW_ROW_CHICKEN3 0xe49c +#define HSW_ROW_CHICKEN3_L3_GLOBAL_ATOMICS_DISABLE (1 << 6) +#define G4X_AUD_VID_DID (dev_priv->info->display_mmio_offset + 0x62020)#define INTEL_AUDIO_DEVCL 0x808629FB#define INTEL_AUDIO_DEVBLC 0x80862801
drivers/gpu/drm/i915/intel_display.c +2 -6
@@ -3890,8 +3890,6 @@ static void intel_connector_check_state(struct intel_connector *connector)* consider. */ void intel_connector_dpms (struct drm_connector *connector,int mode) { -struct intel_encoder *encoder =intel_attached_encoder (connector); -/* All the simple cases only support two dpms states. */ if (mode !=DRM_MODE_DPMS_ON ) mode =DRM_MODE_DPMS_OFF ;
@@ -3902,10 +3900,8 @@ void intel_connector_dpms(struct drm_connector *connector, int mode) connector->dpms = mode;/* Only need to change hw state when actually enabled */ -if (encoder->base.crtc) -intel_encoder_dpms (encoder, mode); -else -WARN_ON (encoder->connectors_active != false); +if (connector->encoder) +intel_encoder_dpms (to_intel_encoder (connector->encoder), mode);intel_modeset_check_state (connector->dev); }
drivers/gpu/drm/i915/intel_pm.c +7 -2
@@ -3603,8 +3603,6 @@ static void valleyview_enable_rps(struct drm_device *dev) dev_priv->rps.rpe_delay), dev_priv->rps.rpe_delay); -INIT_DELAYED_WORK (&dev_priv->rps.vlv_work, vlv_rps_timer_work); -valleyview_set_rps (dev_priv->dev, dev_priv->rps.rpe_delay);/* requires MSI enabled */
@@ -4699,6 +4697,11 @@ static void haswell_init_clock_gating(struct drm_device *dev)I915_WRITE (GEN7_L3_CHICKEN_MODE_REGISTER ,GEN7_WA_L3_CHICKEN_MODE ); +/* L3 caching of data atomics doesn't work -- disable it. */ +I915_WRITE (HSW_SCRATCH1 ,HSW_SCRATCH1_L3_DATA_ATOMICS_DISABLE ); +I915_WRITE (HSW_ROW_CHICKEN3 , +_MASKED_BIT_ENABLE (HSW_ROW_CHICKEN3_L3_GLOBAL_ATOMICS_DISABLE )); +/* This is required by WaCatErrorRejectionIssue:hsw */ I915_WRITE(GEN7_SQ_CHICKEN_MBCUNIT_CONFIG, I915_READ(GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) |
@@ -5562,6 +5565,8 @@ void intel_pm_init(struct drm_device *dev)INIT_DELAYED_WORK (&dev_priv->rps.delayed_resume_work, intel_gen6_powersave_work); + +INIT_DELAYED_WORK (&dev_priv->rps.vlv_work, vlv_rps_timer_work); }int sandybridge_pcode_read (struct drm_i915_private *dev_priv,u8 mbox,u32 *val)
drivers/gpu/drm/radeon/btc_dpm.c +3 -3
@@ -1913,7 +1913,7 @@ static int btc_set_mc_special_registers(struct radeon_device *rdev, } j++; -if (j >SMC_EVERGREEN_MC_REGISTER_ARRAY_SIZE ) +if (j >=SMC_EVERGREEN_MC_REGISTER_ARRAY_SIZE )return -EINVAL ; tmp =RREG32 (MC_PMG_CMD_MRS );
@@ -1928,7 +1928,7 @@ static int btc_set_mc_special_registers(struct radeon_device *rdev, } j++; -if (j >SMC_EVERGREEN_MC_REGISTER_ARRAY_SIZE ) +if (j >=SMC_EVERGREEN_MC_REGISTER_ARRAY_SIZE )return -EINVAL ;break ;case MC_SEQ_RESERVE_M >>2 :
@@ -1942,7 +1942,7 @@ static int btc_set_mc_special_registers(struct radeon_device *rdev, } j++; -if (j >SMC_EVERGREEN_MC_REGISTER_ARRAY_SIZE ) +if (j >=SMC_EVERGREEN_MC_REGISTER_ARRAY_SIZE )return -EINVAL ;break ;default :
drivers/gpu/drm/radeon/evergreen.c +1 -1
@@ -3126,7 +3126,7 @@ static void evergreen_gpu_init(struct radeon_device *rdev) rdev->config.evergreen.sx_max_export_size =256 ; rdev->config.evergreen.sx_max_export_pos_size =64 ; rdev->config.evergreen.sx_max_export_smx_size =192 ; - rdev->config.evergreen.max_hw_contexts =8 ; + rdev->config.evergreen.max_hw_contexts =4 ; rdev->config.evergreen.sq_num_cf_insts =2 ; rdev->config.evergreen.sc_prim_fifo_size =0x40 ;
drivers/gpu/drm/radeon/evergreend.h +2 -2
@@ -1494,7 +1494,7 @@* 6. COMMAND [29:22] | BYTE_COUNT [20:0] */ # define PACKET3_CP_DMA_DST_SEL (x) ((x) << 20) -/* 0 - SRC_ADDR +/* 0 - DST_ADDR * 1 - GDS */ # define PACKET3_CP_DMA_ENGINE (x) ((x) << 27)
@@ -1509,7 +1509,7 @@# define PACKET3_CP_DMA_CP_SYNC (1 << 31)/* COMMAND */ # define PACKET3_CP_DMA_DIS_WC (1 << 21) -# define PACKET3_CP_DMA_CMD_SRC_SWAP (x) ((x) << 23) +# define PACKET3_CP_DMA_CMD_SRC_SWAP (x) ((x) << 22)/* 0 - none * 1 - 8 in 16 * 2 - 8 in 32
drivers/gpu/drm/radeon/r600d.h +1 -1
@@ -1487,7 +1487,7 @@*/ # define PACKET3_CP_DMA_CP_SYNC (1 << 31)/* COMMAND */ -# define PACKET3_CP_DMA_CMD_SRC_SWAP (x) ((x) << 23) +# define PACKET3_CP_DMA_CMD_SRC_SWAP (x) ((x) << 22)/* 0 - none * 1 - 8 in 16 * 2 - 8 in 32
drivers/gpu/drm/radeon/radeon_test.c +2 -2
@@ -36,8 +36,8 @@ static void radeon_do_test_moves(struct radeon_device *rdev, int flag)struct radeon_bo *vram_obj =NULL ;struct radeon_bo **gtt_obj =NULL ;uint64_t gtt_addr, vram_addr; -unsigned i, n, size; -int r, ring; +unsigned n, size; +int i, r, ring;switch (flag) {case RADEON_TEST_COPY_DMA :
drivers/gpu/drm/radeon/si_dpm.c +3 -3
@@ -5174,7 +5174,7 @@ static int si_set_mc_special_registers(struct radeon_device *rdev, table->mc_reg_table_entry[k].mc_data[j] |=0x100 ; } j++; -if (j >SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE ) +if (j >=SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE )return -EINVAL ;if (!pi->mem_gddr5) {
@@ -5184,7 +5184,7 @@ static int si_set_mc_special_registers(struct radeon_device *rdev, table->mc_reg_table_entry[k].mc_data[j] = (table->mc_reg_table_entry[k].mc_data[i] &0xffff0000 ) >>16 ; j++; -if (j >SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE ) +if (j >=SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE )return -EINVAL ; }break ;
@@ -5197,7 +5197,7 @@ static int si_set_mc_special_registers(struct radeon_device *rdev, (temp_reg &0xffff0000 ) | (table->mc_reg_table_entry[k].mc_data[i] &0x0000ffff ); j++; -if (j >SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE ) +if (j >=SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE )return -EINVAL ;break ;default :
drivers/gpu/drm/radeon/sid.h +2 -2
@@ -1490,7 +1490,7 @@* 6. COMMAND [30:21] | BYTE_COUNT [20:0] */ # define PACKET3_CP_DMA_DST_SEL (x) ((x) << 20) -/* 0 - SRC_ADDR +/* 0 - DST_ADDR * 1 - GDS */ # define PACKET3_CP_DMA_ENGINE (x) ((x) << 27)
@@ -1505,7 +1505,7 @@# define PACKET3_CP_DMA_CP_SYNC (1 << 31)/* COMMAND */ # define PACKET3_CP_DMA_DIS_WC (1 << 21) -# define PACKET3_CP_DMA_CMD_SRC_SWAP (x) ((x) << 23) +# define PACKET3_CP_DMA_CMD_SRC_SWAP (x) ((x) << 22)/* 0 - none * 1 - 8 in 16 * 2 - 8 in 32
drivers/hwmon/applesmc.c +13 -0
@@ -230,6 +230,7 @@ static int send_argument(const char *key)static int read_smc (u8 cmd,const char *key,u8 *buffer,u8 len) { +u8 status, data =0 ;int i;if (send_command (cmd) ||send_argument (key)) {
@@ -237,6 +238,7 @@ static int read_smc(u8 cmd, const char *key, u8 *buffer, u8 len)return -EIO ; } +/* This has no effect on newer (2012) SMCs */ if (send_byte (len,APPLESMC_DATA_PORT )) {pr_warn ("%.4s: read len fail\n" , key);return -EIO ;
@@ -250,6 +252,17 @@ static int read_smc(u8 cmd, const char *key, u8 *buffer, u8 len) buffer[i] =inb (APPLESMC_DATA_PORT ); } +/* Read the data port until bit0 is cleared */ +for (i =0 ; i <16 ; i++) { +udelay (APPLESMC_MIN_WAIT ); + status =inb (APPLESMC_CMD_PORT ); +if (!(status &0x01 )) +break ; + data =inb (APPLESMC_DATA_PORT ); + } +if (i) +pr_warn ("flushed %d bytes, last value is: %d\n" , i, data); +return 0 ; }
drivers/i2c/busses/i2c-omap.c +3 -0
@@ -944,6 +944,9 @@ omap_i2c_isr_thread(int this_irq, void *dev_id)/* * ProDB0017052: Clear ARDY bit twice */ +if (stat &OMAP_I2C_STAT_ARDY ) +omap_i2c_ack_stat (dev,OMAP_I2C_STAT_ARDY ); +if (stat & (OMAP_I2C_STAT_ARDY |OMAP_I2C_STAT_NACK |OMAP_I2C_STAT_AL )) { omap_i2c_ack_stat(dev, (OMAP_I2C_STAT_RRDY |
drivers/watchdog/kempld_wdt.c +1 -1
@@ -35,7 +35,7 @@#define KEMPLD_WDT_STAGE_TIMEOUT (x) (0x1b + (x) * 4)#define KEMPLD_WDT_STAGE_CFG (x) (0x18 + (x))#define STAGE_CFG_GET_PRESCALER (x) (((x) & 0x30) >> 4) -#define STAGE_CFG_SET_PRESCALER (x) (((x) & 0x30) << 4) +#define STAGE_CFG_SET_PRESCALER (x) (((x) & 0x3) << 4)#define STAGE_CFG_PRESCALER_MASK 0x30#define STAGE_CFG_ACTION_MASK 0x7#define STAGE_CFG_ASSERT (1 << 3)
drivers/watchdog/ts72xx_wdt.c +2 -1
@@ -310,7 +310,8 @@ static long ts72xx_wdt_ioctl(struct file *file, unsigned int cmd,case WDIOC_GETSTATUS :case WDIOC_GETBOOTSTATUS : -return put_user (0 , p); + error =put_user (0 , p); +break ;case WDIOC_KEEPALIVE :ts72xx_wdt_kick (wdt);
fs/btrfs/inode.c +1 -1
@@ -8036,7 +8036,7 @@ static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry,/* check for collisions, even if the name isn't there */ - ret =btrfs_check_dir_item_collision (root, new_dir->i_ino, + ret =btrfs_check_dir_item_collision (dest, new_dir->i_ino, new_dentry->d_name.name, new_dentry->d_name.len);
fs/ext4/xattr.c +2 -0
@@ -1350,6 +1350,8 @@ retry: s_min_extra_isize) { tried_min_extra_isize++; new_extra_isize = s_min_extra_isize; +kfree (is); is =NULL ; +kfree (bs); bs =NULL ; goto retry; } error =-1 ;
fs/statfs.c +1 -1
@@ -94,7 +94,7 @@ retry:int fd_statfs (int fd,struct kstatfs *st) { -struct fd f =fdget (fd); +struct fd f =fdget_raw (fd);int error = -EBADF ;if (f.file) { error =vfs_statfs (&f.file->f_path, st);
include/linux/compiler-gcc4.h +15 -0
@@ -65,6 +65,21 @@#define __visible __attribute__((externally_visible))#endif +/* +* GCC 'asm goto' miscompiles certain code sequences: +* +* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670 +* +* Work it around via a compiler barrier quirk suggested by Jakub Jelinek. +* Fixed in GCC 4.8.2 and later versions. +* +* (asm goto is automatically volatile - the naming reflects this.) +*/ +#if GCC_VERSION <=40801 +# define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) +#else +# define asm_volatile_goto(x...) do { asm goto(x); } while (0) +#endif #ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP #if GCC_VERSION >=40400
include/linux/ipc_namespace.h +1 -1
@@ -22,7 +22,7 @@ struct ipc_ids {int in_use;unsigned short seq;unsigned short seq_max; -struct rw_semaphore rw_mutex; +struct rw_semaphore rwsem;struct idr ipcs_idr;int next_id; };
include/linux/random.h +1 -0
@@ -17,6 +17,7 @@ extern void add_interrupt_randomness(int irq, int irq_flags);extern void get_random_bytes (void *buf,int nbytes);extern void get_random_bytes_arch (void *buf,int nbytes);void generate_random_uuid (unsigned char uuid_out[16 ]); +extern int random_int_secret_init (void );#ifndef MODULE extern const struct file_operations random_fops, urandom_fops;
init/main.c +2 -0
@@ -75,6 +75,7 @@#include <linux/blkdev.h> #include <linux/elevator.h> #include <linux/sched_clock.h> +#include <linux/random.h> #include <asm/io.h> #include <asm/bugs.h>
@@ -778,6 +779,7 @@ static void __init do_basic_setup(void)do_ctors ();usermodehelper_enable ();do_initcalls (); +random_int_secret_init (); }static void __init do_pre_smp_initcalls (void )
ipc/msg.c +12 -13
@@ -70,8 +70,6 @@ struct msg_sender {#define msg_ids (ns) ((ns)->ids[IPC_MSG_IDS]) -#define msg_unlock (msq) ipc_unlock(&(msq)->q_perm) -static void freeque (struct ipc_namespace *,struct kern_ipc_perm *);static int newque (struct ipc_namespace *,struct ipc_params *);#ifdef CONFIG_PROC_FS
@@ -181,7 +179,7 @@ static void msg_rcu_free(struct rcu_head *head)* @ns: namespace * @params: ptr to the structure that contains the key and msgflg * -* Called with msg_ids.rw_mutex held (writer) +* Called with msg_ids.rwsem held (writer) */ static int newque (struct ipc_namespace *ns,struct ipc_params *params) {
@@ -267,8 +265,8 @@ static void expunge_all(struct msg_queue *msq, int res)* removes the message queue from message queue ID IDR, and cleans up all the * messages associated with this queue. * -* msg_ids.rw_mutex (writer) and the spinlock for this message queue are held -* before freeque() is called. msg_ids.rw_mutex remains locked on exit. +* msg_ids.rwsem (writer) and the spinlock for this message queue are held +* before freeque() is called. msg_ids.rwsem remains locked on exit. */ static void freeque (struct ipc_namespace *ns,struct kern_ipc_perm *ipcp) {
@@ -278,7 +276,8 @@ static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp)expunge_all (msq, -EIDRM );ss_wakeup (&msq->q_senders,1 );msg_rmid (ns, msq); -msg_unlock (msq); +ipc_unlock_object (&msq->q_perm); +rcu_read_unlock ();list_for_each_entry_safe (msg, t, &msq->q_messages, m_list) {atomic_dec (&ns->msg_hdrs);
@@ -289,7 +288,7 @@ static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) }/* -* Called with msg_ids.rw_mutex and ipcp locked. +* Called with msg_ids.rwsem and ipcp locked. */ static inline int msg_security (struct kern_ipc_perm *ipcp,int msgflg) {
@@ -393,9 +392,9 @@ copy_msqid_from_user(struct msqid64_ds *out, void __user *buf, int version) }/* -* This function handles some msgctl commands which require the rw_mutex +* This function handles some msgctl commands which require the rwsem * to be held in write mode. -* NOTE: no locks must be held, the rw_mutex is taken inside this function. +* NOTE: no locks must be held, the rwsem is taken inside this function. */ static int msgctl_down (struct ipc_namespace *ns,int msqid,int cmd,struct msqid_ds __user *buf,int version)
@@ -410,7 +409,7 @@ static int msgctl_down(struct ipc_namespace *ns, int msqid, int cmd,return -EFAULT ; } -down_write (&msg_ids (ns).rw_mutex); +down_write (&msg_ids (ns).rwsem);rcu_read_lock (); ipcp = ipcctl_pre_down_nolock(ns, &msg_ids(ns), msqid, cmd,
@@ -466,7 +465,7 @@ out_unlock0: out_unlock1:rcu_read_unlock (); out_up: -up_write (&msg_ids (ns).rw_mutex); +up_write (&msg_ids (ns).rwsem);return err; }
@@ -501,7 +500,7 @@ static int msgctl_nolock(struct ipc_namespace *ns, int msqid, msginfo.msgmnb = ns->msg_ctlmnb; msginfo.msgssz =MSGSSZ ; msginfo.msgseg =MSGSEG ; -down_read (&msg_ids (ns).rw_mutex); +down_read (&msg_ids (ns).rwsem);if (cmd ==MSG_INFO ) { msginfo.msgpool =msg_ids (ns).in_use; msginfo.msgmap =atomic_read (&ns->msg_hdrs);
@@ -512,7 +511,7 @@ static int msgctl_nolock(struct ipc_namespace *ns, int msqid, msginfo.msgtql =MSGTQL ; } max_id =ipc_get_maxid (&msg_ids (ns)); -up_read (&msg_ids (ns).rw_mutex); +up_read (&msg_ids (ns).rwsem);if (copy_to_user (buf, &msginfo,sizeof (struct msginfo )))return -EFAULT ;return (max_id <0 ) ?0 : max_id;
ipc/namespace.c +4 -3
@@ -81,7 +81,7 @@ void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids,int next_id;int total, in_use; -down_write (&ids->rw_mutex); +down_write (&ids->rwsem); in_use = ids->in_use;
@@ -89,11 +89,12 @@ void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, perm =idr_find (&ids->ipcs_idr, next_id);if (perm ==NULL )continue ; -ipc_lock_by_ptr (perm); +rcu_read_lock (); +ipc_lock_object (perm);free (ns, perm); total++; } -up_write (&ids->rw_mutex); +up_write (&ids->rwsem); }static void free_ipc_ns (struct ipc_namespace *ns)
ipc/sem.c +57 -25
183 lines not on this page · raw message
ipc/shm.c +148 -107
562 lines not on this page · raw message
ipc/util.c +30 -52
194 lines not on this page · raw message
ipc/util.h +2 -12
@@ -101,10 +101,10 @@ void __init ipc_init_proc_interface(const char *path, const char *header,#define ipcid_to_idx (id) ((id) % SEQ_MULTIPLIER)#define ipcid_to_seqx (id) ((id) / SEQ_MULTIPLIER) -/* must be called with ids->rw_mutex acquired for writing */ +/* must be called with ids->rwsem acquired for writing */ int ipc_addid (struct ipc_ids *,struct kern_ipc_perm *,int ); -/* must be called with ids->rw_mutex acquired for reading */ +/* must be called with ids->rwsem acquired for reading */ int ipc_get_maxid (struct ipc_ids *);/* must be called with both locks acquired. */
@@ -139,9 +139,6 @@ int ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out);struct kern_ipc_perm *ipcctl_pre_down_nolock (struct ipc_namespace *ns,struct ipc_ids *ids,int id,int cmd,struct ipc64_perm *perm,int extra_perm); -struct kern_ipc_perm *ipcctl_pre_down (struct ipc_namespace *ns, -struct ipc_ids *ids,int id,int cmd, -struct ipc64_perm *perm,int extra_perm);#ifndef CONFIG_ARCH_WANT_IPC_PARSE_VERSION /* On IA-64, we always use the "64-bit version" of the IPC structures. */
@@ -182,19 +179,12 @@ static inline void ipc_assert_locked_object(struct kern_ipc_perm *perm)assert_spin_locked (&perm->lock); } -static inline void ipc_lock_by_ptr (struct kern_ipc_perm *perm) -{ -rcu_read_lock (); -ipc_lock_object (perm); -} -static inline void ipc_unlock (struct kern_ipc_perm *perm) {ipc_unlock_object (perm);rcu_read_unlock (); } -struct kern_ipc_perm *ipc_lock_check (struct ipc_ids *ids,int id);struct kern_ipc_perm *ipc_obtain_object_check (struct ipc_ids *ids,int id);int ipcget (struct ipc_namespace *ns,struct ipc_ids *ids,struct ipc_ops *ops,struct ipc_params *params);
sound/pci/hda/patch_hdmi.c +8 -10
@@ -930,6 +930,14 @@ static void hdmi_setup_audio_infoframe(struct hda_codec *codec, }/* +* always configure channel mapping, it may have been changed by the +* user in the meantime +*/ +hdmi_setup_channel_mapping (codec, pin_nid, non_pcm, ca, + channels, per_pin->chmap, + per_pin->chmap_set); + +/* * sizeof(ai) is used instead of sizeof(*hdmi_ai) or * sizeof(*dp_ai) to avoid partial match/update problems when * the user switches between HDMI/DP monitors.
@@ -940,20 +948,10 @@ static void hdmi_setup_audio_infoframe(struct hda_codec *codec,"pin=%d channels=%d\n" , pin_nid, channels); -hdmi_setup_channel_mapping (codec, pin_nid, non_pcm, ca, - channels, per_pin->chmap, - per_pin->chmap_set);hdmi_stop_infoframe_trans (codec, pin_nid);hdmi_fill_audio_infoframe (codec, pin_nid, ai.bytes,sizeof (ai));hdmi_start_infoframe_trans (codec, pin_nid); - }else { -/* For non-pcm audio switch, setup new channel mapping -* accordingly */ -if (per_pin->non_pcm != non_pcm) -hdmi_setup_channel_mapping (codec, pin_nid, non_pcm, ca, - channels, per_pin->chmap, - per_pin->chmap_set); } per_pin->non_pcm = non_pcm;
sound/pci/hda/patch_realtek.c +37 -0
@@ -3308,6 +3308,15 @@ static void alc269_fixup_limit_int_mic_boost(struct hda_codec *codec, } } +static void alc290_fixup_mono_speakers (struct hda_codec *codec, +const struct hda_fixup *fix,int action) +{ +if (action ==HDA_FIXUP_ACT_PRE_PROBE ) +/* Remove DAC node 0x03, as it seems to be +giving mono output */ +snd_hda_override_wcaps (codec,0x03 ,0 ); +} +enum {ALC269_FIXUP_SONY_VAIO ,ALC275_FIXUP_SONY_VAIO_GPIO2 ,
@@ -3331,9 +3340,12 @@ enum {ALC269_FIXUP_HP_GPIO_LED ,ALC269_FIXUP_INV_DMIC ,ALC269_FIXUP_LENOVO_DOCK , +ALC286_FIXUP_SONY_MIC_NO_PRESENCE ,ALC269_FIXUP_PINCFG_NO_HP_TO_LINEOUT ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ,ALC269_FIXUP_DELL2_MIC_NO_PRESENCE , +ALC269_FIXUP_DELL3_MIC_NO_PRESENCE , +ALC290_FIXUP_MONO_SPEAKERS ,ALC269_FIXUP_HEADSET_MODE ,ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC , ALC269_FIXUP_ASUS_X101_FUNC,
@@ -3521,6 +3533,15 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id =ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC }, + [ALC269_FIXUP_DELL3_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl []) { + {0x1a ,0x01a1913c },/* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id =ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC + }, [ALC269_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode,
@@ -3529,6 +3550,13 @@ static const struct hda_fixup alc269_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode_no_hp_mic, }, + [ALC286_FIXUP_SONY_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl []) { + {0x18 ,0x01a1913c },/* use as headset mic, without its own jack detect */ + { } + }, + }, [ALC269_FIXUP_ASUS_X101_FUNC] = { .type = HDA_FIXUP_FUNC, .v.func = alc269_fixup_x101_headset_mic,
@@ -3595,6 +3623,12 @@ static const struct hda_fixup alc269_fixups[] = { { } }, }, + [ALC290_FIXUP_MONO_SPEAKERS ] = { + .type =HDA_FIXUP_FUNC , + .v.func = alc290_fixup_mono_speakers, + .chained = true, + .chain_id =ALC269_FIXUP_DELL3_MIC_NO_PRESENCE , + }, };static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -3631,6 +3665,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x1028 ,0x0608 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x1028 ,0x0609 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x1028 ,0x0613 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ), +SND_PCI_QUIRK (0x1028 ,0x0616 ,"Dell Vostro 5470" ,ALC290_FIXUP_MONO_SPEAKERS ),SND_PCI_QUIRK (0x1028 ,0x15cc ,"Dell X5 Precision" ,ALC269_FIXUP_DELL2_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x1028 ,0x15cd ,"Dell X5 Precision" ,ALC269_FIXUP_DELL2_MIC_NO_PRESENCE ), SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2),
@@ -3651,6 +3686,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x1043 ,0x8398 ,"ASUS P1005" ,ALC269_FIXUP_STEREO_DMIC ),SND_PCI_QUIRK (0x1043 ,0x83ce ,"ASUS P1005" ,ALC269_FIXUP_STEREO_DMIC ),SND_PCI_QUIRK (0x1043 ,0x8516 ,"ASUS X101CH" ,ALC269_FIXUP_ASUS_X101 ), +SND_PCI_QUIRK (0x104d ,0x90b6 ,"Sony VAIO Pro 13" ,ALC286_FIXUP_SONY_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x104d ,0x9073 ,"Sony VAIO" ,ALC275_FIXUP_SONY_VAIO_GPIO2 ),SND_PCI_QUIRK (0x104d ,0x907b ,"Sony VAIO" ,ALC275_FIXUP_SONY_HWEQ ), SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
@@ -4345,6 +4381,7 @@ static const struct snd_pci_quirk alc662_fixup_tbl[] = {SND_PCI_QUIRK (0x1028 ,0x05d8 ,"Dell" ,ALC668_FIXUP_DELL_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x1028 ,0x05db ,"Dell" ,ALC668_FIXUP_DELL_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x103c ,0x1632 ,"HP RP5800" ,ALC662_FIXUP_HP_RP5800 ), +SND_PCI_QUIRK (0x1043 ,0x1477 ,"ASUS N56VZ" ,ALC662_FIXUP_ASUS_MODE4 ),SND_PCI_QUIRK (0x1043 ,0x8469 ,"ASUS mobo" ,ALC662_FIXUP_NO_JACK_DETECT ),SND_PCI_QUIRK (0x105b ,0x0cd6 ,"Foxconn" ,ALC662_FIXUP_ASUS_MODE2 ), SND_PCI_QUIRK(0x144d, 0xc051, "Samsung R720", ALC662_FIXUP_IDEAPAD),
sound/usb/usx2y/usbusx2yaudio.c +3 -19
@@ -299,19 +299,6 @@ static void usX2Y_error_urb_status(struct usX2Ydev *usX2Y,usX2Y_clients_stop (usX2Y); } -static void usX2Y_error_sequence (struct usX2Ydev *usX2Y, -struct snd_usX2Y_substream *subs,struct urb *urb) -{ -snd_printk (KERN_ERR -"Sequence Error!(hcd_frame=%i ep=%i%s;wait=%i,frame=%i).\n" -"Most probably some urb of usb-frame %i is still missing.\n" -"Cause could be too long delays in usb-hcd interrupt handling.\n" , -usb_get_current_frame_number (usX2Y->dev), - subs->endpoint,usb_pipein (urb->pipe) ?"in" :"out" , - usX2Y->wait_iso_frame, urb->start_frame, usX2Y->wait_iso_frame); -usX2Y_clients_stop (usX2Y); -} -static void i_usX2Y_urb_complete (struct urb *urb) {struct snd_usX2Y_substream *subs = urb->context;
@@ -328,12 +315,9 @@ static void i_usX2Y_urb_complete(struct urb *urb)usX2Y_error_urb_status (usX2Y, subs, urb);return ; } -if (likely ((urb->start_frame &0xFFFF ) == (usX2Y->wait_iso_frame &0xFFFF ))) - subs->completed_urb = urb; -else { -usX2Y_error_sequence (usX2Y, subs, urb); -return ; - } + + subs->completed_urb = urb; + {struct snd_usX2Y_substream *capsubs = usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE ], *playbacksubs = usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK ];
sound/usb/usx2y/usx2yhwdeppcm.c +1 -6
@@ -244,13 +244,8 @@ static void i_usX2Y_usbpcm_urb_complete(struct urb *urb)usX2Y_error_urb_status (usX2Y, subs, urb);return ; } -if (likely ((urb->start_frame &0xFFFF ) == (usX2Y->wait_iso_frame &0xFFFF ))) - subs->completed_urb = urb; -else { -usX2Y_error_sequence (usX2Y, subs, urb); -return ; - } + subs->completed_urb = urb; capsubs = usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE ]; capsubs2 = usX2Y->subs[SNDRV_PCM_STREAM_CAPTURE +2 ]; playbacksubs = usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK ];