Linux 3.0.74
Greg KH
maintainerI'm announcing the release of the 3.0.74 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.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/x86/include/asm/paravirt.h | 5 - arch/x86/include/asm/paravirt_types.h | 2 arch/x86/kernel/paravirt.c | 25 ++--- arch/x86/lguest/boot.c | 1 arch/x86/mm/fault.c | 6 - arch/x86/mm/numa_32.c | 161 ---------------------------------- arch/x86/xen/mmu.c | 1 drivers/mtd/mtdchar.c | 56 ++++++++++- drivers/net/r8169.c | 30 +++++- drivers/target/target_core_alua.c | 3 kernel/sched_clock.c | 26 +++++ kernel/sys.c | 3 kernel/trace/ftrace.c | 1 sound/soc/codecs/wm8903.c | 2 sound/usb/mixer_quirks.c | 4 sound/usb/quirks.c | 2 17 files changed, 136 insertions(+), 194 deletions(-)
Alban Bedel (1):
ASoC: wm8903: Fix the bypass to HP/LINEOUT when no DAC or ADC is running
Boris Ostrovsky (1):
x86, mm: Patch out arch_flush_lazy_mmu_mode() when running on bare metal
Dave Hansen (1):
x86-32, mm: Rip out x86_32 NUMA remapping code
David Woodhouse (1):
mtd: Disable mtdchar mmap on MMU systems
Eldad Zack (1):
ALSA: usb-audio: fix endianness bug in snd_nativeinstruments_*
Greg Kroah-Hartman (1):
Linux 3.0.74
Hayes Wang (1):
r8169: fix auto speed down issue
Huacai Chen (1):
PM / reboot: call syscore_shutdown() after disable_nonboot_cpus()
Linus Torvalds (1):
mtdchar: fix offset overflow detection
Namhyung Kim (1):
tracing: Fix double free when function profile init failed
Nicholas Bellinger (1):
target: Fix incorrect fallthrough of ALUA Standby/Offline/Transition CDBs
Samu Kallio (1):
x86, mm, paravirt: Fix vmalloc_fault oops during lazy MMU updates
Thomas Gleixner (1):
sched_clock: Prevent 64bit inatomicity on 32bit systems
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 73 +SUBLEVEL = 74 EXTRAVERSION = NAME = Sneaky Weasel
arch/x86/include/asm/paravirt.h +4 -1
@@ -731,7 +731,10 @@ static inline void arch_leave_lazy_mmu_mode(void)PVOP_VCALL0 (pv_mmu_ops.lazy_mode.leave); } -void arch_flush_lazy_mmu_mode (void ); +static inline void arch_flush_lazy_mmu_mode (void ) +{ +PVOP_VCALL0 (pv_mmu_ops.lazy_mode.flush); +}static inline void __set_fixmap (unsigned /* enum fixed_addresses */ idx,phys_addr_t phys,pgprot_t flags)
arch/x86/include/asm/paravirt_types.h +2 -0
@@ -85,6 +85,7 @@ struct pv_lazy_ops {/* Set deferred update mode, used for batching operations. */ void (*enter)(void );void (*leave)(void ); +void (*flush)(void ); };struct pv_time_ops {
@@ -673,6 +674,7 @@ void paravirt_end_context_switch(struct task_struct *next);void paravirt_enter_lazy_mmu (void );void paravirt_leave_lazy_mmu (void ); +void paravirt_flush_lazy_mmu (void );void _paravirt_nop (void );u32 _paravirt_ident_32 (u32 );
arch/x86/kernel/paravirt.c +13 -12
@@ -253,6 +253,18 @@ void paravirt_leave_lazy_mmu(void)leave_lazy (PARAVIRT_LAZY_MMU ); } +void paravirt_flush_lazy_mmu (void ) +{ +preempt_disable (); + +if (paravirt_get_lazy_mode () ==PARAVIRT_LAZY_MMU ) { +arch_leave_lazy_mmu_mode (); +arch_enter_lazy_mmu_mode (); + } + +preempt_enable (); +} +void paravirt_start_context_switch (struct task_struct *prev) {BUG_ON (preemptible ());
@@ -282,18 +294,6 @@ enum paravirt_lazy_mode paravirt_get_lazy_mode(void)return percpu_read (paravirt_lazy_mode); } -void arch_flush_lazy_mmu_mode (void ) -{ -preempt_disable (); - -if (paravirt_get_lazy_mode () ==PARAVIRT_LAZY_MMU ) { -arch_leave_lazy_mmu_mode (); -arch_enter_lazy_mmu_mode (); - } - -preempt_enable (); -} -struct pv_info pv_info = { .name ="bare hardware" , .paravirt_enabled =0 ,
@@ -462,6 +462,7 @@ struct pv_mmu_ops pv_mmu_ops = { .lazy_mode = { .enter = paravirt_nop, .leave = paravirt_nop, + .flush = paravirt_nop, }, .set_fixmap = native_set_fixmap,
arch/x86/lguest/boot.c +1 -0
@@ -1309,6 +1309,7 @@ __init void lguest_init(void) pv_mmu_ops.read_cr3 = lguest_read_cr3; pv_mmu_ops.lazy_mode.enter = paravirt_enter_lazy_mmu; pv_mmu_ops.lazy_mode.leave = lguest_leave_lazy_mmu_mode; + pv_mmu_ops.lazy_mode.flush = paravirt_flush_lazy_mmu; pv_mmu_ops.pte_update = lguest_pte_update; pv_mmu_ops.pte_update_defer = lguest_pte_update;
arch/x86/mm/fault.c +4 -2
@@ -376,10 +376,12 @@ static noinline __kprobes int vmalloc_fault(unsigned long address)if (pgd_none (*pgd_ref))return -1 ; -if (pgd_none (*pgd)) +if (pgd_none (*pgd)) {set_pgd (pgd, *pgd_ref); -else +arch_flush_lazy_mmu_mode (); + }else {BUG_ON (pgd_page_vaddr (*pgd) !=pgd_page_vaddr (*pgd_ref)); + }/* * Below here mismatches are bugs because these lower tables
arch/x86/mm/numa_32.c +0 -161
167 lines not on this page · raw message
arch/x86/xen/mmu.c +1 -0
@@ -2011,6 +2011,7 @@ static const struct pv_mmu_ops xen_mmu_ops __initconst = { .lazy_mode = { .enter = paravirt_enter_lazy_mmu, .leave = xen_leave_lazy_mmu, + .flush = paravirt_flush_lazy_mmu, }, .set_fixmap = xen_set_fixmap,
drivers/mtd/mtdchar.c +48 -8
74 lines not on this page · raw message
drivers/net/r8169.c +26 -4
@@ -3105,11 +3105,34 @@ static void r810x_phy_power_up(struct rtl8169_private *tp)rtl_writephy (tp,MII_BMCR ,BMCR_ANENABLE ); } +static void rtl_speed_down (struct rtl8169_private *tp) +{ +u32 adv; +int lpa; + +rtl_writephy (tp,0x1f ,0x0000 ); + lpa =rtl_readphy (tp,MII_LPA ); + +if (lpa & (LPA_10HALF |LPA_10FULL )) + adv = ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full; +else if (lpa & (LPA_100HALF |LPA_100FULL )) + adv = ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full | + ADVERTISED_100baseT_Half | ADVERTISED_100baseT_Full; +else + adv = ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full | + ADVERTISED_100baseT_Half | ADVERTISED_100baseT_Full | + (tp->mii.supports_gmii ? + ADVERTISED_1000baseT_Half | + ADVERTISED_1000baseT_Full :0 ); + +rtl8169_set_speed (tp->dev,AUTONEG_ENABLE ,SPEED_1000 ,DUPLEX_FULL , + adv); +} +static void r810x_pll_power_down (struct rtl8169_private *tp) {if (__rtl8169_get_wol (tp) &WAKE_ANY ) { -rtl_writephy (tp,0x1f ,0x0000 ); -rtl_writephy (tp,MII_BMCR ,0x0000 ); +rtl_speed_down (tp);return ; }
@@ -3201,8 +3224,7 @@ static void r8168_pll_power_down(struct rtl8169_private *tp)rtl_ephy_write (ioaddr,0x19 ,0xff64 );if (__rtl8169_get_wol (tp) &WAKE_ANY ) { -rtl_writephy (tp,0x1f ,0x0000 ); -rtl_writephy (tp,MII_BMCR ,0x0000 ); +rtl_speed_down (tp);if (tp->mac_version ==RTL_GIGA_MAC_VER_32 || tp->mac_version ==RTL_GIGA_MAC_VER_33 )
drivers/target/target_core_alua.c +3 -0
@@ -351,6 +351,7 @@ static inline int core_alua_state_standby(case REPORT_LUNS :case RECEIVE_DIAGNOSTIC :case SEND_DIAGNOSTIC : +return 0 ;case MAINTENANCE_IN :switch (cdb[1 ]) {case MI_REPORT_TARGET_PGS :
@@ -393,6 +394,7 @@ static inline int core_alua_state_unavailable(switch (cdb[0 ]) {case INQUIRY :case REPORT_LUNS : +return 0 ;case MAINTENANCE_IN :switch (cdb[1 ]) {case MI_REPORT_TARGET_PGS :
@@ -433,6 +435,7 @@ static inline int core_alua_state_transition(switch (cdb[0 ]) {case INQUIRY :case REPORT_LUNS : +return 0 ;case MAINTENANCE_IN :switch (cdb[1 ]) {case MI_REPORT_TARGET_PGS :
kernel/sched_clock.c +26 -0
@@ -176,10 +176,36 @@ static u64 sched_clock_remote(struct sched_clock_data *scd)u64 this_clock, remote_clock;u64 *ptr, old_val, val; +#if BITS_PER_LONG !=64 +again: +/* +* Careful here: The local and the remote clock values need to +* be read out atomic as we need to compare the values and +* then update either the local or the remote side. So the +* cmpxchg64 below only protects one readout. +* +* We must reread via sched_clock_local() in the retry case on +* 32bit as an NMI could use sched_clock_local() via the +* tracer and hit between the readout of +* the low32bit and the high 32bit portion. +*/ + this_clock =sched_clock_local (my_scd); +/* +* We must enforce atomic readout on 32bit, otherwise the +* update on the remote cpu can hit inbetween the readout of +* the low32bit and the high 32bit portion. +*/ + remote_clock =cmpxchg64 (&scd->clock,0 ,0 ); +#else +/* +* On 64bit the read of [my]scd->clock is atomic versus the +* update, so we can avoid the above 32bit dance. +*/ sched_clock_local (my_scd); again: this_clock = my_scd->clock; remote_clock = scd->clock; +#endif /* * Use the opportunity that we have both locks
kernel/sys.c +2 -1
@@ -320,7 +320,6 @@ void kernel_restart_prepare(char *cmd) system_state =SYSTEM_RESTART ;usermodehelper_disable ();device_shutdown (); -syscore_shutdown (); }/**
@@ -335,6 +334,7 @@ void kernel_restart(char *cmd) {kernel_restart_prepare (cmd);disable_nonboot_cpus (); +syscore_shutdown ();if (!cmd)printk (KERN_EMERG "Restarting system.\n" );else
@@ -360,6 +360,7 @@ static void kernel_shutdown_prepare(enum system_states state)void kernel_halt (void ) {kernel_shutdown_prepare (SYSTEM_HALT ); +disable_nonboot_cpus ();syscore_shutdown ();printk (KERN_EMERG "System halted.\n" );kmsg_dump (KMSG_DUMP_HALT );
kernel/trace/ftrace.c +0 -1
@@ -566,7 +566,6 @@ int ftrace_profile_pages_init(struct ftrace_profile_stat *stat)free_page (tmp); } -free_page ((unsigned long )stat->pages); stat->pages =NULL ; stat->start =NULL ;
sound/soc/codecs/wm8903.c +2 -0
@@ -1101,6 +1101,8 @@ static const struct snd_soc_dapm_route wm8903_intercon[] = { { "ROP", NULL, "Right Speaker PGA" }, { "RON", NULL, "Right Speaker PGA" }, + { "Charge Pump", NULL, "CLK_DSP" }, + { "Left Headphone Output PGA", NULL, "Charge Pump" }, { "Right Headphone Output PGA", NULL, "Charge Pump" }, { "Left Line Output PGA", NULL, "Charge Pump" },
sound/usb/mixer_quirks.c +2 -2
@@ -396,7 +396,7 @@ static int snd_nativeinstruments_control_get(struct snd_kcontrol *kcontrol,else ret =usb_control_msg (dev,usb_rcvctrlpipe (dev,0 ), bRequest,USB_TYPE_VENDOR |USB_RECIP_DEVICE |USB_DIR_IN , -0 ,cpu_to_le16 (wIndex), +0 , wIndex, &tmp,sizeof (tmp),1000 );up_read (&mixer->chip->shutdown_rwsem);
@@ -427,7 +427,7 @@ static int snd_nativeinstruments_control_put(struct snd_kcontrol *kcontrol,else ret =usb_control_msg (dev,usb_sndctrlpipe (dev,0 ), bRequest,USB_TYPE_VENDOR |USB_RECIP_DEVICE |USB_DIR_OUT , -cpu_to_le16 (wValue),cpu_to_le16 (wIndex), + wValue, wIndex,NULL ,0 ,1000 );up_read (&mixer->chip->shutdown_rwsem);
sound/usb/quirks.c +1 -1
@@ -455,7 +455,7 @@ static int snd_usb_nativeinstruments_boot_quirk(struct usb_device *dev) {int ret =usb_control_msg (dev,usb_sndctrlpipe (dev,0 ),0xaf ,USB_TYPE_VENDOR |USB_RECIP_DEVICE , -cpu_to_le16 (1 ),0 ,NULL ,0 ,1000 ); +1 ,0 ,NULL ,0 ,1000 );if (ret <0 )return ret;