Og dreams of kernels
Subsystems (68)
{pound} {pound} {pound}
Og woke up to the loud noise of the villagers pounding on his cave door. He stumbled toward it, grabbing the four numbered bags that he knew were needed at this time.
Opening the door, Og looked at the villagers, all expectant, wondering where this week's kernels were, what was delaying them, as they needed their weekly fix.
Reaching into the first bag, quite worn out with a faded "27" on the outside of it, he grabbed one of the remaining kernels in there and tossed it into the group. A few small people at the back of the crowd caught the kernel, and slowly walked off toward the village. Og wondered about these people, constantly relying on the old kernels to save them for another day, while resisting the change to move on, harboring some kind of strange reverence for this specific brand that Og just could not understand.
Og then reached into a newer bag, with a big "32" on it, grabbed one kernel from the many remaining in there, and threw it at the group. Some people dressed in odd clothes, red swirls, green lizards on their heads, red hats on others, and one remaining group who, despite it being very unflattering, always wore dull brown clothing, picked up the kernel and ran away with it back to the village. They were going to use it to send out to all of their sub-tribe members as they were the ones responsible for handling this task.
The crowd was smaller now, and Og reached into a bag with a big "34" on it. It only had one kernel left in it and he threw it at the people, saying, "this is the last one." This seemed to stun the villagers who grabbed it, as they had not been paying attention to what happened every week. The look in their eye ment that they were realizing they had a long few days ahead of them as they prepared contingency plans due to the lack of future kernels.
Og looked proudly at the remaining villagers in front of him. These were the strongest women, the most beautiful men, and the smartest children around. They had changed over the past few years, becoming brighter, and more adept and the changes the world was throwing at them. They were self-reliant, taking whatever Og offered them, providing good feedback, smart bug reports, and tasty treats of plum pudding during the holliday season.
Og reached into his bag marked with a big "35" and tossed a plump, jucy kernel at this final group, who instantly grabbed it up, thanked him for providing it (unlike those self-absorbed 32 and 27 people) and ran off to help spread the good news of a new kernel.
Og turned around, threw the empty "34" bag on the heap in the corner of his cave, and glanced at the calendar. It would be a few more weeks before Hera provided a new bag for him to distribute to the villagers, so he would just work with what he had for now.
He stumbled back into the corner of the cave, and layed down, as he was tired, and drifted off back to sleep, dreaming of tiny sheep on meth.
[This story brought to you by the USA Egg Council, reminding you that you too can have fever-induced dreams caused by runny eggs eaten at your favorite local Mexican restaurant if you so desire.]
Linux 2.6.32.21
I'm announcing the release of the 2.6.32.21 kernel.
All users of the 2.6.32 kernel series must upgrade.
The updated 2.6.32.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.32.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.32.y.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/arm/include/asm/ptrace.h | 17 +++- arch/powerpc/Makefile | 2 arch/sparc/include/asm/atomic_64.h | 10 +- arch/sparc/include/asm/parport.h | 4 arch/sparc/include/asm/rwsem-const.h | 2 arch/x86/Kconfig | 5 + arch/x86/kernel/apic/apic.c | 41 ++++++++-- arch/x86/kernel/apic/io_apic.c | 2 arch/x86/kernel/smpboot.c | 19 ++++ arch/x86/oprofile/nmi_int.c | 17 +++- drivers/gpu/drm/drm_drv.c | 4 drivers/gpu/drm/i915/i915_gem.c | 3 drivers/gpu/drm/i915/intel_display.c | 1 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 2 drivers/hwmon/pc87360.c | 31 ++++--- drivers/isdn/sc/ioctl.c | 10 +- drivers/md/dm-ioctl.c | 44 ++++++---- drivers/md/dm-mpath.c | 1 drivers/memstick/core/mspro_block.c | 5 - drivers/mtd/nand/pxa3xx_nand.c | 2 drivers/net/wireless/ath/ath5k/base.c | 21 +++++ drivers/pcmcia/pcmcia_resource.c | 5 - drivers/usb/host/xhci-ring.c | 2 drivers/usb/serial/cp210x.c | 4 drivers/usb/serial/ftdi_sio.c | 5 - drivers/usb/serial/ftdi_sio_ids.h | 9 ++ drivers/usb/serial/io_ti.c | 2 drivers/usb/serial/navman.c | 1 drivers/usb/serial/option.c | 7 + drivers/usb/serial/pl2303.c | 1 drivers/usb/serial/pl2303.h | 4 drivers/video/sunxvr500.c | 24 ++++- firmware/Makefile | 2 fs/ext4/balloc.c | 3 fs/ext4/ext4.h | 2 fs/ext4/extents.c | 4 fs/ext4/mballoc.h | 2 fs/nfs/super.c | 7 + fs/ocfs2/acl.c | 33 ++++++-- fs/ocfs2/dlm/dlmmaster.c | 9 -- fs/ocfs2/dlm/dlmrecovery.c | 22 ++--- fs/ocfs2/dlm/dlmthread.c | 114 +++++++++++++--------------- fs/ocfs2/refcounttree.c | 20 +++- include/linux/mm_types.h | 2 include/sound/emu10k1.h | 1 kernel/fork.c | 7 + mm/memory.c | 15 ++- mm/mlock.c | 21 +++-- mm/mmap.c | 21 ++++- mm/nommu.c | 7 + mm/slab.c | 4 mm/vmscan.c | 53 +++++++++++-- net/can/bcm.c | 41 ++++++---- net/core/dev.c | 2 net/netlink/af_netlink.c | 46 +++-------- net/sched/act_nat.c | 2 scripts/mkmakefile | 4 sound/core/pcm_native.c | 4 sound/pci/emu10k1/emu10k1.c | 4 sound/pci/emu10k1/emupcm.c | 30 ++++++- sound/pci/emu10k1/memory.c | 4 sound/pci/hda/patch_realtek.c | 1 sound/pci/intel8x0.c | 6 + sound/pci/riptide/riptide.c | 11 +- sound/soc/codecs/wm8580.c | 6 - sound/soc/codecs/wm8776.c | 7 - 67 files changed, 553 insertions(+), 273 deletions(-)
Akinobu Mita (1):
ext4: consolidate in_range() definitions
Alasdair G Kergon (1):
dm mpath: fix NULL pointer dereference when path parameters missing
Alex Deucher (1):
drm/radeon/kms: fix typo in radeon_compute_pll_gain
Anatolij Gustschin (1):
powerpc: Fix typo in uImage target
Axel Lin (1):
pxa3xx: fix ns2cycle equation
Borislav Petkov (1):
x86, hotplug: Serialize CPU hotplug to avoid bringup concurrency issues
Carsten Otte (1):
slab: fix object alignment
Changli Gao (1):
act_nat: the checksum of ICMP doesn't have pseudo header
Chris Wilson (1):
drm/i915/edp: Flush the write before waiting for PLLs
Craig Shelley (1):
USB: CP210x Fix Break On/Off
Dan Carpenter (1):
isdn: fix information leak
Daniel Kiper (1):
x86, apic: Fix apic=debug boot crash
Daniel T Chen (1):
ALSA: intel8x0: Mute External Amplifier by default for ThinkPad X31
Dave Airlie (1):
drm: stop information leak of old kernel stack.
David S. Miller (4):
sunxvr500: Ignore secondary output PCI devices.
sparc64: Add missing ID to parport probing code.
sparc64: Fix rwsem constant bug leading to hangs.
sparc64: Fix atomic64_t routine return values.
Dominik Brodowski (1):
pcmcia: avoid buffer overflow in pcmcia_setup_isa_irq
Galen Seitz (1):
USB: ftdi_sio: add product ID for Lenz LI-USB
Greg Kroah-Hartman (2):
USB: io_ti: check firmware version before updating Linux 2.6.32.21
Jan Beulich (1):
fixes for using make 3.82
Jarek Poplawski (1):
net: Fix a memmove bug in dev_gro_receive()
Jaroslav Kysela (1):
ALSA: emu10k1 - delay the PCM interrupts (add pcm_irq_delay parameter)
Jean Delvare (1):
hwmon: (pc87360) Fix device resource declaration
Jef Driesen (1):
USB: pl2303: New vendor and product id
Jiaju Zhang (1):
Fix the nested PR lock calling issue in ACL
Johannes Berg (1):
netlink: fix compat recvmsg
John Villalovos (1):
Oprofile: Change CPUIDS from decimal to hex, and add some comments
John Youn (1):
USB: xhci: Remove buggy assignment in next_trb()
Jonathan Woithe (1):
ALSA: hda - Fix missing stream for second ADC on Realtek ALC260 HDA codec
Josh Hunt (1):
oprofile: add support for Intel processor model 30
Kerstin Jonsson (1):
x86, apic: ack all pending irqs when crashed/on kexec
Kiyoshi Ueda (1):
dm ioctl: release _hash_lock between devices in remove_all
Linus Torvalds (5):
mm: make the vma list be doubly linked
mm: make the mlock() stack guard page checks stricter
mm: make stack guard page logic use vm_prev pointer drm/i915: fix hibernation since i915 self-reclaim fixes drm/i915: add 'reclaimable' to i915 self-reclaimable page allocations
Mark Brown (2):
ASoC: Fix inverted mute controls for WM8580
ASoC: Remove DSP mode support for WM8776
Martin Michlmayr (1):
USB: ftdi_sio: Add ID for Ionics PlugComputer
Maxim Levitsky (2):
memstick: fix hangs on unexpected device removal in mspro_blk
ath5k: disable ASPM L0s for all cards
Michael Tokarev (1):
USB: option: add Celot CT-650
Michael Wileczka (1):
USB: ftdi_sio: fix endianess of max packet size
Oliver Hartkopp (1):
can: add limit for nframes and clean up signed/unsigned variables
Patrick J. LoPresti (1):
nfs: Add "lookupcache" to displayed mount options
Ross Burton (1):
USB: add device IDs for igotu to navman
Russell King (1):
ARM: Tighten check for allowable CPSR values
Srinivas Eeda (1):
ocfs2 fix o2dlm dlm run purgelist (rev 3)
Takashi Iwai (1):
ALSA: riptide - Fix detection / load of firmware files
Tao Ma (1):
ocfs2: Count more refcount records in file system fragmentation.
Tiger Yang (1):
ocfs2: do not overwrite error codes in ocfs2_init_acl
Wengang Wang (3):
ocfs2/dlm: fix a dead lock
ocfs2/dlm: avoid incorrect bit set in refmap on recovery master ocfs2/dlm: remove potential deadlock -V3
Wu Fengguang (1):
vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
Linux 2.6.34.6
In reply to Greg KHI'm announcing the release of the 2.6.34.6 kernel.
All users of the 2.6.34 kernel series must upgrade.
As Og noted, this is the last .34 kernel being released, please move to .35 at this point if you are relying on this kernel series.
The updated 2.6.34.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.34.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.34.y.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/arm/include/asm/ptrace.h | 17 +++- arch/arm/mach-ixp4xx/ixdp425-setup.c | 1 arch/arm/mach-mx3/mach-qong.c | 1 arch/arm/mach-orion5x/ts78xx-setup.c | 1 arch/blackfin/mach-bf537/boards/stamp.c | 1 arch/blackfin/mach-bf561/boards/acvilon.c | 1 arch/powerpc/Makefile | 2 arch/sparc/include/asm/atomic_64.h | 10 +- arch/sparc/include/asm/parport.h | 4 arch/sparc/include/asm/rwsem-const.h | 2 arch/x86/Kconfig | 5 + arch/x86/include/asm/cmpxchg_32.h | 67 ++++------------ arch/x86/include/asm/cmpxchg_64.h | 4 arch/x86/kernel/apic/apic.c | 41 ++++++++-- arch/x86/kernel/apic/io_apic.c | 2 arch/x86/kernel/smpboot.c | 19 ++++ arch/x86/oprofile/nmi_int.c | 17 +++- drivers/gpu/drm/drm_drv.c | 4 drivers/gpu/drm/i915/intel_display.c | 23 +++-- drivers/gpu/drm/radeon/radeon_atombios.c | 16 +++ drivers/gpu/drm/radeon/radeon_device.c | 2 drivers/gpu/drm/radeon/radeon_i2c.c | 7 + drivers/gpu/drm/radeon/radeon_irq_kms.c | 5 - drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 2 drivers/hwmon/pc87360.c | 31 ++++--- drivers/isdn/gigaset/capi.c | 17 ++-- drivers/isdn/sc/ioctl.c | 10 +- drivers/md/dm-exception-store.c | 4 drivers/md/dm-exception-store.h | 3 drivers/md/dm-ioctl.c | 44 ++++++---- drivers/md/dm-mpath.c | 1 drivers/md/dm-snap.c | 44 ++++++---- drivers/md/dm.c | 1 drivers/memstick/core/mspro_block.c | 6 - drivers/mtd/nand/pxa3xx_nand.c | 2 drivers/net/e1000e/82571.c | 31 ++++--- drivers/net/e1000e/defines.h | 4 drivers/net/e1000e/lib.c | 10 ++ drivers/net/wireless/ath/ath5k/base.c | 21 +++++ drivers/net/wireless/wl12xx/wl1251_cmd.c | 2 drivers/pcmcia/pcmcia_resource.c | 5 - drivers/platform/x86/compal-laptop.c | 9 ++ drivers/platform/x86/dell-laptop.c | 7 + drivers/regulator/wm8994-regulator.c | 5 - drivers/usb/host/xhci-ring.c | 2 drivers/usb/serial/cp210x.c | 4 drivers/usb/serial/ftdi_sio.c | 5 - drivers/usb/serial/ftdi_sio_ids.h | 9 ++ drivers/usb/serial/io_ti.c | 2 drivers/usb/serial/navman.c | 1 drivers/usb/serial/option.c | 7 + drivers/usb/serial/pl2303.c | 1 drivers/usb/serial/pl2303.h | 4 drivers/video/matrox/matroxfb_base.h | 4 firmware/Makefile | 2 fs/nfs/super.c | 7 + fs/nilfs2/super.c | 4 fs/ocfs2/acl.c | 33 ++++++-- fs/ocfs2/dlm/dlmmaster.c | 9 -- fs/ocfs2/dlm/dlmrecovery.c | 22 ++--- fs/ocfs2/dlm/dlmthread.c | 114 +++++++++++++--------------- fs/ocfs2/refcounttree.c | 20 +++- include/linux/mm_types.h | 2 include/sound/emu10k1.h | 1 include/trace/events/timer.h | 8 + kernel/fork.c | 7 + kernel/trace/ring_buffer.c | 3 kernel/trace/trace_functions_graph.c | 10 ++ mm/memory.c | 15 ++- mm/mlock.c | 21 +++-- mm/mmap.c | 21 ++++- mm/nommu.c | 7 + mm/slab.c | 4 mm/vmscan.c | 53 +++++++++++-- net/bridge/br_device.c | 8 + net/bridge/br_fdb.c | 2 net/bridge/br_input.c | 6 - net/bridge/br_stp_bpdu.c | 2 net/can/bcm.c | 41 ++++++---- net/core/dev.c | 8 - net/ipv4/tcp.c | 7 + net/netlink/af_netlink.c | 46 +++-------- net/sched/act_nat.c | 2 net/sched/sch_sfq.c | 13 +++ net/wireless/mlme.c | 8 + scripts/mkmakefile | 4 sound/core/pcm_native.c | 4 sound/pci/emu10k1/emu10k1.c | 4 sound/pci/emu10k1/emupcm.c | 30 ++++++- sound/pci/emu10k1/memory.c | 4 sound/pci/hda/patch_conexant.c | 1 sound/pci/hda/patch_realtek.c | 1 sound/pci/intel8x0.c | 6 + sound/pci/riptide/riptide.c | 11 +- sound/soc/codecs/wm8580.c | 6 - sound/soc/codecs/wm8776.c | 7 - sound/soc/soc-cache.c | 4 98 files changed, 754 insertions(+), 386 deletions(-)
Alasdair G Kergon (1):
dm mpath: fix NULL pointer dereference when path parameters missing
Alex Deucher (5):
drm/radeon/kms: add additional quirk for Acer rv620 laptop drm/radeon/kms: don't enable MSIs on AGP boards drm/radeon/kms: fix typo in radeon_compute_pll_gain drm/radeon/kms/DCE3+: switch pads to ddc mode when going i2c drm/radeon/kms: fix sideport detection on newer rs880 boards
Anatolij Gustschin (1):
powerpc: Fix typo in uImage target
Arjan van de Ven (1):
tracing: Fix timer tracing
Axel Lin (1):
pxa3xx: fix ns2cycle equation
Ben Greear (1):
net: dev_forward_skb should call nf_reset
Borislav Petkov (1):
x86, hotplug: Serialize CPU hotplug to avoid bringup concurrency issues
Bruce Allan (2):
e1000e: disable ASPM L1 on 82573
e1000e: don't check for alternate MAC addr on parts that don't support it
Carsten Otte (1):
slab: fix object alignment
Changli Gao (1):
act_nat: the checksum of ICMP doesn't have pseudo header
Chris Wilson (1):
drm/i915/edp: Flush the write before waiting for PLLs
Cliff Cai (1):
ASoC: register cache should be 1 byte aligned for 1 byte long register
Craig Shelley (1):
USB: CP210x Fix Break On/Off
Dan Carpenter (2):
isdn: fix information leak
isdn: gigaset: add missing unlock
Daniel Kiper (1):
x86, apic: Fix apic=debug boot crash
Daniel T Chen (1):
ALSA: intel8x0: Mute External Amplifier by default for ThinkPad X31
Daniel Vetter (2):
drm/i915: fixup pageflip ringbuffer commands for i8xx drm/i915: i8xx also doesn't like multiple oustanding pageflips
Dave Airlie (1):
drm: stop information leak of old kernel stack.
David S. Miller (3):
sparc64: Fix atomic64_t routine return values.
sparc64: Add missing ID to parport probing code.
sparc64: Fix rwsem constant bug leading to hangs.
Dmitry Popov (1):
tcp: cookie transactions setsockopt memory leak
Dominik Brodowski (1):
pcmcia: avoid buffer overflow in pcmcia_setup_isa_irq
Galen Seitz (1):
USB: ftdi_sio: add product ID for Lenz LI-USB
Greg Kroah-Hartman (2):
USB: io_ti: check firmware version before updating Linux 2.6.34.6
H. Peter Anvin (1):
x86, asm: Clean up and simplify set_64bit()
Herbert Xu (1):
bridge: Fix skb leak when multicast parsing fails on TX
Huang Ying (1):
tracing: Fix ring_buffer_read_page reading out of page boundary
Jan Beulich (1):
fixes for using make 3.82
Jarek Poplawski (4):
net: Fix napi_gro_frags vs netpoll path
net: Fix a memmove bug in dev_gro_receive()
pkt_sched: Fix sch_sfq vs tcf_bind_filter oops
pkt_sched: Fix sch_sfq vs tc_modify_qdisc oops
Jaroslav Kysela (1):
ALSA: emu10k1 - delay the PCM interrupts (add pcm_irq_delay parameter)
Jean Delvare (1):
hwmon: (pc87360) Fix device resource declaration
Jef Driesen (1):
USB: pl2303: New vendor and product id
Jerome Glisse (1):
drm/radeon/kms: fix GTT/VRAM overlapping test
Jiaju Zhang (1):
Fix the nested PR lock calling issue in ACL
Johannes Berg (2):
cfg80211: fix locking in action frame TX
netlink: fix compat recvmsg
John Villalovos (1):
Oprofile: Change CPUIDS from decimal to hex, and add some comments
John Youn (1):
USB: xhci: Remove buggy assignment in next_trb()
Jonathan Woithe (1):
ALSA: hda - Fix missing stream for second ADC on Realtek ALC260 HDA codec
Joonyoung Shim (1):
regulator: Default GPIO controlled WM8994 regulators to disabled
Josh Hunt (1):
oprofile: add support for Intel processor model 30
Kerstin Jonsson (1):
x86, apic: ack all pending irqs when crashed/on kexec
Kiyoshi Ueda (2):
dm: prevent access to md being deleted
dm ioctl: release _hash_lock between devices in remove_all
Linus Torvalds (3):
mm: make the vma list be doubly linked
mm: make the mlock() stack guard page checks stricter
mm: make stack guard page logic use vm_prev pointer
Marek Vasut (2):
ARM: Fix gen_nand probe structures contents
BFIN: Fix gen_nand probe structures contents
Mark Brown (2):
ASoC: Fix inverted mute controls for WM8580
ASoC: Remove DSP mode support for WM8776
Martin Michlmayr (1):
USB: ftdi_sio: Add ID for Ionics PlugComputer
Maxim Levitsky (3):
memstick: init sysfs attributes
memstick: fix hangs on unexpected device removal in mspro_blk
ath5k: disable ASPM L0s for all cards
Michael Tokarev (1):
USB: option: add Celot CT-650
Michael Wileczka (1):
USB: ftdi_sio: fix endianess of max packet size
Mikulas Patocka (2):
dm snapshot: iterate origin and cow devices
dm snapshot: test chunk size against both origin and snapshot
Oliver Hartkopp (1):
can: add limit for nframes and clean up signed/unsigned variables
Ondrej Zary (1):
matroxfb: fix incorrect use of memcpy_toio()
Patrick J. LoPresti (1):
nfs: Add "lookupcache" to displayed mount options
Ross Burton (1):
USB: add device IDs for igotu to navman
Russell King (1):
ARM: Tighten check for allowable CPSR values
Ryusuke Konishi (1):
nilfs2: fix list corruption after ifile creation failure
Shaohua Li (1):
tracing: Fix an unallocated memory access in function_graph
Srinivas Eeda (1):
ocfs2 fix o2dlm dlm run purgelist (rev 3)
Stephen Hemminger (1):
bridge: add rcu_read_lock on transmit
Takashi Iwai (2):
ALSA: riptide - Fix detection / load of firmware files
ALSA: hda - Add quirk for Dell Vostro 1220
Tao Ma (1):
ocfs2: Count more refcount records in file system fragmentation.
Tiger Yang (1):
ocfs2: do not overwrite error codes in ocfs2_init_acl
Tilman Schmidt (1):
isdn/gigaset: reduce syslog spam
Victor van den Elzen (1):
platform/x86: move rfkill for Dell Mini 1012 to compal-laptop
Wengang Wang (3):
ocfs2/dlm: fix a dead lock
ocfs2/dlm: avoid incorrect bit set in refmap on recovery master ocfs2/dlm: remove potential deadlock -V3
Wu Fengguang (1):
vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
Yuri Kululin (1):
wl1251: fix trigger scan timeout usage
Re: Linux 2.6.32.21
In reply to Greg KHMakefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 32 -EXTRAVERSION = .20 +EXTRAVERSION = .21 NAME = Man-Eating Seals of Antiquity # *DOCUMENTATION*
arch/arm/include/asm/ptrace.h +13 -4
@@ -150,15 +150,24 @@ struct pt_regs {*/ static inline int valid_user_regs (struct pt_regs *regs) { -if (user_mode (regs) && (regs->ARM_cpsr &PSR_I_BIT ) ==0 ) { - regs->ARM_cpsr &= ~(PSR_F_BIT |PSR_A_BIT ); -return 1 ; +unsigned long mode = regs->ARM_cpsr &MODE_MASK ; + +/* +* Always clear the F (FIQ) and A (delayed abort) bits +*/ + regs->ARM_cpsr &= ~(PSR_F_BIT |PSR_A_BIT ); + +if ((regs->ARM_cpsr &PSR_I_BIT ) ==0 ) { +if (mode ==USR_MODE ) +return 1 ; +if (elf_hwcap &HWCAP_26BIT && mode ==USR26_MODE ) +return 1 ; }/* * Force CPSR to something logical... */ - regs->ARM_cpsr &= PSR_f | PSR_s | (PSR_x & ~PSR_A_BIT ) |PSR_T_BIT |MODE32_BIT ; + regs->ARM_cpsr &= PSR_f | PSR_s | PSR_x |PSR_T_BIT |MODE32_BIT ;if (!(elf_hwcap &HWCAP_26BIT )) regs->ARM_cpsr |=USR_MODE ;
arch/powerpc/Makefile +1 -1
@@ -159,7 +159,7 @@ drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ all: zImage # With make 3.82 we cannot mix normal and wildcard targets -BOOT_TARGETS1 := zImage zImage.initrd uImaged +BOOT_TARGETS1 := zImage zImage.initrd uImage BOOT_TARGETS2 := zImage% dtbImage% treeImage.% cuImage.% simpleImage.% PHONY += $(BOOT_TARGETS1) $(BOOT_TARGETS2)
arch/sparc/include/asm/atomic_64.h +5 -5
@@ -20,14 +20,14 @@#define atomic64_set (v, i) (((v)->counter) = i)extern void atomic_add (int ,atomic_t *); -extern void atomic64_add (int ,atomic64_t *); +extern void atomic64_add (long ,atomic64_t *);extern void atomic_sub (int ,atomic_t *); -extern void atomic64_sub (int ,atomic64_t *); +extern void atomic64_sub (long ,atomic64_t *);extern int atomic_add_ret (int ,atomic_t *); -extern int atomic64_add_ret (int ,atomic64_t *); +extern long atomic64_add_ret (long ,atomic64_t *);extern int atomic_sub_ret (int ,atomic_t *); -extern int atomic64_sub_ret (int ,atomic64_t *); +extern long atomic64_sub_ret (long ,atomic64_t *);#define atomic_dec_return (v) atomic_sub_ret(1, v)#define atomic64_dec_return (v) atomic64_sub_ret(1, v)
@@ -91,7 +91,7 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u) ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))#define atomic64_xchg (v, new) (xchg(&((v)->counter), new)) -static inline int atomic64_add_unless (atomic64_t *v,long a,long u) +static inline long atomic64_add_unless (atomic64_t *v,long a,long u) {long c, old; c =atomic64_read (v);
arch/sparc/include/asm/parport.h +4 -0
@@ -228,6 +228,10 @@ static const struct of_device_id ecpp_match[] = { .name = "parallel", .compatible = "ns87317-ecpp", }, + { + .name = "parallel", + .compatible = "pnpALI,1533,3", + }, {}, };
arch/sparc/include/asm/rwsem-const.h +1 -1
@@ -5,7 +5,7 @@#define RWSEM_UNLOCKED_VALUE 0x00000000#define RWSEM_ACTIVE_BIAS 0x00000001#define RWSEM_ACTIVE_MASK 0x0000ffff -#define RWSEM_WAITING_BIAS 0xffff0000 +#define RWSEM_WAITING_BIAS (-0x00010000)#define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS#define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
arch/x86/Kconfig +5 -0
@@ -227,6 +227,11 @@ config X86_32_LAZY_GS config KTIME_SCALAR def_bool X86_32 + +config ARCH_CPU_PROBE_RELEASE + def_bool y + depends on HOTPLUG_CPU + source "init/Kconfig" source "kernel/Kconfig.freezer"
arch/x86/kernel/apic/apic.c +33 -8
60 lines not on this page · raw message
arch/x86/kernel/apic/io_apic.c +2 -0
@@ -1736,6 +1736,8 @@ __apicdebuginit(void) print_IO_APIC(void)struct irq_pin_list *entry; cfg = desc->chip_data; +if (!cfg) +continue ; entry = cfg->irq_2_pin;if (!entry)continue ;
arch/x86/kernel/smpboot.c +19 -0
@@ -88,6 +88,25 @@ DEFINE_PER_CPU(int, cpu_state) = { 0 }; static DEFINE_PER_CPU(struct task_struct *, idle_thread_array);#define get_idle_for_cpu (x) (per_cpu(idle_thread_array, x))#define set_idle_for_cpu (x, p) (per_cpu(idle_thread_array, x) = (p)) + +/* +* We need this for trampoline_base protection from concurrent accesses when +* off- and onlining cores wildly. +*/ +static DEFINE_MUTEX (x86_cpu_hotplug_driver_mutex); + +void cpu_hotplug_driver_lock () +{ +mutex_lock (&x86_cpu_hotplug_driver_mutex); +} + +void cpu_hotplug_driver_unlock () +{ +mutex_unlock (&x86_cpu_hotplug_driver_mutex); +} + +ssize_t arch_cpu_probe (const char *buf,size_t count) {return -1 ; } +ssize_t arch_cpu_release (const char *buf,size_t count) {return -1 ; }#else static struct task_struct *idle_thread_array[NR_CPUS ]__cpuinitdata ;#define get_idle_for_cpu (x) (idle_thread_array[(x)])
arch/x86/oprofile/nmi_int.c +15 -2
@@ -584,6 +584,18 @@ static int __init ppro_init(char **cpu_type)if (force_arch_perfmon && cpu_has_arch_perfmon)return 0 ; +/* +* Documentation on identifying Intel processors by CPU family +* and model can be found in the Intel Software Developer's +* Manuals (SDM): +* +* http://www.intel.com/products/processor/manuals/ +* +* As of May 2010 the documentation for this was in the: +* "Intel 64 and IA-32 Architectures Software Developer's +* Manual Volume 3B: System Programming Guide", "Table B-1 +* CPUID Signature Values of DisplayFamily_DisplayModel". +*/ switch (cpu_model) { case 0 ... 2: *cpu_type ="i386/ppro" ;
@@ -605,12 +617,13 @@ static int __init ppro_init(char **cpu_type)case 15 :case 23 : *cpu_type ="i386/core_2" ;break ; +case 0x1a : +case 0x1e :case 0x2e : -case 26 : spec = &op_arch_perfmon_spec; *cpu_type ="i386/core_i7" ;break ; -case 28 : +case 0x1c : *cpu_type ="i386/atom" ;break ;default :
drivers/gpu/drm/drm_drv.c +3 -1
@@ -470,7 +470,9 @@ int drm_ioctl(struct inode *inode, struct file *filp, retcode = -EFAULT ; goto err_i1; } - } + }else +memset (kdata,0 ,_IOC_SIZE (cmd)); + retcode =func (dev, kdata, file_priv);if (cmd &IOC_OUT ) {
drivers/gpu/drm/i915/i915_gem.c +2 -1
@@ -2262,8 +2262,9 @@ i915_gem_object_get_pages(struct drm_gem_object *obj, mapping = inode->i_mapping;for (i =0 ; i < page_count; i++) { page =read_cache_page_gfp (mapping, i, -mapping_gfp_mask (mapping) | +GFP_HIGHUSER | __GFP_COLD | + __GFP_RECLAIMABLE | gfpmask);if (IS_ERR (page)) goto err_pages;
drivers/gpu/drm/i915/intel_display.c +1 -0
@@ -1402,6 +1402,7 @@ static void igdng_enable_pll_edp (struct drm_crtc *crtc) dpa_ctl =I915_READ (DP_A ); dpa_ctl |=DP_PLL_ENABLE ;I915_WRITE (DP_A , dpa_ctl); +POSTING_READ (DP_A );udelay (200 ); }
drivers/gpu/drm/radeon/radeon_legacy_crtc.c +1 -1
@@ -261,7 +261,7 @@ static uint8_t radeon_compute_pll_gain(uint16_t ref_freq, uint16_t ref_div,if (!ref_div)return 1 ; - vcoFreq = ((unsigned )ref_freq & fb_div) / ref_div; + vcoFreq = ((unsigned )ref_freq * fb_div) / ref_div;/* * This is horribly crude: the VCO frequency range is divided into
drivers/hwmon/pc87360.c +17 -14
@@ -1610,11 +1610,8 @@ static struct pc87360_data *pc87360_update_device(struct device *dev)static int __init pc87360_device_add (unsigned short address) { -struct resource res = { - .name ="pc87360" , - .flags =IORESOURCE_IO , - }; -int err, i; +struct resource res[3 ]; +int err, i, res_count; pdev =platform_device_alloc ("pc87360" , address);if (!pdev) {
@@ -1623,22 +1620,28 @@ static int __init pc87360_device_add(unsigned short address) goto exit; } +memset (res,0 ,3 *sizeof (struct resource )); + res_count =0 ;for (i =0 ; i <3 ; i++) {if (!extra_isa[i])continue ; - res.start = extra_isa[i]; - res.end = extra_isa[i] +PC87360_EXTENT -1 ; + res[res_count].start = extra_isa[i]; + res[res_count].end = extra_isa[i] +PC87360_EXTENT -1 ; + res[res_count].name ="pc87360" , + res[res_count].flags =IORESOURCE_IO , - err =acpi_check_resource_conflict (&res); + err =acpi_check_resource_conflict (&res[res_count]);if (err) goto exit_device_put; - err =platform_device_add_resources (pdev, &res,1 ); -if (err) { -printk (KERN_ERR "pc87360: Device resource[%d] " -"addition failed (%d)\n" , i, err); - goto exit_device_put; - } + res_count++; + } + + err =platform_device_add_resources (pdev, res, res_count); +if (err) { +printk (KERN_ERR "pc87360: Device resources addition failed " +"(%d)\n" , err); + goto exit_device_put; } err =platform_device_add (pdev);
drivers/isdn/sc/ioctl.c +5 -5
@@ -174,7 +174,7 @@ int sc_ioctl(int card, scs_ioctl *data)pr_debug ("%s: SCIOGETSPID: ioctl received\n" , sc_adapter[card]->devicename); - spid =kmalloc (SCIOC_SPIDSIZE ,GFP_KERNEL ); + spid =kzalloc (SCIOC_SPIDSIZE ,GFP_KERNEL );if (!spid) {kfree (rcvmsg);return -ENOMEM ;
@@ -194,7 +194,7 @@ int sc_ioctl(int card, scs_ioctl *data)kfree (rcvmsg);return status; } -strcpy (spid, rcvmsg->msg_data.byte_array); +strlcpy (spid, rcvmsg->msg_data.byte_array,SCIOC_SPIDSIZE );/* * Package the switch type and send to user space
@@ -272,12 +272,12 @@ int sc_ioctl(int card, scs_ioctl *data)return status; } - dn =kmalloc (SCIOC_DNSIZE ,GFP_KERNEL ); + dn =kzalloc (SCIOC_DNSIZE ,GFP_KERNEL );if (!dn) {kfree (rcvmsg);return -ENOMEM ; } -strcpy (dn, rcvmsg->msg_data.byte_array); +strlcpy (dn, rcvmsg->msg_data.byte_array,SCIOC_DNSIZE );kfree (rcvmsg);/*
@@ -348,7 +348,7 @@ int sc_ioctl(int card, scs_ioctl *data)pr_debug ("%s: SCIOSTAT: ioctl received\n" , sc_adapter[card]->devicename); - bi =kmalloc (sizeof (boardInfo),GFP_KERNEL ); + bi =kzalloc (sizeof (boardInfo),GFP_KERNEL );if (!bi) {kfree (rcvmsg);return -ENOMEM ;
drivers/md/dm-ioctl.c +25 -19
65 lines not on this page · raw message
drivers/md/dm-mpath.c +1 -0
@@ -691,6 +691,7 @@ static struct priority_group *parse_priority_group(struct arg_set *as,if (as->argc < nr_params) { ti->error ="not enough path parameters" ; + r = -EINVAL ; goto bad; }
drivers/memstick/core/mspro_block.c +3 -2
@@ -1330,13 +1330,14 @@ static void mspro_block_remove(struct memstick_dev *card)struct mspro_block_data *msb =memstick_get_drvdata (card);unsigned long flags; -del_gendisk (msb->disk); -dev_dbg (&card->dev,"mspro block remove\n" );spin_lock_irqsave (&msb->q_lock, flags); msb->eject =1 ;blk_start_queue (msb->queue);spin_unlock_irqrestore (&msb->q_lock, flags); +del_gendisk (msb->disk); +dev_dbg (&card->dev,"mspro block remove\n" ); +blk_cleanup_queue (msb->queue); msb->queue =NULL ;
drivers/mtd/nand/pxa3xx_nand.c +1 -1
@@ -316,7 +316,7 @@ static struct pxa3xx_nand_flash *builtin_flash_types[] = {#define tAR_NDTR1 (r) (((r) >> 0) & 0xf)/* convert nano-seconds to nand flash controller clock cycles */ -#define ns2cycle (ns, clk) (int)(((ns) * (clk / 1000000) / 1000) - 1) +#define ns2cycle (ns, clk) (int)((ns) * (clk / 1000000) / 1000)/* convert nand flash controller clock cycles to nano-seconds */ #define cycle2ns (c, clk) ((((c) + 1) * 1000000 + clk / 500) / (clk / 1000))
drivers/net/wireless/ath/ath5k/base.c +21 -0
@@ -48,6 +48,7 @@#include <linux/netdevice.h> #include <linux/cache.h> #include <linux/pci.h> +#include <linux/pci-aspm.h> #include <linux/ethtool.h> #include <linux/uaccess.h>
@@ -448,6 +449,26 @@ ath5k_pci_probe(struct pci_dev *pdev,int ret;u8 csz; +/* +* L0s needs to be disabled on all ath5k cards. +* +* For distributions shipping with CONFIG_PCIEASPM (this will be enabled +* by default in the future in 2.6.36) this will also mean both L1 and +* L0s will be disabled when a pre 1.1 PCIe device is detected. We do +* know L1 works correctly even for all ath5k pre 1.1 PCIe devices +* though but cannot currently undue the effect of a blacklist, for +* details you can read pcie_aspm_sanity_check() and see how it adjusts +* the device link capability. +* +* It may be possible in the future to implement some PCI API to allow +* drivers to override blacklists for pre 1.1 PCIe but for now it is +* best to accept that both L0s and L1 will be disabled completely for +* distributions shipping with CONFIG_PCIEASPM rather than having this +* issue present. Motivation for adding this new API will be to help +* with power consumption for some of these devices. +*/ +pci_disable_link_state (pdev,PCIE_LINK_STATE_L0S ); + ret =pci_enable_device (pdev);if (ret) {dev_err (&pdev->dev,"can't enable device\n" );
drivers/pcmcia/pcmcia_resource.c +4 -1
@@ -39,7 +39,7 @@ module_param(io_speed, int, 0444);#ifdef CONFIG_PCMCIA_PROBE #include <asm/irq.h> /* mask of IRQs already reserved by other cards, we should avoid using them */ -static u8 pcmcia_used_irq[NR_IRQS ]; +static u8 pcmcia_used_irq[32 ];#endif
@@ -719,6 +719,9 @@ int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req)for (try =0 ; try <64 ; try++) { irq = try %32 ; +if (irq >NR_IRQS ) +continue ; +/* marked as available by driver, and not blocked by userspace? */ if (!((mask >> irq) &1 ))continue ;
drivers/usb/host/xhci-ring.c +1 -1
@@ -124,7 +124,7 @@ static void next_trb(struct xhci_hcd *xhci, *seg = (*seg)->next; *trb = ((*seg)->trbs); }else { - *trb = (*trb)++; + (*trb)++; } }
drivers/usb/serial/cp210x.c +2 -2
@@ -223,8 +223,8 @@ static struct usb_serial_driver cp210x_device = {#define BITS_STOP_2 0x0002/* CP210X_SET_BREAK */ -#define BREAK_ON 0x0000 -#define BREAK_OFF 0x0001 +#define BREAK_ON 0x0001 +#define BREAK_OFF 0x0000/* CP210X_(SET_MHS|GET_MDMSTS) */ #define CONTROL_DTR 0x0001
drivers/usb/serial/ftdi_sio.c +4 -1
@@ -185,6 +185,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SPROG_II) }, + { USB_DEVICE(FTDI_VID, FTDI_LENZ_LIUSB_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_632_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_634_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_547_PID) },
@@ -756,6 +757,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, XVERVE_SIGNALYZER_SH4_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { USB_DEVICE(FTDI_VID, SEGWAY_RMP200_PID) }, + { USB_DEVICE(IONICS_VID, IONICS_PLUGCOMPUTER_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { }, /* Optional parameter entry */ { }/* Terminating entry */ };
@@ -1410,7 +1413,7 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port) }/* set max packet size based on descriptor */ - priv->max_packet_size = ep_desc->wMaxPacketSize; + priv->max_packet_size =le16_to_cpu (ep_desc->wMaxPacketSize);dev_info (&udev->dev,"Setting MaxPacketSize %d\n" , priv->max_packet_size); }
drivers/usb/serial/ftdi_sio_ids.h +9 -0
@@ -110,6 +110,9 @@/* Propox devices */ #define FTDI_PROPOX_JTAGCABLEII_PID 0xD738 +/* Lenz LI-USB Computer Interface. */ +#define FTDI_LENZ_LIUSB_PID 0xD780 +/* * Xsens Technologies BV products (http://www.xsens.com). */
@@ -996,6 +999,12 @@#define ALTI2_N3_PID 0x6001/* Neptune 3 */ /* +* Ionics PlugComputer +*/ +#define IONICS_VID 0x1c0c +#define IONICS_PLUGCOMPUTER_PID 0x0102 + +/* * Dresden Elektronic Sensor Terminal Board */ #define DE_VID 0x1cf1/* Vendor ID */
drivers/usb/serial/io_ti.c +1 -1
@@ -1157,7 +1157,7 @@ static int download_fw(struct edgeport_serial *serial)/* Check if we have an old version in the I2C and update if necessary */ -if (download_cur_ver != download_new_ver) { +if (download_cur_ver < download_new_ver) { dbg("%s - Update I2C dld from %d.%d to %d.%d", __func__, firmware_version->Ver_Major,
drivers/usb/serial/navman.c +1 -0
@@ -24,6 +24,7 @@ static int debug;static struct usb_device_id id_table [] = { {USB_DEVICE (0x0a99 ,0x0001 ) },/* Talon Technology device */ + {USB_DEVICE (0x0df7 ,0x0900 ) },/* Mobile Action i-gotU */ { }, };MODULE_DEVICE_TABLE (usb, id_table);
drivers/usb/serial/option.c +5 -2
@@ -375,6 +375,10 @@ static int option_resume(struct usb_serial *serial);#define OLIVETTI_VENDOR_ID 0x0b3c#define OLIVETTI_PRODUCT_OLICARD100 0xc000 +/* Celot products */ +#define CELOT_VENDOR_ID 0x211f +#define CELOT_PRODUCT_CT680M 0x6801 +static struct usb_device_id option_ids[] = { {USB_DEVICE (OPTION_VENDOR_ID ,OPTION_PRODUCT_COLT ) }, {USB_DEVICE (OPTION_VENDOR_ID ,OPTION_PRODUCT_RICOLA ) },
@@ -874,10 +878,9 @@ static struct usb_device_id option_ids[] = { { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_100F) }, { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_1011)}, { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_1012)}, - { USB_DEVICE(CINTERION_VENDOR_ID, 0x0047) }, - { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100) }, + { USB_DEVICE(CELOT_VENDOR_ID, CELOT_PRODUCT_CT680M) }, /* CT-650 CDMA 450 1xEVDO modem */ { } /* Terminating entry */ };MODULE_DEVICE_TABLE (usb, option_ids);
drivers/usb/serial/pl2303.c +1 -0
@@ -95,6 +95,7 @@ static struct usb_device_id id_table [] = { { USB_DEVICE(SUPERIAL_VENDOR_ID, SUPERIAL_PRODUCT_ID) }, { USB_DEVICE(HP_VENDOR_ID, HP_LD220_PRODUCT_ID) }, { USB_DEVICE(CRESSI_VENDOR_ID, CRESSI_EDY_PRODUCT_ID) }, + { USB_DEVICE(ZEAGLE_VENDOR_ID, ZEAGLE_N2ITION3_PRODUCT_ID) }, { USB_DEVICE(SONY_VENDOR_ID, SONY_QN3USB_PRODUCT_ID) }, { USB_DEVICE(SANWA_VENDOR_ID, SANWA_PRODUCT_ID) }, { } /* Terminating entry */
drivers/usb/serial/pl2303.h +4 -0
@@ -127,6 +127,10 @@#define CRESSI_VENDOR_ID 0x04b8#define CRESSI_EDY_PRODUCT_ID 0x0521 +/* Zeagle dive computer interface */ +#define ZEAGLE_VENDOR_ID 0x04b8 +#define ZEAGLE_N2ITION3_PRODUCT_ID 0x0522 +/* Sony, USB data cable for CMD-Jxx mobile phones */ #define SONY_VENDOR_ID 0x054c#define SONY_QN3USB_PRODUCT_ID 0x0437
drivers/video/sunxvr500.c +17 -7
@@ -242,11 +242,27 @@ static int __devinit e3d_set_fbinfo(struct e3d_info *ep)static int __devinit e3d_pci_register (struct pci_dev *pdev,const struct pci_device_id *ent) { +struct device_node *of_node; +const char *device_type;struct fb_info *info;struct e3d_info *ep;unsigned int line_length;int err; + of_node =pci_device_to_OF_node (pdev); +if (!of_node) { +printk (KERN_ERR "e3d: Cannot find OF node of %s\n" , +pci_name (pdev)); +return -ENODEV ; + } + + device_type =of_get_property (of_node,"device_type" ,NULL ); +if (!device_type) { +printk (KERN_INFO "e3d: Ignoring secondary output device " +"at %s\n" ,pci_name (pdev)); +return -ENODEV ; + } + err =pci_enable_device (pdev);if (err <0 ) { printk(KERN_ERR "e3d: Cannot enable PCI device %s\n",
@@ -265,13 +281,7 @@ static int __devinit e3d_pci_register(struct pci_dev *pdev, ep->info = info; ep->pdev = pdev;spin_lock_init (&ep->lock); - ep->of_node =pci_device_to_OF_node (pdev); -if (!ep->of_node) { -printk (KERN_ERR "e3d: Cannot find OF node of %s\n" , -pci_name (pdev)); - err = -ENODEV ; - goto err_release_fb; - } + ep->of_node = of_node;/* Read the PCI base register of the frame buffer, which we * need in order to interpret the RAMDAC_VID_*FB* values in
firmware/Makefile +1 -1
@@ -140,7 +140,7 @@ fw-shipped-$(CONFIG_YAM) += yam/1200.bin yam/9600.bin fw-shipped-all := $(fw-shipped-y) $(fw-shipped-m) $(fw-shipped-) # Directories which we _might_ need to create, so we have a rule for them. -firmware-dirs := $(sort $(patsubst %,$(objtree)/$(obj)/%/,$(dir $(fw-external-y) $(fw-shipped-all)))) +firmware-dirs := $(sort $(addprefix $(objtree)/$(obj)/,$(dir $(fw-external-y) $(fw-shipped-all)))) quiet_cmd_mkdir = MKDIR $(patsubst $(objtree)/%,%,$@) cmd_mkdir = mkdir -p $@
fs/ext4/balloc.c +0 -3
@@ -189,9 +189,6 @@ unsigned ext4_init_block_bitmap(struct super_block *sb, struct buffer_head *bh,* when a file system is mounted (see ext4_fill_super). */ - -#define in_range (b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) -/** * ext4_get_group_desc() -- load group descriptor from disk * @sb: super block
fs/ext4/ext4.h +2 -0
@@ -1888,6 +1888,8 @@ static inline void set_bitmap_uptodate(struct buffer_head *bh)set_bit (BH_BITMAP_UPTODATE , &(bh)->b_state); } +#define in_range (b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) +#endif /* __KERNEL__ */ #endif /* _EXT4_H */
fs/ext4/extents.c +2 -2
@@ -1948,7 +1948,7 @@ ext4_ext_in_cache(struct inode *inode, ext4_lblk_t block,BUG_ON (cex->ec_type !=EXT4_EXT_CACHE_GAP && cex->ec_type !=EXT4_EXT_CACHE_EXTENT ); -if (block >= cex->ec_block && block < cex->ec_block + cex->ec_len) { +if (in_range (block, cex->ec_block, cex->ec_len)) { ex->ee_block =cpu_to_le32 (cex->ec_block);ext4_ext_store_pblock (ex, cex->ec_start); ex->ee_len =cpu_to_le16 (cex->ec_len);
@@ -3302,7 +3302,7 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode,*/ ee_len =ext4_ext_get_actual_len (ex);/* if found extent covers block, simply return it */ -if (iblock >= ee_block && iblock < ee_block + ee_len) { +if (in_range (iblock, ee_block, ee_len)) { newblock = iblock - ee_block + ee_start;/* number of remaining blocks in the extent */ allocated = ee_len - (iblock - ee_block);
fs/ext4/mballoc.h +0 -2
@@ -221,8 +221,6 @@ struct ext4_buddy {#define EXT4_MB_BITMAP (e4b) ((e4b)->bd_bitmap)#define EXT4_MB_BUDDY (e4b) ((e4b)->bd_buddy) -#define in_range (b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) -static inline ext4_fsblk_t ext4_grp_offs_to_block (struct super_block *sb,struct ext4_free_extent *fex) {
fs/nfs/super.c +7 -0
@@ -616,6 +616,13 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,if (nfss->options &NFS_OPTION_FSCACHE )seq_printf (m,",fsc" ); + +if (nfss->flags &NFS_MOUNT_LOOKUP_CACHE_NONEG ) { +if (nfss->flags &NFS_MOUNT_LOOKUP_CACHE_NONE ) +seq_printf (m,",lookupcache=none" ); +else +seq_printf (m,",lookupcache=pos" ); + } }/*
fs/ocfs2/acl.c +28 -5
@@ -293,12 +293,30 @@ static int ocfs2_set_acl(handle_t *handle,int ocfs2_check_acl (struct inode *inode,int mask) { -struct posix_acl *acl =ocfs2_get_acl (inode,ACL_TYPE_ACCESS ); +struct ocfs2_super *osb =OCFS2_SB (inode->i_sb); +struct buffer_head *di_bh =NULL ; +struct posix_acl *acl; +int ret = -EAGAIN ; -if (IS_ERR (acl)) +if (!(osb->s_mount_opt &OCFS2_MOUNT_POSIX_ACL )) +return ret; + + ret =ocfs2_read_inode_block (inode, &di_bh); +if (ret <0 ) { +mlog_errno (ret); +return ret; + } + + acl =ocfs2_get_acl_nolock (inode,ACL_TYPE_ACCESS , di_bh); + +brelse (di_bh); + +if (IS_ERR (acl)) { +mlog_errno (PTR_ERR (acl));return PTR_ERR (acl); + }if (acl) { -int ret =posix_acl_permission (inode, acl, mask); + ret =posix_acl_permission (inode, acl, mask);posix_acl_release (acl);return ret; }
@@ -347,7 +365,7 @@ int ocfs2_init_acl(handle_t *handle, {struct ocfs2_super *osb =OCFS2_SB (inode->i_sb);struct posix_acl *acl =NULL ; -int ret =0 ; +int ret =0 , ret2;mode_t mode;if (!S_ISLNK (inode->i_mode)) {
@@ -384,7 +402,12 @@ int ocfs2_init_acl(handle_t *handle, mode = inode->i_mode; ret =posix_acl_create_masq (clone, &mode);if (ret >=0 ) { - ret =ocfs2_acl_set_mode (inode, di_bh, handle, mode); + ret2 =ocfs2_acl_set_mode (inode, di_bh, handle, mode); +if (ret2) { +mlog_errno (ret2); + ret = ret2; + goto cleanup; + }if (ret >0 ) { ret = ocfs2_set_acl(handle, inode, di_bh, ACL_TYPE_ACCESS,
fs/ocfs2/dlm/dlmmaster.c +2 -7
@@ -511,8 +511,6 @@ static void dlm_lockres_release(struct kref *kref)atomic_dec (&dlm->res_cur_count); -dlm_put (dlm); - if (!hlist_unhashed(&res->hash_node) || !list_empty(&res->granted) || !list_empty(&res->converting) ||
@@ -585,8 +583,6 @@ static void dlm_init_lockres(struct dlm_ctxt *dlm, res->migration_pending =0 ; res->inflight_locks =0 ; -/* put in dlm_lockres_release */ -dlm_grab (dlm); res->dlm = dlm;kref_init (&res->refs);
@@ -3046,8 +3042,6 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data,/* check for pre-existing lock */ spin_lock (&dlm->spinlock); res =__dlm_lookup_lockres (dlm, name, namelen, hash); -spin_lock (&dlm->master_lock); -if (res) {spin_lock (&res->spinlock);if (res->state &DLM_LOCK_RES_RECOVERING ) {
@@ -3065,14 +3059,15 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data,spin_unlock (&res->spinlock); } +spin_lock (&dlm->master_lock);/* ignore status. only nonzero status would BUG. */ ret =dlm_add_migration_mle (dlm, res, mle, &oldmle, name, namelen, migrate->new_master, migrate->master); -unlock:spin_unlock (&dlm->master_lock); +unlock:spin_unlock (&dlm->spinlock);if (oldmle) {
fs/ocfs2/dlm/dlmrecovery.c +10 -12
@@ -1941,6 +1941,8 @@ void dlm_move_lockres_to_recovery_list(struct dlm_ctxt *dlm,struct list_head *queue;struct dlm_lock *lock, *next; +assert_spin_locked (&dlm->spinlock); +assert_spin_locked (&res->spinlock); res->state |=DLM_LOCK_RES_RECOVERING ;if (!list_empty (&res->recovering)) { mlog(0,
@@ -2265,19 +2267,15 @@ static void dlm_do_local_recovery_cleanup(struct dlm_ctxt *dlm, u8 dead_node)/* zero the lvb if necessary */ dlm_revalidate_lvb (dlm, res, dead_node);if (res->owner == dead_node) { -if (res->state &DLM_LOCK_RES_DROPPING_REF ) -mlog (0 ,"%s:%.*s: owned by " -"dead node %u, this node was " -"dropping its ref when it died. " -"continue, dropping the flag.\n" , - dlm->name, res->lockname.len, - res->lockname.name, dead_node); - -/* the wake_up for this will happen when the -* RECOVERING flag is dropped later */ - res->state &= ~DLM_LOCK_RES_DROPPING_REF ; +if (res->state &DLM_LOCK_RES_DROPPING_REF ) { +mlog (ML_NOTICE ,"Ignore %.*s for " +"recovery as it is being freed\n" , + res->lockname.len, + res->lockname.name); + }else +dlm_move_lockres_to_recovery_list (dlm, + res); -dlm_move_lockres_to_recovery_list (dlm, res); }else if (res->owner == dlm->node_num) {dlm_free_dead_locks (dlm, res, dead_node);__dlm_lockres_calc_usage (dlm, res);
fs/ocfs2/dlm/dlmthread.c +55 -59
182 lines not on this page · raw message
fs/ocfs2/refcounttree.c +15 -5
@@ -2454,16 +2454,26 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb, len =min ((u64 )cpos + clusters,le64_to_cpu (rec.r_cpos) +le32_to_cpu (rec.r_clusters)) - cpos;/* -* If the refcount rec already exist, cool. We just need -* to check whether there is a split. Otherwise we just need -* to increase the refcount. -* If we will insert one, increases recs_add. -* * We record all the records which will be inserted to the * same refcount block, so that we can tell exactly whether * we need a new refcount block or not. +* +* If we will insert a new one, this is easy and only happens +* during adding refcounted flag to the extent, so we don't +* have a chance of spliting. We just need one record. +* +* If the refcount rec already exists, that would be a little +* complicated. we may have to: +* 1) split at the beginning if the start pos isn't aligned. +* we need 1 more record in this case. +* 2) split int the end if the end pos isn't aligned. +* we need 1 more record in this case. +* 3) split in the middle because of file system fragmentation. +* we need 2 more records in this case(we can't detect this +* beforehand, so always think of the worst case). */ if (rec.r_refcount) { + recs_add +=2 ;/* Check whether we need a split at the beginning. */ if (cpos == start_cpos && cpos !=le64_to_cpu (rec.r_cpos))
include/linux/mm_types.h +1 -1
@@ -138,7 +138,7 @@ struct vm_area_struct {within vm_mm. */ /* linked list of VM areas per task, sorted by address */ -struct vm_area_struct *vm_next; +struct vm_area_struct *vm_next, *vm_prev;pgprot_t vm_page_prot;/* Access permissions of this VMA. */ unsigned long vm_flags;/* Flags, see mm.h. */
include/sound/emu10k1.h +1 -0
@@ -1707,6 +1707,7 @@ struct snd_emu10k1 {unsigned int card_type;/* EMU10K1_CARD_* */ unsigned int ecard_ctrl;/* ecard control bits */ unsigned long dma_mask;/* PCI DMA mask */ +unsigned int delay_pcm_irq;/* in samples */ int max_cache_pages;/* max memory size / PAGE_SIZE */ struct snd_dma_buffer silent_page;/* silent page */ struct snd_dma_buffer ptb_pages;/* page table pages */
kernel/fork.c +5 -2
@@ -277,7 +277,7 @@ out:#ifdef CONFIG_MMU static int dup_mmap (struct mm_struct *mm,struct mm_struct *oldmm) { -struct vm_area_struct *mpnt, *tmp, **pprev; +struct vm_area_struct *mpnt, *tmp, *prev, **pprev;struct rb_node **rb_link, *rb_parent;int retval;unsigned long charge;
@@ -305,6 +305,7 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)if (retval) goto out; + prev =NULL ;for (mpnt = oldmm->mmap; mpnt; mpnt = mpnt->vm_next) {struct file *file;
@@ -333,7 +334,7 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)vma_set_policy (tmp, pol); tmp->vm_flags &= ~VM_LOCKED ; tmp->vm_mm = mm; - tmp->vm_next =NULL ; + tmp->vm_next = tmp->vm_prev =NULL ;anon_vma_link (tmp); file = tmp->vm_file;if (file) {
@@ -367,6 +368,8 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)*/ *pprev = tmp; pprev = &tmp->vm_next; + tmp->vm_prev = prev; + prev = tmp;__vma_link_rb (mm, tmp, rb_link, rb_parent); rb_link = &tmp->vm_rb.rb_right;
mm/memory.c +11 -4
@@ -2640,11 +2640,18 @@ static inline int check_stack_guard_page(struct vm_area_struct *vma, unsigned lo { address &=PAGE_MASK ;if ((vma->vm_flags &VM_GROWSDOWN ) && address == vma->vm_start) { - address -=PAGE_SIZE ; -if (find_vma (vma->vm_mm, address) != vma) -return -ENOMEM ; +struct vm_area_struct *prev = vma->vm_prev; + +/* +* Is there a mapping abutting this one below? +* +* That's only ok if it's the same stack mapping +* that has gotten split.. +*/ +if (prev && prev->vm_end == address) +return prev->vm_flags &VM_GROWSDOWN ?0 : -ENOMEM ; -expand_stack (vma, address); +expand_stack (vma, address -PAGE_SIZE ); }return 0 ; }
mm/mlock.c +16 -5
@@ -138,6 +138,19 @@ void munlock_vma_page(struct page *page) } } +/* Is the vma a continuation of the stack vma above it? */ +static inline int vma_stack_continue (struct vm_area_struct *vma,unsigned long addr) +{ +return vma && (vma->vm_end == addr) && (vma->vm_flags &VM_GROWSDOWN ); +} + +static inline int stack_guard_page (struct vm_area_struct *vma,unsigned long addr) +{ +return (vma->vm_flags &VM_GROWSDOWN ) && + (vma->vm_start == addr) && + !vma_stack_continue (vma->vm_prev, addr); +} +/** * __mlock_vma_pages_range() - mlock a range of pages in the vma. * @vma: target vma
@@ -171,11 +184,9 @@ static long __mlock_vma_pages_range(struct vm_area_struct *vma, gup_flags |=FOLL_WRITE ;/* We don't try to access the guard page of a stack vma */ -if (vma->vm_flags &VM_GROWSDOWN ) { -if (start == vma->vm_start) { - start +=PAGE_SIZE ; - nr_pages--; - } +if (stack_guard_page (vma, start)) { + addr +=PAGE_SIZE ; + nr_pages--; }while (nr_pages >0 ) {
mm/mmap.c +17 -4
@@ -389,17 +389,23 @@ static inline void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, struct rb_node *rb_parent) { + struct vm_area_struct *next; + + vma->vm_prev = prev;if (prev) { - vma->vm_next = prev->vm_next; + next = prev->vm_next; prev->vm_next = vma; }else { mm->mmap = vma;if (rb_parent) - vma->vm_next =rb_entry (rb_parent, + next =rb_entry (rb_parent, struct vm_area_struct, vm_rb);else - vma->vm_next =NULL ; + next =NULL ; } + vma->vm_next = next; +if (next) + next->vm_prev = vma; } void __vma_link_rb(struct mm_struct *mm, struct vm_area_struct *vma,
@@ -487,7 +493,11 @@ static inline void __vma_unlink(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev) { - prev->vm_next = vma->vm_next; + struct vm_area_struct *next = vma->vm_next; + + prev->vm_next = next; +if (next) + next->vm_prev = prev;rb_erase (&vma->vm_rb, &mm->mm_rb);if (mm->mmap_cache == vma) mm->mmap_cache = prev;
@@ -1798,6 +1808,7 @@ detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma,unsigned long addr; insertion_point = (prev ? &prev->vm_next : &mm->mmap); + vma->vm_prev =NULL ; do { rb_erase(&vma->vm_rb, &mm->mm_rb); mm->map_count--;
@@ -1805,6 +1816,8 @@ detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, vma = vma->vm_next; }while (vma && vma->vm_start < end); *insertion_point = vma; +if (vma) + vma->vm_prev = prev; tail_vma->vm_next =NULL ;if (mm->unmap_area == arch_unmap_area) addr = prev ? prev->vm_end : mm->mmap_base;
mm/nommu.c +5 -2
@@ -608,7 +608,7 @@ static void protect_vma(struct vm_area_struct *vma, unsigned long flags)*/ static void add_vma_to_mm (struct mm_struct *mm,struct vm_area_struct *vma) { -struct vm_area_struct *pvma, **pp; +struct vm_area_struct *pvma, **pp, *next;struct address_space *mapping;struct rb_node **p, *parent;
@@ -668,8 +668,11 @@ static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma)break ; } - vma->vm_next = *pp; + next = *pp; *pp = vma; + vma->vm_next = next; +if (next) + next->vm_prev = vma; }/*
mm/slab.c +2 -2
@@ -2249,8 +2249,8 @@ kmem_cache_create (const char *name, size_t size, size_t align, }#if FORCED_DEBUG && defined(CONFIG_DEBUG_PAGEALLOC )if (size >= malloc_sizes[INDEX_L3 +1 ].cs_size - && cachep->obj_size >cache_line_size () && size <PAGE_SIZE ) { - cachep->obj_offset +=PAGE_SIZE - size; + && cachep->obj_size >cache_line_size () &&ALIGN (size, align) <PAGE_SIZE ) { + cachep->obj_offset +=PAGE_SIZE -ALIGN (size, align); size =PAGE_SIZE ; }#endif
mm/vmscan.c +45 -8
65 lines not on this page · raw message
net/can/bcm.c +27 -14
118 lines not on this page · raw message
net/core/dev.c +1 -1
@@ -2519,7 +2519,7 @@ pull:put_page (skb_shinfo (skb)->frags[0 ].page);memmove (skb_shinfo (skb)->frags,skb_shinfo (skb)->frags +1 , - --skb_shinfo (skb)->nr_frags); + --skb_shinfo (skb)->nr_frags *sizeof (skb_frag_t)); } }
net/netlink/af_netlink.c +16 -30
79 lines not on this page · raw message
net/sched/act_nat.c +1 -1
@@ -240,7 +240,7 @@ static int tcf_nat(struct sk_buff *skb, struct tc_action *a, iph->saddr = new_addr;inet_proto_csum_replace4 (&icmph->checksum, skb, addr, new_addr, -1 ); +0 );break ; }default :
scripts/mkmakefile +3 -1
@@ -44,7 +44,9 @@ all: Makefile:; -\$(all) %/: all +\$(all): all @: +%/: all + @: EOF
sound/core/pcm_native.c +4 -0
@@ -972,6 +972,10 @@ static int snd_pcm_do_pause(struct snd_pcm_substream *substream, int push) {if (substream->runtime->trigger_master != substream)return 0 ; +/* some drivers might use hw_ptr to recover from the pause - +update the hw_ptr now */ +if (push) +snd_pcm_update_hw_ptr (substream);/* The jiffies check in snd_pcm_update_hw_ptr*() is done by * a delta betwen the current jiffies, this gives a large enough * delta, effectively to skip the check once.
sound/pci/emu10k1/emu10k1.c +4 -0
@@ -52,6 +52,7 @@ static int max_synth_voices[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 64};static int max_buffer_size[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =128 };static int enable_ir[SNDRV_CARDS ];static uint subsystem[SNDRV_CARDS ];/* Force card subsystem model */ +static uint delay_pcm_irq[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =2 };module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for the EMU10K1 soundcard." );
@@ -73,6 +74,8 @@ module_param_array(enable_ir, bool, NULL, 0444);MODULE_PARM_DESC (enable_ir,"Enable IR." );module_param_array (subsystem, uint,NULL ,0444 );MODULE_PARM_DESC (subsystem,"Force card subsystem model." ); +module_param_array (delay_pcm_irq, uint,NULL ,0444 ); +MODULE_PARM_DESC (delay_pcm_irq,"Delay PCM interrupt by specified number of samples (default 0)." );/* * Class 0401: 1102:0008 (rev 00) Subsystem: 1102:1001 -> Audigy2 Value Model:SB0400 */
@@ -127,6 +130,7 @@ static int __devinit snd_card_emu10k1_probe(struct pci_dev *pci, &emu)) < 0) goto error; card->private_data = emu; + emu->delay_pcm_irq = delay_pcm_irq[dev] &0x1f ;if ((err =snd_emu10k1_pcm (emu,0 ,NULL )) <0 ) goto error;if ((err =snd_emu10k1_pcm_mic (emu,1 ,NULL )) <0 )
sound/pci/emu10k1/emupcm.c +26 -4
@@ -332,7 +332,7 @@ static void snd_emu10k1_pcm_init_voice(struct snd_emu10k1 *emu, evoice->epcm->ccca_start_addr = start_addr + ccis;if (extra) { start_addr += ccis; - end_addr += ccis; + end_addr += ccis + emu->delay_pcm_irq; }if (stereo && !extra) {snd_emu10k1_ptr_write (emu,CPF , voice,CPF_STEREO_MASK );
@@ -360,7 +360,9 @@ static void snd_emu10k1_pcm_init_voice(struct snd_emu10k1 *emu,/* Assumption that PT is already 0 so no harm overwriting */ snd_emu10k1_ptr_write (emu,PTRX , voice, (send_amount[0 ] <<8 ) | send_amount[1 ]);snd_emu10k1_ptr_write (emu,DSL , voice, end_addr | (send_amount[3 ] <<24 )); -snd_emu10k1_ptr_write (emu,PSST , voice, start_addr | (send_amount[2 ] <<24 )); +snd_emu10k1_ptr_write (emu,PSST , voice, + (start_addr + (extra ? emu->delay_pcm_irq :0 )) | + (send_amount[2 ] <<24 ));if (emu->card_capabilities->emu_model) pitch_target =PITCH_48000 ;/* Disable interpolators on emu1010 card */ else
@@ -732,6 +734,23 @@ static void snd_emu10k1_playback_stop_voice(struct snd_emu10k1 *emu, struct snd_snd_emu10k1_ptr_write (emu,IP , voice,0 ); } +static inline void snd_emu10k1_playback_mangle_extra (struct snd_emu10k1 *emu, +struct snd_emu10k1_pcm *epcm, +struct snd_pcm_substream *substream, +struct snd_pcm_runtime *runtime) +{ +unsigned int ptr, period_pos; + +/* try to sychronize the current position for the interrupt +source voice */ + period_pos = runtime->status->hw_ptr - runtime->hw_ptr_interrupt; + period_pos %= runtime->period_size; + ptr =snd_emu10k1_ptr_read (emu,CCCA , epcm->extra->number); + ptr &= ~0x00ffffff ; + ptr |= epcm->ccca_start_addr + period_pos; +snd_emu10k1_ptr_write (emu,CCCA , epcm->extra->number, ptr); +} +static int snd_emu10k1_playback_trigger (struct snd_pcm_substream *substream,int cmd) {
@@ -753,6 +772,8 @@ static int snd_emu10k1_playback_trigger(struct snd_pcm_substream *substream,/* follow thru */ case SNDRV_PCM_TRIGGER_PAUSE_RELEASE :case SNDRV_PCM_TRIGGER_RESUME : +if (cmd ==SNDRV_PCM_TRIGGER_PAUSE_RELEASE ) +snd_emu10k1_playback_mangle_extra (emu, epcm, substream, runtime); mix = &emu->pcm_mixer[substream->number];snd_emu10k1_playback_prepare_voice (emu, epcm->voices[0 ],1 ,0 , mix);snd_emu10k1_playback_prepare_voice (emu, epcm->voices[1 ],0 ,0 , mix);
@@ -869,8 +890,9 @@ static snd_pcm_uframes_t snd_emu10k1_playback_pointer(struct snd_pcm_substream *#endif /* printk(KERN_DEBUG -"ptr = 0x%x, buffer_size = 0x%x, period_size = 0x%x\n", -ptr, runtime->buffer_size, runtime->period_size); +"ptr = 0x%lx, buffer_size = 0x%lx, period_size = 0x%lx\n", +(long)ptr, (long)runtime->buffer_size, +(long)runtime->period_size); */ return ptr; }
sound/pci/emu10k1/memory.c +3 -1
@@ -309,8 +309,10 @@ snd_emu10k1_alloc_pages(struct snd_emu10k1 *emu, struct snd_pcm_substream *substif (snd_BUG_ON (!hdr))return NULL ; + idx = runtime->period_size >= runtime->buffer_size ? + (emu->delay_pcm_irq *2 ) :0 ;mutex_lock (&hdr->block_mutex); - blk =search_empty (emu, runtime->dma_bytes); + blk =search_empty (emu, runtime->dma_bytes + idx);if (blk ==NULL ) {mutex_unlock (&hdr->block_mutex);return NULL ;
sound/pci/hda/patch_realtek.c +1 -0
@@ -6455,6 +6455,7 @@ static int patch_alc260(struct hda_codec *codec) spec->stream_analog_playback = &alc260_pcm_analog_playback; spec->stream_analog_capture = &alc260_pcm_analog_capture; + spec->stream_analog_alt_capture = &alc260_pcm_analog_capture; spec->stream_digital_playback = &alc260_pcm_digital_playback; spec->stream_digital_capture = &alc260_pcm_digital_capture;
sound/pci/intel8x0.c +6 -0
@@ -1776,6 +1776,12 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = { }, { .subvendor = 0x1014, + .subdevice = 0x0534, + .name = "ThinkPad X31", + .type =AC97_TUNE_INV_EAPD + }, + { + .subvendor = 0x1014, .subdevice = 0x1f00, .name ="MS-9128" , .type = AC97_TUNE_ALC_JACK
sound/pci/riptide/riptide.c +5 -6
@@ -1224,15 +1224,14 @@ static int try_to_load_firmware(struct cmdif *cif, struct snd_riptide *chip) firmware.firmware.ASIC, firmware.firmware.CODEC, firmware.firmware.AUXDSP, firmware.firmware.PROG); +if (!chip) +return 1 ; +for (i =0 ; i <FIRMWARE_VERSIONS ; i++) {if (!memcmp (&firmware_versions[i], &firmware,sizeof (firmware))) -break ; - } -if (i >=FIRMWARE_VERSIONS ) -return 0 ;/* no match */ +return 1 ;/* OK */ -if (!chip) -return 1 ;/* OK */ + }snd_printdd ("Writing Firmware\n" );if (!chip->fw_entry) {
sound/soc/codecs/wm8580.c +3 -3
@@ -268,9 +268,9 @@ SOC_DOUBLE("DAC2 Invert Switch", WM8580_DAC_CONTROL4, 2, 3, 1, 0),SOC_DOUBLE ("DAC3 Invert Switch" ,WM8580_DAC_CONTROL4 ,4 ,5 ,1 ,0 ),SOC_SINGLE ("DAC ZC Switch" ,WM8580_DAC_CONTROL5 ,5 ,1 ,0 ), -SOC_SINGLE ("DAC1 Switch" ,WM8580_DAC_CONTROL5 ,0 ,1 ,0 ), -SOC_SINGLE ("DAC2 Switch" ,WM8580_DAC_CONTROL5 ,1 ,1 ,0 ), -SOC_SINGLE ("DAC3 Switch" ,WM8580_DAC_CONTROL5 ,2 ,1 ,0 ), +SOC_SINGLE ("DAC1 Switch" ,WM8580_DAC_CONTROL5 ,0 ,1 ,1 ), +SOC_SINGLE ("DAC2 Switch" ,WM8580_DAC_CONTROL5 ,1 ,1 ,1 ), +SOC_SINGLE ("DAC3 Switch" ,WM8580_DAC_CONTROL5 ,2 ,1 ,1 ),SOC_DOUBLE ("ADC Mute Switch" ,WM8580_ADC_CONTROL1 ,0 ,1 ,1 ,0 ), SOC_SINGLE("ADC High-Pass Filter Switch", WM8580_ADC_CONTROL1, 4, 1, 0),
sound/soc/codecs/wm8776.c +0 -7
@@ -177,13 +177,6 @@ static int wm8776_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)case SND_SOC_DAIFMT_LEFT_J : iface |=0x0001 ;break ; -/* FIXME: CHECK A/B */ -case SND_SOC_DAIFMT_DSP_A : - iface |=0x0003 ; -break ; -case SND_SOC_DAIFMT_DSP_B : - iface |=0x0007 ; -break ;default :return -EINVAL ; }
Re: Linux 2.6.35.4
In reply to Greg KHMakefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 35 -EXTRAVERSION = .3 +EXTRAVERSION = .4 NAME = Sheep on Meth # *DOCUMENTATION*
arch/arm/include/asm/ptrace.h +13 -4
@@ -158,15 +158,24 @@ struct pt_regs {*/ static inline int valid_user_regs (struct pt_regs *regs) { -if (user_mode (regs) && (regs->ARM_cpsr &PSR_I_BIT ) ==0 ) { - regs->ARM_cpsr &= ~(PSR_F_BIT |PSR_A_BIT ); -return 1 ; +unsigned long mode = regs->ARM_cpsr &MODE_MASK ; + +/* +* Always clear the F (FIQ) and A (delayed abort) bits +*/ + regs->ARM_cpsr &= ~(PSR_F_BIT |PSR_A_BIT ); + +if ((regs->ARM_cpsr &PSR_I_BIT ) ==0 ) { +if (mode ==USR_MODE ) +return 1 ; +if (elf_hwcap &HWCAP_26BIT && mode ==USR26_MODE ) +return 1 ; }/* * Force CPSR to something logical... */ - regs->ARM_cpsr &= PSR_f | PSR_s | (PSR_x & ~PSR_A_BIT ) |PSR_T_BIT |MODE32_BIT ; + regs->ARM_cpsr &= PSR_f | PSR_s | PSR_x |PSR_T_BIT |MODE32_BIT ;if (!(elf_hwcap &HWCAP_26BIT )) regs->ARM_cpsr |=USR_MODE ;
arch/arm/mach-ixp4xx/ixdp425-setup.c +1 -0
@@ -100,6 +100,7 @@ ixdp425_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)static struct platform_nand_data ixdp425_flash_nand_data = { .chip = { + .nr_chips =1 , .chip_delay =30 , .options =NAND_NO_AUTOINCR , #ifdef CONFIG_MTD_PARTITIONS
arch/arm/mach-mx3/mach-qong.c +1 -0
@@ -169,6 +169,7 @@ static void qong_nand_select_chip(struct mtd_info *mtd, int chip)static struct platform_nand_data qong_nand_data = { .chip = { + .nr_chips =1 , .chip_delay =20 , .options =0 , },
arch/arm/mach-orion5x/ts78xx-setup.c +1 -0
@@ -216,6 +216,7 @@ static struct mtd_partition ts78xx_ts_nand_parts[] = {static struct platform_nand_data ts78xx_ts_nand_data = { .chip = { + .nr_chips =1 , .part_probe_types = ts_nand_part_probes, .partitions = ts78xx_ts_nand_parts, .nr_partitions =ARRAY_SIZE (ts78xx_ts_nand_parts),
arch/blackfin/mach-bf537/boards/stamp.c +1 -0
@@ -400,6 +400,7 @@ static int bfin_plat_nand_dev_ready(struct mtd_info *mtd)static struct platform_nand_data bfin_plat_nand_data = { .chip = { + .nr_chips =1 , .chip_delay =30 , #ifdef CONFIG_MTD_PARTITIONS .part_probe_types = part_probes,
arch/blackfin/mach-bf561/boards/acvilon.c +1 -0
@@ -284,6 +284,7 @@ static int bfin_plat_nand_dev_ready(struct mtd_info *mtd)static struct platform_nand_data bfin_plat_nand_data = { .chip = { + .nr_chips =1 , .chip_delay =30 , #ifdef CONFIG_MTD_PARTITIONS .part_probe_types = part_probes,
arch/powerpc/Makefile +1 -1
@@ -164,7 +164,7 @@ drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ all: zImage # With make 3.82 we cannot mix normal and wildcard targets -BOOT_TARGETS1 := zImage zImage.initrd uImaged +BOOT_TARGETS1 := zImage zImage.initrd uImage BOOT_TARGETS2 := zImage% dtbImage% treeImage.% cuImage.% simpleImage.% PHONY += $(BOOT_TARGETS1) $(BOOT_TARGETS2)
arch/sparc/include/asm/atomic_64.h +5 -5
@@ -20,14 +20,14 @@#define atomic64_set (v, i) (((v)->counter) = i)extern void atomic_add (int ,atomic_t *); -extern void atomic64_add (int ,atomic64_t *); +extern void atomic64_add (long ,atomic64_t *);extern void atomic_sub (int ,atomic_t *); -extern void atomic64_sub (int ,atomic64_t *); +extern void atomic64_sub (long ,atomic64_t *);extern int atomic_add_ret (int ,atomic_t *); -extern int atomic64_add_ret (int ,atomic64_t *); +extern long atomic64_add_ret (long ,atomic64_t *);extern int atomic_sub_ret (int ,atomic_t *); -extern int atomic64_sub_ret (int ,atomic64_t *); +extern long atomic64_sub_ret (long ,atomic64_t *);#define atomic_dec_return (v) atomic_sub_ret(1, v)#define atomic64_dec_return (v) atomic64_sub_ret(1, v)
@@ -91,7 +91,7 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u) ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))#define atomic64_xchg (v, new) (xchg(&((v)->counter), new)) -static inline int atomic64_add_unless (atomic64_t *v,long a,long u) +static inline long atomic64_add_unless (atomic64_t *v,long a,long u) {long c, old; c =atomic64_read (v);
arch/sparc/include/asm/fb.h +4 -0
@@ -1,5 +1,6 @@#ifndef _SPARC_FB_H_#define _SPARC_FB_H_ +#include <linux/console.h> #include <linux/fb.h> #include <linux/fs.h> #include <asm/page.h>
@@ -18,6 +19,9 @@ static inline int fb_is_primary_device(struct fb_info *info)struct device *dev = info->device;struct device_node *node; +if (console_set_on_cmdline) +return 0 ; + node = dev->of_node;if (node && node == of_console_device)
arch/sparc/include/asm/parport.h +4 -0
@@ -228,6 +228,10 @@ static const struct of_device_id ecpp_match[] = { .name = "parallel", .compatible = "ns87317-ecpp", }, + { + .name = "parallel", + .compatible = "pnpALI,1533,3", + }, {}, };
arch/sparc/include/asm/rwsem-const.h +1 -1
@@ -5,7 +5,7 @@#define RWSEM_UNLOCKED_VALUE 0x00000000#define RWSEM_ACTIVE_BIAS 0x00000001#define RWSEM_ACTIVE_MASK 0x0000ffff -#define RWSEM_WAITING_BIAS 0xffff0000 +#define RWSEM_WAITING_BIAS (-0x00010000)#define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS#define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
arch/x86/Kconfig +5 -0
@@ -247,6 +247,11 @@ config ARCH_HWEIGHT_CFLAGS config KTIME_SCALAR def_bool X86_32 + +config ARCH_CPU_PROBE_RELEASE + def_bool y + depends on HOTPLUG_CPU + source "init/Kconfig" source "kernel/Kconfig.freezer"
arch/x86/include/asm/cmpxchg_32.h +20 -47
80 lines not on this page · raw message
arch/x86/include/asm/cmpxchg_64.h +1 -3
@@ -5,13 +5,11 @@#define __xg (x) ((volatile long *)(x)) -static inline void set_64bit (volatile unsigned long *ptr,unsigned long val) +static inline void set_64bit (volatile u64 *ptr,u64 val) { *ptr = val; } -#define _set_64bit set_64bit -extern void __xchg_wrong_size (void );extern void __cmpxchg_wrong_size (void );
arch/x86/kernel/apic/apic.c +1 -1
@@ -1606,7 +1606,7 @@ void __init init_apic_mappings(void)* acpi lapic path already maps that address in * acpi_register_lapic_address() */ -if (!acpi_lapic) +if (!acpi_lapic && !smp_found_config)set_fixmap_nocache (FIX_APIC_BASE , apic_phys); apic_printk(APIC_VERBOSE, "mapped APIC to %08lx (%08lx)\n",
arch/x86/kernel/apic/io_apic.c +2 -0
@@ -1728,6 +1728,8 @@ __apicdebuginit(void) print_IO_APIC(void)struct irq_pin_list *entry; cfg = desc->chip_data; +if (!cfg) +continue ; entry = cfg->irq_2_pin;if (!entry)continue ;
arch/x86/kernel/cpu/perf_event_intel.c +63 -18
96 lines not on this page · raw message
arch/x86/kernel/cpu/perf_event_p4.c +6 -3
@@ -581,6 +581,7 @@ static int p4_pmu_handle_irq(struct pt_regs *regs) cpuc = &__get_cpu_var (cpu_hw_events);for (idx =0 ; idx < x86_pmu.num_counters; idx++) { +int overflow;if (!test_bit (idx, cpuc->active_mask))continue ;
@@ -591,12 +592,14 @@ static int p4_pmu_handle_irq(struct pt_regs *regs)WARN_ON_ONCE (hwc->idx != idx);/* it might be unflagged overflow */ - handled =p4_pmu_clear_cccr_ovf (hwc); + overflow =p4_pmu_clear_cccr_ovf (hwc); val =x86_perf_event_update (event); -if (!handled && (val & (1ULL << (x86_pmu.cntval_bits -1 )))) +if (!overflow && (val & (1ULL << (x86_pmu.cntval_bits -1 ))))continue ; + handled += overflow; +/* event overflow for sure */ data.period = event->hw.last_period;
@@ -612,7 +615,7 @@ static int p4_pmu_handle_irq(struct pt_regs *regs)inc_irq_stat (apic_perf_irqs); } -return handled; +return handled >0 ; }/*
arch/x86/kernel/mpparse.c +16 -0
@@ -274,6 +274,18 @@ static void __init smp_dump_mptable(struct mpc_table *mpc, unsigned char *mpt)void __init default_smp_read_mpc_oem (struct mpc_table *mpc) { } +static void __init smp_register_lapic_address (unsigned long address) +{ + mp_lapic_addr = address; + +set_fixmap_nocache (FIX_APIC_BASE , address); +if (boot_cpu_physical_apicid ==-1U ) { + boot_cpu_physical_apicid =read_apic_id (); + apic_version[boot_cpu_physical_apicid] = +GET_APIC_VERSION (apic_read (APIC_LVR )); + } +} +static int __init smp_read_mpc (struct mpc_table *mpc,unsigned early) {char str[16 ];
@@ -295,6 +307,10 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early)if (early)return 1 ; +/* Initialize the lapic mapping */ +if (!acpi_lapic) +smp_register_lapic_address (mpc->lapic); +if (mpc->oemptr) x86_init.mpparse.smp_read_mpc_oem (mpc);
arch/x86/kernel/smpboot.c +19 -0
@@ -91,6 +91,25 @@ DEFINE_PER_CPU(int, cpu_state) = { 0 }; static DEFINE_PER_CPU(struct task_struct *, idle_thread_array);#define get_idle_for_cpu (x) (per_cpu(idle_thread_array, x))#define set_idle_for_cpu (x, p) (per_cpu(idle_thread_array, x) = (p)) + +/* +* We need this for trampoline_base protection from concurrent accesses when +* off- and onlining cores wildly. +*/ +static DEFINE_MUTEX (x86_cpu_hotplug_driver_mutex); + +void cpu_hotplug_driver_lock () +{ +mutex_lock (&x86_cpu_hotplug_driver_mutex); +} + +void cpu_hotplug_driver_unlock () +{ +mutex_unlock (&x86_cpu_hotplug_driver_mutex); +} + +ssize_t arch_cpu_probe (const char *buf,size_t count) {return -1 ; } +ssize_t arch_cpu_release (const char *buf,size_t count) {return -1 ; }#else static struct task_struct *idle_thread_array[NR_CPUS ]__cpuinitdata ;#define get_idle_for_cpu (x) (idle_thread_array[(x)])
arch/x86/lib/atomic64_386_32.S +128 -108
278 lines not on this page · raw message
arch/x86/oprofile/nmi_int.c +15 -2
@@ -634,6 +634,18 @@ static int __init ppro_init(char **cpu_type)if (force_arch_perfmon && cpu_has_arch_perfmon)return 0 ; +/* +* Documentation on identifying Intel processors by CPU family +* and model can be found in the Intel Software Developer's +* Manuals (SDM): +* +* http://www.intel.com/products/processor/manuals/ +* +* As of May 2010 the documentation for this was in the: +* "Intel 64 and IA-32 Architectures Software Developer's +* Manual Volume 3B: System Programming Guide", "Table B-1 +* CPUID Signature Values of DisplayFamily_DisplayModel". +*/ switch (cpu_model) { case 0 ... 2: *cpu_type ="i386/ppro" ;
@@ -655,12 +667,13 @@ static int __init ppro_init(char **cpu_type)case 15 :case 23 : *cpu_type ="i386/core_2" ;break ; +case 0x1a : +case 0x1e :case 0x2e : -case 26 : spec = &op_arch_perfmon_spec; *cpu_type ="i386/core_i7" ;break ; -case 28 : +case 0x1c : *cpu_type ="i386/atom" ;break ;default :
drivers/acpi/apei/erst.c +1 -0
@@ -33,6 +33,7 @@#include <linux/uaccess.h> #include <linux/cper.h> #include <linux/nmi.h> +#include <linux/hardirq.h> #include <acpi/apei.h> #include "apei-internal.h"
drivers/char/agp/intel-gtt.c +10 -1
@@ -25,6 +25,10 @@#define USE_PCI_DMA_API 1#endif +/* Max amount of stolen space, anything above will be returned to Linux */ +int intel_max_stolen =32 *1024 *1024 ; +EXPORT_SYMBOL (intel_max_stolen); +static const struct aper_size_info_fixed intel_i810_sizes[] = { {64 ,16384 ,4 },
@@ -710,7 +714,12 @@ static void intel_i830_init_gtt_entries(void)break ; } } -if (gtt_entries >0 ) { +if (!local && gtt_entries > intel_max_stolen) { +dev_info (&agp_bridge->dev->dev, +"detected %dK stolen memory, trimming to %dK\n" , + gtt_entries /KB (1 ), intel_max_stolen /KB (1 )); + gtt_entries = intel_max_stolen /KB (4 ); + }else if (gtt_entries >0 ) {dev_info (&agp_bridge->dev->dev,"detected %dK %s memory\n" , gtt_entries /KB (1 ), local ?"local" :"stolen" ); gtt_entries /=KB (4 );
drivers/char/mem.c +1 -1
@@ -916,7 +916,7 @@ static int __init chr_dev_init(void) NULL, devlist[minor].name); } -return 0 ; +return tty_init (); }fs_initcall (chr_dev_init);
drivers/char/tty_io.c +2 -2
@@ -3128,7 +3128,7 @@ static struct cdev tty_cdev, console_cdev;* Ok, now we can initialize the rest of the tty devices and can count * on memory allocations, interrupts etc.. */ -static int __init tty_init (void ) +int __init tty_init (void ) {cdev_init (&tty_cdev, &tty_fops); if (cdev_add(&tty_cdev, MKDEV(TTYAUX_MAJOR, 0), 1) ||
@@ -3149,4 +3149,4 @@ static int __init tty_init(void)#endif return 0 ; } -module_init (tty_init); +
drivers/gpu/drm/drm_drv.c +3 -1
@@ -502,7 +502,9 @@ long drm_ioctl(struct file *filp, retcode = -EFAULT ; goto err_i1; } - } + }else +memset (kdata,0 ,_IOC_SIZE (cmd)); +if (ioctl->flags &DRM_UNLOCKED ) retcode =func (dev, kdata, file_priv);else {
drivers/gpu/drm/i915/i915_dma.c +8 -0
@@ -40,6 +40,8 @@#include <linux/vga_switcheroo.h> #include <linux/slab.h> +extern int intel_max_stolen;/* from AGP driver */ +/** * Sets up the hardware status page for devices that need a physical address * in the register.
@@ -2104,6 +2106,12 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)if (ret) goto out_iomapfree; +if (prealloc_size > intel_max_stolen) { +DRM_INFO ("detected %dM stolen memory, trimming to %dM\n" , + prealloc_size >>20 , intel_max_stolen >>20 ); + prealloc_size = intel_max_stolen; + } + dev_priv->wq =create_singlethread_workqueue ("i915" );if (dev_priv->wq ==NULL ) {DRM_ERROR ("Failed to create our workqueue.\n" );
drivers/gpu/drm/i915/intel_display.c +16 -7
@@ -1502,6 +1502,7 @@ static void ironlake_enable_pll_edp (struct drm_crtc *crtc) dpa_ctl =I915_READ (DP_A ); dpa_ctl |=DP_PLL_ENABLE ;I915_WRITE (DP_A , dpa_ctl); +POSTING_READ (DP_A );udelay (200 ); }
@@ -4816,14 +4817,16 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc, work->pending_flip_obj = obj;if (intel_crtc->plane) - flip_mask =I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT ; + flip_mask =MI_WAIT_FOR_PLANE_B_FLIP ;else - flip_mask =I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT ; + flip_mask =MI_WAIT_FOR_PLANE_A_FLIP ; -/* Wait for any previous flip to finish */ -if (IS_GEN3 (dev)) -while (I915_READ (ISR ) & flip_mask) - ; +if (IS_GEN3 (dev) ||IS_GEN2 (dev)) { +BEGIN_LP_RING (2 ); +OUT_RING (MI_WAIT_FOR_EVENT | flip_mask); +OUT_RING (0 ); +ADVANCE_LP_RING (); + }/* Offset into the new buffer for cases of shared fbs between CRTCs */ offset = obj_priv->gtt_offset;
@@ -4837,12 +4840,18 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,OUT_RING (offset | obj_priv->tiling_mode); pipesrc =I915_READ (pipesrc_reg);OUT_RING (pipesrc &0x0fff0fff ); - }else { + }else if (IS_GEN3 (dev)) {OUT_RING (MI_DISPLAY_FLIP_I915 |MI_DISPLAY_FLIP_PLANE (intel_crtc->plane));OUT_RING (fb->pitch);OUT_RING (offset);OUT_RING (MI_NOOP ); + }else { +OUT_RING (MI_DISPLAY_FLIP | +MI_DISPLAY_FLIP_PLANE (intel_crtc->plane)); +OUT_RING (fb->pitch); +OUT_RING (offset); +OUT_RING (MI_NOOP ); }ADVANCE_LP_RING ();
drivers/gpu/drm/radeon/radeon_atombios.c +13 -3
@@ -206,6 +206,7 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev,uint16_t *line_mux, struct radeon_hpd *hpd) { + struct radeon_device *rdev = dev->dev_private;/* Asus M2A-VM HDMI board lists the DVI port as HDMI */ if ((dev->pdev->device == 0x791e) &&
@@ -308,13 +309,22 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev, } } -/* Acer laptop reports DVI-D as DVI-I */ +/* Acer laptop reports DVI-D as DVI-I and hpd pins reversed */ if ((dev->pdev->device ==0x95c4 ) && (dev->pdev->subsystem_vendor ==0x1025 ) && (dev->pdev->subsystem_device ==0x013c )) { +struct radeon_gpio_rec gpio; +if ((*connector_type ==DRM_MODE_CONNECTOR_DVII ) && - (supported_device ==ATOM_DEVICE_DFP1_SUPPORT )) + (supported_device ==ATOM_DEVICE_DFP1_SUPPORT )) { + gpio =radeon_lookup_gpio (rdev,6 ); + *hpd =radeon_atom_get_hpd_info_from_gpio (rdev, &gpio); *connector_type =DRM_MODE_CONNECTOR_DVID ; + }else if ((*connector_type ==DRM_MODE_CONNECTOR_HDMIA ) && + (supported_device ==ATOM_DEVICE_DFP1_SUPPORT )) { + gpio =radeon_lookup_gpio (rdev,7 ); + *hpd =radeon_atom_get_hpd_info_from_gpio (rdev, &gpio); + } }/* XFX Pine Group device rv730 reports no VGA DDC lines
@@ -1049,7 +1059,7 @@ bool radeon_atombios_sideport_present(struct radeon_device *rdev) }break ;case 2 : -if (igp_info->info_2.ucMemoryType &0x0f ) +if (igp_info->info_2.ulBootUpSidePortClock)return true;break ;default :
drivers/gpu/drm/radeon/radeon_device.c +1 -1
@@ -199,7 +199,7 @@ void radeon_vram_location(struct radeon_device *rdev, struct radeon_mc *mc, u64 mc->mc_vram_size = mc->aper_size; } mc->vram_end = mc->vram_start + mc->mc_vram_size -1 ; -if (rdev->flags &RADEON_IS_AGP && mc->vram_end > mc->gtt_start && mc->vram_end <= mc->gtt_end) { +if (rdev->flags &RADEON_IS_AGP && mc->vram_end > mc->gtt_start && mc->vram_start <= mc->gtt_end) {dev_warn (rdev->dev,"limiting VRAM to PCI aperture size\n" ); mc->real_vram_size = mc->aper_size; mc->mc_vram_size = mc->aper_size;
drivers/gpu/drm/radeon/radeon_i2c.c +7 -0
@@ -95,6 +95,13 @@ static void radeon_i2c_do_lock(struct radeon_i2c_chan *i2c, int lock_state) } } +/* switch the pads to ddc mode */ +if (ASIC_IS_DCE3 (rdev) && rec->hw_capable) { + temp =RREG32 (rec->mask_clk_reg); + temp &= ~(1 <<16 ); +WREG32 (rec->mask_clk_reg, temp); + } +/* clear the output pin values */ temp =RREG32 (rec->a_clk_reg) & ~rec->a_clk_mask;WREG32 (rec->a_clk_reg, temp);
drivers/gpu/drm/radeon/radeon_irq_kms.c +3 -2
@@ -121,11 +121,12 @@ int radeon_irq_kms_init(struct radeon_device *rdev)* chips. Disable MSI on them for now. */ if ((rdev->family >=CHIP_RV380 ) && - (!(rdev->flags &RADEON_IS_IGP ))) { + (!(rdev->flags &RADEON_IS_IGP )) && + (!(rdev->flags &RADEON_IS_AGP ))) {int ret =pci_enable_msi (rdev->pdev);if (!ret) { rdev->msi_enabled =1 ; -DRM_INFO ("radeon: using MSI.\n" ); +dev_info (rdev->dev,"radeon: using MSI.\n" ); } } rdev->irq.installed = true;
drivers/gpu/drm/radeon/radeon_kms.c +3 -1
@@ -106,7 +106,9 @@ int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) info = data; value_ptr = (uint32_t *)((unsigned long )info->value); - value = *value_ptr; +if (DRM_COPY_FROM_USER (&value, value_ptr,sizeof (value))) +return -EFAULT ; +switch (info->request) {case RADEON_INFO_DEVICE_ID : value = dev->pci_device;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c +1 -1
@@ -272,7 +272,7 @@ static uint8_t radeon_compute_pll_gain(uint16_t ref_freq, uint16_t ref_div,if (!ref_div)return 1 ; - vcoFreq = ((unsigned )ref_freq & fb_div) / ref_div; + vcoFreq = ((unsigned )ref_freq * fb_div) / ref_div;/* * This is horribly crude: the VCO frequency range is divided into
drivers/gpu/drm/radeon/radeon_pm.c +5 -0
@@ -224,6 +224,11 @@ static void radeon_pm_set_clocks(struct radeon_device *rdev) {int i; +/* no need to take locks, etc. if nothing's going to change */ +if ((rdev->pm.requested_clock_mode_index == rdev->pm.current_clock_mode_index) && + (rdev->pm.requested_power_state_index == rdev->pm.current_power_state_index)) +return ; +mutex_lock (&rdev->ddev->struct_mutex);mutex_lock (&rdev->vram_mutex);mutex_lock (&rdev->cp.mutex);
drivers/hwmon/pc87360.c +17 -14
@@ -1610,11 +1610,8 @@ static struct pc87360_data *pc87360_update_device(struct device *dev)static int __init pc87360_device_add (unsigned short address) { -struct resource res = { - .name ="pc87360" , - .flags =IORESOURCE_IO , - }; -int err, i; +struct resource res[3 ]; +int err, i, res_count; pdev =platform_device_alloc ("pc87360" , address);if (!pdev) {
@@ -1623,22 +1620,28 @@ static int __init pc87360_device_add(unsigned short address) goto exit; } +memset (res,0 ,3 *sizeof (struct resource )); + res_count =0 ;for (i =0 ; i <3 ; i++) {if (!extra_isa[i])continue ; - res.start = extra_isa[i]; - res.end = extra_isa[i] +PC87360_EXTENT -1 ; + res[res_count].start = extra_isa[i]; + res[res_count].end = extra_isa[i] +PC87360_EXTENT -1 ; + res[res_count].name ="pc87360" , + res[res_count].flags =IORESOURCE_IO , - err =acpi_check_resource_conflict (&res); + err =acpi_check_resource_conflict (&res[res_count]);if (err) goto exit_device_put; - err =platform_device_add_resources (pdev, &res,1 ); -if (err) { -printk (KERN_ERR "pc87360: Device resource[%d] " -"addition failed (%d)\n" , i, err); - goto exit_device_put; - } + res_count++; + } + + err =platform_device_add_resources (pdev, res, res_count); +if (err) { +printk (KERN_ERR "pc87360: Device resources addition failed " +"(%d)\n" , err); + goto exit_device_put; } err =platform_device_add (pdev);
drivers/isdn/gigaset/capi.c +9 -8
@@ -378,13 +378,13 @@ void gigaset_skb_sent(struct bc_state *bcs, struct sk_buff *dskb) ++bcs->trans_up;if (!ap) { -dev_err (cs->dev,"%s: no application\n" , __func__); +gig_dbg (DEBUG_MCMD ,"%s: application gone" , __func__);return ; }/* don't send further B3 messages if disconnected */ if (bcs->apconnstate <APCONN_ACTIVE ) { -gig_dbg (DEBUG_LLDATA ,"disconnected, discarding ack" ); +gig_dbg (DEBUG_MCMD ,"%s: disconnected" , __func__);return ; }
@@ -422,13 +422,14 @@ void gigaset_skb_rcvd(struct bc_state *bcs, struct sk_buff *skb) bcs->trans_down++;if (!ap) { -dev_err (cs->dev,"%s: no application\n" , __func__); +gig_dbg (DEBUG_MCMD ,"%s: application gone" , __func__); +dev_kfree_skb_any (skb);return ; }/* don't send further B3 messages if disconnected */ if (bcs->apconnstate <APCONN_ACTIVE ) { -gig_dbg (DEBUG_LLDATA ,"disconnected, discarding data" ); +gig_dbg (DEBUG_MCMD ,"%s: disconnected" , __func__);dev_kfree_skb_any (skb);return ; }
@@ -747,7 +748,7 @@ void gigaset_isdn_connD(struct bc_state *bcs) ap = bcs->ap;if (!ap) {spin_unlock_irqrestore (&bcs->aplock, flags); -dev_err (cs->dev,"%s: no application\n" , __func__); +gig_dbg (DEBUG_CMD ,"%s: application gone" , __func__);return ; }if (bcs->apconnstate ==APCONN_NONE ) {
@@ -843,7 +844,7 @@ void gigaset_isdn_connB(struct bc_state *bcs) ap = bcs->ap;if (!ap) {spin_unlock_irqrestore (&bcs->aplock, flags); -dev_err (cs->dev,"%s: no application\n" , __func__); +gig_dbg (DEBUG_CMD ,"%s: application gone" , __func__);return ; }if (!bcs->apconnstate) {
@@ -901,13 +902,12 @@ void gigaset_isdn_connB(struct bc_state *bcs)*/ void gigaset_isdn_hupB (struct bc_state *bcs) { -struct cardstate *cs = bcs->cs;struct gigaset_capi_appl *ap = bcs->ap;/* ToDo: assure order of DISCONNECT_B3_IND and DISCONNECT_IND ? */ if (!ap) { -dev_err (cs->dev,"%s: no application\n" , __func__); +gig_dbg (DEBUG_CMD ,"%s: application gone" , __func__);return ; }
@@ -1044,6 +1044,7 @@ static inline void remove_appl_from_channel(struct bc_state *bcs, do { if (bcap->bcnext == ap) { bcap->bcnext = bcap->bcnext->bcnext; + spin_unlock_irqrestore(&bcs->aplock, flags); return; } bcap = bcap->bcnext;
drivers/isdn/sc/ioctl.c +5 -5
@@ -174,7 +174,7 @@ int sc_ioctl(int card, scs_ioctl *data)pr_debug ("%s: SCIOGETSPID: ioctl received\n" , sc_adapter[card]->devicename); - spid =kmalloc (SCIOC_SPIDSIZE ,GFP_KERNEL ); + spid =kzalloc (SCIOC_SPIDSIZE ,GFP_KERNEL );if (!spid) {kfree (rcvmsg);return -ENOMEM ;
@@ -194,7 +194,7 @@ int sc_ioctl(int card, scs_ioctl *data)kfree (rcvmsg);return status; } -strcpy (spid, rcvmsg->msg_data.byte_array); +strlcpy (spid, rcvmsg->msg_data.byte_array,SCIOC_SPIDSIZE );/* * Package the switch type and send to user space
@@ -272,12 +272,12 @@ int sc_ioctl(int card, scs_ioctl *data)return status; } - dn =kmalloc (SCIOC_DNSIZE ,GFP_KERNEL ); + dn =kzalloc (SCIOC_DNSIZE ,GFP_KERNEL );if (!dn) {kfree (rcvmsg);return -ENOMEM ; } -strcpy (dn, rcvmsg->msg_data.byte_array); +strlcpy (dn, rcvmsg->msg_data.byte_array,SCIOC_DNSIZE );kfree (rcvmsg);/*
@@ -348,7 +348,7 @@ int sc_ioctl(int card, scs_ioctl *data)pr_debug ("%s: SCIOSTAT: ioctl received\n" , sc_adapter[card]->devicename); - bi =kmalloc (sizeof (boardInfo),GFP_KERNEL ); + bi =kzalloc (sizeof (boardInfo),GFP_KERNEL );if (!bi) {kfree (rcvmsg);return -ENOMEM ;
drivers/md/dm-exception-store.c +3 -1
@@ -173,7 +173,9 @@ int dm_exception_store_set_chunk_size(struct dm_exception_store *store,/* Validate the chunk size against the device block size */ if (chunk_size % - (bdev_logical_block_size (dm_snap_cow (store->snap)->bdev) >>9 )) { + (bdev_logical_block_size (dm_snap_cow (store->snap)->bdev) >>9 ) || + chunk_size % + (bdev_logical_block_size (dm_snap_origin (store->snap)->bdev) >>9 )) { *error ="Chunk size is not a multiple of device blocksize" ;return -EINVAL ; }
drivers/md/dm-exception-store.h +2 -1
@@ -126,8 +126,9 @@ struct dm_exception_store { };/* -* Obtain the cow device used by a given snapshot. +* Obtain the origin or cow device used by a given snapshot. */ +struct dm_dev *dm_snap_origin (struct dm_snapshot *snap);struct dm_dev *dm_snap_cow (struct dm_snapshot *snap);/*
drivers/md/dm-ioctl.c +31 -19
83 lines not on this page · raw message
drivers/md/dm-snap.c +28 -16
97 lines not on this page · raw message
drivers/md/dm.c +47 -16
92 lines not on this page · raw message
drivers/md/dm.h +5 -0
@@ -122,6 +122,11 @@ void dm_linear_exit(void);int dm_stripe_init (void );void dm_stripe_exit (void ); +/* +* mapped_device operations +*/ +void dm_destroy (struct mapped_device *md); +void dm_destroy_immediate (struct mapped_device *md);int dm_open_count (struct mapped_device *md);int dm_lock_for_deletion (struct mapped_device *md);
drivers/memstick/core/mspro_block.c +4 -2
@@ -1040,6 +1040,7 @@ static int mspro_block_read_attributes(struct memstick_dev *card)snprintf (s_attr->name,sizeof (s_attr->name),"attr_x%02x" , attr->entries[cnt].id); +sysfs_attr_init (&s_attr->dev_attr.attr); s_attr->dev_attr.attr.name = s_attr->name; s_attr->dev_attr.attr.mode =S_IRUGO ; s_attr->dev_attr.show =mspro_block_attr_show (s_attr->id);
@@ -1330,13 +1331,14 @@ static void mspro_block_remove(struct memstick_dev *card)struct mspro_block_data *msb =memstick_get_drvdata (card);unsigned long flags; -del_gendisk (msb->disk); -dev_dbg (&card->dev,"mspro block remove\n" );spin_lock_irqsave (&msb->q_lock, flags); msb->eject =1 ;blk_start_queue (msb->queue);spin_unlock_irqrestore (&msb->q_lock, flags); +del_gendisk (msb->disk); +dev_dbg (&card->dev,"mspro block remove\n" ); +blk_cleanup_queue (msb->queue); msb->queue =NULL ;
drivers/mtd/chips/cfi_cmdset_0001.c +10 -10
@@ -717,7 +717,7 @@ static int cfi_intelext_partition_fixup(struct mtd_info *mtd, chip = &newcfi->chips[0 ];for (i =0 ; i < cfi->numchips; i++) { shared[i].writing = shared[i].erasing =NULL ; -spin_lock_init (&shared[i].lock); +mutex_init (&shared[i].lock);for (j =0 ; j < numparts; j++) { *chip = cfi->chips[i]; chip->start += j << partshift;
@@ -886,7 +886,7 @@ static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr*/ struct flchip_shared *shared = chip->priv;struct flchip *contender; -spin_lock (&shared->lock); +mutex_lock (&shared->lock); contender = shared->writing;if (contender && contender != chip) {/*
@@ -899,7 +899,7 @@ static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr* get_chip returns success we're clear to go ahead. */ ret =mutex_trylock (&contender->mutex); -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock);if (!ret) goto retry;mutex_unlock (&chip->mutex);
@@ -914,7 +914,7 @@ static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adrmutex_unlock (&contender->mutex);return ret; } -spin_lock (&shared->lock); +mutex_lock (&shared->lock);/* We should not own chip if it is already * in FL_SYNCING state. Put contender and retry. */
@@ -930,7 +930,7 @@ static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr* on this chip. Sleep. */ if (mode ==FL_ERASING && shared->erasing && shared->erasing->oldstate ==FL_ERASING ) { -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock);set_current_state (TASK_UNINTERRUPTIBLE );add_wait_queue (&chip->wq, &wait);mutex_unlock (&chip->mutex);
@@ -944,7 +944,7 @@ static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr shared->writing = chip;if (mode ==FL_ERASING ) shared->erasing = chip; -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock); } ret =chip_ready (map, chip, adr, mode);if (ret == -EAGAIN )
@@ -959,7 +959,7 @@ static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adif (chip->priv) {struct flchip_shared *shared = chip->priv; -spin_lock (&shared->lock); +mutex_lock (&shared->lock);if (shared->writing == chip && chip->oldstate ==FL_READY ) {/* We own the ability to write, but we're done */ shared->writing = shared->erasing;
@@ -967,7 +967,7 @@ static void put_chip(struct map_info *map, struct flchip *chip, unsigned long ad/* give back ownership to who we loaned it from */ struct flchip *loaner = shared->writing;mutex_lock (&loaner->mutex); -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock);mutex_unlock (&chip->mutex);put_chip (map, loaner, loaner->start);mutex_lock (&chip->mutex);
@@ -985,11 +985,11 @@ static void put_chip(struct map_info *map, struct flchip *chip, unsigned long ad* Don't let the switch below mess things up since * we don't have ownership to resume anything. */ -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock);wake_up (&chip->wq);return ; } -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock); }switch (chip->oldstate) {
drivers/mtd/lpddr/lpddr_cmds.c +10 -10
@@ -98,7 +98,7 @@ struct mtd_info *lpddr_cmdset(struct map_info *map) numchips = lpddr->numchips / lpddr->qinfo->HWPartsNum;for (i =0 ; i < numchips; i++) { shared[i].writing = shared[i].erasing =NULL ; -spin_lock_init (&shared[i].lock); +mutex_init (&shared[i].lock);for (j =0 ; j < lpddr->qinfo->HWPartsNum; j++) { *chip = lpddr->chips[i]; chip->start += j << lpddr->chipshift;
@@ -217,7 +217,7 @@ static int get_chip(struct map_info *map, struct flchip *chip, int mode)*/ struct flchip_shared *shared = chip->priv;struct flchip *contender; -spin_lock (&shared->lock); +mutex_lock (&shared->lock); contender = shared->writing;if (contender && contender != chip) {/*
@@ -230,7 +230,7 @@ static int get_chip(struct map_info *map, struct flchip *chip, int mode)* get_chip returns success we're clear to go ahead. */ ret =mutex_trylock (&contender->mutex); -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock);if (!ret) goto retry;mutex_unlock (&chip->mutex);
@@ -245,7 +245,7 @@ static int get_chip(struct map_info *map, struct flchip *chip, int mode)mutex_unlock (&contender->mutex);return ret; } -spin_lock (&shared->lock); +mutex_lock (&shared->lock);/* We should not own chip if it is already in FL_SYNCING * state. Put contender and retry. */
@@ -261,7 +261,7 @@ static int get_chip(struct map_info *map, struct flchip *chip, int mode)Must sleep in such a case. */ if (mode ==FL_ERASING && shared->erasing && shared->erasing->oldstate ==FL_ERASING ) { -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock);set_current_state (TASK_UNINTERRUPTIBLE );add_wait_queue (&chip->wq, &wait);mutex_unlock (&chip->mutex);
@@ -275,7 +275,7 @@ static int get_chip(struct map_info *map, struct flchip *chip, int mode) shared->writing = chip;if (mode ==FL_ERASING ) shared->erasing = chip; -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock); } ret =chip_ready (map, chip, mode);
@@ -348,7 +348,7 @@ static void put_chip(struct map_info *map, struct flchip *chip) {if (chip->priv) {struct flchip_shared *shared = chip->priv; -spin_lock (&shared->lock); +mutex_lock (&shared->lock);if (shared->writing == chip && chip->oldstate ==FL_READY ) {/* We own the ability to write, but we're done */ shared->writing = shared->erasing;
@@ -356,7 +356,7 @@ static void put_chip(struct map_info *map, struct flchip *chip)/* give back the ownership */ struct flchip *loaner = shared->writing;mutex_lock (&loaner->mutex); -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock);mutex_unlock (&chip->mutex);put_chip (map, loaner);mutex_lock (&chip->mutex);
@@ -374,11 +374,11 @@ static void put_chip(struct map_info *map, struct flchip *chip)* Don't let the switch below mess things up since * we don't have ownership to resume anything. */ -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock);wake_up (&chip->wq);return ; } -spin_unlock (&shared->lock); +mutex_unlock (&shared->lock); }switch (chip->oldstate) {
drivers/mtd/nand/nand_base.c +1 -0
@@ -2852,6 +2852,7 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,*/ if (id_data[0 ] == id_data[6 ] && id_data[1 ] == id_data[7 ] && id_data[0 ] ==NAND_MFR_SAMSUNG && + (chip->cellinfo &NAND_CI_CELLTYPE_MSK ) && id_data[5 ] !=0x00 ) {/* Calc pagesize */ mtd->writesize =2048 << (extid &0x03 );
drivers/mtd/nand/plat_nand.c +5 -0
@@ -37,6 +37,11 @@ static int __devinit plat_nand_probe(struct platform_device *pdev)struct resource *res;int err =0 ; +if (pdata->chip.nr_chips <1 ) { +dev_err (&pdev->dev,"invalid number of chips specified\n" ); +return -EINVAL ; + } + res =platform_get_resource (pdev,IORESOURCE_MEM ,0 );if (!res)return -ENXIO ;
drivers/mtd/nand/pxa3xx_nand.c +1 -1
@@ -363,7 +363,7 @@ static struct pxa3xx_nand_flash *builtin_flash_types[] = {#define tAR_NDTR1 (r) (((r) >> 0) & 0xf)/* convert nano-seconds to nand flash controller clock cycles */ -#define ns2cycle (ns, clk) (int)(((ns) * (clk / 1000000) / 1000) - 1) +#define ns2cycle (ns, clk) (int)((ns) * (clk / 1000000) / 1000)/* convert nand flash controller clock cycles to nano-seconds */ #define cycle2ns (c, clk) ((((c) + 1) * 1000000 + clk / 500) / (clk / 1000))
drivers/net/e1000e/82571.c +18 -13
@@ -936,12 +936,14 @@ static s32 e1000_reset_hw_82571(struct e1000_hw *hw)ew32 (IMC ,0xffffffff ); icr =er32 (ICR ); -/* Install any alternate MAC address into RAR0 */ - ret_val =e1000_check_alt_mac_addr_generic (hw); -if (ret_val) -return ret_val; +if (hw->mac.type == e1000_82571) { +/* Install any alternate MAC address into RAR0 */ + ret_val =e1000_check_alt_mac_addr_generic (hw); +if (ret_val) +return ret_val; -e1000e_set_laa_state_82571 (hw, true); +e1000e_set_laa_state_82571 (hw, true); + }/* Reinitialize the 82571 serdes link state machine */ if (hw->phy.media_type == e1000_media_type_internal_serdes)
@@ -1618,14 +1620,16 @@ static s32 e1000_read_mac_addr_82571(struct e1000_hw *hw) {s32 ret_val =0 ; -/* -* If there's an alternate MAC address place it in RAR0 -* so that it will override the Si installed default perm -* address. -*/ - ret_val =e1000_check_alt_mac_addr_generic (hw); -if (ret_val) - goto out; +if (hw->mac.type == e1000_82571) { +/* +* If there's an alternate MAC address place it in RAR0 +* so that it will override the Si installed default perm +* address. +*/ + ret_val =e1000_check_alt_mac_addr_generic (hw); +if (ret_val) + goto out; + } ret_val =e1000_read_mac_addr_generic (hw);
@@ -1833,6 +1837,7 @@ struct e1000_info e1000_82573_info = { | FLAG_HAS_SMART_POWER_DOWN |FLAG_HAS_AMT | FLAG_HAS_SWSM_ON_LOAD, + .flags2 = FLAG2_DISABLE_ASPM_L1, .pba = 20, .max_hw_frame_size = ETH_FRAME_LEN + ETH_FCS_LEN, .get_variants = e1000_get_variants_82571,
drivers/net/e1000e/defines.h +4 -0
@@ -620,6 +620,7 @@#define E1000_FLASH_UPDATES 2000/* NVM Word Offsets */ +#define NVM_COMPAT 0x0003#define NVM_ID_LED_SETTINGS 0x0004#define NVM_INIT_CONTROL2_REG 0x000F#define NVM_INIT_CONTROL3_PORT_B 0x0014
@@ -642,6 +643,9 @@/* Mask bits for fields in Word 0x1a of the NVM */ #define NVM_WORD1A_ASPM_MASK 0x000C +/* Mask bits for fields in Word 0x03 of the EEPROM */ +#define NVM_COMPAT_LOM 0x0800 +/* For checksumming, the sum of all words in the NVM should equal 0xBABA. */ #define NVM_SUM 0xBABA
drivers/net/e1000e/lib.c +10 -0
@@ -183,6 +183,16 @@ s32 e1000_check_alt_mac_addr_generic(struct e1000_hw *hw)u16 offset, nvm_alt_mac_addr_offset, nvm_data;u8 alt_mac_addr[ETH_ALEN ]; + ret_val =e1000_read_nvm (hw,NVM_COMPAT ,1 , &nvm_data); +if (ret_val) + goto out; + +/* Check for LOM (vs. NIC) or one of two valid mezzanine cards */ +if (!((nvm_data &NVM_COMPAT_LOM ) || + (hw->adapter->pdev->device ==E1000_DEV_ID_82571EB_SERDES_DUAL ) || + (hw->adapter->pdev->device ==E1000_DEV_ID_82571EB_SERDES_QUAD ))) + goto out; + ret_val =e1000_read_nvm (hw,NVM_ALT_MAC_ADDR_PTR ,1 , &nvm_alt_mac_addr_offset);if (ret_val) {
drivers/net/wireless/ath/ath5k/base.c +21 -0
@@ -48,6 +48,7 @@#include <linux/netdevice.h> #include <linux/cache.h> #include <linux/pci.h> +#include <linux/pci-aspm.h> #include <linux/ethtool.h> #include <linux/uaccess.h> #include <linux/slab.h>
@@ -472,6 +473,26 @@ ath5k_pci_probe(struct pci_dev *pdev,int ret;u8 csz; +/* +* L0s needs to be disabled on all ath5k cards. +* +* For distributions shipping with CONFIG_PCIEASPM (this will be enabled +* by default in the future in 2.6.36) this will also mean both L1 and +* L0s will be disabled when a pre 1.1 PCIe device is detected. We do +* know L1 works correctly even for all ath5k pre 1.1 PCIe devices +* though but cannot currently undue the effect of a blacklist, for +* details you can read pcie_aspm_sanity_check() and see how it adjusts +* the device link capability. +* +* It may be possible in the future to implement some PCI API to allow +* drivers to override blacklists for pre 1.1 PCIe but for now it is +* best to accept that both L0s and L1 will be disabled completely for +* distributions shipping with CONFIG_PCIEASPM rather than having this +* issue present. Motivation for adding this new API will be to help +* with power consumption for some of these devices. +*/ +pci_disable_link_state (pdev,PCIE_LINK_STATE_L0S ); + ret =pci_enable_device (pdev);if (ret) {dev_err (&pdev->dev,"can't enable device\n" );
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +10 -5
@@ -68,18 +68,23 @@ int ath9k_htc_tx_start(struct ath9k_htc_priv *priv, struct sk_buff *skb)struct ieee80211_tx_info *tx_info =IEEE80211_SKB_CB (skb);struct ieee80211_sta *sta = tx_info->control.sta;struct ath9k_htc_sta *ista; -struct ath9k_htc_vif *avp;struct ath9k_htc_tx_ctl tx_ctl;enum htc_endpoint_id epid;u16 qnum, hw_qnum;__le16 fc;u8 *tx_fhdr; -u8 sta_idx; +u8 sta_idx, vif_idx; hdr = (struct ieee80211_hdr *) skb->data; fc = hdr->frame_control; - avp = (struct ath9k_htc_vif *) tx_info->control.vif->drv_priv; +if (tx_info->control.vif && + (struct ath9k_htc_vif *) tx_info->control.vif->drv_priv) + vif_idx = ((struct ath9k_htc_vif *) + tx_info->control.vif->drv_priv)->index; +else + vif_idx = priv->nvifs; +if (sta) { ista = (struct ath9k_htc_sta *) sta->drv_priv; sta_idx = ista->index;
@@ -96,7 +101,7 @@ int ath9k_htc_tx_start(struct ath9k_htc_priv *priv, struct sk_buff *skb)memset (&tx_hdr,0 ,sizeof (struct tx_frame_hdr )); tx_hdr.node_idx = sta_idx; - tx_hdr.vif_idx = avp->index; + tx_hdr.vif_idx = vif_idx;if (tx_info->flags &IEEE80211_TX_CTL_AMPDU ) { tx_ctl.type =ATH9K_HTC_AMPDU ;
@@ -156,7 +161,7 @@ int ath9k_htc_tx_start(struct ath9k_htc_priv *priv, struct sk_buff *skb) tx_ctl.type =ATH9K_HTC_NORMAL ; mgmt_hdr.node_idx = sta_idx; - mgmt_hdr.vif_idx = avp->index; + mgmt_hdr.vif_idx = vif_idx; mgmt_hdr.tidno =0 ; mgmt_hdr.flags =0 ;
drivers/net/wireless/iwlwifi/iwl-3945.c +0 -16
@@ -915,22 +915,6 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl_priv *priv, rts_retry_limit = data_retry_limit; tx_cmd->rts_retry_limit = rts_retry_limit; -if (ieee80211_is_mgmt (fc)) { -switch (fc &cpu_to_le16 (IEEE80211_FCTL_STYPE )) { -case cpu_to_le16 (IEEE80211_STYPE_AUTH ): -case cpu_to_le16 (IEEE80211_STYPE_DEAUTH ): -case cpu_to_le16 (IEEE80211_STYPE_ASSOC_REQ ): -case cpu_to_le16 (IEEE80211_STYPE_REASSOC_REQ ): -if (tx_flags &TX_CMD_FLG_RTS_MSK ) { - tx_flags &= ~TX_CMD_FLG_RTS_MSK ; - tx_flags |=TX_CMD_FLG_CTS_MSK ; - } -break ; -default : -break ; - } - } - tx_cmd->rate = rate; tx_cmd->tx_flags = tx_flags;
drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c +14 -3
@@ -209,10 +209,21 @@ static void iwlagn_chain_noise_reset(struct iwl_priv *priv) } } -static void iwlagn_rts_tx_cmd_flag (struct ieee80211_tx_info *info, -__le32 *tx_flags) +static void iwlagn_rts_tx_cmd_flag (struct iwl_priv *priv, +struct ieee80211_tx_info *info, +__le16 fc,__le32 *tx_flags) { - *tx_flags |=TX_CMD_FLG_RTS_CTS_MSK ; +if (info->control.rates[0 ].flags &IEEE80211_TX_RC_USE_RTS_CTS || + info->control.rates[0 ].flags &IEEE80211_TX_RC_USE_CTS_PROTECT ) { + *tx_flags |=TX_CMD_FLG_RTS_CTS_MSK ; +return ; + } + +if (priv->cfg->use_rts_for_ht && + info->flags &IEEE80211_TX_CTL_AMPDU ) { + *tx_flags |=TX_CMD_FLG_RTS_CTS_MSK ; +return ; + } }/* Calc max signal level (dBm) among 3 possible receivers */
drivers/net/wireless/iwlwifi/iwl-agn-rs.c +5 -12
@@ -325,18 +325,11 @@ static void rs_tl_turn_on_agg(struct iwl_priv *priv, u8 tid, struct iwl_lq_sta *lq_data, struct ieee80211_sta *sta) { -if ((tid <TID_MAX_LOAD_COUNT ) && - !rs_tl_turn_on_agg_for_tid (priv, lq_data, tid, sta)) { -if (priv->cfg->use_rts_for_ht) { -/* -* switch to RTS/CTS if it is the prefer protection -* method for HT traffic -*/ -IWL_DEBUG_HT (priv,"use RTS/CTS protection for HT\n" ); - priv->staging_rxon.flags &= ~RXON_FLG_SELF_CTS_EN ; -iwlcore_commit_rxon (priv); - } - } +if (tid <TID_MAX_LOAD_COUNT ) +rs_tl_turn_on_agg_for_tid (priv, lq_data, tid, sta); +else +IWL_ERR (priv,"tid exceeds max load count: %d/%d\n" , + tid,TID_MAX_LOAD_COUNT ); }static inline int get_num_of_ant_from_rate (u32 rate_n_flags)
drivers/net/wireless/iwlwifi/iwl-agn-tx.c +1 -19
@@ -376,10 +376,7 @@ static void iwlagn_tx_cmd_build_basic(struct iwl_priv *priv, tx_flags |=TX_CMD_FLG_SEQ_CTL_MSK ; } - priv->cfg->ops->utils->rts_tx_cmd_flag (info, &tx_flags); - -if ((tx_flags &TX_CMD_FLG_RTS_MSK ) || (tx_flags &TX_CMD_FLG_CTS_MSK )) - tx_flags |=TX_CMD_FLG_FULL_TXOP_PROT_MSK ; + priv->cfg->ops->utils->rts_tx_cmd_flag (priv, info, fc, &tx_flags); tx_flags &= ~(TX_CMD_FLG_ANT_SEL_MSK );if (ieee80211_is_mgmt (fc)) {
@@ -453,21 +450,6 @@ static void iwlagn_tx_cmd_build_rate(struct iwl_priv *priv,if ((rate_idx >=IWL_FIRST_CCK_RATE ) && (rate_idx <=IWL_LAST_CCK_RATE )) rate_flags |=RATE_MCS_CCK_MSK ; -/* Set up RTS and CTS flags for certain packets */ -switch (fc &cpu_to_le16 (IEEE80211_FCTL_STYPE )) { -case cpu_to_le16 (IEEE80211_STYPE_AUTH ): -case cpu_to_le16 (IEEE80211_STYPE_DEAUTH ): -case cpu_to_le16 (IEEE80211_STYPE_ASSOC_REQ ): -case cpu_to_le16 (IEEE80211_STYPE_REASSOC_REQ ): -if (tx_cmd->tx_flags &TX_CMD_FLG_RTS_MSK ) { - tx_cmd->tx_flags &= ~TX_CMD_FLG_RTS_MSK ; - tx_cmd->tx_flags |=TX_CMD_FLG_CTS_MSK ; - } -break ; -default : -break ; - } -/* Set up antennas */ priv->mgmt_tx_ant =iwl_toggle_tx_ant (priv, priv->mgmt_tx_ant); rate_flags |=iwl_ant_idx_to_flags (priv->mgmt_tx_ant);
drivers/net/wireless/iwlwifi/iwl-agn.c +73 -10
112 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-core.c +23 -47
99 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-core.h +6 -7
@@ -102,8 +102,9 @@ struct iwl_hcmd_utils_ops {u32 min_average_noise, u8 default_chain);void (*chain_noise_reset)(struct iwl_priv *priv); -void (*rts_tx_cmd_flag)(struct ieee80211_tx_info *info, -__le32 *tx_flags); +void (*rts_tx_cmd_flag)(struct iwl_priv *priv, +struct ieee80211_tx_info *info, +__le16 fc,__le32 *tx_flags);int (*calc_rssi)(struct iwl_priv *priv,struct iwl_rx_phy_res *rx_resp);void (*request_scan)(struct iwl_priv *priv,struct ieee80211_vif *vif);
@@ -355,9 +356,6 @@ int iwl_set_decrypted_flag(struct iwl_priv *priv,u32 decrypt_res, struct ieee80211_rx_status *stats);void iwl_irq_handle_error (struct iwl_priv *priv); -void iwl_configure_filter (struct ieee80211_hw *hw, -unsigned int changed_flags, -unsigned int *total_flags,u64 multicast);int iwl_set_hw_params (struct iwl_priv *priv);void iwl_post_associate (struct iwl_priv *priv,struct ieee80211_vif *vif); void iwl_bss_info_changed(struct ieee80211_hw *hw,
@@ -375,8 +373,9 @@ void iwl_config_ap(struct iwl_priv *priv, struct ieee80211_vif *vif);void iwl_mac_reset_tsf (struct ieee80211_hw *hw);int iwl_alloc_txq_mem (struct iwl_priv *priv);void iwl_free_txq_mem (struct iwl_priv *priv); -void iwlcore_rts_tx_cmd_flag (struct ieee80211_tx_info *info, -__le32 *tx_flags); +void iwlcore_rts_tx_cmd_flag (struct iwl_priv *priv, +struct ieee80211_tx_info *info, +__le16 fc,__le32 *tx_flags);#ifdef CONFIG_IWLWIFI_DEBUGFS int iwl_alloc_traffic_mem (struct iwl_priv *priv);void iwl_free_traffic_mem (struct iwl_priv *priv);
drivers/net/wireless/iwlwifi/iwl3945-base.c +51 -5
74 lines not on this page · raw message
drivers/net/wireless/wl12xx/wl1251_cmd.c +1 -1
@@ -484,7 +484,7 @@ int wl1251_cmd_trigger_scan_to(struct wl1251 *wl, u32 timeout) cmd->timeout = timeout; - ret =wl1251_cmd_send (wl,CMD_SCAN , cmd,sizeof (*cmd)); + ret =wl1251_cmd_send (wl,CMD_TRIGGER_SCAN_TO , cmd,sizeof (*cmd));if (ret <0 ) {wl1251_error ("cmd trigger scan to failed: %d" , ret); goto out;
drivers/platform/x86/compal-laptop.c +9 -0
@@ -259,6 +259,14 @@ static struct dmi_system_id __initdata compal_dmi_table[] = { .callback = dmi_check_cb }, { + .ident = "Dell Mini 1012", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 1012"), + }, + .callback = dmi_check_cb + }, + { .ident ="Dell Inspiron 11z" , .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
@@ -375,5 +383,6 @@ MODULE_ALIAS("dmi:*:rnIFT00:rvrIFT00:*");MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron910:*" );MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron1010:*" );MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron1011:*" ); +MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron1012:*" );MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron1110:*" );MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron1210:*" );
drivers/platform/x86/dell-laptop.c +7 -0
@@ -116,6 +116,13 @@ static struct dmi_system_id __devinitdata dell_blacklist[] = { }, }, { + .ident = "Dell Mini 1012", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 1012"), + }, + }, + { .ident ="Dell Inspiron 11z" , .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
drivers/regulator/wm8994-regulator.c +2 -3
@@ -219,8 +219,6 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev) ldo->wm8994 = wm8994; - ldo->is_enabled = true; -if (pdata->ldo[id].enable &&gpio_is_valid (pdata->ldo[id].enable)) { ldo->enable = pdata->ldo[id].enable;
@@ -237,7 +235,8 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev) ret); goto err_gpio; } - } + }else + ldo->is_enabled = true; ldo->regulator =regulator_register (&wm8994_ldo_desc[id], &pdev->dev, pdata->ldo[id].init_data, ldo);
drivers/serial/suncore.c +9 -6
@@ -55,7 +55,12 @@ EXPORT_SYMBOL(sunserial_unregister_minors);int sunserial_console_match (struct console *con,struct device_node *dp,struct uart_driver *drv,int line,bool ignore_line) { -if (!con || of_console_device != dp) +if (!con) +return 0 ; + + drv->cons = con; + +if (of_console_device != dp)return 0 ;if (!ignore_line) {
@@ -69,12 +74,10 @@ int sunserial_console_match(struct console *con, struct device_node *dp,return 0 ; } - con->index = line; - drv->cons = con; - -if (!console_set_on_cmdline) +if (!console_set_on_cmdline) { + con->index = line;add_preferred_console (con->name, line,NULL ); - + }return 1 ; }EXPORT_SYMBOL (sunserial_console_match);
drivers/staging/batman-adv/hard-interface.c +12 -9
@@ -128,6 +128,9 @@ static bool hardif_is_iface_up(struct batman_if *batman_if)static void update_mac_addresses (struct batman_if *batman_if) { +if (!batman_if || !batman_if->packet_buff) +return ; +addr_to_string (batman_if->addr_str, batman_if->net_dev->dev_addr); memcpy(((struct batman_packet *)(batman_if->packet_buff))->orig,
@@ -194,8 +197,6 @@ static void hardif_activate_interface(struct bat_priv *bat_priv,if (batman_if->if_status !=IF_INACTIVE )return ; -dev_hold (batman_if->net_dev); -update_mac_addresses (batman_if); batman_if->if_status =IF_TO_BE_ACTIVATED ;
@@ -222,8 +223,6 @@ static void hardif_deactivate_interface(struct batman_if *batman_if) (batman_if->if_status != IF_TO_BE_ACTIVATED)) return; -dev_put (batman_if->net_dev); - batman_if->if_status =IF_INACTIVE ; printk(KERN_INFO "batman-adv:Interface deactivated: %s\n",
@@ -321,12 +320,14 @@ static struct batman_if *hardif_add_interface(struct net_device *net_dev)if (ret !=1 ) goto out; +dev_hold (net_dev); + batman_if =kmalloc (sizeof (struct batman_if ),GFP_ATOMIC );if (!batman_if) {printk (KERN_ERR "batman-adv:" "Can't add interface (%s): out of memory\n" , net_dev->name); - goto out; + goto release_dev; } batman_if->dev =kstrdup (net_dev->name,GFP_ATOMIC );
@@ -340,6 +341,7 @@ static struct batman_if *hardif_add_interface(struct net_device *net_dev) batman_if->if_num =-1 ; batman_if->net_dev = net_dev; batman_if->if_status =IF_NOT_IN_USE ; + batman_if->packet_buff =NULL ;INIT_LIST_HEAD (&batman_if->list);check_known_mac_addr (batman_if->net_dev->dev_addr);
@@ -350,6 +352,8 @@ free_dev:kfree (batman_if->dev); free_if:kfree (batman_if); +release_dev: +dev_put (net_dev); out:return NULL ; }
@@ -378,6 +382,7 @@ static void hardif_remove_interface(struct batman_if *batman_if) batman_if->if_status =IF_TO_BE_REMOVED ;list_del_rcu (&batman_if->list);sysfs_del_hardif (&batman_if->hardif_obj); +dev_put (batman_if->net_dev);call_rcu (&batman_if->rcu, hardif_free_interface); }
@@ -397,15 +402,13 @@ static int hard_if_event(struct notifier_block *this,/* FIXME: each batman_if will be attached to a softif */ struct bat_priv *bat_priv =netdev_priv (soft_device); -if (!batman_if) - batman_if =hardif_add_interface (net_dev); +if (!batman_if && event ==NETDEV_REGISTER ) + batman_if =hardif_add_interface (net_dev);if (!batman_if) goto out;switch (event) { -case NETDEV_REGISTER : -break ;case NETDEV_UP :hardif_activate_interface (bat_priv, batman_if);break ;
drivers/staging/batman-adv/originator.c +8 -6
@@ -401,11 +401,12 @@ static int orig_node_add_if(struct orig_node *orig_node, int max_if_num)int orig_hash_add_if (struct batman_if *batman_if,int max_if_num) {struct orig_node *orig_node; +unsigned long flags;HASHIT (hashit);/* resize all orig nodes because orig_node->bcast_own(_sum) depend on * if_num */ -spin_lock (&orig_hash_lock); +spin_lock_irqsave (&orig_hash_lock, flags);while (hash_iterate (orig_hash, &hashit)) { orig_node = hashit.bucket->data;
@@ -414,11 +415,11 @@ int orig_hash_add_if(struct batman_if *batman_if, int max_if_num) goto err; } -spin_unlock (&orig_hash_lock); +spin_unlock_irqrestore (&orig_hash_lock, flags);return 0 ; err: -spin_unlock (&orig_hash_lock); +spin_unlock_irqrestore (&orig_hash_lock, flags);return -ENOMEM ; }
@@ -480,12 +481,13 @@ int orig_hash_del_if(struct batman_if *batman_if, int max_if_num) {struct batman_if *batman_if_tmp;struct orig_node *orig_node; +unsigned long flags;HASHIT (hashit);int ret;/* resize all orig nodes because orig_node->bcast_own(_sum) depend on * if_num */ -spin_lock (&orig_hash_lock); +spin_lock_irqsave (&orig_hash_lock, flags);while (hash_iterate (orig_hash, &hashit)) { orig_node = hashit.bucket->data;
@@ -512,10 +514,10 @@ int orig_hash_del_if(struct batman_if *batman_if, int max_if_num)rcu_read_unlock (); batman_if->if_num =-1 ; -spin_unlock (&orig_hash_lock); +spin_unlock_irqrestore (&orig_hash_lock, flags);return 0 ; err: -spin_unlock (&orig_hash_lock); +spin_unlock_irqrestore (&orig_hash_lock, flags);return -ENOMEM ; }
drivers/usb/host/xhci-ring.c +1 -1
@@ -131,7 +131,7 @@ static void next_trb(struct xhci_hcd *xhci, *seg = (*seg)->next; *trb = ((*seg)->trbs); }else { - *trb = (*trb)++; + (*trb)++; } }
drivers/usb/serial/cp210x.c +2 -2
@@ -222,8 +222,8 @@ static struct usb_serial_driver cp210x_device = {#define BITS_STOP_2 0x0002/* CP210X_SET_BREAK */ -#define BREAK_ON 0x0000 -#define BREAK_OFF 0x0001 +#define BREAK_ON 0x0001 +#define BREAK_OFF 0x0000/* CP210X_(SET_MHS|GET_MDMSTS) */ #define CONTROL_DTR 0x0001
drivers/usb/serial/ftdi_sio.c +4 -1
@@ -180,6 +180,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SPROG_II) }, + { USB_DEVICE(FTDI_VID, FTDI_LENZ_LIUSB_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_632_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_634_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_547_PID) },
@@ -750,6 +751,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, XVERVE_SIGNALYZER_SH4_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { USB_DEVICE(FTDI_VID, SEGWAY_RMP200_PID) }, + { USB_DEVICE(IONICS_VID, IONICS_PLUGCOMPUTER_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { }, /* Optional parameter entry */ { }/* Terminating entry */ };
@@ -1376,7 +1379,7 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port) }/* set max packet size based on descriptor */ - priv->max_packet_size = ep_desc->wMaxPacketSize; + priv->max_packet_size =le16_to_cpu (ep_desc->wMaxPacketSize);dev_info (&udev->dev,"Setting MaxPacketSize %d\n" , priv->max_packet_size); }
drivers/usb/serial/ftdi_sio_ids.h +9 -0
@@ -110,6 +110,9 @@/* Propox devices */ #define FTDI_PROPOX_JTAGCABLEII_PID 0xD738 +/* Lenz LI-USB Computer Interface. */ +#define FTDI_LENZ_LIUSB_PID 0xD780 +/* * Xsens Technologies BV products (http://www.xsens.com). */
@@ -989,6 +992,12 @@#define ALTI2_N3_PID 0x6001/* Neptune 3 */ /* +* Ionics PlugComputer +*/ +#define IONICS_VID 0x1c0c +#define IONICS_PLUGCOMPUTER_PID 0x0102 + +/* * Dresden Elektronik Sensor Terminal Board */ #define DE_VID 0x1cf1/* Vendor ID */
drivers/usb/serial/io_ti.c +1 -1
@@ -1151,7 +1151,7 @@ static int download_fw(struct edgeport_serial *serial)/* Check if we have an old version in the I2C and update if necessary */ -if (download_cur_ver != download_new_ver) { +if (download_cur_ver < download_new_ver) { dbg("%s - Update I2C dld from %d.%d to %d.%d", __func__, firmware_version->Ver_Major,
drivers/usb/serial/navman.c +1 -0
@@ -25,6 +25,7 @@ static int debug;static const struct usb_device_id id_table[] = { {USB_DEVICE (0x0a99 ,0x0001 ) },/* Talon Technology device */ + {USB_DEVICE (0x0df7 ,0x0900 ) },/* Mobile Action i-gotU */ { }, };MODULE_DEVICE_TABLE (usb, id_table);
drivers/usb/serial/option.c +5 -2
@@ -368,6 +368,10 @@ static void option_instat_callback(struct urb *urb);#define OLIVETTI_VENDOR_ID 0x0b3c#define OLIVETTI_PRODUCT_OLICARD100 0xc000 +/* Celot products */ +#define CELOT_VENDOR_ID 0x211f +#define CELOT_PRODUCT_CT680M 0x6801 +/* some devices interfaces need special handling due to a number of reasons */ enum option_blacklist_reason {OPTION_BLACKLIST_NONE =0 ,
@@ -891,10 +895,9 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_100F) }, { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_1011)}, { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_1012)}, - { USB_DEVICE(CINTERION_VENDOR_ID, 0x0047) }, - { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100) }, + { USB_DEVICE(CELOT_VENDOR_ID, CELOT_PRODUCT_CT680M) }, /* CT-650 CDMA 450 1xEVDO modem */ { } /* Terminating entry */ };MODULE_DEVICE_TABLE (usb, option_ids);
drivers/usb/serial/pl2303.c +1 -0
@@ -86,6 +86,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(SUPERIAL_VENDOR_ID, SUPERIAL_PRODUCT_ID) }, { USB_DEVICE(HP_VENDOR_ID, HP_LD220_PRODUCT_ID) }, { USB_DEVICE(CRESSI_VENDOR_ID, CRESSI_EDY_PRODUCT_ID) }, + { USB_DEVICE(ZEAGLE_VENDOR_ID, ZEAGLE_N2ITION3_PRODUCT_ID) }, { USB_DEVICE(SONY_VENDOR_ID, SONY_QN3USB_PRODUCT_ID) }, { USB_DEVICE(SANWA_VENDOR_ID, SANWA_PRODUCT_ID) }, { USB_DEVICE(ADLINK_VENDOR_ID, ADLINK_ND6530_PRODUCT_ID) },
drivers/usb/serial/pl2303.h +4 -0
@@ -128,6 +128,10 @@#define CRESSI_VENDOR_ID 0x04b8#define CRESSI_EDY_PRODUCT_ID 0x0521 +/* Zeagle dive computer interface */ +#define ZEAGLE_VENDOR_ID 0x04b8 +#define ZEAGLE_N2ITION3_PRODUCT_ID 0x0522 +/* Sony, USB data cable for CMD-Jxx mobile phones */ #define SONY_VENDOR_ID 0x054c#define SONY_QN3USB_PRODUCT_ID 0x0437
drivers/video/matrox/matroxfb_base.h +2 -2
@@ -151,13 +151,13 @@ static inline void mga_writel(vaddr_t va, unsigned int offs, u_int32_t value) {static inline void mga_memcpy_toio (vaddr_t va,const void * src,int len) {#if defined(__alpha__) || defined(__i386__) || defined(__x86_64__)/* -* memcpy_toio works for us if: +* iowrite32_rep works for us if: * (1) Copies data as 32bit quantities, not byte after byte, * (2) Performs LE ordered stores, and * (3) It copes with unaligned source (destination is guaranteed to be page * aligned and length is guaranteed to be multiple of 4). */ -memcpy_toio (va.vaddr, src, len); +iowrite32_rep (va.vaddr, src, len >>2 );#else u_int32_t __iomem * addr = va.vaddr;
firmware/Makefile +1 -1
@@ -142,7 +142,7 @@ fw-shipped-$(CONFIG_YAM) += yam/1200.bin yam/9600.bin fw-shipped-all := $(fw-shipped-y) $(fw-shipped-m) $(fw-shipped-) # Directories which we _might_ need to create, so we have a rule for them. -firmware-dirs := $(sort $(patsubst %,$(objtree)/$(obj)/%/,$(dir $(fw-external-y) $(fw-shipped-all)))) +firmware-dirs := $(sort $(addprefix $(objtree)/$(obj)/,$(dir $(fw-external-y) $(fw-shipped-all)))) quiet_cmd_mkdir = MKDIR $(patsubst $(objtree)/%,%,$@) cmd_mkdir = mkdir -p $@
fs/char_dev.c +1 -0
@@ -20,6 +20,7 @@#include <linux/cdev.h> #include <linux/mutex.h> #include <linux/backing-dev.h> +#include <linux/tty.h> #include "internal.h"
fs/nfs/dir.c +1 -1
@@ -1103,7 +1103,7 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd)if ((openflags & (O_CREAT |O_EXCL )) == (O_CREAT |O_EXCL )) goto no_open_dput;/* We can't create new files, or truncate existing ones here */ - openflags &= ~(O_CREAT |O_TRUNC ); + openflags &= ~(O_CREAT |O_EXCL |O_TRUNC );/* * Note: we're not holding inode->i_mutex and so may be racing with
fs/nfs/nfs4proc.c +5 -3
@@ -2023,7 +2023,8 @@ nfs4_atomic_open(struct inode *dir, struct dentry *dentry, struct nameidata *nd)struct rpc_cred *cred;struct nfs4_state *state;struct dentry *res; -fmode_t fmode = nd->intent.open.flags & (FMODE_READ |FMODE_WRITE |FMODE_EXEC ); +int open_flags = nd->intent.open.flags; +fmode_t fmode = open_flags & (FMODE_READ |FMODE_WRITE |FMODE_EXEC );if (nd->flags &LOOKUP_CREATE ) { attr.ia_mode = nd->intent.open.create_mode;
@@ -2031,8 +2032,9 @@ nfs4_atomic_open(struct inode *dir, struct dentry *dentry, struct nameidata *nd)if (!IS_POSIXACL (dir)) attr.ia_mode &= ~current_umask (); }else { + open_flags &= ~O_EXCL ; attr.ia_valid =0 ; -BUG_ON (nd->intent.open.flags &O_CREAT ); +BUG_ON (open_flags &O_CREAT ); } cred =rpc_lookup_cred ();
@@ -2041,7 +2043,7 @@ nfs4_atomic_open(struct inode *dir, struct dentry *dentry, struct nameidata *nd) parent = dentry->d_parent;/* Protect against concurrent sillydeletes */ nfs_block_sillyrename (parent); - state =nfs4_do_open (dir, &path, fmode, nd->intent.open.flags, &attr, cred); + state =nfs4_do_open (dir, &path, fmode, open_flags, &attr, cred);put_rpccred (cred);if (IS_ERR (state)) {if (PTR_ERR (state) == -ENOENT ) {
fs/nfs/super.c +7 -0
@@ -652,6 +652,13 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,if (nfss->options &NFS_OPTION_FSCACHE )seq_printf (m,",fsc" ); + +if (nfss->flags &NFS_MOUNT_LOOKUP_CACHE_NONEG ) { +if (nfss->flags &NFS_MOUNT_LOOKUP_CACHE_NONE ) +seq_printf (m,",lookupcache=none" ); +else +seq_printf (m,",lookupcache=pos" ); + } }/*
fs/nilfs2/super.c +3 -1
@@ -336,9 +336,10 @@ int nilfs_attach_checkpoint(struct nilfs_sb_info *sbi, __u64 cno)list_add (&sbi->s_list, &nilfs->ns_supers);up_write (&nilfs->ns_super_sem); + err = -ENOMEM ; sbi->s_ifile =nilfs_ifile_new (sbi, nilfs->ns_inode_size);if (!sbi->s_ifile) -return -ENOMEM ; + goto delist;down_read (&nilfs->ns_segctor_sem); err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp,
@@ -369,6 +370,7 @@ int nilfs_attach_checkpoint(struct nilfs_sb_info *sbi, __u64 cno)nilfs_mdt_destroy (sbi->s_ifile); sbi->s_ifile =NULL ; + delist:down_write (&nilfs->ns_super_sem);list_del_init (&sbi->s_list);up_write (&nilfs->ns_super_sem);
fs/ocfs2/acl.c +28 -5
@@ -290,12 +290,30 @@ static int ocfs2_set_acl(handle_t *handle,int ocfs2_check_acl (struct inode *inode,int mask) { -struct posix_acl *acl =ocfs2_get_acl (inode,ACL_TYPE_ACCESS ); +struct ocfs2_super *osb =OCFS2_SB (inode->i_sb); +struct buffer_head *di_bh =NULL ; +struct posix_acl *acl; +int ret = -EAGAIN ; -if (IS_ERR (acl)) +if (!(osb->s_mount_opt &OCFS2_MOUNT_POSIX_ACL )) +return ret; + + ret =ocfs2_read_inode_block (inode, &di_bh); +if (ret <0 ) { +mlog_errno (ret); +return ret; + } + + acl =ocfs2_get_acl_nolock (inode,ACL_TYPE_ACCESS , di_bh); + +brelse (di_bh); + +if (IS_ERR (acl)) { +mlog_errno (PTR_ERR (acl));return PTR_ERR (acl); + }if (acl) { -int ret =posix_acl_permission (inode, acl, mask); + ret =posix_acl_permission (inode, acl, mask);posix_acl_release (acl);return ret; }
@@ -344,7 +362,7 @@ int ocfs2_init_acl(handle_t *handle, {struct ocfs2_super *osb =OCFS2_SB (inode->i_sb);struct posix_acl *acl =NULL ; -int ret =0 ; +int ret =0 , ret2;mode_t mode;if (!S_ISLNK (inode->i_mode)) {
@@ -381,7 +399,12 @@ int ocfs2_init_acl(handle_t *handle, mode = inode->i_mode; ret =posix_acl_create_masq (clone, &mode);if (ret >=0 ) { - ret =ocfs2_acl_set_mode (inode, di_bh, handle, mode); + ret2 =ocfs2_acl_set_mode (inode, di_bh, handle, mode); +if (ret2) { +mlog_errno (ret2); + ret = ret2; + goto cleanup; + }if (ret >0 ) { ret = ocfs2_set_acl(handle, inode, di_bh, ACL_TYPE_ACCESS,
fs/ocfs2/dlm/dlmmaster.c +2 -7
@@ -511,8 +511,6 @@ static void dlm_lockres_release(struct kref *kref)atomic_dec (&dlm->res_cur_count); -dlm_put (dlm); - if (!hlist_unhashed(&res->hash_node) || !list_empty(&res->granted) || !list_empty(&res->converting) ||
@@ -585,8 +583,6 @@ static void dlm_init_lockres(struct dlm_ctxt *dlm, res->migration_pending =0 ; res->inflight_locks =0 ; -/* put in dlm_lockres_release */ -dlm_grab (dlm); res->dlm = dlm;kref_init (&res->refs);
@@ -3050,8 +3046,6 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data,/* check for pre-existing lock */ spin_lock (&dlm->spinlock); res =__dlm_lookup_lockres (dlm, name, namelen, hash); -spin_lock (&dlm->master_lock); -if (res) {spin_lock (&res->spinlock);if (res->state &DLM_LOCK_RES_RECOVERING ) {
@@ -3069,14 +3063,15 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data,spin_unlock (&res->spinlock); } +spin_lock (&dlm->master_lock);/* ignore status. only nonzero status would BUG. */ ret =dlm_add_migration_mle (dlm, res, mle, &oldmle, name, namelen, migrate->new_master, migrate->master); -unlock:spin_unlock (&dlm->master_lock); +unlock:spin_unlock (&dlm->spinlock);if (oldmle) {
fs/ocfs2/dlm/dlmrecovery.c +10 -12
@@ -1997,6 +1997,8 @@ void dlm_move_lockres_to_recovery_list(struct dlm_ctxt *dlm,struct list_head *queue;struct dlm_lock *lock, *next; +assert_spin_locked (&dlm->spinlock); +assert_spin_locked (&res->spinlock); res->state |=DLM_LOCK_RES_RECOVERING ;if (!list_empty (&res->recovering)) { mlog(0,
@@ -2326,19 +2328,15 @@ static void dlm_do_local_recovery_cleanup(struct dlm_ctxt *dlm, u8 dead_node)/* zero the lvb if necessary */ dlm_revalidate_lvb (dlm, res, dead_node);if (res->owner == dead_node) { -if (res->state &DLM_LOCK_RES_DROPPING_REF ) -mlog (0 ,"%s:%.*s: owned by " -"dead node %u, this node was " -"dropping its ref when it died. " -"continue, dropping the flag.\n" , - dlm->name, res->lockname.len, - res->lockname.name, dead_node); - -/* the wake_up for this will happen when the -* RECOVERING flag is dropped later */ - res->state &= ~DLM_LOCK_RES_DROPPING_REF ; +if (res->state &DLM_LOCK_RES_DROPPING_REF ) { +mlog (ML_NOTICE ,"Ignore %.*s for " +"recovery as it is being freed\n" , + res->lockname.len, + res->lockname.name); + }else +dlm_move_lockres_to_recovery_list (dlm, + res); -dlm_move_lockres_to_recovery_list (dlm, res); }else if (res->owner == dlm->node_num) {dlm_free_dead_locks (dlm, res, dead_node);__dlm_lockres_calc_usage (dlm, res);
fs/ocfs2/dlm/dlmthread.c +55 -59
182 lines not on this page · raw message
fs/ocfs2/refcounttree.c +15 -5
@@ -2436,16 +2436,26 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb, len =min ((u64 )cpos + clusters,le64_to_cpu (rec.r_cpos) +le32_to_cpu (rec.r_clusters)) - cpos;/* -* If the refcount rec already exist, cool. We just need -* to check whether there is a split. Otherwise we just need -* to increase the refcount. -* If we will insert one, increases recs_add. -* * We record all the records which will be inserted to the * same refcount block, so that we can tell exactly whether * we need a new refcount block or not. +* +* If we will insert a new one, this is easy and only happens +* during adding refcounted flag to the extent, so we don't +* have a chance of spliting. We just need one record. +* +* If the refcount rec already exists, that would be a little +* complicated. we may have to: +* 1) split at the beginning if the start pos isn't aligned. +* we need 1 more record in this case. +* 2) split int the end if the end pos isn't aligned. +* we need 1 more record in this case. +* 3) split in the middle because of file system fragmentation. +* we need 2 more records in this case(we can't detect this +* beforehand, so always think of the worst case). */ if (rec.r_refcount) { + recs_add +=2 ;/* Check whether we need a split at the beginning. */ if (cpos == start_cpos && cpos !=le64_to_cpu (rec.r_cpos))
include/acpi/platform/aclinux.h +7 -3
@@ -148,13 +148,17 @@ static inline void *acpi_os_acquire_object(acpi_cache_t * cache)#define ACPI_ALLOCATE_ZEROED (a) acpi_os_allocate_zeroed(a)#define ACPI_FREE (a) kfree(a) -/* Used within ACPICA to show where it is safe to preempt execution */ -#include <linux/hardirq.h> +#ifndef CONFIG_PREEMPT +/* +* Used within ACPICA to show where it is safe to preempt execution +* when CONFIG_PREEMPT=n +*/ #define ACPI_PREEMPTION_POINT () \ do { \
Lines of this file are not shown. View the raw message.
net/can/bcm.c +27 -14
41 lines not on this page · raw message
net/netlink/af_netlink.c +16 -30
46 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Re: Linux 2.6.34.6
In reply to Greg KHMakefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 34 -EXTRAVERSION = .5 +EXTRAVERSION = .6 NAME = Sheep on Meth # *DOCUMENTATION*
arch/arm/include/asm/ptrace.h +13 -4
@@ -158,15 +158,24 @@ struct pt_regs {*/ static inline int valid_user_regs (struct pt_regs *regs) { -if (user_mode (regs) && (regs->ARM_cpsr &PSR_I_BIT ) ==0 ) { - regs->ARM_cpsr &= ~(PSR_F_BIT |PSR_A_BIT ); -return 1 ; +unsigned long mode = regs->ARM_cpsr &MODE_MASK ; + +/* +* Always clear the F (FIQ) and A (delayed abort) bits +*/ + regs->ARM_cpsr &= ~(PSR_F_BIT |PSR_A_BIT ); + +if ((regs->ARM_cpsr &PSR_I_BIT ) ==0 ) { +if (mode ==USR_MODE ) +return 1 ; +if (elf_hwcap &HWCAP_26BIT && mode ==USR26_MODE ) +return 1 ; }/* * Force CPSR to something logical... */ - regs->ARM_cpsr &= PSR_f | PSR_s | (PSR_x & ~PSR_A_BIT ) |PSR_T_BIT |MODE32_BIT ; + regs->ARM_cpsr &= PSR_f | PSR_s | PSR_x |PSR_T_BIT |MODE32_BIT ;if (!(elf_hwcap &HWCAP_26BIT )) regs->ARM_cpsr |=USR_MODE ;
arch/arm/mach-ixp4xx/ixdp425-setup.c +1 -0
@@ -100,6 +100,7 @@ ixdp425_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)static struct platform_nand_data ixdp425_flash_nand_data = { .chip = { + .nr_chips =1 , .chip_delay =30 , .options =NAND_NO_AUTOINCR , #ifdef CONFIG_MTD_PARTITIONS
arch/arm/mach-mx3/mach-qong.c +1 -0
@@ -169,6 +169,7 @@ static void qong_nand_select_chip(struct mtd_info *mtd, int chip)static struct platform_nand_data qong_nand_data = { .chip = { + .nr_chips =1 , .chip_delay =20 , .options =0 , },
arch/arm/mach-orion5x/ts78xx-setup.c +1 -0
@@ -216,6 +216,7 @@ static struct mtd_partition ts78xx_ts_nand_parts[] = {static struct platform_nand_data ts78xx_ts_nand_data = { .chip = { + .nr_chips =1 , .part_probe_types = ts_nand_part_probes, .partitions = ts78xx_ts_nand_parts, .nr_partitions =ARRAY_SIZE (ts78xx_ts_nand_parts),
arch/blackfin/mach-bf537/boards/stamp.c +1 -0
@@ -400,6 +400,7 @@ static int bfin_plat_nand_dev_ready(struct mtd_info *mtd)static struct platform_nand_data bfin_plat_nand_data = { .chip = { + .nr_chips =1 , .chip_delay =30 , #ifdef CONFIG_MTD_PARTITIONS .part_probe_types = part_probes,
arch/blackfin/mach-bf561/boards/acvilon.c +1 -0
@@ -283,6 +283,7 @@ static int bfin_plat_nand_dev_ready(struct mtd_info *mtd)static struct platform_nand_data bfin_plat_nand_data = { .chip = { + .nr_chips =1 , .chip_delay =30 , #ifdef CONFIG_MTD_PARTITIONS .part_probe_types = part_probes,
arch/powerpc/Makefile +1 -1
@@ -159,7 +159,7 @@ drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ all: zImage # With make 3.82 we cannot mix normal and wildcard targets -BOOT_TARGETS1 := zImage zImage.initrd uImaged +BOOT_TARGETS1 := zImage zImage.initrd uImage BOOT_TARGETS2 := zImage% dtbImage% treeImage.% cuImage.% simpleImage.% PHONY += $(BOOT_TARGETS1) $(BOOT_TARGETS2)
arch/sparc/include/asm/atomic_64.h +5 -5
@@ -20,14 +20,14 @@#define atomic64_set (v, i) (((v)->counter) = i)extern void atomic_add (int ,atomic_t *); -extern void atomic64_add (int ,atomic64_t *); +extern void atomic64_add (long ,atomic64_t *);extern void atomic_sub (int ,atomic_t *); -extern void atomic64_sub (int ,atomic64_t *); +extern void atomic64_sub (long ,atomic64_t *);extern int atomic_add_ret (int ,atomic_t *); -extern int atomic64_add_ret (int ,atomic64_t *); +extern long atomic64_add_ret (long ,atomic64_t *);extern int atomic_sub_ret (int ,atomic_t *); -extern int atomic64_sub_ret (int ,atomic64_t *); +extern long atomic64_sub_ret (long ,atomic64_t *);#define atomic_dec_return (v) atomic_sub_ret(1, v)#define atomic64_dec_return (v) atomic64_sub_ret(1, v)
@@ -91,7 +91,7 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u) ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))#define atomic64_xchg (v, new) (xchg(&((v)->counter), new)) -static inline int atomic64_add_unless (atomic64_t *v,long a,long u) +static inline long atomic64_add_unless (atomic64_t *v,long a,long u) {long c, old; c =atomic64_read (v);
arch/sparc/include/asm/parport.h +4 -0
@@ -228,6 +228,10 @@ static const struct of_device_id ecpp_match[] = { .name = "parallel", .compatible = "ns87317-ecpp", }, + { + .name = "parallel", + .compatible = "pnpALI,1533,3", + }, {}, };
arch/sparc/include/asm/rwsem-const.h +1 -1
@@ -5,7 +5,7 @@#define RWSEM_UNLOCKED_VALUE 0x00000000#define RWSEM_ACTIVE_BIAS 0x00000001#define RWSEM_ACTIVE_MASK 0x0000ffff -#define RWSEM_WAITING_BIAS 0xffff0000 +#define RWSEM_WAITING_BIAS (-0x00010000)#define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS#define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
arch/x86/Kconfig +5 -0
@@ -240,6 +240,11 @@ config X86_32_LAZY_GS config KTIME_SCALAR def_bool X86_32 + +config ARCH_CPU_PROBE_RELEASE + def_bool y + depends on HOTPLUG_CPU + source "init/Kconfig" source "kernel/Kconfig.freezer"
arch/x86/include/asm/cmpxchg_32.h +20 -47
80 lines not on this page · raw message
arch/x86/include/asm/cmpxchg_64.h +1 -3
@@ -5,13 +5,11 @@#define __xg (x) ((volatile long *)(x)) -static inline void set_64bit (volatile unsigned long *ptr,unsigned long val) +static inline void set_64bit (volatile u64 *ptr,u64 val) { *ptr = val; } -#define _set_64bit set_64bit -extern void __xchg_wrong_size (void );extern void __cmpxchg_wrong_size (void );
arch/x86/kernel/apic/apic.c +33 -8
60 lines not on this page · raw message
arch/x86/kernel/apic/io_apic.c +2 -0
@@ -1732,6 +1732,8 @@ __apicdebuginit(void) print_IO_APIC(void)struct irq_pin_list *entry; cfg = desc->chip_data; +if (!cfg) +continue ; entry = cfg->irq_2_pin;if (!entry)continue ;
arch/x86/kernel/smpboot.c +19 -0
@@ -91,6 +91,25 @@ DEFINE_PER_CPU(int, cpu_state) = { 0 }; static DEFINE_PER_CPU(struct task_struct *, idle_thread_array);#define get_idle_for_cpu (x) (per_cpu(idle_thread_array, x))#define set_idle_for_cpu (x, p) (per_cpu(idle_thread_array, x) = (p)) + +/* +* We need this for trampoline_base protection from concurrent accesses when +* off- and onlining cores wildly. +*/ +static DEFINE_MUTEX (x86_cpu_hotplug_driver_mutex); + +void cpu_hotplug_driver_lock () +{ +mutex_lock (&x86_cpu_hotplug_driver_mutex); +} + +void cpu_hotplug_driver_unlock () +{ +mutex_unlock (&x86_cpu_hotplug_driver_mutex); +} + +ssize_t arch_cpu_probe (const char *buf,size_t count) {return -1 ; } +ssize_t arch_cpu_release (const char *buf,size_t count) {return -1 ; }#else static struct task_struct *idle_thread_array[NR_CPUS ]__cpuinitdata ;#define get_idle_for_cpu (x) (idle_thread_array[(x)])
arch/x86/oprofile/nmi_int.c +15 -2
@@ -584,6 +584,18 @@ static int __init ppro_init(char **cpu_type)if (force_arch_perfmon && cpu_has_arch_perfmon)return 0 ; +/* +* Documentation on identifying Intel processors by CPU family +* and model can be found in the Intel Software Developer's +* Manuals (SDM): +* +* http://www.intel.com/products/processor/manuals/ +* +* As of May 2010 the documentation for this was in the: +* "Intel 64 and IA-32 Architectures Software Developer's +* Manual Volume 3B: System Programming Guide", "Table B-1 +* CPUID Signature Values of DisplayFamily_DisplayModel". +*/ switch (cpu_model) { case 0 ... 2: *cpu_type ="i386/ppro" ;
@@ -605,12 +617,13 @@ static int __init ppro_init(char **cpu_type)case 15 :case 23 : *cpu_type ="i386/core_2" ;break ; +case 0x1a : +case 0x1e :case 0x2e : -case 26 : spec = &op_arch_perfmon_spec; *cpu_type ="i386/core_i7" ;break ; -case 28 : +case 0x1c : *cpu_type ="i386/atom" ;break ;default :
drivers/gpu/drm/drm_drv.c +3 -1
@@ -502,7 +502,9 @@ long drm_ioctl(struct file *filp, retcode = -EFAULT ; goto err_i1; } - } + }else +memset (kdata,0 ,_IOC_SIZE (cmd)); +if (ioctl->flags &DRM_UNLOCKED ) retcode =func (dev, kdata, file_priv);else {
drivers/gpu/drm/i915/intel_display.c +16 -7
@@ -1470,6 +1470,7 @@ static void ironlake_enable_pll_edp (struct drm_crtc *crtc) dpa_ctl =I915_READ (DP_A ); dpa_ctl |=DP_PLL_ENABLE ;I915_WRITE (DP_A , dpa_ctl); +POSTING_READ (DP_A );udelay (200 ); }
@@ -4290,14 +4291,16 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc, work->pending_flip_obj = obj;if (intel_crtc->plane) - flip_mask =I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT ; + flip_mask =MI_WAIT_FOR_PLANE_B_FLIP ;else - flip_mask =I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT ; + flip_mask =MI_WAIT_FOR_PLANE_A_FLIP ; -/* Wait for any previous flip to finish */ -if (IS_GEN3 (dev)) -while (I915_READ (ISR ) & flip_mask) - ; +if (IS_GEN3 (dev) ||IS_GEN2 (dev)) { +BEGIN_LP_RING (2 ); +OUT_RING (MI_WAIT_FOR_EVENT | flip_mask); +OUT_RING (0 ); +ADVANCE_LP_RING (); + }/* Offset into the new buffer for cases of shared fbs between CRTCs */ offset = obj_priv->gtt_offset;
@@ -4311,12 +4314,18 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,OUT_RING (offset | obj_priv->tiling_mode); pipesrc =I915_READ (pipesrc_reg);OUT_RING (pipesrc &0x0fff0fff ); - }else { + }else if (IS_GEN3 (dev)) {OUT_RING (MI_DISPLAY_FLIP_I915 |MI_DISPLAY_FLIP_PLANE (intel_crtc->plane));OUT_RING (fb->pitch);OUT_RING (offset);OUT_RING (MI_NOOP ); + }else { +OUT_RING (MI_DISPLAY_FLIP | +MI_DISPLAY_FLIP_PLANE (intel_crtc->plane)); +OUT_RING (fb->pitch); +OUT_RING (offset); +OUT_RING (MI_NOOP ); }ADVANCE_LP_RING ();
drivers/gpu/drm/radeon/radeon_atombios.c +13 -3
@@ -206,6 +206,7 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev,uint16_t *line_mux, struct radeon_hpd *hpd) { + struct radeon_device *rdev = dev->dev_private;/* Asus M2A-VM HDMI board lists the DVI port as HDMI */ if ((dev->pdev->device == 0x791e) &&
@@ -308,13 +309,22 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev, } } -/* Acer laptop reports DVI-D as DVI-I */ +/* Acer laptop reports DVI-D as DVI-I and hpd pins reversed */ if ((dev->pdev->device ==0x95c4 ) && (dev->pdev->subsystem_vendor ==0x1025 ) && (dev->pdev->subsystem_device ==0x013c )) { +struct radeon_gpio_rec gpio; +if ((*connector_type ==DRM_MODE_CONNECTOR_DVII ) && - (supported_device ==ATOM_DEVICE_DFP1_SUPPORT )) + (supported_device ==ATOM_DEVICE_DFP1_SUPPORT )) { + gpio =radeon_lookup_gpio (rdev,6 ); + *hpd =radeon_atom_get_hpd_info_from_gpio (rdev, &gpio); *connector_type =DRM_MODE_CONNECTOR_DVID ; + }else if ((*connector_type ==DRM_MODE_CONNECTOR_HDMIA ) && + (supported_device ==ATOM_DEVICE_DFP1_SUPPORT )) { + gpio =radeon_lookup_gpio (rdev,7 ); + *hpd =radeon_atom_get_hpd_info_from_gpio (rdev, &gpio); + } }/* XFX Pine Group device rv730 reports no VGA DDC lines
@@ -1038,7 +1048,7 @@ bool radeon_atombios_sideport_present(struct radeon_device *rdev)return true;break ;case 2 : -if (igp_info->info_2.ucMemoryType &0x0f ) +if (igp_info->info_2.ulBootUpSidePortClock)return true;break ;default :
drivers/gpu/drm/radeon/radeon_device.c +1 -1
@@ -199,7 +199,7 @@ void radeon_vram_location(struct radeon_device *rdev, struct radeon_mc *mc, u64 mc->mc_vram_size = mc->aper_size; } mc->vram_end = mc->vram_start + mc->mc_vram_size -1 ; -if (rdev->flags &RADEON_IS_AGP && mc->vram_end > mc->gtt_start && mc->vram_end <= mc->gtt_end) { +if (rdev->flags &RADEON_IS_AGP && mc->vram_end > mc->gtt_start && mc->vram_start <= mc->gtt_end) {dev_warn (rdev->dev,"limiting VRAM to PCI aperture size\n" ); mc->real_vram_size = mc->aper_size; mc->mc_vram_size = mc->aper_size;
drivers/gpu/drm/radeon/radeon_i2c.c +7 -0
@@ -95,6 +95,13 @@ static void radeon_i2c_do_lock(struct radeon_i2c_chan *i2c, int lock_state) } } +/* switch the pads to ddc mode */ +if (ASIC_IS_DCE3 (rdev) && rec->hw_capable) { + temp =RREG32 (rec->mask_clk_reg); + temp &= ~(1 <<16 ); +WREG32 (rec->mask_clk_reg, temp); + } +/* clear the output pin values */ temp =RREG32 (rec->a_clk_reg) & ~rec->a_clk_mask;WREG32 (rec->a_clk_reg, temp);
drivers/gpu/drm/radeon/radeon_irq_kms.c +3 -2
@@ -118,11 +118,12 @@ int radeon_irq_kms_init(struct radeon_device *rdev)* chips. Disable MSI on them for now. */ if ((rdev->family >=CHIP_RV380 ) && - (!(rdev->flags &RADEON_IS_IGP ))) { + (!(rdev->flags &RADEON_IS_IGP )) && + (!(rdev->flags &RADEON_IS_AGP ))) {int ret =pci_enable_msi (rdev->pdev);if (!ret) { rdev->msi_enabled =1 ; -DRM_INFO ("radeon: using MSI.\n" ); +dev_info (rdev->dev,"radeon: using MSI.\n" ); } } rdev->irq.installed = true;
drivers/gpu/drm/radeon/radeon_legacy_crtc.c +1 -1
@@ -272,7 +272,7 @@ static uint8_t radeon_compute_pll_gain(uint16_t ref_freq, uint16_t ref_div,if (!ref_div)return 1 ; - vcoFreq = ((unsigned )ref_freq & fb_div) / ref_div; + vcoFreq = ((unsigned )ref_freq * fb_div) / ref_div;/* * This is horribly crude: the VCO frequency range is divided into
drivers/hwmon/pc87360.c +17 -14
@@ -1610,11 +1610,8 @@ static struct pc87360_data *pc87360_update_device(struct device *dev)static int __init pc87360_device_add (unsigned short address) { -struct resource res = { - .name ="pc87360" , - .flags =IORESOURCE_IO , - }; -int err, i; +struct resource res[3 ]; +int err, i, res_count; pdev =platform_device_alloc ("pc87360" , address);if (!pdev) {
@@ -1623,22 +1620,28 @@ static int __init pc87360_device_add(unsigned short address) goto exit; } +memset (res,0 ,3 *sizeof (struct resource )); + res_count =0 ;for (i =0 ; i <3 ; i++) {if (!extra_isa[i])continue ; - res.start = extra_isa[i]; - res.end = extra_isa[i] +PC87360_EXTENT -1 ; + res[res_count].start = extra_isa[i]; + res[res_count].end = extra_isa[i] +PC87360_EXTENT -1 ; + res[res_count].name ="pc87360" , + res[res_count].flags =IORESOURCE_IO , - err =acpi_check_resource_conflict (&res); + err =acpi_check_resource_conflict (&res[res_count]);if (err) goto exit_device_put; - err =platform_device_add_resources (pdev, &res,1 ); -if (err) { -printk (KERN_ERR "pc87360: Device resource[%d] " -"addition failed (%d)\n" , i, err); - goto exit_device_put; - } + res_count++; + } + + err =platform_device_add_resources (pdev, res, res_count); +if (err) { +printk (KERN_ERR "pc87360: Device resources addition failed " +"(%d)\n" , err); + goto exit_device_put; } err =platform_device_add (pdev);
drivers/isdn/gigaset/capi.c +9 -8
@@ -389,13 +389,13 @@ void gigaset_skb_sent(struct bc_state *bcs, struct sk_buff *dskb) ++bcs->trans_up;if (!ap) { -dev_err (cs->dev,"%s: no application\n" , __func__); +gig_dbg (DEBUG_MCMD ,"%s: application gone" , __func__);return ; }/* don't send further B3 messages if disconnected */ if (bcs->apconnstate <APCONN_ACTIVE ) { -gig_dbg (DEBUG_LLDATA ,"disconnected, discarding ack" ); +gig_dbg (DEBUG_MCMD ,"%s: disconnected" , __func__);return ; }
@@ -433,13 +433,14 @@ void gigaset_skb_rcvd(struct bc_state *bcs, struct sk_buff *skb) bcs->trans_down++;if (!ap) { -dev_err (cs->dev,"%s: no application\n" , __func__); +gig_dbg (DEBUG_MCMD ,"%s: application gone" , __func__); +dev_kfree_skb_any (skb);return ; }/* don't send further B3 messages if disconnected */ if (bcs->apconnstate <APCONN_ACTIVE ) { -gig_dbg (DEBUG_LLDATA ,"disconnected, discarding data" ); +gig_dbg (DEBUG_MCMD ,"%s: disconnected" , __func__);dev_kfree_skb_any (skb);return ; }
@@ -758,7 +759,7 @@ void gigaset_isdn_connD(struct bc_state *bcs) ap = bcs->ap;if (!ap) {spin_unlock_irqrestore (&bcs->aplock, flags); -dev_err (cs->dev,"%s: no application\n" , __func__); +gig_dbg (DEBUG_CMD ,"%s: application gone" , __func__);return ; }if (bcs->apconnstate ==APCONN_NONE ) {
@@ -854,7 +855,7 @@ void gigaset_isdn_connB(struct bc_state *bcs) ap = bcs->ap;if (!ap) {spin_unlock_irqrestore (&bcs->aplock, flags); -dev_err (cs->dev,"%s: no application\n" , __func__); +gig_dbg (DEBUG_CMD ,"%s: application gone" , __func__);return ; }if (!bcs->apconnstate) {
@@ -912,13 +913,12 @@ void gigaset_isdn_connB(struct bc_state *bcs)*/ void gigaset_isdn_hupB (struct bc_state *bcs) { -struct cardstate *cs = bcs->cs;struct gigaset_capi_appl *ap = bcs->ap;/* ToDo: assure order of DISCONNECT_B3_IND and DISCONNECT_IND ? */ if (!ap) { -dev_err (cs->dev,"%s: no application\n" , __func__); +gig_dbg (DEBUG_CMD ,"%s: application gone" , __func__);return ; }
@@ -1055,6 +1055,7 @@ static inline void remove_appl_from_channel(struct bc_state *bcs, do { if (bcap->bcnext == ap) { bcap->bcnext = bcap->bcnext->bcnext; + spin_unlock_irqrestore(&bcs->aplock, flags); return; } bcap = bcap->bcnext;
drivers/isdn/sc/ioctl.c +5 -5
@@ -174,7 +174,7 @@ int sc_ioctl(int card, scs_ioctl *data)pr_debug ("%s: SCIOGETSPID: ioctl received\n" , sc_adapter[card]->devicename); - spid =kmalloc (SCIOC_SPIDSIZE ,GFP_KERNEL ); + spid =kzalloc (SCIOC_SPIDSIZE ,GFP_KERNEL );if (!spid) {kfree (rcvmsg);return -ENOMEM ;
@@ -194,7 +194,7 @@ int sc_ioctl(int card, scs_ioctl *data)kfree (rcvmsg);return status; } -strcpy (spid, rcvmsg->msg_data.byte_array); +strlcpy (spid, rcvmsg->msg_data.byte_array,SCIOC_SPIDSIZE );/* * Package the switch type and send to user space
@@ -272,12 +272,12 @@ int sc_ioctl(int card, scs_ioctl *data)return status; } - dn =kmalloc (SCIOC_DNSIZE ,GFP_KERNEL ); + dn =kzalloc (SCIOC_DNSIZE ,GFP_KERNEL );if (!dn) {kfree (rcvmsg);return -ENOMEM ; } -strcpy (dn, rcvmsg->msg_data.byte_array); +strlcpy (dn, rcvmsg->msg_data.byte_array,SCIOC_DNSIZE );kfree (rcvmsg);/*
@@ -348,7 +348,7 @@ int sc_ioctl(int card, scs_ioctl *data)pr_debug ("%s: SCIOSTAT: ioctl received\n" , sc_adapter[card]->devicename); - bi =kmalloc (sizeof (boardInfo),GFP_KERNEL ); + bi =kzalloc (sizeof (boardInfo),GFP_KERNEL );if (!bi) {kfree (rcvmsg);return -ENOMEM ;
drivers/md/dm-exception-store.c +3 -1
@@ -173,7 +173,9 @@ int dm_exception_store_set_chunk_size(struct dm_exception_store *store,/* Validate the chunk size against the device block size */ if (chunk_size % - (bdev_logical_block_size (dm_snap_cow (store->snap)->bdev) >>9 )) { + (bdev_logical_block_size (dm_snap_cow (store->snap)->bdev) >>9 ) || + chunk_size % + (bdev_logical_block_size (dm_snap_origin (store->snap)->bdev) >>9 )) { *error ="Chunk size is not a multiple of device blocksize" ;return -EINVAL ; }
drivers/md/dm-exception-store.h +2 -1
@@ -126,8 +126,9 @@ struct dm_exception_store { };/* -* Obtain the cow device used by a given snapshot. +* Obtain the origin or cow device used by a given snapshot. */ +struct dm_dev *dm_snap_origin (struct dm_snapshot *snap);struct dm_dev *dm_snap_cow (struct dm_snapshot *snap);/*
drivers/md/dm-ioctl.c +25 -19
65 lines not on this page · raw message
drivers/md/dm-mpath.c +1 -0
@@ -706,6 +706,7 @@ static struct priority_group *parse_priority_group(struct arg_set *as,if (as->argc < nr_params) { ti->error ="not enough path parameters" ; + r = -EINVAL ; goto bad; }
drivers/md/dm-snap.c +28 -16
97 lines not on this page · raw message
drivers/md/dm.c +1 -0
@@ -2141,6 +2141,7 @@ static struct mapped_device *dm_find_md(dev_t dev) md =idr_find (&_minor_idr, minor);if (md && (md ==MINOR_ALLOCED || (MINOR (disk_devt (dm_disk (md))) != minor) || +dm_deleting_md (md) ||test_bit (DMF_FREEING , &md->flags))) { md =NULL ; goto out;
drivers/memstick/core/mspro_block.c +4 -2
@@ -1040,6 +1040,7 @@ static int mspro_block_read_attributes(struct memstick_dev *card)snprintf (s_attr->name,sizeof (s_attr->name),"attr_x%02x" , attr->entries[cnt].id); +sysfs_attr_init (&s_attr->dev_attr.attr); s_attr->dev_attr.attr.name = s_attr->name; s_attr->dev_attr.attr.mode =S_IRUGO ; s_attr->dev_attr.show =mspro_block_attr_show (s_attr->id);
@@ -1330,13 +1331,14 @@ static void mspro_block_remove(struct memstick_dev *card)struct mspro_block_data *msb =memstick_get_drvdata (card);unsigned long flags; -del_gendisk (msb->disk); -dev_dbg (&card->dev,"mspro block remove\n" );spin_lock_irqsave (&msb->q_lock, flags); msb->eject =1 ;blk_start_queue (msb->queue);spin_unlock_irqrestore (&msb->q_lock, flags); +del_gendisk (msb->disk); +dev_dbg (&card->dev,"mspro block remove\n" ); +blk_cleanup_queue (msb->queue); msb->queue =NULL ;
drivers/mtd/nand/pxa3xx_nand.c +1 -1
@@ -363,7 +363,7 @@ static struct pxa3xx_nand_flash *builtin_flash_types[] = {#define tAR_NDTR1 (r) (((r) >> 0) & 0xf)/* convert nano-seconds to nand flash controller clock cycles */ -#define ns2cycle (ns, clk) (int)(((ns) * (clk / 1000000) / 1000) - 1) +#define ns2cycle (ns, clk) (int)((ns) * (clk / 1000000) / 1000)/* convert nand flash controller clock cycles to nano-seconds */ #define cycle2ns (c, clk) ((((c) + 1) * 1000000 + clk / 500) / (clk / 1000))
drivers/net/e1000e/82571.c +18 -13
@@ -926,12 +926,14 @@ static s32 e1000_reset_hw_82571(struct e1000_hw *hw)ew32 (IMC ,0xffffffff ); icr =er32 (ICR ); -/* Install any alternate MAC address into RAR0 */ - ret_val =e1000_check_alt_mac_addr_generic (hw); -if (ret_val) -return ret_val; +if (hw->mac.type == e1000_82571) { +/* Install any alternate MAC address into RAR0 */ + ret_val =e1000_check_alt_mac_addr_generic (hw); +if (ret_val) +return ret_val; -e1000e_set_laa_state_82571 (hw, true); +e1000e_set_laa_state_82571 (hw, true); + }/* Reinitialize the 82571 serdes link state machine */ if (hw->phy.media_type == e1000_media_type_internal_serdes)
@@ -1609,14 +1611,16 @@ static s32 e1000_read_mac_addr_82571(struct e1000_hw *hw) {s32 ret_val =0 ; -/* -* If there's an alternate MAC address place it in RAR0 -* so that it will override the Si installed default perm -* address. -*/ - ret_val =e1000_check_alt_mac_addr_generic (hw); -if (ret_val) - goto out; +if (hw->mac.type == e1000_82571) { +/* +* If there's an alternate MAC address place it in RAR0 +* so that it will override the Si installed default perm +* address. +*/ + ret_val =e1000_check_alt_mac_addr_generic (hw); +if (ret_val) + goto out; + } ret_val =e1000_read_mac_addr_generic (hw);
@@ -1826,6 +1830,7 @@ struct e1000_info e1000_82573_info = { | FLAG_HAS_SMART_POWER_DOWN |FLAG_HAS_AMT | FLAG_HAS_SWSM_ON_LOAD, + .flags2 = FLAG2_DISABLE_ASPM_L1, .pba = 20, .max_hw_frame_size = ETH_FRAME_LEN + ETH_FCS_LEN, .get_variants = e1000_get_variants_82571,
drivers/net/e1000e/defines.h +4 -0
@@ -613,6 +613,7 @@#define E1000_FLASH_UPDATES 2000/* NVM Word Offsets */ +#define NVM_COMPAT 0x0003#define NVM_ID_LED_SETTINGS 0x0004#define NVM_INIT_CONTROL2_REG 0x000F#define NVM_INIT_CONTROL3_PORT_B 0x0014
@@ -633,6 +634,9 @@/* Mask bits for fields in Word 0x1a of the NVM */ #define NVM_WORD1A_ASPM_MASK 0x000C +/* Mask bits for fields in Word 0x03 of the EEPROM */ +#define NVM_COMPAT_LOM 0x0800 +/* For checksumming, the sum of all words in the NVM should equal 0xBABA. */ #define NVM_SUM 0xBABA
drivers/net/e1000e/lib.c +10 -0
@@ -183,6 +183,16 @@ s32 e1000_check_alt_mac_addr_generic(struct e1000_hw *hw)u16 offset, nvm_alt_mac_addr_offset, nvm_data;u8 alt_mac_addr[ETH_ALEN ]; + ret_val =e1000_read_nvm (hw,NVM_COMPAT ,1 , &nvm_data); +if (ret_val) + goto out; + +/* Check for LOM (vs. NIC) or one of two valid mezzanine cards */ +if (!((nvm_data &NVM_COMPAT_LOM ) || + (hw->adapter->pdev->device ==E1000_DEV_ID_82571EB_SERDES_DUAL ) || + (hw->adapter->pdev->device ==E1000_DEV_ID_82571EB_SERDES_QUAD ))) + goto out; + ret_val =e1000_read_nvm (hw,NVM_ALT_MAC_ADDR_PTR ,1 , &nvm_alt_mac_addr_offset);if (ret_val) {
drivers/net/wireless/ath/ath5k/base.c +21 -0
@@ -48,6 +48,7 @@#include <linux/netdevice.h> #include <linux/cache.h> #include <linux/pci.h> +#include <linux/pci-aspm.h> #include <linux/ethtool.h> #include <linux/uaccess.h> #include <linux/slab.h>
@@ -469,6 +470,26 @@ ath5k_pci_probe(struct pci_dev *pdev,int ret;u8 csz; +/* +* L0s needs to be disabled on all ath5k cards. +* +* For distributions shipping with CONFIG_PCIEASPM (this will be enabled +* by default in the future in 2.6.36) this will also mean both L1 and +* L0s will be disabled when a pre 1.1 PCIe device is detected. We do +* know L1 works correctly even for all ath5k pre 1.1 PCIe devices +* though but cannot currently undue the effect of a blacklist, for +* details you can read pcie_aspm_sanity_check() and see how it adjusts +* the device link capability. +* +* It may be possible in the future to implement some PCI API to allow +* drivers to override blacklists for pre 1.1 PCIe but for now it is +* best to accept that both L0s and L1 will be disabled completely for +* distributions shipping with CONFIG_PCIEASPM rather than having this +* issue present. Motivation for adding this new API will be to help +* with power consumption for some of these devices. +*/ +pci_disable_link_state (pdev,PCIE_LINK_STATE_L0S ); + ret =pci_enable_device (pdev);if (ret) {dev_err (&pdev->dev,"can't enable device\n" );
drivers/net/wireless/wl12xx/wl1251_cmd.c +1 -1
@@ -484,7 +484,7 @@ int wl1251_cmd_trigger_scan_to(struct wl1251 *wl, u32 timeout) cmd->timeout = timeout; - ret =wl1251_cmd_send (wl,CMD_SCAN , cmd,sizeof (*cmd)); + ret =wl1251_cmd_send (wl,CMD_TRIGGER_SCAN_TO , cmd,sizeof (*cmd));if (ret <0 ) {wl1251_error ("cmd trigger scan to failed: %d" , ret); goto out;
drivers/pcmcia/pcmcia_resource.c +4 -1
@@ -41,7 +41,7 @@ module_param(io_speed, int, 0444);#ifdef CONFIG_PCMCIA_PROBE #include <asm/irq.h> /* mask of IRQs already reserved by other cards, we should avoid using them */ -static u8 pcmcia_used_irq[NR_IRQS ]; +static u8 pcmcia_used_irq[32 ];#endif static int pcmcia_adjust_io_region(struct resource *res, unsigned long start,
@@ -768,6 +768,9 @@ int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req)for (try =0 ; try <64 ; try++) { irq = try %32 ; +if (irq >NR_IRQS ) +continue ; +/* marked as available by driver, and not blocked by userspace? */ if (!((mask >> irq) &1 ))continue ;
drivers/platform/x86/compal-laptop.c +9 -0
@@ -259,6 +259,14 @@ static struct dmi_system_id __initdata compal_dmi_table[] = { .callback = dmi_check_cb }, { + .ident = "Dell Mini 1012", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 1012"), + }, + .callback = dmi_check_cb + }, + { .ident ="Dell Inspiron 11z" , .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
@@ -375,5 +383,6 @@ MODULE_ALIAS("dmi:*:rnIFT00:rvrIFT00:*");MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron910:*" );MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron1010:*" );MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron1011:*" ); +MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron1012:*" );MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron1110:*" );MODULE_ALIAS ("dmi:*:svnDellInc.:pnInspiron1210:*" );
drivers/platform/x86/dell-laptop.c +7 -0
@@ -116,6 +116,13 @@ static struct dmi_system_id __devinitdata dell_blacklist[] = { }, }, { + .ident = "Dell Mini 1012", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 1012"), + }, + }, + { .ident ="Dell Inspiron 11z" , .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
drivers/regulator/wm8994-regulator.c +2 -3
@@ -219,8 +219,6 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev) ldo->wm8994 = wm8994; - ldo->is_enabled = true; -if (pdata->ldo[id].enable &&gpio_is_valid (pdata->ldo[id].enable)) { ldo->enable = pdata->ldo[id].enable;
@@ -237,7 +235,8 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev) ret); goto err_gpio; } - } + }else + ldo->is_enabled = true; ldo->regulator =regulator_register (&wm8994_ldo_desc[id], &pdev->dev, pdata->ldo[id].init_data, ldo);
drivers/usb/host/xhci-ring.c +1 -1
@@ -125,7 +125,7 @@ static void next_trb(struct xhci_hcd *xhci, *seg = (*seg)->next; *trb = ((*seg)->trbs); }else { - *trb = (*trb)++; + (*trb)++; } }
drivers/usb/serial/cp210x.c +2 -2
@@ -223,8 +223,8 @@ static struct usb_serial_driver cp210x_device = {#define BITS_STOP_2 0x0002/* CP210X_SET_BREAK */ -#define BREAK_ON 0x0000 -#define BREAK_OFF 0x0001 +#define BREAK_ON 0x0001 +#define BREAK_OFF 0x0000/* CP210X_(SET_MHS|GET_MDMSTS) */ #define CONTROL_DTR 0x0001
drivers/usb/serial/ftdi_sio.c +4 -1
@@ -185,6 +185,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SPROG_II) }, + { USB_DEVICE(FTDI_VID, FTDI_LENZ_LIUSB_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_632_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_634_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_547_PID) },
@@ -756,6 +757,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, XVERVE_SIGNALYZER_SH4_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { USB_DEVICE(FTDI_VID, SEGWAY_RMP200_PID) }, + { USB_DEVICE(IONICS_VID, IONICS_PLUGCOMPUTER_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { }, /* Optional parameter entry */ { }/* Terminating entry */ };
@@ -1399,7 +1402,7 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port) }/* set max packet size based on descriptor */ - priv->max_packet_size = ep_desc->wMaxPacketSize; + priv->max_packet_size =le16_to_cpu (ep_desc->wMaxPacketSize);dev_info (&udev->dev,"Setting MaxPacketSize %d\n" , priv->max_packet_size); }
drivers/usb/serial/ftdi_sio_ids.h +9 -0
@@ -110,6 +110,9 @@/* Propox devices */ #define FTDI_PROPOX_JTAGCABLEII_PID 0xD738 +/* Lenz LI-USB Computer Interface. */ +#define FTDI_LENZ_LIUSB_PID 0xD780 +/* * Xsens Technologies BV products (http://www.xsens.com). */
@@ -996,6 +999,12 @@#define ALTI2_N3_PID 0x6001/* Neptune 3 */ /* +* Ionics PlugComputer +*/ +#define IONICS_VID 0x1c0c +#define IONICS_PLUGCOMPUTER_PID 0x0102 + +/* * Dresden Elektronik Sensor Terminal Board */ #define DE_VID 0x1cf1/* Vendor ID */
drivers/usb/serial/io_ti.c +1 -1
@@ -1174,7 +1174,7 @@ static int download_fw(struct edgeport_serial *serial)/* Check if we have an old version in the I2C and update if necessary */ -if (download_cur_ver != download_new_ver) { +if (download_cur_ver < download_new_ver) { dbg("%s - Update I2C dld from %d.%d to %d.%d", __func__, firmware_version->Ver_Major,
drivers/usb/serial/navman.c +1 -0
@@ -25,6 +25,7 @@ static int debug;static const struct usb_device_id id_table[] = { {USB_DEVICE (0x0a99 ,0x0001 ) },/* Talon Technology device */ + {USB_DEVICE (0x0df7 ,0x0900 ) },/* Mobile Action i-gotU */ { }, };MODULE_DEVICE_TABLE (usb, id_table);
drivers/usb/serial/option.c +5 -2
@@ -389,6 +389,10 @@ static int option_resume(struct usb_serial *serial);#define OLIVETTI_VENDOR_ID 0x0b3c#define OLIVETTI_PRODUCT_OLICARD100 0xc000 +/* Celot products */ +#define CELOT_VENDOR_ID 0x211f +#define CELOT_PRODUCT_CT680M 0x6801 +/* some devices interfaces need special handling due to a number of reasons */ enum option_blacklist_reason {OPTION_BLACKLIST_NONE =0 ,
@@ -912,10 +916,9 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_100F) }, { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_1011)}, { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_1012)}, - { USB_DEVICE(CINTERION_VENDOR_ID, 0x0047) }, - { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100) }, + { USB_DEVICE(CELOT_VENDOR_ID, CELOT_PRODUCT_CT680M) }, /* CT-650 CDMA 450 1xEVDO modem */ { } /* Terminating entry */ };MODULE_DEVICE_TABLE (usb, option_ids);
drivers/usb/serial/pl2303.c +1 -0
@@ -96,6 +96,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(SUPERIAL_VENDOR_ID, SUPERIAL_PRODUCT_ID) }, { USB_DEVICE(HP_VENDOR_ID, HP_LD220_PRODUCT_ID) }, { USB_DEVICE(CRESSI_VENDOR_ID, CRESSI_EDY_PRODUCT_ID) }, + { USB_DEVICE(ZEAGLE_VENDOR_ID, ZEAGLE_N2ITION3_PRODUCT_ID) }, { USB_DEVICE(SONY_VENDOR_ID, SONY_QN3USB_PRODUCT_ID) }, { USB_DEVICE(SANWA_VENDOR_ID, SANWA_PRODUCT_ID) }, { USB_DEVICE(ADLINK_VENDOR_ID, ADLINK_ND6530_PRODUCT_ID) },
drivers/usb/serial/pl2303.h +4 -0
@@ -128,6 +128,10 @@#define CRESSI_VENDOR_ID 0x04b8#define CRESSI_EDY_PRODUCT_ID 0x0521 +/* Zeagle dive computer interface */ +#define ZEAGLE_VENDOR_ID 0x04b8 +#define ZEAGLE_N2ITION3_PRODUCT_ID 0x0522 +/* Sony, USB data cable for CMD-Jxx mobile phones */ #define SONY_VENDOR_ID 0x054c#define SONY_QN3USB_PRODUCT_ID 0x0437
drivers/video/matrox/matroxfb_base.h +2 -2
@@ -151,13 +151,13 @@ static inline void mga_writel(vaddr_t va, unsigned int offs, u_int32_t value) {static inline void mga_memcpy_toio (vaddr_t va,const void * src,int len) {#if defined(__alpha__) || defined(__i386__) || defined(__x86_64__)/* -* memcpy_toio works for us if: +* iowrite32_rep works for us if: * (1) Copies data as 32bit quantities, not byte after byte, * (2) Performs LE ordered stores, and * (3) It copes with unaligned source (destination is guaranteed to be page * aligned and length is guaranteed to be multiple of 4). */ -memcpy_toio (va.vaddr, src, len); +iowrite32_rep (va.vaddr, src, len >>2 );#else u_int32_t __iomem * addr = va.vaddr;
firmware/Makefile +1 -1
@@ -141,7 +141,7 @@ fw-shipped-$(CONFIG_YAM) += yam/1200.bin yam/9600.bin fw-shipped-all := $(fw-shipped-y) $(fw-shipped-m) $(fw-shipped-) # Directories which we _might_ need to create, so we have a rule for them. -firmware-dirs := $(sort $(patsubst %,$(objtree)/$(obj)/%/,$(dir $(fw-external-y) $(fw-shipped-all)))) +firmware-dirs := $(sort $(addprefix $(objtree)/$(obj)/,$(dir $(fw-external-y) $(fw-shipped-all)))) quiet_cmd_mkdir = MKDIR $(patsubst $(objtree)/%,%,$@) cmd_mkdir = mkdir -p $@
fs/nfs/super.c +7 -0
@@ -648,6 +648,13 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,if (nfss->options &NFS_OPTION_FSCACHE )seq_printf (m,",fsc" ); + +if (nfss->flags &NFS_MOUNT_LOOKUP_CACHE_NONEG ) { +if (nfss->flags &NFS_MOUNT_LOOKUP_CACHE_NONE ) +seq_printf (m,",lookupcache=none" ); +else +seq_printf (m,",lookupcache=pos" ); + } }/*
fs/nilfs2/super.c +3 -1
@@ -360,9 +360,10 @@ int nilfs_attach_checkpoint(struct nilfs_sb_info *sbi, __u64 cno)list_add (&sbi->s_list, &nilfs->ns_supers);up_write (&nilfs->ns_super_sem); + err = -ENOMEM ; sbi->s_ifile =nilfs_ifile_new (sbi, nilfs->ns_inode_size);if (!sbi->s_ifile) -return -ENOMEM ; + goto delist;down_read (&nilfs->ns_segctor_sem); err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp,
@@ -393,6 +394,7 @@ int nilfs_attach_checkpoint(struct nilfs_sb_info *sbi, __u64 cno)nilfs_mdt_destroy (sbi->s_ifile); sbi->s_ifile =NULL ; + delist:down_write (&nilfs->ns_super_sem);list_del_init (&sbi->s_list);up_write (&nilfs->ns_super_sem);
fs/ocfs2/acl.c +28 -5
@@ -290,12 +290,30 @@ static int ocfs2_set_acl(handle_t *handle,int ocfs2_check_acl (struct inode *inode,int mask) { -struct posix_acl *acl =ocfs2_get_acl (inode,ACL_TYPE_ACCESS ); +struct ocfs2_super *osb =OCFS2_SB (inode->i_sb); +struct buffer_head *di_bh =NULL ; +struct posix_acl *acl; +int ret = -EAGAIN ; -if (IS_ERR (acl)) +if (!(osb->s_mount_opt &OCFS2_MOUNT_POSIX_ACL )) +return ret; + + ret =ocfs2_read_inode_block (inode, &di_bh); +if (ret <0 ) { +mlog_errno (ret); +return ret; + } + + acl =ocfs2_get_acl_nolock (inode,ACL_TYPE_ACCESS , di_bh); + +brelse (di_bh); + +if (IS_ERR (acl)) { +mlog_errno (PTR_ERR (acl));return PTR_ERR (acl); + }if (acl) { -int ret =posix_acl_permission (inode, acl, mask); + ret =posix_acl_permission (inode, acl, mask);posix_acl_release (acl);return ret; }
@@ -344,7 +362,7 @@ int ocfs2_init_acl(handle_t *handle, {struct ocfs2_super *osb =OCFS2_SB (inode->i_sb);struct posix_acl *acl =NULL ; -int ret =0 ; +int ret =0 , ret2;mode_t mode;if (!S_ISLNK (inode->i_mode)) {
@@ -381,7 +399,12 @@ int ocfs2_init_acl(handle_t *handle, mode = inode->i_mode; ret =posix_acl_create_masq (clone, &mode);if (ret >=0 ) { - ret =ocfs2_acl_set_mode (inode, di_bh, handle, mode); + ret2 =ocfs2_acl_set_mode (inode, di_bh, handle, mode); +if (ret2) { +mlog_errno (ret2); + ret = ret2; + goto cleanup; + }if (ret >0 ) { ret = ocfs2_set_acl(handle, inode, di_bh, ACL_TYPE_ACCESS,
fs/ocfs2/dlm/dlmmaster.c +2 -7
@@ -511,8 +511,6 @@ static void dlm_lockres_release(struct kref *kref)atomic_dec (&dlm->res_cur_count); -dlm_put (dlm); - if (!hlist_unhashed(&res->hash_node) || !list_empty(&res->granted) || !list_empty(&res->converting) ||
@@ -585,8 +583,6 @@ static void dlm_init_lockres(struct dlm_ctxt *dlm, res->migration_pending =0 ; res->inflight_locks =0 ; -/* put in dlm_lockres_release */ -dlm_grab (dlm); res->dlm = dlm;kref_init (&res->refs);
@@ -3044,8 +3040,6 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data,/* check for pre-existing lock */ spin_lock (&dlm->spinlock); res =__dlm_lookup_lockres (dlm, name, namelen, hash); -spin_lock (&dlm->master_lock); -if (res) {spin_lock (&res->spinlock);if (res->state &DLM_LOCK_RES_RECOVERING ) {
@@ -3063,14 +3057,15 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data,spin_unlock (&res->spinlock); } +spin_lock (&dlm->master_lock);/* ignore status. only nonzero status would BUG. */ ret =dlm_add_migration_mle (dlm, res, mle, &oldmle, name, namelen, migrate->new_master, migrate->master); -unlock:spin_unlock (&dlm->master_lock); +unlock:spin_unlock (&dlm->spinlock);if (oldmle) {
fs/ocfs2/dlm/dlmrecovery.c +10 -12
@@ -1991,6 +1991,8 @@ void dlm_move_lockres_to_recovery_list(struct dlm_ctxt *dlm,struct list_head *queue;struct dlm_lock *lock, *next; +assert_spin_locked (&dlm->spinlock); +assert_spin_locked (&res->spinlock); res->state |=DLM_LOCK_RES_RECOVERING ;if (!list_empty (&res->recovering)) { mlog(0,
@@ -2320,19 +2322,15 @@ static void dlm_do_local_recovery_cleanup(struct dlm_ctxt *dlm, u8 dead_node)/* zero the lvb if necessary */ dlm_revalidate_lvb (dlm, res, dead_node);if (res->owner == dead_node) { -if (res->state &DLM_LOCK_RES_DROPPING_REF ) -mlog (0 ,"%s:%.*s: owned by " -"dead node %u, this node was " -"dropping its ref when it died. " -"continue, dropping the flag.\n" , - dlm->name, res->lockname.len, - res->lockname.name, dead_node); - -/* the wake_up for this will happen when the -* RECOVERING flag is dropped later */ - res->state &= ~DLM_LOCK_RES_DROPPING_REF ; +if (res->state &DLM_LOCK_RES_DROPPING_REF ) { +mlog (ML_NOTICE ,"Ignore %.*s for " +"recovery as it is being freed\n" , + res->lockname.len, + res->lockname.name); + }else +dlm_move_lockres_to_recovery_list (dlm, + res); -dlm_move_lockres_to_recovery_list (dlm, res); }else if (res->owner == dlm->node_num) {dlm_free_dead_locks (dlm, res, dead_node);__dlm_lockres_calc_usage (dlm, res);
fs/ocfs2/dlm/dlmthread.c +55 -59
182 lines not on this page · raw message
fs/ocfs2/refcounttree.c +15 -5
@@ -2437,16 +2437,26 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb, len =min ((u64 )cpos + clusters,le64_to_cpu (rec.r_cpos) +le32_to_cpu (rec.r_clusters)) - cpos;/* -* If the refcount rec already exist, cool. We just need -* to check whether there is a split. Otherwise we just need -* to increase the refcount. -* If we will insert one, increases recs_add. -* * We record all the records which will be inserted to the * same refcount block, so that we can tell exactly whether * we need a new refcount block or not. +* +* If we will insert a new one, this is easy and only happens +* during adding refcounted flag to the extent, so we don't +* have a chance of spliting. We just need one record. +* +* If the refcount rec already exists, that would be a little +* complicated. we may have to: +* 1) split at the beginning if the start pos isn't aligned. +* we need 1 more record in this case. +* 2) split int the end if the end pos isn't aligned. +* we need 1 more record in this case. +* 3) split in the middle because of file system fragmentation. +* we need 2 more records in this case(we can't detect this +* beforehand, so always think of the worst case). */ if (rec.r_refcount) { + recs_add +=2 ;/* Check whether we need a split at the beginning. */ if (cpos == start_cpos && cpos !=le64_to_cpu (rec.r_cpos))
include/linux/mm_types.h +1 -1
@@ -134,7 +134,7 @@ struct vm_area_struct {within vm_mm. */ /* linked list of VM areas per task, sorted by address */ -struct vm_area_struct *vm_next; +struct vm_area_struct *vm_next, *vm_prev;pgprot_t vm_page_prot;/* Access permissions of this VMA. */ unsigned long vm_flags;/* Flags, see mm.h. */
include/sound/emu10k1.h +1 -0
@@ -1707,6 +1707,7 @@ struct snd_emu10k1 {unsigned int card_type;/* EMU10K1_CARD_* */ unsigned int ecard_ctrl;/* ecard control bits */ unsigned long dma_mask;/* PCI DMA mask */ +unsigned int delay_pcm_irq;/* in samples */ int max_cache_pages;/* max memory size / PAGE_SIZE */ struct snd_dma_buffer silent_page;/* silent page */ struct snd_dma_buffer ptb_pages;/* page table pages */
include/trace/events/timer.h +6 -2
@@ -74,14 +74,16 @@ TRACE_EVENT(timer_expire_entry,TP_STRUCT__entry (__field (void *,timer ) __field( unsigned long, now ) + __field( void *, function) ),TP_fast_assign ( __entry->timer = timer; __entry->now = jiffies; + __entry->function = timer->function; ), -TP_printk ("timer=%p now=%lu" , __entry->timer, __entry->now) +TP_printk ("timer=%p function=%pf now=%lu" , __entry->timer, __entry->function,__entry->now) );/**
@@ -213,14 +215,16 @@ TRACE_EVENT(hrtimer_expire_entry,TP_STRUCT__entry (__field (void *,hrtimer )__field ( s64, now ) + __field( void *, function) ),TP_fast_assign ( __entry->hrtimer = hrtimer; __entry->now = now->tv64; + __entry->function = hrtimer->function; ), -TP_printk ("hrtimer=%p now=%llu" , __entry->hrtimer, +TP_printk ("hrtimer=%p function=%pf now=%llu" , __entry->hrtimer, __entry->function, (unsigned long long )ktime_to_ns ((ktime_t ) { .tv64 = __entry->now })) );
kernel/fork.c +5 -2
@@ -287,7 +287,7 @@ out:#ifdef CONFIG_MMU static int dup_mmap (struct mm_struct *mm,struct mm_struct *oldmm) { -struct vm_area_struct *mpnt, *tmp, **pprev; +struct vm_area_struct *mpnt, *tmp, *prev, **pprev;struct rb_node **rb_link, *rb_parent;int retval;unsigned long charge;
@@ -315,6 +315,7 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)if (retval) goto out; + prev =NULL ;for (mpnt = oldmm->mmap; mpnt; mpnt = mpnt->vm_next) {struct file *file;
@@ -346,7 +347,7 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) goto fail_nomem_anon_vma_fork; tmp->vm_flags &= ~VM_LOCKED ; tmp->vm_mm = mm; - tmp->vm_next =NULL ; + tmp->vm_next = tmp->vm_prev =NULL ; file = tmp->vm_file;if (file) {struct inode *inode = file->f_path.dentry->d_inode;
@@ -379,6 +380,8 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)*/ *pprev = tmp; pprev = &tmp->vm_next; + tmp->vm_prev = prev; + prev = tmp;__vma_link_rb (mm, tmp, rb_link, rb_parent); rb_link = &tmp->vm_rb.rb_right;
kernel/trace/ring_buffer.c +3 -0
@@ -3757,6 +3757,9 @@ int ring_buffer_read_page(struct ring_buffer *buffer, rpos = reader->read; pos += size; +if (rpos >= commit) +break ; + event =rb_reader_event (cpu_buffer); size =rb_event_length (event); }while (len > size);
kernel/trace/trace_functions_graph.c +9 -1
@@ -506,7 +506,15 @@ get_return_for_leaf(struct trace_iterator *iter,* if the output fails. */ data->ent = *curr; - data->ret = *next; +/* +* If the next event is not a return type, then +* we only care about what type it is. Otherwise we can +* safely copy the entire event. +*/ +if (next->ent.type ==TRACE_GRAPH_RET ) + data->ret = *next; +else + data->ret.ent.type = next->ent.type; } }
mm/memory.c +11 -4
@@ -2761,11 +2761,18 @@ static inline int check_stack_guard_page(struct vm_area_struct *vma, unsigned lo { address &=PAGE_MASK ;if ((vma->vm_flags &VM_GROWSDOWN ) && address == vma->vm_start) { - address -=PAGE_SIZE ; -if (find_vma (vma->vm_mm, address) != vma) -return -ENOMEM ; +struct vm_area_struct *prev = vma->vm_prev; + +/* +* Is there a mapping abutting this one below? +* +* That's only ok if it's the same stack mapping +* that has gotten split.. +*/ +if (prev && prev->vm_end == address) +return prev->vm_flags &VM_GROWSDOWN ?0 : -ENOMEM ; -expand_stack (vma, address); +expand_stack (vma, address -PAGE_SIZE ); }return 0 ; }
mm/mlock.c +16 -5
@@ -135,6 +135,19 @@ void munlock_vma_page(struct page *page) } } +/* Is the vma a continuation of the stack vma above it? */ +static inline int vma_stack_continue (struct vm_area_struct *vma,unsigned long addr) +{ +return vma && (vma->vm_end == addr) && (vma->vm_flags &VM_GROWSDOWN ); +} + +static inline int stack_guard_page (struct vm_area_struct *vma,unsigned long addr) +{ +return (vma->vm_flags &VM_GROWSDOWN ) && + (vma->vm_start == addr) && + !vma_stack_continue (vma->vm_prev, addr); +} +/** * __mlock_vma_pages_range() - mlock a range of pages in the vma. * @vma: target vma
@@ -168,11 +181,9 @@ static long __mlock_vma_pages_range(struct vm_area_struct *vma, gup_flags |=FOLL_WRITE ;/* We don't try to access the guard page of a stack vma */ -if (vma->vm_flags &VM_GROWSDOWN ) { -if (start == vma->vm_start) { - start +=PAGE_SIZE ; - nr_pages--; - } +if (stack_guard_page (vma, start)) { + addr +=PAGE_SIZE ; + nr_pages--; }while (nr_pages >0 ) {
mm/mmap.c +17 -4
@@ -388,17 +388,23 @@ static inline void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, struct rb_node *rb_parent) { + struct vm_area_struct *next; + + vma->vm_prev = prev;if (prev) { - vma->vm_next = prev->vm_next; + next = prev->vm_next; prev->vm_next = vma; }else { mm->mmap = vma;if (rb_parent) - vma->vm_next =rb_entry (rb_parent, + next =rb_entry (rb_parent, struct vm_area_struct, vm_rb);else - vma->vm_next =NULL ; + next =NULL ; } + vma->vm_next = next; +if (next) + next->vm_prev = vma; } void __vma_link_rb(struct mm_struct *mm, struct vm_area_struct *vma,
@@ -485,7 +491,11 @@ static inline void __vma_unlink(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev) { - prev->vm_next = vma->vm_next; + struct vm_area_struct *next = vma->vm_next; + + prev->vm_next = next; +if (next) + next->vm_prev = prev;rb_erase (&vma->vm_rb, &mm->mm_rb);if (mm->mmap_cache == vma) mm->mmap_cache = prev;
@@ -1900,6 +1910,7 @@ detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma,unsigned long addr; insertion_point = (prev ? &prev->vm_next : &mm->mmap); + vma->vm_prev =NULL ; do { rb_erase(&vma->vm_rb, &mm->mm_rb); mm->map_count--;
@@ -1907,6 +1918,8 @@ detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, vma = vma->vm_next; }while (vma && vma->vm_start < end); *insertion_point = vma; +if (vma) + vma->vm_prev = prev; tail_vma->vm_next =NULL ;if (mm->unmap_area == arch_unmap_area) addr = prev ? prev->vm_end : mm->mmap_base;
mm/nommu.c +5 -2
@@ -609,7 +609,7 @@ static void protect_vma(struct vm_area_struct *vma, unsigned long flags)*/ static void add_vma_to_mm (struct mm_struct *mm,struct vm_area_struct *vma) { -struct vm_area_struct *pvma, **pp; +struct vm_area_struct *pvma, **pp, *next;struct address_space *mapping;struct rb_node **p, *parent;
@@ -669,8 +669,11 @@ static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma)break ; } - vma->vm_next = *pp; + next = *pp; *pp = vma; + vma->vm_next = next; +if (next) + next->vm_prev = vma; }/*
mm/slab.c +2 -2
@@ -2262,8 +2262,8 @@ kmem_cache_create (const char *name, size_t size, size_t align, }#if FORCED_DEBUG && defined(CONFIG_DEBUG_PAGEALLOC )if (size >= malloc_sizes[INDEX_L3 +1 ].cs_size - && cachep->obj_size >cache_line_size () && size <PAGE_SIZE ) { - cachep->obj_offset +=PAGE_SIZE - size; + && cachep->obj_size >cache_line_size () &&ALIGN (size, align) <PAGE_SIZE ) { + cachep->obj_offset +=PAGE_SIZE -ALIGN (size, align); size =PAGE_SIZE ; }#endif
mm/vmscan.c +45 -8
65 lines not on this page · raw message
net/bridge/br_device.c +6 -2
@@ -19,7 +19,7 @@#include <asm/uaccess.h> #include "br_private.h" -/* net device transmit always called with no BH (preempt_disabled) */ +/* net device transmit always called with BH disabled */ netdev_tx_t br_dev_xmit (struct sk_buff *skb,struct net_device *dev) {struct net_bridge *br =netdev_priv (dev);
@@ -35,9 +35,12 @@ netdev_tx_t br_dev_xmit(struct sk_buff *skb, struct net_device *dev)skb_reset_mac_header (skb);skb_pull (skb,ETH_HLEN ); +rcu_read_lock ();if (dest[0 ] &1 ) { -if (br_multicast_rcv (br,NULL , skb)) +if (br_multicast_rcv (br,NULL , skb)) { +kfree_skb (skb); goto out; + } mdst =br_mdb_get (br, skb);if (mdst ||BR_INPUT_SKB_CB_MROUTERS_ONLY (skb))
@@ -50,6 +53,7 @@ netdev_tx_t br_dev_xmit(struct sk_buff *skb, struct net_device *dev)br_flood_deliver (br, skb); out: +rcu_read_unlock ();return NETDEV_TX_OK ; }
net/bridge/br_fdb.c +1 -1
@@ -214,7 +214,7 @@ void br_fdb_delete_by_port(struct net_bridge *br,spin_unlock_bh (&br->hash_lock); } -/* No locking or refcounting, assumes caller has no preempt (rcu_read_lock) */ +/* No locking or refcounting, assumes caller has rcu_read_lock */ struct net_bridge_fdb_entry *__br_fdb_get (struct net_bridge *br,const unsigned char *addr) {
net/bridge/br_input.c +3 -3
@@ -35,7 +35,7 @@ static int br_pass_frame_up(struct sk_buff *skb) netif_receive_skb); } -/* note: already called with rcu_read_lock (preempt_disabled) */ +/* note: already called with rcu_read_lock */ int br_handle_frame_finish (struct sk_buff *skb) {const unsigned char *dest =eth_hdr (skb)->h_dest;
@@ -106,7 +106,7 @@ drop: goto out; } -/* note: already called with rcu_read_lock (preempt_disabled) */ +/* note: already called with rcu_read_lock */ static int br_handle_local_finish (struct sk_buff *skb) {struct net_bridge_port *p =rcu_dereference (skb->dev->br_port);
@@ -131,7 +131,7 @@ static inline int is_link_local(const unsigned char *dest)/* * Called via br_handle_frame_hook. * Return NULL if skb is handled -* note: already called with rcu_read_lock (preempt_disabled) +* note: already called with rcu_read_lock */ struct sk_buff *br_handle_frame (struct net_bridge_port *p,struct sk_buff *skb) {
net/bridge/br_stp_bpdu.c +1 -1
@@ -131,7 +131,7 @@ void br_send_tcn_bpdu(struct net_bridge_port *p)/* * Called from llc. * -* NO locks, but rcu_read_lock (preempt_disabled) +* NO locks, but rcu_read_lock */ void br_stp_rcv (const struct stp_proto *proto,struct sk_buff *skb,struct net_device *dev)
net/can/bcm.c +27 -14
118 lines not on this page · raw message
net/core/dev.c +3 -5
@@ -1464,6 +1464,7 @@ static inline void net_timestamp(struct sk_buff *skb)int dev_forward_skb (struct net_device *dev,struct sk_buff *skb) {skb_orphan (skb); +nf_reset (skb);if (!(dev->flags &IFF_UP ) || (skb->len > (dev->mtu + dev->hard_header_len))) {
@@ -2665,7 +2666,7 @@ enum gro_result dev_gro_receive(struct napi_struct *napi, struct sk_buff *skb)int mac_len;enum gro_result ret; -if (!(skb->dev->features &NETIF_F_GRO )) +if (!(skb->dev->features &NETIF_F_GRO ) ||netpoll_rx_on (skb)) goto normal;if (skb_is_gso (skb) ||skb_has_frags (skb))
@@ -2734,7 +2735,7 @@ pull:put_page (skb_shinfo (skb)->frags[0 ].page);memmove (skb_shinfo (skb)->frags,skb_shinfo (skb)->frags +1 , - --skb_shinfo (skb)->nr_frags); + --skb_shinfo (skb)->nr_frags *sizeof (skb_frag_t)); } }
@@ -2752,9 +2753,6 @@ __napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb) {struct sk_buff *p; -if (netpoll_rx_on (skb)) -return GRO_NORMAL ; -for (p = napi->gro_list; p; p = p->next) {NAPI_GRO_CB (p)->same_flow = (p->dev == skb->dev) &&
net/ipv4/tcp.c +5 -2
@@ -2175,6 +2175,8 @@ static int do_tcp_setsockopt(struct sock *sk, int level, GFP_KERNEL);if (cvp ==NULL )return -ENOMEM ; + +kref_init (&cvp->kref); }lock_sock (sk); tp->rx_opt.cookie_in_always =
@@ -2189,12 +2191,11 @@ static int do_tcp_setsockopt(struct sock *sk, int level,*/ kref_put (&tp->cookie_values->kref, tcp_cookie_values_release); -kref_init (&cvp->kref); - tp->cookie_values = cvp; }else { cvp = tp->cookie_values; } } +if (cvp !=NULL ) { cvp->cookie_desired = ctd.tcpct_cookie_desired;
@@ -2208,6 +2209,8 @@ static int do_tcp_setsockopt(struct sock *sk, int level, cvp->s_data_desired = ctd.tcpct_s_data_desired; cvp->s_data_constant =0 ;/* false */ } + + tp->cookie_values = cvp; }release_sock (sk);return err;
net/netlink/af_netlink.c +16 -30
79 lines not on this page · raw message
net/sched/act_nat.c +1 -1
@@ -240,7 +240,7 @@ static int tcf_nat(struct sk_buff *skb, struct tc_action *a, iph->saddr = new_addr;inet_proto_csum_replace4 (&icmph->checksum, skb, addr, new_addr, -1 ); +0 );break ; }default :
net/sched/sch_sfq.c +13 -0
@@ -497,11 +497,22 @@ nla_put_failure:return -1 ; } +static struct Qdisc *sfq_leaf (struct Qdisc *sch,unsigned long arg) +{ +return NULL ; +} +static unsigned long sfq_get (struct Qdisc *sch,u32 classid) {return 0 ; } +static unsigned long sfq_bind (struct Qdisc *sch,unsigned long parent, +u32 classid) +{ +return 0 ; +} +static struct tcf_proto **sfq_find_tcf (struct Qdisc *sch,unsigned long cl) {struct sfq_sched_data *q =qdisc_priv (sch);
@@ -554,8 +565,10 @@ static void sfq_walk(struct Qdisc *sch, struct qdisc_walker *arg) }static const struct Qdisc_class_ops sfq_class_ops = { + .leaf = sfq_leaf, .get = sfq_get, .tcf_chain = sfq_find_tcf, + .bind_tcf = sfq_bind, .dump = sfq_dump_class, .dump_stats = sfq_dump_class_stats, .walk = sfq_walk,
net/wireless/mlme.c +7 -1
@@ -825,12 +825,18 @@ int cfg80211_mlme_action(struct cfg80211_registered_device *rdev,return -EINVAL ;if (mgmt->u.action.category !=WLAN_CATEGORY_PUBLIC ) {/* Verify that we are associated with the destination AP */ +wdev_lock (wdev); +if (!wdev->current_bss ||memcmp (wdev->current_bss->pub.bssid, mgmt->bssid,ETH_ALEN ) !=0 ||memcmp (wdev->current_bss->pub.bssid, mgmt->da, -ETH_ALEN ) !=0 ) +ETH_ALEN ) !=0 ) { +wdev_unlock (wdev);return -ENOTCONN ; + } +wdev_unlock (wdev); + }if (memcmp (mgmt->sa, dev->dev_addr,ETH_ALEN ) !=0 )
scripts/mkmakefile +3 -1
@@ -44,7 +44,9 @@ all: Makefile:; -\$(all) %/: all +\$(all): all @: +%/: all + @: EOF
sound/core/pcm_native.c +4 -0
@@ -979,6 +979,10 @@ static int snd_pcm_do_pause(struct snd_pcm_substream *substream, int push) {if (substream->runtime->trigger_master != substream)return 0 ; +/* some drivers might use hw_ptr to recover from the pause - +update the hw_ptr now */ +if (push) +snd_pcm_update_hw_ptr (substream);/* The jiffies check in snd_pcm_update_hw_ptr*() is done by * a delta betwen the current jiffies, this gives a large enough * delta, effectively to skip the check once.
sound/pci/emu10k1/emu10k1.c +4 -0
@@ -52,6 +52,7 @@ static int max_synth_voices[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 64};static int max_buffer_size[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =128 };static int enable_ir[SNDRV_CARDS ];static uint subsystem[SNDRV_CARDS ];/* Force card subsystem model */ +static uint delay_pcm_irq[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =2 };module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for the EMU10K1 soundcard." );
@@ -73,6 +74,8 @@ module_param_array(enable_ir, bool, NULL, 0444);MODULE_PARM_DESC (enable_ir,"Enable IR." );module_param_array (subsystem, uint,NULL ,0444 );MODULE_PARM_DESC (subsystem,"Force card subsystem model." ); +module_param_array (delay_pcm_irq, uint,NULL ,0444 ); +MODULE_PARM_DESC (delay_pcm_irq,"Delay PCM interrupt by specified number of samples (default 0)." );/* * Class 0401: 1102:0008 (rev 00) Subsystem: 1102:1001 -> Audigy2 Value Model:SB0400 */
@@ -127,6 +130,7 @@ static int __devinit snd_card_emu10k1_probe(struct pci_dev *pci, &emu)) < 0) goto error; card->private_data = emu; + emu->delay_pcm_irq = delay_pcm_irq[dev] &0x1f ;if ((err =snd_emu10k1_pcm (emu,0 ,NULL )) <0 ) goto error;if ((err =snd_emu10k1_pcm_mic (emu,1 ,NULL )) <0 )
sound/pci/emu10k1/emupcm.c +26 -4
@@ -332,7 +332,7 @@ static void snd_emu10k1_pcm_init_voice(struct snd_emu10k1 *emu, evoice->epcm->ccca_start_addr = start_addr + ccis;if (extra) { start_addr += ccis; - end_addr += ccis; + end_addr += ccis + emu->delay_pcm_irq; }if (stereo && !extra) {snd_emu10k1_ptr_write (emu,CPF , voice,CPF_STEREO_MASK );
@@ -360,7 +360,9 @@ static void snd_emu10k1_pcm_init_voice(struct snd_emu10k1 *emu,/* Assumption that PT is already 0 so no harm overwriting */ snd_emu10k1_ptr_write (emu,PTRX , voice, (send_amount[0 ] <<8 ) | send_amount[1 ]);snd_emu10k1_ptr_write (emu,DSL , voice, end_addr | (send_amount[3 ] <<24 )); -snd_emu10k1_ptr_write (emu,PSST , voice, start_addr | (send_amount[2 ] <<24 )); +snd_emu10k1_ptr_write (emu,PSST , voice, + (start_addr + (extra ? emu->delay_pcm_irq :0 )) | + (send_amount[2 ] <<24 ));if (emu->card_capabilities->emu_model) pitch_target =PITCH_48000 ;/* Disable interpolators on emu1010 card */ else
@@ -732,6 +734,23 @@ static void snd_emu10k1_playback_stop_voice(struct snd_emu10k1 *emu, struct snd_snd_emu10k1_ptr_write (emu,IP , voice,0 ); } +static inline void snd_emu10k1_playback_mangle_extra (struct snd_emu10k1 *emu, +struct snd_emu10k1_pcm *epcm, +struct snd_pcm_substream *substream, +struct snd_pcm_runtime *runtime) +{ +unsigned int ptr, period_pos; + +/* try to sychronize the current position for the interrupt +source voice */ + period_pos = runtime->status->hw_ptr - runtime->hw_ptr_interrupt; + period_pos %= runtime->period_size; + ptr =snd_emu10k1_ptr_read (emu,CCCA , epcm->extra->number); + ptr &= ~0x00ffffff ; + ptr |= epcm->ccca_start_addr + period_pos; +snd_emu10k1_ptr_write (emu,CCCA , epcm->extra->number, ptr); +} +static int snd_emu10k1_playback_trigger (struct snd_pcm_substream *substream,int cmd) {
@@ -753,6 +772,8 @@ static int snd_emu10k1_playback_trigger(struct snd_pcm_substream *substream,/* follow thru */ case SNDRV_PCM_TRIGGER_PAUSE_RELEASE :case SNDRV_PCM_TRIGGER_RESUME : +if (cmd ==SNDRV_PCM_TRIGGER_PAUSE_RELEASE ) +snd_emu10k1_playback_mangle_extra (emu, epcm, substream, runtime); mix = &emu->pcm_mixer[substream->number];snd_emu10k1_playback_prepare_voice (emu, epcm->voices[0 ],1 ,0 , mix);snd_emu10k1_playback_prepare_voice (emu, epcm->voices[1 ],0 ,0 , mix);
@@ -869,8 +890,9 @@ static snd_pcm_uframes_t snd_emu10k1_playback_pointer(struct snd_pcm_substream *#endif /* printk(KERN_DEBUG -"ptr = 0x%x, buffer_size = 0x%x, period_size = 0x%x\n", -ptr, runtime->buffer_size, runtime->period_size); +"ptr = 0x%lx, buffer_size = 0x%lx, period_size = 0x%lx\n", +(long)ptr, (long)runtime->buffer_size, +(long)runtime->period_size); */ return ptr; }
sound/pci/emu10k1/memory.c +3 -1
@@ -310,8 +310,10 @@ snd_emu10k1_alloc_pages(struct snd_emu10k1 *emu, struct snd_pcm_substream *substif (snd_BUG_ON (!hdr))return NULL ; + idx = runtime->period_size >= runtime->buffer_size ? + (emu->delay_pcm_irq *2 ) :0 ;mutex_lock (&hdr->block_mutex); - blk =search_empty (emu, runtime->dma_bytes); + blk =search_empty (emu, runtime->dma_bytes + idx);if (blk ==NULL ) {mutex_unlock (&hdr->block_mutex);return NULL ;
sound/pci/hda/patch_conexant.c +1 -0
@@ -2843,6 +2843,7 @@ static struct snd_pci_quirk cxt5066_cfg_tbl[] = {SND_PCI_QUIRK (0x1028 ,0x02f5 ,"Dell" ,CXT5066_DELL_LAPTOP ),SND_PCI_QUIRK (0x152d ,0x0833 ,"OLPC XO-1.5" ,CXT5066_OLPC_XO_1_5 ), +SND_PCI_QUIRK (0x1028 ,0x02d8 ,"Dell Vostro" ,CXT5066_DELL_VOSTO ),SND_PCI_QUIRK (0x1028 ,0x0402 ,"Dell Vostro" ,CXT5066_DELL_VOSTO ),SND_PCI_QUIRK (0x1028 ,0x0408 ,"Dell Inspiron One 19T" ,CXT5066_IDEAPAD ), SND_PCI_QUIRK(0x1179, 0xff50, "Toshiba Satellite P500-PSPGSC-01800T", CXT5066_OLPC_XO_1_5),
sound/pci/hda/patch_realtek.c +1 -0
@@ -6757,6 +6757,7 @@ static int patch_alc260(struct hda_codec *codec) spec->stream_analog_playback = &alc260_pcm_analog_playback; spec->stream_analog_capture = &alc260_pcm_analog_capture; + spec->stream_analog_alt_capture = &alc260_pcm_analog_capture; spec->stream_digital_playback = &alc260_pcm_digital_playback; spec->stream_digital_capture = &alc260_pcm_digital_capture;
sound/pci/intel8x0.c +6 -0
@@ -1776,6 +1776,12 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = { }, { .subvendor = 0x1014, + .subdevice = 0x0534, + .name = "ThinkPad X31", + .type =AC97_TUNE_INV_EAPD + }, + { + .subvendor = 0x1014, .subdevice = 0x1f00, .name ="MS-9128" , .type = AC97_TUNE_ALC_JACK
sound/pci/riptide/riptide.c +5 -6
@@ -1224,15 +1224,14 @@ static int try_to_load_firmware(struct cmdif *cif, struct snd_riptide *chip) firmware.firmware.ASIC, firmware.firmware.CODEC, firmware.firmware.AUXDSP, firmware.firmware.PROG); +if (!chip) +return 1 ; +for (i =0 ; i <FIRMWARE_VERSIONS ; i++) {if (!memcmp (&firmware_versions[i], &firmware,sizeof (firmware))) -break ; - } -if (i >=FIRMWARE_VERSIONS ) -return 0 ;/* no match */ +return 1 ;/* OK */ -if (!chip) -return 1 ;/* OK */ + }snd_printdd ("Writing Firmware\n" );if (!chip->fw_entry) {
sound/soc/codecs/wm8580.c +3 -3
@@ -269,9 +269,9 @@ SOC_DOUBLE("DAC2 Invert Switch", WM8580_DAC_CONTROL4, 2, 3, 1, 0),SOC_DOUBLE ("DAC3 Invert Switch" ,WM8580_DAC_CONTROL4 ,4 ,5 ,1 ,0 ),SOC_SINGLE ("DAC ZC Switch" ,WM8580_DAC_CONTROL5 ,5 ,1 ,0 ), -SOC_SINGLE ("DAC1 Switch" ,WM8580_DAC_CONTROL5 ,0 ,1 ,0 ), -SOC_SINGLE ("DAC2 Switch" ,WM8580_DAC_CONTROL5 ,1 ,1 ,0 ), -SOC_SINGLE ("DAC3 Switch" ,WM8580_DAC_CONTROL5 ,2 ,1 ,0 ), +SOC_SINGLE ("DAC1 Switch" ,WM8580_DAC_CONTROL5 ,0 ,1 ,1 ), +SOC_SINGLE ("DAC2 Switch" ,WM8580_DAC_CONTROL5 ,1 ,1 ,1 ), +SOC_SINGLE ("DAC3 Switch" ,WM8580_DAC_CONTROL5 ,2 ,1 ,1 ),SOC_DOUBLE ("ADC Mute Switch" ,WM8580_ADC_CONTROL1 ,0 ,1 ,1 ,0 ), SOC_SINGLE("ADC High-Pass Filter Switch", WM8580_ADC_CONTROL1, 4, 1, 0),
sound/soc/codecs/wm8776.c +0 -7
@@ -178,13 +178,6 @@ static int wm8776_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)case SND_SOC_DAIFMT_LEFT_J : iface |=0x0001 ;break ; -/* FIXME: CHECK A/B */ -case SND_SOC_DAIFMT_DSP_A : - iface |=0x0003 ; -break ; -case SND_SOC_DAIFMT_DSP_B : - iface |=0x0007 ; -break ;default :return -EINVAL ; }
sound/soc/soc-cache.c +2 -2
@@ -296,7 +296,7 @@ static unsigned int snd_soc_16_8_read_i2c(struct snd_soc_codec *codec,static unsigned int snd_soc_16_8_read (struct snd_soc_codec *codec,unsigned int reg) { -u16 *cache = codec->reg_cache; +u8 *cache = codec->reg_cache; reg &=0xff ;if (reg >= codec->reg_cache_size)
@@ -307,7 +307,7 @@ static unsigned int snd_soc_16_8_read(struct snd_soc_codec *codec,static int snd_soc_16_8_write (struct snd_soc_codec *codec,unsigned int reg,unsigned int value) { -u16 *cache = codec->reg_cache; +u8 *cache = codec->reg_cache;u8 data[3 ];int ret;
Re: Linux 2.6.27.53
In reply to Greg KHMakefile +11 -3
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 27 -EXTRAVERSION = .52 +EXTRAVERSION = .53 NAME = Trembling Tortoise # *DOCUMENTATION*
@@ -440,7 +440,11 @@ ifeq ($(config-targets),1) include $(srctree)/arch/$(SRCARCH)/Makefile export KBUILD_DEFCONFIG -config %config: scripts_basic outputmakefile FORCE +config: scripts_basic outputmakefile FORCE + $(Q)mkdir -p include/linux include/config + $(Q)$(MAKE) $(build)=scripts/kconfig $@ + +%config: scripts_basic outputmakefile FORCE $(Q)mkdir -p include/linux include/config $(Q)$(MAKE) $(build)=scripts/kconfig $@
@@ -1602,7 +1606,11 @@ endif $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) # Modules -/ %/: prepare scripts FORCE +/: prepare scripts FORCE + $(cmd_crmodverdir) + $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ + $(build)=$(build-dir) +%/: prepare scripts FORCE $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir)
arch/arm/include/asm/ptrace.h +13 -4
@@ -124,15 +124,24 @@ struct pt_regs {*/ static inline int valid_user_regs (struct pt_regs *regs) { -if (user_mode (regs) && (regs->ARM_cpsr &PSR_I_BIT ) ==0 ) { - regs->ARM_cpsr &= ~(PSR_F_BIT |PSR_A_BIT ); -return 1 ; +unsigned long mode = regs->ARM_cpsr &MODE_MASK ; + +/* +* Always clear the F (FIQ) and A (delayed abort) bits +*/ + regs->ARM_cpsr &= ~(PSR_F_BIT |PSR_A_BIT ); + +if ((regs->ARM_cpsr &PSR_I_BIT ) ==0 ) { +if (mode ==USR_MODE ) +return 1 ; +if (elf_hwcap &HWCAP_26BIT && mode ==USR26_MODE ) +return 1 ; }/* * Force CPSR to something logical... */ - regs->ARM_cpsr &= PSR_f | PSR_s | (PSR_x & ~PSR_A_BIT ) |PSR_T_BIT |MODE32_BIT ; + regs->ARM_cpsr &= PSR_f | PSR_s | PSR_x |PSR_T_BIT |MODE32_BIT ;if (!(elf_hwcap &HWCAP_26BIT )) regs->ARM_cpsr |=USR_MODE ;
drivers/gpu/drm/drm_drv.c +3 -1
@@ -504,7 +504,9 @@ int drm_ioctl(struct inode *inode, struct file *filp, retcode = -EFAULT ; goto err_i1; } - } + }else +memset (kdata,0 ,_IOC_SIZE (cmd)); + retcode =func (dev, kdata, file_priv);if ((retcode ==0 ) && (cmd &IOC_OUT )) {
drivers/usb/serial/io_ti.c +1 -1
@@ -1156,7 +1156,7 @@ static int download_fw(struct edgeport_serial *serial)/* Check if we have an old version in the I2C and update if necessary */ -if (download_cur_ver != download_new_ver) { +if (download_cur_ver < download_new_ver) { dbg("%s - Update I2C dld from %d.%d to %d.%d", __func__, firmware_version->Ver_Major,
drivers/usb/serial/navman.c +1 -0
@@ -24,6 +24,7 @@ static int debug;static struct usb_device_id id_table [] = { {USB_DEVICE (0x0a99 ,0x0001 ) },/* Talon Technology device */ + {USB_DEVICE (0x0df7 ,0x0900 ) },/* Mobile Action i-gotU */ { }, };MODULE_DEVICE_TABLE (usb, id_table);
firmware/Makefile +1 -1
@@ -75,7 +75,7 @@ fw-shipped-$(CONFIG_VIDEO_CPIA2) += cpia2/stv0672_vp4.bin fw-shipped-all := $(fw-shipped-y) $(fw-shipped-m) $(fw-shipped-) # Directories which we _might_ need to create, so we have a rule for them. -firmware-dirs := $(sort $(patsubst %,$(objtree)/$(obj)/%/,$(dir $(fw-external-y) $(fw-shipped-all)))) +firmware-dirs := $(sort $(addprefix $(objtree)/$(obj)/,$(dir $(fw-external-y) $(fw-shipped-all)))) quiet_cmd_mkdir = MKDIR $(patsubst $(objtree)/%,%,$@) cmd_mkdir = mkdir -p $@
net/can/bcm.c +25 -13
@@ -58,6 +58,13 @@#include <net/sock.h> #include <net/net_namespace.h> +/* +* To send multiple CAN frame content within TX_SETUP or to filter +* CAN messages with multiplex index within RX_SETUP, the number of +* different filters is limited to 256 due to the one byte index value. +*/ +#define MAX_NFRAMES 256 +/* use of last_frames[index].can_dlc */ #define RX_RECV 0x40/* received data for this element */ #define RX_THR 0x80/* element not been sent due to throttle feature */
@@ -86,15 +93,15 @@ struct bcm_op {struct list_head list;int ifindex;canid_t can_id; -int flags; +u32 flags;unsigned long frames_abs, frames_filtered;struct timeval ival1, ival2;struct hrtimer timer, thrtimer;ktime_t rx_stamp, kt_ival1, kt_ival2, kt_lastmsg;int rx_ifindex; -int count; -int nframes; -int currframe; +u32 count; +u32 nframes; +u32 currframe;struct can_frame *frames;struct can_frame *last_frames;struct can_frame sframe;
@@ -173,7 +180,7 @@ static int bcm_read_proc(char *page, char **start, off_t off, len +=snprintf (page + len,PAGE_SIZE - len,"rx_op: %03X %-5s " , op->can_id,bcm_proc_getifname (op->ifindex)); - len +=snprintf (page + len,PAGE_SIZE - len,"[%d]%c " , + len +=snprintf (page + len,PAGE_SIZE - len,"[%u]%c " , op->nframes, (op->flags &RX_CHECK_DLC )?'d' :' ' );if (op->kt_ival1.tv64)
@@ -207,7 +214,7 @@ static int bcm_read_proc(char *page, char **start, off_t off,list_for_each_entry (op, &bo->tx_ops, list) { len +=snprintf (page + len,PAGE_SIZE - len, -"tx_op: %03X %s [%d] " , +"tx_op: %03X %s [%u] " , op->can_id,bcm_proc_getifname (op->ifindex), op->nframes);
@@ -288,7 +295,7 @@ static void bcm_send_to_user(struct bcm_op *op, struct bcm_msg_head *head,struct can_frame *firstframe;struct sockaddr_can *addr;struct sock *sk = op->sk; -int datalen = head->nframes *CFSIZ ; +unsigned int datalen = head->nframes *CFSIZ ;int err; skb =alloc_skb (sizeof (*head) + datalen,gfp_any ());
@@ -466,7 +473,7 @@ static void bcm_rx_update_and_send(struct bcm_op *op,* bcm_rx_cmp_to_index - (bit)compares the currently received data to formerly * received data stored in op->last_frames[] */ -static void bcm_rx_cmp_to_index (struct bcm_op *op,int index, +static void bcm_rx_cmp_to_index (struct bcm_op *op,unsigned int index,struct can_frame *rxdata) {/*
@@ -548,7 +555,7 @@ static int bcm_rx_thr_flush(struct bcm_op *op)int updated =0 ;if (op->nframes >1 ) { -int i; +unsigned int i;/* for MUX filter we start at index 1 */ for (i =1 ; i < op->nframes; i++) {
@@ -597,7 +604,7 @@ static void bcm_rx_handler(struct sk_buff *skb, void *data) {struct bcm_op *op = (struct bcm_op *)data;struct can_frame rxframe; -int i; +unsigned int i;/* disable timeout */ hrtimer_cancel (&op->timer);
@@ -799,14 +806,15 @@ static int bcm_tx_setup(struct bcm_msg_head *msg_head, struct msghdr *msg, {struct bcm_sock *bo =bcm_sk (sk);struct bcm_op *op; -int i, err; +unsigned int i; +int err;/* we need a real device to send frames */ if (!ifindex)return -ENODEV ; -/* we need at least one can_frame */ -if (msg_head->nframes <1 ) +/* check nframes boundaries - we need at least one can_frame */ +if (msg_head->nframes <1 || msg_head->nframes >MAX_NFRAMES )return -EINVAL ;/* check the given can_id */
@@ -966,6 +974,10 @@ static int bcm_rx_setup(struct bcm_msg_head *msg_head, struct msghdr *msg, msg_head->nframes =0 ; } +/* the first element contains the mux-mask => MAX_NFRAMES + 1 */ +if (msg_head->nframes >MAX_NFRAMES +1 ) +return -EINVAL ; +if ((msg_head->flags &RX_RTR_FRAME ) && ((msg_head->nframes !=1 ) || (!(msg_head->can_id &CAN_RTR_FLAG ))))
scripts/mkmakefile +3 -1
@@ -42,7 +42,9 @@ all: Makefile:; -\$(all) %/: all +\$(all): all @: +%/: all + @: EOF
security/selinux/hooks.c +1 -1
@@ -1290,7 +1290,7 @@ static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dent/* Default to the fs superblock SID. */ isec->sid = sbsec->sid; -if (sbsec->proc) { +if (sbsec->proc && !S_ISLNK (inode->i_mode)) {struct proc_inode *proci =PROC_I (inode);if (proci->pde) { isec->sclass =inode_mode_to_security_class (inode->i_mode);
Linux 2.6.35.4
In reply to Greg KHI'm announcing the release of the 2.6.35.4 kernel.
All users of the 2.6.35 kernel series must upgrade.
The updated 2.6.35.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.35.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.35.y.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/arm/include/asm/ptrace.h | 17 + arch/arm/mach-ixp4xx/ixdp425-setup.c | 1 arch/arm/mach-mx3/mach-qong.c | 1 arch/arm/mach-orion5x/ts78xx-setup.c | 1 arch/blackfin/mach-bf537/boards/stamp.c | 1 arch/blackfin/mach-bf561/boards/acvilon.c | 1 arch/powerpc/Makefile | 2 arch/sparc/include/asm/atomic_64.h | 10 - arch/sparc/include/asm/fb.h | 4 arch/sparc/include/asm/parport.h | 4 arch/sparc/include/asm/rwsem-const.h | 2 arch/x86/Kconfig | 5 arch/x86/include/asm/cmpxchg_32.h | 67 ++----- arch/x86/include/asm/cmpxchg_64.h | 4 arch/x86/kernel/apic/apic.c | 2 arch/x86/kernel/apic/io_apic.c | 2 arch/x86/kernel/cpu/perf_event_intel.c | 81 ++++++-- arch/x86/kernel/cpu/perf_event_p4.c | 9 arch/x86/kernel/mpparse.c | 16 + arch/x86/kernel/smpboot.c | 19 ++ arch/x86/lib/atomic64_386_32.S | 236 ++++++++++++++------------ arch/x86/oprofile/nmi_int.c | 17 + drivers/acpi/apei/erst.c | 1 drivers/char/agp/intel-gtt.c | 11 + drivers/char/mem.c | 2 drivers/char/tty_io.c | 4 drivers/gpu/drm/drm_drv.c | 4 drivers/gpu/drm/i915/i915_dma.c | 8 drivers/gpu/drm/i915/intel_display.c | 23 +- drivers/gpu/drm/radeon/radeon_atombios.c | 16 + drivers/gpu/drm/radeon/radeon_device.c | 2 drivers/gpu/drm/radeon/radeon_i2c.c | 7 drivers/gpu/drm/radeon/radeon_irq_kms.c | 5 drivers/gpu/drm/radeon/radeon_kms.c | 4 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 2 drivers/gpu/drm/radeon/radeon_pm.c | 5 drivers/hwmon/pc87360.c | 31 +-- drivers/isdn/gigaset/capi.c | 17 - drivers/isdn/sc/ioctl.c | 10 - drivers/md/dm-exception-store.c | 4 drivers/md/dm-exception-store.h | 3 drivers/md/dm-ioctl.c | 50 +++-- drivers/md/dm-snap.c | 44 +++- drivers/md/dm.c | 63 +++++- drivers/md/dm.h | 5 drivers/memstick/core/mspro_block.c | 6 drivers/mtd/chips/cfi_cmdset_0001.c | 20 +- drivers/mtd/lpddr/lpddr_cmds.c | 20 +- drivers/mtd/nand/nand_base.c | 1 drivers/mtd/nand/plat_nand.c | 5 drivers/mtd/nand/pxa3xx_nand.c | 2 drivers/net/e1000e/82571.c | 31 +-- drivers/net/e1000e/defines.h | 4 drivers/net/e1000e/lib.c | 10 + drivers/net/wireless/ath/ath5k/base.c | 21 ++ drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 15 + drivers/net/wireless/iwlwifi/iwl-3945.c | 16 - drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c | 17 + drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 17 - drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 20 -- drivers/net/wireless/iwlwifi/iwl-agn.c | 83 ++++++++- drivers/net/wireless/iwlwifi/iwl-core.c | 70 ++----- drivers/net/wireless/iwlwifi/iwl-core.h | 13 - drivers/net/wireless/iwlwifi/iwl3945-base.c | 56 +++++- drivers/net/wireless/wl12xx/wl1251_cmd.c | 2 drivers/platform/x86/compal-laptop.c | 9 drivers/platform/x86/dell-laptop.c | 7 drivers/regulator/wm8994-regulator.c | 5 drivers/serial/suncore.c | 15 - drivers/staging/batman-adv/hard-interface.c | 21 +- drivers/staging/batman-adv/originator.c | 14 - drivers/usb/host/xhci-ring.c | 2 drivers/usb/serial/cp210x.c | 4 drivers/usb/serial/ftdi_sio.c | 5 drivers/usb/serial/ftdi_sio_ids.h | 9 drivers/usb/serial/io_ti.c | 2 drivers/usb/serial/navman.c | 1 drivers/usb/serial/option.c | 7 drivers/usb/serial/pl2303.c | 1 drivers/usb/serial/pl2303.h | 4 drivers/video/matrox/matroxfb_base.h | 4 firmware/Makefile | 2 fs/char_dev.c | 1 fs/nfs/dir.c | 2 fs/nfs/nfs4proc.c | 8 fs/nfs/super.c | 7 fs/nilfs2/super.c | 4 fs/ocfs2/acl.c | 33 +++ fs/ocfs2/dlm/dlmmaster.c | 9 fs/ocfs2/dlm/dlmrecovery.c | 22 +- fs/ocfs2/dlm/dlmthread.c | 114 ++++++------ fs/ocfs2/refcounttree.c | 20 +- include/acpi/platform/aclinux.h | 10 - include/linux/mm_types.h | 2 include/linux/mtd/flashchip.h | 2 include/linux/skbuff.h | 4 include/linux/tty.h | 3 include/sound/emu10k1.h | 1 include/trace/events/timer.h | 8 kernel/fork.c | 7 kernel/sched.c | 10 - kernel/time/timekeeping.c | 14 - kernel/trace/ring_buffer.c | 3 kernel/trace/trace_functions_graph.c | 10 - mm/memory.c | 15 + mm/mlock.c | 21 +- mm/mmap.c | 21 +- mm/nommu.c | 7 mm/slab.c | 4 net/bridge/br_device.c | 8 net/bridge/br_fdb.c | 2 net/bridge/br_input.c | 6 net/bridge/br_stp_bpdu.c | 2 net/can/bcm.c | 41 ++-- net/can/raw.c | 4 net/core/dev.c | 9 net/ipv4/tcp.c | 7 net/netlink/af_netlink.c | 46 +---- net/sched/act_nat.c | 3 net/sched/sch_sfq.c | 13 + net/wireless/mlme.c | 8 scripts/mkmakefile | 4 sound/core/pcm_native.c | 4 sound/pci/emu10k1/emu10k1.c | 4 sound/pci/emu10k1/emupcm.c | 30 ++- sound/pci/emu10k1/memory.c | 4 sound/pci/hda/patch_conexant.c | 1 sound/pci/hda/patch_realtek.c | 1 sound/pci/intel8x0.c | 6 sound/pci/riptide/riptide.c | 11 - sound/soc/codecs/wm8580.c | 6 sound/soc/codecs/wm8776.c | 7 sound/soc/soc-cache.c | 4 134 files changed, 1259 insertions(+), 700 deletions(-)
Alex Deucher (6):
drm/radeon/kms: add additional quirk for Acer rv620 laptop drm/radeon/kms: don't enable MSIs on AGP boards drm/radeon/kms/pm: bail early if nothing's changing drm/radeon/kms: fix typo in radeon_compute_pll_gain drm/radeon/kms/DCE3+: switch pads to ddc mode when going i2c drm/radeon/kms: fix sideport detection on newer rs880 boards
Anatolij Gustschin (1):
powerpc: Fix typo in uImage target
Arjan van de Ven (1):
tracing: Fix timer tracing
Axel Lin (1):
pxa3xx: fix ns2cycle equation
Borislav Petkov (1):
x86, hotplug: Serialize CPU hotplug to avoid bringup concurrency issues
Bruce Allan (2):
e1000e: disable ASPM L1 on 82573
e1000e: don't check for alternate MAC addr on parts that don't support it
Carsten Otte (1):
slab: fix object alignment
Changli Gao (3):
act_nat: the checksum of ICMP doesn't have pseudo header
net: disable preemption before call smp_processor_id()
act_nat: fix wild pointer
Chris Wilson (1):
drm/i915/edp: Flush the write before waiting for PLLs
Cliff Cai (1):
ASoC: register cache should be 1 byte aligned for 1 byte long register
Craig Shelley (1):
USB: CP210x Fix Break On/Off
Cyrill Gorcunov (1):
perf, x86: P4 PMU -- update nmi irq statistics and unmask lvt entry properly
Dan Carpenter (2):
isdn: fix information leak
isdn: gigaset: add missing unlock
Daniel Kiper (1):
x86, apic: Fix apic=debug boot crash
Daniel T Chen (1):
ALSA: intel8x0: Mute External Amplifier by default for ThinkPad X31
Daniel Vetter (2):
drm/i915: fixup pageflip ringbuffer commands for i8xx drm/i915: i8xx also doesn't like multiple oustanding pageflips
Dave Airlie (1):
drm: stop information leak of old kernel stack.
David Howells (1):
Fix init ordering of /dev/console vs callers of modprobe
David S. Miller (4):
sparc64: Add missing ID to parport probing code.
sparc64: Fix rwsem constant bug leading to hangs.
sparc64: Fix atomic64_t routine return values.
sparc: Really fix "console=" for serial consoles.
Dmitry Popov (1):
tcp: cookie transactions setsockopt memory leak
Dr. David Alan Gilbert (1):
drm/radeon/kms: add missing copy from user
Eric W. Biederman (1):
x86, apic: Map the local apic when parsing the MP table.
Galen Seitz (1):
USB: ftdi_sio: add product ID for Lenz LI-USB
Greg Kroah-Hartman (2):
USB: io_ti: check firmware version before updating Linux 2.6.35.4
H. Peter Anvin (1):
x86, asm: Clean up and simplify set_64bit()
Herbert Xu (1):
bridge: Fix skb leak when multicast parsing fails on TX
Huang Ying (1):
tracing: Fix ring_buffer_read_page reading out of page boundary
Jan Beulich (1):
fixes for using make 3.82
Jarek Poplawski (4):
net: Fix napi_gro_frags vs netpoll path
net: Fix a memmove bug in dev_gro_receive()
pkt_sched: Fix sch_sfq vs tcf_bind_filter oops
pkt_sched: Fix sch_sfq vs tc_modify_qdisc oops
Jaroslav Kysela (1):
ALSA: emu10k1 - delay the PCM interrupts (add pcm_irq_delay parameter)
Jason Wessel (1):
timekeeping: Fix overflow in rawtime tv_nsec on 32 bit archs
Jean Delvare (1):
hwmon: (pc87360) Fix device resource declaration
Jef Driesen (1):
USB: pl2303: New vendor and product id
Jerome Glisse (1):
drm/radeon/kms: fix GTT/VRAM overlapping test
Jesse Barnes (1):
drm/agp/i915: trim stolen space to 32M
Jiaju Zhang (1):
Fix the nested PR lock calling issue in ACL
Johannes Berg (4):
cfg80211: fix locking in action frame TX
iwlagn: fix rts cts protection
iwlwifi: fix 3945 filter flags
netlink: fix compat recvmsg
John Stultz (1):
time: Workaround gcc loop optimization that causes 64bit div errors
John Villalovos (1):
Oprofile: Change CPUIDS from decimal to hex, and add some comments
John Youn (1):
USB: xhci: Remove buggy assignment in next_trb()
Jonathan Woithe (1):
ALSA: hda - Fix missing stream for second ADC on Realtek ALC260 HDA codec
Joonyoung Shim (1):
regulator: Default GPIO controlled WM8994 regulators to disabled
Josh Hunt (1):
oprofile: add support for Intel processor model 30
Kiyoshi Ueda (3):
dm: prevent access to md being deleted
dm ioctl: release _hash_lock between devices in remove_all
dm: separate device deletion from dm_put
Linus Torvalds (3):
mm: make the vma list be doubly linked
mm: make the mlock() stack guard page checks stricter
mm: make stack guard page logic use vm_prev pointer
Luca Barbieri (1):
x86, asm: Refactor atomic64_386_32.S to support old binutils and be cleaner
Marek Lindner (1):
Staging: batman-adv: unify orig_hash_lock spinlock handling to avoid deadlocks
Marek Vasut (3):
ARM: Fix gen_nand probe structures contents
BFIN: Fix gen_nand probe structures contents
gen_nand: Test if nr_chips field is valid
Mark Brown (2):
ASoC: Fix inverted mute controls for WM8580
ASoC: Remove DSP mode support for WM8776
Martin Michlmayr (1):
USB: ftdi_sio: Add ID for Ionics PlugComputer
Maxim Levitsky (3):
memstick: init sysfs attributes
memstick: fix hangs on unexpected device removal in mspro_blk
ath5k: disable ASPM L0s for all cards
Michael Tokarev (1):
USB: option: add Celot CT-650
Michael Wileczka (1):
USB: ftdi_sio: fix endianess of max packet size
Mikulas Patocka (2):
dm snapshot: iterate origin and cow devices
dm snapshot: test chunk size against both origin and snapshot
Oliver Hartkopp (2):
can: add limit for nframes and clean up signed/unsigned variables
can-raw: Fix skb_orphan_try handling
Ondrej Zary (1):
matroxfb: fix incorrect use of memcpy_toio()
Patrick J. LoPresti (1):
nfs: Add "lookupcache" to displayed mount options
Rajkumar Manoharan (1):
ath9k_htc: fix panic on packet injection using airbase-ng tool.
Ross Burton (1):
USB: add device IDs for igotu to navman
Russell King (1):
ARM: Tighten check for allowable CPSR values
Ryusuke Konishi (1):
nilfs2: fix list corruption after ifile creation failure
Shaohua Li (1):
tracing: Fix an unallocated memory access in function_graph
Srinivas Eeda (1):
ocfs2 fix o2dlm dlm run purgelist (rev 3)
Stefani Seibold (1):
mtd: change struct flchip_shared spinlock locking into mutex
Stephen Hemminger (1):
bridge: add rcu_read_lock on transmit
Sven Eckelmann (3):
Staging: batman-adv: Create batman_if only on register event
Staging: batman-adv: Don't use net_dev after dev_put
Staging: batman-adv: Don't write in not allocated packet_buff
Takashi Iwai (2):
ALSA: riptide - Fix detection / load of firmware files
ALSA: hda - Add quirk for Dell Vostro 1220
Tao Ma (1):
ocfs2: Count more refcount records in file system fragmentation.
Thomas Gleixner (1):
acpi: fix bogus preemption logic
Tiger Yang (1):
ocfs2: do not overwrite error codes in ocfs2_init_acl
Tilman Sauerbeck (1):
mtd: nand: Fix probe of Samsung NAND chips
Tilman Schmidt (1):
isdn/gigaset: reduce syslog spam
Tim Chen (1):
mutex: Improve the scalability of optimistic spinning
Trond Myklebust (1):
NFS: Fix an Oops in the NFSv4 atomic open code
Victor van den Elzen (1):
platform/x86: move rfkill for Dell Mini 1012 to compal-laptop
Wengang Wang (3):
ocfs2/dlm: fix a dead lock
ocfs2/dlm: avoid incorrect bit set in refmap on recovery master ocfs2/dlm: remove potential deadlock -V3
Yuri Kululin (1):
wl1251: fix trigger scan timeout usage
Zhang, Yanmin (1):
perf, x86: Fix Intel-nhm PMU programming errata workaround
Linux 2.6.27.53
In reply to Greg KHI'm announcing the release of the 2.6.27.53 kernel. All users of the 2.6.27 kernel series are very strongly encouraged to upgrade.
The updated 2.6.27.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.27.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.27.y.git;a=summarythanks,
greg k-h
------------
Makefile | 14 +++++++++++--- arch/arm/include/asm/ptrace.h | 17 +++++++++++++---- drivers/gpu/drm/drm_drv.c | 4 +++- drivers/usb/serial/io_ti.c | 2 +- drivers/usb/serial/navman.c | 1 + firmware/Makefile | 2 +- net/can/bcm.c | 38 +++++++++++++++++++++++++------------- scripts/mkmakefile | 4 +++- security/selinux/hooks.c | 2 +- 9 files changed, 59 insertions(+), 25 deletions(-)
Dave Airlie (1):
drm: stop information leak of old kernel stack.
Greg Kroah-Hartman (2):
USB: io_ti: check firmware version before updating Linux 2.6.27.53
Jan Beulich (1):
fixes for using make 3.82
Oliver Hartkopp (1):
can: add limit for nframes and clean up signed/unsigned variables
Ross Burton (1):
USB: add device IDs for igotu to navman
Russell King (1):
ARM: Tighten check for allowable CPSR values
Sam Ravnborg (1):
kbuild: fix make incompatibility
Stephen Smalley (1):
selinux: use default proc sid on symlinks
[ removing Linus and Andrew not to pollute their mailboxes ]
Hi Og,
Quoted 9 lines · Greg KH
{pound} {pound} {pound}
Og woke up to the loud noise of the villagers pounding on his cave door. He stumbled toward it, grabbing the four numbered bags that he knew were needed at this time.
Opening the door, Og looked at the villagers, all expectant, wondering where this week's kernels were, what was delaying them, as they needed their weekly fix.
My villagers are nicer, only two have kindly asked if they would get their bi-yearly lunch this week. I'll have to recall the recipe and prepare the soup.
Quoted 8 lines
Reaching into the first bag, quite worn out with a faded "27" on the outside of it, he grabbed one of the remaining kernels in there and tossed it into the group. A few small people at the back of the crowd caught the kernel, and slowly walked off toward the village. Og wondered about these people, constantly relying on the old kernels to save them for another day, while resisting the change to move on, harboring some kind of strange reverence for this specific brand that Og just could not understand.
I certainly understand as I am one of them. The reason is precisely the one that made you start this silly project : everyone has different expectations on reliability. You don't put the same kernel on your desktop, on a SOHO server, on an enterprise server, on an appliance or on a device you probably won't be able to upgrade. And that's not only the kernel, it's true for all software. The fact is that many issues fixed in recent kernels are specific to those recent kernels. And we clearly observe that with the 2.6-stable branches where the number of patches diminishes with time (I'm not comparing branches between each other). I observe that even more with 2.4. Almost all of the sensible fixes of the last 6 months did not apply to it (I just have a few improbable ones in queue, though they're not easy to backport nor to test).
Some of these many fixes in latest kernels may concern unreliable features that were not present in earlier versions, some may simply be regressions. When one kernel fits 100% of your needs, you don't want to take risks by upgrading it if you know it is still supported, so you just apply fixes from time to time. "If it ain't broke, don't fix it" !
And that works very well. I'm running 2.6.27.x on my desktop (2 months of uptime, it's not up to date, but OK for what I do with it). Running 2.6.32.x on my netbook because it needed updated drivers. I'm not tempted to update it further simply because I use it to visit customers and I would not like to waste time discovering that feature X or Y does not work anymore when I need it (eventhough the risks are very low). I'm just applying the principle above. So 2.6.32.x is perfect for it.
On an ARM-based development board, I have 2.6.35-rc2 which showed a nice speed up and which was enough to boot and test my builds. No need for any update there either, although I'll probably upgrade to avoid the usual merge window bugs.
And on the load balancer appliances we're distributing at work, we're still shipping with 2.4.37, because customers expect a high reliability with low maintenance costs and don't want to reboot twice a year nor apply any update which just covers bugs they have not encountered (typically security issues). This point is important because you know that customers won't update, and you want to ensure that even if they skip 2-3 updates, the risk will remain very low, otherwise you have to pressure them to upgrade, which you can't do every 6 months. For this reason, we're thinking about upgrading to 2.6.27.x because it seems to be ready to take this role. And by this time all my machines will be at least at 2.6.32.x ;-)
Quoted 7 lines
Og looked proudly at the remaining villagers in front of him. These were the strongest women, the most beautiful men, and the smartest children around. They had changed over the past few years, becoming brighter, and more adept and the changes the world was throwing at them. They were self-reliant, taking whatever Og offered them, providing good feedback, smart bug reports, and tasty treats of plum pudding during the holliday season.
Unfortunately, they're not *all* like this. There's a last group, those who try the mixture, see it fail for their usage, declare it as definitely broken and switch back to previous versions. I know quite a bunch of them unfortunately. When they tell me "2.6.35 is broken, I switched back to 2.6.33", I tell them that they must report the bug and try again with next stable version. But they decline. They consider they wasted their time or damaged the production and don't want to test that branch anymore. In my experience, most users don't understand how the versionning works, so as long as they see the same numbers on the left, they have no real hope for fixes. Maybe their mind has been distorted by other products :-/ (yes this is stupid, but the fix for "users" has not been merged yet).
Quoted 4 lines
Og reached into his bag marked with a big "35" and tossed a plump, jucy kernel at this final group, who instantly grabbed it up, thanked him for providing it (unlike those self-absorbed 32 and 27 people) and ran off to help spread the good news of a new kernel.
I too know what you mean here, but I see this as a positive lack of feedback (it's a thankless work after all). It means that the ones who never thank you just expect it to work, see it work and find it normal. It's just a proof that you've excelled at your task !
Cheers,
Willy
[PS: and thanks for these updates to the 3 kernels I use]
Quoted 10 lines · Greg KH
{pound} {pound} {pound}
Og woke up to the loud noise of the villagers pounding on his cave door. He stumbled toward it, grabbing the four numbered bags that he knew were needed at this time.
Opening the door, Og looked at the villagers, all expectant, wondering where this week's kernels were, what was delaying them, as they needed their weekly fix.
Quoted 8 lines
Reaching into the first bag, quite worn out with a faded "27" on the outside of it, he grabbed one of the remaining kernels in there and tossed it into the group. A few small people at the back of the crowd caught the kernel, and slowly walked off toward the village. Og wondered about these people, constantly relying on the old kernels to save them for another day, while resisting the change to move on, harboring some kind of strange reverence for this specific brand that Og just could not understand.
Count me in with Willy as one of these small people, and for similar reasons. In an ideal world things might be different, but we do what we can.
Thanks for keeping 2.6.27 going a while longer.
Chris
Signature · 5 lines
Chris Friesen Software Developer GENBAND [email protected] www.genband.com