Linux 3.3.2
Greg KH
maintainerI'm announcing the release of the 3.3.2 kernel.
All users of the 3.3 kernel series must upgrade.
The updated 3.3.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.3.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/mach-at91/at91sam9263_devices.c | 3 arch/arm/mach-at91/at91sam9g45_devices.c | 6 arch/arm/mach-at91/board-sam9263ek.c | 1 arch/arm/mach-at91/board-sam9m10g45ek.c | 1 arch/m68k/mac/config.c | 3 arch/x86/include/asm/timer.h | 8 - arch/x86/kernel/apic/io_apic.c | 40 +---- arch/x86/kernel/kgdb.c | 60 +++++++ arch/x86/kernel/tsc.c | 3 arch/x86/net/bpf_jit_comp.c | 2 drivers/acpi/acpica/tbfadt.c | 8 - drivers/acpi/processor_thermal.c | 45 ++++- drivers/base/firmware_class.c | 96 ++++++++---- drivers/base/power/runtime.c | 3 drivers/base/regmap/regcache-rbtree.c | 8 - drivers/dma/ioat/dma.c | 16 +- drivers/dma/ioat/dma.h | 6 drivers/dma/ioat/dma_v2.c | 8 - drivers/dma/ioat/dma_v3.c | 8 - drivers/gpu/drm/drm_fb_helper.c | 8 - drivers/gpu/drm/i915/i915_drv.c | 2 drivers/gpu/drm/i915/i915_reg.h | 1 drivers/gpu/drm/i915/intel_bios.c | 23 ++- drivers/gpu/drm/i915/intel_display.c | 6 drivers/gpu/drm/i915/intel_lvds.c | 8 + drivers/gpu/drm/i915/intel_sprite.c | 3 drivers/gpu/drm/radeon/atom.c | 15 + drivers/gpu/drm/radeon/atom.h | 1 drivers/media/dvb/dvb-core/dvb_frontend.c | 12 + drivers/media/video/uvc/uvc_video.c | 50 ++++-- drivers/mfd/da9052-spi.c | 4 drivers/mfd/twl6030-irq.c | 13 + drivers/misc/kgdbts.c | 160 +++++++++++++++------ drivers/mmc/core/sdio_bus.c | 12 + drivers/mmc/host/atmel-mci.c | 9 + drivers/mmc/host/sdhci-dove.c | 1 drivers/mtd/devices/block2mtd.c | 1 drivers/mtd/devices/doc2000.c | 2 drivers/mtd/devices/doc2001.c | 2 drivers/mtd/devices/doc2001plus.c | 2 drivers/mtd/devices/docg3.c | 2 drivers/mtd/devices/lart.c | 1 drivers/mtd/devices/m25p80.c | 1 drivers/mtd/devices/sst25l.c | 1 drivers/mtd/maps/ixp4xx.c | 5 drivers/mtd/maps/lantiq-flash.c | 3 drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 2 drivers/net/ethernet/broadcom/tg3.c | 4 drivers/net/ethernet/freescale/fsl_pq_mdio.c | 12 - drivers/net/ethernet/marvell/sky2.c | 5 drivers/net/ethernet/via/via-rhine.c | 12 - drivers/net/usb/cdc_eem.c | 1 drivers/net/usb/zaurus.c | 5 drivers/net/wireless/ath/ath9k/calib.c | 5 drivers/net/wireless/ath/ath9k/main.c | 8 - drivers/net/wireless/iwlegacy/3945-mac.c | 1 drivers/net/wireless/iwlegacy/4965-mac.c | 1 drivers/net/wireless/iwlegacy/common.c | 18 ++ drivers/net/wireless/rtlwifi/rtl8192c/phy_common.c | 2 drivers/net/wireless/rtlwifi/rtl8192de/phy.c | 2 drivers/platform/x86/acer-wmi.c | 1 drivers/pnp/pnpacpi/core.c | 7 drivers/staging/android/lowmemorykiller.c | 47 ------ drivers/target/tcm_fc/tcm_fc.h | 1 drivers/target/tcm_fc/tfc_cmd.c | 10 + drivers/target/tcm_fc/tfc_conf.c | 13 + drivers/target/tcm_fc/tfc_io.c | 2 drivers/usb/host/ohci-at91.c | 4 fs/cifs/file.c | 10 + fs/locks.c | 3 fs/nfs/nfs4proc.c | 2 include/linux/fs.h | 5 include/linux/kernel.h | 13 + include/linux/kgdb.h | 7 include/linux/kmod.h | 27 ++- kernel/cred.c | 2 kernel/debug/debug_core.c | 53 +++--- kernel/irq/migration.c | 10 - kernel/kmod.c | 117 +++++++++++---- kernel/power/hibernate.c | 18 -- kernel/power/process.c | 8 + kernel/power/suspend.c | 7 kernel/power/user.c | 10 - kernel/sysctl.c | 8 - kernel/trace/trace.c | 4 kernel/trace/trace_entries.h | 16 +- kernel/trace/trace_export.c | 2 net/mac80211/agg-rx.c | 3 net/rose/rose_dev.c | 4 scripts/mod/modpost.c | 9 - scripts/mod/modpost.h | 1 security/tomoyo/mount.c | 38 ++-- sound/pci/hda/patch_realtek.c | 11 - sound/soc/codecs/ak4642.c | 2 sound/soc/codecs/wm8994.c | 2 sound/soc/tegra/tegra_i2s.c | 2 97 files changed, 817 insertions(+), 415 deletions(-)
Alan Stern (1):
PM / Runtime: don't forget to wake up waitqueue on failure
Alex Deucher (1):
drm/radeon/kms: fix fans after resume
Alf Høgemark (1):
mmc: sdhci-dove: Fix compile error by including module.h
Andi Kleen (1):
ACPI: Do cpufreq clamping for throttling per package v2
Andreas Mohr (1):
via-rhine: fix wait-bit inversion.
Anisse Astier (1):
drm/i915: no-lvds quirk on MSI DC500
Artem Bityutskiy (7):
mtd: sst25l: initialize writebufsize
mtd: doc2001plus: initialize writebufsize
mtd: doc2000: initialize writebufsize
mtd: doc2001: initialize writebufsize
mtd: docg3: initialize writebufsize
mtd: block2mtd: initialize writebufsize
mtd: lart: initialize writebufsize
Axel Lin (1):
mfd: Fix section mismatch warning for da9052-spi
Brian Norris (1):
mtd: m25p80: set writebufsize
Chris Rankin (1):
media: dvb_frontend: regression fix: userspace ABI broken for xine
Chris Wilson (2):
drm: Validate requested virtual size against allocated fb size drm/i915: Sanitize BIOS debugging bits from PIPECONF
Dan Williams (1):
ioat: fix size of 'completion' for Xen
Daniel Schwierzeck (1):
mtd: mips: lantiq: reintroduce support for cmdline partitions
Daniel Vetter (1):
drm/i915: quirk away broken OpRegion VBT
David Rientjes (1):
android, lowmemorykiller: remove task handoff notifier
Feiran Zhuang (1):
x86 bpf_jit: fix a bug in emitting the 16-bit immediate operand of AND
Frank Rowand (1):
modpost: Fix modpost license checking of vmlinux.o
Geert Uytterhoeven (1):
m68k/mac: Add missing platform check before registering platform devices
Greg Kroah-Hartman (2):
Revert "x86/ioapic: Add register level checks to detect bogus io-apic entries" Linux 3.3.2
Guan Xin (1):
USB: Add Motorola Rokr E6 Id to the USBNet driver "zaurus"
Jan Beulich (1):
modpost: fix ALL_INIT_DATA_SECTIONS
Jason Wessel (5):
kgdb,debug_core: pass the breakpoint struct instead of address and memory
kgdbts: Fix kernel oops with CONFIG_DEBUG_RODATA
kgdbts: (1 of 2) fix single step awareness to work correctly with SMP
kgdbts: (2 of 2) fix single step awareness to work correctly with SMP x86,kgdb: Fix DEBUG_RODATA limitation using text_poke()
Jesse Barnes (1):
drm/i915: treat src w & h as fixed point in sprite handling code
Jiang Liu (1):
genirq: Adjust irq thread affinity on IRQ_SET_MASK_OK_NOCOPY return value
Julian Anastasov (1):
ACPICA: Fix regression in FADT revision checks
Kees Cook (1):
sysctl: fix write access to dmesg_restrict/kptr_restrict
Kenth Eriksson (1):
Fix non TBI PHY access; a bad merge undid bug fix in a previous commit.
Kuninori Morimoto (1):
ASoC: ak4642: fixup: mute needs +1 step
Larry Finger (1):
rtlwifi: rtl8192ce: rtl8192cu: rtl8192de: Fix low-gain setting when scanning
Laurent Pinchart (1):
uvcvideo: Fix race-related crash in uvc_video_clock_update()
Lee, Chun-Yi (1):
acer-wmi: No wifi rfkill on Sony machines
Lino Sanfilippo (1):
sky2: dont overwrite settings for PHY Quick link
Ludovic Desroches (1):
mmc: atmel-mci: correct data timeout computation
Marc Kleine-Budde (1):
mtd: ixp4xx: oops in ixp4xx_flash_probe
Mark Brown (1):
ASoC: wm8994: Update WM8994 DCS calibration
Mark Rustad (2):
tcm_fc: Add abort flag for gracefully handling exchange timeout
tcm_fc: Do not free tpg structure during wq allocation failure
Matt Carlson (1):
tg3: Fix 5717 serdes powerdown problem
Nicolas Ferre (2):
USB: ohci-at91: fix vbus_pin_active_low handling
ARM: at91/USB host: specify and handle properly vbus_pin_active_low
Nishanth Menon (1):
mfd: Clear twl6030 IRQ status register only once
Oleg Nesterov (1):
cred: copy_process() should clear child->replacement_session_keyring
Pavel Shilovsky (1):
CIFS: Fix VFS lock usage for oplocked files
Rabin Vincent (1):
net: usb: cdc_eem: fix mtu
Rafael J. Wysocki (7):
firmware_class: Rework usermodehelper check
firmware_class: Split _request_firmware() into three functions, v2
firmware_class: Do not warn that system is not ready from async loads PM / Hibernate: Disable usermode helpers right before freezing tasks PM / Sleep: Move disabling of usermode helpers to the freezer PM / Sleep: Mitigate race between the freezer and request_firmware()
mmc: sdio: Use empty system suspend/resume callbacks at the bus level
Rajkumar Manoharan (1):
ath9k: fix max noise floor threshold
Sachin Prabhu (1):
Fix length of buffer copied in __nfs4_get_acl_uncached
Salman Qazi (1):
sched/x86: Fix overflow in cyc2ns_offset
Sean Paul (1):
drm/i915: Add lock on drm_helper_resume_force_mode
Simon Arlott (1):
media: dvb-core: fix DVBFE_ALGO_HW retune bug
Stanislaw Gruszka (2):
mac80211: fix possible tid_rx->reorder_timer use after free
iwlegacy: do not nulify il->vif on resetStephen Warren (2):
regmap: prevent division by zero in rbtree_show
ASoC: tegra: fix i2s compilation when !CONFIG_DEBUG_FS
Steven Rostedt (1):
tracing: Fix ent_size in trace output
Sujith Manoharan (1):
Revert "ath9k: fix going to full-sleep on PS idle"
Takashi Iwai (1):
ALSA: hda/realtek - Fix ADC assignment with a shared HP/Mic pin
Tetsuo Handa (1):
TOMOYO: Fix mount flags checking order.
Wolfgang Mauerer (1):
tracing: Fix ftrace stack trace entries
Wolfram Sang (1):
mtd: nand: gpmi: use correct member for checking NAND_BBT_USE_FLASH
Yinghai Lu (1):
PNPACPI: Fix device ref leaking in acpi_pnp_match
[email protected] (1):
rose_dev: fix memcpy-bug in rose_set_mac_address
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 3 -SUBLEVEL = 1 +SUBLEVEL = 2 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/mach-at91/at91sam9263_devices.c +2 -1
@@ -71,7 +71,8 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data)/* Enable VBus control for UHP ports */ for (i =0 ; i < data->ports; i++) {if (gpio_is_valid (data->vbus_pin[i])) -at91_set_gpio_output (data->vbus_pin[i],0 ); +at91_set_gpio_output (data->vbus_pin[i], + data->vbus_pin_active_low[i]); }/* Enable overcurrent notification */
arch/arm/mach-at91/at91sam9g45_devices.c +4 -2
@@ -122,7 +122,8 @@ void __init at91_add_device_usbh_ohci(struct at91_usbh_data *data)/* Enable VBus control for UHP ports */ for (i =0 ; i < data->ports; i++) {if (gpio_is_valid (data->vbus_pin[i])) -at91_set_gpio_output (data->vbus_pin[i],0 ); +at91_set_gpio_output (data->vbus_pin[i], + data->vbus_pin_active_low[i]); }/* Enable overcurrent notification */
@@ -183,7 +184,8 @@ void __init at91_add_device_usbh_ehci(struct at91_usbh_data *data)/* Enable VBus control for UHP ports */ for (i =0 ; i < data->ports; i++) {if (gpio_is_valid (data->vbus_pin[i])) -at91_set_gpio_output (data->vbus_pin[i],0 ); +at91_set_gpio_output (data->vbus_pin[i], + data->vbus_pin_active_low[i]); } usbh_ehci_data = *data;
arch/arm/mach-at91/board-sam9263ek.c +1 -0
@@ -74,6 +74,7 @@ static void __init ek_init_early(void)static struct at91_usbh_data __initdata ek_usbh_data = { .ports =2 , .vbus_pin = {AT91_PIN_PA24 ,AT91_PIN_PA21 }, + .vbus_pin_active_low = {1 ,1 }, .overcurrent_pin= {-EINVAL , -EINVAL }, };
arch/arm/mach-at91/board-sam9m10g45ek.c +1 -0
@@ -69,6 +69,7 @@ static void __init ek_init_early(void)static struct at91_usbh_data __initdata ek_usbh_hs_data = { .ports =2 , .vbus_pin = {AT91_PIN_PD1 ,AT91_PIN_PD3 }, + .vbus_pin_active_low = {1 ,1 }, .overcurrent_pin= {-EINVAL , -EINVAL }, };
arch/m68k/mac/config.c +3 -0
@@ -981,6 +981,9 @@ int __init mac_platform_init(void) {u8 *swim_base; +if (!MACH_IS_MAC ) +return -ENODEV ; +/* * Serial devices */
arch/x86/include/asm/timer.h +2 -6
@@ -57,14 +57,10 @@ DECLARE_PER_CPU(unsigned long long, cyc2ns_offset);static inline unsigned long long __cycles_2_ns (unsigned long long cyc) { -unsigned long long quot; -unsigned long long rem;int cpu =smp_processor_id ();unsigned long long ns =per_cpu (cyc2ns_offset, cpu); - quot = (cyc >>CYC2NS_SCALE_FACTOR ); - rem = cyc & ((1ULL <<CYC2NS_SCALE_FACTOR ) -1 ); - ns += quot *per_cpu (cyc2ns, cpu) + - ((rem *per_cpu (cyc2ns, cpu)) >>CYC2NS_SCALE_FACTOR ); + ns +=mult_frac (cyc,per_cpu (cyc2ns, cpu), + (1UL <<CYC2NS_SCALE_FACTOR ));return ns; }
arch/x86/kernel/apic/io_apic.c +8 -32
@@ -3967,36 +3967,18 @@ int mp_find_ioapic_pin(int ioapic, u32 gsi)static __init int bad_ioapic (unsigned long address) {if (nr_ioapics >=MAX_IO_APICS ) { -pr_warn ("WARNING: Max # of I/O APICs (%d) exceeded (found %d), skipping\n" , -MAX_IO_APICS , nr_ioapics); +printk (KERN_WARNING "WARNING: Max # of I/O APICs (%d) exceeded " +"(found %d), skipping\n" ,MAX_IO_APICS , nr_ioapics);return 1 ; }if (!address) { -pr_warn ("WARNING: Bogus (zero) I/O APIC address found in table, skipping!\n" ); +printk (KERN_WARNING "WARNING: Bogus (zero) I/O APIC address" +" found in table, skipping!\n" );return 1 ; }return 0 ; } -static __init int bad_ioapic_register (int idx) -{ -union IO_APIC_reg_00 reg_00; -union IO_APIC_reg_01 reg_01; -union IO_APIC_reg_02 reg_02; - - reg_00.raw =io_apic_read (idx,0 ); - reg_01.raw =io_apic_read (idx,1 ); - reg_02.raw =io_apic_read (idx,2 ); - -if (reg_00.raw ==-1 && reg_01.raw ==-1 && reg_02.raw ==-1 ) { -pr_warn ("I/O APIC 0x%x registers return all ones, skipping!\n" , -mpc_ioapic_addr (idx)); -return 1 ; - } - -return 0 ; -} -void __init mp_register_ioapic (int id,u32 address,u32 gsi_base) {int idx =0 ;
@@ -4013,12 +3995,6 @@ void __init mp_register_ioapic(int id, u32 address, u32 gsi_base) ioapics[idx].mp_config.apicaddr = address;set_fixmap_nocache (FIX_IO_APIC_BASE_0 + idx, address); - -if (bad_ioapic_register (idx)) { -clear_fixmap (FIX_IO_APIC_BASE_0 + idx); -return ; - } - ioapics[idx].mp_config.apicid =io_apic_unique_id (id); ioapics[idx].mp_config.apicver =io_apic_get_version (idx);
@@ -4039,10 +4015,10 @@ void __init mp_register_ioapic(int id, u32 address, u32 gsi_base)if (gsi_cfg->gsi_end >= gsi_top) gsi_top = gsi_cfg->gsi_end +1 ; -pr_info ("IOAPIC[%d]: apic_id %d, version %d, address 0x%x, GSI %d-%d\n" , - idx,mpc_ioapic_id (idx), -mpc_ioapic_ver (idx),mpc_ioapic_addr (idx), - gsi_cfg->gsi_base, gsi_cfg->gsi_end); +printk (KERN_INFO "IOAPIC[%d]: apic_id %d, version %d, address 0x%x, " +"GSI %d-%d\n" , idx,mpc_ioapic_id (idx), +mpc_ioapic_ver (idx),mpc_ioapic_addr (idx), + gsi_cfg->gsi_base, gsi_cfg->gsi_end); nr_ioapics++; }
arch/x86/kernel/kgdb.c +60 -0
72 lines not on this page · raw message
arch/x86/kernel/tsc.c +2 -1
@@ -620,7 +620,8 @@ static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu)if (cpu_khz) { *scale = (NSEC_PER_MSEC <<CYC2NS_SCALE_FACTOR )/cpu_khz; - *offset = ns_now - (tsc_now * *scale >>CYC2NS_SCALE_FACTOR ); + *offset = ns_now -mult_frac (tsc_now, *scale, + (1UL <<CYC2NS_SCALE_FACTOR )); }sched_clock_idle_wakeup_event (0 );
arch/x86/net/bpf_jit_comp.c +1 -1
@@ -289,7 +289,7 @@ void bpf_jit_compile(struct sk_filter *fp)EMIT2 (0x24 ,K &0xFF );/* and imm8,%al */ }else if (K >=0xFFFF0000 ) {EMIT2 (0x66 ,0x25 );/* and imm16,%ax */ -EMIT2 (K ,2 ); +EMIT (K ,2 ); }else {EMIT1_off32 (0x25 ,K );/* and imm32,%eax */ }
drivers/acpi/acpica/tbfadt.c +4 -4
@@ -363,10 +363,6 @@ static void acpi_tb_convert_fadt(void)u32 address32;u32 i; -/* Update the local FADT table header length */ - - acpi_gbl_FADT.header.length =sizeof (struct acpi_table_fadt ); -/* * Expand the 32-bit FACS and DSDT addresses to 64-bit as necessary. * Later code will always use the X 64-bit field. Also, check for an
@@ -408,6 +404,10 @@ static void acpi_tb_convert_fadt(void) acpi_gbl_FADT.boot_flags =0 ; } +/* Update the local FADT table header length */ + + acpi_gbl_FADT.header.length =sizeof (struct acpi_table_fadt ); +/* * Expand the ACPI 1.0 32-bit addresses to the ACPI 2.0 64-bit "X" * generic address structures as necessary. Later code will always use
drivers/acpi/processor_thermal.c +37 -8
76 lines not on this page · raw message
drivers/base/firmware_class.c +64 -32
161 lines not on this page · raw message
drivers/base/power/runtime.c +2 -1
@@ -532,6 +532,8 @@ static int rpm_suspend(struct device *dev, int rpmflags) dev->power.suspend_time =ktime_set (0 ,0 ); dev->power.max_time_suspended_ns =-1 ; dev->power.deferred_resume = false; +wake_up_all (&dev->power.wait_queue); +if (retval == -EAGAIN || retval == -EBUSY ) { dev->power.runtime_error =0 ;
@@ -547,7 +549,6 @@ static int rpm_suspend(struct device *dev, int rpmflags) }else {pm_runtime_cancel_pending (dev); } -wake_up_all (&dev->power.wait_queue); goto out; }
drivers/base/regmap/regcache-rbtree.c +7 -1
@@ -137,6 +137,7 @@ static int rbtree_show(struct seq_file *s, void *ignored)unsigned int base, top;int nodes =0 ;int registers =0 ; +int average;mutex_lock (&map->lock);
@@ -151,8 +152,13 @@ static int rbtree_show(struct seq_file *s, void *ignored) registers += top - base +1 ; } +if (nodes) + average = registers / nodes; +else + average =0 ; +seq_printf (s,"%d nodes, %d registers, average %d registers\n" , - nodes, registers, registers / nodes); + nodes, registers, average);mutex_unlock (&map->lock);
drivers/dma/ioat/dma.c +8 -8
@@ -548,9 +548,9 @@ void ioat_dma_unmap(struct ioat_chan_common *chan, enum dma_ctrl_flags flags, PCI_DMA_TODEVICE, flags, 0); } -unsigned long ioat_get_current_completion (struct ioat_chan_common *chan) +dma_addr_t ioat_get_current_completion (struct ioat_chan_common *chan) { -unsigned long phys_complete; +dma_addr_t phys_complete;u64 completion; completion = *chan->completion;
@@ -571,7 +571,7 @@ unsigned long ioat_get_current_completion(struct ioat_chan_common *chan) }bool ioat_cleanup_preamble (struct ioat_chan_common *chan, -unsigned long *phys_complete) +dma_addr_t *phys_complete) { *phys_complete =ioat_get_current_completion (chan);if (*phys_complete == chan->last_completion)
@@ -582,14 +582,14 @@ bool ioat_cleanup_preamble(struct ioat_chan_common *chan,return true; } -static void __cleanup (struct ioat_dma_chan *ioat,unsigned long phys_complete) +static void __cleanup (struct ioat_dma_chan *ioat,dma_addr_t phys_complete) {struct ioat_chan_common *chan = &ioat->base;struct list_head *_desc, *n;struct dma_async_tx_descriptor *tx; -dev_dbg (to_dev (chan),"%s: phys_complete: %lx\n" , - __func__, phys_complete); +dev_dbg (to_dev (chan),"%s: phys_complete: %llx\n" , + __func__, (unsigned long long ) phys_complete);list_for_each_safe (_desc, n, &ioat->used_desc) {struct ioat_desc_sw *desc;
@@ -655,7 +655,7 @@ static void __cleanup(struct ioat_dma_chan *ioat, unsigned long phys_complete)static void ioat1_cleanup (struct ioat_dma_chan *ioat) {struct ioat_chan_common *chan = &ioat->base; -unsigned long phys_complete; +dma_addr_t phys_complete;prefetch (chan->completion);
@@ -701,7 +701,7 @@ static void ioat1_timer_event(unsigned long data)mod_timer (&chan->timer, jiffies +COMPLETION_TIMEOUT );spin_unlock_bh (&ioat->desc_lock); }else if (test_bit (IOAT_COMPLETION_PENDING , &chan->state)) { -unsigned long phys_complete; +dma_addr_t phys_complete;spin_lock_bh (&ioat->desc_lock);/* if we haven't made progress and we have already
drivers/dma/ioat/dma.h +3 -3
@@ -88,7 +88,7 @@ struct ioatdma_device {struct ioat_chan_common {struct dma_chan common;void __iomem *reg_base; -unsigned long last_completion; +dma_addr_t last_completion;spinlock_t cleanup_lock;dma_cookie_t completed_cookie;unsigned long state;
@@ -333,7 +333,7 @@ int __devinit ioat_dma_self_test(struct ioatdma_device *device); void __devexit ioat_dma_remove(struct ioatdma_device *device);struct dca_provider *__devinit ioat_dca_init (struct pci_dev *pdev,void __iomem *iobase); -unsigned long ioat_get_current_completion (struct ioat_chan_common *chan); +dma_addr_t ioat_get_current_completion (struct ioat_chan_common *chan);void ioat_init_channel (struct ioatdma_device *device,struct ioat_chan_common *chan,int idx); enum dma_status ioat_dma_tx_status(struct dma_chan *c, dma_cookie_t cookie,
@@ -341,7 +341,7 @@ enum dma_status ioat_dma_tx_status(struct dma_chan *c, dma_cookie_t cookie,void ioat_dma_unmap (struct ioat_chan_common *chan,enum dma_ctrl_flags flags,size_t len,struct ioat_dma_descriptor *hw);bool ioat_cleanup_preamble (struct ioat_chan_common *chan, -unsigned long *phys_complete); +dma_addr_t *phys_complete);void ioat_kobject_add (struct ioatdma_device *device,struct kobj_type *type);void ioat_kobject_del (struct ioatdma_device *device);extern const struct sysfs_ops ioat_sysfs_ops;
drivers/dma/ioat/dma_v2.c +4 -4
@@ -126,7 +126,7 @@ static void ioat2_start_null_desc(struct ioat2_dma_chan *ioat)spin_unlock_bh (&ioat->prep_lock); } -static void __cleanup (struct ioat2_dma_chan *ioat,unsigned long phys_complete) +static void __cleanup (struct ioat2_dma_chan *ioat,dma_addr_t phys_complete) {struct ioat_chan_common *chan = &ioat->base;struct dma_async_tx_descriptor *tx;
@@ -178,7 +178,7 @@ static void __cleanup(struct ioat2_dma_chan *ioat, unsigned long phys_complete)static void ioat2_cleanup (struct ioat2_dma_chan *ioat) {struct ioat_chan_common *chan = &ioat->base; -unsigned long phys_complete; +dma_addr_t phys_complete;spin_lock_bh (&chan->cleanup_lock);if (ioat_cleanup_preamble (chan, &phys_complete))
@@ -259,7 +259,7 @@ int ioat2_reset_sync(struct ioat_chan_common *chan, unsigned long tmo)static void ioat2_restart_channel (struct ioat2_dma_chan *ioat) {struct ioat_chan_common *chan = &ioat->base; -unsigned long phys_complete; +dma_addr_t phys_complete;ioat2_quiesce (chan,0 );if (ioat_cleanup_preamble (chan, &phys_complete))
@@ -274,7 +274,7 @@ void ioat2_timer_event(unsigned long data)struct ioat_chan_common *chan = &ioat->base;if (test_bit (IOAT_COMPLETION_PENDING , &chan->state)) { -unsigned long phys_complete; +dma_addr_t phys_complete;u64 status; status =ioat_chansts (chan);
drivers/dma/ioat/dma_v3.c +4 -4
@@ -256,7 +256,7 @@ static bool desc_has_ext(struct ioat_ring_ent *desc)* The difference from the dma_v2.c __cleanup() is that this routine * handles extended descriptors and dma-unmapping raid operations. */ -static void __cleanup (struct ioat2_dma_chan *ioat,unsigned long phys_complete) +static void __cleanup (struct ioat2_dma_chan *ioat,dma_addr_t phys_complete) {struct ioat_chan_common *chan = &ioat->base;struct ioat_ring_ent *desc;
@@ -314,7 +314,7 @@ static void __cleanup(struct ioat2_dma_chan *ioat, unsigned long phys_complete)static void ioat3_cleanup (struct ioat2_dma_chan *ioat) {struct ioat_chan_common *chan = &ioat->base; -unsigned long phys_complete; +dma_addr_t phys_complete;spin_lock_bh (&chan->cleanup_lock);if (ioat_cleanup_preamble (chan, &phys_complete))
@@ -333,7 +333,7 @@ static void ioat3_cleanup_event(unsigned long data)static void ioat3_restart_channel (struct ioat2_dma_chan *ioat) {struct ioat_chan_common *chan = &ioat->base; -unsigned long phys_complete; +dma_addr_t phys_complete;ioat2_quiesce (chan,0 );if (ioat_cleanup_preamble (chan, &phys_complete))
@@ -348,7 +348,7 @@ static void ioat3_timer_event(unsigned long data)struct ioat_chan_common *chan = &ioat->base;if (test_bit (IOAT_COMPLETION_PENDING , &chan->state)) { -unsigned long phys_complete; +dma_addr_t phys_complete;u64 status; status =ioat_chansts (chan);
drivers/gpu/drm/drm_fb_helper.c +6 -2
@@ -617,9 +617,13 @@ int drm_fb_helper_check_var(struct fb_var_screeninfo *var,return -EINVAL ;/* Need to resize the fb object !!! */ -if (var->bits_per_pixel > fb->bits_per_pixel || var->xres > fb->width || var->yres > fb->height) { +if (var->bits_per_pixel > fb->bits_per_pixel || + var->xres > fb->width || var->yres > fb->height || + var->xres_virtual > fb->width || var->yres_virtual > fb->height) {DRM_DEBUG ("fb userspace requested width/height/bpp is greater than current fb " -"object %dx%d-%d > %dx%d-%d\n" , var->xres, var->yres, var->bits_per_pixel, +"request %dx%d-%d (virtual %dx%d) > %dx%d-%d\n" , + var->xres, var->yres, var->bits_per_pixel, + var->xres_virtual, var->yres_virtual, fb->width, fb->height, fb->bits_per_pixel);return -EINVAL ; }
drivers/gpu/drm/i915/i915_drv.c +2 -0
@@ -508,7 +508,9 @@ static int i915_drm_thaw(struct drm_device *dev)drm_irq_install (dev);/* Resume the modeset for every activated CRTC */ +mutex_lock (&dev->mode_config.mutex);drm_helper_resume_force_mode (dev); +mutex_unlock (&dev->mode_config.mutex);if (IS_IRONLAKE_M (dev))ironlake_enable_rc6 (dev);
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -2313,6 +2313,7 @@#define PIPECONF_DISABLE 0#define PIPECONF_DOUBLE_WIDE (1<<30)#define I965_PIPECONF_ACTIVE (1<<30) +#define PIPECONF_FRAME_START_DELAY_MASK (3<<27)#define PIPECONF_SINGLE_WIDE 0#define PIPECONF_PIPE_UNLOCKED 0#define PIPECONF_PIPE_LOCKED (1<<25)
drivers/gpu/drm/i915/intel_bios.c +22 -1
@@ -24,6 +24,7 @@* Eric Anholt <[email protected]> * */ +#include <linux/dmi.h> #include <drm/drm_dp_helper.h> #include "drmP.h" #include "drm.h"
@@ -621,6 +622,26 @@ init_vbt_defaults(struct drm_i915_private *dev_priv) dev_priv->edp.bpp =18 ; } +static int __init intel_no_opregion_vbt_callback (const struct dmi_system_id *id) +{ +DRM_DEBUG_KMS ("Falling back to manually reading VBT from " +"VBIOS ROM for %s\n" , + id->ident); +return 1 ; +} + +static const struct dmi_system_id intel_no_opregion_vbt[] = { + { + .callback = intel_no_opregion_vbt_callback, + .ident ="ThinkCentre A57" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"LENOVO" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"97027RG" ), + }, + }, + { } +}; +/** * intel_parse_bios - find VBT and initialize settings from the BIOS * @dev: DRM device
@@ -641,7 +662,7 @@ intel_parse_bios(struct drm_device *dev)init_vbt_defaults (dev_priv);/* XXX Should this validation be moved to intel_opregion.c? */ -if (dev_priv->opregion.vbt) { +if (!dmi_check_system (intel_no_opregion_vbt) && dev_priv->opregion.vbt) {struct vbt_header *vbt = dev_priv->opregion.vbt;if (memcmp (vbt->signature,"$VBT" ,4 ) ==0 ) { DRM_DEBUG_KMS("Using VBT from OpRegion: %20s\n",
drivers/gpu/drm/i915/intel_display.c +6 -0
@@ -7497,6 +7497,12 @@ static void intel_sanitize_modesetting(struct drm_device *dev,struct drm_i915_private *dev_priv = dev->dev_private;u32 reg, val; +/* Clear any frame start delays used for debugging left by the BIOS */ +for_each_pipe (pipe) { + reg =PIPECONF (pipe); +I915_WRITE (reg,I915_READ (reg) & ~PIPECONF_FRAME_START_DELAY_MASK ); + } +if (HAS_PCH_SPLIT (dev))return ;
drivers/gpu/drm/i915/intel_lvds.c +8 -0
@@ -739,6 +739,14 @@ static const struct dmi_system_id intel_no_lvds[] = { DMI_MATCH(DMI_BOARD_NAME, "AT5NM10T-I"), }, }, + { + .callback = intel_no_lvds_dmi_callback, + .ident = "MSI Wind Box DC500", + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"), + DMI_MATCH(DMI_BOARD_NAME, "MS-7469"), + }, + }, { }/* terminating entry */ };
drivers/gpu/drm/i915/intel_sprite.c +3 -0
@@ -411,6 +411,9 @@ intel_update_plane(struct drm_plane *plane, struct drm_crtc *crtc, old_obj = intel_plane->obj; + src_w = src_w >>16 ; + src_h = src_h >>16 ; +/* Pipe must be running... */ if (!(I915_READ (PIPECONF (pipe)) &PIPECONF_ENABLE ))return -EINVAL ;
drivers/gpu/drm/radeon/atom.c +14 -1
@@ -1306,8 +1306,11 @@ struct atom_context *atom_parse(struct card_info *card, void *bios)int atom_asic_init (struct atom_context *ctx) { +struct radeon_device *rdev = ctx->card->dev->dev_private;int hwi =CU16 (ctx->data_table +ATOM_DATA_FWI_PTR );uint32_t ps[16 ]; +int ret; +memset (ps,0 ,64 ); ps[0 ] =cpu_to_le32 (CU32 (hwi +ATOM_FWI_DEFSCLK_PTR ));
@@ -1317,7 +1320,17 @@ int atom_asic_init(struct atom_context *ctx)if (!CU16 (ctx->cmd_table +4 +2 *ATOM_CMD_INIT ))return 1 ; -return atom_execute_table (ctx,ATOM_CMD_INIT , ps); + ret =atom_execute_table (ctx,ATOM_CMD_INIT , ps); +if (ret) +return ret; + +memset (ps,0 ,64 ); + +if (rdev->family <CHIP_R600 ) { +if (CU16 (ctx->cmd_table +4 +2 *ATOM_CMD_SPDFANCNTL )) +atom_execute_table (ctx,ATOM_CMD_SPDFANCNTL , ps); + } +return ret; }void atom_destroy (struct atom_context *ctx)
drivers/gpu/drm/radeon/atom.h +1 -0
@@ -44,6 +44,7 @@#define ATOM_CMD_SETSCLK 0x0A#define ATOM_CMD_SETMCLK 0x0B#define ATOM_CMD_SETPCLK 0x0C +#define ATOM_CMD_SPDFANCNTL 0x39#define ATOM_DATA_FWI_PTR 0xC#define ATOM_DATA_IIO_PTR 0x32
drivers/media/dvb/dvb-core/dvb_frontend.c +12 -0
@@ -143,6 +143,8 @@ struct dvb_frontend_private {static void dvb_frontend_wakeup (struct dvb_frontend *fe);static int dtv_get_frontend (struct dvb_frontend *fe,struct dvb_frontend_parameters *p_out); +static int dtv_property_legacy_params_sync (struct dvb_frontend *fe, +struct dvb_frontend_parameters *p);static bool has_get_frontend (struct dvb_frontend *fe) {
@@ -655,6 +657,8 @@ restart:dprintk ("%s: Retune requested, FESTATE_RETUNE\n" , __func__); re_tune = true; fepriv->state =FESTATE_TUNED ; + }else { + re_tune = false; }if (fe->ops.tune)
@@ -695,6 +699,7 @@ restart: fepriv->algo_status |=DVBFE_ALGO_SEARCH_AGAIN ; fepriv->delay =HZ /2 ; } +dtv_property_legacy_params_sync (fe, &fepriv->parameters_out); fe->ops.read_status (fe, &s);if (s != fepriv->status) {dvb_frontend_add_event (fe, s);/* update event list */
@@ -1831,6 +1836,13 @@ static int dtv_set_frontend(struct dvb_frontend *fe)return -EINVAL ;/* +* Initialize output parameters to match the values given by +* the user. FE_SET_FRONTEND triggers an initial frontend event +* with status = 0, which copies output parameters to userspace. +*/ +dtv_property_legacy_params_sync (fe, &fepriv->parameters_out); + +/* * Be sure that the bandwidth will be filled for all * non-satellite systems, as tuners need to know what * low pass/Nyquist half filter should be applied, in
drivers/media/video/uvc/uvc_video.c +32 -18
103 lines not on this page · raw message
drivers/mfd/da9052-spi.c +2 -2
@@ -21,7 +21,7 @@#include <linux/mfd/da9052/da9052.h> -static int da9052_spi_probe (struct spi_device *spi) +static int __devinit da9052_spi_probe (struct spi_device *spi) {int ret;const struct spi_device_id *id =spi_get_device_id (spi);
@@ -61,7 +61,7 @@ err:return ret; } -static int da9052_spi_remove (struct spi_device *spi) +static int __devexit da9052_spi_remove(struct spi_device *spi) {struct da9052 *da9052 =dev_get_drvdata (&spi->dev);
drivers/mfd/twl6030-irq.c +11 -2
@@ -185,8 +185,17 @@ static int twl6030_irq_thread(void *data) }local_irq_enable (); } - ret =twl_i2c_write (TWL_MODULE_PIH , sts.bytes, -REG_INT_STS_A ,3 );/* clear INT_STS_A */ + +/* +* NOTE: +* Simulation confirms that documentation is wrong w.r.t the +* interrupt status clear operation. A single *byte* write to +* any one of STS_A to STS_C register results in all three +* STS registers being reset. Since it does not matter which +* value is written, all three registers are cleared on a +* single byte write, so we just use 0x0 to clear. +*/ + ret =twl_i2c_write_u8 (TWL_MODULE_PIH ,0x00 ,REG_INT_STS_A );if (ret)pr_warning ("twl6030: I2C error in clearing PIH ISR\n" );
drivers/misc/kgdbts.c +115 -45
296 lines not on this page · raw message
drivers/mmc/core/sdio_bus.c +9 -3
@@ -192,9 +192,15 @@ static int sdio_bus_remove(struct device *dev)return ret; } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM + +static int pm_no_operation(struct device *dev) +{ + return 0; +} static const struct dev_pm_ops sdio_bus_pm_ops = { + SET_SYSTEM_SLEEP_PM_OPS(pm_no_operation, pm_no_operation) SET_RUNTIME_PM_OPS( pm_generic_runtime_suspend, pm_generic_runtime_resume,
@@ -204,11 +210,11 @@ static const struct dev_pm_ops sdio_bus_pm_ops = {#define SDIO_PM_OPS_PTR (&sdio_bus_pm_ops) -#else /* !CONFIG_PM_RUNTIME */ +#else /* !CONFIG_PM */ #define SDIO_PM_OPS_PTR NULL -#endif /* !CONFIG_PM_RUNTIME */ +#endif /* !CONFIG_PM */ static struct bus_type sdio_bus_type = { .name ="sdio" ,
drivers/mmc/host/atmel-mci.c +8 -1
@@ -480,7 +480,14 @@ err:static inline unsigned int atmci_ns_to_clocks (struct atmel_mci *host,unsigned int ns) { -return (ns * (host->bus_hz /1000000 ) +999 ) /1000 ; +/* +* It is easier here to use us instead of ns for the timeout, +* it prevents from overflows during calculation. +*/ +unsigned int us =DIV_ROUND_UP (ns,1000 ); + +/* Maximum clock frequency is host->bus_hz/2 */ +return us * (DIV_ROUND_UP (host->bus_hz,2000000 )); } static void atmci_set_timeout(struct atmel_mci *host,
drivers/mmc/host/sdhci-dove.c +1 -0
@@ -20,6 +20,7 @@*/ #include <linux/io.h> +#include <linux/module.h> #include <linux/mmc/host.h> #include "sdhci-pltfm.h"
drivers/mtd/devices/block2mtd.c +1 -0
@@ -283,6 +283,7 @@ static struct block2mtd_dev *add_device(char *devname, int erase_size) dev->mtd.size = dev->blkdev->bd_inode->i_size &PAGE_MASK ; dev->mtd.erasesize = erase_size; dev->mtd.writesize =1 ; + dev->mtd.writebufsize =PAGE_SIZE ; dev->mtd.type =MTD_RAM ; dev->mtd.flags =MTD_CAP_RAM ; dev->mtd.erase = block2mtd_erase;
drivers/mtd/devices/doc2000.c +1 -1
@@ -562,7 +562,7 @@ void DoC2k_init(struct mtd_info *mtd) mtd->type =MTD_NANDFLASH ; mtd->flags =MTD_CAP_NANDFLASH ; - mtd->writesize =512 ; + mtd->writebufsize = mtd->writesize =512 ; mtd->oobsize =16 ; mtd->owner =THIS_MODULE ; mtd->erase = doc_erase;
drivers/mtd/devices/doc2001.c +1 -1
@@ -346,7 +346,7 @@ void DoCMil_init(struct mtd_info *mtd)/* FIXME: erase size is not always 8KiB */ mtd->erasesize =0x2000 ; - mtd->writesize =512 ; + mtd->writebufsize = mtd->writesize =512 ; mtd->oobsize =16 ; mtd->owner =THIS_MODULE ; mtd->erase = doc_erase;
drivers/mtd/devices/doc2001plus.c +1 -1
@@ -467,7 +467,7 @@ void DoCMilPlus_init(struct mtd_info *mtd) mtd->type =MTD_NANDFLASH ; mtd->flags =MTD_CAP_NANDFLASH ; - mtd->writesize =512 ; + mtd->writebufsize = mtd->writesize =512 ; mtd->oobsize =16 ; mtd->owner =THIS_MODULE ; mtd->erase = doc_erase;
drivers/mtd/devices/docg3.c +1 -1
@@ -1817,7 +1817,7 @@ static void __init doc_set_driver_info(int chip_id, struct mtd_info *mtd) mtd->erasesize =DOC_LAYOUT_BLOCK_SIZE *DOC_LAYOUT_NBPLANES ;if (docg3->reliable ==2 ) mtd->erasesize /=2 ; - mtd->writesize =DOC_LAYOUT_PAGE_SIZE ; + mtd->writebufsize = mtd->writesize =DOC_LAYOUT_PAGE_SIZE ; mtd->oobsize =DOC_LAYOUT_OOB_SIZE ; mtd->owner =THIS_MODULE ; mtd->erase = doc_erase;
drivers/mtd/devices/lart.c +1 -0
@@ -630,6 +630,7 @@ static int __init lart_flash_init (void) mtd.name = module_name; mtd.type =MTD_NORFLASH ; mtd.writesize =1 ; + mtd.writebufsize =4 ; mtd.flags =MTD_CAP_NORFLASH ; mtd.size =FLASH_BLOCKSIZE_PARAM * FLASH_NUMBLOCKS_16m_PARAM +FLASH_BLOCKSIZE_MAIN * FLASH_NUMBLOCKS_16m_MAIN; mtd.erasesize =FLASH_BLOCKSIZE_MAIN ;
drivers/mtd/devices/m25p80.c +1 -0
@@ -932,6 +932,7 @@ static int __devinit m25p_probe(struct spi_device *spi) ppdata.of_node = spi->dev.of_node; flash->mtd.dev.parent = &spi->dev; flash->page_size = info->page_size; + flash->mtd.writebufsize = flash->page_size;if (info->addr_width) flash->addr_width = info->addr_width;
drivers/mtd/devices/sst25l.c +1 -0
@@ -402,6 +402,7 @@ static int __devinit sst25l_probe(struct spi_device *spi) flash->mtd.flags =MTD_CAP_NORFLASH ; flash->mtd.erasesize = flash_info->erase_size; flash->mtd.writesize = flash_info->page_size; + flash->mtd.writebufsize = flash_info->page_size; flash->mtd.size = flash_info->page_size * flash_info->nr_pages; flash->mtd.erase = sst25l_erase; flash->mtd.read = sst25l_read;
drivers/mtd/maps/ixp4xx.c +4 -1
@@ -182,6 +182,9 @@ static int ixp4xx_flash_probe(struct platform_device *dev) {struct flash_platform_data *plat = dev->dev.platform_data;struct ixp4xx_flash_info *info; +struct mtd_part_parser_data ppdata = { + .origin = dev->resource->start, + };int err =-1 ;if (!plat)
@@ -247,7 +250,7 @@ static int ixp4xx_flash_probe(struct platform_device *dev)/* Use the fast version */ info->map.write = ixp4xx_write16; - err =mtd_device_parse_register (info->mtd, probes, dev->resource->start, + err =mtd_device_parse_register (info->mtd, probes, &ppdata, plat->parts, plat->nr_parts);if (err) {printk (KERN_ERR "Could not parse partitions\n" );
drivers/mtd/maps/lantiq-flash.c +2 -1
@@ -45,6 +45,7 @@ struct ltq_mtd { };static char ltq_map_name[] ="ltq_nor" ; +static const char *ltq_probe_types[]__devinitconst = {"cmdlinepart" ,NULL };static map_word ltq_read16 (struct map_info *map,unsigned long adr)
@@ -168,7 +169,7 @@ ltq_mtd_probe(struct platform_device *pdev) cfi->addr_unlock1 ^=1 ; cfi->addr_unlock2 ^=1 ; - err =mtd_device_parse_register (ltq_mtd->mtd,NULL ,0 , + err =mtd_device_parse_register (ltq_mtd->mtd, ltq_probe_types,0 , ltq_mtd_data->parts, ltq_mtd_data->nr_parts);if (err) {dev_err (&pdev->dev,"failed to add partitions\n" );
drivers/mtd/nand/gpmi-nand/gpmi-nand.c +1 -1
@@ -1124,7 +1124,7 @@ static int gpmi_block_markbad(struct mtd_info *mtd, loff_t ofs) chip->bbt[block >>2 ] |=0x01 << ((block &0x03 ) <<1 );/* Do we have a flash based bad block table ? */ -if (chip->options &NAND_BBT_USE_FLASH ) +if (chip->bbt_options &NAND_BBT_USE_FLASH ) ret =nand_update_bbt (mtd, ofs);else { chipnr = (int )(ofs >> chip->chip_shift);
drivers/net/ethernet/broadcom/tg3.c +3 -1
@@ -2771,7 +2771,9 @@ static void tg3_power_down_phy(struct tg3 *tp, bool do_low_power)if (GET_ASIC_REV (tp->pci_chip_rev_id) ==ASIC_REV_5700 ||GET_ASIC_REV (tp->pci_chip_rev_id) ==ASIC_REV_5704 || (GET_ASIC_REV (tp->pci_chip_rev_id) ==ASIC_REV_5780 && - (tp->phy_flags &TG3_PHYFLG_MII_SERDES ))) + (tp->phy_flags &TG3_PHYFLG_MII_SERDES )) || + (GET_ASIC_REV (tp->pci_chip_rev_id) ==ASIC_REV_5717 && + !tp->pci_fn))return ; if (GET_CHIP_REV(tp->pci_chip_rev_id) == CHIPREV_5784_AX ||
drivers/net/ethernet/freescale/fsl_pq_mdio.c +6 -6
@@ -356,13 +356,13 @@ static int fsl_pq_mdio_probe(struct platform_device *ofdev)if (prop) tbiaddr = *prop; - } -if (tbiaddr ==-1 ) { - err = -EBUSY ; - goto err_free_irqs; - }else { -out_be32 (tbipa, tbiaddr); +if (tbiaddr ==-1 ) { + err = -EBUSY ; + goto err_free_irqs; + }else { +out_be32 (tbipa, tbiaddr); + } } err =of_mdiobus_register (new_bus, np);
drivers/net/ethernet/marvell/sky2.c +3 -2
@@ -1767,13 +1767,14 @@ static int sky2_open(struct net_device *dev)sky2_hw_up (sky2); +/* Enable interrupts from phy/mac for port */ + imask =sky2_read32 (hw,B0_IMSK ); +if (hw->chip_id ==CHIP_ID_YUKON_OPT || hw->chip_id ==CHIP_ID_YUKON_PRM || hw->chip_id ==CHIP_ID_YUKON_OP_2 ) imask |=Y2_IS_PHY_QLNK ;/* enable PHY Quick Link */ -/* Enable interrupts from phy/mac for port */ - imask =sky2_read32 (hw,B0_IMSK ); imask |= portirq_msk[port];sky2_write32 (hw,B0_IMSK , imask);sky2_read32 (hw,B0_IMSK );
drivers/net/ethernet/via/via-rhine.c +7 -5
@@ -503,30 +503,32 @@ static int rhine_vlan_rx_add_vid(struct net_device *dev, unsigned short vid);static int rhine_vlan_rx_kill_vid (struct net_device *dev,unsigned short vid);static void rhine_restart_tx (struct net_device *dev); -static void rhine_wait_bit (struct rhine_private *rp,u8 reg,u8 mask,bool high) +static void rhine_wait_bit (struct rhine_private *rp,u8 reg,u8 mask,bool low) {void __iomem *ioaddr = rp->base;int i;for (i =0 ; i <1024 ; i++) { -if (high ^ !!(ioread8 (ioaddr + reg) & mask)) +bool has_mask_bits = !!(ioread8 (ioaddr + reg) & mask); + +if (low ^ has_mask_bits)break ;udelay (10 ); }if (i >64 ) {netif_dbg (rp, hw, rp->dev,"%s bit wait (%02x/%02x) cycle " -"count: %04d\n" , high ?"high" :"low" , reg, mask, i); +"count: %04d\n" , low ?"low" :"high" , reg, mask, i); } }static void rhine_wait_bit_high (struct rhine_private *rp,u8 reg,u8 mask) { -rhine_wait_bit (rp, reg, mask, true); +rhine_wait_bit (rp, reg, mask, false); }static void rhine_wait_bit_low (struct rhine_private *rp,u8 reg,u8 mask) { -rhine_wait_bit (rp, reg, mask, false); +rhine_wait_bit (rp, reg, mask, true); }static u32 rhine_get_events (struct rhine_private *rp)
drivers/net/usb/cdc_eem.c +1 -0
@@ -93,6 +93,7 @@ static int eem_bind(struct usbnet *dev, struct usb_interface *intf)/* no jumbogram (16K) support for now */ dev->net->hard_header_len +=EEM_HEAD +ETH_FCS_LEN ; + dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;return 0 ; }
drivers/net/usb/zaurus.c +5 -0
@@ -337,6 +337,11 @@ static const struct usb_device_id products [] = { .driver_info = ZAURUS_PXA_INFO, }, { +/* Motorola Rokr E6 */ +USB_DEVICE_AND_INTERFACE_INFO (0x22b8 ,0x6027 ,USB_CLASS_COMM , + USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), + .driver_info = (unsigned long ) &bogus_mdlm_info, +}, {/* Motorola MOTOMAGX phones */ USB_DEVICE_AND_INTERFACE_INFO (0x22b8 ,0x6425 ,USB_CLASS_COMM , USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE),
drivers/net/wireless/ath/ath9k/calib.c +2 -3
@@ -20,7 +20,6 @@/* Common calibration code */ -#define ATH9K_NF_TOO_HIGH -60static int16_t ath9k_hw_get_nf_hist_mid (int16_t *nfCalBuffer) {
@@ -346,10 +345,10 @@ static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf)"NF calibrated [%s] [chain %d] is %d\n" , (i >= 3 ? "ext" : "ctl"), i % 3, nf[i]); -if (nf[i] >ATH9K_NF_TOO_HIGH ) { +if (nf[i] > limit->max) {ath_dbg (common,CALIBRATE ,"NF[%d] (%d) > MAX (%d), correcting to MAX\n" , - i, nf[i],ATH9K_NF_TOO_HIGH ); + i, nf[i], limit->max); nf[i] = limit->max; }else if (nf[i] < limit->min) { ath_dbg(common, CALIBRATE,
drivers/net/wireless/ath/ath9k/main.c +3 -5
@@ -118,15 +118,13 @@ void ath9k_ps_restore(struct ath_softc *sc)if (--sc->ps_usecount !=0 ) goto unlock; -if (sc->ps_flags &PS_WAIT_FOR_TX_ACK ) - goto unlock; - -if (sc->ps_idle) +if (sc->ps_idle && (sc->ps_flags &PS_WAIT_FOR_TX_ACK )) mode =ATH9K_PM_FULL_SLEEP ;else if (sc->ps_enabled && !(sc->ps_flags & (PS_WAIT_FOR_BEACON |PS_WAIT_FOR_CAB | -PS_WAIT_FOR_PSPOLL_DATA ))) +PS_WAIT_FOR_PSPOLL_DATA | +PS_WAIT_FOR_TX_ACK ))) mode =ATH9K_PM_NETWORK_SLEEP ;else goto unlock;
drivers/net/wireless/iwlegacy/3945-mac.c +0 -1
@@ -2684,7 +2684,6 @@ il3945_bg_restart(struct work_struct *data)if (test_and_clear_bit (S_FW_ERROR , &il->status)) {mutex_lock (&il->mutex); - il->ctx.vif =NULL ; il->is_open =0 ;mutex_unlock (&il->mutex);il3945_down (il);
drivers/net/wireless/iwlegacy/4965-mac.c +0 -1
@@ -5381,7 +5381,6 @@ il4965_bg_restart(struct work_struct *data)if (test_and_clear_bit (S_FW_ERROR , &il->status)) {mutex_lock (&il->mutex); - il->ctx.vif =NULL ; il->is_open =0 ;__il4965_down (il);
drivers/net/wireless/iwlegacy/common.c +16 -2
@@ -4575,6 +4575,7 @@ il_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)struct il_priv *il = hw->priv;struct il_vif_priv *vif_priv = (void *)vif->drv_priv;int err; +bool reset;u32 modes;D_MAC80211 ("enter: type %d, addr %pM\n" , vif->type, vif->addr);
@@ -4594,6 +4595,16 @@ il_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) goto out; } +/* +* We do not support multiple virtual interfaces, but on hardware reset +* we have to add the same interface again. +*/ + reset = (il->ctx.vif == vif); +if (il->ctx.vif && !reset) { + err = -EOPNOTSUPP ; + goto out; + } + modes = il->ctx.interface_modes | il->ctx.exclusive_interface_modes;if (!(modes &BIT (vif->type))) { err = -EOPNOTSUPP ;
@@ -4605,8 +4616,11 @@ il_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) err =il_setup_interface (il, &il->ctx);if (err) { - il->ctx.vif =NULL ; - il->iw_mode =NL80211_IFTYPE_STATION ; +IL_WARN ("Fail to set mode %d\n" , vif->type); +if (!reset) { + il->ctx.vif =NULL ; + il->iw_mode =NL80211_IFTYPE_STATION ; + } } out:
drivers/net/wireless/rtlwifi/rtl8192c/phy_common.c +1 -1
@@ -1968,7 +1968,7 @@ void rtl92c_phy_set_io(struct ieee80211_hw *hw)break ;case IO_CMD_PAUSE_DM_BY_SCAN : rtlphy->initgain_backup.xaagccore1 = dm_digtable.cur_igvalue; - dm_digtable.cur_igvalue =0x17 ; + dm_digtable.cur_igvalue =0x37 ;rtl92c_dm_write_dig (hw);break ;default :
drivers/net/wireless/rtlwifi/rtl8192de/phy.c +1 -1
@@ -3192,7 +3192,7 @@ static void rtl92d_phy_set_io(struct ieee80211_hw *hw)break ;case IO_CMD_PAUSE_DM_BY_SCAN : rtlphy->initgain_backup.xaagccore1 = de_digtable.cur_igvalue; - de_digtable.cur_igvalue =0x17 ; + de_digtable.cur_igvalue =0x37 ;rtl92d_dm_write_dig (hw);break ;default :
drivers/platform/x86/acer-wmi.c +1 -0
@@ -692,6 +692,7 @@ static const struct acpi_device_id norfkill_ids[] = { { "VPC2004", 0}, { "IBM0068", 0}, { "LEN0068", 0}, + { "SNY5001", 0}, /* sony-laptop in charge */ { "", 0}, };
drivers/pnp/pnpacpi/core.c +6 -1
@@ -321,9 +321,14 @@ static int __init acpi_pnp_match(struct device *dev, void *_pnp) {struct acpi_device *acpi =to_acpi_device (dev);struct pnp_dev *pnp = _pnp; +struct device *physical_device; + + physical_device =acpi_get_physical_device (acpi->handle); +if (physical_device) +put_device (physical_device);/* true means it matched */ -return !acpi_get_physical_device (acpi->handle) +return !physical_device &&compare_pnp_id (pnp->id,acpi_device_hid (acpi)); }
drivers/staging/android/lowmemorykiller.c +6 -41
91 lines not on this page · raw message
drivers/target/tcm_fc/tcm_fc.h +1 -0
@@ -124,6 +124,7 @@ struct ft_cmd {/* Local sense buffer */ unsigned char ft_sense_buffer[TRANSPORT_SENSE_BUFFER ]; u32 was_ddp_setup:1; /* Set only if ddp is setup */ + u32 aborted:1; /* Set if aborted by reset or timeout */struct scatterlist *sg;/* Set only if DDP is setup */ u32 sg_cnt;/* No. of item in scatterlist */ };
drivers/target/tcm_fc/tfc_cmd.c +8 -2
@@ -126,6 +126,8 @@ int ft_queue_status(struct se_cmd *se_cmd)struct fc_exch *ep;size_t len; +if (cmd->aborted) +return 0 ;ft_dump_cmd (cmd, __func__); ep =fc_seq_exch (cmd->seq); lport = ep->lp;
@@ -192,6 +194,8 @@ int ft_write_pending(struct se_cmd *se_cmd)ft_dump_cmd (cmd, __func__); +if (cmd->aborted) +return 0 ; ep =fc_seq_exch (cmd->seq); lport = ep->lp; fp =fc_frame_alloc (lport,sizeof (*txrdy));
@@ -262,10 +266,10 @@ static void ft_recv_seq(struct fc_seq *sp, struct fc_frame *fp, void *arg)struct ft_cmd *cmd = arg;struct fc_frame_header *fh; -if (IS_ERR (fp)) { +if (unlikely (IS_ERR (fp))) {/* XXX need to find cmd if queued */ cmd->seq =NULL ; -transport_generic_free_cmd (&cmd->se_cmd,0 ); + cmd->aborted = true;return ; }
@@ -447,6 +451,8 @@ int ft_queue_tm_resp(struct se_cmd *se_cmd)struct se_tmr_req *tmr = se_cmd->se_tmr_req;enum fcp_resp_rsp_codes code; +if (cmd->aborted) +return 0 ;switch (tmr->response) {case TMR_FUNCTION_COMPLETE : code =FCP_TMF_CMPL ;
drivers/target/tcm_fc/tfc_conf.c +8 -5
@@ -300,6 +300,7 @@ static struct se_portal_group *ft_add_tpg( {struct ft_lport_acl *lacl;struct ft_tpg *tpg; +struct workqueue_struct *wq;unsigned long index;int ret;
@@ -321,18 +322,20 @@ static struct se_portal_group *ft_add_tpg( tpg->lport_acl = lacl;INIT_LIST_HEAD (&tpg->lun_list); - ret =core_tpg_register (&ft_configfs->tf_ops, wwn, &tpg->se_tpg, - tpg,TRANSPORT_TPG_TYPE_NORMAL ); -if (ret <0 ) { + wq =alloc_workqueue ("tcm_fc" ,0 ,1 ); +if (!wq) {kfree (tpg);return NULL ; } - tpg->workqueue =alloc_workqueue ("tcm_fc" ,0 ,1 ); -if (!tpg->workqueue) { + ret =core_tpg_register (&ft_configfs->tf_ops, wwn, &tpg->se_tpg, + tpg,TRANSPORT_TPG_TYPE_NORMAL ); +if (ret <0 ) { +destroy_workqueue (wq);kfree (tpg);return NULL ; } + tpg->workqueue = wq;mutex_lock (&ft_lport_lock);list_add_tail (&tpg->list, &lacl->tpg_list);
drivers/target/tcm_fc/tfc_io.c +2 -0
@@ -81,6 +81,8 @@ int ft_queue_data_in(struct se_cmd *se_cmd)void *from;void *to =NULL ; +if (cmd->aborted) +return 0 ; ep =fc_seq_exch (cmd->seq); lport = ep->lp; cmd->seq = lport->tt.seq_start_next (cmd->seq);
drivers/usb/host/ohci-at91.c +2 -2
@@ -245,7 +245,7 @@ static void ohci_at91_usb_set_power(struct at91_usbh_data *pdata, int port, intreturn ;gpio_set_value (pdata->vbus_pin[port], - !pdata->vbus_pin_active_low[port] ^ enable); + pdata->vbus_pin_active_low[port] ^ enable); }static int ohci_at91_usb_get_power (struct at91_usbh_data *pdata,int port)
@@ -257,7 +257,7 @@ static int ohci_at91_usb_get_power(struct at91_usbh_data *pdata, int port)return -EINVAL ;return gpio_get_value (pdata->vbus_pin[port]) ^ - !pdata->vbus_pin_active_low[port]; + pdata->vbus_pin_active_low[port]; }/*
fs/cifs/file.c +9 -1
@@ -835,13 +835,21 @@ cifs_posix_lock_set(struct file *file, struct file_lock *flock)if ((flock->fl_flags &FL_POSIX ) ==0 )return rc; +try_again:mutex_lock (&cinode->lock_mutex);if (!cinode->can_cache_brlcks) {mutex_unlock (&cinode->lock_mutex);return rc; } - rc =posix_lock_file_wait (file, flock); + + rc =posix_lock_file (file, flock,NULL );mutex_unlock (&cinode->lock_mutex); +if (rc ==FILE_LOCK_DEFERRED ) { + rc =wait_event_interruptible (flock->fl_wait, !flock->fl_next); +if (!rc) + goto try_again; +locks_delete_block (flock); + }return rc; }
fs/locks.c +2 -1
@@ -510,12 +510,13 @@ static void __locks_delete_block(struct file_lock *waiter)/* */ -static void locks_delete_block (struct file_lock *waiter) +void locks_delete_block (struct file_lock *waiter) {lock_flocks ();__locks_delete_block (waiter);unlock_flocks (); } +EXPORT_SYMBOL (locks_delete_block);/* Insert waiter into blocker's block list. * We use a circular list so that processes can be easily woken up in
fs/nfs/nfs4proc.c +1 -1
@@ -3625,7 +3625,7 @@ static ssize_t __nfs4_get_acl_uncached(struct inode *inode, void *buf, size_t buif (acl_len > buflen) goto out_free;_copy_from_pages (buf, pages, res.acl_data_offset, - res.acl_len); + acl_len); } ret = acl_len; out_free:
include/linux/fs.h +5 -0
@@ -1210,6 +1210,7 @@ extern int vfs_setlease(struct file *, long, struct file_lock **);extern int lease_modify (struct file_lock **,int );extern int lock_may_read (struct inode *,loff_t start,unsigned long count);extern int lock_may_write (struct inode *,loff_t start,unsigned long count); +extern void locks_delete_block (struct file_lock *waiter);extern void lock_flocks (void );extern void unlock_flocks (void );#else /* !CONFIG_FILE_LOCKING */
@@ -1354,6 +1355,10 @@ static inline int lock_may_write(struct inode *inode, loff_t start,return 1 ; } +static inline void locks_delete_block (struct file_lock *waiter) +{ +} +static inline void lock_flocks (void ) { }
include/linux/kernel.h +13 -0
@@ -85,6 +85,19 @@ } \ ) +/* +* Multiplies an integer by a fraction, while avoiding unnecessary +* overflow or loss of precision. +*/ +#define mult_frac (x, numer, denom)( \ +{ \ + typeof(x) quot = (x) / (denom); \ + typeof(x) rem = (x) % (denom); \ + (quot * (numer)) + ((rem * (numer)) / (denom)); \ +} \ +) + +#define _RET_IP_ (unsigned long)__builtin_return_address(0)#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
include/linux/kgdb.h +4 -3
@@ -63,7 +63,8 @@ enum kgdb_bptype {BP_HARDWARE_BREAKPOINT ,BP_WRITE_WATCHPOINT ,BP_READ_WATCHPOINT , -BP_ACCESS_WATCHPOINT +BP_ACCESS_WATCHPOINT , + BP_POKE_BREAKPOINT, }; enum kgdb_bpstate {
@@ -207,8 +208,8 @@ extern void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc);/* Optional functions. */ extern int kgdb_validate_break_address (unsigned long addr); -extern int kgdb_arch_set_breakpoint (unsigned long addr,char *saved_instr); -extern int kgdb_arch_remove_breakpoint (unsigned long addr,char *bundle); +extern int kgdb_arch_set_breakpoint (struct kgdb_bkpt *bpt); +extern int kgdb_arch_remove_breakpoint (struct kgdb_bkpt *bpt);/** * kgdb_arch_late - Perform any architecture specific initalization.
include/linux/kmod.h +22 -5
@@ -112,12 +112,29 @@ call_usermodehelper(char *path, char **argv, char **envp, enum umh_wait wait)extern struct ctl_table usermodehelper_table[]; +enum umh_disable_depth { +UMH_ENABLED =0 , +UMH_FREEZING , +UMH_DISABLED , +}; +extern void usermodehelper_init (void ); -extern int usermodehelper_disable (void ); -extern void usermodehelper_enable (void ); -extern bool usermodehelper_is_disabled (void ); -extern void read_lock_usermodehelper (void ); -extern void read_unlock_usermodehelper (void ); +extern int __usermodehelper_disable (enum umh_disable_depth depth); +extern void __usermodehelper_set_disable_depth (enum umh_disable_depth depth); + +static inline int usermodehelper_disable (void ) +{ +return __usermodehelper_disable (UMH_DISABLED ); +} + +static inline void usermodehelper_enable (void ) +{ +__usermodehelper_set_disable_depth (UMH_ENABLED ); +} + +extern int usermodehelper_read_trylock (void ); +extern long usermodehelper_read_lock_wait (long timeout); +extern void usermodehelper_read_unlock (void );#endif /* __LINUX_KMOD_H__ */
kernel/cred.c +2 -0
@@ -385,6 +385,8 @@ int copy_creds(struct task_struct *p, unsigned long clone_flags)struct cred *new;int ret; + p->replacement_session_keyring =NULL ; + if (#ifdef CONFIG_KEYS !p->cred->thread_keyring &&
kernel/debug/debug_core.c +24 -29
125 lines not on this page · raw message
kernel/irq/migration.c +7 -3
@@ -43,12 +43,16 @@ void irq_move_masked_irq(struct irq_data *idata)* masking the irqs. */ if (likely (cpumask_any_and (desc->pending_mask, cpu_online_mask) - < nr_cpu_ids)) -if (!chip->irq_set_affinity (&desc->irq_data, - desc->pending_mask, false)) { + < nr_cpu_ids)) { +int ret = chip->irq_set_affinity (&desc->irq_data, + desc->pending_mask, false); +switch (ret) { +case IRQ_SET_MASK_OK :cpumask_copy (desc->irq_data.affinity, desc->pending_mask); +case IRQ_SET_MASK_OK_NOCOPY :irq_set_thread_affinity (desc); } + }cpumask_clear (desc->pending_mask); }
kernel/kmod.c +87 -30
157 lines not on this page · raw message
kernel/power/hibernate.c +2 -16
@@ -16,7 +16,6 @@#include <linux/string.h> #include <linux/device.h> #include <linux/async.h> -#include <linux/kmod.h> #include <linux/delay.h> #include <linux/fs.h> #include <linux/mount.h>
@@ -609,14 +608,10 @@ int hibernate(void)if (error) goto Exit; - error =usermodehelper_disable (); -if (error) - goto Exit; -/* Allocate memory management structures */ error =create_basic_memory_bitmaps ();if (error) - goto Enable_umh; + goto Exit;printk (KERN_INFO "PM: Syncing filesystems ... " );sys_sync ();
@@ -659,8 +654,6 @@ int hibernate(void)thaw_processes (); Free_bitmaps:free_basic_memory_bitmaps (); - Enable_umh: -usermodehelper_enable (); Exit:pm_notifier_call_chain (PM_POST_HIBERNATION );pm_restore_console ();
@@ -775,15 +768,9 @@ static int software_resume(void)if (error) goto close_finish; - error =usermodehelper_disable (); -if (error) - goto close_finish; - error =create_basic_memory_bitmaps (); -if (error) { -usermodehelper_enable (); +if (error) goto close_finish; - }pr_debug ("PM: Preparing processes for restore.\n" ); error =freeze_processes ();
@@ -804,7 +791,6 @@ static int software_resume(void)thaw_processes (); Done:free_basic_memory_bitmaps (); -usermodehelper_enable (); Finish:pm_notifier_call_chain (PM_POST_RESTORE );pm_restore_console ();
kernel/power/process.c +8 -0
@@ -16,6 +16,7 @@#include <linux/freezer.h> #include <linux/delay.h> #include <linux/workqueue.h> +#include <linux/kmod.h> /* * Timeout for stopping processes
@@ -122,6 +123,10 @@ int freeze_processes(void) {int error; + error =__usermodehelper_disable (UMH_FREEZING ); +if (error) +return error; +if (!pm_freezing)atomic_inc (&system_freezing_cnt);
@@ -130,6 +135,7 @@ int freeze_processes(void) error =try_to_freeze_tasks (true);if (!error) {printk ("done." ); +__usermodehelper_set_disable_depth (UMH_DISABLED );oom_killer_disable (); }printk ("\n" );
@@ -187,6 +193,8 @@ void thaw_processes(void) }while_each_thread (g, p);read_unlock (&tasklist_lock); +usermodehelper_enable (); +schedule ();printk ("done.\n" ); }
kernel/power/suspend.c +0 -7
@@ -12,7 +12,6 @@#include <linux/delay.h> #include <linux/errno.h> #include <linux/init.h> -#include <linux/kmod.h> #include <linux/console.h> #include <linux/cpu.h> #include <linux/syscalls.h>
@@ -101,17 +100,12 @@ static int suspend_prepare(void)if (error) goto Finish; - error =usermodehelper_disable (); -if (error) - goto Finish; - error =suspend_freeze_processes ();if (!error)return 0 ; suspend_stats.failed_freeze++;dpm_save_failed_step (SUSPEND_FREEZE ); -usermodehelper_enable (); Finish:pm_notifier_call_chain (PM_POST_SUSPEND );pm_restore_console ();
@@ -259,7 +253,6 @@ int suspend_devices_and_enter(suspend_state_t state)static void suspend_finish (void ) {suspend_thaw_processes (); -usermodehelper_enable ();pm_notifier_call_chain (PM_POST_SUSPEND );pm_restore_console (); }
kernel/power/user.c +1 -9
@@ -12,7 +12,6 @@#include <linux/suspend.h> #include <linux/syscalls.h> #include <linux/reboot.h> -#include <linux/kmod.h> #include <linux/string.h> #include <linux/device.h> #include <linux/miscdevice.h>
@@ -222,14 +221,8 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd,sys_sync ();printk ("done.\n" ); - error =usermodehelper_disable (); -if (error) -break ; - error =freeze_processes (); -if (error) -usermodehelper_enable (); -else +if (!error) data->frozen =1 ;break ;
@@ -238,7 +231,6 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd,break ;pm_restore_gfp_mask ();thaw_processes (); -usermodehelper_enable (); data->frozen =0 ;break ;
kernel/sysctl.c +4 -4
@@ -166,7 +166,7 @@ static int proc_taint(struct ctl_table *table, int write,#endif #ifdef CONFIG_PRINTK -static int proc_dmesg_restrict (struct ctl_table *table,int write, +static int proc_dointvec_minmax_sysadmin (struct ctl_table *table,int write,void __user *buffer,size_t *lenp,loff_t *ppos);#endif
@@ -713,7 +713,7 @@ static struct ctl_table kern_table[] = { .data = &dmesg_restrict, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec_minmax, + .proc_handler = proc_dointvec_minmax_sysadmin, .extra1 = &zero, .extra2 = &one, },
@@ -722,7 +722,7 @@ static struct ctl_table kern_table[] = { .data = &kptr_restrict, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dmesg_restrict, + .proc_handler = proc_dointvec_minmax_sysadmin, .extra1 = &zero, .extra2 = &two, },
@@ -2431,7 +2431,7 @@ static int proc_taint(struct ctl_table *table, int write, }#ifdef CONFIG_PRINTK -static int proc_dmesg_restrict (struct ctl_table *table,int write, +static int proc_dointvec_minmax_sysadmin (struct ctl_table *table,int write,void __user *buffer,size_t *lenp,loff_t *ppos) {if (write && !capable (CAP_SYS_ADMIN ))
kernel/trace/trace.c +4 -0
@@ -1644,6 +1644,7 @@ __find_next_entry(struct trace_iterator *iter, int *ent_cpu,int cpu_file = iter->cpu_file;u64 next_ts =0 , ts;int next_cpu =-1 ; +int next_size =0 ;int cpu;/*
@@ -1675,9 +1676,12 @@ __find_next_entry(struct trace_iterator *iter, int *ent_cpu, next_cpu = cpu; next_ts = ts; next_lost = lost_events; + next_size = iter->ent_size; } } + iter->ent_size = next_size; +if (ent_cpu) *ent_cpu = next_cpu;
kernel/trace/trace_entries.h +12 -4
@@ -156,6 +156,12 @@ FTRACE_ENTRY_DUP(wakeup, ctx_switch_entry,#define FTRACE_STACK_ENTRIES 8 +#ifndef CONFIG_64BIT +# define IP_FMT "%08lx" +#else +# define IP_FMT "%016lx" +#endif + FTRACE_ENTRY(kernel_stack, stack_entry, TRACE_STACK,
@@ -165,8 +171,9 @@ FTRACE_ENTRY(kernel_stack, stack_entry, __dynamic_array(unsigned long, caller ) ), - F_printk("\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n" -"\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n" , + F_printk("\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n" +"\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n" +"\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n" , __entry->caller[0 ], __entry->caller[1 ], __entry->caller[2 ], __entry->caller[3 ], __entry->caller[4 ], __entry->caller[5 ], __entry->caller[6], __entry->caller[7])
@@ -181,8 +188,9 @@ FTRACE_ENTRY(user_stack, userstack_entry, __array( unsigned long, caller, FTRACE_STACK_ENTRIES ) ), -F_printk ("\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n" -"\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n" , +F_printk ("\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n" +"\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n" +"\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n" , __entry->caller[0 ], __entry->caller[1 ], __entry->caller[2 ], __entry->caller[3 ], __entry->caller[4 ], __entry->caller[5 ], __entry->caller[6 ], __entry->caller[7 ])
kernel/trace/trace_export.c +1 -1
@@ -150,7 +150,7 @@ ftrace_define_fields_##name(struct ftrace_event_call *event_call) \#define __dynamic_array (type, item)#undef F_printk -#define F_printk(fmt, args...) #fmt ", " __stringify(args) +#define F_printk(fmt, args...) __stringify(fmt) ", " __stringify(args)#undef FTRACE_ENTRY#define FTRACE_ENTRY (call, struct_name, etype, tstruct, print) \
net/mac80211/agg-rx.c +2 -1
@@ -49,6 +49,8 @@ static void ieee80211_free_tid_rx(struct rcu_head *h) container_of(h, struct tid_ampdu_rx, rcu_head);int i; +del_timer_sync (&tid_rx->reorder_timer); +for (i =0 ; i < tid_rx->buf_size; i++)dev_kfree_skb (tid_rx->reorder_buf[i]);kfree (tid_rx->reorder_buf);
@@ -91,7 +93,6 @@ void ___ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid, tid, WLAN_BACK_RECIPIENT, reason);del_timer_sync (&tid_rx->session_timer); -del_timer_sync (&tid_rx->reorder_timer);call_rcu (&tid_rx->rcu_head, ieee80211_free_tid_rx); }
net/rose/rose_dev.c +2 -2
@@ -96,11 +96,11 @@ static int rose_set_mac_address(struct net_device *dev, void *addr)struct sockaddr *sa = addr;int err; -if (!memcpy (dev->dev_addr, sa->sa_data, dev->addr_len)) +if (!memcmp (dev->dev_addr, sa->sa_data, dev->addr_len))return 0 ;if (dev->flags &IFF_UP ) { - err =rose_add_loopback_node ((rose_address *)dev->dev_addr); + err =rose_add_loopback_node ((rose_address *)sa->sa_data);if (err)return err;
scripts/mod/modpost.c +6 -3
@@ -132,8 +132,10 @@ static struct module *new_module(char *modname)/* strip trailing .o */ s =strrchr (p,'.' );if (s !=NULL ) -if (strcmp (s,".o" ) ==0 ) +if (strcmp (s,".o" ) ==0 ) { *s ='\0' ; + mod->is_dot_o =1 ; + }/* add to list */ mod->name = p;
@@ -587,7 +589,8 @@ static void handle_modversions(struct module *mod, struct elf_info *info,unsigned int crc;enum export export; -if (!is_vmlinux (mod->name) &&strncmp (symname,"__ksymtab" ,9 ) ==0 ) +if ((!is_vmlinux (mod->name) || mod->is_dot_o) && +strncmp (symname,"__ksymtab" ,9 ) ==0 ) export =export_from_secname (info,get_secindex (info, sym));else export =export_from_sec (info,get_secindex (info, sym));
@@ -849,7 +852,7 @@ static void check_section(const char *modname, struct elf_info *elf,#define ALL_INIT_DATA_SECTIONS \ ".init.setup$", ".init.rodata$", \ - ".devinit.rodata$", ".cpuinit.rodata$", ".meminit.rodata$" \ + ".devinit.rodata$", ".cpuinit.rodata$", ".meminit.rodata$", \ ".init.data$", ".devinit.data$", ".cpuinit.data$", ".meminit.data$"#define ALL_EXIT_DATA_SECTIONS \ ".exit.data$", ".devexit.data$", ".cpuexit.data$", ".memexit.data$"
scripts/mod/modpost.h +1 -0
@@ -113,6 +113,7 @@ struct module {int has_cleanup;struct buffer dev_table_buf;char srcversion[25 ]; +int is_dot_o; };struct elf_info {
security/tomoyo/mount.c +20 -18
@@ -199,30 +199,32 @@ int tomoyo_mount_permission(char *dev_name, struct path *path,if (flags &MS_REMOUNT ) { type = tomoyo_mounts[TOMOYO_MOUNT_REMOUNT ]; flags &= ~MS_REMOUNT ; - } -if (flags &MS_MOVE ) { - type = tomoyo_mounts[TOMOYO_MOUNT_MOVE ]; - flags &= ~MS_MOVE ; - } -if (flags &MS_BIND ) { + }else if (flags &MS_BIND ) { type = tomoyo_mounts[TOMOYO_MOUNT_BIND ]; flags &= ~MS_BIND ; - } -if (flags &MS_UNBINDABLE ) { - type = tomoyo_mounts[TOMOYO_MOUNT_MAKE_UNBINDABLE ]; - flags &= ~MS_UNBINDABLE ; - } -if (flags &MS_PRIVATE ) { + }else if (flags &MS_SHARED ) { +if (flags & (MS_PRIVATE |MS_SLAVE |MS_UNBINDABLE )) +return -EINVAL ; + type = tomoyo_mounts[TOMOYO_MOUNT_MAKE_SHARED ]; + flags &= ~MS_SHARED ; + }else if (flags &MS_PRIVATE ) { +if (flags & (MS_SHARED |MS_SLAVE |MS_UNBINDABLE )) +return -EINVAL ; type = tomoyo_mounts[TOMOYO_MOUNT_MAKE_PRIVATE ]; flags &= ~MS_PRIVATE ; - } -if (flags &MS_SLAVE ) { + }else if (flags &MS_SLAVE ) { +if (flags & (MS_SHARED |MS_PRIVATE |MS_UNBINDABLE )) +return -EINVAL ; type = tomoyo_mounts[TOMOYO_MOUNT_MAKE_SLAVE ]; flags &= ~MS_SLAVE ; - } -if (flags &MS_SHARED ) { - type = tomoyo_mounts[TOMOYO_MOUNT_MAKE_SHARED ]; - flags &= ~MS_SHARED ; + }else if (flags &MS_UNBINDABLE ) { +if (flags & (MS_SHARED |MS_PRIVATE |MS_SLAVE )) +return -EINVAL ; + type = tomoyo_mounts[TOMOYO_MOUNT_MAKE_UNBINDABLE ]; + flags &= ~MS_UNBINDABLE ; + }else if (flags &MS_MOVE ) { + type = tomoyo_mounts[TOMOYO_MOUNT_MOVE ]; + flags &= ~MS_MOVE ; }if (!type) type ="<NULL>" ;
sound/pci/hda/patch_realtek.c +7 -4
@@ -2709,9 +2709,6 @@ static int alc_auto_fill_adc_caps(struct hda_codec *codec)int max_nums =ARRAY_SIZE (spec->private_adc_nids);int i, nums =0 ; -if (spec->shared_mic_hp) - max_nums =1 ;/* no multi streams with the shared HP/mic */ - nid = codec->start_nid;for (i =0 ; i < codec->num_nodes; i++, nid++) {hda_nid_t src;
@@ -3723,6 +3720,7 @@ static void alc_remove_invalid_adc_nids(struct hda_codec *codec)if (spec->dyn_adc_switch)return ; + again: nums =0 ;for (n =0 ; n < spec->num_adc_nids; n++) {hda_nid_t cap = spec->private_capsrc_nids[n];
@@ -3743,6 +3741,11 @@ static void alc_remove_invalid_adc_nids(struct hda_codec *codec)if (!nums) {/* check whether ADC-switch is possible */ if (!alc_check_dyn_adc_switch (codec)) { +if (spec->shared_mic_hp) { + spec->shared_mic_hp =0 ; + spec->private_imux[0 ].num_items =1 ; + goto again; + }printk (KERN_WARNING "hda_codec: %s: no valid ADC found;" " using fallback 0x%x\n" , codec->chip_name, spec->private_adc_nids[0 ]);
@@ -3760,7 +3763,7 @@ static void alc_remove_invalid_adc_nids(struct hda_codec *codec)if (spec->auto_mic)alc_auto_mic_check_imux (codec);/* check auto-mic setups */ -else if (spec->input_mux->num_items ==1 ) +else if (spec->input_mux->num_items ==1 || spec->shared_mic_hp) spec->num_adc_nids =1 ;/* reduce to a single ADC */ }
sound/soc/codecs/ak4642.c +1 -1
@@ -140,7 +140,7 @@* min : 0xFE : -115.0 dB * mute: 0xFF */ -static const DECLARE_TLV_DB_SCALE(out_tlv, -11500, 50, 1); +static const DECLARE_TLV_DB_SCALE(out_tlv, -11550, 50, 1);static const struct snd_kcontrol_new ak4642_snd_controls[] = {
sound/soc/codecs/wm8994.c +1 -1
@@ -3427,7 +3427,7 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)case 2 :case 3 : wm8994->hubs.dcs_codes_l =-9 ; - wm8994->hubs.dcs_codes_r =-5 ; + wm8994->hubs.dcs_codes_r =-7 ;break ;default :break ;
sound/soc/tegra/tegra_i2s.c +1 -1
@@ -112,7 +112,7 @@ static void tegra_i2s_debug_remove(struct tegra_i2s *i2s) debugfs_remove(i2s->debug); }#else -static inline void tegra_i2s_debug_add (struct tegra_i2s *i2s,int id) +static inline void tegra_i2s_debug_add (struct tegra_i2s *i2s) { }