Linux 3.2.16
Greg KH
maintainerI'm announcing the release of the 3.2.16 kernel.
All users of the 3.2 kernel series must upgrade.
Note, this is the LAST 3.2-stable kernel I will be releasing. Ben Hutchings has agreed to pick this kernel version up and will be maintaining it for an indefiniate amount of time. Any future questions about this kernel version should be directed to him and the stable kernel mailing list.
The updated 3.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.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/boot/compressed/head.S | 2 arch/arm/mm/proc-v7.S | 12 ++ arch/ia64/include/asm/futex.h | 9 - arch/s390/Kconfig | 1 arch/s390/include/asm/pgalloc.h | 3 arch/s390/include/asm/tlb.h | 22 ---- arch/s390/mm/pgtable.c | 63 +++++++++++- arch/sparc/kernel/ds.c | 2 arch/sparc/kernel/rtrap_64.S | 7 - drivers/acpi/acpica/acobject.h | 1 drivers/acpi/acpica/dsargs.c | 2 drivers/acpi/acpica/excreate.c | 6 + drivers/block/cciss_scsi.c | 3 drivers/bluetooth/ath3k.c | 4 drivers/bluetooth/btusb.c | 3 drivers/bluetooth/hci_ldisc.c | 4 drivers/dma/Kconfig | 13 +- drivers/dma/pch_dma.c | 8 + drivers/gpio/Kconfig | 11 +- drivers/gpio/gpio-pch.c | 2 drivers/gpu/drm/i915/i915_drv.c | 2 drivers/gpu/drm/i915/intel_display.c | 13 +- drivers/gpu/drm/i915/intel_dp.c | 49 ++++++--- drivers/gpu/drm/i915/intel_ringbuffer.c | 2 drivers/gpu/drm/radeon/atombios_encoders.c | 4 drivers/gpu/drm/radeon/radeon_connectors.c | 4 drivers/gpu/drm/radeon/radeon_i2c.c | 4 drivers/gpu/drm/radeon/radeon_irq_kms.c | 6 + drivers/md/bitmap.c | 2 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 17 ++- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c | 15 +- drivers/net/wireless/ath/ath9k/calib.c | 5 drivers/net/wireless/rtlwifi/pci.c | 7 + drivers/rtc/rtc-pl031.c | 3 drivers/spi/Kconfig | 6 - drivers/spi/spi-topcliff-pch.c | 38 ++++--- drivers/staging/iio/magnetometer/hmc5843.c | 4 drivers/tty/serial/altera_uart.c | 4 drivers/tty/serial/amba-pl011.c | 15 ++ drivers/tty/serial/pch_uart.c | 1 drivers/usb/core/driver.c | 9 + drivers/usb/core/hub.c | 16 +++ drivers/usb/core/message.c | 11 +- drivers/usb/gadget/pch_udc.c | 91 ++++++++++++++++-- drivers/usb/host/pci-quirks.c | 10 + drivers/usb/host/xhci-ext-caps.h | 5 drivers/usb/host/xhci-mem.c | 9 - drivers/usb/host/xhci-pci.c | 2 drivers/usb/host/xhci-ring.c | 2 drivers/usb/host/xhci.c | 9 - drivers/usb/host/xhci.h | 4 drivers/usb/serial/ftdi_sio.c | 36 +++---- drivers/usb/serial/option.c | 1 drivers/usb/serial/pl2303.c | 2 drivers/usb/serial/sierra.c | 1 drivers/usb/serial/usb-serial.c | 8 + drivers/video/uvesafb.c | 11 +- fs/ext4/ext4.h | 3 fs/ext4/extents.c | 4 fs/ext4/super.c | 16 --- include/net/bluetooth/hci.h | 1 kernel/futex.c | 36 ++----- kernel/futex_compat.c | 36 ++----- kernel/time/tick-sched.c | 4 mm/hugetlb.c | 2 net/bluetooth/hci_core.c | 7 + security/commoncap.c | 6 + tools/perf/util/hist.c | 12 ++ 69 files changed, 488 insertions(+), 247 deletions(-)
Alan Stern (2):
USB: don't clear urb->dev in scatter-gather library
USB: don't ignore suspend errors for root hubs
Alex Deucher (2):
drm/radeon/kms: fix DVO setup on some r4xx chips drm/radeon: only add the mm i2c bus if the hw_i2c module param is set
Alex He (1):
xHCI: Correct the #define XHCI_LEGACY_DISABLE_SMI
Anton Samokhvalov (1):
USB: sierra: add support for Sierra Wireless MC7710
Axel Lin (1):
gpio: Add missing spin_lock_init in gpio-pch driver
Cho, Yu-Chen (1):
Bluetooth: Add Atheros maryann PIDVID support
Chris Metcalf (1):
hugetlb: fix race condition in hugetlb_fault()
Chris Wilson (1):
drm/i915/ringbuffer: Exclude last 2 cachlines of ring on 845g
Dan Carpenter (1):
pch_gbe: memory corruption calling pch_gbe_validate_option()
Daniel Vetter (1):
drm/i915: properly compute dp dithering for user-created modes
Danny Kukawka (1):
spi-topcliff-pch: fix -Wuninitialized warning
Darren Hart (1):
pch_gbe: Do not abort probe on bad MAC
Dave Airlie (2):
drm/radeon: disable MSI on RV515
drm/radeon: fix load detect on rn50 with hardcoded EDIDs.
David Miller (1):
perf hists: Catch and handle out-of-date hist entry maps.
David S. Miller (1):
sparc64: Fix bootup crash on sun4v.
Elric Fu (2):
USB: fix bug of device descriptor got from superspeed device
xHCI: add XHCI_RESET_ON_RESUME quirk for VIA xHCI host
Eran (1):
Bluetooth: Adding USB device 13d3:3375 as an Atheros AR3012.
Eric Paris (1):
fcaps: clear the same personality flags as suid when fcaps are used
Felipe Balbi (1):
xhci: don't re-enable IE constantly
Greg Kroah-Hartman (1):
Linux 3.2.16
Jesse Barnes (2):
drm/i915: mask transcoder select bits before setting them on LVDS drm/i915: make rc6 module parameter read-only
Jesse Sung (1):
Bluetooth: Add support for BCM20702A0 [0a5c:21e3]
Johan Hovold (5):
Bluetooth: uart-ldisc: Fix memory leak
Bluetooth: hci_ldisc: fix NULL-pointer dereference on tty_close
USB: serial: fix race between probe and open
USB: pl2303: fix DTR/RTS being raised on baud rate change
Bluetooth: hci_core: fix NULL-pointer dereference at unregister
Jonathan Austin (1):
ARM: 7384/1: ThumbEE: Disable userspace TEEHBR access for !CONFIG_ARM_THUMBEE
Jonghwan Choi (1):
security: fix compile error in commoncap.c
Kees Cook (1):
futex: Do not leak robust list to unprivileged process
Larry Finger (1):
rtlwifi: Add missing DMA buffer unmapping for PCI drivers
Lin Ming (1):
ACPICA: Fix to allow region arguments to reference other scopes
Linus Walleij (3):
drivers/rtc/rtc-pl031.c: enable clock on all ST variants
serial: PL011: clear pending interrupts
serial: PL011: move interrupt clearing
Marc Zyngier (1):
ARM: 7379/1: DT: fix atags_to_fdt() second call site
Marek Belisko (1):
staging: iio: hmc5843: Fix crash in probe function.
Martin Schwidefsky (1):
fix tlb flushing for page table pages
Neal Cardwell (1):
nohz: Fix stale jiffies update in tick_nohz_restart()
NeilBrown (1):
md/bitmap: prevent bitmap_daemon_work running while initialising bitmap
Paul E. McKenney (1):
sparc64: Eliminate obsolete __handle_softirq() function
Rajkumar Manoharan (1):
ath9k: fix max noise floor threshold
Santiago Garcia Mantinan (1):
USB: option: re-add NOVATELWIRELESS_PRODUCT_HSPA_HIGHSPEED to option_id array
Sarah Sharp (3):
xhci: Don't write zeroed pointers to xHC registers.
xhci: Restore event ring dequeue pointer on resume.
xhci: Fix register save/restore order.
Simon Arlott (2):
USB: ftdi_sio: fix status line change handling for TIOCMIWAIT and TIOCGICOUNT
USB: ftdi_sio: fix race condition in TIOCMIWAIT, and abort of TIOCMIWAIT when the device is removed
Stephen M. Cameron (2):
cciss: Initialize scsi host max_sectors for tape drive support
cciss: Fix scsi tape io with more than 255 scatter gather elements
Takashi Iwai (1):
drm/radeon/kms: fix the regression of DVI connector check
Theodore Ts'o (1):
ext4: address scalability issue by removing extent cache statistics
Tomoya MORINAGA (9):
pch_uart: Fix MSI setting issue
pch_gpio: Support new device LAPIS Semiconductor ML7831 IOH
usb: gadget: pch_udc: Fix disconnect issue
usb: gadget: pch_udc: Fix wrong return value
usb: gadget: pch_udc: Fix USB suspend issue
usb: gadget: pch_udc: Fix usb/gadget/pch_udc: Fix ether gadget connect/disconnect issue
usb: gadget: pch_udc: Reduce redundant interrupt
pch_dma: Support new device LAPIS Semiconductor ML7831 IOH
spi-topcliff-pch: Support new device LAPIS Semiconductor ML7831 IOH
Tony Luck (1):
ia64: fix futex_atomic_cmpxchg_inatomic()
Wang YanQing (1):
video:uvesafb: Fix oops that uvesafb try to execute NX-protected page
Yuriy Kozlov (1):
tty: serial: altera_uart: Check for NULL platform_data in probe.
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 2 -SUBLEVEL = 15 +SUBLEVEL = 16 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/boot/compressed/head.S +1 -1
@@ -273,7 +273,7 @@ restart: adr r0, LC0 add r0, r0, #0x100 mov r1, r6 sub r2, sp, r6 - blne atags_to_fdt + bleq atags_to_fdt ldmfd sp!, {r0-r3, ip, lr} sub sp, sp, #0x10000
arch/arm/mm/proc-v7.S +12 -0
@@ -382,6 +382,18 @@ __v7_setup: mcr p15, 0, r5, c10, c2, 0 @ write PRRR mcr p15, 0, r6, c10, c2, 1 @ write NMRR #endif +#ifndef CONFIG_ARM_THUMBEE + mrc p15, 0, r0, c0, c1, 0 @ read ID_PFR0 for ThumbEE + and r0, r0, #(0xf << 12) @ ThumbEE enabled field + teq r0, #(1 << 12) @ check if ThumbEE is present + bne 1f + mov r5, #0 + mcr p14, 6, r5, c1, c0, 0 @ Initialize TEEHBR to 0 + mrc p14, 6, r0, c0, c0, 0 @ load TEECR + orr r0, r0, #1 @ set the 1st bit in order to + mcr p14, 6, r0, c0, c0, 0 @ stop userspace TEEHBR access +1: +#endif adr r5, v7_crval ldmia r5, {r5, r6} #ifdef CONFIG_CPU_ENDIAN_BE8
arch/ia64/include/asm/futex.h +5 -4
@@ -107,15 +107,16 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,return -EFAULT ; { - register unsigned long r8 __asm ("r8") = 0; + registerunsigned long r8 __asm ("r8" );unsigned long prev; __asm__ __volatile__(" mf;; \n" -" mov ar.ccv=%3;; \n" -"[1:] cmpxchg4.acq %0=[%1],%2,ar.ccv \n" +" mov %0=r0 \n" +" mov ar.ccv=%4;; \n" +"[1:] cmpxchg4.acq %1=[%2],%3,ar.ccv \n" " .xdata4 \"__ex_table\", 1b-., 2f-. \n" "[2:]" - :"=r" (prev) + :"=r" (r8),"=r" (prev) :"r" (uaddr),"r" (newval),"rO" ((long ) (unsigned ) oldval) :"memory" );
arch/s390/Kconfig +0 -1
@@ -90,7 +90,6 @@ config S390 select HAVE_GET_USER_PAGES_FAST select HAVE_ARCH_MUTEX_CPU_RELAX select HAVE_ARCH_JUMP_LABEL if !MARCH_G5 - select HAVE_RCU_TABLE_FREE if SMP select ARCH_SAVE_PAGE_KEYS if HIBERNATION select ARCH_INLINE_SPIN_TRYLOCK select ARCH_INLINE_SPIN_TRYLOCK_BH
arch/s390/include/asm/pgalloc.h +0 -3
@@ -22,10 +22,7 @@ void crst_table_free(struct mm_struct *, unsigned long *);unsigned long *page_table_alloc (struct mm_struct *,unsigned long );void page_table_free (struct mm_struct *,unsigned long *); -#ifdef CONFIG_HAVE_RCU_TABLE_FREE void page_table_free_rcu (struct mmu_gather *,unsigned long *); -void __tlb_remove_table (void *_table); -#endif static inline void clear_table (unsigned long *s,unsigned long val,size_t n) {
arch/s390/include/asm/tlb.h +1 -21
@@ -30,14 +30,10 @@struct mmu_gather {struct mm_struct *mm; -#ifdef CONFIG_HAVE_RCU_TABLE_FREE struct mmu_table_batch *batch; -#endif unsigned int fullmm; -unsigned int need_flush; }; -#ifdef CONFIG_HAVE_RCU_TABLE_FREEstruct mmu_table_batch {struct rcu_head rcu;unsigned int nr;
@@ -49,7 +45,6 @@ struct mmu_table_batch {extern void tlb_table_flush (struct mmu_gather *tlb);extern void tlb_remove_table (struct mmu_gather *tlb,void *table); -#endif static inline void tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm,
@@ -57,29 +52,20 @@ static inline void tlb_gather_mmu(struct mmu_gather *tlb, { tlb->mm = mm; tlb->fullmm = full_mm_flush; - tlb->need_flush =0 ; -#ifdef CONFIG_HAVE_RCU_TABLE_FREE tlb->batch =NULL ; -#endif if (tlb->fullmm)__tlb_flush_mm (mm); }static inline void tlb_flush_mmu (struct mmu_gather *tlb) { -if (!tlb->need_flush) -return ; - tlb->need_flush =0 ; -__tlb_flush_mm (tlb->mm); -#ifdef CONFIG_HAVE_RCU_TABLE_FREE tlb_table_flush (tlb); -#endif }static inline void tlb_finish_mmu (struct mmu_gather *tlb,unsigned long start,unsigned long end) { -tlb_flush_mmu (tlb); +tlb_table_flush (tlb); }/*
@@ -105,10 +91,8 @@ static inline void tlb_remove_page(struct mmu_gather *tlb, struct page *page)static inline void pte_free_tlb (struct mmu_gather *tlb,pgtable_t pte,unsigned long address) { -#ifdef CONFIG_HAVE_RCU_TABLE_FREE if (!tlb->fullmm)return page_table_free_rcu (tlb, (unsigned long *) pte); -#endif page_table_free (tlb->mm, (unsigned long *) pte); }
@@ -125,10 +109,8 @@ static inline void pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd,#ifdef __s390x__if (tlb->mm->context.asce_limit <= (1UL <<31 ))return ; -#ifdef CONFIG_HAVE_RCU_TABLE_FREE if (!tlb->fullmm)return tlb_remove_table (tlb, pmd); -#endif crst_table_free (tlb->mm, (unsigned long *) pmd);#endif }
@@ -146,10 +128,8 @@ static inline void pud_free_tlb(struct mmu_gather *tlb, pud_t *pud,#ifdef __s390x__if (tlb->mm->context.asce_limit <= (1UL <<42 ))return ; -#ifdef CONFIG_HAVE_RCU_TABLE_FREE if (!tlb->fullmm)return tlb_remove_table (tlb, pud); -#endif crst_table_free (tlb->mm, (unsigned long *) pud);#endif }
arch/s390/mm/pgtable.c +60 -3
75 lines not on this page · raw message
arch/sparc/kernel/ds.c +1 -1
@@ -1267,4 +1267,4 @@ static int __init ds_init(void)return vio_register_driver (&ds_driver); } -subsys_initcall (ds_init); +fs_initcall (ds_init);
arch/sparc/kernel/rtrap_64.S +0 -7
@@ -20,11 +20,6 @@ .text .align 32 -__handle_softirq: - call do_softirq - nop - ba,a,pt %xcc, __handle_softirq_continue - nop __handle_preemption: call schedule wrpr %g0, RTRAP_PSTATE, %pstate
@@ -89,9 +84,7 @@ rtrap: cmp %l1, 0 /* mm/ultra.S:xcall_report_regs KNOWS about this load. */ - bne,pn %icc, __handle_softirq ldx [%sp + PTREGS_OFF + PT_V9_TSTATE], %l1 -__handle_softirq_continue: rtrap_xcall: sethi %hi(0xf << 20), %l4 and %l1, %l4, %l4
drivers/acpi/acpica/acobject.h +1 -0
@@ -358,6 +358,7 @@ typedef enum {*/ struct acpi_object_extra { ACPI_OBJECT_COMMON_HEADER struct acpi_namespace_node *method_REG; /* _REG method for this region (if any) */ +struct acpi_namespace_node *scope_node;void *region_context;/* Region-specific data */ u8 *aml_start;u32 aml_length;
drivers/acpi/acpica/dsargs.c +1 -1
@@ -384,7 +384,7 @@ acpi_status acpi_ds_get_region_arguments(union acpi_operand_object *obj_desc)/* Execute the argument AML */ - status =acpi_ds_execute_arguments (node, node->parent, + status =acpi_ds_execute_arguments (node, extra_desc->extra.scope_node, extra_desc->extra.aml_length, extra_desc->extra.aml_start);if (ACPI_FAILURE (status)) {
drivers/acpi/acpica/excreate.c +6 -0
@@ -330,6 +330,12 @@ acpi_ex_create_region(u8 * aml_start, region_obj2 = obj_desc->common.next_object; region_obj2->extra.aml_start = aml_start; region_obj2->extra.aml_length = aml_length; +if (walk_state->scope_info) { + region_obj2->extra.scope_node = + walk_state->scope_info->scope.node; + }else { + region_obj2->extra.scope_node = node; + }/* Init the region from the operands */
drivers/block/cciss_scsi.c +2 -1
@@ -866,6 +866,7 @@ cciss_scsi_detect(ctlr_info_t *h) sh->can_queue = cciss_tape_cmds; sh->sg_tablesize = h->maxsgentries; sh->max_cmd_len =MAX_COMMAND_SIZE ; + sh->max_sectors = h->cciss_max_sectors; ((struct cciss_scsi_adapter_data_t *) h->scsi_ctlr)->scsi_host = sh;
@@ -1410,7 +1411,7 @@ static void cciss_scatter_gather(ctlr_info_t *h, CommandList_struct *c,/* track how many SG entries we are using */ if (request_nsgs > h->maxSG) h->maxSG = request_nsgs; - c->Header.SGTotal = (__u8 ) request_nsgs + chained; + c->Header.SGTotal = (u16 ) request_nsgs + chained;if (request_nsgs > h->max_cmd_sgentries) c->Header.SGList = h->max_cmd_sgentries;else
drivers/bluetooth/ath3k.c +4 -0
@@ -71,6 +71,8 @@ static struct usb_device_id ath3k_table[] = {/* Atheros AR3012 with sflash firmware*/ { USB_DEVICE(0x0CF3, 0x3004) }, + { USB_DEVICE(0x0CF3, 0x311D) }, + { USB_DEVICE(0x13d3, 0x3375) },/* Atheros AR5BBU12 with sflash firmware */ { USB_DEVICE(0x0489, 0xE02C) },
@@ -87,6 +89,8 @@ static struct usb_device_id ath3k_blist_tbl[] = {/* Atheros AR3012 with sflash firmware*/ { USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0x311D), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x13d3, 0x3375), .driver_info = BTUSB_ATH3012 }, { }/* Terminating entry */ };
drivers/bluetooth/btusb.c +3 -0
@@ -101,6 +101,7 @@ static struct usb_device_id btusb_table[] = { { USB_DEVICE(0x0c10, 0x0000) },/* Broadcom BCM20702A0 */ + { USB_DEVICE(0x0a5c, 0x21e3) }, { USB_DEVICE(0x413c, 0x8197) }, { } /* Terminating entry */
@@ -126,6 +127,8 @@ static struct usb_device_id blacklist_table[] = {/* Atheros 3012 with sflash firmware */ { USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0x311d), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x13d3, 0x3375), .driver_info = BTUSB_ATH3012 }, /* Atheros AR5BBU12 with sflash firmware */ { USB_DEVICE(0x0489, 0xe02c), .driver_info = BTUSB_IGNORE },
drivers/bluetooth/hci_ldisc.c +2 -2
@@ -237,7 +237,6 @@ static void hci_uart_destruct(struct hci_dev *hdev)return ;BT_DBG ("%s" , hdev->name); -kfree (hdev->driver_data); }/* ------ LDISC part ------ */
@@ -310,12 +309,13 @@ static void hci_uart_tty_close(struct tty_struct *tty)hci_uart_close (hdev);if (test_and_clear_bit (HCI_UART_PROTO_SET , &hu->flags)) { - hu->proto->close (hu);if (hdev) {hci_unregister_dev (hdev);hci_free_dev (hdev); } + hu->proto->close (hu); } +kfree (hu); } }
drivers/dma/Kconfig +6 -7
@@ -201,18 +201,17 @@ config PL330_DMA platform_data for a dma-pl330 device. config PCH_DMA - tristate "Intel EG20T PCH / OKI Semi IOH(ML7213/ML7223) DMA support" + tristate "Intel EG20T PCH / OKI Semi IOH(ML7213/ML7223/ML7831) DMA support" depends on PCI && X86 select DMA_ENGINE help Enable support for Intel EG20T PCH DMA engine. - This driver also can be used for OKI SEMICONDUCTOR IOH(Input/ - Output Hub), ML7213 and ML7223. - ML7213 IOH is for IVI(In-Vehicle Infotainment) use and ML7223 IOH is - for MP(Media Phone) use. - ML7213/ML7223 is companion chip for Intel Atom E6xx series. - ML7213/ML7223 is completely compatible for Intel EG20T PCH. + Output Hub), ML7213, ML7223 and ML7831. + ML7213 IOH is for IVI(In-Vehicle Infotainment) use, ML7223 IOH is + for MP(Media Phone) use and ML7831 IOH is for general purpose use. + ML7213/ML7223/ML7831 is companion chip for Intel Atom E6xx series. + ML7213/ML7223/ML7831 is completely compatible for Intel EG20T PCH. config IMX_SDMA tristate "i.MX SDMA support"
drivers/dma/pch_dma.c +6 -2
@@ -1018,6 +1018,8 @@ static void __devexit pch_dma_remove(struct pci_dev *pdev)#define PCI_DEVICE_ID_ML7223_DMA2_4CH 0x800E#define PCI_DEVICE_ID_ML7223_DMA3_4CH 0x8017#define PCI_DEVICE_ID_ML7223_DMA4_4CH 0x803B +#define PCI_DEVICE_ID_ML7831_DMA1_8CH 0x8810 +#define PCI_DEVICE_ID_ML7831_DMA2_4CH 0x8815DEFINE_PCI_DEVICE_TABLE (pch_dma_id_table) = { {PCI_VDEVICE (INTEL ,PCI_DEVICE_ID_EG20T_PCH_DMA_8CH ),8 },
@@ -1030,6 +1032,8 @@ DEFINE_PCI_DEVICE_TABLE(pch_dma_id_table) = { { PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7223_DMA2_4CH), 4}, /* Video SPI */ { PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7223_DMA3_4CH), 4}, /* Security */ { PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7223_DMA4_4CH), 4}, /* FPGA */ + { PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7831_DMA1_8CH), 8}, /* UART */ + { PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7831_DMA2_4CH), 4}, /* SPI */ { 0, }, };
@@ -1057,7 +1061,7 @@ static void __exit pch_dma_exit(void)module_init (pch_dma_init);module_exit (pch_dma_exit); -MODULE_DESCRIPTION ("Intel EG20T PCH / OKI SEMICONDUCTOR ML7213 IOH " -"DMA controller driver" ); +MODULE_DESCRIPTION ("Intel EG20T PCH / OKI SEMICON ML7213/ML7223/ML7831 IOH" +"DMA controller driver" );MODULE_AUTHOR ("Yong Wang <[email protected]>" );MODULE_LICENSE ("GPL v2" );
drivers/gpio/Kconfig +6 -5
@@ -387,7 +387,7 @@ config GPIO_LANGWELL Say Y here to support Intel Langwell/Penwell GPIO. config GPIO_PCH - tristate "Intel EG20T PCH / OKI SEMICONDUCTOR ML7223 IOH GPIO" + tristate "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7223/ML7831) GPIO" depends on PCI && X86 select GENERIC_IRQ_CHIP help
@@ -395,11 +395,12 @@ config GPIO_PCH which is an IOH(Input/Output Hub) for x86 embedded processor. This driver can access PCH GPIO device. - This driver also can be used for OKI SEMICONDUCTOR IOH(Input/ - Output Hub), ML7223. + This driver also can be used for LAPIS Semiconductor IOH(Input/ + Output Hub), ML7223 and ML7831. ML7223 IOH is for MP(Media Phone) use. - ML7223 is companion chip for Intel Atom E6xx series. - ML7223 is completely compatible for Intel EG20T PCH. + ML7831 IOH is for general purpose use. + ML7223/ML7831 is companion chip for Intel Atom E6xx series. + ML7223/ML7831 is completely compatible for Intel EG20T PCH. config GPIO_ML_IOH tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
drivers/gpio/gpio-pch.c +2 -0
@@ -392,6 +392,7 @@ static int __devinit pch_gpio_probe(struct pci_dev *pdev, chip->reg = chip->base;pci_set_drvdata (pdev, chip);mutex_init (&chip->lock); +spin_lock_init (&chip->spinlock);pch_gpio_setup (chip); ret =gpiochip_add (&chip->gpio);if (ret) {
@@ -524,6 +525,7 @@ static DEFINE_PCI_DEVICE_TABLE(pch_gpio_pcidev_id) = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x8803) }, { PCI_DEVICE(PCI_VENDOR_ID_ROHM, 0x8014) }, { PCI_DEVICE(PCI_VENDOR_ID_ROHM, 0x8043) }, + { PCI_DEVICE(PCI_VENDOR_ID_ROHM, 0x8803) }, { 0, } };MODULE_DEVICE_TABLE (pci, pch_gpio_pcidev_id);
drivers/gpu/drm/i915/i915_drv.c +1 -1
@@ -64,7 +64,7 @@ MODULE_PARM_DESC(semaphores, "Use semaphores for inter-ring sync (default: -1 (use per-chip defaults))");int i915_enable_rc6__read_mostly =-1 ; -module_param_named (i915_enable_rc6, i915_enable_rc6, int,0600 ); +module_param_named (i915_enable_rc6, i915_enable_rc6, int,0400 );MODULE_PARM_DESC (i915_enable_rc6,"Enable power-saving render C-state 6 (default: -1 (use per-chip default)" );
drivers/gpu/drm/i915/intel_display.c +8 -5
@@ -5646,12 +5646,15 @@ static int ironlake_crtc_mode_set(struct drm_crtc *crtc,if (is_lvds) { temp =I915_READ (PCH_LVDS ); temp |=LVDS_PORT_EN |LVDS_A0A2_CLKA_POWER_UP ; -if (HAS_PCH_CPT (dev)) +if (HAS_PCH_CPT (dev)) { + temp &= ~PORT_TRANS_SEL_MASK ; temp |=PORT_TRANS_SEL_CPT (pipe); -else if (pipe ==1 ) - temp |=LVDS_PIPEB_SELECT ; -else - temp &= ~LVDS_PIPEB_SELECT ; + }else { +if (pipe ==1 ) + temp |=LVDS_PIPEB_SELECT ; +else + temp &= ~LVDS_PIPEB_SELECT ; + }/* set the corresponsding LVDS_BORDER bit */ temp |= dev_priv->lvds_border_bits;
drivers/gpu/drm/i915/intel_dp.c +35 -14
78 lines not on this page · raw message
drivers/gpu/drm/i915/intel_ringbuffer.c +1 -1
@@ -1052,7 +1052,7 @@ int intel_init_ring_buffer(struct drm_device *dev,* of the buffer. */ ring->effective_size = ring->size; -if (IS_I830 (ring->dev)) +if (IS_I830 (ring->dev) ||IS_845G (ring->dev)) ring->effective_size -=128 ;return 0 ;
drivers/gpu/drm/radeon/atombios_encoders.c +4 -0
@@ -246,6 +246,10 @@ atombios_dvo_setup(struct drm_encoder *encoder, int action)if (!atom_parse_cmd_header (rdev->mode_info.atom_context, index, &frev, &crev))return ; +/* some R4xx chips have the wrong frev */ +if (rdev->family <=CHIP_RV410 ) + frev =1 ; +switch (frev) {case 1 :switch (crev) {
drivers/gpu/drm/radeon/radeon_connectors.c +2 -2
@@ -946,7 +946,7 @@ radeon_dvi_detect(struct drm_connector *connector, bool force) encoder =obj_to_encoder (obj); -if (encoder->encoder_type !=DRM_MODE_ENCODER_DAC || +if (encoder->encoder_type !=DRM_MODE_ENCODER_DAC && encoder->encoder_type !=DRM_MODE_ENCODER_TVDAC )continue ;
@@ -976,6 +976,7 @@ radeon_dvi_detect(struct drm_connector *connector, bool force)* cases the DVI port is actually a virtual KVM port connected to the service * processor. */ +out:if ((!rdev->is_atom_bios) && (ret == connector_status_disconnected) && rdev->mode_info.bios_hardcoded_edid_size) {
@@ -983,7 +984,6 @@ radeon_dvi_detect(struct drm_connector *connector, bool force) ret = connector_status_connected; } -out:/* updated in get modes as well since we need to know if it's analog or digital */ radeon_connector_update_scratch_regs (connector, ret);return ret;
drivers/gpu/drm/radeon/radeon_i2c.c +4 -0
@@ -890,6 +890,10 @@ struct radeon_i2c_chan *radeon_i2c_create(struct drm_device *dev,struct radeon_i2c_chan *i2c;int ret; +/* don't add the mm_i2c bus unless hw_i2c is enabled */ +if (rec->mm_i2c && (radeon_hw_i2c ==0 )) +return NULL ; + i2c =kzalloc (sizeof (struct radeon_i2c_chan ),GFP_KERNEL );if (i2c ==NULL )return NULL ;
drivers/gpu/drm/radeon/radeon_irq_kms.c +6 -0
@@ -143,6 +143,12 @@ static bool radeon_msi_ok(struct radeon_device *rdev) (rdev->pdev->subsystem_device == 0x01fd))return true; +/* RV515 seems to have MSI issues where it loses +* MSI rearms occasionally. This leads to lockups and freezes. +* disable it by default. +*/ +if (rdev->family ==CHIP_RV515 ) +return false;if (rdev->flags &RADEON_IS_IGP ) {/* APUs work fine with MSIs */ if (rdev->family >=CHIP_PALM )
drivers/md/bitmap.c +2 -0
@@ -1819,7 +1819,9 @@ int bitmap_load(struct mddev *mddev)* re-add of a missing device */ start = mddev->recovery_cp; +mutex_lock (&mddev->bitmap_info.mutex); err =bitmap_init_from_disk (bitmap, start); +mutex_unlock (&mddev->bitmap_info.mutex);if (err) goto out;
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c +14 -3
@@ -1745,6 +1745,12 @@ int pch_gbe_up(struct pch_gbe_adapter *adapter)struct pch_gbe_rx_ring *rx_ring = adapter->rx_ring;int err; +/* Ensure we have a valid MAC */ +if (!is_valid_ether_addr (adapter->hw.mac.addr)) { +pr_err ("Error: Invalid MAC address\n" ); +return -EINVAL ; + } +/* hardware has been reset, we need to reload some things */ pch_gbe_set_multi (netdev);
@@ -2467,9 +2473,14 @@ static int pch_gbe_probe(struct pci_dev *pdev,memcpy (netdev->dev_addr, adapter->hw.mac.addr, netdev->addr_len);if (!is_valid_ether_addr (netdev->dev_addr)) { -dev_err (&pdev->dev,"Invalid MAC Address\n" ); - ret = -EIO ; - goto err_free_adapter; +/* +* If the MAC is invalid (or just missing), display a warning +* but do not abort setting up the device. pch_gbe_up will +* prevent the interface from being brought up until a valid MAC +* is set. +*/ +dev_err (&pdev->dev,"Invalid MAC address, " +"interface disabled.\n" ); }setup_timer (&adapter->watchdog_timer, pch_gbe_watchdog, (unsigned long )adapter);
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c +8 -7
@@ -321,10 +321,10 @@ static void pch_gbe_check_copper_options(struct pch_gbe_adapter *adapter)pr_debug ("AutoNeg specified along with Speed or Duplex, AutoNeg parameter ignored\n" ); hw->phy.autoneg_advertised = opt.def; }else { - hw->phy.autoneg_advertised = AutoNeg; -pch_gbe_validate_option ( - (int *)(&hw->phy.autoneg_advertised), - &opt, adapter); +int tmp = AutoNeg; + +pch_gbe_validate_option (&tmp, &opt, adapter); + hw->phy.autoneg_advertised = tmp; } }
@@ -495,9 +495,10 @@ void pch_gbe_check_options(struct pch_gbe_adapter *adapter) .arg = { .l = { .nr = (int)ARRAY_SIZE(fc_list), .p = fc_list } } }; - hw->mac.fc = FlowControl; -pch_gbe_validate_option ((int *)(&hw->mac.fc), - &opt, adapter); +int tmp = FlowControl; + +pch_gbe_validate_option (&tmp, &opt, adapter); + hw->mac.fc = tmp; }pch_gbe_check_copper_options (adapter);
drivers/net/wireless/ath/ath9k/calib.c +2 -3
@@ -20,7 +20,6 @@/* Common calibration code */ -#define ATH9K_NF_TOO_HIGH -60static int16_t ath9k_hw_get_nf_hist_mid (int16_t *nfCalBuffer) {
@@ -348,10 +347,10 @@ static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf)"NF calibrated [%s] [chain %d] is %d\n" , (i >= 3 ? "ext" : "ctl"), i % 3, nf[i]); -if (nf[i] >ATH9K_NF_TOO_HIGH ) { +if (nf[i] > limit->max) {ath_dbg (common,ATH_DBG_CALIBRATE ,"NF[%d] (%d) > MAX (%d), correcting to MAX\n" , - i, nf[i],ATH9K_NF_TOO_HIGH ); + i, nf[i], limit->max); nf[i] = limit->max; }else if (nf[i] < limit->min) { ath_dbg(common, ATH_DBG_CALIBRATE,
drivers/net/wireless/rtlwifi/pci.c +6 -1
@@ -926,8 +926,13 @@ static void _rtl_pci_prepare_bcn_tasklet(struct ieee80211_hw *hw)memset (&tcb_desc,0 ,sizeof (struct rtl_tcb_desc )); ring = &rtlpci->tx_ring[BEACON_QUEUE ]; pskb =__skb_dequeue (&ring->queue); -if (pskb) +if (pskb) { +struct rtl_tx_desc *entry = &ring->desc[ring->idx]; +pci_unmap_single (rtlpci->pdev, rtlpriv->cfg->ops->get_desc ( + (u8 *) entry, true,HW_DESC_TXBUFF_ADDR ), + pskb->len,PCI_DMA_TODEVICE );kfree_skb (pskb); + }/*NB: the beacon data buffer must be 32-bit aligned. */ pskb =ieee80211_beacon_get (hw, mac->vif);
drivers/rtc/rtc-pl031.c +1 -2
@@ -339,8 +339,7 @@ static int pl031_probe(struct amba_device *adev, const struct amba_id *id)dev_dbg (&adev->dev,"revision = 0x%01x\n" , ldata->hw_revision);/* Enable the clockwatch on ST Variants */ -if ((ldata->hw_designer ==AMBA_VENDOR_ST ) && - (ldata->hw_revision >1 )) +if (ldata->hw_designer ==AMBA_VENDOR_ST )writel (readl (ldata->base +RTC_CR ) |RTC_CR_CWEN , ldata->base +RTC_CR );
drivers/spi/Kconfig +3 -3
@@ -346,14 +346,14 @@ config SPI_TI_SSP serial port. config SPI_TOPCLIFF_PCH - tristate "Intel EG20T PCH/OKI SEMICONDUCTOR ML7213 IOH SPI controller" + tristate "Intel EG20T PCH/LAPIS Semicon IOH(ML7213/ML7223/ML7831) SPI" depends on PCI help SPI driver for the Topcliff PCH (Platform Controller Hub) SPI bus used in some x86 embedded processors. - This driver also supports the ML7213, a companion chip for the - Atom E6xx series and compatible with the Intel EG20T PCH. + This driver also supports the ML7213/ML7223/ML7831, a companion chip + for the Atom E6xx series and compatible with the Intel EG20T PCH. config SPI_TXX9 tristate "Toshiba TXx9 SPI controller"
drivers/spi/spi-topcliff-pch.c +21 -17
@@ -95,16 +95,18 @@#define PCH_CLOCK_HZ 50000000#define PCH_MAX_SPBR 1023 -/* Definition for ML7213 by OKI SEMICONDUCTOR */ +/* Definition for ML7213/ML7831 by OKI SEMICONDUCTOR */ #define PCI_VENDOR_ID_ROHM 0x10DB#define PCI_DEVICE_ID_ML7213_SPI 0x802c#define PCI_DEVICE_ID_ML7223_SPI 0x800F +#define PCI_DEVICE_ID_ML7831_SPI 0x8816/* * Set the number of SPI instance max * Intel EG20T PCH : 1ch * OKI SEMICONDUCTOR ML7213 IOH : 2ch * OKI SEMICONDUCTOR ML7223 IOH : 1ch +* OKI SEMICONDUCTOR ML7831 IOH : 1ch */ #define PCH_SPI_MAX_DEV 2
@@ -218,6 +220,7 @@ static struct pci_device_id pch_spi_pcidev_id[] = { { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_GE_SPI), 1, }, { PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7213_SPI), 2, }, { PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7223_SPI), 1, }, + { PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7831_SPI), 1, }, { } };
@@ -315,22 +318,23 @@ static void pch_spi_handler_sub(struct pch_spi_data *data, u32 reg_spsr_val, data->tx_index = tx_index; data->rx_index = rx_index; - } - -/* if transfer complete interrupt */ -if (reg_spsr_val &SPSR_FI_BIT ) { -if ((tx_index == bpw_len) && (rx_index == tx_index)) { -/* disable interrupts */ -pch_spi_setclr_reg (data->master,PCH_SPCR ,0 ,PCH_ALL ); - -/* transfer is completed; -inform pch_spi_process_messages */ - data->transfer_complete = true; - data->transfer_active = false; -wake_up (&data->wait); - }else { -dev_err (&data->master->dev, -"%s : Transfer is not completed" , __func__); +/* if transfer complete interrupt */ +if (reg_spsr_val &SPSR_FI_BIT ) { +if ((tx_index == bpw_len) && (rx_index == tx_index)) { +/* disable interrupts */ +pch_spi_setclr_reg (data->master,PCH_SPCR ,0 , +PCH_ALL ); + +/* transfer is completed; +inform pch_spi_process_messages */ + data->transfer_complete = true; + data->transfer_active = false; +wake_up (&data->wait); + }else { +dev_err (&data->master->dev, +"%s : Transfer is not completed" , + __func__); + } } } }
drivers/staging/iio/magnetometer/hmc5843.c +3 -1
@@ -521,7 +521,9 @@ static int hmc5843_detect(struct i2c_client *client,/* Called when we have found a new HMC5843. */ static void hmc5843_init_client (struct i2c_client *client) { -struct hmc5843_data *data =i2c_get_clientdata (client); +struct iio_dev *indio_dev =i2c_get_clientdata (client); +struct hmc5843_data *data =iio_priv (indio_dev); +hmc5843_set_meas_conf (client, data->meas_conf);hmc5843_set_rate (client, data->rate);hmc5843_configure (client, data->operating_mode);
drivers/tty/serial/altera_uart.c +2 -2
@@ -555,7 +555,7 @@ static int __devinit altera_uart_probe(struct platform_device *pdev) res_mem =platform_get_resource (pdev,IORESOURCE_MEM ,0 );if (res_mem) port->mapbase = res_mem->start; -else if (platp->mapbase) +else if (platp) port->mapbase = platp->mapbase;else return -EINVAL ;
@@ -563,7 +563,7 @@ static int __devinit altera_uart_probe(struct platform_device *pdev) res_irq =platform_get_resource (pdev,IORESOURCE_IRQ ,0 );if (res_irq) port->irq = res_irq->start; -else if (platp->irq) +else if (platp) port->irq = platp->irq;/* Check platform data first so we can override device node data */
drivers/tty/serial/amba-pl011.c +11 -4
@@ -1380,6 +1380,10 @@ static int pl011_startup(struct uart_port *port) uap->port.uartclk =clk_get_rate (uap->clk); +/* Clear pending error and receive interrupts */ +writew (UART011_OEIS |UART011_BEIS |UART011_PEIS |UART011_FEIS | +UART011_RTIS |UART011_RXIS , uap->port.membase +UART011_ICR ); +/* * Allocate the IRQ */
@@ -1414,10 +1418,6 @@ static int pl011_startup(struct uart_port *port) cr = UART01x_CR_UARTEN |UART011_CR_RXE |UART011_CR_TXE ;writew (cr, uap->port.membase +UART011_CR ); -/* Clear pending error interrupts */ -writew (UART011_OEIS |UART011_BEIS |UART011_PEIS |UART011_FEIS , - uap->port.membase +UART011_ICR ); -/* * initialise the old status of the modem signals */
@@ -1432,6 +1432,9 @@ static int pl011_startup(struct uart_port *port)* as well. */ spin_lock_irq (&uap->port.lock); +/* Clear out any spuriously appearing RX interrupts */ +writew (UART011_RTIS |UART011_RXIS , + uap->port.membase +UART011_ICR ); uap->im =UART011_RTIM ;if (!pl011_dma_rx_running (uap)) uap->im |=UART011_RXIM ;
@@ -1932,6 +1935,10 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id) uap->port.line = i;pl011_dma_probe (uap); +/* Ensure interrupts from this UART are masked and cleared */ +writew (0 , uap->port.membase +UART011_IMSC ); +writew (0xffff , uap->port.membase +UART011_ICR ); +snprintf (uap->type,sizeof (uap->type),"PL011 rev%u" ,amba_rev (dev)); amba_ports[i] = uap;
drivers/tty/serial/pch_uart.c +1 -0
@@ -1438,6 +1438,7 @@ static struct eg20t_port *pch_uart_init_port(struct pci_dev *pdev, }pci_enable_msi (pdev); +pci_set_master (pdev); iobase =pci_resource_start (pdev,0 ); mapbase =pci_resource_start (pdev,1 );
drivers/usb/core/driver.c +7 -2
@@ -1198,8 +1198,13 @@ static int usb_suspend_both(struct usb_device *udev, pm_message_t msg)if (status ==0 ) { status =usb_suspend_device (udev, msg); -/* Again, ignore errors during system sleep transitions */ -if (!PMSG_IS_AUTO (msg)) +/* +* Ignore errors from non-root-hub devices during +* system sleep transitions. For the most part, +* these devices should go to low power anyway when +* the entire bus is suspended. +*/ +if (udev->parent && !PMSG_IS_AUTO (msg)) status =0 ; }
drivers/usb/core/hub.c +16 -0
@@ -3072,6 +3072,22 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1,if (retval) goto fail; +/* +* Some superspeed devices have finished the link training process +* and attached to a superspeed hub port, but the device descriptor +* got from those devices show they aren't superspeed devices. Warm +* reset the port attached by the devices can fix them. +*/ +if ((udev->speed ==USB_SPEED_SUPER ) && + (le16_to_cpu (udev->descriptor.bcdUSB) <0x0300 )) { +dev_err (&udev->dev,"got a wrong device descriptor, " +"warm reset device\n" ); +hub_port_reset (hub, port1, udev, +HUB_BH_RESET_TIME , true); + retval = -EINVAL ; + goto fail; + } +if (udev->descriptor.bMaxPacketSize0 ==0xff || udev->speed ==USB_SPEED_SUPER ) i =512 ;
drivers/usb/core/message.c +6 -5
@@ -308,7 +308,8 @@ static void sg_complete(struct urb *urb) retval =usb_unlink_urb (io->urbs [i]);if (retval != -EINPROGRESS && retval != -ENODEV && - retval != -EBUSY ) + retval != -EBUSY && + retval != -EIDRM )dev_err (&io->dev->dev,"%s, unlink --> %d\n" , __func__, retval);
@@ -317,7 +318,6 @@ static void sg_complete(struct urb *urb) }spin_lock (&io->lock); } - urb->dev =NULL ;/* on the last completion, signal usb_sg_wait() */ io->bytes += urb->actual_length;
@@ -524,7 +524,6 @@ void usb_sg_wait(struct usb_sg_request *io)case -ENXIO :/* hc didn't queue this one */ case -EAGAIN :case -ENOMEM : - io->urbs[i]->dev =NULL ; retval =0 ;yield ();break ;
@@ -542,7 +541,6 @@ void usb_sg_wait(struct usb_sg_request *io)/* fail any uncompleted urbs */ default : - io->urbs[i]->dev =NULL ; io->urbs[i]->status = retval;dev_dbg (&io->dev->dev,"%s, submit --> %d\n" , __func__, retval);
@@ -593,7 +591,10 @@ void usb_sg_cancel(struct usb_sg_request *io)if (!io->urbs [i]->dev)continue ; retval =usb_unlink_urb (io->urbs [i]); -if (retval != -EINPROGRESS && retval != -EBUSY ) +if (retval != -EINPROGRESS + && retval != -ENODEV + && retval != -EBUSY + && retval != -EIDRM )dev_warn (&io->dev->dev,"%s, unlink --> %d\n" , __func__, retval); }
drivers/usb/gadget/pch_udc.c +84 -7
155 lines not on this page · raw message
drivers/usb/host/pci-quirks.c +7 -3
@@ -825,9 +825,13 @@ static void __devinit quirk_usb_handoff_xhci(struct pci_dev *pdev) } } -/* Disable any BIOS SMIs */ -writel (XHCI_LEGACY_DISABLE_SMI , - base + ext_cap_offset +XHCI_LEGACY_CONTROL_OFFSET ); + val =readl (base + ext_cap_offset +XHCI_LEGACY_CONTROL_OFFSET ); +/* Mask off (turn off) any enabled SMIs */ + val &=XHCI_LEGACY_DISABLE_SMI ; +/* Mask all SMI events bits, RW1C */ + val |=XHCI_LEGACY_SMI_EVENTS ; +/* Disable any BIOS SMIs and clear all SMI events*/ +writel (val, base + ext_cap_offset +XHCI_LEGACY_CONTROL_OFFSET );if (usb_is_intel_switchable_xhci (pdev))usb_enable_xhci_ports (pdev);
drivers/usb/host/xhci-ext-caps.h +3 -2
@@ -62,8 +62,9 @@/* USB Legacy Support Control and Status Register - section 7.1.2 */ /* Add this offset, plus the value of xECP in HCCPARAMS to the base address */ #define XHCI_LEGACY_CONTROL_OFFSET (0x04) -/* bits 1:2, 5:12, and 17:19 need to be preserved; bits 21:28 should be zero */ -#define XHCI_LEGACY_DISABLE_SMI ((0x3 << 1) + (0xff << 5) + (0x7 << 17)) +/* bits 1:3, 5:12, and 17:19 need to be preserved; bits 21:28 should be zero */ +#define XHCI_LEGACY_DISABLE_SMI ((0x7 << 1) + (0xff << 5) + (0x7 << 17)) +#define XHCI_LEGACY_SMI_EVENTS (0x7 << 29)/* USB 2.0 xHCI 0.96 L1C capability - section 7.2.2.1.3.2 */ #define XHCI_L1C (1 << 16)
drivers/usb/host/xhci-mem.c +2 -7
@@ -1704,11 +1704,6 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)int i;/* Free the Event Ring Segment Table and the actual Event Ring */ -if (xhci->ir_set) { -xhci_writel (xhci,0 , &xhci->ir_set->erst_size); -xhci_write_64 (xhci,0 , &xhci->ir_set->erst_base); -xhci_write_64 (xhci,0 , &xhci->ir_set->erst_dequeue); - } size =sizeof (struct xhci_erst_entry )*(xhci->erst.num_entries);if (xhci->erst.entries) dma_free_coherent(&pdev->dev, size,
@@ -1720,7 +1715,6 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci) xhci->event_ring =NULL ;xhci_dbg (xhci,"Freed event ring\n" ); -xhci_write_64 (xhci,0 , &xhci->op_regs->cmd_ring);if (xhci->cmd_ring)xhci_ring_free (xhci, xhci->cmd_ring); xhci->cmd_ring =NULL ;
@@ -1749,7 +1743,6 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci) xhci->medium_streams_pool =NULL ;xhci_dbg (xhci,"Freed medium stream array pool\n" ); -xhci_write_64 (xhci,0 , &xhci->op_regs->dcbaa_ptr);if (xhci->dcbaa)dma_free_coherent (&pdev->dev,sizeof (*xhci->dcbaa), xhci->dcbaa, xhci->dcbaa->dma);
@@ -2358,6 +2351,8 @@ int xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags) fail:xhci_warn (xhci,"Couldn't initialize memory\n" ); +xhci_halt (xhci); +xhci_reset (xhci);xhci_mem_cleanup (xhci);return -ENOMEM ; }
drivers/usb/host/xhci-pci.c +2 -0
@@ -95,6 +95,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |=XHCI_RESET_ON_RESUME ;xhci_dbg (xhci,"QUIRK: Resetting on resume\n" ); } +if (pdev->vendor ==PCI_VENDOR_ID_VIA ) + xhci->quirks |=XHCI_RESET_ON_RESUME ; }/* called during probe() after chip reset completes */
drivers/usb/host/xhci-ring.c +1 -1
@@ -2343,7 +2343,7 @@ hw_died:u32 irq_pending;/* Acknowledge the PCI interrupt */ irq_pending =xhci_readl (xhci, &xhci->ir_set->irq_pending); - irq_pending |=0x3 ; + irq_pending |=IMAN_IP ;xhci_writel (xhci, irq_pending, &xhci->ir_set->irq_pending); }
drivers/usb/host/xhci.c +5 -4
@@ -664,11 +664,11 @@ static void xhci_save_registers(struct xhci_hcd *xhci) xhci->s3.dev_nt =xhci_readl (xhci, &xhci->op_regs->dev_notification); xhci->s3.dcbaa_ptr =xhci_read_64 (xhci, &xhci->op_regs->dcbaa_ptr); xhci->s3.config_reg =xhci_readl (xhci, &xhci->op_regs->config_reg); - xhci->s3.irq_pending =xhci_readl (xhci, &xhci->ir_set->irq_pending); - xhci->s3.irq_control =xhci_readl (xhci, &xhci->ir_set->irq_control); xhci->s3.erst_size =xhci_readl (xhci, &xhci->ir_set->erst_size); xhci->s3.erst_base =xhci_read_64 (xhci, &xhci->ir_set->erst_base); xhci->s3.erst_dequeue =xhci_read_64 (xhci, &xhci->ir_set->erst_dequeue); + xhci->s3.irq_pending =xhci_readl (xhci, &xhci->ir_set->irq_pending); + xhci->s3.irq_control =xhci_readl (xhci, &xhci->ir_set->irq_control); }static void xhci_restore_registers (struct xhci_hcd *xhci)
@@ -677,10 +677,11 @@ static void xhci_restore_registers(struct xhci_hcd *xhci)xhci_writel (xhci, xhci->s3.dev_nt, &xhci->op_regs->dev_notification);xhci_write_64 (xhci, xhci->s3.dcbaa_ptr, &xhci->op_regs->dcbaa_ptr);xhci_writel (xhci, xhci->s3.config_reg, &xhci->op_regs->config_reg); -xhci_writel (xhci, xhci->s3.irq_pending, &xhci->ir_set->irq_pending); -xhci_writel (xhci, xhci->s3.irq_control, &xhci->ir_set->irq_control);xhci_writel (xhci, xhci->s3.erst_size, &xhci->ir_set->erst_size);xhci_write_64 (xhci, xhci->s3.erst_base, &xhci->ir_set->erst_base); +xhci_write_64 (xhci, xhci->s3.erst_dequeue, &xhci->ir_set->erst_dequeue); +xhci_writel (xhci, xhci->s3.irq_pending, &xhci->ir_set->irq_pending); +xhci_writel (xhci, xhci->s3.irq_control, &xhci->ir_set->irq_control); }static void xhci_set_cmd_ring_deq (struct xhci_hcd *xhci)
drivers/usb/host/xhci.h +4 -0
@@ -205,6 +205,10 @@ struct xhci_op_regs {#define CMD_PM_INDEX (1 << 11)/* bits 12:31 are reserved (and should be preserved on writes). */ +/* IMAN - Interrupt Management Register */ +#define IMAN_IP (1 << 1) +#define IMAN_IE (1 << 0) +/* USBSTS - USB status - status bitmasks */ /* HC not running - set to 1 when run/stop bit is cleared. */ #define STS_HALT XHCI_STS_HALT
drivers/usb/serial/ftdi_sio.c +20 -16
@@ -75,7 +75,8 @@ struct ftdi_private {unsigned long last_dtr_rts;/* saved modem control outputs */ struct async_icount icount;wait_queue_head_t delta_msr_wait;/* Used for TIOCMIWAIT */ -char prev_status, diff_status;/* Used for TIOCMIWAIT */ +char prev_status;/* Used for TIOCMIWAIT */ +bool dev_gone;/* Used to abort TIOCMIWAIT */ char transmit_empty;/* If transmitter is empty or not */ struct usb_serial_port *port;__u16 interface;/* FT2232C, FT2232H or FT4232H port interface
@@ -1679,6 +1680,7 @@ static int ftdi_sio_port_probe(struct usb_serial_port *port)init_waitqueue_head (&priv->delta_msr_wait); priv->flags =ASYNC_LOW_LATENCY ; + priv->dev_gone = false;if (quirk && quirk->port_probe) quirk->port_probe (priv);
@@ -1836,6 +1838,9 @@ static int ftdi_sio_port_remove(struct usb_serial_port *port)dbg ("%s" , __func__); + priv->dev_gone = true; +wake_up_interruptible_all (&priv->delta_msr_wait); +remove_sysfs_attrs (port);kref_put (&priv->kref, ftdi_sio_priv_release);
@@ -1979,17 +1984,19 @@ static int ftdi_process_packet(struct tty_struct *tty,N.B. packet may be processed more than once, but differences are only processed once. */ status = packet[0 ] &FTDI_STATUS_B0_MASK ; -if (status &FTDI_RS0_CTS ) - priv->icount.cts++; -if (status &FTDI_RS0_DSR ) - priv->icount.dsr++; -if (status &FTDI_RS0_RI ) - priv->icount.rng++; -if (status &FTDI_RS0_RLSD ) - priv->icount.dcd++;if (status != priv->prev_status) { - priv->diff_status |= status ^ priv->prev_status; -wake_up_interruptible (&priv->delta_msr_wait); +char diff_status = status ^ priv->prev_status; + +if (diff_status &FTDI_RS0_CTS ) + priv->icount.cts++; +if (diff_status &FTDI_RS0_DSR ) + priv->icount.dsr++; +if (diff_status &FTDI_RS0_RI ) + priv->icount.rng++; +if (diff_status &FTDI_RS0_RLSD ) + priv->icount.dcd++; + +wake_up_interruptible_all (&priv->delta_msr_wait); priv->prev_status = status; }
@@ -2388,15 +2395,12 @@ static int ftdi_ioctl(struct tty_struct *tty,*/ case TIOCMIWAIT : cprev = priv->icount; -while (1 ) { +while (!priv->dev_gone) {interruptible_sleep_on (&priv->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; cnow = priv->icount; -if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && - cnow.dcd == cprev.dcd && cnow.cts == cprev.cts) -return -EIO ;/* no change => error */ if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd)) ||
@@ -2405,7 +2409,7 @@ static int ftdi_ioctl(struct tty_struct *tty, } cprev = cnow; } -/* not reached */ +return -EIO ;break ;case TIOCSERGETLSR :return get_lsr_info (port, (struct serial_struct __user *)arg);
drivers/usb/serial/option.c +1 -0
@@ -708,6 +708,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_EVDO_EMBEDDED_FULLSPEED) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_HSPA_EMBEDDED_FULLSPEED) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_EVDO_HIGHSPEED) }, + { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_HSPA_HIGHSPEED) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_HSPA_HIGHSPEED3) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_HSPA_HIGHSPEED4) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_HSPA_HIGHSPEED5) },
drivers/usb/serial/pl2303.c +1 -1
@@ -421,7 +421,7 @@ static void pl2303_set_termios(struct tty_struct *tty, control = priv->line_control;if ((cflag &CBAUD ) ==B0 ) priv->line_control &= ~(CONTROL_DTR |CONTROL_RTS ); -else +else if ((old_termios->c_cflag &CBAUD ) ==B0 ) priv->line_control |= (CONTROL_DTR |CONTROL_RTS );if (control != priv->line_control) { control = priv->line_control;
drivers/usb/serial/sierra.c +1 -0
@@ -289,6 +289,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x1199, 0x6856) }, /* Sierra Wireless AirCard 881 U */ { USB_DEVICE(0x1199, 0x6859) }, /* Sierra Wireless AirCard 885 E */ { USB_DEVICE(0x1199, 0x685A) }, /* Sierra Wireless AirCard 885 E */ + { USB_DEVICE(0x1199, 0x68A2) }, /* Sierra Wireless MC7710 *//* Sierra Wireless C885 */ { USB_DEVICE_AND_INTERFACE_INFO(0x1199, 0x6880, 0xFF, 0xFF, 0xFF)},/* Sierra Wireless C888, Air Card 501, USB 303, USB 304 */
drivers/usb/serial/usb-serial.c +8 -0
@@ -1059,6 +1059,12 @@ int usb_serial_probe(struct usb_interface *interface, serial->attached =1 ; } +/* Avoid race with tty_open and serial_install by setting the +* disconnected flag and not clearing it until all ports have been +* registered. +*/ + serial->disconnected =1 ; +if (get_free_serial (serial, num_ports, &minor) ==NULL ) {dev_err (&interface->dev,"No more free serial devices\n" ); goto probe_error;
@@ -1083,6 +1089,8 @@ int usb_serial_probe(struct usb_interface *interface, } } + serial->disconnected =0 ; +usb_serial_console_init (debug, minor); exit:
drivers/video/uvesafb.c +9 -2
@@ -815,8 +815,15 @@ static int __devinit uvesafb_vbe_init(struct fb_info *info) par->pmi_setpal = pmi_setpal; par->ypan = ypan; -if (par->pmi_setpal || par->ypan) -uvesafb_vbe_getpmi (task, par); +if (par->pmi_setpal || par->ypan) { +if (__supported_pte_mask & _PAGE_NX) { + par->pmi_setpal = par->ypan =0 ; +printk (KERN_WARNING "uvesafb: NX protection is actively." +"We have better not to use the PMI.\n" ); + }else { +uvesafb_vbe_getpmi (task, par); + } + }#else /* The protected mode interface is not available on non-x86. */ par->pmi_setpal = par->ypan =0 ;
fs/ext4/ext4.h +0 -3
@@ -1185,9 +1185,6 @@ struct ext4_sb_info {unsigned long s_ext_blocks;unsigned long s_ext_extents;#endif -/* ext4 extent cache stats */ -unsigned long extent_cache_hits; -unsigned long extent_cache_misses;/* for buddy allocator */ struct ext4_group_info ***s_group_info;
fs/ext4/extents.c +0 -4
@@ -2052,10 +2052,6 @@ static int ext4_ext_check_cache(struct inode *inode, ext4_lblk_t block, ret =1 ; } errout: -if (!ret) - sbi->extent_cache_misses++; -else - sbi->extent_cache_hits++;trace_ext4_ext_in_cache (inode, block, ret);spin_unlock (&EXT4_I (inode)->i_block_reservation_lock);return ret;
fs/ext4/super.c +0 -16
@@ -2504,18 +2504,6 @@ static ssize_t lifetime_write_kbytes_show(struct ext4_attr *a, EXT4_SB(sb)->s_sectors_written_start) >> 1))); } -static ssize_t extent_cache_hits_show (struct ext4_attr *a, -struct ext4_sb_info *sbi,char *buf) -{ -return snprintf (buf,PAGE_SIZE ,"%lu\n" , sbi->extent_cache_hits); -} - -static ssize_t extent_cache_misses_show (struct ext4_attr *a, -struct ext4_sb_info *sbi,char *buf) -{ -return snprintf (buf,PAGE_SIZE ,"%lu\n" , sbi->extent_cache_misses); -} -static ssize_t inode_readahead_blks_store (struct ext4_attr *a,struct ext4_sb_info *sbi,const char *buf,size_t count)
@@ -2573,8 +2561,6 @@ static struct ext4_attr ext4_attr_##name = __ATTR(name, mode, show, store)EXT4_RO_ATTR (delayed_allocation_blocks);EXT4_RO_ATTR (session_write_kbytes);EXT4_RO_ATTR (lifetime_write_kbytes); -EXT4_RO_ATTR (extent_cache_hits); -EXT4_RO_ATTR (extent_cache_misses);EXT4_ATTR_OFFSET (inode_readahead_blks,0644 , sbi_ui_show, inode_readahead_blks_store, s_inode_readahead_blks);EXT4_RW_ATTR_SBI_UI (inode_goal, s_inode_goal);
@@ -2590,8 +2576,6 @@ static struct attribute *ext4_attrs[] = {ATTR_LIST (delayed_allocation_blocks),ATTR_LIST (session_write_kbytes),ATTR_LIST (lifetime_write_kbytes), -ATTR_LIST (extent_cache_hits), -ATTR_LIST (extent_cache_misses),ATTR_LIST (inode_readahead_blks),ATTR_LIST (inode_goal), ATTR_LIST(mb_stats),
include/net/bluetooth/hci.h +1 -0
@@ -84,6 +84,7 @@ enum {HCI_SERVICE_CACHE ,HCI_LINK_KEYS ,HCI_DEBUG_KEYS , +HCI_UNREGISTER , HCI_RESET, };
kernel/futex.c +13 -23
@@ -59,6 +59,7 @@#include <linux/magic.h> #include <linux/pid.h> #include <linux/nsproxy.h> +#include <linux/ptrace.h> #include <asm/futex.h>
@@ -2443,40 +2444,29 @@ SYSCALL_DEFINE3(get_robust_list, int, pid, {struct robust_list_head __user *head;unsigned long ret; -const struct cred *cred =current_cred (), *pcred; +struct task_struct *p;if (!futex_cmpxchg_enabled)return -ENOSYS ; +rcu_read_lock (); + + ret = -ESRCH ;if (!pid) - head = current->robust_list; + p = current;else { -struct task_struct *p; - - ret = -ESRCH ; -rcu_read_lock (); p =find_task_by_vpid (pid);if (!p) goto err_unlock; - ret = -EPERM ; - pcred =__task_cred (p); -/* If victim is in different user_ns, then uids are not -comparable, so we must have CAP_SYS_PTRACE */ -if (cred->user->user_ns != pcred->user->user_ns) { -if (!ns_capable (pcred->user->user_ns,CAP_SYS_PTRACE )) - goto err_unlock; - goto ok; - } -/* If victim is in same user_ns, then uids are comparable */ -if (cred->euid != pcred->euid && - cred->euid != pcred->uid && - !ns_capable (pcred->user->user_ns,CAP_SYS_PTRACE )) - goto err_unlock; -ok: - head = p->robust_list; -rcu_read_unlock (); } + ret = -EPERM ; +if (!ptrace_may_access (p,PTRACE_MODE_READ )) + goto err_unlock; + + head = p->robust_list; +rcu_read_unlock (); +if (put_user (sizeof (*head), len_ptr))return -EFAULT ;return put_user (head, head_ptr);
kernel/futex_compat.c +13 -23
@@ -10,6 +10,7 @@#include <linux/compat.h> #include <linux/nsproxy.h> #include <linux/futex.h> +#include <linux/ptrace.h> #include <asm/uaccess.h>
@@ -136,40 +137,29 @@ compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr, {struct compat_robust_list_head __user *head;unsigned long ret; -const struct cred *cred =current_cred (), *pcred; +struct task_struct *p;if (!futex_cmpxchg_enabled)return -ENOSYS ; +rcu_read_lock (); + + ret = -ESRCH ;if (!pid) - head = current->compat_robust_list; + p = current;else { -struct task_struct *p; - - ret = -ESRCH ; -rcu_read_lock (); p =find_task_by_vpid (pid);if (!p) goto err_unlock; - ret = -EPERM ; - pcred =__task_cred (p); -/* If victim is in different user_ns, then uids are not -comparable, so we must have CAP_SYS_PTRACE */ -if (cred->user->user_ns != pcred->user->user_ns) { -if (!ns_capable (pcred->user->user_ns,CAP_SYS_PTRACE )) - goto err_unlock; - goto ok; - } -/* If victim is in same user_ns, then uids are comparable */ -if (cred->euid != pcred->euid && - cred->euid != pcred->uid && - !ns_capable (pcred->user->user_ns,CAP_SYS_PTRACE )) - goto err_unlock; -ok: - head = p->compat_robust_list; -rcu_read_unlock (); } + ret = -EPERM ; +if (!ptrace_may_access (p,PTRACE_MODE_READ )) + goto err_unlock; + + head = p->compat_robust_list; +rcu_read_unlock (); +if (put_user (sizeof (*head), len_ptr))return -EFAULT ;return put_user (ptr_to_compat (head), head_ptr);
kernel/time/tick-sched.c +2 -2
@@ -508,9 +508,9 @@ static void tick_nohz_restart(struct tick_sched *ts, ktime_t now) hrtimer_get_expires(&ts->sched_timer), 0))break ; } -/* Update jiffies and reread time */ -tick_do_update_jiffies64 (now); +/* Reread time and update jiffies */ now =ktime_get (); +tick_do_update_jiffies64 (now); } }
mm/hugetlb.c +2 -0
@@ -2686,6 +2686,7 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,* so no worry about deadlock. */ page =pte_page (entry); +get_page (page);if (page != pagecache_page)lock_page (page);
@@ -2717,6 +2718,7 @@ out_page_table_lock: }if (page != pagecache_page)unlock_page (page); +put_page (page); out_mutex:mutex_unlock (&hugetlb_instantiation_mutex);
net/bluetooth/hci_core.c +7 -0
@@ -510,6 +510,11 @@ int hci_dev_open(__u16 dev)hci_req_lock (hdev); +if (test_bit (HCI_UNREGISTER , &hdev->flags)) { + ret = -ENODEV ; + goto done; + } +if (hdev->rfkill &&rfkill_blocked (hdev->rfkill)) { ret = -ERFKILL ; goto done;
@@ -1540,6 +1545,8 @@ int hci_unregister_dev(struct hci_dev *hdev)BT_DBG ("%p name %s bus %d" , hdev, hdev->name, hdev->bus); +set_bit (HCI_UNREGISTER , &hdev->flags); +write_lock_bh (&hci_dev_list_lock);list_del (&hdev->list);write_unlock_bh (&hci_dev_list_lock);
security/commoncap.c +6 -0
@@ -28,6 +28,7 @@#include <linux/prctl.h> #include <linux/securebits.h> #include <linux/user_namespace.h> +#include <linux/personality.h> /* * If a non-root user executes a setuid-root binary in
@@ -514,6 +515,11 @@ int cap_bprm_set_creds(struct linux_binprm *bprm) } skip: +/* if we have fs caps, clear dangerous personality flags */ +if (!cap_issubset (new->cap_permitted, old->cap_permitted)) + bprm->per_clear |=PER_CLEAR_ON_SETID ; + +/* Don't let someone trace a set[ug]id/setpcap binary with the revised * credentials unless they have the appropriate permit */
tools/perf/util/hist.c +12 -0
@@ -230,6 +230,18 @@ struct hist_entry *__hists__add_entry(struct hists *hists,if (!cmp) { he->period += period; ++he->nr_events; + +/* If the map of an existing hist_entry has +* become out-of-date due to an exec() or +* similar, update it. Otherwise we will +* mis-adjust symbol addresses when computing +* the history counter to increment. +*/ +if (he->ms.map != entry->ms.map) { + he->ms.map = entry->ms.map; +if (he->ms.map) + he->ms.map->referenced = true; + } goto out; }