Linux 3.9.8
Greg KH
maintainerI'm announcing the release of the 3.9.8 kernel.
All users of the 3.9 kernel series must upgrade.
The updated 3.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.9.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/Kconfig | 10 arch/arm/mm/cache-v7.S | 8 arch/arm/mm/proc-v7.S | 4 arch/arm64/kernel/perf_event.c | 1 arch/parisc/Kconfig | 8 arch/parisc/Kconfig.debug | 11 arch/parisc/Makefile | 2 arch/parisc/include/asm/assembly.h | 1 arch/parisc/include/asm/hardirq.h | 38 ++ arch/parisc/include/asm/mmzone.h | 7 arch/parisc/include/asm/pci.h | 5 arch/parisc/include/asm/processor.h | 4 arch/parisc/include/asm/thread_info.h | 2 arch/parisc/include/asm/tlbflush.h | 2 arch/parisc/kernel/cache.c | 6 arch/parisc/kernel/drivers.c | 2 arch/parisc/kernel/entry.S | 60 +++- arch/parisc/kernel/hardware.c | 2 arch/parisc/kernel/irq.c | 198 +++++++++++++++ arch/parisc/kernel/pci.c | 27 ++ arch/parisc/kernel/setup.c | 3 arch/parisc/kernel/smp.c | 14 - arch/parisc/kernel/traps.c | 1 arch/parisc/kernel/unaligned.c | 3 arch/parisc/kernel/vmlinux.lds.S | 2 arch/parisc/mm/init.c | 4 arch/tile/lib/exports.c | 2 arch/x86/Kconfig | 1 arch/x86/include/asm/microcode.h | 4 arch/x86/kernel/cpu/mtrr/cleanup.c | 8 arch/x86/kernel/kvmclock.c | 1 arch/x86/kvm/x86.c | 5 arch/x86/platform/efi/efi.c | 7 drivers/acpi/dock.c | 2 drivers/acpi/power.c | 1 drivers/acpi/resource.c | 16 - drivers/base/firmware_class.c | 27 +- drivers/block/rbd.c | 6 drivers/clk/clk.c | 1 drivers/gpu/drm/drm_prime.c | 3 drivers/gpu/drm/radeon/radeon_gart.c | 6 drivers/gpu/drm/radeon/radeon_ring.c | 7 drivers/input/joystick/xpad.c | 2 drivers/input/keyboard/Kconfig | 1 drivers/input/serio/Kconfig | 1 drivers/input/touchscreen/cyttsp_core.c | 2 drivers/net/ethernet/freescale/fec.c | 44 ++- drivers/net/ethernet/freescale/fec.h | 10 drivers/net/ethernet/freescale/gianfar_ptp.c | 1 drivers/net/ethernet/realtek/8139cp.c | 1 drivers/net/ethernet/realtek/r8169.c | 41 ++- drivers/net/ethernet/renesas/sh_eth.c | 15 - drivers/net/macvtap.c | 9 drivers/net/phy/phy.c | 2 drivers/net/team/team.c | 2 drivers/net/team/team_mode_roundrobin.c | 2 drivers/net/tun.c | 24 + drivers/net/vxlan.c | 17 + drivers/net/wireless/ath/carl9170/tx.c | 69 ++--- drivers/net/wireless/brcm80211/brcmfmac/dhd_common.c | 18 - drivers/net/wireless/brcm80211/brcmfmac/fwil_types.h | 6 drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 40 +++ drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 134 +++++++--- drivers/net/wireless/rtlwifi/rtl8192cu/hw.h | 4 drivers/net/wireless/rtlwifi/rtl8192cu/mac.c | 18 + drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 4 drivers/net/wireless/rtlwifi/rtl8192cu/sw.h | 3 drivers/net/wireless/rtlwifi/usb.c | 13 + drivers/net/wireless/rtlwifi/wifi.h | 4 drivers/net/xen-netback/netback.c | 12 drivers/parisc/iosapic.c | 66 +++++ drivers/parport/parport_gsc.c | 6 drivers/parport/parport_gsc.h | 2 drivers/scsi/qla2xxx/tcm_qla2xxx.c | 6 drivers/spi/spi-pxa2xx-dma.c | 2 drivers/spi/spi-pxa2xx.c | 2 drivers/target/iscsi/iscsi_target_erl0.c | 4 drivers/tty/pty.c | 13 - drivers/tty/serial/8250/8250_gsc.c | 10 drivers/uio/uio.c | 1 drivers/usb/serial/ti_usb_3410_5052.c | 3 drivers/usb/serial/ti_usb_3410_5052.h | 4 drivers/vhost/net.c | 3 include/linux/perf_event.h | 3 include/linux/rculist_nulls.h | 7 include/linux/skbuff.h | 15 + include/linux/socket.h | 3 include/net/sch_generic.h | 18 - kernel/events/core.c | 233 ++++++++++++------ kernel/events/internal.h | 4 kernel/range.c | 21 - net/802/mrp.c | 4 net/compat.c | 13 - net/core/dev.c | 8 net/core/sock.c | 6 net/ipv4/ip_gre.c | 2 net/ipv4/ipip.c | 2 net/ipv4/route.c | 7 net/ipv4/tcp.c | 7 net/ipv4/tcp_input.c | 23 + net/ipv4/tcp_output.c | 10 net/ipv6/addrconf.c | 4 net/ipv6/ip6_output.c | 2 net/ipv6/udp_offload.c | 20 - net/l2tp/l2tp_ppp.c | 6 net/netlabel/netlabel_domainhash.c | 69 +++++ net/packet/af_packet.c | 26 +- net/sched/act_police.c | 8 net/sched/sch_generic.c | 8 net/sched/sch_htb.c | 42 +-- net/sched/sch_tbf.c | 8 net/sctp/outqueue.c | 8 net/sctp/socket.c | 6 net/socket.c | 61 +++- net/xfrm/xfrm_output.c | 1 sound/pci/hda/patch_cirrus.c | 23 + sound/usb/card.c | 22 + sound/usb/mixer.c | 1 119 files changed, 1412 insertions(+), 434 deletions(-)
Anders Hammarquist (1):
USB: serial: ti_usb_3410_5052: new device id for Abbot strip port cable
Andy Lutomirski (1):
net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg
Ben Hutchings (2):
x86/efi: Fix dummy variable buffer allocation
Input: add missing dependencies on CONFIG_HAS_IOMEM
Chen Gang (2):
parisc: memory overflow, 'name' length is too short for using
parisc: kernel: using strlcpy() instead of strcpy()
Chris Metcalf (1):
tilepro: work around module link error with gcc 4.7
Christian Lamparter (1):
carl9170: fix frame drop and WARN due to minstrel_ht change
Clemens Ladisch (1):
ALSA: usb-audio: work around Android accessory firmware bug
Damian Hobson-Garcia (1):
drivers: uio: Fix UIO device registration failure
Daniel Borkmann (2):
net: sctp: fix NULL pointer dereference in socket destruction
packet: packet_getname_spkt: make sure string is always 0-terminated
Eric Dumazet (8):
tcp: fix tcp_md5_hash_skb_data()
net/802/mrp: fix lockdep splat
ipv6: fix possible crashes in ip6_cork_release()
tcp: xps: fix reordering issues
ip_tunnel: fix kernel panic with icmp_dest_unreach
net: force a reload of first item in hlist_nulls_for_each_entry_rcu
net_sched: restore "overhead xxx" handling
net_sched: htb: do not mix 1ns and 64ns time units
Federico Vaga (1):
net/core/sock.c: add missing VSOCK string in af_family_*_key_strings
Ferruh Yigit (1):
Input: cyttsp - fix memcpy size param
Francois Romieu (1):
r8169: fix offloaded tx checksum for small packets.
Frank Li (1):
net: fec: fix kernel oops when plug/unplug cable many times
Gao feng (1):
ipv6: assign rt6_info to inet6_ifaddr in init_loopback
Giuseppe CAVALLARO (1):
net: phy: fix a bug when verify the EEE support
Greg Kroah-Hartman (1):
Linux 3.9.8
Gregory CLEMENT (1):
ARM: 7754/1: Fix the CPU ID and the mask associated to the PJ4B
Guillaume Nault (2):
l2tp: Fix PPP header erasure and memory leak
l2tp: Fix sendmsg() return value
Hante Meuleman (1):
brcmfmac: Turn off ARP offloading when configured for AP.
Helge Deller (11):
parisc: add kernel stack overflow check
parisc: implement irq stacks
parisc: more irq statistics in /proc/interrupts
parisc: tlb flush counting fix for SMP and UP
parisc: implement irq stacks - part 2 (v2)
parisc: add rp5470 entry to machine database
parisc: show number of FPE and unaligned access handler calls in /proc/interrupts
parisc: fix irq stack on UP and SMP
parisc: fix kernel BUG at arch/parisc/include/asm/mmzone.h:50
parisc: parport0: fix this legacy no-device port driver!
parisc: fix kernel BUG at arch/parisc/include/asm/mmzone.h:50 (part 2)
Igor Mammedov (1):
x86: kvmclock: zero initialize pvclock shared memory area
Jason Wang (9):
tuntap: forbid changing mq flag for persistent device
vhost_net: clear msg.control for non-zerocopy case during tx
tuntap: set SOCK_ZEROCOPY flag during open
tuntap: correct the return value in tun_set_iff()
macvtap: set transport header before passing skb to lower device
tuntap: set transport header before passing it to kernel
packet: set transport header before doing xmit
netback: set transport header before passing it to kernel
net_sched: better precise estimation on packet length for untrusted packets
Jed Davis (1):
perf: arm64: Record the user-mode PC in the call chain.
Jerome Glisse (2):
drm/radeon: do not try to uselessly update virtual memory pagetable drm/radeon: update lockup tracking when scheduling in empty ring
Jiri Pirko (2):
team: check return value of team_get_port_by_index_rcu() for NULL
team: move add to port list before port enablement
Joern Engel (1):
target/iscsi: don't corrupt bh_count in iscsit_stop_time2retain_timer()
John David Anglin (1):
parisc: make interrupt and interruption stack allocation reentrant
Jon Medhurst (1):
ARM: 7752/1: errata: LoUIS bit field in CLIDR register is incorrect
Josh Durgin (1):
rbd: use the correct length for format 2 object names
Lai Jiangshan (1):
clk: remove notifier from list before freeing it
Larry Finger (1):
rtlwifi: rtl8192cu: Fix problem in connecting to WEP or WPA(1) networks
Laurent Pinchart (1):
drm/prime: Honor requested file flags when exporting a buffer
Michal Kubecek (1):
ipv4: fix redirect handling for TCP packets
Mika Westerberg (3):
ACPI / resources: call acpi_get_override_irq() only for legacy IRQ resources spi/pxa2xx: use GFP_ATOMIC in sg table allocation
spi/pxa2xx: fix memory corruption due to wrong size used in devm_kzalloc()
Ming Lei (1):
firmware loader: fix use-after-free by double abort
Nandita Dukkipati (1):
tcp: bug fix in proportional rate reduction.
Neil Horman (1):
sctp: fully initialize sctp_outq in sctp_outq_init
Paul Bolle (1):
parisc: rename "CONFIG_PA7100" to "CONFIG_PA7000"
Paul Gortmaker (1):
x86: Fix section mismatch on load_ucode_ap
Paul Moore (1):
netlabel: improve domain mapping validation
Peter Hurley (1):
tty: Fix transient pty write() EIO
Peter Zijlstra (2):
perf: Fix perf mmap bugs
perf: Fix mmap() accounting hole
Pravin B Shelar (1):
udp6: Fix udp fragmentation for tunnel traffic.
Rafael J. Wysocki (2):
ACPI / dock: Take ACPI scan lock in write_undock() ACPI / PM: Fix error code path for power resources initialization
Randy Dunlap (1):
x86: fix build error and kconfig for ia32_emulation and binfmt
Roland Dreier (1):
tcm_qla2xxx: Fix residual for underrun commands that fail
Shawn Joseph (1):
Input: xpad - fix for "Mad Catz Street Fighter IV FightPad" controllers
Sridhar Samudrala (1):
vxlan: Update vxlan fdb 'used' field after each usage
Takashi Iwai (2):
ALSA: usb-audio: Fix invalid volume resolution for Logitech HD Webcam c310
ALSA: hda - Fix pin configurations for MacBook Air 4,2
Thomas Bogendoerfer (2):
parisc: fix serial ports on C8000 workstation
parisc: provide pci_mmap_page_range() for parisc
Timo Teräs (1):
xfrm: properly handle invalid states as an error
Wei Yongjun (1):
gianfar: add missing iounmap() on error in gianfar_ptp_probe()
Yinghai Lu (2):
range: Do not add new blank slot with add_range_with_merge x86, mtrr: Fix original mtrr range get for mtrr_cleanup
Yoshihiro Shimoda (1):
net: sh_eth: fix incorrect RX length error if R8A7740
Zhanghaoyu (A) (1):
KVM: x86: remove vcpu's CPL check in host-invoked XCR set
Zhao Hongjiang (1):
parisc: remove the second argument of kmap_atomic()
stephen hemminger (1):
8139cp: reset BQL when ring tx ring cleared
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 9 -SUBLEVEL = 7 +SUBLEVEL = 8 EXTRAVERSION = NAME = Black Squirrel Wakeup Call
arch/arm/Kconfig +10 -0
@@ -1306,6 +1306,16 @@ config PL310_ERRATA_588369 is not correctly implemented in PL310 as clean lines are not invalidated as a result of these operations. +config ARM_ERRATA_643719 + bool "ARM errata: LoUIS bit field in CLIDR register is incorrect" + depends on CPU_V7 && SMP + help + This option enables the workaround for the 643719 Cortex-A9 (prior to + r1p0) erratum. On affected cores the LoUIS bit field of the CLIDR + register returns zero when it should return one. The workaround + corrects this value, ensuring cache maintenance operations which use + it behave as intended and avoiding data corruption. + config ARM_ERRATA_720789 bool "ARM errata: TLBIASIDIS and TLBIMVAIS operations can broadcast a faulty ASID" depends on CPU_V7
arch/arm/mm/cache-v7.S +8 -0
@@ -92,6 +92,14 @@ ENTRY(v7_flush_dcache_louis) mrc p15, 1, r0, c0, c0, 1 @ read clidr, r0 = clidr ALT_SMP(ands r3, r0, #(7 << 21)) @ extract LoUIS from clidr ALT_UP(ands r3, r0, #(7 << 27)) @ extract LoUU from clidr +#ifdef CONFIG_ARM_ERRATA_643719 + ALT_SMP(mrceq p15, 0, r2, c0, c0, 0) @ read main ID register + ALT_UP(moveq pc, lr) @ LoUU is zero, so nothing to do + ldreq r1, =0x410fc090 @ ID of ARM Cortex A9 r0p? + biceq r2, r2, #0x0000000f @ clear minor revision number + teqeq r2, r1 @ test for errata affected core and if so... + orreqs r3, #(1 << 21) @ fix LoUIS value (and set flags state to 'ne') +#endif ALT_SMP(mov r3, r3, lsr #20) @ r3 = LoUIS * 2 ALT_UP(mov r3, r3, lsr #26) @ r3 = LoUU * 2 moveq pc, lr @ return if level == 0
arch/arm/mm/proc-v7.S +2 -2
@@ -407,8 +407,8 @@ __v7_ca9mp_proc_info: */ .type __v7_pj4b_proc_info, #object __v7_pj4b_proc_info: - .long 0x562f5840 - .long 0xfffffff0 + .long 0x560f5800 + .long 0xff0fff00 __v7_proc __v7_pj4b_setup .size __v7_pj4b_proc_info, . - __v7_pj4b_proc_info #endif /* CONFIG_ARM_LPAE */
arch/arm64/kernel/perf_event.c +1 -0
@@ -1336,6 +1336,7 @@ void perf_callchain_user(struct perf_callchain_entry *entry,return ; } +perf_callchain_store (entry, regs->pc); tail = (struct frame_tail __user *)regs->regs[29 ]; while (entry->nr < PERF_MAX_STACK_DEPTH &&
arch/parisc/Kconfig +8 -0
@@ -241,6 +241,14 @@ config SMP If you don't know what to do here, say N. +config IRQSTACKS + bool "Use separate kernel stacks when processing interrupts" + default y + help + If you say Y here the kernel will use separate kernel stacks + for handling hard and soft interrupts. This can help avoid + overflowing the process kernel stacks. + config HOTPLUG_CPU bool default y if SMP
arch/parisc/Kconfig.debug +11 -0
@@ -27,3 +27,14 @@ config DEBUG_STRICT_USER_COPY_CHECKS If unsure, or if you run an older (pre 4.4) gcc, say N. endmenu + +config DEBUG_STACKOVERFLOW + bool "Check for stack overflows" + default y + depends on DEBUG_KERNEL + ---help--- + Say Y here if you want to check the overflows of kernel, IRQ + and exception stacks. This option will cause messages of the + stacks in detail when free stack space drops below a certain + limit. + If in doubt, say "N".
arch/parisc/Makefile +1 -1
@@ -66,7 +66,7 @@ KBUILD_CFLAGS_KERNEL += -mlong-calls endif # select which processor to optimise for -cflags-$(CONFIG_PA7100) += -march=1.1 -mschedule=7100 +cflags-$(CONFIG_PA7000) += -march=1.1 -mschedule=7100 cflags-$(CONFIG_PA7200) += -march=1.1 -mschedule=7200 cflags-$(CONFIG_PA7100LC) += -march=1.1 -mschedule=7100LC cflags-$(CONFIG_PA7300LC) += -march=1.1 -mschedule=7300
arch/parisc/include/asm/assembly.h +0 -1
@@ -438,7 +438,6 @@ SAVE_SP (%sr4, PT_SR4 (\regs)) SAVE_SP (%sr5, PT_SR5 (\regs)) SAVE_SP (%sr6, PT_SR6 (\regs)) - SAVE_SP (%sr7, PT_SR7 (\regs)) SAVE_CR (%cr17, PT_IASQ0(\regs)) mtctl %r0, %cr17
arch/parisc/include/asm/hardirq.h +37 -1
@@ -1,11 +1,47 @@/* hardirq.h: PA-RISC hard IRQ support. * * Copyright (C) 2001 Matthew Wilcox <[email protected]> +* Copyright (C) 2013 Helge Deller <[email protected]> */ #ifndef _PARISC_HARDIRQ_H#define _PARISC_HARDIRQ_H -#include <asm-generic/hardirq.h> +#include <linux/cache.h> +#include <linux/threads.h> +#include <linux/irq.h> + +#ifdef CONFIG_IRQSTACKS +#define __ARCH_HAS_DO_SOFTIRQ +#endif + +typedef struct { +unsigned int __softirq_pending; +unsigned int kernel_stack_usage; +unsigned int irq_stack_usage; +#ifdef CONFIG_SMP +unsigned int irq_resched_count; +unsigned int irq_call_count; +#endif +unsigned int irq_unaligned_count; +unsigned int irq_fpassist_count; +unsigned int irq_tlb_count; +}____cacheline_aligned irq_cpustat_t ; + +DECLARE_PER_CPU_SHARED_ALIGNED (irq_cpustat_t, irq_stat); + +#define __ARCH_IRQ_STAT +#define __IRQ_STAT (cpu, member) (irq_stat[cpu].member) +#define inc_irq_stat (member) this_cpu_inc(irq_stat.member) +#define __inc_irq_stat (member) __this_cpu_inc(irq_stat.member) +#define local_softirq_pending () this_cpu_read(irq_stat.__softirq_pending) + +#define __ARCH_SET_SOFTIRQ_PENDING + +#define set_softirq_pending (x) \ + this_cpu_write(irq_stat.__softirq_pending, (x)) +#define or_softirq_pending (x) this_cpu_or(irq_stat.__softirq_pending, (x)) + +#define ack_bad_irq (irq) WARN(1, "unexpected IRQ trap at vector %02x\n", irq)#endif /* _PARISC_HARDIRQ_H */
arch/parisc/include/asm/mmzone.h +2 -5
@@ -27,7 +27,7 @@ extern struct node_map_data node_data[];#define PFNNID_SHIFT (30 - PAGE_SHIFT)#define PFNNID_MAP_MAX 512/* support 512GB */ -extern unsigned char pfnnid_map[PFNNID_MAP_MAX ]; +extern signed char pfnnid_map[PFNNID_MAP_MAX ];#ifndef CONFIG_64BIT #define pfn_is_io (pfn) ((pfn & (0xf0000000UL >> PAGE_SHIFT)) == (0xf0000000UL >> PAGE_SHIFT))
@@ -39,17 +39,14 @@ extern unsigned char pfnnid_map[PFNNID_MAP_MAX];static inline int pfn_to_nid (unsigned long pfn) {unsigned int i; -unsigned char r;if (unlikely (pfn_is_io (pfn)))return 0 ; i = pfn >>PFNNID_SHIFT ;BUG_ON (i >=ARRAY_SIZE (pfnnid_map)); - r = pfnnid_map[i]; -BUG_ON (r ==0xff ); -return (int )r; +return pfnnid_map[i]; }static inline int pfn_valid (int pfn)
arch/parisc/include/asm/pci.h +5 -0
@@ -225,4 +225,9 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) return channel ? 15 : 14; } +#define HAVE_PCI_MMAP + +extern int pci_mmap_page_range (struct pci_dev *dev,struct vm_area_struct *vma, +enum pci_mmap_state mmap_state,int write_combine); +#endif /* __ASM_PARISC_PCI_H */
arch/parisc/include/asm/processor.h +0 -4
@@ -17,11 +17,8 @@#include <asm/ptrace.h> #include <asm/types.h> #include <asm/percpu.h> -#endif /* __ASSEMBLY__ */ -#define KERNEL_STACK_SIZE (4*PAGE_SIZE) -/* * Default implementation of macro that returns current * instruction pointer ("program counter").
@@ -97,7 +94,6 @@ struct cpuinfo_parisc {unsigned long txn_addr;/* MMIO addr of EIR or id_eid */ #ifdef CONFIG_SMP unsigned long pending_ipi;/* bitmap of type ipi_message_type */ -unsigned long ipi_count;/* number ipi Interrupts */ #endif unsigned long bh_count;/* number of times bh was invoked */ unsigned long prof_counter;/* per CPU profiling support */
arch/parisc/include/asm/thread_info.h +1 -1
@@ -40,7 +40,7 @@ struct thread_info {/* thread information allocation */ -#define THREAD_SIZE_ORDER 2 +#define THREAD_SIZE_ORDER 2/* PA-RISC requires at least 16k stack */ /* Be sure to hunt all references to this down when you change the size of * the kernel stack */ #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
arch/parisc/include/asm/tlbflush.h +2 -0
@@ -22,6 +22,8 @@ extern spinlock_t pa_tlb_lock;extern void flush_tlb_all (void );extern void flush_tlb_all_local (void *); +#define smp_flush_tlb_all () flush_tlb_all() +/* * flush_tlb_mm() *
arch/parisc/kernel/cache.c +3 -3
@@ -606,7 +606,7 @@ void clear_user_highpage(struct page *page, unsigned long vaddr)/* Clear using TMPALIAS region. The page doesn't need to be flushed but the kernel mapping needs to be purged. */ - vto =kmap_atomic (page,KM_USER0 ); + vto =kmap_atomic (page);/* The PA-RISC 2.0 Architecture book states on page F-6: "Before a write-capable translation is enabled, *all*
@@ -641,8 +641,8 @@ void copy_user_highpage(struct page *to, struct page *from,the `to' page must be flushed in copy_user_page_asm since it can be used to bring in executable code. */ - vfrom =kmap_atomic (from,KM_USER0 ); - vto =kmap_atomic (to,KM_USER1 ); + vfrom =kmap_atomic (from); + vto =kmap_atomic (to);purge_kernel_dcache_page_asm ((unsigned long )vto);purge_tlb_start (flags);
arch/parisc/kernel/drivers.c +1 -1
@@ -394,7 +394,7 @@ EXPORT_SYMBOL(print_pci_hwpath);static void setup_bus_id (struct parisc_device *padev) {struct hardware_path path; -char name[20 ]; +char name[28 ];char *output = name;int i;
arch/parisc/kernel/entry.S +51 -9
99 lines not on this page · raw message
arch/parisc/kernel/hardware.c +2 -0
@@ -222,6 +222,7 @@ static struct hp_hardware hp_hardware_list[] = { {HPHW_NPROC,0x5DD,0x4,0x81,"Duet W2"}, {HPHW_NPROC,0x5DE,0x4,0x81,"Piccolo W+"}, {HPHW_NPROC,0x5DF,0x4,0x81,"Cantata W2"}, + {HPHW_NPROC,0x5DF,0x0,0x00,"Marcato W+? (rp5470)"}, {HPHW_NPROC,0x5E0,0x4,0x91,"Cantata DC- W2"}, {HPHW_NPROC,0x5E1,0x4,0x91,"Crescendo DC- W2"}, {HPHW_NPROC,0x5E2,0x4,0x91,"Crescendo 650 W2"},
@@ -1204,6 +1205,7 @@ static struct hp_hardware hp_hardware_list[] = { {HPHW_FIO, 0x004, 0x00320, 0x0, "Metheus Frame Buffer"}, {HPHW_FIO, 0x004, 0x00340, 0x0, "BARCO CX4500 VME Grphx Cnsl"}, {HPHW_FIO, 0x004, 0x00360, 0x0, "Hughes TOG VME FDDI"}, + {HPHW_FIO, 0x076, 0x000AD, 0x00, "Crestone Peak RS-232"}, {HPHW_IOA, 0x185, 0x0000B, 0x00, "Java BC Summit Port"}, {HPHW_IOA, 0x1FF, 0x0000B, 0x00, "Hitachi Ghostview Summit Port"}, {HPHW_IOA, 0x580, 0x0000B, 0x10, "U2-IOA BC Runway Port"},
arch/parisc/kernel/irq.c +195 -3
237 lines not on this page · raw message
arch/parisc/kernel/pci.c +27 -0
@@ -220,6 +220,33 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res, } +int pci_mmap_page_range (struct pci_dev *dev,struct vm_area_struct *vma, +enum pci_mmap_state mmap_state,int write_combine) +{ +unsigned long prot; + +/* +* I/O space can be accessed via normal processor loads and stores on +* this platform but for now we elect not to do this and portable +* drivers should not do this anyway. +*/ +if (mmap_state == pci_mmap_io) +return -EINVAL ; + +if (write_combine) +return -EINVAL ; + +/* +* Ignore write-combine; for now only return uncached mappings. +*/ + prot =pgprot_val (vma->vm_page_prot); + prot |= _PAGE_NO_CACHE; + vma->vm_page_prot =__pgprot (prot); + +return remap_pfn_range (vma, vma->vm_start, vma->vm_pgoff, + vma->vm_end - vma->vm_start, vma->vm_page_prot); +} +/* * A driver is enabling the device. We make sure that all the appropriate * bits are set to allow the device to operate as the driver is expecting.
arch/parisc/kernel/setup.c +2 -1
@@ -69,7 +69,8 @@ void __init setup_cmdline(char **cmdline_p)/* called from hpux boot loader */ boot_command_line[0 ] ='\0' ; }else { -strcpy (boot_command_line, (char *)__va (boot_args[1 ])); +strlcpy (boot_command_line, (char *)__va (boot_args[1 ]), +COMMAND_LINE_SIZE );#ifdef CONFIG_BLK_DEV_INITRD if (boot_args[2 ] !=0 )/* did palo pass us a ramdisk? */
arch/parisc/kernel/smp.c +2 -12
@@ -127,7 +127,7 @@ ipi_interrupt(int irq, void *dev_id)unsigned long flags;/* Count this now; we may make a call that never returns. */ - p->ipi_count++; +inc_irq_stat (irq_call_count);mb ();/* Order interrupt and bit testing. */
@@ -155,6 +155,7 @@ ipi_interrupt(int irq, void *dev_id)case IPI_RESCHEDULE :smp_debug (100 ,KERN_DEBUG "CPU%d IPI_RESCHEDULE\n" , this_cpu); +inc_irq_stat (irq_resched_count);scheduler_ipi ();break ;
@@ -263,17 +264,6 @@ void arch_send_call_function_single_ipi(int cpu) }/* -* Flush all other CPU's tlb and then mine. Do this with on_each_cpu() -* as we want to ensure all TLB's flushed before proceeding. -*/ - -void -smp_flush_tlb_all (void ) -{ -on_each_cpu (flush_tlb_all_local,NULL ,1 ); -} - -/* * Called by secondaries to update state and initialize CPU registers. */ static void __init
arch/parisc/kernel/traps.c +1 -0
@@ -652,6 +652,7 @@ void notrace handle_interruption(int code, struct pt_regs *regs)case 14 :/* Assist Exception Trap, i.e. floating point exception. */ die_if_kernel ("Floating point exception" , regs,0 );/* quiet */ +__inc_irq_stat (irq_fpassist_count);handle_fpe (regs);return ;
arch/parisc/kernel/unaligned.c +3 -0
@@ -27,6 +27,7 @@#include <linux/signal.h> #include <linux/ratelimit.h> #include <asm/uaccess.h> +#include <asm/hardirq.h> /* #define DEBUG_UNALIGNED 1 */
@@ -454,6 +455,8 @@ void handle_unaligned(struct pt_regs *regs)struct siginfo si; registerint flop=0 ;/* true if this is a flop */ +__inc_irq_stat (irq_unaligned_count); +/* log a message with pacing */ if (user_mode (regs)) {if (current->thread.flags &PARISC_UAC_SIGBUS ) {
arch/parisc/kernel/vmlinux.lds.S +1 -1
@@ -95,7 +95,7 @@ SECTIONS NOTES /* Data */ - RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) + RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, PAGE_SIZE) /* PA-RISC locks requires 16-byte alignment */ . = ALIGN(16);
arch/parisc/mm/init.c +3 -1
@@ -47,7 +47,7 @@ pte_t pg0[PT_INITIAL * PTRS_PER_PTE] __attribute__ ((__section__ (".data..vm0.pt#ifdef CONFIG_DISCONTIGMEM struct node_map_data node_data[MAX_NUMNODES ]__read_mostly ; -unsigned char pfnnid_map[PFNNID_MAP_MAX ]__read_mostly ; +signed char pfnnid_map[PFNNID_MAP_MAX ]__read_mostly ;#endif static struct resource data_resource = {
@@ -1077,6 +1077,7 @@ void flush_tlb_all(void) {int do_recycle; +__inc_irq_stat (irq_tlb_count); do_recycle =0 ;spin_lock (&sid_lock);if (dirty_space_ids >RECYCLE_THRESHOLD ) {
@@ -1097,6 +1098,7 @@ void flush_tlb_all(void)#else void flush_tlb_all (void ) { +__inc_irq_stat (irq_tlb_count);spin_lock (&sid_lock);flush_tlb_all_local (NULL );recycle_sids ();
arch/tile/lib/exports.c +2 -0
@@ -84,4 +84,6 @@ uint64_t __ashrdi3(uint64_t, unsigned int);EXPORT_SYMBOL (__ashrdi3);uint64_t __ashldi3 (uint64_t ,unsigned int );EXPORT_SYMBOL (__ashldi3); +int __ffsdi2 (uint64_t ); +EXPORT_SYMBOL (__ffsdi2);#endif
arch/x86/Kconfig +1 -0
@@ -2268,6 +2268,7 @@ source "fs/Kconfig.binfmt" config IA32_EMULATION bool "IA32 Emulation" depends on X86_64 + select BINFMT_ELF select COMPAT_BINFMT_ELF select HAVE_UID16 ---help---
arch/x86/include/asm/microcode.h +2 -2
@@ -60,11 +60,11 @@ static inline void __exit exit_amd_microcode(void) {}#ifdef CONFIG_MICROCODE_EARLY #define MAX_UCODE_COUNT 128extern void __init load_ucode_bsp (void ); -extern __init void load_ucode_ap (void ); +extern void __cpuinit load_ucode_ap (void );extern int __init save_microcode_in_initrd (void );#else static inline void __init load_ucode_bsp (void ) {} -static inline __init void load_ucode_ap (void ) {} +static inline void __cpuinit load_ucode_ap (void ) {}static inline int __init save_microcode_in_initrd (void ) {return 0 ;
arch/x86/kernel/cpu/mtrr/cleanup.c +4 -4
@@ -714,15 +714,15 @@ int __init mtrr_cleanup(unsigned address_bits)if (mtrr_tom2) x_remove_size = (mtrr_tom2 >>PAGE_SHIFT ) - x_remove_base; - nr_range =x86_get_mtrr_mem_range (range,0 , x_remove_base, x_remove_size);/* * [0, 1M) should always be covered by var mtrr with WB * and fixed mtrrs should take effect before var mtrr for it: */ - nr_range =add_range_with_merge (range,RANGE_NUM , nr_range,0 , + nr_range =add_range_with_merge (range,RANGE_NUM ,0 ,0 ,1ULL <<(20 -PAGE_SHIFT )); -/* Sort the ranges: */ -sort_range (range, nr_range); +/* add from var mtrr at last */ + nr_range =x86_get_mtrr_mem_range (range, nr_range, + x_remove_base, x_remove_size); range_sums =sum_ranges (range, nr_range); printk(KERN_INFO "total RAM covered: %ldM\n",
arch/x86/kernel/kvmclock.c +1 -0
@@ -238,6 +238,7 @@ void __init kvmclock_init(void)if (!mem)return ; hv_clock =__va (mem); +memset (hv_clock,0 , size);if (kvm_register_clock ("boot clock" )) { hv_clock =NULL ;
arch/x86/kvm/x86.c +2 -3
@@ -558,8 +558,6 @@ int __kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr)if (index !=XCR_XFEATURE_ENABLED_MASK )return 1 ; xcr0 = xcr; -if (kvm_x86_ops->get_cpl (vcpu) !=0 ) -return 1 ;if (!(xcr0 &XSTATE_FP ))return 1 ;if ((xcr0 &XSTATE_YMM ) && !(xcr0 &XSTATE_SSE ))
@@ -573,7 +571,8 @@ int __kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr)int kvm_set_xcr (struct kvm_vcpu *vcpu,u32 index,u64 xcr) { -if (__kvm_set_xcr (vcpu, index, xcr)) { +if (kvm_x86_ops->get_cpl (vcpu) !=0 || +__kvm_set_xcr (vcpu, index, xcr)) {kvm_inject_gp (vcpu,0 );return 1 ; }
arch/x86/platform/efi/efi.c +6 -1
@@ -1059,7 +1059,10 @@ efi_status_t efi_query_variable_store(u32 attributes, unsigned long size)* that by attempting to use more space than is available. */ unsigned long dummy_size = remaining_size +1024 ; -void *dummy =kmalloc (dummy_size,GFP_ATOMIC ); +void *dummy =kzalloc (dummy_size,GFP_ATOMIC ); + +if (!dummy) +return EFI_OUT_OF_RESOURCES ; status = efi.set_variable(efi_dummy_name, &EFI_DUMMY_GUID, EFI_VARIABLE_NON_VOLATILE |
@@ -1079,6 +1082,8 @@ efi_status_t efi_query_variable_store(u32 attributes, unsigned long size) 0, dummy); } +kfree (dummy); +/* * The runtime code may now have triggered a garbage collection * run, so check the variable info again
drivers/acpi/dock.c +2 -0
@@ -868,8 +868,10 @@ static ssize_t write_undock(struct device *dev, struct device_attribute *attr,if (!count)return -EINVAL ; +acpi_scan_lock_acquire ();begin_undock (dock_station); ret =handle_eject_request (dock_station,ACPI_NOTIFY_EJECT_REQUEST ); +acpi_scan_lock_release ();return ret ? ret: count; } static DEVICE_ATTR(undock, S_IWUSR, NULL, write_undock);
drivers/acpi/power.c +1 -0
@@ -865,6 +865,7 @@ int acpi_add_power_resource(acpi_handle handle) ACPI_STA_DEFAULT);mutex_init (&resource->resource_lock);INIT_LIST_HEAD (&resource->dependent); +INIT_LIST_HEAD (&resource->list_node); resource->name = device->pnp.bus_id;strcpy (acpi_device_name (device),ACPI_POWER_DEVICE_NAME );strcpy (acpi_device_class (device),ACPI_POWER_CLASS );
drivers/acpi/resource.c +11 -5
@@ -304,7 +304,8 @@ static void acpi_dev_irqresource_disabled(struct resource *res, u32 gsi) }static void acpi_dev_get_irqresource (struct resource *res,u32 gsi, -u8 triggering,u8 polarity,u8 shareable) +u8 triggering,u8 polarity,u8 shareable, +bool legacy) {int irq, p, t;
@@ -317,14 +318,19 @@ static void acpi_dev_get_irqresource(struct resource *res, u32 gsi,* In IO-APIC mode, use overrided attribute. Two reasons: * 1. BIOS bug in DSDT * 2. BIOS uses IO-APIC mode Interrupt Source Override +* +* We do this only if we are dealing with IRQ() or IRQNoFlags() +* resource (the legacy ISA resources). With modern ACPI 5 devices +* using extended IRQ descriptors we take the IRQ configuration +* from _CRS directly. */ -if (!acpi_get_override_irq (gsi, &t, &p)) { +if (legacy && !acpi_get_override_irq (gsi, &t, &p)) {u8 trig = t ?ACPI_LEVEL_SENSITIVE :ACPI_EDGE_SENSITIVE ;u8 pol = p ?ACPI_ACTIVE_LOW :ACPI_ACTIVE_HIGH ;if (triggering != trig || polarity != pol) {pr_warning ("ACPI: IRQ %d override to %s, %s\n" , gsi, - t ?"edge" :"level" , p ?"low" :"high" ); + t ?"level" :"edge" , p ?"low" :"high" ); triggering = trig; polarity = pol; }
@@ -373,7 +379,7 @@ bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index, }acpi_dev_get_irqresource (res, irq->interrupts[index], irq->triggering, irq->polarity, - irq->sharable); + irq->sharable, true);break ;case ACPI_RESOURCE_TYPE_EXTENDED_IRQ : ext_irq = &ares->data.extended_irq;
@@ -383,7 +389,7 @@ bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index, }acpi_dev_get_irqresource (res, ext_irq->interrupts[index], ext_irq->triggering, ext_irq->polarity, - ext_irq->sharable); + ext_irq->sharable, false);break ;default :return false;
drivers/base/firmware_class.c +18 -9
@@ -450,8 +450,18 @@ static void fw_load_abort(struct firmware_priv *fw_priv) {struct firmware_buf *buf = fw_priv->buf; +/* +* There is a small window in which user can write to 'loading' +* between loading done and disappearance of 'loading' +*/ +if (test_bit (FW_STATUS_DONE , &buf->status)) +return ; +set_bit (FW_STATUS_ABORT , &buf->status);complete_all (&buf->completion); + +/* avoid user action after loading abort */ + fw_priv->buf =NULL ; }#define is_fw_load_aborted (buf) \
@@ -528,7 +538,12 @@ static ssize_t firmware_loading_show(struct device *dev, struct device_attribute *attr, char *buf) { struct firmware_priv *fw_priv = to_firmware_priv(dev); -int loading =test_bit (FW_STATUS_LOADING , &fw_priv->buf->status); +int loading =0 ; + +mutex_lock (&fw_lock); +if (fw_priv->buf) + loading =test_bit (FW_STATUS_LOADING , &fw_priv->buf->status); +mutex_unlock (&fw_lock);return sprintf (buf,"%d\n" , loading); }
@@ -570,12 +585,12 @@ static ssize_t firmware_loading_store(struct device *dev, const char *buf, size_t count) {struct firmware_priv *fw_priv =to_firmware_priv (dev); -struct firmware_buf *fw_buf = fw_priv->buf; +struct firmware_buf *fw_buf;int loading =simple_strtol (buf,NULL ,10 );int i;mutex_lock (&fw_lock); - + fw_buf = fw_priv->buf;if (!fw_buf) goto out;
@@ -777,10 +792,6 @@ static void firmware_class_timeout_work(struct work_struct *work) struct firmware_priv, timeout_work.work);mutex_lock (&fw_lock); -if (test_bit (FW_STATUS_DONE , &(fw_priv->buf->status))) { -mutex_unlock (&fw_lock); -return ; - }fw_load_abort (fw_priv);mutex_unlock (&fw_lock); }
@@ -861,8 +872,6 @@ static int _request_firmware_load(struct firmware_priv *fw_priv, bool uevent,cancel_delayed_work_sync (&fw_priv->timeout_work); - fw_priv->buf =NULL ; -device_remove_file (f_dev, &dev_attr_loading); err_del_bin_attr:device_remove_bin_file (f_dev, &firmware_attr_data);
drivers/block/rbd.c +5 -1
@@ -833,12 +833,16 @@ static const char *rbd_segment_name(struct rbd_device *rbd_dev, u64 offset)char *name;u64 segment;int ret; +char *name_format; name =kmalloc (MAX_OBJ_NAME_SIZE +1 ,GFP_NOIO );if (!name)return NULL ; segment = offset >> rbd_dev->header.obj_order; - ret =snprintf (name,MAX_OBJ_NAME_SIZE +1 ,"%s.%012llx" , + name_format ="%s.%012llx" ; +if (rbd_dev->image_format ==2 ) + name_format ="%s.%016llx" ; + ret =snprintf (name,MAX_OBJ_NAME_SIZE +1 , name_format, rbd_dev->header.object_prefix, segment);if (ret <0 || ret >MAX_OBJ_NAME_SIZE ) { pr_err("error formatting segment name for #%llu (%d)\n",
drivers/clk/clk.c +1 -0
@@ -1759,6 +1759,7 @@ int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb)/* XXX the notifier code should handle this better */ if (!cn->notifier_head.head) {srcu_cleanup_notifier_head (&cn->notifier_head); +list_del (&cn->node);kfree (cn); }
drivers/gpu/drm/drm_prime.c +1 -2
@@ -190,8 +190,7 @@ struct dma_buf *drm_gem_prime_export(struct drm_device *dev,if (ret)return ERR_PTR (ret); } -return dma_buf_export (obj, &drm_gem_prime_dmabuf_ops, obj->size, -0600 ); +return dma_buf_export (obj, &drm_gem_prime_dmabuf_ops, obj->size, flags); }EXPORT_SYMBOL (drm_gem_prime_export);
drivers/gpu/drm/radeon/radeon_gart.c +4 -2
@@ -1197,11 +1197,13 @@ int radeon_vm_bo_update_pte(struct radeon_device *rdev,int radeon_vm_bo_rmv (struct radeon_device *rdev,struct radeon_bo_va *bo_va) { -int r; +int r =0 ;mutex_lock (&rdev->vm_manager.lock);mutex_lock (&bo_va->vm->mutex); - r =radeon_vm_bo_update_pte (rdev, bo_va->vm, bo_va->bo,NULL ); +if (bo_va->soffset) { + r =radeon_vm_bo_update_pte (rdev, bo_va->vm, bo_va->bo,NULL ); + }mutex_unlock (&rdev->vm_manager.lock);list_del (&bo_va->vm_list);mutex_unlock (&bo_va->vm->mutex);
drivers/gpu/drm/radeon/radeon_ring.c +7 -0
@@ -402,6 +402,13 @@ int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsireturn -ENOMEM ;/* Align requested size with padding so unlock_commit can * pad safely */ +radeon_ring_free_size (rdev, ring); +if (ring->ring_free_dw == (ring->ring_size /4 )) { +/* This is an empty ring update lockup info to avoid +* false positive. +*/ +radeon_ring_lockup_update (ring); + } ndw = (ndw + ring->align_mask) & ~ring->align_mask;while (ndw > (ring->ring_free_dw -1 )) {radeon_ring_free_size (rdev, ring);
drivers/input/joystick/xpad.c +1 -1
@@ -137,7 +137,7 @@ static const struct xpad_device { { 0x0738, 0x4540, "Mad Catz Beat Pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX }, { 0x0738, 0x4556, "Mad Catz Lynx Wireless Controller", 0, XTYPE_XBOX }, { 0x0738, 0x4716, "Mad Catz Wired Xbox 360 Controller", 0, XTYPE_XBOX360 }, - { 0x0738, 0x4728, "Mad Catz Street Fighter IV FightPad", XTYPE_XBOX360 }, + { 0x0738, 0x4728, "Mad Catz Street Fighter IV FightPad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x0738, 0x4738, "Mad Catz Wired Xbox 360 Controller (SFIV)", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x0738, 0x6040, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX }, { 0x0738, 0xbeef, "Mad Catz JOYTECH NEO SE Advanced GamePad", XTYPE_XBOX360 },
drivers/input/keyboard/Kconfig +1 -0
@@ -431,6 +431,7 @@ config KEYBOARD_TEGRA config KEYBOARD_OPENCORES tristate "OpenCores Keyboard Controller" + depends on HAS_IOMEM help Say Y here if you want to use the OpenCores Keyboard Controller http://www.opencores.org/project,keyboardcontroller
drivers/input/serio/Kconfig +1 -0
@@ -205,6 +205,7 @@ config SERIO_XILINX_XPS_PS2 config SERIO_ALTERA_PS2 tristate "Altera UP PS/2 controller" + depends on HAS_IOMEM help Say Y here if you have Altera University Program PS/2 ports.
drivers/input/touchscreen/cyttsp_core.c +1 -1
@@ -133,7 +133,7 @@ static int cyttsp_exit_bl_mode(struct cyttsp *ts)memcpy (bl_cmd, bl_command,sizeof (bl_command));if (ts->pdata->bl_keys)memcpy (&bl_cmd[sizeof (bl_command) -CY_NUM_BL_KEYS ], - ts->pdata->bl_keys,sizeof (bl_command)); + ts->pdata->bl_keys,CY_NUM_BL_KEYS ); error =ttsp_write_block_data (ts,CY_REG_BASE ,sizeof (bl_cmd), bl_cmd);
drivers/net/ethernet/freescale/fec.c +33 -11
97 lines not on this page · raw message
drivers/net/ethernet/freescale/fec.h +6 -4
@@ -191,6 +191,11 @@ struct bufdesc_ex {#define BD_ENET_RX_INT 0x00800000#define BD_ENET_RX_PTP ((ushort)0x0400) +struct fec_enet_delayed_work { +struct delayed_work delay_work; +bool timeout; +}; +/* The FEC buffer descriptors track the ring buffers. The rx_bd_base and * tx_bd_base always point to the base of the buffer descriptors. The * cur_rx and cur_tx point to the currently available buffer.
@@ -224,9 +229,6 @@ struct fec_enet_private {/* The ring entries to be free()ed */ struct bufdesc *dirty_tx; -/* hold while accessing the HW like ringbuffer for tx/rx but not MAC */ -spinlock_t hw_lock; -struct platform_device *pdev;int opened;
@@ -260,7 +262,7 @@ struct fec_enet_private {int hwts_rx_en;int hwts_tx_en;struct timer_list time_keep; - +struct fec_enet_delayed_work delay_work; };void fec_ptp_init (struct net_device *ndev,struct platform_device *pdev);
drivers/net/ethernet/freescale/gianfar_ptp.c +1 -0
@@ -521,6 +521,7 @@ static int gianfar_ptp_probe(struct platform_device *dev)return 0 ; no_clock: +iounmap (etsects->regs); no_ioremap:release_resource (etsects->rsrc); no_resource:
drivers/net/ethernet/realtek/8139cp.c +1 -0
@@ -1136,6 +1136,7 @@ static void cp_clean_rings (struct cp_private *cp) cp->dev->stats.tx_dropped++; } } +netdev_reset_queue (cp->dev);memset (cp->rx_ring,0 ,sizeof (struct cp_desc ) *CP_RX_RING_SIZE );memset (cp->tx_ring,0 ,sizeof (struct cp_desc ) *CP_TX_RING_SIZE );
drivers/net/ethernet/realtek/r8169.c +27 -14
75 lines not on this page · raw message
drivers/net/ethernet/renesas/sh_eth.c +11 -4
@@ -1100,16 +1100,23 @@ static int sh_eth_rx(struct net_device *ndev, u32 intr_status) desc_status =edmac_to_cpu (mdp, rxdesc->status); pkt_len = rxdesc->frame_length; -#if defined(CONFIG_ARCH_R8A7740 ) - desc_status >>=16 ; -#endif -if (--boguscnt <0 )break ;if (!(desc_status &RDFEND )) ndev->stats.rx_length_errors++; +#if defined(CONFIG_ARCH_R8A7740 ) +/* +* In case of almost all GETHER/ETHERs, the Receive Frame State +* (RFS) bits in the Receive Descriptor 0 are from bit 9 to +* bit 0. However, in case of the R8A7740's GETHER, the RFS +* bits are from bit 25 to bit 16. So, the driver needs right +* shifting by 16. +*/ + desc_status >>=16 ; +#endif +if (desc_status & (RD_RFS1 |RD_RFS2 |RD_RFS3 |RD_RFS4 |RD_RFS5 |RD_RFS6 |RD_RFS10 )) { ndev->stats.rx_errors++;
drivers/net/macvtap.c +9 -0
@@ -21,6 +21,7 @@#include <net/rtnetlink.h> #include <net/sock.h> #include <linux/virtio_net.h> +#include <net/flow_keys.h> /* * A macvtap queue is the central object of this driver, it connects
@@ -645,6 +646,7 @@ static ssize_t macvtap_get_user(struct macvtap_queue *q, struct msghdr *m,int vnet_hdr_len =0 ;int copylen =0 ;bool zerocopy = false; +struct flow_keys keys;if (q->flags &IFF_VNET_HDR ) { vnet_hdr_len = q->vnet_hdr_sz;
@@ -725,6 +727,13 @@ static ssize_t macvtap_get_user(struct macvtap_queue *q, struct msghdr *m, goto err_kfree; } +if (skb->ip_summed ==CHECKSUM_PARTIAL ) +skb_set_transport_header (skb,skb_checksum_start_offset (skb)); +else if (skb_flow_dissect (skb, &keys)) +skb_set_transport_header (skb, keys.thoff); +else +skb_set_transport_header (skb,ETH_HLEN ); +rcu_read_lock_bh (); vlan =rcu_dereference_bh (q->vlan);/* copy skb_ubuf_info for callback when skb has no error */
drivers/net/phy/phy.c +1 -1
@@ -1092,7 +1092,7 @@ int phy_init_eee(struct phy_device *phydev, bool clk_stop_enable) adv =mmd_eee_adv_to_ethtool_adv_t (eee_adv); lp =mmd_eee_adv_to_ethtool_adv_t (eee_lp); idx =phy_find_setting (phydev->speed, phydev->duplex); -if ((lp & adv & settings[idx].setting)) +if (!(lp & adv & settings[idx].setting)) goto eee_exit;if (clk_stop_enable) {
drivers/net/team/team.c +1 -1
@@ -1079,8 +1079,8 @@ static int team_port_add(struct team *team, struct net_device *port_dev) } port->index =-1 ; -team_port_enable (team, port);list_add_tail_rcu (&port->list, &team->port_list); +team_port_enable (team, port);__team_compute_features (team);__team_port_change_port_added (port, !!netif_carrier_ok (port_dev));__team_options_change_check (team);
drivers/net/team/team_mode_roundrobin.c +2 -0
@@ -52,6 +52,8 @@ static bool rr_transmit(struct team *team, struct sk_buff *skb) port_index =rr_priv (team)->sent_packets++ % team->en_port_count; port =team_get_port_by_index_rcu (team, port_index); +if (unlikely (!port)) + goto drop; port =__get_first_port_up (team, port);if (unlikely (!port)) goto drop;
drivers/net/tun.c +22 -2
@@ -70,6 +70,7 @@#include <net/sock.h> #include <asm/uaccess.h> +#include <net/flow_keys.h> /* Uncomment to enable debugging */ /* #define TUN_DEBUG 1 */
@@ -1051,6 +1052,7 @@ static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile,bool zerocopy = false;int err;u32 rxhash; +struct flow_keys keys;if (!(tun->flags &TUN_NO_PI )) {if ((len -=sizeof (pi)) > total_len)
@@ -1205,6 +1207,14 @@ static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, }skb_reset_network_header (skb); + +if (skb->ip_summed ==CHECKSUM_PARTIAL ) +skb_set_transport_header (skb,skb_checksum_start_offset (skb)); +else if (skb_flow_dissect (skb, &keys)) +skb_set_transport_header (skb, keys.thoff); +else +skb_reset_transport_header (skb); + rxhash =skb_get_rxhash (skb);netif_rx_ni (skb);
@@ -1585,6 +1595,10 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)else return -EINVAL ; +if (!!(ifr->ifr_flags &IFF_MULTI_QUEUE ) != + !!(tun->flags &TUN_TAP_MQ )) +return -EINVAL ; +if (tun_not_capable (tun))return -EPERM ; err =security_tun_dev_open (tun->security);
@@ -1596,8 +1610,12 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)return err;if (tun->flags &TUN_TAP_MQ && - (tun->numqueues + tun->numdisabled >1 )) -return -EBUSY ; + (tun->numqueues + tun->numdisabled >1 )) { +/* One or more queue has already been attached, no need +* to initialize the device again. +*/ +return 0 ; + } }else {char *name;
@@ -2150,6 +2168,8 @@ static int tun_chr_open(struct inode *inode, struct file * file)set_bit (SOCK_EXTERNALLY_ALLOCATED , &tfile->socket.flags);INIT_LIST_HEAD (&tfile->next); +sock_set_flag (&tfile->sk,SOCK_ZEROCOPY ); +return 0 ; }
drivers/net/vxlan.c +14 -3
@@ -285,7 +285,7 @@ static inline struct hlist_head *vxlan_fdb_head(struct vxlan_dev *vxlan, }/* Look up Ethernet address in forwarding table */ -static struct vxlan_fdb *vxlan_find_mac (struct vxlan_dev *vxlan, +static struct vxlan_fdb *__vxlan_find_mac (struct vxlan_dev *vxlan,const u8 *mac) {
@@ -300,6 +300,18 @@ static struct vxlan_fdb *vxlan_find_mac(struct vxlan_dev *vxlan,return NULL ; } +static struct vxlan_fdb *vxlan_find_mac (struct vxlan_dev *vxlan, +const u8 *mac) +{ +struct vxlan_fdb *f; + + f =__vxlan_find_mac (vxlan, mac); +if (f) + f->used = jiffies; + +return f; +} +/* Add new entry to forwarding table -- assumes lock held */ static int vxlan_fdb_create(struct vxlan_dev *vxlan, const u8 *mac, __be32 ip,
@@ -308,7 +320,7 @@ static int vxlan_fdb_create(struct vxlan_dev *vxlan,struct vxlan_fdb *f;int notify =0 ; - f =vxlan_find_mac (vxlan, mac); + f =__vxlan_find_mac (vxlan, mac);if (f) {if (flags &NLM_F_EXCL ) { netdev_dbg(vxlan->dev,
@@ -453,7 +465,6 @@ static void vxlan_snoop(struct net_device *dev, f =vxlan_find_mac (vxlan, src_mac);if (likely (f)) { - f->used = jiffies;if (likely (f->remote_ip == src_ip))return ;
drivers/net/wireless/ath/carl9170/tx.c +28 -41
121 lines not on this page · raw message
drivers/net/wireless/brcm80211/brcmfmac/dhd_common.c +0 -18
@@ -26,7 +26,6 @@#include "fwil.h" #define PKTFILTER_BUF_SIZE 128 -#define BRCMF_ARPOL_MODE 0xb/* agent|snoop|peer_autoreply */ #define BRCMF_DEFAULT_BCN_TIMEOUT 3#define BRCMF_DEFAULT_SCAN_CHANNEL_TIME 40#define BRCMF_DEFAULT_SCAN_UNASSOC_TIME 40
@@ -337,23 +336,6 @@ int brcmf_c_preinit_dcmds(struct brcmf_if *ifp) goto done; } -/* Try to set and enable ARP offload feature, this may fail */ - err =brcmf_fil_iovar_int_set (ifp,"arp_ol" ,BRCMF_ARPOL_MODE ); -if (err) { -brcmf_dbg (TRACE ,"failed to set ARP offload mode to 0x%x, err = %d\n" , -BRCMF_ARPOL_MODE , err); - err =0 ; - }else { - err =brcmf_fil_iovar_int_set (ifp,"arpoe" ,1 ); -if (err) { -brcmf_dbg (TRACE ,"failed to enable ARP offload err = %d\n" , - err); - err =0 ; - }else -brcmf_dbg (TRACE ,"successfully enabled ARP offload to 0x%x\n" , -BRCMF_ARPOL_MODE ); - } -/* Setup packet filter */ brcmf_c_pktfilter_offload_set (ifp,BRCMF_DEFAULT_PACKET_FILTER ); brcmf_c_pktfilter_offload_enable(ifp, BRCMF_DEFAULT_PACKET_FILTER,
drivers/net/wireless/brcm80211/brcmfmac/fwil_types.h +6 -0
@@ -23,6 +23,12 @@#define BRCMF_FIL_ACTION_FRAME_SIZE 1800 +/* ARP Offload feature flags for arp_ol iovar */ +#define BRCMF_ARP_OL_AGENT 0x00000001 +#define BRCMF_ARP_OL_SNOOP 0x00000002 +#define BRCMF_ARP_OL_HOST_AUTO_REPLY 0x00000004 +#define BRCMF_ARP_OL_PEER_AUTO_REPLY 0x00000008 +enum brcmf_fil_p2p_if_types {BRCMF_FIL_P2P_IF_CLIENT ,
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +39 -1
@@ -505,6 +505,38 @@ send_key_to_dongle(struct net_device *ndev, struct brcmf_wsec_key *key)return err; } +static s32 +brcmf_configure_arp_offload (struct brcmf_if *ifp,bool enable) +{ +s32 err; +u32 mode; + +if (enable) + mode =BRCMF_ARP_OL_AGENT |BRCMF_ARP_OL_PEER_AUTO_REPLY ; +else + mode =0 ; + +/* Try to set and enable ARP offload feature, this may fail, then it */ +/* is simply not supported and err 0 will be returned */ + err =brcmf_fil_iovar_int_set (ifp,"arp_ol" , mode); +if (err) { +brcmf_dbg (TRACE ,"failed to set ARP offload mode to 0x%x, err = %d\n" , + mode, err); + err =0 ; + }else { + err =brcmf_fil_iovar_int_set (ifp,"arpoe" , enable); +if (err) { +brcmf_dbg (TRACE ,"failed to configure (%d) ARP offload err = %d\n" , + enable, err); + err =0 ; + }else +brcmf_dbg (TRACE ,"successfully configured (%d) ARP offload to 0x%x\n" , + enable, mode); + } + +return err; +} + static struct wireless_dev *brcmf_cfg80211_add_iface(struct wiphy *wiphy, const char *name, enum nl80211_iftype type,
@@ -3709,6 +3741,7 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev, }brcmf_set_mpc (ndev,0 ); +brcmf_configure_arp_offload (ifp, false);/* find the RSN_IE */ rsn_ie = brcmf_parse_tlvs((u8 *)settings->beacon.tail,
@@ -3815,8 +3848,10 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev,set_bit (BRCMF_VIF_STATUS_AP_CREATED , &ifp->vif->sme_state); exit: -if (err) +if (err) {brcmf_set_mpc (ndev,1 ); +brcmf_configure_arp_offload (ifp, true); + }return err; }
@@ -3857,6 +3892,7 @@ static int brcmf_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *ndev)brcmf_err ("bss_enable config failed %d\n" , err); }brcmf_set_mpc (ndev,1 ); +brcmf_configure_arp_offload (ifp, true);set_bit (BRCMF_VIF_STATUS_AP_CREATING , &ifp->vif->sme_state);clear_bit (BRCMF_VIF_STATUS_AP_CREATED , &ifp->vif->sme_state);
@@ -4995,6 +5031,8 @@ static s32 brcmf_config_dongle(struct brcmf_cfg80211_info *cfg)if (err) goto default_conf_out; +brcmf_configure_arp_offload (ifp, true); + cfg->dongle_up = true; default_conf_out:
drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +100 -34
224 lines not on this page · raw message
drivers/net/wireless/rtlwifi/rtl8192cu/hw.h +0 -4
@@ -98,10 +98,6 @@ void rtl92cu_update_interrupt_mask(struct ieee80211_hw *hw, u32 add_msr, u32 rm_msr);void rtl92cu_get_hw_reg (struct ieee80211_hw *hw,u8 variable,u8 *val);void rtl92cu_set_hw_reg (struct ieee80211_hw *hw,u8 variable,u8 *val); -void rtl92cu_update_hal_rate_table (struct ieee80211_hw *hw, -struct ieee80211_sta *sta, -u8 rssi_level); -void rtl92cu_update_hal_rate_mask (struct ieee80211_hw *hw,u8 rssi_level);void rtl92cu_update_channel_access_setting (struct ieee80211_hw *hw);bool rtl92cu_gpio_radio_on_off_checking (struct ieee80211_hw *hw,u8 * valid);
drivers/net/wireless/rtlwifi/rtl8192cu/mac.c +17 -1
@@ -289,14 +289,30 @@ void rtl92c_set_key(struct ieee80211_hw *hw, u32 key_index, macaddr = cam_const_broad; entry_id = key_index; }else { +if (mac->opmode ==NL80211_IFTYPE_AP || + mac->opmode ==NL80211_IFTYPE_MESH_POINT ) { + entry_id =rtl_cam_get_free_entry (hw, + p_macaddr); +if (entry_id >=TOTAL_CAM_ENTRY ) { +RT_TRACE (rtlpriv,COMP_SEC , +DBG_EMERG , +"Can not find free hw security cam entry\n" ); +return ; + } + }else { + entry_id =CAM_PAIRWISE_KEY_POSITION ; + } + key_index =PAIRWISE_KEYIDX ; - entry_id =CAM_PAIRWISE_KEY_POSITION ; is_pairwise = true; } }if (rtlpriv->sec.key_len[key_index] ==0 ) {RT_TRACE (rtlpriv,COMP_SEC ,DBG_DMESG ,"delete one entry\n" ); +if (mac->opmode ==NL80211_IFTYPE_AP || + mac->opmode ==NL80211_IFTYPE_MESH_POINT ) +rtl_cam_del_entry (hw, p_macaddr);rtl_cam_delete_one_entry (hw, p_macaddr, entry_id); }else { RT_TRACE(rtlpriv, COMP_SEC, DBG_LOUD,
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +2 -2
@@ -106,8 +106,7 @@ static struct rtl_hal_ops rtl8192cu_hal_ops = { .update_interrupt_mask = rtl92cu_update_interrupt_mask, .get_hw_reg = rtl92cu_get_hw_reg, .set_hw_reg = rtl92cu_set_hw_reg, - .update_rate_tbl = rtl92cu_update_hal_rate_table, - .update_rate_mask = rtl92cu_update_hal_rate_mask, + .update_rate_tbl = rtl92cu_update_hal_rate_tbl, .fill_tx_desc = rtl92cu_tx_fill_desc, .fill_fake_txdesc = rtl92cu_fill_fake_txdesc, .fill_tx_cmddesc = rtl92cu_tx_fill_cmddesc,
@@ -137,6 +136,7 @@ static struct rtl_hal_ops rtl8192cu_hal_ops = { .phy_lc_calibrate = _rtl92cu_phy_lc_calibrate, .phy_set_bw_mode_callback = rtl92cu_phy_set_bw_mode_callback, .dm_dynamic_txpower = rtl92cu_dm_dynamic_txpower, + .fill_h2c_cmd = rtl92c_fill_h2c_cmd, };static struct rtl_mod_params rtl92cu_mod_params = {
drivers/net/wireless/rtlwifi/rtl8192cu/sw.h +3 -0
@@ -49,5 +49,8 @@ bool rtl92cu_phy_set_rf_power_state(struct ieee80211_hw *hw,u32 rtl92cu_phy_query_rf_reg (struct ieee80211_hw *hw,enum radio_path rfpath,u32 regaddr,u32 bitmask);void rtl92cu_phy_set_bw_mode_callback (struct ieee80211_hw *hw); +void rtl92cu_update_hal_rate_tbl (struct ieee80211_hw *hw, +struct ieee80211_sta *sta, +u8 rssi_level);#endif
drivers/net/wireless/rtlwifi/usb.c +13 -0
@@ -740,6 +740,7 @@ static void rtl_usb_stop(struct ieee80211_hw *hw)/* should after adapter start and interrupt enable. */ set_hal_stop (rtlhal); +cancel_work_sync (&rtlpriv->works.fill_h2c_cmd);/* Enable software */ SET_USB_STOP (rtlusb);rtl_usb_deinit (hw);
@@ -942,6 +943,16 @@ static bool rtl_usb_tx_chk_waitq_insert(struct ieee80211_hw *hw,return false; } +static void rtl_fill_h2c_cmd_work_callback (struct work_struct *work) +{ +struct rtl_works *rtlworks = + container_of(work, struct rtl_works, fill_h2c_cmd); +struct ieee80211_hw *hw = rtlworks->hw; +struct rtl_priv *rtlpriv =rtl_priv (hw); + + rtlpriv->cfg->ops->fill_h2c_cmd (hw,H2C_RA_MASK ,5 , rtlpriv->rate_mask); +} +static struct rtl_intf_ops rtl_usb_ops = { .adapter_start = rtl_usb_start, .adapter_stop = rtl_usb_stop,
@@ -973,6 +984,8 @@ int rtl_usb_probe(struct usb_interface *intf,/* this spin lock must be initialized early */ spin_lock_init (&rtlpriv->locks.usb_lock); +INIT_WORK (&rtlpriv->works.fill_h2c_cmd, + rtl_fill_h2c_cmd_work_callback); rtlpriv->usb_data_index =0 ;init_completion (&rtlpriv->firmware_loading_complete);
drivers/net/wireless/rtlwifi/wifi.h +4 -0
@@ -1572,6 +1572,8 @@ struct rtl_hal_ops {void (*bt_wifi_media_status_notify) (struct ieee80211_hw *hw,bool mstate);void (*bt_coex_off_before_lps) (struct ieee80211_hw *hw); +void (*fill_h2c_cmd) (struct ieee80211_hw *hw,u8 element_id, +u32 cmd_len,u8 *p_cmdbuffer); };struct rtl_intf_ops {
@@ -1698,6 +1700,7 @@ struct rtl_works {struct delayed_work ps_rfon_wq;struct work_struct lps_leave_work; +struct work_struct fill_h2c_cmd; };struct rtl_debug {
@@ -1866,6 +1869,7 @@ struct rtl_priv {bool bt_operation_on; }; }; +u8 rate_mask[5 ];/*This must be the last item so that it points to the data allocated
drivers/net/xen-netback/netback.c +12 -0
@@ -39,6 +39,7 @@#include <linux/udp.h> #include <net/tcp.h> +#include <net/flow_keys.h> #include <xen/xen.h> #include <xen/events.h>
@@ -1352,6 +1353,7 @@ static int checksum_setup(struct xenvif *vif, struct sk_buff *skb)if (th >=skb_tail_pointer (skb)) goto out; +skb_set_transport_header (skb,4 * iph->ihl); skb->csum_start = th - skb->head;switch (iph->protocol) {case IPPROTO_TCP :
@@ -1665,6 +1667,7 @@ static void xen_netbk_tx_submit(struct xen_netbk *netbk) skb->dev = vif->dev; skb->protocol =eth_type_trans (skb, skb->dev); +skb_reset_network_header (skb);if (checksum_setup (vif, skb)) { netdev_dbg(vif->dev,
@@ -1673,6 +1676,15 @@ static void xen_netbk_tx_submit(struct xen_netbk *netbk)continue ; } +if (!skb_transport_header_was_set (skb)) { +struct flow_keys keys; + +if (skb_flow_dissect (skb, &keys)) +skb_set_transport_header (skb, keys.thoff); +else +skb_reset_transport_header (skb); + } + vif->dev->stats.rx_bytes += skb->len; vif->dev->stats.rx_packets++;
drivers/parisc/iosapic.c +66 -0
78 lines not on this page · raw message
drivers/parport/parport_gsc.c +3 -3
@@ -234,7 +234,7 @@ static int parport_PS2_supported(struct parport *pb)struct parport *parport_gsc_probe_port (unsigned long base,unsigned long base_hi,int irq, -int dma,struct pci_dev *dev) +int dma,struct parisc_device *padev) {struct parport_gsc_private *priv;struct parport_operations *ops;
@@ -258,7 +258,6 @@ struct parport *parport_gsc_probe_port(unsigned long base, priv->ctr_writable =0xff ; priv->dma_buf =0 ; priv->dma_handle =0 ; - priv->dev = dev; p->base = base; p->base_hi = base_hi; p->irq = irq;
@@ -282,6 +281,7 @@ struct parport *parport_gsc_probe_port(unsigned long base,return NULL ; } + p->dev = &padev->dev; p->base_hi = base_hi; p->modes = tmp.modes; p->size = (p->modes &PARPORT_MODE_EPP )?8 :3 ;
@@ -373,7 +373,7 @@ static int parport_init_chip(struct parisc_device *dev) } p =parport_gsc_probe_port (port,0 , dev->irq, -/* PARPORT_IRQ_NONE */ PARPORT_DMA_NONE ,NULL ); +/* PARPORT_IRQ_NONE */ PARPORT_DMA_NONE , dev);if (p) parport_count++;dev_set_drvdata (&dev->dev, p);
drivers/parport/parport_gsc.h +1 -1
@@ -217,6 +217,6 @@ extern void parport_gsc_dec_use_count(void);extern struct parport *parport_gsc_probe_port (unsigned long base,unsigned long base_hi,int irq,int dma, -struct pci_dev *dev); +struct parisc_device *padev);#endif /* __DRIVERS_PARPORT_PARPORT_GSC_H */
drivers/scsi/qla2xxx/tcm_qla2xxx.c +5 -1
@@ -688,8 +688,12 @@ static int tcm_qla2xxx_queue_status(struct se_cmd *se_cmd)* For FCP_READ with CHECK_CONDITION status, clear cmd->bufflen * for qla_tgt_xmit_response LLD code */ +if (se_cmd->se_cmd_flags &SCF_OVERFLOW_BIT ) { + se_cmd->se_cmd_flags &= ~SCF_OVERFLOW_BIT ; + se_cmd->residual_count =0 ; + } se_cmd->se_cmd_flags |=SCF_UNDERFLOW_BIT ; - se_cmd->residual_count = se_cmd->data_length; + se_cmd->residual_count += se_cmd->data_length; cmd->bufflen =0 ; }
drivers/spi/spi-pxa2xx-dma.c +1 -1
@@ -59,7 +59,7 @@ static int pxa2xx_spi_map_dma_buffer(struct driver_data *drv_data,int ret;sg_free_table (sgt); - ret =sg_alloc_table (sgt, nents,GFP_KERNEL ); + ret =sg_alloc_table (sgt, nents,GFP_ATOMIC );if (ret)return ret; }
drivers/spi/spi-pxa2xx.c +1 -1
@@ -1069,7 +1069,7 @@ pxa2xx_spi_acpi_get_pdata(struct platform_device *pdev) acpi_bus_get_device(ACPI_HANDLE(&pdev->dev), &adev))return NULL ; - pdata =devm_kzalloc (&pdev->dev,sizeof (*ssp),GFP_KERNEL ); + pdata =devm_kzalloc (&pdev->dev,sizeof (*pdata),GFP_KERNEL );if (!pdata) {dev_err (&pdev->dev,"failed to allocate memory for platform data\n" );
drivers/target/iscsi/iscsi_target_erl0.c +2 -2
@@ -842,11 +842,11 @@ int iscsit_stop_time2retain_timer(struct iscsi_session *sess)return 0 ; sess->time2retain_timer_flags |=ISCSI_TF_STOP ; -spin_unlock_bh (&se_tpg->session_lock); +spin_unlock (&se_tpg->session_lock);del_timer_sync (&sess->time2retain_timer); -spin_lock_bh (&se_tpg->session_lock); +spin_lock (&se_tpg->session_lock); sess->time2retain_timer_flags &= ~ISCSI_TF_RUNNING ;pr_debug ("Stopped Time2Retain Timer for SID: %u\n" , sess->sid);
drivers/tty/pty.c +5 -8
@@ -244,14 +244,9 @@ static void pty_flush_buffer(struct tty_struct *tty)static int pty_open (struct tty_struct *tty,struct file *filp) { -int retval = -ENODEV ; -if (!tty || !tty->link) - goto out; - -set_bit (TTY_IO_ERROR , &tty->flags); +return -ENODEV ; - retval = -EIO ;if (test_bit (TTY_OTHER_CLOSED , &tty->flags)) goto out;if (test_bit (TTY_PTY_LOCK , &tty->link->flags))
@@ -262,9 +257,11 @@ static int pty_open(struct tty_struct *tty, struct file *filp)clear_bit (TTY_IO_ERROR , &tty->flags);clear_bit (TTY_OTHER_CLOSED , &tty->link->flags);set_bit (TTY_THROTTLED , &tty->flags); - retval =0 ; +return 0 ; + out: -return retval; +set_bit (TTY_IO_ERROR , &tty->flags); +return -EIO ; } static void pty_set_termios(struct tty_struct *tty,
drivers/tty/serial/8250/8250_gsc.c +9 -1
@@ -30,6 +30,12 @@ static int __init serial_init_chip(struct parisc_device *dev)unsigned long address;int err; +#ifdef CONFIG_64BIT +extern int iosapic_serial_irq (int cellnum); +if (!dev->irq && (dev->id.sversion ==0xad )) + dev->irq =iosapic_serial_irq (dev->mod_index-1 ); +#endif +if (!dev->irq) {/* We find some unattached serial ports by walking native * busses. These should be silently ignored. Otherwise,
@@ -51,7 +57,8 @@ static int __init serial_init_chip(struct parisc_device *dev)memset (&uart,0 ,sizeof (uart)); uart.port.iotype =UPIO_MEM ;/* 7.272727MHz on Lasi. Assumed the same for Dino, Wax and Timi. */ - uart.port.uartclk =7272727 ; + uart.port.uartclk = (dev->id.sversion !=0xad ) ? +7272727 :1843200 ; uart.port.mapbase = address; uart.port.membase =ioremap_nocache (address,16 ); uart.port.irq = dev->irq;
@@ -73,6 +80,7 @@ static struct parisc_device_id serial_tbl[] = { { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00075 }, { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008c }, { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008d }, + { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x000ad }, { 0 } };
drivers/uio/uio.c +1 -0
@@ -374,6 +374,7 @@ static int uio_get_minor(struct uio_device *idev) retval =idr_alloc (&uio_idr, idev,0 ,UIO_MAX_DEVICES ,GFP_KERNEL );if (retval >=0 ) { idev->minor = retval; + retval =0 ; }else if (retval == -ENOSPC ) {dev_err (idev->dev,"too many uio devices\n" ); retval = -EINVAL ;
drivers/usb/serial/ti_usb_3410_5052.c +2 -1
@@ -178,7 +178,8 @@ static struct usb_device_id ti_id_table_3410[15+TI_EXTRA_VID_PID_COUNT+1] = { { USB_DEVICE(IBM_VENDOR_ID, IBM_4543_PRODUCT_ID) }, { USB_DEVICE(IBM_VENDOR_ID, IBM_454B_PRODUCT_ID) }, { USB_DEVICE(IBM_VENDOR_ID, IBM_454C_PRODUCT_ID) }, - { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_PRODUCT_ID) }, + { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_STEREO_PLUG_ID) }, + { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_STRIP_PORT_ID) }, { USB_DEVICE(TI_VENDOR_ID, FRI2_PRODUCT_ID) }, };
drivers/usb/serial/ti_usb_3410_5052.h +3 -1
@@ -52,7 +52,9 @@/* Abbott Diabetics vendor and product ids */ #define ABBOTT_VENDOR_ID 0x1a61 -#define ABBOTT_PRODUCT_ID 0x3410 +#define ABBOTT_STEREO_PLUG_ID 0x3410 +#define ABBOTT_PRODUCT_ID ABBOTT_STEREO_PLUG_ID +#define ABBOTT_STRIP_PORT_ID 0x3420/* Commands */ #define TI_GET_VERSION 0x01
drivers/vhost/net.c +2 -1
@@ -353,7 +353,8 @@ static void handle_tx(struct vhost_net *net)kref_get (&ubufs->kref); } vq->upend_idx = (vq->upend_idx +1 ) %UIO_MAXIOV ; - } + }else + msg.msg_control =NULL ;/* TODO: Check specific error and bomb out unless ENOBUFS? */ err = sock->ops->sendmsg (NULL , sock, &msg, len);if (unlikely (err <0 )) {
include/linux/perf_event.h +1 -2
@@ -404,8 +404,7 @@ struct perf_event {/* mmap bits */ struct mutex mmap_mutex;atomic_t mmap_count; -int mmap_locked; -struct user_struct *mmap_user; +struct ring_buffer *rb;struct list_head rb_entry;
include/linux/rculist_nulls.h +6 -1
@@ -105,9 +105,14 @@ static inline void hlist_nulls_add_head_rcu(struct hlist_nulls_node *n,* @head: the head for your list. * @member: the name of the hlist_nulls_node within the struct. * +* The barrier() is needed to make sure compiler doesn't cache first element [1], +* as this loop can be restarted [2] +* [1] Documentation/atomic_ops.txt around line 114 +* [2] Documentation/RCU/rculist_nulls.txt around line 146 */ #define hlist_nulls_for_each_entry_rcu (tpos, pos, head, member) \ - for (pos = rcu_dereference_raw(hlist_nulls_first_rcu(head)); \ + for (({barrier();}), \ + pos = rcu_dereference_raw(hlist_nulls_first_rcu(head)); \ (!is_a_nulls(pos)) && \ ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1; }); \ pos = rcu_dereference_raw(hlist_nulls_next_rcu(pos)))
include/linux/skbuff.h +15 -0
@@ -2761,6 +2761,21 @@ static inline int skb_tnl_header_len(const struct sk_buff *inner_skb)SKB_GSO_CB (inner_skb)->mac_offset; } +static inline int gso_pskb_expand_head (struct sk_buff *skb,int extra) +{ +int new_headroom, headroom; +int ret; + + headroom =skb_headroom (skb); + ret =pskb_expand_head (skb, extra,0 ,GFP_ATOMIC ); +if (ret) +return ret; + + new_headroom =skb_headroom (skb); +SKB_GSO_CB (skb)->mac_offset += (new_headroom - headroom); +return 0 ; +} +static inline bool skb_is_gso (const struct sk_buff *skb) {return skb_shinfo (skb)->gso_size;
include/linux/socket.h +3 -0
@@ -321,6 +321,9 @@ extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data);struct timespec ; +/* The __sys_...msg variants allow MSG_CMSG_COMPAT */ +extern long __sys_recvmsg (int fd,struct msghdr __user *msg,unsigned flags); +extern long __sys_sendmsg (int fd,struct msghdr __user *msg,unsigned flags);extern int __sys_recvmmsg (int fd,struct mmsghdr __user *mmsg,unsigned int vlen,unsigned int flags,struct timespec *timeout); extern int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg,
include/net/sch_generic.h +11 -7
@@ -679,22 +679,26 @@ static inline struct sk_buff *skb_act_clone(struct sk_buff *skb, gfp_t gfp_mask,#endif struct psched_ratecfg { -u64 rate_bps; -u32 mult; -u32 shift; +u64 rate_bps; +u32 mult; +u16 overhead; +u8 shift; };static inline u64 psched_l2t_ns (const struct psched_ratecfg *r,unsigned int len) { -return ((u64 )len * r->mult) >> r->shift; +return ((u64)(len + r->overhead) * r->mult) >> r->shift; } -extern void psched_ratecfg_precompute (struct psched_ratecfg *r,u32 rate); +extern void psched_ratecfg_precompute (struct psched_ratecfg *r,const struct tc_ratespec *conf); -static inline u32 psched_ratecfg_getrate (const struct psched_ratecfg *r) +static inline void psched_ratecfg_getrate (struct tc_ratespec *res, +const struct psched_ratecfg *r) { -return r->rate_bps >>3 ; +memset (res,0 ,sizeof (*res)); + res->rate = r->rate_bps >>3 ; + res->overhead = r->overhead; }#endif
kernel/events/core.c +161 -72
347 lines not on this page · raw message
kernel/events/internal.h +4 -0
@@ -31,6 +31,10 @@ struct ring_buffer {spinlock_t event_lock;struct list_head event_list; +atomic_t mmap_count; +unsigned long mmap_locked; +struct user_struct *mmap_user; +struct perf_event_mmap_page *user_page;void *data_pages[0 ]; };
kernel/range.c +11 -10
@@ -4,7 +4,7 @@#include <linux/kernel.h> #include <linux/init.h> #include <linux/sort.h> - +#include <linux/string.h> #include <linux/range.h> int add_range (struct range *range,int az,int nr_range,u64 start,u64 end)
@@ -32,9 +32,8 @@ int add_range_with_merge(struct range *range, int az, int nr_range,if (start >= end)return nr_range; -/* Try to merge it with old one: */ +/* get new start/end: */ for (i =0 ; i < nr_range; i++) { -u64 final_start, final_end;u64 common_start, common_end;if (!range[i].end)
@@ -45,14 +44,16 @@ int add_range_with_merge(struct range *range, int az, int nr_range,if (common_start > common_end)continue ; - final_start =min (range[i].start, start); - final_end =max (range[i].end, end); +/* new start/end, will add it back at last */ + start =min (range[i].start, start); + end =max (range[i].end, end); -/* clear it and add it back for further merge */ - range[i].start =0 ; - range[i].end =0 ; -return add_range_with_merge (range, az, nr_range, - final_start, final_end); +memmove (&range[i], &range[i +1 ], + (nr_range - (i +1 )) *sizeof (range[i])); + range[nr_range -1 ].start =0 ; + range[nr_range -1 ].end =0 ; + nr_range--; + i--; }/* Need to add it: */
net/802/mrp.c +2 -2
@@ -871,10 +871,10 @@ void mrp_uninit_applicant(struct net_device *dev, struct mrp_application *appl)*/ del_timer_sync (&app->join_timer); -spin_lock (&app->lock); +spin_lock_bh (&app->lock);mrp_mad_event (app,MRP_EVENT_TX );mrp_pdu_queue (app); -spin_unlock (&app->lock); +spin_unlock_bh (&app->lock);mrp_queue_xmit (app);
net/compat.c +11 -2
@@ -734,19 +734,25 @@ static unsigned char nas[21] = {asmlinkage long compat_sys_sendmsg (int fd,struct compat_msghdr __user *msg,unsigned int flags) { -return sys_sendmsg (fd, (struct msghdr __user *)msg, flags |MSG_CMSG_COMPAT ); +if (flags &MSG_CMSG_COMPAT ) +return -EINVAL ; +return __sys_sendmsg (fd, (struct msghdr __user *)msg, flags |MSG_CMSG_COMPAT ); }asmlinkage long compat_sys_sendmmsg (int fd,struct compat_mmsghdr __user *mmsg,unsigned int vlen,unsigned int flags) { +if (flags &MSG_CMSG_COMPAT ) +return -EINVAL ;return __sys_sendmmsg (fd, (struct mmsghdr __user *)mmsg, vlen, flags |MSG_CMSG_COMPAT ); }asmlinkage long compat_sys_recvmsg (int fd,struct compat_msghdr __user *msg,unsigned int flags) { -return sys_recvmsg (fd, (struct msghdr __user *)msg, flags |MSG_CMSG_COMPAT ); +if (flags &MSG_CMSG_COMPAT ) +return -EINVAL ; +return __sys_recvmsg (fd, (struct msghdr __user *)msg, flags |MSG_CMSG_COMPAT ); }asmlinkage long compat_sys_recv (int fd,void __user *buf,size_t len,unsigned int flags)
@@ -768,6 +774,9 @@ asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg,int datagrams;struct timespec ktspec; +if (flags &MSG_CMSG_COMPAT ) +return -EINVAL ; +if (COMPAT_USE_64BIT_TIME ) return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, flags | MSG_CMSG_COMPAT,
net/core/dev.c +7 -1
@@ -2592,6 +2592,7 @@ static void qdisc_pkt_len_init(struct sk_buff *skb)*/ if (shinfo->gso_size) {unsigned int hdr_len; +u16 gso_segs = shinfo->gso_segs;/* mac layer + network layer */ hdr_len =skb_transport_header (skb) -skb_mac_header (skb);
@@ -2601,7 +2602,12 @@ static void qdisc_pkt_len_init(struct sk_buff *skb) hdr_len +=tcp_hdrlen (skb); else hdr_len += sizeof(struct udphdr); -qdisc_skb_cb (skb)->pkt_len += (shinfo->gso_segs -1 ) * hdr_len; + +if (shinfo->gso_type &SKB_GSO_DODGY ) + gso_segs =DIV_ROUND_UP (skb->len - hdr_len, + shinfo->gso_size); + +qdisc_skb_cb (skb)->pkt_len += (gso_segs -1 ) * hdr_len; } }
net/core/sock.c +3 -3
@@ -210,7 +210,7 @@ static const char *const af_family_key_strings[AF_MAX+1] = {"sk_lock-AF_TIPC" ,"sk_lock-AF_BLUETOOTH" ,"sk_lock-IUCV" ,"sk_lock-AF_RXRPC" ,"sk_lock-AF_ISDN" ,"sk_lock-AF_PHONET" ,"sk_lock-AF_IEEE802154" ,"sk_lock-AF_CAIF" ,"sk_lock-AF_ALG" , -"sk_lock-AF_NFC" ,"sk_lock-AF_MAX" +"sk_lock-AF_NFC" ,"sk_lock-AF_VSOCK" ,"sk_lock-AF_MAX" };static const char *const af_family_slock_key_strings[AF_MAX +1 ] = { "slock-AF_UNSPEC", "slock-AF_UNIX" , "slock-AF_INET" ,
@@ -226,7 +226,7 @@ static const char *const af_family_slock_key_strings[AF_MAX+1] = {"slock-AF_TIPC" ,"slock-AF_BLUETOOTH" ,"slock-AF_IUCV" ,"slock-AF_RXRPC" ,"slock-AF_ISDN" ,"slock-AF_PHONET" ,"slock-AF_IEEE802154" ,"slock-AF_CAIF" ,"slock-AF_ALG" , -"slock-AF_NFC" ,"slock-AF_MAX" +"slock-AF_NFC" ,"slock-AF_VSOCK" ,"slock-AF_MAX" };static const char *const af_family_clock_key_strings[AF_MAX +1 ] = { "clock-AF_UNSPEC", "clock-AF_UNIX" , "clock-AF_INET" ,
@@ -242,7 +242,7 @@ static const char *const af_family_clock_key_strings[AF_MAX+1] = {"clock-AF_TIPC" ,"clock-AF_BLUETOOTH" ,"clock-AF_IUCV" ,"clock-AF_RXRPC" ,"clock-AF_ISDN" ,"clock-AF_PHONET" ,"clock-AF_IEEE802154" ,"clock-AF_CAIF" ,"clock-AF_ALG" , -"clock-AF_NFC" ,"clock-AF_MAX" +"clock-AF_NFC" ,"clock-AF_VSOCK" ,"clock-AF_MAX" };/*
net/ipv4/ip_gre.c +1 -1
@@ -804,6 +804,7 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev tiph = &tunnel->parms.iph; } +memset (&(IPCB (skb)->opt),0 ,sizeof (IPCB (skb)->opt));if ((dst = tiph->daddr) ==0 ) {/* NBMA tunnel */
@@ -952,7 +953,6 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *devskb_push (skb, gre_hlen);skb_reset_network_header (skb);skb_set_transport_header (skb,sizeof (*iph)); -memset (&(IPCB (skb)->opt),0 ,sizeof (IPCB (skb)->opt));IPCB (skb)->flags &= ~(IPSKB_XFRM_TUNNEL_SIZE |IPSKB_XFRM_TRANSFORMED |IPSKB_REROUTED );skb_dst_drop (skb);
net/ipv4/ipip.c +1 -1
@@ -491,6 +491,7 @@ static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)if (tos &1 ) tos = old_iph->tos; +memset (&(IPCB (skb)->opt),0 ,sizeof (IPCB (skb)->opt));if (!dst) {/* NBMA tunnel */ if ((rt =skb_rtable (skb)) ==NULL ) {
@@ -573,7 +574,6 @@ static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) skb->transport_header = skb->network_header;skb_push (skb,sizeof (struct iphdr ));skb_reset_network_header (skb); -memset (&(IPCB (skb)->opt),0 ,sizeof (IPCB (skb)->opt));IPCB (skb)->flags &= ~(IPSKB_XFRM_TUNNEL_SIZE |IPSKB_XFRM_TRANSFORMED |IPSKB_REROUTED );skb_dst_drop (skb);
net/ipv4/route.c +6 -1
@@ -737,10 +737,15 @@ static void ip_do_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buf {struct rtable *rt;struct flowi4 fl4; +const struct iphdr *iph = (const struct iphdr *) skb->data; +int oif = skb->dev->ifindex; +u8 tos =RT_TOS (iph->tos); +u8 prot = iph->protocol; +u32 mark = skb->mark; rt = (struct rtable *) dst; -ip_rt_build_flow_key (&fl4, sk, skb); +__build_flow_key (&fl4, sk, iph, oif, tos, prot, mark,0 );__ip_do_redirect (rt, skb, &fl4, true); }
net/ipv4/tcp.c +5 -2
@@ -3383,8 +3383,11 @@ int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *hp,for (i =0 ; i < shi->nr_frags; ++i) {const struct skb_frag_struct *f = &shi->frags[i]; -struct page *page =skb_frag_page (f); -sg_set_page (&sg, page,skb_frag_size (f), f->page_offset); +unsigned int offset = f->page_offset; +struct page *page =skb_frag_page (f) + (offset >>PAGE_SHIFT ); + +sg_set_page (&sg, page,skb_frag_size (f), +offset_in_page (offset));if (crypto_hash_update (desc, &sg,skb_frag_size (f)))return 1 ; }
net/ipv4/tcp_input.c +13 -10
@@ -2885,8 +2885,8 @@ static void tcp_enter_recovery(struct sock *sk, bool ece_ack)* tcp_xmit_retransmit_queue(). */ static void tcp_fastretrans_alert (struct sock *sk,int pkts_acked, -int prior_sacked,bool is_dupack, -int flag) +int prior_sacked,int prior_packets, +bool is_dupack,int flag) {struct inet_connection_sock *icsk =inet_csk (sk);struct tcp_sock *tp =tcp_sk (sk);
@@ -2952,7 +2952,8 @@ static void tcp_fastretrans_alert(struct sock *sk, int pkts_acked,tcp_add_reno_sack (sk); }else do_lost =tcp_try_undo_partial (sk, pkts_acked); - newly_acked_sacked = pkts_acked + tp->sacked_out - prior_sacked; + newly_acked_sacked = prior_packets - tp->packets_out + + tp->sacked_out - prior_sacked;break ;case TCP_CA_Loss:if (flag &FLAG_DATA_ACKED )
@@ -2974,7 +2975,8 @@ static void tcp_fastretrans_alert(struct sock *sk, int pkts_acked,if (is_dupack)tcp_add_reno_sack (sk); } - newly_acked_sacked = pkts_acked + tp->sacked_out - prior_sacked; + newly_acked_sacked = prior_packets - tp->packets_out + + tp->sacked_out - prior_sacked;if (icsk->icsk_ca_state <= TCP_CA_Disorder)tcp_try_undo_dsack (sk);
@@ -3597,9 +3599,10 @@ static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag)bool is_dupack = false;u32 prior_in_flight;u32 prior_fackets; -int prior_packets; +int prior_packets = tp->packets_out;int prior_sacked = tp->sacked_out;int pkts_acked =0 ; +int previous_packets_out =0 ;bool frto_cwnd = false;/* If the ack is older than previous acks
@@ -3670,14 +3673,14 @@ static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag) sk->sk_err_soft =0 ; icsk->icsk_probes_out =0 ; tp->rcv_tstamp = tcp_time_stamp; - prior_packets = tp->packets_out;if (!prior_packets) goto no_queue;/* See if we can take anything off of the retransmit queue. */ + previous_packets_out = tp->packets_out; flag |=tcp_clean_rtx_queue (sk, prior_fackets, prior_snd_una); - pkts_acked = prior_packets - tp->packets_out; + pkts_acked = previous_packets_out - tp->packets_out;if (tp->frto_counter) frto_cwnd =tcp_process_frto (sk, flag);
@@ -3692,7 +3695,7 @@ static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag)tcp_cong_avoid (sk, ack, prior_in_flight); is_dupack = !(flag & (FLAG_SND_UNA_ADVANCED |FLAG_NOT_DUP ));tcp_fastretrans_alert (sk, pkts_acked, prior_sacked, - is_dupack, flag); + prior_packets, is_dupack, flag); }else {if ((flag &FLAG_DATA_ACKED ) && !frto_cwnd)tcp_cong_avoid (sk, ack, prior_in_flight);
@@ -3709,7 +3712,7 @@ no_queue:/* If data was DSACKed, see if we can undo a cwnd reduction. */ if (flag &FLAG_DSACKING_ACK )tcp_fastretrans_alert (sk, pkts_acked, prior_sacked, - is_dupack, flag); + prior_packets, is_dupack, flag);/* If this ack opens up a zero window, clear backoff. It was * being used to time the probes, and is probably far higher than * it needs to be for normal retransmission.
@@ -3729,7 +3732,7 @@ old_ack:if (TCP_SKB_CB (skb)->sacked) { flag |=tcp_sacktag_write_queue (sk, skb, prior_snd_una);tcp_fastretrans_alert (sk, pkts_acked, prior_sacked, - is_dupack, flag); + prior_packets, is_dupack, flag); }SOCK_DEBUG (sk,"Ack %u before %u:%u\n" , ack, tp->snd_una, tp->snd_nxt);
net/ipv4/tcp_output.c +6 -4
@@ -1032,11 +1032,13 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it, &md5); tcp_header_size = tcp_options_size +sizeof (struct tcphdr ); -if (tcp_packets_in_flight (tp) ==0 ) { +if (tcp_packets_in_flight (tp) ==0 )tcp_ca_event (sk,CA_EVENT_TX_START ); - skb->ooo_okay =1 ; - }else - skb->ooo_okay =0 ; + +/* if no packet is in qdisc/device queue, then allow XPS to select +* another queue.
Lines of this file are not shown. View the raw message.
net/netlabel/netlabel_domainhash.c +69 -0
69 lines not on this page · raw message
net/sched/sch_htb.c +21 -21
42 lines not on this page · raw message
net/socket.c +42 -19
61 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.
Hi,
Quoted 3 lines · Greg KH
I'm announcing the release of the 3.9.8 kernel.
All users of the 3.9 kernel series must upgrade.
I've got issues with my radeon ("01:00.0 VGA compatible controller:
Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series]") APU on 3.9.8
...
[ 20.944106] BUG: unable to handle kernel NULL pointer dereference at 00000000000001f8 [ 20.945753] IP: [<ffffffff812a11a3>] radeon_vm_bo_add+0xb3/0x110 [ 20.946498] PGD 243c0a067 PUD 243cbb067 PMD 0 [ 20.947236] Oops: 0000 [#1] PREEMPT SMP [ 20.947964] Modules linked in: [ 20.948675] CPU 3 [ 20.948682] Pid: 2759, comm: X Not tainted 3.9.8 #1 SAMSUNG ELECTRONICS CO., LTD. 355V4C/355V4X/355V5C/355V5X/356V4C/356V4X/356V5C/356V5X/3445VC/3445VX/3545VC/3545VX/NP355V5C-S0NRU [ 20.950160] RIP: 0010:[<ffffffff812a11a3>] [<ffffffff812a11a3>] radeon_vm_bo_add+0xb3/0x110 [ 20.950961] RSP: 0018:ffff880244dd3c08 EFLAGS: 00010246 [ 20.951745] RAX: ffff88024578a210 RBX: ffff880243f7c2a0 RCX: 0000000000000000 [ 20.952534] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88024578a240 [ 20.953331] RBP: ffff88024578a200 R08: 0000000000014400 R09: ffff880243f7c2a0 [ 20.954131] R10: 0000000000000005 R11: ffffffffffffffff R12: 00000000000001f0 [ 20.954941] R13: ffff880243f7c2d0 R14: ffff88024578a240 R15: ffff880245fa9000 [ 20.955757] FS: 00007f5c2424e880(0000) GS:ffff88024ed80000(0000) knlGS:0000000000000000 [ 20.956590] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 20.957424] CR2: 00000000000001f8 CR3: 00000002451c3000 CR4: 00000000000407e0 [ 20.958273] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 20.959124] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 20.959969] Process X (pid: 2759, threadinfo ffff880244dd2000, task ffff880245e277f0) [ 20.960828] Stack: [ 20.961679] ffff880245fba000 ffff88024578a200 ffff880244ea8800 ffff880244ea8800 [ 20.962572] ffff880244ea8820 ffffffff81289dab ffff880245fa9020 ffff880245fa9020 [ 20.963463] ffff8802450f25c8 ffff880243cbd400 ffffffff812650c1 0000000000000000 [ 20.964362] Call Trace: [ 20.965250] [<ffffffff81289dab>] ? radeon_driver_open_kms+0x6b/0xd0 [ 20.966165] [<ffffffff812650c1>] ? drm_open+0x281/0x6d0 [ 20.967075] [<ffffffff810d92e8>] ? exact_lock+0x8/0x20 [ 20.967980] [<ffffffff81265e63>] ? drm_stub_open+0x103/0x1a0 [ 20.968886] [<ffffffff810d9716>] ? chrdev_open+0x96/0x1c0 [ 20.969787] [<ffffffff810d9680>] ? cdev_put+0x20/0x20 [ 20.970682] [<ffffffff810d3a42>] ? do_dentry_open.isra.18+0x192/0x280 [ 20.971588] [<ffffffff810d3b45>] ? finish_open+0x15/0x20 [ 20.972489] [<ffffffff810e220b>] ? do_last.isra.59+0x29b/0xc90 [ 20.973393] [<ffffffff810b0000>] ? __do_fault+0x1e0/0x500 [ 20.974294] [<ffffffff810e2cb5>] ? path_openat.isra.60+0xb5/0x4b0 [ 20.975199] [<ffffffff810b2d3b>] ? handle_pte_fault+0x9b/0x7a0 [ 20.976105] [<ffffffff810e3e60>] ? do_filp_open+0x40/0x90 [ 20.977010] [<ffffffff810eff97>] ? __alloc_fd+0x97/0x120 [ 20.977904] [<ffffffff810d4bb3>] ? do_sys_open+0xf3/0x1d0 [ 20.978797] [<ffffffff81653f52>] ? system_call_fastpath+0x16/0x1b [ 20.979690] Code: 89 5b 08 4c 89 6b 30 4c 89 6b 38 e8 68 f8 3a 00 48 8b 45 10 4c 89 f7 4c 89 68 08 48 89 43 30 48 8d 45 10 48 89 43 38 4c 89 6d 10 <49> 8b 44 24 08 49 89 5c 24 08 4c 89 23 48 89 43 08 48 89 18 e8 [ 20.981714] RIP [<ffffffff812a11a3>] radeon_vm_bo_add+0xb3/0x110 [ 20.982673] RSP <ffff880244dd3c08> [ 20.983616] CR2: 00000000000001f8 [ 20.984613] ---[ end trace 4c43aa9ba50a68eb ]---
Quoted 345 lines
The updated 3.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.9.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/arm/Kconfig | 10 arch/arm/mm/cache-v7.S | 8 arch/arm/mm/proc-v7.S | 4 arch/arm64/kernel/perf_event.c | 1 arch/parisc/Kconfig | 8 arch/parisc/Kconfig.debug | 11 arch/parisc/Makefile | 2 arch/parisc/include/asm/assembly.h | 1 arch/parisc/include/asm/hardirq.h | 38 ++ arch/parisc/include/asm/mmzone.h | 7 arch/parisc/include/asm/pci.h | 5 arch/parisc/include/asm/processor.h | 4 arch/parisc/include/asm/thread_info.h | 2 arch/parisc/include/asm/tlbflush.h | 2 arch/parisc/kernel/cache.c | 6 arch/parisc/kernel/drivers.c | 2 arch/parisc/kernel/entry.S | 60 +++- arch/parisc/kernel/hardware.c | 2 arch/parisc/kernel/irq.c | 198 +++++++++++++++ arch/parisc/kernel/pci.c | 27 ++ arch/parisc/kernel/setup.c | 3 arch/parisc/kernel/smp.c | 14 - arch/parisc/kernel/traps.c | 1 arch/parisc/kernel/unaligned.c | 3 arch/parisc/kernel/vmlinux.lds.S | 2 arch/parisc/mm/init.c | 4 arch/tile/lib/exports.c | 2 arch/x86/Kconfig | 1 arch/x86/include/asm/microcode.h | 4 arch/x86/kernel/cpu/mtrr/cleanup.c | 8 arch/x86/kernel/kvmclock.c | 1 arch/x86/kvm/x86.c | 5 arch/x86/platform/efi/efi.c | 7 drivers/acpi/dock.c | 2 drivers/acpi/power.c | 1 drivers/acpi/resource.c | 16 - drivers/base/firmware_class.c | 27 +- drivers/block/rbd.c | 6 drivers/clk/clk.c | 1 drivers/gpu/drm/drm_prime.c | 3 drivers/gpu/drm/radeon/radeon_gart.c | 6 drivers/gpu/drm/radeon/radeon_ring.c | 7 drivers/input/joystick/xpad.c | 2 drivers/input/keyboard/Kconfig | 1 drivers/input/serio/Kconfig | 1 drivers/input/touchscreen/cyttsp_core.c | 2 drivers/net/ethernet/freescale/fec.c | 44 ++- drivers/net/ethernet/freescale/fec.h | 10 drivers/net/ethernet/freescale/gianfar_ptp.c | 1 drivers/net/ethernet/realtek/8139cp.c | 1 drivers/net/ethernet/realtek/r8169.c | 41 ++- drivers/net/ethernet/renesas/sh_eth.c | 15 - drivers/net/macvtap.c | 9 drivers/net/phy/phy.c | 2 drivers/net/team/team.c | 2 drivers/net/team/team_mode_roundrobin.c | 2 drivers/net/tun.c | 24 + drivers/net/vxlan.c | 17 + drivers/net/wireless/ath/carl9170/tx.c | 69 ++--- drivers/net/wireless/brcm80211/brcmfmac/dhd_common.c | 18 - drivers/net/wireless/brcm80211/brcmfmac/fwil_types.h | 6 drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 40 +++ drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 134 +++++++--- drivers/net/wireless/rtlwifi/rtl8192cu/hw.h | 4 drivers/net/wireless/rtlwifi/rtl8192cu/mac.c | 18 + drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 4 drivers/net/wireless/rtlwifi/rtl8192cu/sw.h | 3 drivers/net/wireless/rtlwifi/usb.c | 13 + drivers/net/wireless/rtlwifi/wifi.h | 4 drivers/net/xen-netback/netback.c | 12 drivers/parisc/iosapic.c | 66 +++++ drivers/parport/parport_gsc.c | 6 drivers/parport/parport_gsc.h | 2 drivers/scsi/qla2xxx/tcm_qla2xxx.c | 6 drivers/spi/spi-pxa2xx-dma.c | 2 drivers/spi/spi-pxa2xx.c | 2 drivers/target/iscsi/iscsi_target_erl0.c | 4 drivers/tty/pty.c | 13 - drivers/tty/serial/8250/8250_gsc.c | 10 drivers/uio/uio.c | 1 drivers/usb/serial/ti_usb_3410_5052.c | 3 drivers/usb/serial/ti_usb_3410_5052.h | 4 drivers/vhost/net.c | 3 include/linux/perf_event.h | 3 include/linux/rculist_nulls.h | 7 include/linux/skbuff.h | 15 + include/linux/socket.h | 3 include/net/sch_generic.h | 18 - kernel/events/core.c | 233 ++++++++++++------ kernel/events/internal.h | 4 kernel/range.c | 21 - net/802/mrp.c | 4 net/compat.c | 13 - net/core/dev.c | 8 net/core/sock.c | 6 net/ipv4/ip_gre.c | 2 net/ipv4/ipip.c | 2 net/ipv4/route.c | 7 net/ipv4/tcp.c | 7 net/ipv4/tcp_input.c | 23 + net/ipv4/tcp_output.c | 10 net/ipv6/addrconf.c | 4 net/ipv6/ip6_output.c | 2 net/ipv6/udp_offload.c | 20 - net/l2tp/l2tp_ppp.c | 6 net/netlabel/netlabel_domainhash.c | 69 +++++ net/packet/af_packet.c | 26 +- net/sched/act_police.c | 8 net/sched/sch_generic.c | 8 net/sched/sch_htb.c | 42 +-- net/sched/sch_tbf.c | 8 net/sctp/outqueue.c | 8 net/sctp/socket.c | 6 net/socket.c | 61 +++- net/xfrm/xfrm_output.c | 1 sound/pci/hda/patch_cirrus.c | 23 + sound/usb/card.c | 22 + sound/usb/mixer.c | 1 119 files changed, 1412 insertions(+), 434 deletions(-)Anders Hammarquist (1):
USB: serial:ti_usb_3410_5052: new device id for Abbot strip port cableAndy Lutomirski (1):
net: BlockMSG_CMSG_COMPATin send(m)msg and recv(m)msgBen Hutchings (2):
x86/efi: Fix dummy variable buffer allocation
Input: add missing dependencies onCONFIG_HAS_IOMEMChen Gang (2):
parisc: memory overflow, 'name' length is too short for using
parisc: kernel: usingstrlcpy()instead ofstrcpy()Chris Metcalf (1):
tilepro: work around module link error with gcc 4.7Christian Lamparter (1):
carl9170: fix frame drop and WARN due tominstrel_htchangeClemens Ladisch (1):
ALSA: usb-audio: work around Android accessory firmware bugDamian Hobson-Garcia (1):
drivers: uio: Fix UIO device registration failureDaniel Borkmann (2):
net: sctp: fix NULL pointer dereference in socket destruction
packet:packet_getname_spkt: make sure string is always 0-terminatedEric Dumazet (8):
tcp: fixtcp_md5_hash_skb_data()
net/802/mrp: fix lockdep splat
ipv6: fix possible crashes inip6_cork_release()
tcp: xps: fix reordering issues
ip_tunnel: fix kernel panic withicmp_dest_unreach
net: force a reload of first item inhlist_nulls_for_each_entry_rcu
net_sched: restore "overhead xxx" handling
net_sched: htb: do not mix 1ns and 64ns time unitsFederico Vaga (1):
net/core/sock.c: add missing VSOCK string in af_family_*_key_stringsFerruh Yigit (1):
Input: cyttsp - fix memcpy size paramFrancois Romieu (1):
r8169: fix offloaded tx checksum for small packets.Frank Li (1):
net: fec: fix kernel oops when plug/unplug cable many timesGao feng (1):
ipv6: assignrt6_infotoinet6_ifaddrininit_loopbackGiuseppe CAVALLARO (1):
net: phy: fix a bug when verify the EEE supportGreg Kroah-Hartman (1):
Linux 3.9.8Gregory CLEMENT (1):
ARM: 7754/1: Fix the CPU ID and the mask associated to the PJ4BGuillaume Nault (2):
l2tp: Fix PPP header erasure and memory leak
l2tp: Fixsendmsg()return valueHante Meuleman (1):
brcmfmac: Turn off ARP offloading when configured for AP.Helge Deller (11):
parisc: add kernel stack overflow check
parisc: implement irq stacks
parisc: more irq statistics in/proc/interrupts
parisc: tlb flush counting fix for SMP and UP
parisc: implement irq stacks - part 2 (v2)
parisc: add rp5470 entry to machine database
parisc: show number of FPE and unaligned access handler calls in/proc/interrupts
parisc: fix irq stack on UP and SMP
parisc: fix kernel BUG atarch/parisc/include/asm/mmzone.h:50
parisc: parport0: fix this legacy no-device port driver!
parisc: fix kernel BUG atarch/parisc/include/asm/mmzone.h:50(part 2)Igor Mammedov (1):
x86: kvmclock: zero initialize pvclock shared memory areaJason Wang (9):
tuntap: forbid changing mq flag for persistent device
vhost_net: clear msg.control for non-zerocopy case during tx
tuntap: setSOCK_ZEROCOPYflag during open
tuntap: correct the return value intun_set_iff()
macvtap: set transport header before passing skb to lower device
tuntap: set transport header before passing it to kernel
packet: set transport header before doing xmit
netback: set transport header before passing it to kernel
net_sched: better precise estimation on packet length for untrusted packetsJed Davis (1):
perf: arm64: Record the user-mode PC in the call chain.Jerome Glisse (2):
drm/radeon: do not try to uselessly update virtual memory pagetable drm/radeon: update lockup tracking when scheduling in empty ringJiri Pirko (2):
team: check return value ofteam_get_port_by_index_rcu()for NULL
team: move add to port list before port enablementJoern Engel (1):
target/iscsi: don't corruptbh_countiniscsit_stop_time2retain_timer()John David Anglin (1):
parisc: make interrupt and interruption stack allocation reentrantJon Medhurst (1):
ARM: 7752/1: errata: LoUIS bit field in CLIDR register is incorrectJosh Durgin (1):
rbd: use the correct length for format 2 object namesLai Jiangshan (1):
clk: remove notifier from list before freeing itLarry Finger (1):
rtlwifi: rtl8192cu: Fix problem in connecting to WEP or WPA(1) networksLaurent Pinchart (1):
drm/prime: Honor requested file flags when exporting a bufferMichal Kubecek (1):
ipv4: fix redirect handling for TCP packetsMika Westerberg (3):
ACPI / resources: callacpi_get_override_irq()only for legacy IRQ resources spi/pxa2xx: useGFP_ATOMICin sg table allocation
spi/pxa2xx: fix memory corruption due to wrong size used indevm_kzalloc()Ming Lei (1):
firmware loader: fix use-after-free by double abortNandita Dukkipati (1):
tcp: bug fix in proportional rate reduction.Neil Horman (1):
sctp: fully initializesctp_outqinsctp_outq_initPaul Bolle (1):
parisc: rename "CONFIG_PA7100" to "CONFIG_PA7000"Paul Gortmaker (1):
x86: Fix section mismatch onload_ucode_apPaul Moore (1):
netlabel: improve domain mapping validationPeter Hurley (1):
tty: Fix transient ptywrite()EIOPeter Zijlstra (2):
perf: Fix perf mmap bugs
perf: Fixmmap()accounting holePravin B Shelar (1):
udp6: Fix udp fragmentation for tunnel traffic.Rafael J. Wysocki (2):
ACPI / dock: Take ACPI scan lock inwrite_undock()ACPI / PM: Fix error code path for power resources initializationRandy Dunlap (1):
x86: fix build error and kconfig foria32_emulationand binfmtRoland Dreier (1):
tcm_qla2xxx: Fix residual for underrun commands that failShawn Joseph (1):
Input: xpad - fix for "Mad Catz Street Fighter IV FightPad" controllersSridhar Samudrala (1):
vxlan: Update vxlan fdb 'used' field after each usageTakashi Iwai (2):
ALSA: usb-audio: Fix invalid volume resolution for Logitech HD Webcam c310
ALSA: hda - Fix pin configurations for MacBook Air 4,2Thomas Bogendoerfer (2):
parisc: fix serial ports on C8000 workstation
parisc: providepci_mmap_page_range()for pariscTimo Teräs (1):
xfrm: properly handle invalid states as an errorWei Yongjun (1):
gianfar: add missingiounmap()on error ingianfar_ptp_probe()Yinghai Lu (2):
range: Do not add new blank slot withadd_range_with_mergex86, mtrr: Fix original mtrr range get formtrr_cleanupYoshihiro Shimoda (1):
net:sh_eth: fix incorrect RX length error if R8A7740Zhanghaoyu (A) (1):
KVM: x86: remove vcpu's CPL check in host-invoked XCR setZhao Hongjiang (1):
parisc: remove the second argument ofkmap_atomic()stephen hemminger (1):
8139cp: reset BQL when ring tx ring cleared
Greg KH
maintainerQuoted 10 lines · Sergey Meirovich
Hi,
Quoted 3 lines · Greg KH
I'm announcing the release of the 3.9.8 kernel.
All users of the 3.9 kernel series must upgrade.
I've got issues with my radeon ("01:00.0 VGA compatible controller:
Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series]") APU on 3.9.8
But 3.9.7 worked? Can you run 'git bisect' to track down the offending commit? Does 3.10-rc7 also have this problem?
thanks,
greg k-h
Quoted 6 lines · Greg KH
Quoted 5 lines · Sergey Meirovich
Hi,
Quoted 2 lines · Greg KH
I'm announcing the release of the 3.9.8 kernel.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
All users of the 3.9 kernel series must upgrade.
I've got issues with my radeon ("01:00.0 VGA compatible controller:
Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series]") APU on 3.9.8But 3.9.7 worked? Can you run 'git bisect' to track down the offending commit?
The last previous 3.9.X kernel I checked was 3.9.5 will try 3.9.7 a bit later as well as git bisect stuff
Quoted 1 line
Does 3.10-rc7 also have this problem?
3.10-rc7 doesn't have this problem
Quoted 4 lines
thanks,
greg k-h