Linux 2.6.32.10
Subsystems (73)
I'm announcing the release of the 2.6.32.10 kernel.
All users of the 2.6.32 kernel series should 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
------------
Documentation/kernel-parameters.txt | 7 Makefile | 2 arch/Kconfig | 2 arch/ia64/include/asm/acpi.h | 1 arch/sparc/include/asm/io_32.h | 2 arch/sparc/include/asm/page_32.h | 2 arch/sparc/include/asm/stat.h | 4 arch/sparc/kernel/central.c | 4 arch/sparc/kernel/process_32.c | 2 arch/sparc/kernel/process_64.c | 8 arch/sparc/kernel/signal32.c | 10 arch/sparc/kernel/signal_32.c | 6 arch/sparc/kernel/signal_64.c | 8 arch/sparc/kernel/tsb.S | 6 arch/x86/ia32/ia32_aout.c | 1 arch/x86/include/asm/io_apic.h | 1 arch/x86/include/asm/pgalloc.h | 5 arch/x86/kernel/acpi/boot.c | 17 arch/x86/kernel/apic/io_apic.c | 68 +- arch/x86/kernel/reboot.c | 8 arch/x86/kvm/emulate.c | 55 + arch/x86/mm/pgtable.c | 31 arch/x86/oprofile/nmi_int.c | 17 arch/x86/oprofile/op_model_amd.c | 42 - arch/x86/oprofile/op_model_p4.c | 6 arch/x86/oprofile/op_model_ppro.c | 6 arch/x86/xen/enlighten.c | 7 arch/x86/xen/mmu.c | 11 drivers/acpi/processor_idle.c | 28 drivers/acpi/tables.c | 4 drivers/ata/ahci.c | 12 drivers/ata/pata_hpt3x2n.c | 20 drivers/base/core.c | 13 drivers/base/devtmpfs.c | 13 drivers/char/tpm/tpm_tis.c | 10 drivers/char/tty_ldisc.c | 50 - drivers/clocksource/sh_cmt.c | 32 - drivers/clocksource/sh_mtu2.c | 6 drivers/clocksource/sh_tmu.c | 6 drivers/gpio/wm831x-gpio.c | 22 drivers/gpu/drm/i915/intel_display.c | 2 drivers/gpu/drm/i915/intel_lvds.c | 7 drivers/gpu/drm/i915/intel_sdvo.c | 23 drivers/gpu/drm/i915/intel_tv.c | 2 drivers/gpu/drm/radeon/r600.c | 13 drivers/gpu/drm/radeon/r600_cs.c | 83 ++ drivers/gpu/drm/radeon/r600d.h | 26 drivers/gpu/drm/radeon/radeon.h | 1 drivers/gpu/drm/radeon/radeon_cs.c | 1 drivers/gpu/drm/radeon/radeon_display.c | 6 drivers/gpu/drm/radeon/rv770.c | 13 drivers/gpu/drm/ttm/ttm_tt.c | 18 drivers/hid/hid-core.c | 2 drivers/hid/hid-ids.h | 7 drivers/hid/usbhid/hid-core.c | 28 drivers/hid/usbhid/hid-quirks.c | 1 drivers/hid/usbhid/usbhid.h | 2 drivers/hwmon/ams/ams-core.c | 11 drivers/hwmon/ams/ams-i2c.c | 2 drivers/hwmon/ams/ams-pmu.c | 2 drivers/hwmon/ams/ams.h | 1 drivers/hwmon/tmp421.c | 20 drivers/macintosh/therm_adt746x.c | 34 - drivers/md/dm.c | 4 drivers/media/dvb/dvb-core/dvb_net.c | 1 drivers/media/dvb/dvb-usb/Kconfig | 2 drivers/media/dvb/frontends/l64781.c | 4 drivers/media/video/bt8xx/bttv-driver.c | 1 drivers/media/video/bt8xx/bttv-i2c.c | 8 drivers/media/video/bt8xx/bttvp.h | 1 drivers/media/video/gspca/mr97310a.c | 6 drivers/media/video/pwc/pwc-ctrl.c | 2 drivers/media/video/uvc/uvc_ctrl.c | 7 drivers/mmc/host/s3cmci.c | 2 drivers/net/ks8851_mll.c | 4 drivers/net/sky2.c | 8 drivers/net/via-rhine.c | 41 - drivers/net/wireless/airo.c | 34 - drivers/net/wireless/ath/ath5k/ath5k.h | 1 drivers/net/wireless/ath/ath5k/base.c | 26 drivers/net/wireless/ath/ath9k/beacon.c | 9 drivers/net/wireless/ath/ath9k/hw.c | 10 drivers/net/wireless/ath/ath9k/phy.h | 3 drivers/net/wireless/ath/ath9k/rc.c | 15 drivers/net/wireless/b43/main.c | 3 drivers/net/wireless/b43legacy/main.c | 2 drivers/net/wireless/iwlwifi/iwl-4965.c | 2 drivers/net/wireless/iwlwifi/iwl-5000.c | 8 drivers/net/wireless/iwlwifi/iwl-core.c | 2 drivers/net/wireless/iwlwifi/iwl-core.h | 2 drivers/net/wireless/iwlwifi/iwl-tx.c | 21 drivers/net/wireless/p54/p54pci.c | 18 drivers/net/wireless/p54/p54usb.c | 1 drivers/net/wireless/rndis_wlan.c | 13 drivers/pci/hotplug/ibmphp_ebda.c | 13 drivers/platform/x86/thinkpad_acpi.c | 64 +- drivers/rtc/class.c | 1 drivers/rtc/rtc-coh901331.c | 5 drivers/scsi/arm/fas216.c | 2 drivers/scsi/mpt2sas/mpt2sas_scsih.c | 17 drivers/scsi/qla1280.c | 4 drivers/scsi/qla2xxx/qla_gbl.h | 1 drivers/scsi/qla2xxx/qla_isr.c | 29 drivers/scsi/qla2xxx/qla_mid.c | 6 drivers/serial/imx.c | 6 drivers/staging/Kconfig | 2 drivers/staging/Makefile | 1 drivers/staging/hv/vmbus_drv.c | 30 drivers/staging/mimio/Kconfig | 10 drivers/staging/mimio/Makefile | 1 drivers/staging/mimio/mimio.c | 914 ---------------------------- drivers/usb/core/driver.c | 4 drivers/usb/core/hcd.c | 2 drivers/usb/core/hcd.h | 2 drivers/usb/core/hub.c | 12 drivers/usb/core/usb.c | 3 drivers/usb/host/ohci-pnx4008.c | 6 drivers/usb/host/uhci-hcd.c | 1 drivers/usb/host/xhci-ext-caps.h | 7 drivers/usb/misc/sisusbvga/sisusb.c | 1 drivers/usb/serial/cp210x.c | 3 drivers/usb/serial/ftdi_sio.c | 31 drivers/usb/serial/ftdi_sio.h | 959 ------------------------------ drivers/usb/serial/ftdi_sio_ids.h | 1019 ++++++++++++++++++++++++++++++++ drivers/usb/serial/sierra.c | 19 drivers/usb/storage/unusual_devs.h | 88 ++ drivers/video/offb.c | 15 drivers/video/sunxvr500.c | 1 drivers/watchdog/bfin_wdt.c | 13 fs/exec.c | 1 fs/file_table.c | 2 fs/namei.c | 14 fs/nfs/dns_resolve.c | 18 fs/nfsd/nfs4state.c | 2 fs/ocfs2/aops.c | 5 fs/proc/base.c | 24 include/linux/fs.h | 3 include/linux/irq.h | 2 include/linux/sched.h | 5 kernel/irq/chip.c | 52 + kernel/power/snapshot.c | 2 kernel/sched.c | 21 lib/idr.c | 4 mm/fadvise.c | 10 mm/oom_kill.c | 2 mm/readahead.c | 6 mm/slab.c | 6 net/core/dev.c | 2 net/core/net-sysfs.c | 3 net/core/scm.c | 2 net/ipv4/devinet.c | 7 net/ipv4/igmp.c | 2 net/ipv6/addrconf.c | 16 net/ipv6/netfilter/nf_conntrack_reasm.c | 1 net/mac80211/agg-tx.c | 3 net/netfilter/xt_recent.c | 4 net/sunrpc/svc_xprt.c | 5 net/sunrpc/xprtsock.c | 5 security/selinux/ss/ebitmap.c | 2 sound/core/pcm_native.c | 8 sound/pci/hda/hda_intel.c | 5 sound/pci/hda/patch_analog.c | 2 sound/pci/via82xx.c | 6 sound/soc/codecs/ak4104.c | 6 sound/usb/usbaudio.c | 32 + sound/usb/usbmidi.c | 6 sound/usb/usbquirks.h | 27 167 files changed, 2358 insertions(+), 2378 deletions(-)
Aaro Koskinen (1):
rtc-core: fix memory leak
Ajit Khaparde (1):
net: bug fix for vlan + gro issue
Al Viro (2):
fix LOOKUP_FOLLOW on automount "symlinks"
Switch proc/self to nd_set_link()
Alan Cox (2):
tty: Fix the ldisc hangup race
USB: cp210x: Add 81E8 (Zephyr Bioharness)
Alan Stern (2):
USB: fix the idProduct value for USB-3.0 root hubs
USB: remove debugging message for uevent constructions
Andreas Mohr (3):
USB: ftdi_sio: isolate all device IDs to new ftdi_sio_ids.h header
USB: ftdi_sio: sort PID/VID entries in new ftdi_sio_ids.h header
USB: ftdi_sio: add device IDs (several ELV, one Mindstorms NXT)
Andrew Morton (1):
PCI hotplug: check ioremap() return value in ibmphp_ebda.c
Ang Way Chuang (1):
dvb-core: Fix DoS bug in ULE decapsulation code that can be triggered by an invalid Payload Pointer
Anirban Chakraborty (1):
SCSI: qla2xxx: Obtain proper host structure during response-queue processing.
Baruch Siach (1):
serial: imx: fix NULL dereference Oops when pdata == NULL
Ben Hutchings (3):
V4L/DVB: cxusb: Select all required frontend and tuner modules
SCSI: qla1280: Drop host_lock while requesting firmware
sunxvr500: Additional PCI id for sunxvr500 driver
Bob Copeland (1):
ath5k: use correct packet type when transmitting
Brandon Phiilps (1):
x86: Avoid race condition in pci_enable_msix()
Chandru (1):
PCI hotplug: ibmphp: read the length of ebda and map entire ebda region
Choi, David (1):
drivers/net: ks8851_mll ethernet network driver
Christian Lamparter (1):
p54pci: handle dma mapping errors
Clemens Ladisch (1):
ALSA: via82xx: add quirk for D1289 motherboard
Dan Halperin (1):
iwlwifi: set HT flags after channel in rxon
Daniel Mack (1):
ASoC: fix ak4104 register array access
Daniel Sangorrin (1):
USB: serial: ftdi: add CONTEC vendor and product id
Daniel T Chen (3):
ALSA: hda: Use 3stack quirk for Toshiba Satellite L40-10Q
ALSA: hda: Use LPIB for Dell Latitude 131L
ALSA: hda: Use LPIB for a Biostar Microtech board
Daniel Vetter (1):
drm/i915: fix get_core_clock_speed for G33 class desktop chips
Dave Airlie (1):
offb: Add support for framebuffer handoff to offb.
David S. Miller (4):
sparc: Align clone and signal stacks to 16 bytes.
sparc32: Fix page_to_phys().
sparc32: Fix struct stat uid/gid types.
sparc64: Fix sun4u execute bit check in TSB I-TLB load.
Edward Shao (1):
USB: xhci: Fix finding extended capabilities registers
Elina Pasheva (1):
USB: serial: sierra driver indat_callback fix
Eric W. Biederman (3):
net: Fix sysctl restarts...
net-sysfs: Use rtnl_trylock in wireless sysfs methods.
scm: Only support SCM_RIGHTS on unix domain sockets.
Felix Fietkau (3):
ath9k: fix beacon timer restart after a card reset
ath9k: fix rate control fallback rate selection
ath9k: disable RIFS search for AR91xx based chips
Gleb Natapov (4):
KVM: x86 emulator: Add group8 instruction decoding
KVM: x86 emulator: Forbid modifying CS segment register by mov instruction
KVM: x86 emulator: Add group9 instruction decoding
KVM: x86 emulator: Check CPL level during privilege instruction emulation
Greg Kroah-Hartman (4):
Staging: hv: add a pci device table
Staging: hv: match on DMI values to know if we should run.
Staging: mimio: remove the mimio driver
Linux 2.6.32.10
Guennadi Liakhovetski (1):
ARM: 5944/1: scsi: fix timer setup in fas216.c
Haicheng Li (1):
slab: initialize unused alien cache entry as NULL at alloc_alien_cache().
Henrique de Moraes Holschuh (5):
thinkpad-acpi: fix poll thread auto-start
thinkpad-acpi: R52 brightness_mode has been confirmed
thinkpad-acpi: document HKEY event 3006
thinkpad-acpi: make driver events work in NVRAM poll mode
thinkpad-acpi: fix bluetooth/wwan resume
Herbert Xu (2):
inet: Remove bogus IGMPv3 report handling
USB: Move hcd free_dev call into usb_disconnect to fix oops
Ian Campbell (2):
x86, xen: Disable highmem PTE allocation even when CONFIG_HIGHPTE=y x86, mm: Allow highmem user page tables to be disabled at boot time
James Hogan (1):
rtc-coh901331: fix braces in resume code
Jan Dumon (1):
USB: unusual_devs: Add support for multiple Option 3G sticks
Jarek Poplawski (1):
net/via-rhine: Fix scheduling while atomic bugs
Jaroslav Kysela (1):
ALSA: pcm core - fix fifo_size channels interval check
Jean Delvare (5):
V4L/DVB: bttv: Move I2C IR initialization macintosh/therm_adt746x: Fix sysfs attributes lifetime macintosh/hwmon/ams: Fix device removal sequence
hwmon: (tmp421) Fix temperature conversions
hwmon: (tmp421) Restore missing inputs
Jean-François Moine (1):
p54usb: Add the USB ID for Belkin (Accton) FD7050E ver 1010ec
Jerome Glisse (3):
drm/radeon/kms: Forbid creation of framebuffer with no valid GEM object drm/radeon/kms: r600/r700 don't test ib if ib initialization fails drm/radeon: r6xx/r7xx possible security issue, system ram access
Jiri Kosina (1):
HID: remove TENX iBuddy from blacklist
Jiri Slaby (1):
x86, ia32_aout: do not kill argument mapping
Joshua Roys (1):
netlabel: fix export of SELinux categories > 127
Jussi Kivilinna (3):
rndis_wlan: handle NL80211_AUTHTYPE_AUTOMATIC
rndis_wlan: fix buffer overflow in rndis_query_oid
rndis_wlan: disable stall workaround
Justin P. Mattock (1):
x86: Add iMac9,1 to pci_reboot_dmi_table
KAMEZAWA Hiroyuki (1):
memcg: fix oom killing a child process in an other cgroup
Kashyap, Desai (1):
mpt2sas: Delete volume before HBA detach.
Kay Sievers (1):
Driver-Core: devtmpfs - reset inode permissions before unlinking
Larry Finger (1):
b43/b43legacy: Wake queues in wireless_core_start
Lars-Peter Clausen (1):
s3cmci: s3cmci_card_present: Use no_detect to decide whether there is a card detect pin
Laurent Pinchart (1):
V4L/DVB (13148): uvcvideo: Handle V4L2_CTRL_TYPE_BUTTON control type in VIDIOC_QUERYCTRL
Len Brown (2):
ACPI: remove Asus P2B-DS from acpi=ht blacklist
ACPI: fix "acpi=ht" boot option
Luotao Fu (1):
USB: fix I2C API usage in ohci-pnx4008.
Maarten Maathuis (1):
drm/ttm: handle OOM in ttm_tt_swapout
Mark Brown (1):
gpiolib: Actually set output state in wm831x_gpio_direction_output()
Martin Fuzzey (1):
V4L/DVB: Video : pwc : Fix regression in pwc_set_shutter_speed caused by bad constant => sizeof conversion.
Michael Neuling (1):
fs/exec.c: fix initial stack reservation
Mike Frysinger (1):
bfin: fix max timeout calculation
Mikulas Patocka (1):
dm: free dm_io before bio_endio not after
Mitchell Solomon (1):
USB: add new ftdi_sio device ids
Neil Brown (1):
sunrpc: remove unnecessary svc_xprt_put
Oliver Neukum (1):
HID: usbhid: introduce timeout for stuck ctrl/out URBs
Pallipadi, Venkatesh (1):
ACPI: Be in TS_POLLING state during mwait based C-state entry
Paul Menzel (1):
ALSA: hda-intel: Add position_fix quirk for ASUS M2V-MX SE.
Paul Mundt (1):
clocksource: Fix up a registration/IRQ race in the sh drivers.
Pete Zaitcev (1):
USB: fix crash in uhci_scan_schedule
Peter Hutterer (1):
HID: add multi-input quirk for NextWindow Touchscreen.
Radek Liboska (1):
USB: ftdi_sio: new device id for papouch AD4USB
Rafael J. Wysocki (1):
PM / Hibernate: Fix preallocating of memory
Rajiv Andrade (1):
tpm_tis: TPM_STS_DATA_EXPECT workaround
Richard Guenther (1):
V4L/DVB: dvb: l64781.ko broken with gcc 4.5
Robert Hancock (1):
ahci: disable FPDMA auto-activate optimization on NVIDIA AHCI
Robert Richter (5):
oprofile/x86: fix perfctr nmi reservation for mulitplexing
oprofile: remove tracing build dependency oprofile/x86: remove node check in AMD IBS initialization oprofile/x86: use kzalloc() instead of kmalloc() oprofile/x86: fix msr access to reserved counters
Roel Kluin (2):
thinkpad-acpi: wrong thermal attribute_group removed in thermal_exit()
sparc: leds_resource.end assigned to itself in clock_board_probe()
Sebastien Alaiwan (1):
ALSA: USB MIDI support for Access Music VirusTI
Sergei Shtylyov (1):
pata_hpt3x2n: always stretch UltraDMA timing
Shan Wei (1):
ipv6: conntrack: Add member of user to nf_ct_frag6_queue structure
Stanislaw Gruszka (2):
iwlwifi: sanity check before counting number of tfds can be free
airo: fix setting zero length WEP key
Suresh Siddha (1):
sched: Fix SMT scheduler regression in find_busiest_queue()
Takashi Iwai (2):
ALSA: hda - Add a position_fix quirk for MSI Wind U115
ALSA: hda - Add position_fix quirk for HP dv3
Tanaka Akira (1):
USB: SIS USB2VGA DRIVER: support KAIREN's USB VGA adaptor USB20SVGA-MB-PLUS
Tao Ma (1):
ocfs2: Only bug out in direct io write for reflinked extent.
Tejun Heo (2):
idr: fix a critical misallocation bug, take#2
driver-core: fix race condition in get_device_parent()
Theodore Kilgore (1):
V4L/DVB (13991): gspca_mr973010a: Fix cif type 1 cameras not streaming on UHCI controllers
Thomas Gleixner (1):
sched: Don't use possibly stale sched_class
Tim Gardner (2):
netfilter: xt_recent: fix buffer overflow
netfilter: xt_recent: fix false match
Trond Myklebust (2):
SUNRPC: Handle EINVAL error returns from the TCP connect operation
NFS: Fix an allocation-under-spinlock bug
Vaidyanathan Srinivasan (1):
sched: Fix sched_mv_power_savings for !SMT
Wey-Yi Guy (1):
iwlwifi: error checking for number of tfds in queue
Wu Fengguang (2):
vfs: take f_lock on modifying f_mode after open time
readahead: introduce FMODE_RANDOM for POSIX_FADV_RANDOM
Yinghai Lu (1):
x86: Fix SCI on IOAPIC != 0
Zhang Rui (1):
ACPI, i915: blacklist Clevo M5x0N bad_lid state
Zhao Yakui (1):
drm/i915: Use a dmi quirk to skip a broken SDVO TV output.
Zhenyu Wang (1):
drm/i915: disable TV hotplug status check
Zhu Yi (1):
mac80211: quit addba_resp_timer if Tx BA session is torn down
stephen hemminger (1):
sky2: fix transmit DMA map leakage
Documentation/kernel-parameters.txt +7 -0
@@ -2668,6 +2668,13 @@ and is between 256 and 4096 characters. It is defined in the file medium is write-protected). Example: quirks=0419:aaf5:rl,0421:0433:rc + userpte= + [X86] Flags controlling user PTE allocations. + + nohigh = do not allocate PTE pages in + HIGHMEM regardless of setting + of CONFIG_HIGHPTE. + vdso= [X86,SH] vdso=2: enable compat VDSO (default with COMPAT_VDSO) vdso=1: enable VDSO (default)
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 32 -EXTRAVERSION = .9 +EXTRAVERSION = .10 NAME = Man-Eating Seals of Antiquity # *DOCUMENTATION*
arch/Kconfig +0 -2
@@ -6,8 +6,6 @@ config OPROFILE tristate "OProfile system profiling (EXPERIMENTAL)" depends on PROFILING depends on HAVE_OPROFILE - depends on TRACING_SUPPORT - select TRACING select RING_BUFFER select RING_BUFFER_ALLOW_SWAP help
arch/ia64/include/asm/acpi.h +1 -0
@@ -94,6 +94,7 @@ ia64_acpi_release_global_lock (unsigned int *lock)#define acpi_noirq 0/* ACPI always enabled on IA64 */ #define acpi_pci_disabled 0/* ACPI PCI always enabled on IA64 */ #define acpi_strict 1/* no ACPI spec workarounds on IA64 */ +#define acpi_ht 0/* no HT-only mode on IA64 */ #endif #define acpi_processor_cstate_check (x) (x)/* no idle limits on IA64 :) */ static inline void disable_acpi (void ) { }
arch/sparc/include/asm/io_32.h +1 -1
@@ -8,7 +8,7 @@#include <asm/page.h> /* IO address mapping routines need this */ #include <asm/system.h> -#define page_to_phys (page) (((page) - mem_map) << PAGE_SHIFT) +#define page_to_phys (page) (page_to_pfn(page) << PAGE_SHIFT)static inline u32 flip_dword (u32 l) {
arch/sparc/include/asm/page_32.h +1 -1
@@ -143,7 +143,7 @@ extern unsigned long pfn_base;#define phys_to_virt __va#define ARCH_PFN_OFFSET (pfn_base) -#define virt_to_page (kaddr) (mem_map + ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT))) +#define virt_to_page (kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)#define pfn_valid (pfn) (((pfn) >= (pfn_base)) && (((pfn)-(pfn_base)) < max_mapnr))#define virt_addr_valid (kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
arch/sparc/include/asm/stat.h +2 -2
@@ -53,8 +53,8 @@ struct stat {ino_t st_ino;mode_t st_mode;short st_nlink; -uid_t st_uid; -gid_t st_gid; +uid16_t st_uid; +gid16_t st_gid;unsigned short st_rdev;off_t st_size;time_t st_atime;
arch/sparc/kernel/central.c +2 -2
@@ -99,7 +99,7 @@ static int __devinit clock_board_probe(struct of_device *op, p->leds_resource.start = (unsigned long ) (p->clock_regs +CLOCK_CTRL ); - p->leds_resource.end = p->leds_resource.end; + p->leds_resource.end = p->leds_resource.start; p->leds_resource.name ="leds" ; p->leds_pdev.name ="sunfire-clockboard-leds" ;
@@ -194,7 +194,7 @@ static int __devinit fhc_probe(struct of_device *op,if (!p->central) { p->leds_resource.start = (unsigned long ) (p->pregs +FHC_PREGS_CTRL ); - p->leds_resource.end = p->leds_resource.end; + p->leds_resource.end = p->leds_resource.start; p->leds_resource.name ="leds" ; p->leds_pdev.name ="sunfire-fhc-leds" ;
arch/sparc/kernel/process_32.c +1 -1
@@ -526,7 +526,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,* Set some valid stack frames to give to the child. */ childstack = (struct sparc_stackf __user *) - (sp & ~0x7UL ); + (sp & ~0xfUL ); parentstack = (struct sparc_stackf __user *) regs->u_regs[UREG_FP ];
arch/sparc/kernel/process_64.c +4 -4
@@ -398,11 +398,11 @@ static unsigned long clone_stackframe(unsigned long csp, unsigned long psp) }else __get_user (fp, &(((struct reg_window32 __user *)psp)->ins[6 ])); -/* Now 8-byte align the stack as this is mandatory in the -* Sparc ABI due to how register windows work. This hides -* the restriction from thread libraries etc. -DaveM +/* Now align the stack as this is mandatory in the Sparc ABI +* due to how register windows work. This hides the +* restriction from thread libraries etc. */ - csp &= ~7UL ; + csp &= ~15UL ; distance = fp - psp; rval = (csp - distance);
arch/sparc/kernel/signal32.c +6 -4
@@ -120,8 +120,8 @@ struct rt_signal_frame32 { };/* Align macros */ -#define SF_ALIGNEDSZ (((sizeof(struct signal_frame32) + 7) & (~7))) -#define RT_ALIGNEDSZ (((sizeof(struct rt_signal_frame32) + 7) & (~7))) +#define SF_ALIGNEDSZ (((sizeof(struct signal_frame32) + 15) & (~15))) +#define RT_ALIGNEDSZ (((sizeof(struct rt_signal_frame32) + 15) & (~15)))int copy_siginfo_to_user32 (compat_siginfo_t __user *to,siginfo_t *from) {
@@ -420,15 +420,17 @@ static void __user *get_sigframe(struct sigaction *sa, struct pt_regs *regs, uns sp = current->sas_ss_sp + current->sas_ss_size; } + sp -= framesize; +/* Always align the stack frame. This handles two cases. First, * sigaltstack need not be mindful of platform specific stack * alignment. Second, if we took this signal because the stack * is not aligned properly, we'd like to take the signal cleanly * and report that. */ - sp &= ~7UL ; + sp &= ~15UL ; -return (void __user *)(sp - framesize); +return (void __user *) sp; }static int save_fpu_state32 (struct pt_regs *regs,__siginfo_fpu_t __user *fpu)
arch/sparc/kernel/signal_32.c +4 -2
@@ -267,15 +267,17 @@ static inline void __user *get_sigframe(struct sigaction *sa, struct pt_regs *re sp = current->sas_ss_sp + current->sas_ss_size; } + sp -= framesize; +/* Always align the stack frame. This handles two cases. First, * sigaltstack need not be mindful of platform specific stack * alignment. Second, if we took this signal because the stack * is not aligned properly, we'd like to take the signal cleanly * and report that. */ - sp &= ~7UL ; + sp &= ~15UL ; -return (void __user *)(sp - framesize); +return (void __user *) sp; } static inline int
arch/sparc/kernel/signal_64.c +5 -3
@@ -353,7 +353,7 @@ segv:/* Checks if the fp is valid */ static int invalid_frame_pointer (void __user *fp,int fplen) { -if (((unsigned long ) fp) &7 ) +if (((unsigned long ) fp) &15 )return 1 ;return 0 ; }
@@ -396,15 +396,17 @@ static inline void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs * sp = current->sas_ss_sp + current->sas_ss_size; } + sp -= framesize; +/* Always align the stack frame. This handles two cases. First, * sigaltstack need not be mindful of platform specific stack * alignment. Second, if we took this signal because the stack * is not aligned properly, we'd like to take the signal cleanly * and report that. */ - sp &= ~7UL ; + sp &= ~15UL ; -return (void __user *)(sp - framesize); +return (void __user *) sp; } static inline void
arch/sparc/kernel/tsb.S +4 -2
@@ -191,10 +191,12 @@ tsb_dtlb_load: tsb_itlb_load: /* Executable bit must be set. */ -661: andcc %g5, _PAGE_EXEC_4U, %g0 - .section .sun4v_1insn_patch, "ax" +661: sethi %hi(_PAGE_EXEC_4U), %g4 + andcc %g5, %g4, %g0 + .section .sun4v_2insn_patch, "ax" .word 661b andcc %g5, _PAGE_EXEC_4V, %g0 + nop .previous be,pn %xcc, tsb_do_fault
arch/x86/ia32/ia32_aout.c +0 -1
@@ -327,7 +327,6 @@ static int load_aout_binary(struct linux_binprm *bprm, struct pt_regs *regs) current->mm->free_area_cache =TASK_UNMAPPED_BASE ; current->mm->cached_hole_size =0 ; - current->mm->mmap =NULL ;install_exec_creds (bprm); current->flags &= ~PF_FORKNOEXEC ;
arch/x86/include/asm/io_apic.h +1 -0
@@ -160,6 +160,7 @@ extern int io_apic_get_redir_entries(int ioapic);struct io_apic_irq_attr ;extern int io_apic_set_pci_routing (struct device *dev,int irq,struct io_apic_irq_attr *irq_attr); +void setup_IO_APIC_irq_extra (u32 gsi);extern int (*ioapic_renumber_irq)(int ioapic,int irq);extern void ioapic_init_mappings (void );extern void ioapic_insert_resources (void );
arch/x86/include/asm/pgalloc.h +5 -0
@@ -23,6 +23,11 @@ static inline void paravirt_release_pud(unsigned long pfn) {}#endif /* +* Flags to use when allocating a user page table page. +*/ +extern gfp_t __userpte_alloc_gfp; + +/* * Allocate and free page tables. */ extern pgd_t *pgd_alloc (struct mm_struct *);
arch/x86/kernel/acpi/boot.c +8 -9
@@ -446,6 +446,12 @@ void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger)int acpi_gsi_to_irq (u32 gsi,unsigned int *irq) { *irq = gsi; + +#ifdef CONFIG_X86_IO_APIC +if (acpi_irq_model ==ACPI_IRQ_MODEL_IOAPIC ) +setup_IO_APIC_irq_extra (gsi); +#endif +return 0 ; }
@@ -473,7 +479,8 @@ int acpi_register_gsi(struct device *dev, u32 gsi, int trigger, int polarity) plat_gsi = mp_register_gsi(dev, gsi, trigger, polarity); }#endif -acpi_gsi_to_irq (plat_gsi, &irq); + irq = plat_gsi; +return irq; }
@@ -1348,14 +1355,6 @@ static struct dmi_system_id __initdata acpi_dmi_table[] = { }, { .callback = force_acpi_ht, - .ident = "ASUS P2B-DS", - .matches = { -DMI_MATCH (DMI_BOARD_VENDOR ,"ASUSTeK Computer INC." ), - DMI_MATCH(DMI_BOARD_NAME, "P2B-DS"), - }, - }, - { - .callback = force_acpi_ht, .ident = "ASUS CUR-DLS", .matches = { DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."),
arch/x86/kernel/apic/io_apic.c +55 -13
90 lines not on this page · raw message
arch/x86/kernel/reboot.c +8 -0
@@ -461,6 +461,14 @@ static struct dmi_system_id __initdata pci_reboot_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Macmini3,1"), }, }, + { /* Handle problems with rebooting on the iMac9,1. */ + .callback = set_pci_reboot, + .ident = "Apple iMac9,1", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "iMac9,1"), + }, + }, { } };
arch/x86/kvm/emulate.c +38 -17
124 lines not on this page · raw message
arch/x86/mm/pgtable.c +26 -5
@@ -6,6 +6,14 @@#define PGALLOC_GFP GFP_KERNEL | __GFP_NOTRACK | __GFP_REPEAT | __GFP_ZERO +#ifdef CONFIG_HIGHPTE +#define PGALLOC_USER_GFP __GFP_HIGHMEM +#else +#define PGALLOC_USER_GFP 0 +#endif + +gfp_t __userpte_alloc_gfp =PGALLOC_GFP |PGALLOC_USER_GFP ; +pte_t *pte_alloc_one_kernel (struct mm_struct *mm,unsigned long address) {return (pte_t *)__get_free_page (PGALLOC_GFP );
@@ -15,16 +23,29 @@ pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) {struct page *pte; -#ifdef CONFIG_HIGHPTE - pte =alloc_pages (PGALLOC_GFP | __GFP_HIGHMEM,0 ); -#else - pte =alloc_pages (PGALLOC_GFP ,0 ); -#endif + pte =alloc_pages (__userpte_alloc_gfp,0 );if (pte)pgtable_page_ctor (pte);return pte; } +static int __init setup_userpte (char *arg) +{ +if (!arg) +return -EINVAL ; + +/* +* "userpte=nohigh" disables allocation of user pagetables in +* high memory. +*/ +if (strcmp (arg,"nohigh" ) ==0 ) + __userpte_alloc_gfp &= ~__GFP_HIGHMEM; +else +return -EINVAL ; +return 0 ; +} +early_param ("userpte" , setup_userpte); +void ___pte_free_tlb (struct mmu_gather *tlb,struct page *pte) {pgtable_page_dtor (pte);
arch/x86/oprofile/nmi_int.c +9 -8
@@ -159,7 +159,7 @@ static int nmi_setup_mux(void)for_each_possible_cpu (i) {per_cpu (cpu_msrs, i).multiplex = -kmalloc (multiplex_size,GFP_KERNEL ); +kzalloc (multiplex_size,GFP_KERNEL );if (!per_cpu (cpu_msrs, i).multiplex)return 0 ; }
@@ -179,7 +179,6 @@ static void nmi_cpu_setup_mux(int cpu, struct op_msrs const * const msrs)if (counter_config[i].enabled) { multiplex[i].saved = -(u64 )counter_config[i].count; }else { - multiplex[i].addr =0 ; multiplex[i].saved =0 ; } }
@@ -189,25 +188,27 @@ static void nmi_cpu_setup_mux(int cpu, struct op_msrs const * const msrs)static void nmi_cpu_save_mpx_registers (struct op_msrs *msrs) { +struct op_msr *counters = msrs->counters;struct op_msr *multiplex = msrs->multiplex;int i;for (i =0 ; i < model->num_counters; ++i) {int virt =op_x86_phys_to_virt (i); -if (multiplex[virt].addr) -rdmsrl (multiplex[virt].addr, multiplex[virt].saved); +if (counters[i].addr) +rdmsrl (counters[i].addr, multiplex[virt].saved); } }static void nmi_cpu_restore_mpx_registers (struct op_msrs *msrs) { +struct op_msr *counters = msrs->counters;struct op_msr *multiplex = msrs->multiplex;int i;for (i =0 ; i < model->num_counters; ++i) {int virt =op_x86_phys_to_virt (i); -if (multiplex[virt].addr) -wrmsrl (multiplex[virt].addr, multiplex[virt].saved); +if (counters[i].addr) +wrmsrl (counters[i].addr, multiplex[virt].saved); } }
@@ -303,11 +304,11 @@ static int allocate_msrs(void)int i;for_each_possible_cpu (i) { -per_cpu (cpu_msrs, i).counters =kmalloc (counters_size, +per_cpu (cpu_msrs, i).counters =kzalloc (counters_size,GFP_KERNEL );if (!per_cpu (cpu_msrs, i).counters)return 0 ; -per_cpu (cpu_msrs, i).controls =kmalloc (controls_size, +per_cpu (cpu_msrs, i).controls =kzalloc (controls_size,GFP_KERNEL );if (!per_cpu (cpu_msrs, i).controls)return 0 ;
arch/x86/oprofile/op_model_amd.c +4 -38
90 lines not on this page · raw message
arch/x86/oprofile/op_model_p4.c +0 -6
@@ -394,12 +394,6 @@ static void p4_fill_in_addresses(struct op_msrs * const msrs)setup_num_counters (); stag =get_stagger (); -/* initialize some registers */ -for (i =0 ; i < num_counters; ++i) - msrs->counters[i].addr =0 ; -for (i =0 ; i < num_controls; ++i) - msrs->controls[i].addr =0 ; -/* the counter & cccr registers we pay attention to */ for (i =0 ; i < num_counters; ++i) { addr = p4_counters[VIRT_CTR (stag, i)].counter_address;
arch/x86/oprofile/op_model_ppro.c +1 -5
@@ -37,15 +37,11 @@ static void ppro_fill_in_addresses(struct op_msrs * const msrs)for (i =0 ; i < num_counters; i++) {if (reserve_perfctr_nmi (MSR_P6_PERFCTR0 + i)) msrs->counters[i].addr =MSR_P6_PERFCTR0 + i; -else - msrs->counters[i].addr =0 ; }for (i =0 ; i < num_counters; i++) {if (reserve_evntsel_nmi (MSR_P6_EVNTSEL0 + i)) msrs->controls[i].addr =MSR_P6_EVNTSEL0 + i; -else - msrs->controls[i].addr =0 ; } }
@@ -57,7 +53,7 @@ static void ppro_setup_ctrs(struct op_x86_model_spec const *model,int i;if (!reset_value) { - reset_value =kmalloc (sizeof (reset_value[0 ]) * num_counters, + reset_value =kzalloc (sizeof (reset_value[0 ]) * num_counters,GFP_ATOMIC );if (!reset_value)return ;
arch/x86/xen/enlighten.c +7 -0
@@ -48,6 +48,7 @@#include <asm/traps.h> #include <asm/setup.h> #include <asm/desc.h> +#include <asm/pgalloc.h> #include <asm/pgtable.h> #include <asm/tlbflush.h> #include <asm/reboot.h>
@@ -1092,6 +1093,12 @@ asmlinkage void __init xen_start_kernel(void) __supported_pte_mask |= _PAGE_IOMAP; +/* +* Prevent page tables from being allocated in highmem, even +* if CONFIG_HIGHPTE is enabled. +*/ + __userpte_alloc_gfp &= ~__GFP_HIGHMEM; +#ifdef CONFIG_X86_64 /* Work out if we support NX */ check_efer ();
arch/x86/xen/mmu.c +6 -5
@@ -1432,14 +1432,15 @@ static void *xen_kmap_atomic_pte(struct page *page, enum km_type type) {pgprot_t prot =PAGE_KERNEL ; +/* +* We disable highmem allocations for page tables so we should never +* see any calls to kmap_atomic_pte on a highmem page. +*/ +BUG_ON (PageHighMem (page)); +if (PagePinned (page)) prot =PAGE_KERNEL_RO ; -if (0 &&PageHighMem (page)) -printk ("mapping highpte %lx type %d prot %s\n" , -page_to_pfn (page), type, - (unsigned long )pgprot_val (prot) & _PAGE_RW ?"WRITE" :"READ" ); -return kmap_atomic_prot (page, type, prot); }#endif
drivers/acpi/processor_idle.c +16 -12
@@ -888,12 +888,14 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev,return (acpi_idle_enter_c1 (dev, state));local_irq_disable (); -current_thread_info ()->status &= ~TS_POLLING ; -/* -* TS_POLLING-cleared state must be visible before we test -* NEED_RESCHED: -*/ -smp_mb (); +if (cx->entry_method !=ACPI_CSTATE_FFH ) { +current_thread_info ()->status &= ~TS_POLLING ; +/* +* TS_POLLING-cleared state must be visible before we test +* NEED_RESCHED: +*/ +smp_mb (); + }if (unlikely (need_resched ())) {current_thread_info ()->status |=TS_POLLING ;
@@ -973,12 +975,14 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev, }local_irq_disable (); -current_thread_info ()->status &= ~TS_POLLING ; -/* -* TS_POLLING-cleared state must be visible before we test -* NEED_RESCHED: -*/ -smp_mb (); +if (cx->entry_method !=ACPI_CSTATE_FFH ) { +current_thread_info ()->status &= ~TS_POLLING ; +/* +* TS_POLLING-cleared state must be visible before we test +* NEED_RESCHED: +*/ +smp_mb (); + }if (unlikely (need_resched ())) {current_thread_info ()->status |=TS_POLLING ;
drivers/acpi/tables.c +2 -2
@@ -213,7 +213,7 @@ acpi_table_parse_entries(char *id,unsigned long table_end;acpi_size tbl_size; -if (acpi_disabled) +if (acpi_disabled && !acpi_ht)return -ENODEV ;if (!handler)
@@ -280,7 +280,7 @@ int __init acpi_table_parse(char *id, acpi_table_handler handler)struct acpi_table_header *table =NULL ;acpi_size tbl_size; -if (acpi_disabled) +if (acpi_disabled && !acpi_ht)return -ENODEV ;if (!handler)
drivers/ata/ahci.c +10 -2
@@ -3074,8 +3074,16 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)ahci_save_initial_config (pdev, hpriv);/* prepare host */ -if (hpriv->cap &HOST_CAP_NCQ ) - pi.flags |=ATA_FLAG_NCQ |ATA_FLAG_FPDMA_AA ; +if (hpriv->cap &HOST_CAP_NCQ ) { + pi.flags |=ATA_FLAG_NCQ ; +/* Auto-activate optimization is supposed to be supported on +all AHCI controllers indicating NCQ support, but it seems +to be broken at least on some NVIDIA MCP79 chipsets. +Until we get info on which NVIDIA chipsets don't have this +issue, if any, disable AA on all NVIDIA AHCIs. */ +if (pdev->vendor !=PCI_VENDOR_ID_NVIDIA ) + pi.flags |=ATA_FLAG_FPDMA_AA ; + }if (hpriv->cap &HOST_CAP_PMP ) pi.flags |=ATA_FLAG_PMP ;
drivers/ata/pata_hpt3x2n.c +10 -10
@@ -25,7 +25,7 @@#include <linux/libata.h> #define DRV_NAME "pata_hpt3x2n" -#define DRV_VERSION "0.3.8" +#define DRV_VERSION "0.3.9"enum {HPT_PCI_FAST = (1 <<31 ),
@@ -547,16 +547,16 @@ static int hpt3x2n_init_one(struct pci_dev *dev, const struct pci_device_id *id) pci_mhz);/* Set our private data up. We only need a few flags so we use it directly */ -if (pci_mhz >60 ) { +if (pci_mhz >60 ) hpriv = (void *)(PCI66 |USE_DPLL ); -/* -* On HPT371N, if ATA clock is 66 MHz we must set bit 2 in -* the MISC. register to stretch the UltraDMA Tss timing. -* NOTE: This register is only writeable via I/O space. -*/ -if (dev->device ==PCI_DEVICE_ID_TTI_HPT371 ) -outb (inb (iobase +0x9c ) |0x04 , iobase +0x9c ); - } + +/* +* On HPT371N, if ATA clock is 66 MHz we must set bit 2 in +* the MISC. register to stretch the UltraDMA Tss timing. +* NOTE: This register is only writeable via I/O space. +*/ +if (dev->device ==PCI_DEVICE_ID_TTI_HPT371 ) +outb (inb (iobase +0x9c ) |0x04 , iobase +0x9c );/* Now kick off ATA set up */ return ata_pci_sff_init_one (dev, ppi, &hpt3x2n_sht, hpriv);
drivers/base/core.c +11 -2
@@ -603,6 +603,7 @@ static struct kobject *get_device_parent(struct device *dev,int retval;if (dev->class) { +static DEFINE_MUTEX (gdp_mutex);struct kobject *kobj =NULL ;struct kobject *parent_kobj;struct kobject *k;
@@ -619,6 +620,8 @@ static struct kobject *get_device_parent(struct device *dev,else parent_kobj = &parent->kobj; +mutex_lock (&gdp_mutex); +/* find our class-directory at the parent and reference it */ spin_lock (&dev->class->p->class_dirs.list_lock);list_for_each_entry (k, &dev->class->p->class_dirs.list, entry)
@@ -627,20 +630,26 @@ static struct kobject *get_device_parent(struct device *dev,break ; }spin_unlock (&dev->class->p->class_dirs.list_lock); -if (kobj) +if (kobj) { +mutex_unlock (&gdp_mutex);return kobj; + }/* or create a new class-directory at the parent device */ k =kobject_create (); -if (!k) +if (!k) { +mutex_unlock (&gdp_mutex);return NULL ; + } k->kset = &dev->class->p->class_dirs; retval =kobject_add (k, parent_kobj,"%s" , dev->class->name);if (retval <0 ) { +mutex_unlock (&gdp_mutex);kobject_put (k);return NULL ; }/* do not emit an uevent for this simple "glue" directory */ +mutex_unlock (&gdp_mutex);return k; }
drivers/base/devtmpfs.c +13 -0
@@ -295,6 +295,19 @@ int devtmpfs_delete_node(struct device *dev)if (dentry->d_inode) { err =vfs_getattr (nd.path.mnt, dentry, &stat);if (!err &&dev_mynode (dev, dentry->d_inode, &stat)) { +struct iattr newattrs; +/* +* before unlinking this node, reset permissions +* of possible references like hardlinks +*/ + newattrs.ia_uid =0 ; + newattrs.ia_gid =0 ; + newattrs.ia_mode = stat.mode & ~0777 ; + newattrs.ia_valid = +ATTR_UID |ATTR_GID |ATTR_MODE ; +mutex_lock (&dentry->d_inode->i_mutex); +notify_change (dentry, &newattrs); +mutex_unlock (&dentry->d_inode->i_mutex); err =vfs_unlink (nd.path.dentry->d_inode, dentry);if (!err || err == -ENOENT )
drivers/char/tpm/tpm_tis.c +9 -1
@@ -257,6 +257,10 @@ out:return size; } +static int itpm; +module_param (itpm, bool,0444 ); +MODULE_PARM_DESC (itpm,"Force iTPM workarounds (found on some Lenovo laptops)" ); +/* * If interrupts are used (signaled by an irq set in the vendor structure) * tpm.c can skip polling for the data to be available as the interrupt is
@@ -293,7 +297,7 @@ static int tpm_tis_send(struct tpm_chip *chip, u8 *buf, size_t len)wait_for_stat (chip,TPM_STS_VALID , chip->vendor.timeout_c, &chip->vendor.int_queue); status =tpm_tis_status (chip); -if ((status &TPM_STS_DATA_EXPECT ) ==0 ) { +if (!itpm && (status &TPM_STS_DATA_EXPECT ) ==0 ) { rc = -EIO ; goto out_err; }
@@ -467,6 +471,10 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,"1.2 TPM (device-id 0x%X, rev-id %d)\n" , vendor >> 16, ioread8(chip->vendor.iobase + TPM_RID(0))); +if (itpm) +dev_info (dev,"Intel iTPM workaround enabled\n" ); + +/* Figure out the capabilities */ intfcaps = ioread32(chip->vendor.iobase +
drivers/char/tty_ldisc.c +30 -20
83 lines not on this page · raw message
drivers/clocksource/sh_cmt.c +19 -13
@@ -603,18 +603,13 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) p->irqaction.handler = sh_cmt_interrupt; p->irqaction.dev_id = p; p->irqaction.flags =IRQF_DISABLED |IRQF_TIMER |IRQF_IRQPOLL ; - ret =setup_irq (irq, &p->irqaction); -if (ret) { -pr_err ("sh_cmt: failed to request irq %d\n" , irq); - goto err1; - }/* get hold of clock */ p->clk =clk_get (&p->pdev->dev, cfg->clk);if (IS_ERR (p->clk)) {pr_err ("sh_cmt: cannot get clock \"%s\"\n" , cfg->clk); ret =PTR_ERR (p->clk); - goto err2; + goto err1; }if (resource_size (res) ==6 ) {
@@ -627,14 +622,25 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) p->clear_bits = ~0xc000 ; } -return sh_cmt_register (p, cfg->name, - cfg->clockevent_rating, - cfg->clocksource_rating); - err2: -remove_irq (irq, &p->irqaction); - err1: + ret =sh_cmt_register (p, cfg->name, + cfg->clockevent_rating, + cfg->clocksource_rating); +if (ret) { +pr_err ("sh_cmt: registration failed\n" ); + goto err1; + } + + ret =setup_irq (irq, &p->irqaction); +if (ret) { +pr_err ("sh_cmt: failed to request irq %d\n" , irq); + goto err1; + } + +return 0 ; + +err1:iounmap (p->mapbase); - err0: +err0:return ret; }
drivers/clocksource/sh_mtu2.c +3 -3
@@ -221,15 +221,15 @@ static void sh_mtu2_register_clockevent(struct sh_mtu2_priv *p, ced->cpumask =cpumask_of (0 ); ced->set_mode = sh_mtu2_clock_event_mode; +pr_info ("sh_mtu2: %s used for clock events\n" , ced->name); +clockevents_register_device (ced); + ret =setup_irq (p->irqaction.irq, &p->irqaction);if (ret) {pr_err ("sh_mtu2: failed to request irq %d\n" , p->irqaction.irq);return ; } - -pr_info ("sh_mtu2: %s used for clock events\n" , ced->name); -clockevents_register_device (ced); } static int sh_mtu2_register(struct sh_mtu2_priv *p, char *name,
drivers/clocksource/sh_tmu.c +3 -3
@@ -323,15 +323,15 @@ static void sh_tmu_register_clockevent(struct sh_tmu_priv *p, ced->set_next_event = sh_tmu_clock_event_next; ced->set_mode = sh_tmu_clock_event_mode; +pr_info ("sh_tmu: %s used for clock events\n" , ced->name); +clockevents_register_device (ced); + ret =setup_irq (p->irqaction.irq, &p->irqaction);if (ret) {pr_err ("sh_tmu: failed to request irq %d\n" , p->irqaction.irq);return ; } - -pr_info ("sh_tmu: %s used for clock events\n" , ced->name); -clockevents_register_device (ced); } static int sh_tmu_register(struct sh_tmu_priv *p, char *name,
drivers/gpio/wm831x-gpio.c +15 -7
@@ -61,23 +61,31 @@ static int wm831x_gpio_get(struct gpio_chip *chip, unsigned offset)return 0 ; } -static int wm831x_gpio_direction_out (struct gpio_chip *chip, -unsigned offset,int value) +static void wm831x_gpio_set (struct gpio_chip *chip,unsigned offset,int value) {struct wm831x_gpio *wm831x_gpio =to_wm831x_gpio (chip);struct wm831x *wm831x = wm831x_gpio->wm831x; -return wm831x_set_bits (wm831x,WM831X_GPIO1_CONTROL + offset, -WM831X_GPN_DIR |WM831X_GPN_TRI ,0 ); +wm831x_set_bits (wm831x,WM831X_GPIO_LEVEL ,1 << offset, + value << offset); } -static void wm831x_gpio_set (struct gpio_chip *chip,unsigned offset,int value) +static int wm831x_gpio_direction_out (struct gpio_chip *chip, +unsigned offset,int value) {struct wm831x_gpio *wm831x_gpio =to_wm831x_gpio (chip);struct wm831x *wm831x = wm831x_gpio->wm831x; +int ret; -wm831x_set_bits (wm831x,WM831X_GPIO_LEVEL ,1 << offset, - value << offset); + ret =wm831x_set_bits (wm831x,WM831X_GPIO1_CONTROL + offset, +WM831X_GPN_DIR |WM831X_GPN_TRI ,0 ); +if (ret <0 ) +return ret; + +/* Can only set GPIO state once it's in output mode */ +wm831x_gpio_set (chip, offset, value); + +return 0 ; }#ifdef CONFIG_DEBUG_FS
drivers/gpu/drm/i915/intel_display.c +1 -1
@@ -4322,7 +4322,7 @@ static void intel_init_display(struct drm_device *dev) }/* Returns the core display clock speed */ -if (IS_I945G (dev)) +if (IS_I945G (dev) || (IS_G33 (dev) && !IS_IGDGM (dev))) dev_priv->display.get_display_clock_speed = i945_get_display_clock_speed;else if (IS_I915G (dev))
drivers/gpu/drm/i915/intel_lvds.c +7 -0
@@ -629,6 +629,13 @@ static const struct dmi_system_id bad_lid_status[] = { DMI_MATCH(DMI_PRODUCT_NAME, "PC-81005"), }, }, + { + .ident = "Clevo M5x0N", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "CLEVO Co."), + DMI_MATCH(DMI_BOARD_NAME, "M5x0N"), + }, + }, { } };
drivers/gpu/drm/i915/intel_sdvo.c +22 -1
@@ -35,6 +35,7 @@#include "i915_drm.h" #include "i915_drv.h" #include "intel_sdvo_regs.h" +#include <linux/dmi.h> #undef SDVO_DEBUG
@@ -2289,6 +2290,25 @@ intel_sdvo_get_slave_addr(struct drm_device *dev, int output_device)return 0x72 ; } +static int intel_sdvo_bad_tv_callback (const struct dmi_system_id *id) +{ +DRM_DEBUG_KMS ("Ignoring bad SDVO TV connector for %s\n" , id->ident); +return 1 ; +} + +static struct dmi_system_id intel_sdvo_bad_tv[] = { + { + .callback = intel_sdvo_bad_tv_callback, + .ident ="IntelG45/ICH10R/DME1737" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"IBM CORPORATION" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"4800784" ), + }, + }, + + { }/* terminating entry */ +}; +static bool intel_sdvo_output_setup (struct intel_output *intel_output,uint16_t flags) {
@@ -2329,7 +2349,8 @@ intel_sdvo_output_setup(struct intel_output *intel_output, uint16_t flags) (1 <<INTEL_SDVO_NON_TV_CLONE_BIT ) | (1 <<INTEL_ANALOG_CLONE_BIT ); } - }else if (flags &SDVO_OUTPUT_SVID0 ) { + }else if ((flags &SDVO_OUTPUT_SVID0 ) && + !dmi_check_system (intel_sdvo_bad_tv)) { sdvo_priv->controlled_output =SDVO_OUTPUT_SVID0 ; encoder->encoder_type =DRM_MODE_ENCODER_TVDAC ;
drivers/gpu/drm/i915/intel_tv.c +0 -2
@@ -1801,8 +1801,6 @@ intel_tv_init(struct drm_device *dev)drm_connector_attach_property (connector, dev->mode_config.tv_bottom_margin_property, tv_priv->margin[TV_MARGIN_BOTTOM ]); - - dev_priv->hotplug_supported_mask |=TV_HOTPLUG_INT_STATUS ; out:drm_sysfs_connector_add (connector); }
drivers/gpu/drm/radeon/r600.c +7 -6
@@ -1686,13 +1686,14 @@ int r600_init(struct radeon_device *rdev)if (rdev->accel_working) { r =radeon_ib_pool_init (rdev);if (r) { -DRM_ERROR ("radeon: failled initializing IB pool (%d).\n" , r); - rdev->accel_working = false; - } - r =r600_ib_test (rdev); -if (r) { -DRM_ERROR ("radeon: failled testing IB (%d).\n" , r); +dev_err (rdev->dev,"IB initialization failed (%d).\n" , r); rdev->accel_working = false; + }else { + r =r600_ib_test (rdev); +if (r) { +dev_err (rdev->dev,"IB test failed (%d).\n" , r); + rdev->accel_working = false; + } } }return 0 ;
drivers/gpu/drm/radeon/r600_cs.c +83 -0
130 lines not on this page · raw message
drivers/gpu/drm/radeon/r600d.h +26 -0
@@ -674,4 +674,30 @@#define S_000E60_SOFT_RESET_TSC (x) (((x) & 1) << 16)#define S_000E60_SOFT_RESET_VMC (x) (((x) & 1) << 17) +#define R_005480_HDP_MEM_COHERENCY_FLUSH_CNTL 0x5480 + +#define R_0280E0_CB_COLOR0_FRAG 0x0280E0 +#define S_0280E0_BASE_256B (x) (((x) & 0xFFFFFFFF) << 0) +#define G_0280E0_BASE_256B (x) (((x) >> 0) & 0xFFFFFFFF) +#define C_0280E0_BASE_256B 0x00000000 +#define R_0280E4_CB_COLOR1_FRAG 0x0280E4 +#define R_0280E8_CB_COLOR2_FRAG 0x0280E8 +#define R_0280EC_CB_COLOR3_FRAG 0x0280EC +#define R_0280F0_CB_COLOR4_FRAG 0x0280F0 +#define R_0280F4_CB_COLOR5_FRAG 0x0280F4 +#define R_0280F8_CB_COLOR6_FRAG 0x0280F8 +#define R_0280FC_CB_COLOR7_FRAG 0x0280FC +#define R_0280C0_CB_COLOR0_TILE 0x0280C0 +#define S_0280C0_BASE_256B (x) (((x) & 0xFFFFFFFF) << 0) +#define G_0280C0_BASE_256B (x) (((x) >> 0) & 0xFFFFFFFF) +#define C_0280C0_BASE_256B 0x00000000 +#define R_0280C4_CB_COLOR1_TILE 0x0280C4 +#define R_0280C8_CB_COLOR2_TILE 0x0280C8 +#define R_0280CC_CB_COLOR3_TILE 0x0280CC +#define R_0280D0_CB_COLOR4_TILE 0x0280D0 +#define R_0280D4_CB_COLOR5_TILE 0x0280D4 +#define R_0280D8_CB_COLOR6_TILE 0x0280D8 +#define R_0280DC_CB_COLOR7_TILE 0x0280DC + +#endif
drivers/gpu/drm/radeon/radeon.h +1 -0
@@ -448,6 +448,7 @@ struct radeon_cs_chunk { };struct radeon_cs_parser { +struct device *dev;struct radeon_device *rdev;struct drm_file *filp;/* chunks */
drivers/gpu/drm/radeon/radeon_cs.c +1 -0
@@ -230,6 +230,7 @@ int radeon_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)memset (&parser,0 ,sizeof (struct radeon_cs_parser )); parser.filp = filp; parser.rdev = rdev; + parser.dev = rdev->dev; r =radeon_cs_parser_init (&parser, data);if (r) {DRM_ERROR ("Failed to initialize parser !\n" );
drivers/gpu/drm/radeon/radeon_display.c +5 -1
@@ -599,7 +599,11 @@ radeon_user_framebuffer_create(struct drm_device *dev,struct drm_gem_object *obj; obj =drm_gem_object_lookup (dev, file_priv, mode_cmd->handle); - +if (obj ==NULL ) { +dev_err (&dev->pdev->dev,"No GEM object associated to handle 0x%08X, " +"can't create framebuffer\n" , mode_cmd->handle); +return NULL ; + }return radeon_framebuffer_create (dev, mode_cmd, obj); }
drivers/gpu/drm/radeon/rv770.c +7 -6
@@ -1034,13 +1034,14 @@ int rv770_init(struct radeon_device *rdev)if (rdev->accel_working) { r =radeon_ib_pool_init (rdev);if (r) { -DRM_ERROR ("radeon: failled initializing IB pool (%d).\n" , r); - rdev->accel_working = false; - } - r =r600_ib_test (rdev); -if (r) { -DRM_ERROR ("radeon: failled testing IB (%d).\n" , r); +dev_err (rdev->dev,"IB initialization failed (%d).\n" , r); rdev->accel_working = false; + }else { + r =r600_ib_test (rdev); +if (r) { +dev_err (rdev->dev,"IB test failed (%d).\n" , r); + rdev->accel_working = false; + } } }return 0 ;
drivers/gpu/drm/ttm/ttm_tt.c +11 -7
@@ -466,7 +466,7 @@ static int ttm_tt_swapin(struct ttm_tt *ttm)void *from_virtual;void *to_virtual;int i; -int ret; +int ret = -ENOMEM ;if (ttm->page_flags &TTM_PAGE_FLAG_USER ) { ret = ttm_tt_set_user(ttm, ttm->tsk, ttm->start,
@@ -485,8 +485,10 @@ static int ttm_tt_swapin(struct ttm_tt *ttm)for (i =0 ; i < ttm->num_pages; ++i) { from_page =read_mapping_page (swap_space, i,NULL ); -if (IS_ERR (from_page)) +if (IS_ERR (from_page)) { + ret =PTR_ERR (from_page); goto out_err; + } to_page =__ttm_tt_get_page (ttm, i);if (unlikely (to_page ==NULL )) goto out_err;
@@ -509,7 +511,7 @@ static int ttm_tt_swapin(struct ttm_tt *ttm)return 0 ; out_err:ttm_tt_free_alloced_pages (ttm); -return -ENOMEM ; +return ret; }int ttm_tt_swapout (struct ttm_tt *ttm,struct file *persistant_swap_storage)
@@ -521,6 +523,7 @@ int ttm_tt_swapout(struct ttm_tt *ttm, struct file *persistant_swap_storage)void *from_virtual;void *to_virtual;int i; +int ret = -ENOMEM ;BUG_ON (ttm->state != tt_unbound && ttm->state != tt_unpopulated);BUG_ON (ttm->caching_state != tt_cached);
@@ -543,7 +546,7 @@ int ttm_tt_swapout(struct ttm_tt *ttm, struct file *persistant_swap_storage) 0);if (unlikely (IS_ERR (swap_storage))) {printk (KERN_ERR "Failed allocating swap storage.\n" ); -return -ENOMEM ; +return PTR_ERR (swap_storage); } }else swap_storage = persistant_swap_storage;
@@ -555,9 +558,10 @@ int ttm_tt_swapout(struct ttm_tt *ttm, struct file *persistant_swap_storage)if (unlikely (from_page ==NULL ))continue ; to_page =read_mapping_page (swap_space, i,NULL ); -if (unlikely (to_page ==NULL )) +if (unlikely (IS_ERR (to_page))) { + ret =PTR_ERR (to_page); goto out_err; - + }preempt_disable (); from_virtual =kmap_atomic (from_page,KM_USER0 ); to_virtual =kmap_atomic (to_page,KM_USER1 );
@@ -581,5 +585,5 @@ out_err:if (!persistant_swap_storage)fput (swap_storage); -return -ENOMEM ; +return ret; }
drivers/hid/hid-core.c +0 -2
@@ -1658,8 +1658,6 @@ static const struct hid_device_id hid_ignore_list[] = { { HID_USB_DEVICE(USB_VENDOR_ID_PANJIT, 0x0004) }, { HID_USB_DEVICE(USB_VENDOR_ID_PHILIPS, USB_DEVICE_ID_PHILIPS_IEEE802154_DONGLE) }, { HID_USB_DEVICE(USB_VENDOR_ID_POWERCOM, USB_DEVICE_ID_POWERCOM_UPS) }, - { HID_USB_DEVICE(USB_VENDOR_ID_TENX, USB_DEVICE_ID_TENX_IBUDDY1) }, - { HID_USB_DEVICE(USB_VENDOR_ID_TENX, USB_DEVICE_ID_TENX_IBUDDY2) }, { HID_USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_LABPRO) }, { HID_USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_GOTEMP) }, { HID_USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_SKIP) },
drivers/hid/hid-ids.h +3 -4
@@ -349,6 +349,9 @@#define USB_VENDOR_ID_NEC 0x073e#define USB_DEVICE_ID_NEC_USB_GAME_PAD 0x0301 +#define USB_VENDOR_ID_NEXTWINDOW 0x1926 +#define USB_DEVICE_ID_NEXTWINDOW_TOUCHSCREEN 0x0003 +#define USB_VENDOR_ID_NTRIG 0x1b96#define USB_DEVICE_ID_NTRIG_TOUCH_SCREEN 0x0001
@@ -392,10 +395,6 @@#define USB_VENDOR_ID_SUNPLUS 0x04fc#define USB_DEVICE_ID_SUNPLUS_WDESKTOP 0x05d8 -#define USB_VENDOR_ID_TENX 0x1130 -#define USB_DEVICE_ID_TENX_IBUDDY1 0x0001 -#define USB_DEVICE_ID_TENX_IBUDDY2 0x0002 -#define USB_VENDOR_ID_THRUSTMASTER 0x044f#define USB_VENDOR_ID_TOPMAX 0x0663
drivers/hid/usbhid/hid-core.c +26 -2
@@ -318,6 +318,7 @@ static int hid_submit_out(struct hid_device *hid)err_hid ("usb_submit_urb(out) failed" );return -1 ; } + usbhid->last_out = jiffies; }else {/* * queue work to wake up the device.
@@ -379,6 +380,7 @@ static int hid_submit_ctrl(struct hid_device *hid)err_hid ("usb_submit_urb(ctrl) failed" );return -1 ; } + usbhid->last_ctrl = jiffies; }else {/* * queue work to wake up the device.
@@ -514,9 +516,20 @@ static void __usbhid_submit_report(struct hid_device *hid, struct hid_report *re usbhid->out[usbhid->outhead].report = report; usbhid->outhead = head; -if (!test_and_set_bit (HID_OUT_RUNNING , &usbhid->iofl)) +if (!test_and_set_bit (HID_OUT_RUNNING , &usbhid->iofl)) {if (hid_submit_out (hid))clear_bit (HID_OUT_RUNNING , &usbhid->iofl); + }else { +/* +* the queue is known to run +* but an earlier request may be stuck +* we may need to time out +* no race because this is called under +* spinlock +*/ +if (time_after (jiffies, usbhid->last_out +HZ *5 )) +usb_unlink_urb (usbhid->urbout); + }return ; }
@@ -537,9 +550,20 @@ static void __usbhid_submit_report(struct hid_device *hid, struct hid_report *re usbhid->ctrl[usbhid->ctrlhead].dir = dir; usbhid->ctrlhead = head; -if (!test_and_set_bit (HID_CTRL_RUNNING , &usbhid->iofl)) +if (!test_and_set_bit (HID_CTRL_RUNNING , &usbhid->iofl)) {if (hid_submit_ctrl (hid))clear_bit (HID_CTRL_RUNNING , &usbhid->iofl); + }else { +/* +* the queue is known to run +* but an earlier request may be stuck +* we may need to time out +* no race because this is called under +* spinlock +*/ +if (time_after (jiffies, usbhid->last_ctrl +HZ *5 )) +usb_unlink_urb (usbhid->urbctrl); + } }void usbhid_submit_report (struct hid_device *hid,struct hid_report *report,unsigned char dir)
drivers/hid/usbhid/hid-quirks.c +1 -0
@@ -37,6 +37,7 @@ static const struct hid_blacklist { { USB_VENDOR_ID_HAPP, USB_DEVICE_ID_UGCI_FIGHTING, HID_QUIRK_BADPAD | HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_NATSU, USB_DEVICE_ID_NATSU_GAMEPAD, HID_QUIRK_BADPAD }, { USB_VENDOR_ID_NEC, USB_DEVICE_ID_NEC_USB_GAME_PAD, HID_QUIRK_BADPAD }, + { USB_VENDOR_ID_NEXTWINDOW, USB_DEVICE_ID_NEXTWINDOW_TOUCHSCREEN, HID_QUIRK_MULTI_INPUT}, { USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RUMBLEPAD, HID_QUIRK_BADPAD }, { USB_VENDOR_ID_TOPMAX, USB_DEVICE_ID_TOPMAX_COBRAPAD, HID_QUIRK_BADPAD },
drivers/hid/usbhid/usbhid.h +2 -0
@@ -80,12 +80,14 @@ struct usbhid_device {unsigned char ctrlhead, ctrltail;/* Control fifo head & tail */ char *ctrlbuf;/* Control buffer */ dma_addr_t ctrlbuf_dma;/* Control buffer dma */ +unsigned long last_ctrl;/* record of last output for timeouts */ struct urb *urbout;/* Output URB */ struct hid_output_fifo out[HID_CONTROL_FIFO_SIZE ];/* Output pipe fifo */ unsigned char outhead, outtail;/* Output pipe fifo head & tail */ char *outbuf;/* Output buffer */ dma_addr_t outbuf_dma;/* Output buffer dma */ +unsigned long last_out;/* record of last output for timeouts */ spinlock_t lock;/* fifo spinlock */ unsigned long iofl;/* I/O flags (CTRL_RUNNING, OUT_RUNNING) */
drivers/hwmon/ams/ams-core.c +7 -4
@@ -213,7 +213,7 @@ int __init ams_init(void)return -ENODEV ; } -void ams_exit (void ) +void ams_sensor_detach (void ) {/* Remove input device */ ams_input_exit ();
@@ -221,9 +221,6 @@ void ams_exit(void)/* Remove attributes */ device_remove_file (&ams_info.of_dev->dev, &dev_attr_current); -/* Shut down implementation */ - ams_info.exit (); -/* Flush interrupt worker * * We do this after ams_info.exit(), because an interrupt might
@@ -239,6 +236,12 @@ void ams_exit(void)pmf_unregister_irq_client (&ams_freefall_client); } +static void __exit ams_exit(void) +{ +/* Shut down implementation */ + ams_info.exit (); +} +MODULE_AUTHOR ("Stelian Pop, Michael Hanselmann" );MODULE_DESCRIPTION ("Apple Motion Sensor driver" );MODULE_LICENSE ("GPL" );
drivers/hwmon/ams/ams-i2c.c +2 -0
@@ -238,6 +238,8 @@ static int ams_i2c_probe(struct i2c_client *client,static int ams_i2c_remove (struct i2c_client *client) {if (ams_info.has_device) { +ams_sensor_detach (); +/* Disable interrupts */ ams_i2c_set_irq (AMS_IRQ_ALL ,0 );
drivers/hwmon/ams/ams-pmu.c +2 -0
@@ -133,6 +133,8 @@ static void ams_pmu_get_xyz(s8 *x, s8 *y, s8 *z)static void ams_pmu_exit (void ) { +ams_sensor_detach (); +/* Disable interrupts */ ams_pmu_set_irq (AMS_IRQ_ALL ,0 );
drivers/hwmon/ams/ams.h +1 -0
@@ -61,6 +61,7 @@ extern struct ams ams_info;extern void ams_sensors (s8 *x,s8 *y,s8 *z);extern int ams_sensor_attach (void ); +extern void ams_sensor_detach (void );extern int ams_pmu_init (struct device_node *np);extern int ams_i2c_init (struct device_node *np);
drivers/hwmon/tmp421.c +11 -9
@@ -62,9 +62,9 @@ static const u8 TMP421_TEMP_LSB[4] = { 0x10, 0x11, 0x12, 0x13 };#define TMP423_DEVICE_ID 0x23static const struct i2c_device_id tmp421_id[] = { - {"tmp421" , tmp421 }, - {"tmp422" , tmp422 }, - {"tmp423" , tmp423 }, + {"tmp421" ,2 }, + {"tmp422" ,3 }, + {"tmp423" ,4 }, { } };MODULE_DEVICE_TABLE (i2c, tmp421_id);
@@ -74,21 +74,23 @@ struct tmp421_data {struct mutex update_lock;char valid;unsigned long last_updated; -int kind; +int channels;u8 config;s16 temp[4 ]; };static int temp_from_s16 (s16 reg) { -int temp = reg; +/* Mask out status bits */ +int temp = reg & ~0xf ;return (temp *1000 +128 ) /256 ; }static int temp_from_u16 (u16 reg) { -int temp = reg; +/* Mask out status bits */ +int temp = reg & ~0xf ;/* Add offset for extended temperature range. */ temp -=64 *256 ;
@@ -108,7 +110,7 @@ static struct tmp421_data *tmp421_update_device(struct device *dev) data->config =i2c_smbus_read_byte_data (client,TMP421_CONFIG_REG_1 ); -for (i =0 ; i <= data->kind; i++) { +for (i =0 ; i < data->channels; i++) { data->temp[i] =i2c_smbus_read_byte_data (client,TMP421_TEMP_MSB [i]) <<8 ; data->temp[i] |= i2c_smbus_read_byte_data(client,
@@ -167,7 +169,7 @@ static mode_t tmp421_is_visible(struct kobject *kobj, struct attribute *a, devattr = container_of(a, struct device_attribute, attr); index =to_sensor_dev_attr (devattr)->index; -if (data->kind > index) +if (index < data->channels)return a->mode;return 0 ;
@@ -275,7 +277,7 @@ static int tmp421_probe(struct i2c_client *client,i2c_set_clientdata (client, data);mutex_init (&data->update_lock); - data->kind = id->driver_data; + data->channels = id->driver_data; err =tmp421_init_client (client);if (err)
drivers/macintosh/therm_adt746x.c +24 -10
@@ -90,6 +90,8 @@ static struct task_struct *thread_therm = NULL;static void write_both_fan_speed (struct thermostat *th,int speed);static void write_fan_speed (struct thermostat *th,int speed,int fan); +static void thermostat_create_files (void ); +static void thermostat_remove_files (void );static int write_reg (struct thermostat * th,int reg,u8 data)
@@ -161,6 +163,8 @@ remove_thermostat(struct i2c_client *client)struct thermostat *th =i2c_get_clientdata (client);int i; +thermostat_remove_files (); +if (thread_therm !=NULL ) {kthread_stop (thread_therm); }
@@ -449,6 +453,8 @@ static int probe_thermostat(struct i2c_client *client,return -ENOMEM ; } +thermostat_create_files (); +return 0 ; }
@@ -566,7 +572,6 @@ thermostat_init(void)struct device_node * np;const u32 *prop;int i =0 , offset =0 ; -int err; np =of_find_node_by_name (NULL ,"fan" );if (!np)
@@ -633,6 +638,17 @@ thermostat_init(void)return -ENODEV ; } +#ifndef CONFIG_I2C_POWERMAC +request_module ("i2c-powermac" ); +#endif + +return i2c_add_driver (&thermostat_driver); +} + +static void thermostat_create_files (void ) +{ +int err; + err =device_create_file (&of_dev->dev, &dev_attr_sensor1_temperature); err |=device_create_file (&of_dev->dev, &dev_attr_sensor2_temperature); err |=device_create_file (&of_dev->dev, &dev_attr_sensor1_limit);
@@ -647,16 +663,9 @@ thermostat_init(void)if (err)printk (KERN_WARNING "Failed to create tempertaure attribute file(s).\n" ); - -#ifndef CONFIG_I2C_POWERMAC -request_module ("i2c-powermac" ); -#endif - -return i2c_add_driver (&thermostat_driver); } -static void __exit -thermostat_exit (void ) +static void thermostat_remove_files (void ) {if (of_dev) {device_remove_file (&of_dev->dev, &dev_attr_sensor1_temperature);
@@ -673,9 +682,14 @@ thermostat_exit(void)device_remove_file (&of_dev->dev, &dev_attr_sensor2_fan_speed); -of_device_unregister (of_dev); } +} + +static void __exit +thermostat_exit (void ) +{i2c_del_driver (&thermostat_driver); +of_device_unregister (of_dev); }module_init (thermostat_init);
drivers/md/dm.c +2 -2
@@ -614,8 +614,10 @@ static void dec_pending(struct dm_io *io, int error)if (!md->barrier_error && io_error != -EOPNOTSUPP ) md->barrier_error = io_error;end_io_acct (io); +free_io (md, io); }else {end_io_acct (io); +free_io (md, io);if (io_error !=DM_ENDIO_REQUEUE ) {trace_block_bio_complete (md->queue, bio);
@@ -623,8 +625,6 @@ static void dec_pending(struct dm_io *io, int error)bio_endio (bio, io_error); } } - -free_io (md, io); } }
drivers/media/dvb/dvb-core/dvb_net.c +1 -0
@@ -504,6 +504,7 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len ) "bytes left in TS. Resyncing.\n", ts_remain); priv->ule_sndu_len =0 ; priv->need_pusi =1 ; + ts +=TS_SZ ;continue ; }
drivers/media/dvb/dvb-usb/Kconfig +1 -1
@@ -112,8 +112,8 @@ config DVB_USB_CXUSB select DVB_MT352 if !DVB_FE_CUSTOMISE select DVB_ZL10353 if !DVB_FE_CUSTOMISE select DVB_DIB7000P if !DVB_FE_CUSTOMISE - select DVB_LGS8GL5 if !DVB_FE_CUSTOMISE select DVB_TUNER_DIB0070 if !DVB_FE_CUSTOMISE + select DVB_LGS8GXX if !DVB_FE_CUSTOMISE select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMISE select MEDIA_TUNER_XC2028 if !MEDIA_TUNER_CUSTOMISE select MEDIA_TUNER_MXL5005S if !MEDIA_TUNER_CUSTOMISE
drivers/media/dvb/frontends/l64781.c +2 -2
@@ -192,8 +192,8 @@ static int apply_frontend_param (struct dvb_frontend* fe, struct dvb_frontend_pa spi_bias *= qam_tab[p->constellation]; spi_bias /= p->code_rate_HP +1 ; spi_bias /= (guard_tab[p->guard_interval] +32 ); - spi_bias *=1000ULL ; - spi_bias /=1000ULL + ppm/1000 ; + spi_bias *=1000 ; + spi_bias /=1000 + ppm/1000 ; spi_bias *= p->code_rate_HP; val0x04 = (p->transmission_mode <<2 ) | p->guard_interval;
drivers/media/video/bt8xx/bttv-driver.c +1 -0
@@ -4468,6 +4468,7 @@ static int __devinit bttv_probe(struct pci_dev *dev,request_modules (btv); } +init_bttv_i2c_ir (btv);bttv_input_init (btv);/* everything is fine */
drivers/media/video/bt8xx/bttv-i2c.c +6 -2
@@ -388,7 +388,12 @@ int __devinit init_bttv_i2c(struct bttv *btv)if (0 == btv->i2c_rc && i2c_scan)do_i2c_scan (btv->c.v4l2_dev.name, &btv->i2c_client); -/* Instantiate the IR receiver device, if present */ +return btv->i2c_rc; +} + +/* Instantiate the I2C IR receiver device, if present */ +void __devinit init_bttv_i2c_ir (struct bttv *btv) +{if (0 == btv->i2c_rc) {struct i2c_board_info info;/* The external IR receiver is at i2c address 0x34 (0x35 for
@@ -408,7 +413,6 @@ int __devinit init_bttv_i2c(struct bttv *btv)strlcpy (info.type,"ir_video" ,I2C_NAME_SIZE );i2c_new_probed_device (&btv->c.i2c_adap, &info, addr_list); } -return btv->i2c_rc; } int __devexit fini_bttv_i2c(struct bttv *btv)
drivers/media/video/bt8xx/bttvp.h +1 -0
@@ -279,6 +279,7 @@ extern unsigned int bttv_debug;extern unsigned int bttv_gpio;extern void bttv_gpio_tracking (struct bttv *btv,char *comment);extern int init_bttv_i2c (struct bttv *btv); +extern void init_bttv_i2c_ir (struct bttv *btv);extern int fini_bttv_i2c (struct bttv *btv);#define bttv_printk if (bttv_verbose) printk
drivers/media/video/gspca/mr97310a.c +6 -0
@@ -530,6 +530,12 @@ static int start_cif_cam(struct gspca_dev *gspca_dev) {0x13, 0x00, {0x01}, 1}, {0, 0, {0}, 0} }; +/* Without this command the cam won't work with USB-UHCI */ + gspca_dev->usb_buf[0 ] =0x0a ; + gspca_dev->usb_buf[1 ] =0x00 ; + err_code =mr_write (gspca_dev,2 ); +if (err_code <0 ) +return err_code; err_code =sensor_write_regs (gspca_dev, cif_sensor1_init_data,ARRAY_SIZE (cif_sensor1_init_data)); }
drivers/media/video/pwc/pwc-ctrl.c +1 -1
@@ -753,7 +753,7 @@ int pwc_set_shutter_speed(struct pwc_device *pdev, int mode, int value) buf[0 ] =0xff ;/* fixed */ ret =send_control_msg (pdev, -SET_LUM_CTL ,SHUTTER_MODE_FORMATTER , &buf,sizeof (buf)); +SET_LUM_CTL ,SHUTTER_MODE_FORMATTER , &buf,1 );if (!mode && ret >=0 ) {if (value <0 )
drivers/media/video/uvc/uvc_ctrl.c +7 -0
@@ -826,6 +826,13 @@ int uvc_query_v4l2_ctrl(struct uvc_video_chain *chain, ret =0 ; goto out; +case V4L2_CTRL_TYPE_BUTTON : + v4l2_ctrl->minimum =0 ; + v4l2_ctrl->maximum =0 ; + v4l2_ctrl->step =0 ; + ret =0 ; + goto out; +default :break ; }
drivers/mmc/host/s3cmci.c +1 -1
@@ -1178,7 +1178,7 @@ static int s3cmci_card_present(struct mmc_host *mmc)struct s3c24xx_mci_pdata *pdata = host->pdata;int ret; -if (pdata->gpio_detect ==0 ) +if (pdata->no_detect)return -ENOSYS ; ret =gpio_get_value (pdata->gpio_detect) ?0 :1 ;
drivers/net/ks8851_mll.c +2 -2
@@ -854,8 +854,8 @@ static void ks_update_link_status(struct net_device *netdev, struct ks_net *ks)static irqreturn_t ks_irq (int irq,void *pw) { -struct ks_net *ks = pw; -struct net_device *netdev = ks->netdev; +struct net_device *netdev = pw; +struct ks_net *ks =netdev_priv (netdev);u16 status;/*this should be the first in IRQ handler */
drivers/net/sky2.c +3 -5
@@ -1008,11 +1008,8 @@ static void sky2_prefetch_init(struct sky2_hw *hw, u32 qaddr,static inline struct sky2_tx_le *get_tx_le (struct sky2_port *sky2,u16 *slot) {struct sky2_tx_le *le = sky2->tx_le + *slot; -struct tx_ring_info *re = sky2->tx_ring + *slot; *slot =RING_NEXT (*slot, sky2->tx_ring_size); - re->flags =0 ; - re->skb =NULL ; le->ctrl =0 ;return le; }
@@ -1580,8 +1577,7 @@ static unsigned tx_le_req(const struct sk_buff *skb)return count; } -static void sky2_tx_unmap (struct pci_dev *pdev, -const struct tx_ring_info *re) +static void sky2_tx_unmap (struct pci_dev *pdev,struct tx_ring_info *re) {if (re->flags &TX_MAP_SINGLE ) pci_unmap_single(pdev, pci_unmap_addr(re, mapaddr),
@@ -1591,6 +1587,7 @@ static void sky2_tx_unmap(struct pci_dev *pdev,pci_unmap_page (pdev,pci_unmap_addr (re, mapaddr),pci_unmap_len (re, maplen),PCI_DMA_TODEVICE ); + re->flags =0 ; }/*
@@ -1797,6 +1794,7 @@ static void sky2_tx_complete(struct sky2_port *sky2, u16 done) dev->stats.tx_packets++; dev->stats.tx_bytes += skb->len; + re->skb =NULL ;dev_kfree_skb_any (skb); sky2->tx_next =RING_NEXT (idx, sky2->tx_ring_size);
drivers/net/via-rhine.c +28 -13
97 lines not on this page · raw message
drivers/net/wireless/airo.c +18 -16
@@ -5254,11 +5254,7 @@ static int set_wep_key(struct airo_info *ai, u16 index, const char *key,WepKeyRid wkr;int rc; -if (keylen ==0 ) { -airo_print_err (ai->dev->name,"%s: key length to set was zero" , - __func__); -return -1 ; - } +WARN_ON (keylen ==0 );memset (&wkr,0 ,sizeof (wkr)); wkr.len =cpu_to_le16 (sizeof (wkr));
@@ -6404,11 +6400,7 @@ static int airo_set_encode(struct net_device *dev,if (dwrq->length >MIN_KEY_SIZE ) key.len =MAX_KEY_SIZE ;else -if (dwrq->length >0 ) - key.len =MIN_KEY_SIZE ; -else -/* Disable the key */ - key.len =0 ; + key.len =MIN_KEY_SIZE ;/* Check if the key is not marked as invalid */ if (!(dwrq->flags &IW_ENCODE_NOKEY )) {/* Cleanup */
@@ -6589,12 +6581,22 @@ static int airo_set_encodeext(struct net_device *dev,default :return -EINVAL ; } -/* Send the key to the card */ - rc =set_wep_key (local, idx, key.key, key.len, perm,1 ); -if (rc <0 ) { -airo_print_err (local->dev->name,"failed to set WEP key" -" at index %d: %d." , idx, rc); -return rc; +if (key.len ==0 ) { + rc =set_wep_tx_idx (local, idx, perm,1 ); +if (rc <0 ) { +airo_print_err (local->dev->name, +"failed to set WEP transmit index to %d: %d." , + idx, rc); +return rc; + } + }else { + rc =set_wep_key (local, idx, key.key, key.len, perm,1 ); +if (rc <0 ) { +airo_print_err (local->dev->name, +"failed to set WEP key at index %d: %d." , + idx, rc); +return rc; + } } }
drivers/net/wireless/ath/ath5k/ath5k.h +0 -1
@@ -546,7 +546,6 @@ struct ath5k_txq_info {/* * Transmit packet types. * used on tx control descriptor -* TODO: Use them inside base.c corectly */ enum ath5k_pkt_type {AR5K_PKT_TYPE_NORMAL =0 ,
drivers/net/wireless/ath/ath5k/base.c +25 -1
@@ -1220,6 +1220,29 @@ ath5k_rxbuf_setup(struct ath5k_softc *sc, struct ath5k_buf *bf)return 0 ; } +static enum ath5k_pkt_type get_hw_packet_type (struct sk_buff *skb) +{ +struct ieee80211_hdr *hdr; +enum ath5k_pkt_type htype; +__le16 fc; + + hdr = (struct ieee80211_hdr *)skb->data; + fc = hdr->frame_control; + +if (ieee80211_is_beacon (fc)) + htype =AR5K_PKT_TYPE_BEACON ; +else if (ieee80211_is_probe_resp (fc)) + htype =AR5K_PKT_TYPE_PROBE_RESP ; +else if (ieee80211_is_atim (fc)) + htype =AR5K_PKT_TYPE_ATIM ; +else if (ieee80211_is_pspoll (fc)) + htype =AR5K_PKT_TYPE_PSPOLL ; +else + htype =AR5K_PKT_TYPE_NORMAL ; + +return htype; +} +static int ath5k_txbuf_setup (struct ath5k_softc *sc,struct ath5k_buf *bf,struct ath5k_txq *txq)
@@ -1274,7 +1297,8 @@ ath5k_txbuf_setup(struct ath5k_softc *sc, struct ath5k_buf *bf, sc->vif, pktlen, info)); } ret = ah->ah_setup_tx_desc(ah, ds, pktlen, - ieee80211_get_hdrlen_from_skb(skb), AR5K_PKT_TYPE_NORMAL, + ieee80211_get_hdrlen_from_skb(skb), + get_hw_packet_type(skb), (sc->power_level * 2), hw_rate, info->control.rates[0].count, keyidx, ah->ah_tx_ant, flags,
drivers/net/wireless/ath/ath9k/beacon.c +3 -6
@@ -512,16 +512,13 @@ static void ath_beacon_config_ap(struct ath_softc *sc, {u32 nexttbtt, intval; -/* Configure the timers only when the TSF has to be reset */ - -if (!(sc->sc_flags &SC_OP_TSF_RESET )) -return ; -/* NB: the beacon interval is kept internally in TU's */ intval = conf->beacon_interval &ATH9K_BEACON_PERIOD ; intval /=ATH_BCBUF ;/* for staggered beacons */ nexttbtt = intval; - intval |=ATH9K_BEACON_RESET_TSF ; + +if (sc->sc_flags &SC_OP_TSF_RESET ) + intval |=ATH9K_BEACON_RESET_TSF ;/* * In AP mode we enable the beacon timers and SWBA interrupts to
drivers/net/wireless/ath/ath9k/hw.c +10 -0
@@ -1295,6 +1295,16 @@ static void ath9k_hw_override_ini(struct ath_hw *ah,* Necessary to avoid issues on AR5416 2.0 */ REG_WRITE (ah,0x9800 + (651 <<2 ),0x11 ); + +/* +* Disable RIFS search on some chips to avoid baseband +* hang issues. +*/ +if (AR_SREV_9100 (ah) ||AR_SREV_9160 (ah)) { + val =REG_READ (ah,AR_PHY_HEAVY_CLIP_FACTOR_RIFS ); + val &= ~AR_PHY_RIFS_INIT_DELAY ; +REG_WRITE (ah,AR_PHY_HEAVY_CLIP_FACTOR_RIFS , val); + } } static u32 ath9k_hw_def_ini_fixup(struct ath_hw *ah,
drivers/net/wireless/ath/ath9k/phy.h +3 -0
@@ -368,6 +368,9 @@ bool ath9k_hw_init_rf(struct ath_hw *ah,#define AR_PHY_HEAVY_CLIP_ENABLE 0x99E0 +#define AR_PHY_HEAVY_CLIP_FACTOR_RIFS 0x99EC +#define AR_PHY_RIFS_INIT_DELAY 0x03ff0000 +#define AR_PHY_M_SLEEP 0x99f0#define AR_PHY_REFCLKDLY 0x99f4#define AR_PHY_REFCLKPD 0x99f8
drivers/net/wireless/ath/ath9k/rc.c +7 -8
@@ -757,7 +757,7 @@ static void ath_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,struct ieee80211_tx_rate *rates = tx_info->control.rates;struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;__le16 fc = hdr->frame_control; -u8 try_per_rate, i =0 , rix, nrix; +u8 try_per_rate, i =0 , rix;int is_probe =0 ;if (rate_control_send_low (sta, priv_sta, txrc))
@@ -777,26 +777,25 @@ static void ath_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta, rate_table = sc->cur_rate_table; rix =ath_rc_get_highest_rix (sc, ath_rc_priv, rate_table, &is_probe); - nrix = rix;if (is_probe) {/* set one try for probe rates. For the * probes don't enable rts */ ath_rc_rate_set_series (rate_table, &rates[i++], txrc, -1 , nrix,0 ); +1 , rix,0 );/* Get the next tried/allowed rate. No RTS for the next series * after the probe rate */ -ath_rc_get_lower_rix (rate_table, ath_rc_priv, rix, &nrix); +ath_rc_get_lower_rix (rate_table, ath_rc_priv, rix, &rix);ath_rc_rate_set_series (rate_table, &rates[i++], txrc, - try_per_rate, nrix,0 ); + try_per_rate, rix,0 ); tx_info->flags |=IEEE80211_TX_CTL_RATE_CTRL_PROBE ; }else {/* Set the choosen rate. No RTS for first series entry. */ ath_rc_rate_set_series (rate_table, &rates[i++], txrc, - try_per_rate, nrix,0 ); + try_per_rate, rix,0 ); }/* Fill in the other rates for multirate retry */
@@ -805,10 +804,10 @@ static void ath_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,if (i +1 ==4 ) try_per_rate =4 ; -ath_rc_get_lower_rix (rate_table, ath_rc_priv, rix, &nrix); +ath_rc_get_lower_rix (rate_table, ath_rc_priv, rix, &rix);/* All other rates in the series have RTS enabled */ ath_rc_rate_set_series (rate_table, &rates[i], txrc, - try_per_rate, nrix,1 ); + try_per_rate, rix,1 ); }/*
drivers/net/wireless/b43/main.c +1 -2
@@ -3967,6 +3967,7 @@ static int b43_wireless_core_start(struct b43_wldev *dev) }/* We are ready to run. */ +ieee80211_wake_queues (dev->wl->hw);b43_set_status (dev,B43_STAT_STARTED );/* Start data flow (TX/RX). */
@@ -4376,8 +4377,6 @@ static int b43_wireless_core_init(struct b43_wldev *dev)ieee80211_wake_queues (dev->wl->hw); -ieee80211_wake_queues (dev->wl->hw); -b43_set_status (dev,B43_STAT_INITIALIZED ); out:
drivers/net/wireless/b43legacy/main.c +2 -0
@@ -2921,6 +2921,7 @@ static int b43legacy_wireless_core_start(struct b43legacy_wldev *dev) goto out; }/* We are ready to run. */ +ieee80211_wake_queues (dev->wl->hw);b43legacy_set_status (dev, B43legacy_STAT_STARTED);/* Start data flow (TX/RX) */
@@ -3341,6 +3342,7 @@ static int b43legacy_wireless_core_init(struct b43legacy_wldev *dev)b43legacy_security_init (dev);b43legacy_rng_init (wl); +ieee80211_wake_queues (dev->wl->hw);b43legacy_set_status (dev, B43legacy_STAT_INITIALIZED);b43legacy_leds_init (dev);
drivers/net/wireless/iwlwifi/iwl-4965.c +1 -1
@@ -2134,7 +2134,7 @@ static void iwl4965_rx_reply_tx(struct iwl_priv *priv,IWL_DEBUG_TX_REPLY (priv,"Retry scheduler reclaim scd_ssn " "%d index %d\n" , scd_ssn , index); freed =iwl_tx_queue_reclaim (priv, txq_id, index); - priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; +iwl_free_tfds_in_queue (priv, sta_id, tid, freed); if (priv->mac80211_registered && (iwl_queue_space(&txq->q) > txq->q.low_mark) &&
drivers/net/wireless/iwlwifi/iwl-5000.c +3 -5
@@ -1264,7 +1264,7 @@ static void iwl5000_rx_reply_tx(struct iwl_priv *priv, scd_ssn , index, txq_id, txq->swq_id); freed =iwl_tx_queue_reclaim (priv, txq_id, index); - priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; +iwl_free_tfds_in_queue (priv, sta_id, tid, freed); if (priv->mac80211_registered && (iwl_queue_space(&txq->q) > txq->q.low_mark) &&
@@ -1293,16 +1293,14 @@ static void iwl5000_rx_reply_tx(struct iwl_priv *priv, tx_resp->failure_frame); freed =iwl_tx_queue_reclaim (priv, txq_id, index); -if (ieee80211_is_data_qos (tx_resp->frame_ctrl)) - priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; +iwl_free_tfds_in_queue (priv, sta_id, tid, freed);if (priv->mac80211_registered && (iwl_queue_space (&txq->q) > txq->q.low_mark))iwl_wake_queue (priv, txq_id); } -if (ieee80211_is_data_qos (tx_resp->frame_ctrl)) -iwl_txq_check_empty (priv, sta_id, tid, txq_id); +iwl_txq_check_empty (priv, sta_id, tid, txq_id);if (iwl_check_bits (status,TX_ABORT_REQUIRED_MSK ))IWL_ERR (priv,"TODO: Implement Tx ABORT REQUIRED!!!\n" );
drivers/net/wireless/iwlwifi/iwl-core.c +1 -1
@@ -2645,8 +2645,8 @@ int iwl_mac_config(struct ieee80211_hw *hw, u32 changed)if ((le16_to_cpu (priv->staging_rxon.channel) != ch)) priv->staging_rxon.flags =0 ; -iwl_set_rxon_ht (priv, ht_conf);iwl_set_rxon_channel (priv, conf->channel); +iwl_set_rxon_ht (priv, ht_conf);iwl_set_flags_for_band (priv, conf->channel->band);spin_unlock_irqrestore (&priv->lock, flags);
drivers/net/wireless/iwlwifi/iwl-core.h +2 -0
@@ -410,6 +410,8 @@ void iwl_hw_txq_ctx_free(struct iwl_priv *priv);int iwl_hw_tx_queue_init (struct iwl_priv *priv,struct iwl_tx_queue *txq);int iwl_txq_update_write_ptr (struct iwl_priv *priv,struct iwl_tx_queue *txq); +void iwl_free_tfds_in_queue (struct iwl_priv *priv, +int sta_id,int tid,int freed);int iwl_tx_queue_init (struct iwl_priv *priv,struct iwl_tx_queue *txq,int slots_num,u32 txq_id);void iwl_tx_queue_free (struct iwl_priv *priv,int txq_id);
drivers/net/wireless/iwlwifi/iwl-tx.c +20 -1
@@ -119,6 +119,20 @@ int iwl_txq_update_write_ptr(struct iwl_priv *priv, struct iwl_tx_queue *txq)EXPORT_SYMBOL (iwl_txq_update_write_ptr); +void iwl_free_tfds_in_queue (struct iwl_priv *priv, +int sta_id,int tid,int freed) +{ +if (priv->stations[sta_id].tid[tid].tfds_in_queue >= freed) + priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; +else { +IWL_ERR (priv,"free more than tfds_in_queue (%u:%d)\n" , + priv->stations[sta_id].tid[tid].tfds_in_queue, + freed); + priv->stations[sta_id].tid[tid].tfds_in_queue =0 ; + } +} +EXPORT_SYMBOL (iwl_free_tfds_in_queue); +/** * iwl_tx_queue_free - Deallocate DMA queue. * @txq: Transmit queue to deallocate.
@@ -1057,6 +1071,7 @@ int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index)struct iwl_queue *q = &txq->q;struct iwl_tx_info *tx_info;int nfreed =0 ; +struct ieee80211_hdr *hdr;if ((index >= q->n_bd) || (iwl_queue_used (q, index) ==0 )) { IWL_ERR(priv, "Read index for DMA queue txq id (%d), index %d, "
@@ -1071,6 +1086,10 @@ int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index) tx_info = &txq->txb[txq->q.read_ptr];ieee80211_tx_status_irqsafe (priv->hw, tx_info->skb[0 ]); + + hdr = (struct ieee80211_hdr *)tx_info->skb[0 ]->data; +if (hdr &&ieee80211_is_data_qos (hdr->frame_control)) + nfreed++; tx_info->skb[0 ] =NULL ;if (priv->cfg->ops->lib->txq_inval_byte_cnt_tbl)
@@ -1485,7 +1504,7 @@ void iwl_rx_reply_compressed_ba(struct iwl_priv *priv,if (txq->q.read_ptr != (ba_resp_scd_ssn &0xff )) {/* calculate mac80211 ampdu sw queue to wake */ int freed =iwl_tx_queue_reclaim (priv, scd_flow, index); - priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; +iwl_free_tfds_in_queue (priv, sta_id, tid, freed); if ((iwl_queue_space(&txq->q) > txq->q.low_mark) && priv->mac80211_registered &&
drivers/net/wireless/p54/p54pci.c +16 -2
@@ -157,6 +157,14 @@ static void p54p_refill_rx_ring(struct ieee80211_hw *dev,skb_tail_pointer (skb), priv->common.rx_mtu +32 , PCI_DMA_FROMDEVICE); + +if (pci_dma_mapping_error (priv->pdev, mapping)) { +dev_kfree_skb_any (skb); +dev_err (&priv->pdev->dev, +"RX DMA Mapping error\n" ); +break ; + } + desc->host_addr =cpu_to_le32 (mapping); desc->device_addr =0 ;// FIXME: necessary? desc->len =cpu_to_le16 (priv->common.rx_mtu +32 );
@@ -317,14 +325,20 @@ static void p54p_tx(struct ieee80211_hw *dev, struct sk_buff *skb)u32 device_idx, idx, i;spin_lock_irqsave (&priv->lock, flags); - device_idx =le32_to_cpu (ring_control->device_idx[1 ]); idx =le32_to_cpu (ring_control->host_idx[1 ]); i = idx %ARRAY_SIZE (ring_control->tx_data); - priv->tx_buf_data[i] = skb; mapping =pci_map_single (priv->pdev, skb->data, skb->len,PCI_DMA_TODEVICE ); +if (pci_dma_mapping_error (priv->pdev, mapping)) { +spin_unlock_irqrestore (&priv->lock, flags); +p54_free_skb (dev, skb); +dev_err (&priv->pdev->dev,"TX DMA mapping error\n" ); +return ; + } + priv->tx_buf_data[i] = skb; + desc = &ring_control->tx_data[i]; desc->host_addr =cpu_to_le32 (mapping); desc->device_addr = ((struct p54_hdr *)skb->data)->req_id;
drivers/net/wireless/p54/p54usb.c +1 -0
@@ -60,6 +60,7 @@ static struct usb_device_id p54u_table[] __devinitdata = { {USB_DEVICE(0x06b9, 0x0121)}, /* Thomson SpeedTouch 121g */ {USB_DEVICE(0x0707, 0xee13)}, /* SMC 2862W-G version 2 */ {USB_DEVICE(0x083a, 0x4521)}, /* Siemens Gigaset USB Adapter 54 version 2 */ + {USB_DEVICE(0x083a, 0xf503)}, /* Accton FD7050E ver 1010ec */ {USB_DEVICE(0x0846, 0x4240)}, /* Netgear WG111 (v2) */ {USB_DEVICE(0x0915, 0x2000)}, /* Cohiba Proto board */ {USB_DEVICE(0x0915, 0x2002)}, /* Cohiba Proto board */
drivers/net/wireless/rndis_wlan.c +8 -5
@@ -83,11 +83,11 @@ MODULE_PARM_DESC(roamdelta,"set roaming tendency: 0=aggressive, 1=moderate, " "2=conservative (default: moderate)"); -static int modparam_workaround_interval =500 ; +static int modparam_workaround_interval;module_param_named (workaround_interval, modparam_workaround_interval, int,0444 );MODULE_PARM_DESC (workaround_interval, -"set stall workaround interval in msecs (default: 500)" ); +"set stall workaround interval in msecs (0=disabled) (default: 0)" );/* various RNDIS OID defs */
@@ -733,12 +733,13 @@ static int rndis_query_oid(struct usbnet *dev, __le32 oid, void *data, int *len) le32_to_cpu(u.get_c->status));if (ret ==0 ) { +memcpy (data, u.buf +le32_to_cpu (u.get_c->offset) +8 , *len); + ret =le32_to_cpu (u.get_c->len);if (ret > *len) *len = ret; -memcpy (data, u.buf +le32_to_cpu (u.get_c->offset) +8 , *len); - ret =rndis_error_status (u.get_c->status); + ret =rndis_error_status (u.get_c->status);if (ret <0 ) devdbg(dev, "rndis_query_oid(%s): device returned " "error, 0x%08x (%d)", oid_to_string(oid),
@@ -1072,6 +1073,8 @@ static int set_auth_mode(struct usbnet *usbdev, u32 wpa_version, auth_mode =NDIS_80211_AUTH_SHARED ; else if (auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM) auth_mode =NDIS_80211_AUTH_OPEN ; + else if (auth_type == NL80211_AUTHTYPE_AUTOMATIC) + auth_mode =NDIS_80211_AUTH_AUTO_SWITCH ; else return -ENOTSUPP;
@@ -2547,7 +2550,7 @@ static void rndis_device_poller(struct work_struct *work)/* Workaround transfer stalls on poor quality links. * TODO: find right way to fix these stalls (as stalls do not happen * with ndiswrapper/windows driver). */ -if (priv->last_qual <=25 ) { +if (priv->param_workaround_interval >0 && priv->last_qual <=25 ) {/* Decrease stats worker interval to catch stalls. * faster. Faster than 400-500ms causes packet loss, * Slower doesn't catch stalls fast enough.
drivers/pci/hotplug/ibmphp_ebda.c +11 -2
@@ -245,7 +245,7 @@ static void __init print_ebda_hpc (void)int __init ibmphp_access_ebda (void ) { -u8 format, num_ctlrs, rio_complete, hs_complete; +u8 format, num_ctlrs, rio_complete, hs_complete, ebda_sz;u16 ebda_seg, num_entries, next_offset, offset, blk_id, sub_addr, re, rc_id, re_id, base;int rc =0 ;
@@ -260,7 +260,16 @@ int __init ibmphp_access_ebda (void)iounmap (io_mem);debug ("returned ebda segment: %x\n" , ebda_seg); - io_mem =ioremap (ebda_seg<<4 ,1024 ); + io_mem =ioremap (ebda_seg<<4 ,1 ); +if (!io_mem) +return -ENOMEM ; + ebda_sz =readb (io_mem); +iounmap (io_mem); +debug ("ebda size: %d(KiB)\n" , ebda_sz); +if (ebda_sz ==0 ) +return -ENOMEM ; + + io_mem =ioremap (ebda_seg<<4 , (ebda_sz *1024 ));if (!io_mem )return -ENOMEM ; next_offset =0x180 ;
drivers/platform/x86/thinkpad_acpi.c +38 -26
174 lines not on this page · raw message
drivers/rtc/class.c +1 -0
@@ -226,6 +226,7 @@ static void __exit rtc_exit(void) {rtc_dev_exit ();class_destroy (rtc_class); +idr_destroy (&rtc_idr); }subsys_initcall (rtc_init);
drivers/rtc/rtc-coh901331.c +3 -2
@@ -271,12 +271,13 @@ static int coh901331_resume(struct platform_device *pdev) {struct coh901331_port *rtap =dev_get_drvdata (&pdev->dev); -if (device_may_wakeup (&pdev->dev)) +if (device_may_wakeup (&pdev->dev)) {disable_irq_wake (rtap->irq); -else + }else {clk_enable (rtap->clk);writel (rtap->irqmaskstore, rtap->virtbase +COH901331_IRQ_MASK );clk_disable (rtap->clk); + }return 0 ; }#else
drivers/scsi/arm/fas216.c +1 -1
@@ -2516,7 +2516,7 @@ int fas216_eh_device_reset(struct scsi_cmnd *SCpnt)if (info->scsi.phase ==PHASE_IDLE )fas216_kick (info); -mod_timer (&info->eh_timer,30 *HZ ); +mod_timer (&info->eh_timer, jiffies +30 *HZ );spin_unlock_irqrestore (&info->host_lock, flags);/*
drivers/scsi/mpt2sas/mpt2sas_scsih.c +17 -0
@@ -5721,6 +5721,8 @@ _scsih_remove(struct pci_dev *pdev)struct _sas_port *mpt2sas_port;struct _sas_device *sas_device;struct _sas_node *expander_sibling; +struct _raid_device *raid_device, *next; +struct MPT2SAS_TARGET *sas_target_priv_data;struct workqueue_struct *wq;unsigned long flags;
@@ -5734,6 +5736,21 @@ _scsih_remove(struct pci_dev *pdev)if (wq)destroy_workqueue (wq); +/* release all the volumes */ +list_for_each_entry_safe (raid_device, next, &ioc->raid_device_list, + list) { +if (raid_device->starget) { + sas_target_priv_data = + raid_device->starget->hostdata; + sas_target_priv_data->deleted =1 ; +scsi_remove_target (&raid_device->starget->dev); + } +printk (MPT2SAS_INFO_FMT "removing handle(0x%04x), wwid" +"(0x%016llx)\n" , ioc->name, raid_device->handle, + (unsigned long long ) raid_device->wwid); +_scsih_raid_device_remove (ioc, raid_device); + } +/* free ports attached to the sas_host */ retry_again: list_for_each_entry(mpt2sas_port,
drivers/scsi/qla1280.c +4 -0
@@ -1640,8 +1640,10 @@ qla1280_load_firmware_pio(struct scsi_qla_host *ha)uint16_t mb[MAILBOX_REGISTER_COUNT ], i;int err; +spin_unlock_irq (ha->host->host_lock); err =request_firmware (&fw, ql1280_board_tbl[ha->devnum].fwname, &ha->pdev->dev); +spin_lock_irq (ha->host->host_lock);if (err) {printk (KERN_ERR "Failed to load image \"%s\" err %d\n" , ql1280_board_tbl[ha->devnum].fwname, err);
@@ -1699,8 +1701,10 @@ qla1280_load_firmware_dma(struct scsi_qla_host *ha)return -ENOMEM ;#endif +spin_unlock_irq (ha->host->host_lock); err =request_firmware (&fw, ql1280_board_tbl[ha->devnum].fwname, &ha->pdev->dev); +spin_lock_irq (ha->host->host_lock);if (err) {printk (KERN_ERR "Failed to load image \"%s\" err %d\n" , ql1280_board_tbl[ha->devnum].fwname, err);
drivers/scsi/qla2xxx/qla_gbl.h +0 -1
@@ -453,6 +453,5 @@ extern void qla24xx_wrt_req_reg(struct qla_hw_data *, uint16_t, uint16_t);extern void qla25xx_wrt_req_reg (struct qla_hw_data *,uint16_t ,uint16_t );extern void qla25xx_wrt_rsp_reg (struct qla_hw_data *,uint16_t ,uint16_t );extern void qla24xx_wrt_rsp_reg (struct qla_hw_data *,uint16_t ,uint16_t ); -extern struct scsi_qla_host *qla25xx_get_host (struct rsp_que *);#endif /* _QLA_GBL_H */
drivers/scsi/qla2xxx/qla_isr.c +1 -28
@@ -2018,7 +2018,7 @@ qla24xx_msix_rsp_q(int irq, void *dev_id)spin_lock_irq (&ha->hardware_lock); - vha =qla25xx_get_host (rsp); + vha =pci_get_drvdata (ha->pdev);qla24xx_process_response_queue (vha, rsp);if (!ha->mqenable) {WRT_REG_DWORD (®->hccr,HCCRX_CLR_RISC_INT );
@@ -2357,30 +2357,3 @@ int qla25xx_request_irq(struct rsp_que *rsp) msix->rsp = rsp;return ret; } - -struct scsi_qla_host * -qla25xx_get_host (struct rsp_que *rsp) -{ -srb_t *sp; -struct qla_hw_data *ha = rsp->hw; -struct scsi_qla_host *vha =NULL ; -struct sts_entry_24xx *pkt; -struct req_que *req; -uint16_t que; -uint32_t handle; - - pkt = (struct sts_entry_24xx *) rsp->ring_ptr; - que =MSW (pkt->handle); - handle = (uint32_t )LSW (pkt->handle); - req = ha->req_q_map[que]; -if (handle <MAX_OUTSTANDING_COMMANDS ) { - sp = req->outstanding_cmds[handle]; -if (sp) -return sp->fcport->vha; -else - goto base_que; - } -base_que: - vha =pci_get_drvdata (ha->pdev); -return vha; -}
drivers/scsi/qla2xxx/qla_mid.c +5 -1
@@ -638,11 +638,15 @@ failed:static void qla_do_work (struct work_struct *work) { +unsigned long flags; struct rsp_que *rsp = container_of(work, struct rsp_que, q_work);struct scsi_qla_host *vha; +struct qla_hw_data *ha = rsp->hw; - vha =qla25xx_get_host (rsp); +spin_lock_irqsave (&rsp->hw->hardware_lock, flags); + vha =pci_get_drvdata (ha->pdev);qla24xx_process_response_queue (vha, rsp); +spin_unlock_irqrestore (&rsp->hw->hardware_lock, flags); }/* create response queue */
drivers/serial/imx.c +3 -3
@@ -1279,7 +1279,7 @@ static int serial_imx_probe(struct platform_device *pdev) sport->use_irda =1 ;#endif -if (pdata->init) { +if (pdata && pdata->init) { ret = pdata->init (pdev);if (ret) goto clkput;
@@ -1292,7 +1292,7 @@ static int serial_imx_probe(struct platform_device *pdev)return 0 ; deinit: -if (pdata->exit) +if (pdata && pdata->exit) pdata->exit (pdev); clkput:clk_put (sport->clk);
@@ -1321,7 +1321,7 @@ static int serial_imx_remove(struct platform_device *pdev)clk_disable (sport->clk); -if (pdata->exit) +if (pdata && pdata->exit) pdata->exit (pdev);iounmap (sport->port.membase);
drivers/staging/Kconfig +0 -2
@@ -81,8 +81,6 @@ source "drivers/staging/rtl8192su/Kconfig" source "drivers/staging/rtl8192e/Kconfig" -source "drivers/staging/mimio/Kconfig" - source "drivers/staging/frontier/Kconfig" source "drivers/staging/android/Kconfig"
drivers/staging/Makefile +0 -1
@@ -23,7 +23,6 @@ obj-$(CONFIG_ALTERA_PCIE_CHDMA) += altpciechdma/ obj-$(CONFIG_RTL8187SE) += rtl8187se/ obj-$(CONFIG_RTL8192SU) += rtl8192su/ obj-$(CONFIG_RTL8192E) += rtl8192e/ -obj-$(CONFIG_INPUT_MIMIO) += mimio/ obj-$(CONFIG_TRANZPORT) += frontier/ obj-$(CONFIG_ANDROID) += android/ obj-$(CONFIG_ANDROID) += dream/
drivers/staging/hv/vmbus_drv.c +30 -0
@@ -24,6 +24,8 @@#include <linux/irq.h> #include <linux/interrupt.h> #include <linux/sysctl.h> +#include <linux/pci.h> +#include <linux/dmi.h> #include "osd.h" #include "logging.h" #include "vmbus.h"
@@ -946,6 +948,19 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id) } } +static struct dmi_system_id __initdata microsoft_hv_dmi_table[] = { + { + .ident ="Hyper-V" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Microsoft Corporation" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"Virtual Machine" ), +DMI_MATCH (DMI_BOARD_NAME ,"Virtual Machine" ), + }, + }, + { }, +}; +MODULE_DEVICE_TABLE (dmi, microsoft_hv_dmi_table); +static int __init vmbus_init (void ) {int ret =0 ;
@@ -957,6 +972,9 @@ static int __init vmbus_init(void) vmbus_loglevel, HIWORD(vmbus_loglevel), LOWORD(vmbus_loglevel));/* Todo: it is used for loglevel, to be ported to new kernel. */ +if (!dmi_check_system (microsoft_hv_dmi_table)) +return -ENODEV ; + ret =vmbus_bus_init (VmbusInitialize);DPRINT_EXIT (VMBUS_DRV );
@@ -973,6 +991,18 @@ static void __exit vmbus_exit(void)return ; } +/* +* We use a PCI table to determine if we should autoload this driver This is +* needed by distro tools to determine if the hyperv drivers should be +* installed and/or configured. We don't do anything else with the table, but +* it needs to be present. +*/ +const static struct pci_device_id microsoft_hv_pci_table[] = { + {PCI_DEVICE (0x1414 ,0x5353 ) },/* VGA compatible controller */ + {0 } +}; +MODULE_DEVICE_TABLE (pci, microsoft_hv_pci_table); +MODULE_LICENSE ("GPL" );module_param (vmbus_irq, int,S_IRUGO );module_param (vmbus_loglevel, int,S_IRUGO );
drivers/staging/mimio/Kconfig deleted +0 -10
@@ -1,10 +0,0 @@ -config INPUT_MIMIO - tristate "Mimio Xi interactive whiteboard support" - depends on USB && INPUT - default N - help - Say Y here if you want to use a Mimio Xi interactive - whiteboard device. - - To compile this driver as a module, choose M here: the - module will be called mimio.
drivers/staging/mimio/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-$(CONFIG_INPUT_MIMIO) += mimio.o
drivers/staging/mimio/mimio.c deleted +0 -914
87 lines not on this page · raw message
drivers/usb/serial/ftdi_sio.h +4 -955
959 lines not on this page · raw message
drivers/usb/serial/ftdi_sio_ids.h new file +1019 -0
1,019 lines not on this page · raw message
drivers/usb/storage/unusual_devs.h +86 -2
88 lines not on this page · raw message
kernel/irq/chip.c +43 -9
52 lines not on this page · raw message
net/ipv6/netfilter/nf_conntrack_reasm.c +1 -0
Lines of this file are not shown. View the 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.