diff options
243 files changed, 2559 insertions, 1218 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 736d45602886..e7848a0d99eb 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
| @@ -199,6 +199,10 @@ and is between 256 and 4096 characters. It is defined in the file | |||
| 199 | acpi_display_output=video | 199 | acpi_display_output=video |
| 200 | See above. | 200 | See above. |
| 201 | 201 | ||
| 202 | acpi_early_pdc_eval [HW,ACPI] Evaluate processor _PDC methods | ||
| 203 | early. Needed on some platforms to properly | ||
| 204 | initialize the EC. | ||
| 205 | |||
| 202 | acpi_irq_balance [HW,ACPI] | 206 | acpi_irq_balance [HW,ACPI] |
| 203 | ACPI will balance active IRQs | 207 | ACPI will balance active IRQs |
| 204 | default in APIC mode | 208 | default in APIC mode |
| @@ -311,6 +315,11 @@ and is between 256 and 4096 characters. It is defined in the file | |||
| 311 | aic79xx= [HW,SCSI] | 315 | aic79xx= [HW,SCSI] |
| 312 | See Documentation/scsi/aic79xx.txt. | 316 | See Documentation/scsi/aic79xx.txt. |
| 313 | 317 | ||
| 318 | alignment= [KNL,ARM] | ||
| 319 | Allow the default userspace alignment fault handler | ||
| 320 | behaviour to be specified. Bit 0 enables warnings, | ||
| 321 | bit 1 enables fixups, and bit 2 sends a segfault. | ||
| 322 | |||
| 314 | amd_iommu= [HW,X86-84] | 323 | amd_iommu= [HW,X86-84] |
| 315 | Pass parameters to the AMD IOMMU driver in the system. | 324 | Pass parameters to the AMD IOMMU driver in the system. |
| 316 | Possible values are: | 325 | Possible values are: |
diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt index 006b39dec87d..e87f3cdc8a6a 100644 --- a/Documentation/networking/ip-sysctl.txt +++ b/Documentation/networking/ip-sysctl.txt | |||
| @@ -1074,10 +1074,10 @@ regen_max_retry - INTEGER | |||
| 1074 | Default: 5 | 1074 | Default: 5 |
| 1075 | 1075 | ||
| 1076 | max_addresses - INTEGER | 1076 | max_addresses - INTEGER |
| 1077 | Number of maximum addresses per interface. 0 disables limitation. | 1077 | Maximum number of autoconfigured addresses per interface. Setting |
| 1078 | It is recommended not set too large value (or 0) because it would | 1078 | to zero disables the limitation. It is not recommended to set this |
| 1079 | be too easy way to crash kernel to allow to create too much of | 1079 | value too large (or to zero) because it would be an easy way to |
| 1080 | autoconfigured addresses. | 1080 | crash the kernel by allowing too many addresses to be created. |
| 1081 | Default: 16 | 1081 | Default: 16 |
| 1082 | 1082 | ||
| 1083 | disable_ipv6 - BOOLEAN | 1083 | disable_ipv6 - BOOLEAN |
diff --git a/MAINTAINERS b/MAINTAINERS index 602022d2c7a5..2533fc45a44a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -616,10 +616,10 @@ M: Richard Purdie <rpurdie@rpsys.net> | |||
| 616 | S: Maintained | 616 | S: Maintained |
| 617 | 617 | ||
| 618 | ARM/CORTINA SYSTEMS GEMINI ARM ARCHITECTURE | 618 | ARM/CORTINA SYSTEMS GEMINI ARM ARCHITECTURE |
| 619 | M: Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | 619 | M: Paulius Zaleckas <paulius.zaleckas@gmail.com> |
| 620 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) | 620 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) |
| 621 | T: git git://gitorious.org/linux-gemini/mainline.git | 621 | T: git git://gitorious.org/linux-gemini/mainline.git |
| 622 | S: Maintained | 622 | S: Odd Fixes |
| 623 | F: arch/arm/mach-gemini/ | 623 | F: arch/arm/mach-gemini/ |
| 624 | 624 | ||
| 625 | ARM/EBSA110 MACHINE SUPPORT | 625 | ARM/EBSA110 MACHINE SUPPORT |
| @@ -641,9 +641,9 @@ T: topgit git://git.openezx.org/openezx.git | |||
| 641 | F: arch/arm/mach-pxa/ezx.c | 641 | F: arch/arm/mach-pxa/ezx.c |
| 642 | 642 | ||
| 643 | ARM/FARADAY FA526 PORT | 643 | ARM/FARADAY FA526 PORT |
| 644 | M: Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | 644 | M: Paulius Zaleckas <paulius.zaleckas@gmail.com> |
| 645 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) | 645 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) |
| 646 | S: Maintained | 646 | S: Odd Fixes |
| 647 | F: arch/arm/mm/*-fa* | 647 | F: arch/arm/mm/*-fa* |
| 648 | 648 | ||
| 649 | ARM/FOOTBRIDGE ARCHITECTURE | 649 | ARM/FOOTBRIDGE ARCHITECTURE |
| @@ -1733,10 +1733,9 @@ F: include/linux/tfrc.h | |||
| 1733 | F: net/dccp/ | 1733 | F: net/dccp/ |
| 1734 | 1734 | ||
| 1735 | DECnet NETWORK LAYER | 1735 | DECnet NETWORK LAYER |
| 1736 | M: Christine Caulfield <christine.caulfield@googlemail.com> | ||
| 1737 | W: http://linux-decnet.sourceforge.net | 1736 | W: http://linux-decnet.sourceforge.net |
| 1738 | L: linux-decnet-user@lists.sourceforge.net | 1737 | L: linux-decnet-user@lists.sourceforge.net |
| 1739 | S: Maintained | 1738 | S: Orphan |
| 1740 | F: Documentation/networking/decnet.txt | 1739 | F: Documentation/networking/decnet.txt |
| 1741 | F: net/decnet/ | 1740 | F: net/decnet/ |
| 1742 | 1741 | ||
| @@ -3411,8 +3410,10 @@ S: Maintained | |||
| 3411 | F: drivers/scsi/sym53c8xx_2/ | 3410 | F: drivers/scsi/sym53c8xx_2/ |
| 3412 | 3411 | ||
| 3413 | LTP (Linux Test Project) | 3412 | LTP (Linux Test Project) |
| 3414 | M: Subrata Modak <subrata@linux.vnet.ibm.com> | 3413 | M: Rishikesh K Rajak <risrajak@linux.vnet.ibm.com> |
| 3415 | M: Mike Frysinger <vapier@gentoo.org> | 3414 | M: Garrett Cooper <yanegomi@gmail.com> |
| 3415 | M: Mike Frysinger <vapier@gentoo.org> | ||
| 3416 | M: Subrata Modak <subrata@linux.vnet.ibm.com> | ||
| 3416 | L: ltp-list@lists.sourceforge.net (subscribers-only) | 3417 | L: ltp-list@lists.sourceforge.net (subscribers-only) |
| 3417 | W: http://ltp.sourceforge.net/ | 3418 | W: http://ltp.sourceforge.net/ |
| 3418 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/galak/ltp.git | 3419 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/galak/ltp.git |
| @@ -3488,9 +3489,9 @@ S: Maintained | |||
| 3488 | F: drivers/net/wireless/libertas/ | 3489 | F: drivers/net/wireless/libertas/ |
| 3489 | 3490 | ||
| 3490 | MARVELL MV643XX ETHERNET DRIVER | 3491 | MARVELL MV643XX ETHERNET DRIVER |
| 3491 | M: Lennert Buytenhek <buytenh@marvell.com> | 3492 | M: Lennert Buytenhek <buytenh@wantstofly.org> |
| 3492 | L: netdev@vger.kernel.org | 3493 | L: netdev@vger.kernel.org |
| 3493 | S: Supported | 3494 | S: Maintained |
| 3494 | F: drivers/net/mv643xx_eth.* | 3495 | F: drivers/net/mv643xx_eth.* |
| 3495 | F: include/linux/mv643xx.h | 3496 | F: include/linux/mv643xx.h |
| 3496 | 3497 | ||
| @@ -1,7 +1,7 @@ | |||
| 1 | VERSION = 2 | 1 | VERSION = 2 |
| 2 | PATCHLEVEL = 6 | 2 | PATCHLEVEL = 6 |
| 3 | SUBLEVEL = 33 | 3 | SUBLEVEL = 33 |
| 4 | EXTRAVERSION = -rc7 | 4 | EXTRAVERSION = |
| 5 | NAME = Man-Eating Seals of Antiquity | 5 | NAME = Man-Eating Seals of Antiquity |
| 6 | 6 | ||
| 7 | # *DOCUMENTATION* | 7 | # *DOCUMENTATION* |
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index c77d2fa1f6e5..8113bb5fb66e 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h | |||
| @@ -42,7 +42,8 @@ | |||
| 42 | #endif | 42 | #endif |
| 43 | 43 | ||
| 44 | #if defined(CONFIG_CPU_ARM920T) || defined(CONFIG_CPU_ARM922T) || \ | 44 | #if defined(CONFIG_CPU_ARM920T) || defined(CONFIG_CPU_ARM922T) || \ |
| 45 | defined(CONFIG_CPU_ARM925T) || defined(CONFIG_CPU_ARM1020) | 45 | defined(CONFIG_CPU_ARM925T) || defined(CONFIG_CPU_ARM1020) || \ |
| 46 | defined(CONFIG_CPU_ARM1026) | ||
| 46 | # define MULTI_CACHE 1 | 47 | # define MULTI_CACHE 1 |
| 47 | #endif | 48 | #endif |
| 48 | 49 | ||
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index c6c57b640b6b..621acad8ea43 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
| @@ -102,6 +102,7 @@ struct cpu_cache_fns cpu_cache; | |||
| 102 | #endif | 102 | #endif |
| 103 | #ifdef CONFIG_OUTER_CACHE | 103 | #ifdef CONFIG_OUTER_CACHE |
| 104 | struct outer_cache_fns outer_cache; | 104 | struct outer_cache_fns outer_cache; |
| 105 | EXPORT_SYMBOL(outer_cache); | ||
| 105 | #endif | 106 | #endif |
| 106 | 107 | ||
| 107 | struct stack { | 108 | struct stack { |
diff --git a/arch/arm/mach-gemini/gpio.c b/arch/arm/mach-gemini/gpio.c index e7263854bc7b..fe3bd5ac8b10 100644 --- a/arch/arm/mach-gemini/gpio.c +++ b/arch/arm/mach-gemini/gpio.c | |||
| @@ -86,7 +86,7 @@ static int gpio_set_irq_type(unsigned int irq, unsigned int type) | |||
| 86 | unsigned int reg_both, reg_level, reg_type; | 86 | unsigned int reg_both, reg_level, reg_type; |
| 87 | 87 | ||
| 88 | reg_type = __raw_readl(base + GPIO_INT_TYPE); | 88 | reg_type = __raw_readl(base + GPIO_INT_TYPE); |
| 89 | reg_level = __raw_readl(base + GPIO_INT_BOTH_EDGE); | 89 | reg_level = __raw_readl(base + GPIO_INT_LEVEL); |
| 90 | reg_both = __raw_readl(base + GPIO_INT_BOTH_EDGE); | 90 | reg_both = __raw_readl(base + GPIO_INT_BOTH_EDGE); |
| 91 | 91 | ||
| 92 | switch (type) { | 92 | switch (type) { |
| @@ -117,7 +117,7 @@ static int gpio_set_irq_type(unsigned int irq, unsigned int type) | |||
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | __raw_writel(reg_type, base + GPIO_INT_TYPE); | 119 | __raw_writel(reg_type, base + GPIO_INT_TYPE); |
| 120 | __raw_writel(reg_level, base + GPIO_INT_BOTH_EDGE); | 120 | __raw_writel(reg_level, base + GPIO_INT_LEVEL); |
| 121 | __raw_writel(reg_both, base + GPIO_INT_BOTH_EDGE); | 121 | __raw_writel(reg_both, base + GPIO_INT_BOTH_EDGE); |
| 122 | 122 | ||
| 123 | gpio_ack_irq(irq); | 123 | gpio_ack_irq(irq); |
diff --git a/arch/arm/mach-omap2/mmc-twl4030.c b/arch/arm/mach-omap2/mmc-twl4030.c index 0c3c72d934bf..8afe9dd3f150 100644 --- a/arch/arm/mach-omap2/mmc-twl4030.c +++ b/arch/arm/mach-omap2/mmc-twl4030.c | |||
| @@ -408,6 +408,7 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers) | |||
| 408 | { | 408 | { |
| 409 | struct twl4030_hsmmc_info *c; | 409 | struct twl4030_hsmmc_info *c; |
| 410 | int nr_hsmmc = ARRAY_SIZE(hsmmc_data); | 410 | int nr_hsmmc = ARRAY_SIZE(hsmmc_data); |
| 411 | int i; | ||
| 411 | 412 | ||
| 412 | if (cpu_is_omap2430()) { | 413 | if (cpu_is_omap2430()) { |
| 413 | control_pbias_offset = OMAP243X_CONTROL_PBIAS_LITE; | 414 | control_pbias_offset = OMAP243X_CONTROL_PBIAS_LITE; |
| @@ -434,7 +435,7 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers) | |||
| 434 | mmc = kzalloc(sizeof(struct omap_mmc_platform_data), GFP_KERNEL); | 435 | mmc = kzalloc(sizeof(struct omap_mmc_platform_data), GFP_KERNEL); |
| 435 | if (!mmc) { | 436 | if (!mmc) { |
| 436 | pr_err("Cannot allocate memory for mmc device!\n"); | 437 | pr_err("Cannot allocate memory for mmc device!\n"); |
| 437 | return; | 438 | goto done; |
| 438 | } | 439 | } |
| 439 | 440 | ||
| 440 | if (c->name) | 441 | if (c->name) |
| @@ -532,6 +533,10 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers) | |||
| 532 | continue; | 533 | continue; |
| 533 | c->dev = mmc->dev; | 534 | c->dev = mmc->dev; |
| 534 | } | 535 | } |
| 536 | |||
| 537 | done: | ||
| 538 | for (i = 0; i < nr_hsmmc; i++) | ||
| 539 | kfree(hsmmc_data[i]); | ||
| 535 | } | 540 | } |
| 536 | 541 | ||
| 537 | #endif | 542 | #endif |
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 5fedc50c58e4..5fef73f4743d 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
| @@ -961,16 +961,14 @@ static void __init omap_mux_init_list(struct omap_mux *superset) | |||
| 961 | while (superset->reg_offset != OMAP_MUX_TERMINATOR) { | 961 | while (superset->reg_offset != OMAP_MUX_TERMINATOR) { |
| 962 | struct omap_mux *entry; | 962 | struct omap_mux *entry; |
| 963 | 963 | ||
| 964 | #ifndef CONFIG_OMAP_MUX | 964 | #ifdef CONFIG_OMAP_MUX |
| 965 | /* Skip pins that are not muxed as GPIO by bootloader */ | 965 | if (!superset->muxnames || !superset->muxnames[0]) { |
| 966 | if (!OMAP_MODE_GPIO(omap_mux_read(superset->reg_offset))) { | ||
| 967 | superset++; | 966 | superset++; |
| 968 | continue; | 967 | continue; |
| 969 | } | 968 | } |
| 970 | #endif | 969 | #else |
| 971 | 970 | /* Skip pins that are not muxed as GPIO by bootloader */ | |
| 972 | #if defined(CONFIG_OMAP_MUX) && defined(CONFIG_DEBUG_FS) | 971 | if (!OMAP_MODE_GPIO(omap_mux_read(superset->reg_offset))) { |
| 973 | if (!superset->muxnames || !superset->muxnames[0]) { | ||
| 974 | superset++; | 972 | superset++; |
| 975 | continue; | 973 | continue; |
| 976 | } | 974 | } |
diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c index b270d6228fe2..62820eda84d9 100644 --- a/arch/arm/mm/alignment.c +++ b/arch/arm/mm/alignment.c | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | * it under the terms of the GNU General Public License version 2 as | 11 | * it under the terms of the GNU General Public License version 2 as |
| 12 | * published by the Free Software Foundation. | 12 | * published by the Free Software Foundation. |
| 13 | */ | 13 | */ |
| 14 | #include <linux/moduleparam.h> | ||
| 14 | #include <linux/compiler.h> | 15 | #include <linux/compiler.h> |
| 15 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
| 16 | #include <linux/errno.h> | 17 | #include <linux/errno.h> |
| @@ -77,6 +78,8 @@ static unsigned long ai_dword; | |||
| 77 | static unsigned long ai_multi; | 78 | static unsigned long ai_multi; |
| 78 | static int ai_usermode; | 79 | static int ai_usermode; |
| 79 | 80 | ||
| 81 | core_param(alignment, ai_usermode, int, 0600); | ||
| 82 | |||
| 80 | #define UM_WARN (1 << 0) | 83 | #define UM_WARN (1 << 0) |
| 81 | #define UM_FIXUP (1 << 1) | 84 | #define UM_FIXUP (1 << 1) |
| 82 | #define UM_SIGNAL (1 << 2) | 85 | #define UM_SIGNAL (1 << 2) |
diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types index 5a79fc6ee818..31c2f4c30a95 100644 --- a/arch/arm/tools/mach-types +++ b/arch/arm/tools/mach-types | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | # | 12 | # |
| 13 | # http://www.arm.linux.org.uk/developer/machines/?action=new | 13 | # http://www.arm.linux.org.uk/developer/machines/?action=new |
| 14 | # | 14 | # |
| 15 | # Last update: Thu Jan 28 22:15:54 2010 | 15 | # Last update: Sat Feb 20 14:16:15 2010 |
| 16 | # | 16 | # |
| 17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number | 17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number |
| 18 | # | 18 | # |
| @@ -2257,7 +2257,7 @@ oratisalog MACH_ORATISALOG ORATISALOG 2268 | |||
| 2257 | oratismadi MACH_ORATISMADI ORATISMADI 2269 | 2257 | oratismadi MACH_ORATISMADI ORATISMADI 2269 |
| 2258 | oratisot16 MACH_ORATISOT16 ORATISOT16 2270 | 2258 | oratisot16 MACH_ORATISOT16 ORATISOT16 2270 |
| 2259 | oratisdesk MACH_ORATISDESK ORATISDESK 2271 | 2259 | oratisdesk MACH_ORATISDESK ORATISDESK 2271 |
| 2260 | v2_ca9 MACH_V2P_CA9 V2P_CA9 2272 | 2260 | vexpress MACH_VEXPRESS VEXPRESS 2272 |
| 2261 | sintexo MACH_SINTEXO SINTEXO 2273 | 2261 | sintexo MACH_SINTEXO SINTEXO 2273 |
| 2262 | cm3389 MACH_CM3389 CM3389 2274 | 2262 | cm3389 MACH_CM3389 CM3389 2274 |
| 2263 | omap3_cio MACH_OMAP3_CIO OMAP3_CIO 2275 | 2263 | omap3_cio MACH_OMAP3_CIO OMAP3_CIO 2275 |
| @@ -2636,3 +2636,45 @@ hw90240 MACH_HW90240 HW90240 2648 | |||
| 2636 | dm365_leopard MACH_DM365_LEOPARD DM365_LEOPARD 2649 | 2636 | dm365_leopard MACH_DM365_LEOPARD DM365_LEOPARD 2649 |
| 2637 | mityomapl138 MACH_MITYOMAPL138 MITYOMAPL138 2650 | 2637 | mityomapl138 MACH_MITYOMAPL138 MITYOMAPL138 2650 |
| 2638 | scat110 MACH_SCAT110 SCAT110 2651 | 2638 | scat110 MACH_SCAT110 SCAT110 2651 |
| 2639 | acer_a1 MACH_ACER_A1 ACER_A1 2652 | ||
| 2640 | cmcontrol MACH_CMCONTROL CMCONTROL 2653 | ||
| 2641 | pelco_lamar MACH_PELCO_LAMAR PELCO_LAMAR 2654 | ||
| 2642 | rfp43 MACH_RFP43 RFP43 2655 | ||
| 2643 | sk86r0301 MACH_SK86R0301 SK86R0301 2656 | ||
| 2644 | ctpxa MACH_CTPXA CTPXA 2657 | ||
| 2645 | epb_arm9_a MACH_EPB_ARM9_A EPB_ARM9_A 2658 | ||
| 2646 | guruplug MACH_GURUPLUG GURUPLUG 2659 | ||
| 2647 | spear310 MACH_SPEAR310 SPEAR310 2660 | ||
| 2648 | spear320 MACH_SPEAR320 SPEAR320 2661 | ||
| 2649 | robotx MACH_ROBOTX ROBOTX 2662 | ||
| 2650 | lsxhl MACH_LSXHL LSXHL 2663 | ||
| 2651 | smartlite MACH_SMARTLITE SMARTLITE 2664 | ||
| 2652 | cws2 MACH_CWS2 CWS2 2665 | ||
| 2653 | m619 MACH_M619 M619 2666 | ||
| 2654 | smartview MACH_SMARTVIEW SMARTVIEW 2667 | ||
| 2655 | lsa_salsa MACH_LSA_SALSA LSA_SALSA 2668 | ||
| 2656 | kizbox MACH_KIZBOX KIZBOX 2669 | ||
| 2657 | htccharmer MACH_HTCCHARMER HTCCHARMER 2670 | ||
| 2658 | guf_neso_lt MACH_GUF_NESO_LT GUF_NESO_LT 2671 | ||
| 2659 | pm9g45 MACH_PM9G45 PM9G45 2672 | ||
| 2660 | htcpanther MACH_HTCPANTHER HTCPANTHER 2673 | ||
| 2661 | htcpanther_cdma MACH_HTCPANTHER_CDMA HTCPANTHER_CDMA 2674 | ||
| 2662 | reb01 MACH_REB01 REB01 2675 | ||
| 2663 | aquila MACH_AQUILA AQUILA 2676 | ||
| 2664 | spark_sls_hw2 MACH_SPARK_SLS_HW2 SPARK_SLS_HW2 2677 | ||
| 2665 | sheeva_esata MACH_ESATA_SHEEVAPLUG ESATA_SHEEVAPLUG 2678 | ||
| 2666 | surf7x30 MACH_SURF7X30 SURF7X30 2679 | ||
| 2667 | micro2440 MACH_MICRO2440 MICRO2440 2680 | ||
| 2668 | am2440 MACH_AM2440 AM2440 2681 | ||
| 2669 | tq2440 MACH_TQ2440 TQ2440 2682 | ||
| 2670 | lpc2478oem MACH_LPC2478OEM LPC2478OEM 2683 | ||
| 2671 | ak880x MACH_AK880X AK880X 2684 | ||
| 2672 | cobra3530 MACH_COBRA3530 COBRA3530 2685 | ||
| 2673 | pmppb MACH_PMPPB PMPPB 2686 | ||
| 2674 | u6715 MACH_U6715 U6715 2687 | ||
| 2675 | axar1500_sender MACH_AXAR1500_SENDER AXAR1500_SENDER 2688 | ||
| 2676 | g30_dvb MACH_G30_DVB G30_DVB 2689 | ||
| 2677 | vc088x MACH_VC088X VC088X 2690 | ||
| 2678 | mioa702 MACH_MIOA702 MIOA702 2691 | ||
| 2679 | hpmin MACH_HPMIN HPMIN 2692 | ||
| 2680 | ak880xak MACH_AK880XAK AK880XAK 2693 | ||
diff --git a/arch/ia64/include/asm/acpi.h b/arch/ia64/include/asm/acpi.h index 7ae58892ba8d..e97b255d97bc 100644 --- a/arch/ia64/include/asm/acpi.h +++ b/arch/ia64/include/asm/acpi.h | |||
| @@ -94,6 +94,7 @@ ia64_acpi_release_global_lock (unsigned int *lock) | |||
| 94 | #define acpi_noirq 0 /* ACPI always enabled on IA64 */ | 94 | #define acpi_noirq 0 /* ACPI always enabled on IA64 */ |
| 95 | #define acpi_pci_disabled 0 /* ACPI PCI always enabled on IA64 */ | 95 | #define acpi_pci_disabled 0 /* ACPI PCI always enabled on IA64 */ |
| 96 | #define acpi_strict 1 /* no ACPI spec workarounds on IA64 */ | 96 | #define acpi_strict 1 /* no ACPI spec workarounds on IA64 */ |
| 97 | #define acpi_ht 0 /* no HT-only mode on IA64 */ | ||
| 97 | #endif | 98 | #endif |
| 98 | #define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */ | 99 | #define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */ |
| 99 | static inline void disable_acpi(void) { } | 100 | static inline void disable_acpi(void) { } |
diff --git a/arch/ia64/include/asm/elf.h b/arch/ia64/include/asm/elf.h index e14108b19c09..4c41656ede87 100644 --- a/arch/ia64/include/asm/elf.h +++ b/arch/ia64/include/asm/elf.h | |||
| @@ -201,7 +201,9 @@ extern void ia64_elf_core_copy_regs (struct pt_regs *src, elf_gregset_t dst); | |||
| 201 | relevant until we have real hardware to play with... */ | 201 | relevant until we have real hardware to play with... */ |
| 202 | #define ELF_PLATFORM NULL | 202 | #define ELF_PLATFORM NULL |
| 203 | 203 | ||
| 204 | #define SET_PERSONALITY(ex) set_personality(PER_LINUX) | 204 | #define SET_PERSONALITY(ex) \ |
| 205 | set_personality((current->personality & ~PER_MASK) | PER_LINUX) | ||
| 206 | |||
| 205 | #define elf_read_implies_exec(ex, executable_stack) \ | 207 | #define elf_read_implies_exec(ex, executable_stack) \ |
| 206 | ((executable_stack!=EXSTACK_DISABLE_X) && ((ex).e_flags & EF_IA_64_LINUX_EXECUTABLE_STACK) != 0) | 208 | ((executable_stack!=EXSTACK_DISABLE_X) && ((ex).e_flags & EF_IA_64_LINUX_EXECUTABLE_STACK) != 0) |
| 207 | 209 | ||
diff --git a/arch/ia64/sn/kernel/setup.c b/arch/ia64/sn/kernel/setup.c index ece1bf994499..e456f062f241 100644 --- a/arch/ia64/sn/kernel/setup.c +++ b/arch/ia64/sn/kernel/setup.c | |||
| @@ -71,7 +71,7 @@ EXPORT_SYMBOL(sn_rtc_cycles_per_second); | |||
| 71 | DEFINE_PER_CPU(struct sn_hub_info_s, __sn_hub_info); | 71 | DEFINE_PER_CPU(struct sn_hub_info_s, __sn_hub_info); |
| 72 | EXPORT_PER_CPU_SYMBOL(__sn_hub_info); | 72 | EXPORT_PER_CPU_SYMBOL(__sn_hub_info); |
| 73 | 73 | ||
| 74 | DEFINE_PER_CPU(short [MAX_COMPACT_NODES], __sn_cnodeid_to_nasid); | 74 | DEFINE_PER_CPU(short, __sn_cnodeid_to_nasid[MAX_COMPACT_NODES]); |
| 75 | EXPORT_PER_CPU_SYMBOL(__sn_cnodeid_to_nasid); | 75 | EXPORT_PER_CPU_SYMBOL(__sn_cnodeid_to_nasid); |
| 76 | 76 | ||
| 77 | DEFINE_PER_CPU(struct nodepda_s *, __sn_nodepda); | 77 | DEFINE_PER_CPU(struct nodepda_s *, __sn_nodepda); |
diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h index fc9997b73c09..267c7c779e53 100644 --- a/arch/microblaze/include/asm/io.h +++ b/arch/microblaze/include/asm/io.h | |||
| @@ -217,7 +217,7 @@ static inline void __iomem *__ioremap(phys_addr_t address, unsigned long size, | |||
| 217 | * Little endian | 217 | * Little endian |
| 218 | */ | 218 | */ |
| 219 | 219 | ||
| 220 | #define out_le32(a, v) __raw_writel(__cpu_to_le32(v), (a)); | 220 | #define out_le32(a, v) __raw_writel(__cpu_to_le32(v), (a)) |
| 221 | #define out_le16(a, v) __raw_writew(__cpu_to_le16(v), (a)) | 221 | #define out_le16(a, v) __raw_writew(__cpu_to_le16(v), (a)) |
| 222 | 222 | ||
| 223 | #define in_le32(a) __le32_to_cpu(__raw_readl(a)) | 223 | #define in_le32(a) __le32_to_cpu(__raw_readl(a)) |
diff --git a/arch/microblaze/kernel/cpu/cache.c b/arch/microblaze/kernel/cpu/cache.c index d9d63831cc2f..2a56bccce4e0 100644 --- a/arch/microblaze/kernel/cpu/cache.c +++ b/arch/microblaze/kernel/cpu/cache.c | |||
| @@ -172,16 +172,15 @@ do { \ | |||
| 172 | /* It is used only first parameter for OP - for wic, wdc */ | 172 | /* It is used only first parameter for OP - for wic, wdc */ |
| 173 | #define CACHE_RANGE_LOOP_1(start, end, line_length, op) \ | 173 | #define CACHE_RANGE_LOOP_1(start, end, line_length, op) \ |
| 174 | do { \ | 174 | do { \ |
| 175 | int step = -line_length; \ | 175 | int volatile temp; \ |
| 176 | int count = end - start; \ | 176 | BUG_ON(end - start <= 0); \ |
| 177 | BUG_ON(count <= 0); \ | ||
| 178 | \ | 177 | \ |
| 179 | __asm__ __volatile__ (" 1: addk %0, %0, %1; \ | 178 | __asm__ __volatile__ (" 1: " #op " %1, r0; \ |
| 180 | " #op " %0, r0; \ | 179 | cmpu %0, %1, %2; \ |
| 181 | bgtid %1, 1b; \ | 180 | bgtid %0, 1b; \ |
| 182 | addk %1, %1, %2; \ | 181 | addk %1, %1, %3; \ |
| 183 | " : : "r" (start), "r" (count), \ | 182 | " : : "r" (temp), "r" (start), "r" (end),\ |
| 184 | "r" (step) : "memory"); \ | 183 | "r" (line_length) : "memory"); \ |
| 185 | } while (0); | 184 | } while (0); |
| 186 | 185 | ||
| 187 | static void __flush_icache_range_msr_irq(unsigned long start, unsigned long end) | 186 | static void __flush_icache_range_msr_irq(unsigned long start, unsigned long end) |
| @@ -313,16 +312,6 @@ static void __invalidate_dcache_all_wb(void) | |||
| 313 | pr_debug("%s\n", __func__); | 312 | pr_debug("%s\n", __func__); |
| 314 | CACHE_ALL_LOOP2(cpuinfo.dcache_size, cpuinfo.dcache_line_length, | 313 | CACHE_ALL_LOOP2(cpuinfo.dcache_size, cpuinfo.dcache_line_length, |
| 315 | wdc.clear) | 314 | wdc.clear) |
| 316 | |||
| 317 | #if 0 | ||
| 318 | unsigned int i; | ||
| 319 | |||
| 320 | pr_debug("%s\n", __func__); | ||
| 321 | |||
| 322 | /* Just loop through cache size and invalidate it */ | ||
| 323 | for (i = 0; i < cpuinfo.dcache_size; i += cpuinfo.dcache_line_length) | ||
| 324 | __invalidate_dcache(0, i); | ||
| 325 | #endif | ||
| 326 | } | 315 | } |
| 327 | 316 | ||
| 328 | static void __invalidate_dcache_range_wb(unsigned long start, | 317 | static void __invalidate_dcache_range_wb(unsigned long start, |
diff --git a/arch/mips/bcm47xx/prom.c b/arch/mips/bcm47xx/prom.c index c51405e57921..29d3cbf9555f 100644 --- a/arch/mips/bcm47xx/prom.c +++ b/arch/mips/bcm47xx/prom.c | |||
| @@ -141,6 +141,14 @@ static __init void prom_init_mem(void) | |||
| 141 | break; | 141 | break; |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | /* Ignoring the last page when ddr size is 128M. Cached | ||
| 145 | * accesses to last page is causing the processor to prefetch | ||
| 146 | * using address above 128M stepping out of the ddr address | ||
| 147 | * space. | ||
| 148 | */ | ||
| 149 | if (mem == 0x8000000) | ||
| 150 | mem -= 0x1000; | ||
| 151 | |||
| 144 | add_memory_region(0, mem, BOOT_MEM_RAM); | 152 | add_memory_region(0, mem, BOOT_MEM_RAM); |
| 145 | } | 153 | } |
| 146 | 154 | ||
diff --git a/arch/mips/configs/ip27_defconfig b/arch/mips/configs/ip27_defconfig index ed84b4cb3c8d..84b6503f10b9 100644 --- a/arch/mips/configs/ip27_defconfig +++ b/arch/mips/configs/ip27_defconfig | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # | 1 | # |
| 2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
| 3 | # Linux kernel version: 2.6.23-rc2 | 3 | # Linux kernel version: 2.6.33-rc6 |
| 4 | # Tue Aug 7 13:04:24 2007 | 4 | # Wed Feb 3 18:12:31 2010 |
| 5 | # | 5 | # |
| 6 | CONFIG_MIPS=y | 6 | CONFIG_MIPS=y |
| 7 | 7 | ||
| @@ -9,20 +9,28 @@ CONFIG_MIPS=y | |||
| 9 | # Machine selection | 9 | # Machine selection |
| 10 | # | 10 | # |
| 11 | # CONFIG_MACH_ALCHEMY is not set | 11 | # CONFIG_MACH_ALCHEMY is not set |
| 12 | # CONFIG_AR7 is not set | ||
| 13 | # CONFIG_BCM47XX is not set | ||
| 14 | # CONFIG_BCM63XX is not set | ||
| 12 | # CONFIG_MIPS_COBALT is not set | 15 | # CONFIG_MIPS_COBALT is not set |
| 13 | # CONFIG_MACH_DECSTATION is not set | 16 | # CONFIG_MACH_DECSTATION is not set |
| 14 | # CONFIG_MACH_JAZZ is not set | 17 | # CONFIG_MACH_JAZZ is not set |
| 15 | # CONFIG_LEMOTE_FULONG is not set | 18 | # CONFIG_LASAT is not set |
| 19 | # CONFIG_MACH_LOONGSON is not set | ||
| 16 | # CONFIG_MIPS_MALTA is not set | 20 | # CONFIG_MIPS_MALTA is not set |
| 17 | # CONFIG_MIPS_SIM is not set | 21 | # CONFIG_MIPS_SIM is not set |
| 18 | # CONFIG_MARKEINS is not set | 22 | # CONFIG_NEC_MARKEINS is not set |
| 19 | # CONFIG_MACH_VR41XX is not set | 23 | # CONFIG_MACH_VR41XX is not set |
| 24 | # CONFIG_NXP_STB220 is not set | ||
| 25 | # CONFIG_NXP_STB225 is not set | ||
| 20 | # CONFIG_PNX8550_JBS is not set | 26 | # CONFIG_PNX8550_JBS is not set |
| 21 | # CONFIG_PNX8550_STB810 is not set | 27 | # CONFIG_PNX8550_STB810 is not set |
| 22 | # CONFIG_PMC_MSP is not set | 28 | # CONFIG_PMC_MSP is not set |
| 23 | # CONFIG_PMC_YOSEMITE is not set | 29 | # CONFIG_PMC_YOSEMITE is not set |
| 30 | # CONFIG_POWERTV is not set | ||
| 24 | # CONFIG_SGI_IP22 is not set | 31 | # CONFIG_SGI_IP22 is not set |
| 25 | CONFIG_SGI_IP27=y | 32 | CONFIG_SGI_IP27=y |
| 33 | # CONFIG_SGI_IP28 is not set | ||
| 26 | # CONFIG_SGI_IP32 is not set | 34 | # CONFIG_SGI_IP32 is not set |
| 27 | # CONFIG_SIBYTE_CRHINE is not set | 35 | # CONFIG_SIBYTE_CRHINE is not set |
| 28 | # CONFIG_SIBYTE_CARMEL is not set | 36 | # CONFIG_SIBYTE_CARMEL is not set |
| @@ -33,32 +41,39 @@ CONFIG_SGI_IP27=y | |||
| 33 | # CONFIG_SIBYTE_SENTOSA is not set | 41 | # CONFIG_SIBYTE_SENTOSA is not set |
| 34 | # CONFIG_SIBYTE_BIGSUR is not set | 42 | # CONFIG_SIBYTE_BIGSUR is not set |
| 35 | # CONFIG_SNI_RM is not set | 43 | # CONFIG_SNI_RM is not set |
| 36 | # CONFIG_TOSHIBA_JMR3927 is not set | 44 | # CONFIG_MACH_TX39XX is not set |
| 37 | # CONFIG_TOSHIBA_RBTX4927 is not set | 45 | # CONFIG_MACH_TX49XX is not set |
| 38 | # CONFIG_TOSHIBA_RBTX4938 is not set | 46 | # CONFIG_MIKROTIK_RB532 is not set |
| 39 | # CONFIG_WR_PPMC is not set | 47 | # CONFIG_WR_PPMC is not set |
| 48 | # CONFIG_CAVIUM_OCTEON_SIMULATOR is not set | ||
| 49 | # CONFIG_CAVIUM_OCTEON_REFERENCE_BOARD is not set | ||
| 50 | # CONFIG_ALCHEMY_GPIO_INDIRECT is not set | ||
| 40 | CONFIG_SGI_SN_M_MODE=y | 51 | CONFIG_SGI_SN_M_MODE=y |
| 41 | # CONFIG_SGI_SN_N_MODE is not set | 52 | # CONFIG_SGI_SN_N_MODE is not set |
| 42 | # CONFIG_MAPPED_KERNEL is not set | 53 | # CONFIG_MAPPED_KERNEL is not set |
| 43 | # CONFIG_REPLICATE_KTEXT is not set | 54 | # CONFIG_REPLICATE_KTEXT is not set |
| 44 | # CONFIG_REPLICATE_EXHANDLERS is not set | 55 | # CONFIG_REPLICATE_EXHANDLERS is not set |
| 56 | CONFIG_LOONGSON_UART_BASE=y | ||
| 45 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 57 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
| 46 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | 58 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set |
| 47 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | 59 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set |
| 60 | CONFIG_ARCH_SUPPORTS_OPROFILE=y | ||
| 48 | CONFIG_GENERIC_FIND_NEXT_BIT=y | 61 | CONFIG_GENERIC_FIND_NEXT_BIT=y |
| 49 | CONFIG_GENERIC_HWEIGHT=y | 62 | CONFIG_GENERIC_HWEIGHT=y |
| 50 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 63 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
| 64 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
| 51 | CONFIG_GENERIC_TIME=y | 65 | CONFIG_GENERIC_TIME=y |
| 52 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | 66 | CONFIG_GENERIC_CMOS_UPDATE=y |
| 67 | CONFIG_SCHED_OMIT_FRAME_POINTER=y | ||
| 53 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | 68 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y |
| 54 | CONFIG_ARC=y | 69 | CONFIG_ARC=y |
| 55 | CONFIG_DMA_COHERENT=y | 70 | CONFIG_DMA_COHERENT=y |
| 56 | CONFIG_EARLY_PRINTK=y | ||
| 57 | CONFIG_SYS_HAS_EARLY_PRINTK=y | 71 | CONFIG_SYS_HAS_EARLY_PRINTK=y |
| 58 | # CONFIG_NO_IOPORT is not set | 72 | # CONFIG_NO_IOPORT is not set |
| 59 | CONFIG_CPU_BIG_ENDIAN=y | 73 | CONFIG_CPU_BIG_ENDIAN=y |
| 60 | # CONFIG_CPU_LITTLE_ENDIAN is not set | 74 | # CONFIG_CPU_LITTLE_ENDIAN is not set |
| 61 | CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y | 75 | CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y |
| 76 | CONFIG_DEFAULT_SGI_PARTITION=y | ||
| 62 | CONFIG_MIPS_L1_CACHE_SHIFT=7 | 77 | CONFIG_MIPS_L1_CACHE_SHIFT=7 |
| 63 | CONFIG_ARC64=y | 78 | CONFIG_ARC64=y |
| 64 | CONFIG_BOOT_ELF64=y | 79 | CONFIG_BOOT_ELF64=y |
| @@ -66,7 +81,8 @@ CONFIG_BOOT_ELF64=y | |||
| 66 | # | 81 | # |
| 67 | # CPU selection | 82 | # CPU selection |
| 68 | # | 83 | # |
| 69 | # CONFIG_CPU_LOONGSON2 is not set | 84 | # CONFIG_CPU_LOONGSON2E is not set |
| 85 | # CONFIG_CPU_LOONGSON2F is not set | ||
| 70 | # CONFIG_CPU_MIPS32_R1 is not set | 86 | # CONFIG_CPU_MIPS32_R1 is not set |
| 71 | # CONFIG_CPU_MIPS32_R2 is not set | 87 | # CONFIG_CPU_MIPS32_R2 is not set |
| 72 | # CONFIG_CPU_MIPS64_R1 is not set | 88 | # CONFIG_CPU_MIPS64_R1 is not set |
| @@ -79,6 +95,7 @@ CONFIG_BOOT_ELF64=y | |||
| 79 | # CONFIG_CPU_TX49XX is not set | 95 | # CONFIG_CPU_TX49XX is not set |
| 80 | # CONFIG_CPU_R5000 is not set | 96 | # CONFIG_CPU_R5000 is not set |
| 81 | # CONFIG_CPU_R5432 is not set | 97 | # CONFIG_CPU_R5432 is not set |
| 98 | # CONFIG_CPU_R5500 is not set | ||
| 82 | # CONFIG_CPU_R6000 is not set | 99 | # CONFIG_CPU_R6000 is not set |
| 83 | # CONFIG_CPU_NEVADA is not set | 100 | # CONFIG_CPU_NEVADA is not set |
| 84 | # CONFIG_CPU_R8000 is not set | 101 | # CONFIG_CPU_R8000 is not set |
| @@ -86,6 +103,7 @@ CONFIG_CPU_R10000=y | |||
| 86 | # CONFIG_CPU_RM7000 is not set | 103 | # CONFIG_CPU_RM7000 is not set |
| 87 | # CONFIG_CPU_RM9000 is not set | 104 | # CONFIG_CPU_RM9000 is not set |
| 88 | # CONFIG_CPU_SB1 is not set | 105 | # CONFIG_CPU_SB1 is not set |
| 106 | # CONFIG_CPU_CAVIUM_OCTEON is not set | ||
| 89 | CONFIG_SYS_HAS_CPU_R10000=y | 107 | CONFIG_SYS_HAS_CPU_R10000=y |
| 90 | CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y | 108 | CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y |
| 91 | CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y | 109 | CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y |
| @@ -99,6 +117,7 @@ CONFIG_64BIT=y | |||
| 99 | CONFIG_PAGE_SIZE_4KB=y | 117 | CONFIG_PAGE_SIZE_4KB=y |
| 100 | # CONFIG_PAGE_SIZE_8KB is not set | 118 | # CONFIG_PAGE_SIZE_8KB is not set |
| 101 | # CONFIG_PAGE_SIZE_16KB is not set | 119 | # CONFIG_PAGE_SIZE_16KB is not set |
| 120 | # CONFIG_PAGE_SIZE_32KB is not set | ||
| 102 | # CONFIG_PAGE_SIZE_64KB is not set | 121 | # CONFIG_PAGE_SIZE_64KB is not set |
| 103 | CONFIG_CPU_HAS_PREFETCH=y | 122 | CONFIG_CPU_HAS_PREFETCH=y |
| 104 | CONFIG_MIPS_MT_DISABLED=y | 123 | CONFIG_MIPS_MT_DISABLED=y |
| @@ -110,6 +129,7 @@ CONFIG_GENERIC_IRQ_PROBE=y | |||
| 110 | CONFIG_IRQ_PER_CPU=y | 129 | CONFIG_IRQ_PER_CPU=y |
| 111 | CONFIG_CPU_SUPPORTS_HIGHMEM=y | 130 | CONFIG_CPU_SUPPORTS_HIGHMEM=y |
| 112 | CONFIG_ARCH_DISCONTIGMEM_ENABLE=y | 131 | CONFIG_ARCH_DISCONTIGMEM_ENABLE=y |
| 132 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
| 113 | CONFIG_NUMA=y | 133 | CONFIG_NUMA=y |
| 114 | CONFIG_SYS_SUPPORTS_NUMA=y | 134 | CONFIG_SYS_SUPPORTS_NUMA=y |
| 115 | CONFIG_NODES_SHIFT=6 | 135 | CONFIG_NODES_SHIFT=6 |
| @@ -120,16 +140,22 @@ CONFIG_DISCONTIGMEM_MANUAL=y | |||
| 120 | CONFIG_DISCONTIGMEM=y | 140 | CONFIG_DISCONTIGMEM=y |
| 121 | CONFIG_FLAT_NODE_MEM_MAP=y | 141 | CONFIG_FLAT_NODE_MEM_MAP=y |
| 122 | CONFIG_NEED_MULTIPLE_NODES=y | 142 | CONFIG_NEED_MULTIPLE_NODES=y |
| 123 | # CONFIG_SPARSEMEM_STATIC is not set | 143 | CONFIG_PAGEFLAGS_EXTENDED=y |
| 124 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 144 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
| 125 | CONFIG_MIGRATION=y | 145 | CONFIG_MIGRATION=y |
| 126 | CONFIG_RESOURCES_64BIT=y | 146 | CONFIG_PHYS_ADDR_T_64BIT=y |
| 127 | CONFIG_ZONE_DMA_FLAG=0 | 147 | CONFIG_ZONE_DMA_FLAG=0 |
| 128 | CONFIG_VIRT_TO_BUS=y | 148 | CONFIG_VIRT_TO_BUS=y |
| 149 | # CONFIG_KSM is not set | ||
| 150 | CONFIG_DEFAULT_MMAP_MIN_ADDR=65536 | ||
| 129 | CONFIG_SMP=y | 151 | CONFIG_SMP=y |
| 130 | CONFIG_SYS_SUPPORTS_SMP=y | 152 | CONFIG_SYS_SUPPORTS_SMP=y |
| 131 | CONFIG_NR_CPUS_DEFAULT_64=y | 153 | CONFIG_NR_CPUS_DEFAULT_64=y |
| 132 | CONFIG_NR_CPUS=64 | 154 | CONFIG_NR_CPUS=64 |
| 155 | CONFIG_TICK_ONESHOT=y | ||
| 156 | CONFIG_NO_HZ=y | ||
| 157 | CONFIG_HIGH_RES_TIMERS=y | ||
| 158 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
| 133 | # CONFIG_HZ_48 is not set | 159 | # CONFIG_HZ_48 is not set |
| 134 | # CONFIG_HZ_100 is not set | 160 | # CONFIG_HZ_100 is not set |
| 135 | # CONFIG_HZ_128 is not set | 161 | # CONFIG_HZ_128 is not set |
| @@ -142,13 +168,13 @@ CONFIG_HZ=1000 | |||
| 142 | CONFIG_PREEMPT_NONE=y | 168 | CONFIG_PREEMPT_NONE=y |
| 143 | # CONFIG_PREEMPT_VOLUNTARY is not set | 169 | # CONFIG_PREEMPT_VOLUNTARY is not set |
| 144 | # CONFIG_PREEMPT is not set | 170 | # CONFIG_PREEMPT is not set |
| 145 | CONFIG_PREEMPT_BKL=y | ||
| 146 | # CONFIG_MIPS_INSANE_LARGE is not set | 171 | # CONFIG_MIPS_INSANE_LARGE is not set |
| 147 | # CONFIG_KEXEC is not set | 172 | # CONFIG_KEXEC is not set |
| 148 | CONFIG_SECCOMP=y | 173 | CONFIG_SECCOMP=y |
| 149 | CONFIG_LOCKDEP_SUPPORT=y | 174 | CONFIG_LOCKDEP_SUPPORT=y |
| 150 | CONFIG_STACKTRACE_SUPPORT=y | 175 | CONFIG_STACKTRACE_SUPPORT=y |
| 151 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | 176 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" |
| 177 | CONFIG_CONSTRUCTORS=y | ||
| 152 | 178 | ||
| 153 | # | 179 | # |
| 154 | # General setup | 180 | # General setup |
| @@ -162,20 +188,41 @@ CONFIG_SWAP=y | |||
| 162 | CONFIG_SYSVIPC=y | 188 | CONFIG_SYSVIPC=y |
| 163 | CONFIG_SYSVIPC_SYSCTL=y | 189 | CONFIG_SYSVIPC_SYSCTL=y |
| 164 | CONFIG_POSIX_MQUEUE=y | 190 | CONFIG_POSIX_MQUEUE=y |
| 191 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
| 165 | # CONFIG_BSD_PROCESS_ACCT is not set | 192 | # CONFIG_BSD_PROCESS_ACCT is not set |
| 166 | # CONFIG_TASKSTATS is not set | 193 | # CONFIG_TASKSTATS is not set |
| 167 | # CONFIG_USER_NS is not set | ||
| 168 | # CONFIG_AUDIT is not set | 194 | # CONFIG_AUDIT is not set |
| 195 | |||
| 196 | # | ||
| 197 | # RCU Subsystem | ||
| 198 | # | ||
| 199 | CONFIG_TREE_RCU=y | ||
| 200 | # CONFIG_TREE_PREEMPT_RCU is not set | ||
| 201 | # CONFIG_TINY_RCU is not set | ||
| 202 | # CONFIG_RCU_TRACE is not set | ||
| 203 | CONFIG_RCU_FANOUT=64 | ||
| 204 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
| 205 | # CONFIG_TREE_RCU_TRACE is not set | ||
| 169 | CONFIG_IKCONFIG=y | 206 | CONFIG_IKCONFIG=y |
| 170 | CONFIG_IKCONFIG_PROC=y | 207 | CONFIG_IKCONFIG_PROC=y |
| 171 | CONFIG_LOG_BUF_SHIFT=15 | 208 | CONFIG_LOG_BUF_SHIFT=15 |
| 209 | # CONFIG_GROUP_SCHED is not set | ||
| 172 | CONFIG_CGROUPS=y | 210 | CONFIG_CGROUPS=y |
| 211 | # CONFIG_CGROUP_DEBUG is not set | ||
| 212 | # CONFIG_CGROUP_NS is not set | ||
| 213 | # CONFIG_CGROUP_FREEZER is not set | ||
| 214 | # CONFIG_CGROUP_DEVICE is not set | ||
| 173 | CONFIG_CPUSETS=y | 215 | CONFIG_CPUSETS=y |
| 174 | CONFIG_SYSFS_DEPRECATED=y | 216 | CONFIG_PROC_PID_CPUSET=y |
| 217 | # CONFIG_CGROUP_CPUACCT is not set | ||
| 218 | # CONFIG_RESOURCE_COUNTERS is not set | ||
| 219 | # CONFIG_SYSFS_DEPRECATED_V2 is not set | ||
| 175 | CONFIG_RELAY=y | 220 | CONFIG_RELAY=y |
| 221 | # CONFIG_NAMESPACES is not set | ||
| 176 | # CONFIG_BLK_DEV_INITRD is not set | 222 | # CONFIG_BLK_DEV_INITRD is not set |
| 177 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | 223 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set |
| 178 | CONFIG_SYSCTL=y | 224 | CONFIG_SYSCTL=y |
| 225 | CONFIG_ANON_INODES=y | ||
| 179 | CONFIG_EMBEDDED=y | 226 | CONFIG_EMBEDDED=y |
| 180 | CONFIG_SYSCTL_SYSCALL=y | 227 | CONFIG_SYSCTL_SYSCALL=y |
| 181 | CONFIG_KALLSYMS=y | 228 | CONFIG_KALLSYMS=y |
| @@ -184,44 +231,92 @@ CONFIG_HOTPLUG=y | |||
| 184 | CONFIG_PRINTK=y | 231 | CONFIG_PRINTK=y |
| 185 | CONFIG_BUG=y | 232 | CONFIG_BUG=y |
| 186 | CONFIG_ELF_CORE=y | 233 | CONFIG_ELF_CORE=y |
| 234 | # CONFIG_PCSPKR_PLATFORM is not set | ||
| 187 | CONFIG_BASE_FULL=y | 235 | CONFIG_BASE_FULL=y |
| 188 | CONFIG_FUTEX=y | 236 | CONFIG_FUTEX=y |
| 189 | CONFIG_ANON_INODES=y | ||
| 190 | CONFIG_EPOLL=y | 237 | CONFIG_EPOLL=y |
| 191 | CONFIG_SIGNALFD=y | 238 | CONFIG_SIGNALFD=y |
| 192 | CONFIG_TIMERFD=y | 239 | CONFIG_TIMERFD=y |
| 193 | CONFIG_EVENTFD=y | 240 | CONFIG_EVENTFD=y |
| 194 | CONFIG_SHMEM=y | 241 | CONFIG_SHMEM=y |
| 242 | CONFIG_AIO=y | ||
| 243 | |||
| 244 | # | ||
| 245 | # Kernel Performance Events And Counters | ||
| 246 | # | ||
| 195 | CONFIG_VM_EVENT_COUNTERS=y | 247 | CONFIG_VM_EVENT_COUNTERS=y |
| 248 | CONFIG_PCI_QUIRKS=y | ||
| 249 | CONFIG_COMPAT_BRK=y | ||
| 196 | CONFIG_SLAB=y | 250 | CONFIG_SLAB=y |
| 197 | # CONFIG_SLUB is not set | 251 | # CONFIG_SLUB is not set |
| 198 | # CONFIG_SLOB is not set | 252 | # CONFIG_SLOB is not set |
| 253 | # CONFIG_PROFILING is not set | ||
| 254 | CONFIG_HAVE_OPROFILE=y | ||
| 255 | CONFIG_HAVE_SYSCALL_WRAPPERS=y | ||
| 256 | CONFIG_USE_GENERIC_SMP_HELPERS=y | ||
| 257 | |||
| 258 | # | ||
| 259 | # GCOV-based kernel profiling | ||
| 260 | # | ||
| 261 | CONFIG_SLOW_WORK=y | ||
| 262 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
| 263 | CONFIG_SLABINFO=y | ||
| 199 | CONFIG_RT_MUTEXES=y | 264 | CONFIG_RT_MUTEXES=y |
| 200 | # CONFIG_TINY_SHMEM is not set | ||
| 201 | CONFIG_BASE_SMALL=0 | 265 | CONFIG_BASE_SMALL=0 |
| 202 | CONFIG_MODULES=y | 266 | CONFIG_MODULES=y |
| 267 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
| 203 | CONFIG_MODULE_UNLOAD=y | 268 | CONFIG_MODULE_UNLOAD=y |
| 204 | # CONFIG_MODULE_FORCE_UNLOAD is not set | 269 | # CONFIG_MODULE_FORCE_UNLOAD is not set |
| 205 | # CONFIG_MODVERSIONS is not set | 270 | # CONFIG_MODVERSIONS is not set |
| 206 | CONFIG_MODULE_SRCVERSION_ALL=y | 271 | CONFIG_MODULE_SRCVERSION_ALL=y |
| 207 | CONFIG_KMOD=y | ||
| 208 | CONFIG_STOP_MACHINE=y | 272 | CONFIG_STOP_MACHINE=y |
| 209 | CONFIG_BLOCK=y | 273 | CONFIG_BLOCK=y |
| 210 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
| 211 | # CONFIG_BLK_DEV_BSG is not set | 274 | # CONFIG_BLK_DEV_BSG is not set |
| 275 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
| 276 | # CONFIG_BLK_CGROUP is not set | ||
| 277 | CONFIG_BLOCK_COMPAT=y | ||
| 212 | 278 | ||
| 213 | # | 279 | # |
| 214 | # IO Schedulers | 280 | # IO Schedulers |
| 215 | # | 281 | # |
| 216 | CONFIG_IOSCHED_NOOP=y | 282 | CONFIG_IOSCHED_NOOP=y |
| 217 | CONFIG_IOSCHED_AS=y | ||
| 218 | CONFIG_IOSCHED_DEADLINE=y | 283 | CONFIG_IOSCHED_DEADLINE=y |
| 219 | CONFIG_IOSCHED_CFQ=y | 284 | CONFIG_IOSCHED_CFQ=y |
| 220 | CONFIG_DEFAULT_AS=y | 285 | # CONFIG_CFQ_GROUP_IOSCHED is not set |
| 221 | # CONFIG_DEFAULT_DEADLINE is not set | 286 | # CONFIG_DEFAULT_DEADLINE is not set |
| 222 | # CONFIG_DEFAULT_CFQ is not set | 287 | CONFIG_DEFAULT_CFQ=y |
| 223 | # CONFIG_DEFAULT_NOOP is not set | 288 | # CONFIG_DEFAULT_NOOP is not set |
| 224 | CONFIG_DEFAULT_IOSCHED="anticipatory" | 289 | CONFIG_DEFAULT_IOSCHED="cfq" |
| 290 | # CONFIG_INLINE_SPIN_TRYLOCK is not set | ||
| 291 | # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set | ||
| 292 | # CONFIG_INLINE_SPIN_LOCK is not set | ||
| 293 | # CONFIG_INLINE_SPIN_LOCK_BH is not set | ||
| 294 | # CONFIG_INLINE_SPIN_LOCK_IRQ is not set | ||
| 295 | # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set | ||
| 296 | CONFIG_INLINE_SPIN_UNLOCK=y | ||
| 297 | # CONFIG_INLINE_SPIN_UNLOCK_BH is not set | ||
| 298 | CONFIG_INLINE_SPIN_UNLOCK_IRQ=y | ||
| 299 | # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set | ||
| 300 | # CONFIG_INLINE_READ_TRYLOCK is not set | ||
| 301 | # CONFIG_INLINE_READ_LOCK is not set | ||
| 302 | # CONFIG_INLINE_READ_LOCK_BH is not set | ||
| 303 | # CONFIG_INLINE_READ_LOCK_IRQ is not set | ||
| 304 | # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set | ||
| 305 | CONFIG_INLINE_READ_UNLOCK=y | ||
| 306 | # CONFIG_INLINE_READ_UNLOCK_BH is not set | ||
| 307 | CONFIG_INLINE_READ_UNLOCK_IRQ=y | ||
| 308 | # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set | ||
| 309 | # CONFIG_INLINE_WRITE_TRYLOCK is not set | ||
| 310 | # CONFIG_INLINE_WRITE_LOCK is not set | ||
| 311 | # CONFIG_INLINE_WRITE_LOCK_BH is not set | ||
| 312 | # CONFIG_INLINE_WRITE_LOCK_IRQ is not set | ||
| 313 | # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set | ||
| 314 | CONFIG_INLINE_WRITE_UNLOCK=y | ||
| 315 | # CONFIG_INLINE_WRITE_UNLOCK_BH is not set | ||
| 316 | CONFIG_INLINE_WRITE_UNLOCK_IRQ=y | ||
| 317 | # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set | ||
| 318 | CONFIG_MUTEX_SPIN_ON_OWNER=y | ||
| 319 | # CONFIG_FREEZER is not set | ||
| 225 | 320 | ||
| 226 | # | 321 | # |
| 227 | # Bus options (PCI, PCMCIA, EISA, ISA, TC) | 322 | # Bus options (PCI, PCMCIA, EISA, ISA, TC) |
| @@ -230,11 +325,10 @@ CONFIG_HW_HAS_PCI=y | |||
| 230 | CONFIG_PCI=y | 325 | CONFIG_PCI=y |
| 231 | CONFIG_PCI_DOMAINS=y | 326 | CONFIG_PCI_DOMAINS=y |
| 232 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 327 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
| 328 | # CONFIG_PCI_LEGACY is not set | ||
| 329 | # CONFIG_PCI_STUB is not set | ||
| 330 | # CONFIG_PCI_IOV is not set | ||
| 233 | CONFIG_MMU=y | 331 | CONFIG_MMU=y |
| 234 | |||
| 235 | # | ||
| 236 | # PCCARD (PCMCIA/CardBus) support | ||
| 237 | # | ||
| 238 | # CONFIG_PCCARD is not set | 332 | # CONFIG_PCCARD is not set |
| 239 | # CONFIG_HOTPLUG_PCI is not set | 333 | # CONFIG_HOTPLUG_PCI is not set |
| 240 | 334 | ||
| @@ -242,8 +336,9 @@ CONFIG_MMU=y | |||
| 242 | # Executable file formats | 336 | # Executable file formats |
| 243 | # | 337 | # |
| 244 | CONFIG_BINFMT_ELF=y | 338 | CONFIG_BINFMT_ELF=y |
| 339 | CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y | ||
| 340 | # CONFIG_HAVE_AOUT is not set | ||
| 245 | # CONFIG_BINFMT_MISC is not set | 341 | # CONFIG_BINFMT_MISC is not set |
| 246 | # CONFIG_BUILD_ELF64 is not set | ||
| 247 | CONFIG_MIPS32_COMPAT=y | 342 | CONFIG_MIPS32_COMPAT=y |
| 248 | CONFIG_COMPAT=y | 343 | CONFIG_COMPAT=y |
| 249 | CONFIG_SYSVIPC_COMPAT=y | 344 | CONFIG_SYSVIPC_COMPAT=y |
| @@ -255,13 +350,10 @@ CONFIG_BINFMT_ELF32=y | |||
| 255 | # Power management options | 350 | # Power management options |
| 256 | # | 351 | # |
| 257 | CONFIG_PM=y | 352 | CONFIG_PM=y |
| 258 | # CONFIG_PM_LEGACY is not set | ||
| 259 | # CONFIG_PM_DEBUG is not set | 353 | # CONFIG_PM_DEBUG is not set |
| 260 | 354 | # CONFIG_PM_RUNTIME is not set | |
| 261 | # | ||
| 262 | # Networking | ||
| 263 | # | ||
| 264 | CONFIG_NET=y | 355 | CONFIG_NET=y |
| 356 | CONFIG_COMPAT_NETLINK_MESSAGES=y | ||
| 265 | 357 | ||
| 266 | # | 358 | # |
| 267 | # Networking options | 359 | # Networking options |
| @@ -273,6 +365,8 @@ CONFIG_XFRM=y | |||
| 273 | CONFIG_XFRM_USER=m | 365 | CONFIG_XFRM_USER=m |
| 274 | # CONFIG_XFRM_SUB_POLICY is not set | 366 | # CONFIG_XFRM_SUB_POLICY is not set |
| 275 | CONFIG_XFRM_MIGRATE=y | 367 | CONFIG_XFRM_MIGRATE=y |
| 368 | CONFIG_XFRM_STATISTICS=y | ||
| 369 | CONFIG_XFRM_IPCOMP=m | ||
| 276 | CONFIG_NET_KEY=y | 370 | CONFIG_NET_KEY=y |
| 277 | CONFIG_NET_KEY_MIGRATE=y | 371 | CONFIG_NET_KEY_MIGRATE=y |
| 278 | CONFIG_INET=y | 372 | CONFIG_INET=y |
| @@ -292,19 +386,40 @@ CONFIG_IP_PNP=y | |||
| 292 | # CONFIG_INET_ESP is not set | 386 | # CONFIG_INET_ESP is not set |
| 293 | # CONFIG_INET_IPCOMP is not set | 387 | # CONFIG_INET_IPCOMP is not set |
| 294 | # CONFIG_INET_XFRM_TUNNEL is not set | 388 | # CONFIG_INET_XFRM_TUNNEL is not set |
| 295 | # CONFIG_INET_TUNNEL is not set | 389 | CONFIG_INET_TUNNEL=m |
| 296 | CONFIG_INET_XFRM_MODE_TRANSPORT=m | 390 | CONFIG_INET_XFRM_MODE_TRANSPORT=m |
| 297 | CONFIG_INET_XFRM_MODE_TUNNEL=m | 391 | CONFIG_INET_XFRM_MODE_TUNNEL=m |
| 298 | CONFIG_INET_XFRM_MODE_BEET=m | 392 | CONFIG_INET_XFRM_MODE_BEET=m |
| 393 | CONFIG_INET_LRO=y | ||
| 299 | CONFIG_INET_DIAG=y | 394 | CONFIG_INET_DIAG=y |
| 300 | CONFIG_INET_TCP_DIAG=y | 395 | CONFIG_INET_TCP_DIAG=y |
| 301 | # CONFIG_TCP_CONG_ADVANCED is not set | 396 | # CONFIG_TCP_CONG_ADVANCED is not set |
| 302 | CONFIG_TCP_CONG_CUBIC=y | 397 | CONFIG_TCP_CONG_CUBIC=y |
| 303 | CONFIG_DEFAULT_TCP_CONG="cubic" | 398 | CONFIG_DEFAULT_TCP_CONG="cubic" |
| 304 | CONFIG_TCP_MD5SIG=y | 399 | CONFIG_TCP_MD5SIG=y |
| 305 | # CONFIG_IPV6 is not set | 400 | CONFIG_IPV6=y |
| 306 | # CONFIG_INET6_XFRM_TUNNEL is not set | 401 | CONFIG_IPV6_PRIVACY=y |
| 307 | # CONFIG_INET6_TUNNEL is not set | 402 | CONFIG_IPV6_ROUTER_PREF=y |
| 403 | CONFIG_IPV6_ROUTE_INFO=y | ||
| 404 | CONFIG_IPV6_OPTIMISTIC_DAD=y | ||
| 405 | CONFIG_INET6_AH=m | ||
| 406 | CONFIG_INET6_ESP=m | ||
| 407 | CONFIG_INET6_IPCOMP=m | ||
| 408 | CONFIG_IPV6_MIP6=m | ||
| 409 | CONFIG_INET6_XFRM_TUNNEL=m | ||
| 410 | CONFIG_INET6_TUNNEL=m | ||
| 411 | CONFIG_INET6_XFRM_MODE_TRANSPORT=m | ||
| 412 | CONFIG_INET6_XFRM_MODE_TUNNEL=m | ||
| 413 | CONFIG_INET6_XFRM_MODE_BEET=m | ||
| 414 | CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m | ||
| 415 | CONFIG_IPV6_SIT=m | ||
| 416 | CONFIG_IPV6_SIT_6RD=y | ||
| 417 | CONFIG_IPV6_NDISC_NODETYPE=y | ||
| 418 | CONFIG_IPV6_TUNNEL=m | ||
| 419 | CONFIG_IPV6_MULTIPLE_TABLES=y | ||
| 420 | CONFIG_IPV6_SUBTREES=y | ||
| 421 | CONFIG_IPV6_MROUTE=y | ||
| 422 | CONFIG_IPV6_PIMSM_V2=y | ||
| 308 | CONFIG_NETWORK_SECMARK=y | 423 | CONFIG_NETWORK_SECMARK=y |
| 309 | # CONFIG_NETFILTER is not set | 424 | # CONFIG_NETFILTER is not set |
| 310 | # CONFIG_IP_DCCP is not set | 425 | # CONFIG_IP_DCCP is not set |
| @@ -314,9 +429,11 @@ CONFIG_IP_SCTP=m | |||
| 314 | # CONFIG_SCTP_HMAC_NONE is not set | 429 | # CONFIG_SCTP_HMAC_NONE is not set |
| 315 | # CONFIG_SCTP_HMAC_SHA1 is not set | 430 | # CONFIG_SCTP_HMAC_SHA1 is not set |
| 316 | CONFIG_SCTP_HMAC_MD5=y | 431 | CONFIG_SCTP_HMAC_MD5=y |
| 432 | # CONFIG_RDS is not set | ||
| 317 | # CONFIG_TIPC is not set | 433 | # CONFIG_TIPC is not set |
| 318 | # CONFIG_ATM is not set | 434 | # CONFIG_ATM is not set |
| 319 | # CONFIG_BRIDGE is not set | 435 | # CONFIG_BRIDGE is not set |
| 436 | # CONFIG_NET_DSA is not set | ||
| 320 | # CONFIG_VLAN_8021Q is not set | 437 | # CONFIG_VLAN_8021Q is not set |
| 321 | # CONFIG_DECNET is not set | 438 | # CONFIG_DECNET is not set |
| 322 | # CONFIG_LLC2 is not set | 439 | # CONFIG_LLC2 is not set |
| @@ -326,12 +443,9 @@ CONFIG_SCTP_HMAC_MD5=y | |||
| 326 | # CONFIG_LAPB is not set | 443 | # CONFIG_LAPB is not set |
| 327 | # CONFIG_ECONET is not set | 444 | # CONFIG_ECONET is not set |
| 328 | # CONFIG_WAN_ROUTER is not set | 445 | # CONFIG_WAN_ROUTER is not set |
| 329 | 446 | # CONFIG_PHONET is not set | |
| 330 | # | 447 | # CONFIG_IEEE802154 is not set |
| 331 | # QoS and/or fair queueing | ||
| 332 | # | ||
| 333 | CONFIG_NET_SCHED=y | 448 | CONFIG_NET_SCHED=y |
| 334 | CONFIG_NET_SCH_FIFO=y | ||
| 335 | 449 | ||
| 336 | # | 450 | # |
| 337 | # Queueing/Scheduling | 451 | # Queueing/Scheduling |
| @@ -340,7 +454,7 @@ CONFIG_NET_SCH_CBQ=m | |||
| 340 | CONFIG_NET_SCH_HTB=m | 454 | CONFIG_NET_SCH_HTB=m |
| 341 | CONFIG_NET_SCH_HFSC=m | 455 | CONFIG_NET_SCH_HFSC=m |
| 342 | CONFIG_NET_SCH_PRIO=m | 456 | CONFIG_NET_SCH_PRIO=m |
| 343 | CONFIG_NET_SCH_RR=m | 457 | CONFIG_NET_SCH_MULTIQ=y |
| 344 | CONFIG_NET_SCH_RED=m | 458 | CONFIG_NET_SCH_RED=m |
| 345 | CONFIG_NET_SCH_SFQ=m | 459 | CONFIG_NET_SCH_SFQ=m |
| 346 | CONFIG_NET_SCH_TEQL=m | 460 | CONFIG_NET_SCH_TEQL=m |
| @@ -348,6 +462,7 @@ CONFIG_NET_SCH_TBF=m | |||
| 348 | CONFIG_NET_SCH_GRED=m | 462 | CONFIG_NET_SCH_GRED=m |
| 349 | CONFIG_NET_SCH_DSMARK=m | 463 | CONFIG_NET_SCH_DSMARK=m |
| 350 | CONFIG_NET_SCH_NETEM=m | 464 | CONFIG_NET_SCH_NETEM=m |
| 465 | # CONFIG_NET_SCH_DRR is not set | ||
| 351 | CONFIG_NET_SCH_INGRESS=m | 466 | CONFIG_NET_SCH_INGRESS=m |
| 352 | 467 | ||
| 353 | # | 468 | # |
| @@ -364,41 +479,63 @@ CONFIG_NET_CLS_U32=m | |||
| 364 | CONFIG_CLS_U32_MARK=y | 479 | CONFIG_CLS_U32_MARK=y |
| 365 | CONFIG_NET_CLS_RSVP=m | 480 | CONFIG_NET_CLS_RSVP=m |
| 366 | CONFIG_NET_CLS_RSVP6=m | 481 | CONFIG_NET_CLS_RSVP6=m |
| 482 | CONFIG_NET_CLS_FLOW=m | ||
| 483 | CONFIG_NET_CLS_CGROUP=y | ||
| 367 | # CONFIG_NET_EMATCH is not set | 484 | # CONFIG_NET_EMATCH is not set |
| 368 | CONFIG_NET_CLS_ACT=y | 485 | CONFIG_NET_CLS_ACT=y |
| 369 | CONFIG_NET_ACT_POLICE=y | 486 | CONFIG_NET_ACT_POLICE=y |
| 370 | CONFIG_NET_ACT_GACT=m | 487 | CONFIG_NET_ACT_GACT=m |
| 371 | CONFIG_GACT_PROB=y | 488 | CONFIG_GACT_PROB=y |
| 372 | CONFIG_NET_ACT_MIRRED=m | 489 | CONFIG_NET_ACT_MIRRED=m |
| 490 | CONFIG_NET_ACT_NAT=m | ||
| 373 | CONFIG_NET_ACT_PEDIT=m | 491 | CONFIG_NET_ACT_PEDIT=m |
| 374 | # CONFIG_NET_ACT_SIMP is not set | 492 | # CONFIG_NET_ACT_SIMP is not set |
| 375 | CONFIG_NET_CLS_POLICE=y | 493 | CONFIG_NET_ACT_SKBEDIT=m |
| 376 | # CONFIG_NET_CLS_IND is not set | 494 | # CONFIG_NET_CLS_IND is not set |
| 495 | CONFIG_NET_SCH_FIFO=y | ||
| 496 | # CONFIG_DCB is not set | ||
| 377 | 497 | ||
| 378 | # | 498 | # |
| 379 | # Network testing | 499 | # Network testing |
| 380 | # | 500 | # |
| 381 | # CONFIG_NET_PKTGEN is not set | 501 | # CONFIG_NET_PKTGEN is not set |
| 382 | # CONFIG_HAMRADIO is not set | 502 | # CONFIG_HAMRADIO is not set |
| 503 | # CONFIG_CAN is not set | ||
| 383 | # CONFIG_IRDA is not set | 504 | # CONFIG_IRDA is not set |
| 384 | # CONFIG_BT is not set | 505 | # CONFIG_BT is not set |
| 385 | # CONFIG_AF_RXRPC is not set | 506 | # CONFIG_AF_RXRPC is not set |
| 386 | 507 | CONFIG_FIB_RULES=y | |
| 387 | # | 508 | CONFIG_WIRELESS=y |
| 388 | # Wireless | ||
| 389 | # | ||
| 390 | CONFIG_CFG80211=m | ||
| 391 | CONFIG_WIRELESS_EXT=y | 509 | CONFIG_WIRELESS_EXT=y |
| 510 | CONFIG_WEXT_CORE=y | ||
| 511 | CONFIG_WEXT_PROC=y | ||
| 512 | CONFIG_WEXT_SPY=y | ||
| 513 | CONFIG_WEXT_PRIV=y | ||
| 514 | CONFIG_CFG80211=m | ||
| 515 | # CONFIG_NL80211_TESTMODE is not set | ||
| 516 | # CONFIG_CFG80211_DEVELOPER_WARNINGS is not set | ||
| 517 | # CONFIG_CFG80211_REG_DEBUG is not set | ||
| 518 | CONFIG_CFG80211_DEFAULT_PS=y | ||
| 519 | # CONFIG_WIRELESS_OLD_REGULATORY is not set | ||
| 520 | CONFIG_CFG80211_WEXT=y | ||
| 521 | CONFIG_WIRELESS_EXT_SYSFS=y | ||
| 522 | CONFIG_LIB80211=m | ||
| 523 | CONFIG_LIB80211_CRYPT_WEP=m | ||
| 524 | CONFIG_LIB80211_CRYPT_CCMP=m | ||
| 525 | CONFIG_LIB80211_CRYPT_TKIP=m | ||
| 526 | # CONFIG_LIB80211_DEBUG is not set | ||
| 392 | CONFIG_MAC80211=m | 527 | CONFIG_MAC80211=m |
| 393 | # CONFIG_MAC80211_DEBUG is not set | 528 | CONFIG_MAC80211_RC_PID=y |
| 394 | CONFIG_IEEE80211=m | 529 | CONFIG_MAC80211_RC_MINSTREL=y |
| 395 | # CONFIG_IEEE80211_DEBUG is not set | 530 | # CONFIG_MAC80211_RC_DEFAULT_PID is not set |
| 396 | CONFIG_IEEE80211_CRYPT_WEP=m | 531 | CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y |
| 397 | CONFIG_IEEE80211_CRYPT_CCMP=m | 532 | CONFIG_MAC80211_RC_DEFAULT="minstrel" |
| 398 | CONFIG_IEEE80211_CRYPT_TKIP=m | 533 | # CONFIG_MAC80211_MESH is not set |
| 399 | CONFIG_IEEE80211_SOFTMAC=m | 534 | CONFIG_MAC80211_LEDS=y |
| 400 | # CONFIG_IEEE80211_SOFTMAC_DEBUG is not set | 535 | # CONFIG_MAC80211_DEBUG_MENU is not set |
| 536 | # CONFIG_WIMAX is not set | ||
| 401 | CONFIG_RFKILL=m | 537 | CONFIG_RFKILL=m |
| 538 | CONFIG_RFKILL_LEDS=y | ||
| 402 | # CONFIG_NET_9P is not set | 539 | # CONFIG_NET_9P is not set |
| 403 | 540 | ||
| 404 | # | 541 | # |
| @@ -408,9 +545,13 @@ CONFIG_RFKILL=m | |||
| 408 | # | 545 | # |
| 409 | # Generic Driver Options | 546 | # Generic Driver Options |
| 410 | # | 547 | # |
| 548 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
| 549 | # CONFIG_DEVTMPFS is not set | ||
| 411 | CONFIG_STANDALONE=y | 550 | CONFIG_STANDALONE=y |
| 412 | CONFIG_PREVENT_FIRMWARE_BUILD=y | 551 | CONFIG_PREVENT_FIRMWARE_BUILD=y |
| 413 | CONFIG_FW_LOADER=y | 552 | CONFIG_FW_LOADER=y |
| 553 | CONFIG_FIRMWARE_IN_KERNEL=y | ||
| 554 | CONFIG_EXTRA_FIRMWARE="" | ||
| 414 | # CONFIG_SYS_HYPERVISOR is not set | 555 | # CONFIG_SYS_HYPERVISOR is not set |
| 415 | CONFIG_CONNECTOR=m | 556 | CONFIG_CONNECTOR=m |
| 416 | # CONFIG_MTD is not set | 557 | # CONFIG_MTD is not set |
| @@ -423,14 +564,19 @@ CONFIG_BLK_DEV=y | |||
| 423 | # CONFIG_BLK_DEV_COW_COMMON is not set | 564 | # CONFIG_BLK_DEV_COW_COMMON is not set |
| 424 | CONFIG_BLK_DEV_LOOP=y | 565 | CONFIG_BLK_DEV_LOOP=y |
| 425 | CONFIG_BLK_DEV_CRYPTOLOOP=m | 566 | CONFIG_BLK_DEV_CRYPTOLOOP=m |
| 567 | # CONFIG_BLK_DEV_DRBD is not set | ||
| 426 | # CONFIG_BLK_DEV_NBD is not set | 568 | # CONFIG_BLK_DEV_NBD is not set |
| 569 | CONFIG_BLK_DEV_OSD=m | ||
| 427 | # CONFIG_BLK_DEV_SX8 is not set | 570 | # CONFIG_BLK_DEV_SX8 is not set |
| 428 | # CONFIG_BLK_DEV_RAM is not set | 571 | # CONFIG_BLK_DEV_RAM is not set |
| 429 | CONFIG_CDROM_PKTCDVD=m | 572 | CONFIG_CDROM_PKTCDVD=m |
| 430 | CONFIG_CDROM_PKTCDVD_BUFFERS=8 | 573 | CONFIG_CDROM_PKTCDVD_BUFFERS=8 |
| 431 | # CONFIG_CDROM_PKTCDVD_WCACHE is not set | 574 | # CONFIG_CDROM_PKTCDVD_WCACHE is not set |
| 432 | CONFIG_ATA_OVER_ETH=m | 575 | CONFIG_ATA_OVER_ETH=m |
| 576 | # CONFIG_BLK_DEV_HD is not set | ||
| 433 | # CONFIG_MISC_DEVICES is not set | 577 | # CONFIG_MISC_DEVICES is not set |
| 578 | CONFIG_EEPROM_93CX6=m | ||
| 579 | CONFIG_HAVE_IDE=y | ||
| 434 | # CONFIG_IDE is not set | 580 | # CONFIG_IDE is not set |
| 435 | 581 | ||
| 436 | # | 582 | # |
| @@ -453,10 +599,6 @@ CONFIG_BLK_DEV_SR=m | |||
| 453 | CONFIG_BLK_DEV_SR_VENDOR=y | 599 | CONFIG_BLK_DEV_SR_VENDOR=y |
| 454 | CONFIG_CHR_DEV_SG=m | 600 | CONFIG_CHR_DEV_SG=m |
| 455 | CONFIG_CHR_DEV_SCH=m | 601 | CONFIG_CHR_DEV_SCH=m |
| 456 | |||
| 457 | # | ||
| 458 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
| 459 | # | ||
| 460 | # CONFIG_SCSI_MULTI_LUN is not set | 602 | # CONFIG_SCSI_MULTI_LUN is not set |
| 461 | CONFIG_SCSI_CONSTANTS=y | 603 | CONFIG_SCSI_CONSTANTS=y |
| 462 | CONFIG_SCSI_LOGGING=y | 604 | CONFIG_SCSI_LOGGING=y |
| @@ -471,11 +613,18 @@ CONFIG_SCSI_FC_ATTRS=y | |||
| 471 | CONFIG_SCSI_ISCSI_ATTRS=m | 613 | CONFIG_SCSI_ISCSI_ATTRS=m |
| 472 | CONFIG_SCSI_SAS_ATTRS=m | 614 | CONFIG_SCSI_SAS_ATTRS=m |
| 473 | CONFIG_SCSI_SAS_LIBSAS=m | 615 | CONFIG_SCSI_SAS_LIBSAS=m |
| 616 | CONFIG_SCSI_SAS_HOST_SMP=y | ||
| 474 | # CONFIG_SCSI_SAS_LIBSAS_DEBUG is not set | 617 | # CONFIG_SCSI_SAS_LIBSAS_DEBUG is not set |
| 618 | # CONFIG_SCSI_SRP_ATTRS is not set | ||
| 475 | CONFIG_SCSI_LOWLEVEL=y | 619 | CONFIG_SCSI_LOWLEVEL=y |
| 476 | # CONFIG_ISCSI_TCP is not set | 620 | # CONFIG_ISCSI_TCP is not set |
| 621 | CONFIG_SCSI_CXGB3_ISCSI=m | ||
| 622 | CONFIG_SCSI_BNX2_ISCSI=m | ||
| 623 | CONFIG_BE2ISCSI=m | ||
| 477 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | 624 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set |
| 625 | CONFIG_SCSI_HPSA=m | ||
| 478 | # CONFIG_SCSI_3W_9XXX is not set | 626 | # CONFIG_SCSI_3W_9XXX is not set |
| 627 | CONFIG_SCSI_3W_SAS=m | ||
| 479 | # CONFIG_SCSI_ACARD is not set | 628 | # CONFIG_SCSI_ACARD is not set |
| 480 | # CONFIG_SCSI_AACRAID is not set | 629 | # CONFIG_SCSI_AACRAID is not set |
| 481 | # CONFIG_SCSI_AIC7XXX is not set | 630 | # CONFIG_SCSI_AIC7XXX is not set |
| @@ -483,11 +632,21 @@ CONFIG_SCSI_LOWLEVEL=y | |||
| 483 | # CONFIG_SCSI_AIC79XX is not set | 632 | # CONFIG_SCSI_AIC79XX is not set |
| 484 | CONFIG_SCSI_AIC94XX=m | 633 | CONFIG_SCSI_AIC94XX=m |
| 485 | # CONFIG_AIC94XX_DEBUG is not set | 634 | # CONFIG_AIC94XX_DEBUG is not set |
| 635 | CONFIG_SCSI_MVSAS=m | ||
| 636 | # CONFIG_SCSI_MVSAS_DEBUG is not set | ||
| 637 | CONFIG_SCSI_DPT_I2O=m | ||
| 638 | # CONFIG_SCSI_ADVANSYS is not set | ||
| 486 | # CONFIG_SCSI_ARCMSR is not set | 639 | # CONFIG_SCSI_ARCMSR is not set |
| 487 | # CONFIG_MEGARAID_NEWGEN is not set | 640 | # CONFIG_MEGARAID_NEWGEN is not set |
| 488 | # CONFIG_MEGARAID_LEGACY is not set | 641 | # CONFIG_MEGARAID_LEGACY is not set |
| 489 | # CONFIG_MEGARAID_SAS is not set | 642 | # CONFIG_MEGARAID_SAS is not set |
| 643 | CONFIG_SCSI_MPT2SAS=m | ||
| 644 | CONFIG_SCSI_MPT2SAS_MAX_SGE=128 | ||
| 645 | # CONFIG_SCSI_MPT2SAS_LOGGING is not set | ||
| 490 | # CONFIG_SCSI_HPTIOP is not set | 646 | # CONFIG_SCSI_HPTIOP is not set |
| 647 | CONFIG_LIBFC=m | ||
| 648 | # CONFIG_LIBFCOE is not set | ||
| 649 | # CONFIG_FCOE is not set | ||
| 491 | # CONFIG_SCSI_DMX3191D is not set | 650 | # CONFIG_SCSI_DMX3191D is not set |
| 492 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 651 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
| 493 | # CONFIG_SCSI_IPS is not set | 652 | # CONFIG_SCSI_IPS is not set |
| @@ -502,16 +661,31 @@ CONFIG_SCSI_QLOGIC_1280=y | |||
| 502 | # CONFIG_SCSI_DC395x is not set | 661 | # CONFIG_SCSI_DC395x is not set |
| 503 | # CONFIG_SCSI_DC390T is not set | 662 | # CONFIG_SCSI_DC390T is not set |
| 504 | # CONFIG_SCSI_DEBUG is not set | 663 | # CONFIG_SCSI_DEBUG is not set |
| 664 | CONFIG_SCSI_PMCRAID=m | ||
| 665 | # CONFIG_SCSI_PM8001 is not set | ||
| 505 | # CONFIG_SCSI_SRP is not set | 666 | # CONFIG_SCSI_SRP is not set |
| 667 | CONFIG_SCSI_BFA_FC=m | ||
| 668 | CONFIG_SCSI_DH=m | ||
| 669 | CONFIG_SCSI_DH_RDAC=m | ||
| 670 | CONFIG_SCSI_DH_HP_SW=m | ||
| 671 | CONFIG_SCSI_DH_EMC=m | ||
| 672 | CONFIG_SCSI_DH_ALUA=m | ||
| 673 | CONFIG_SCSI_OSD_INITIATOR=m | ||
| 674 | CONFIG_SCSI_OSD_ULD=m | ||
| 675 | CONFIG_SCSI_OSD_DPRINT_SENSE=1 | ||
| 676 | # CONFIG_SCSI_OSD_DEBUG is not set | ||
| 506 | # CONFIG_ATA is not set | 677 | # CONFIG_ATA is not set |
| 507 | CONFIG_MD=y | 678 | CONFIG_MD=y |
| 508 | CONFIG_BLK_DEV_MD=y | 679 | CONFIG_BLK_DEV_MD=y |
| 680 | CONFIG_MD_AUTODETECT=y | ||
| 509 | CONFIG_MD_LINEAR=m | 681 | CONFIG_MD_LINEAR=m |
| 510 | CONFIG_MD_RAID0=y | 682 | CONFIG_MD_RAID0=y |
| 511 | CONFIG_MD_RAID1=y | 683 | CONFIG_MD_RAID1=y |
| 512 | CONFIG_MD_RAID10=m | 684 | CONFIG_MD_RAID10=m |
| 513 | CONFIG_MD_RAID456=y | 685 | CONFIG_MD_RAID456=y |
| 514 | CONFIG_MD_RAID5_RESHAPE=y | 686 | # CONFIG_MULTICORE_RAID456 is not set |
| 687 | CONFIG_MD_RAID6_PQ=y | ||
| 688 | # CONFIG_ASYNC_RAID6_TEST is not set | ||
| 515 | CONFIG_MD_MULTIPATH=m | 689 | CONFIG_MD_MULTIPATH=m |
| 516 | CONFIG_MD_FAULTY=m | 690 | CONFIG_MD_FAULTY=m |
| 517 | CONFIG_BLK_DEV_DM=m | 691 | CONFIG_BLK_DEV_DM=m |
| @@ -519,36 +693,39 @@ CONFIG_BLK_DEV_DM=m | |||
| 519 | CONFIG_DM_CRYPT=m | 693 | CONFIG_DM_CRYPT=m |
| 520 | CONFIG_DM_SNAPSHOT=m | 694 | CONFIG_DM_SNAPSHOT=m |
| 521 | CONFIG_DM_MIRROR=m | 695 | CONFIG_DM_MIRROR=m |
| 696 | CONFIG_DM_LOG_USERSPACE=m | ||
| 522 | CONFIG_DM_ZERO=m | 697 | CONFIG_DM_ZERO=m |
| 523 | CONFIG_DM_MULTIPATH=m | 698 | CONFIG_DM_MULTIPATH=m |
| 524 | CONFIG_DM_MULTIPATH_EMC=m | 699 | CONFIG_DM_MULTIPATH_QL=m |
| 525 | CONFIG_DM_MULTIPATH_RDAC=m | 700 | CONFIG_DM_MULTIPATH_ST=m |
| 526 | # CONFIG_DM_DELAY is not set | 701 | # CONFIG_DM_DELAY is not set |
| 702 | CONFIG_DM_UEVENT=y | ||
| 703 | # CONFIG_FUSION is not set | ||
| 527 | 704 | ||
| 528 | # | 705 | # |
| 529 | # Fusion MPT device support | 706 | # IEEE 1394 (FireWire) support |
| 530 | # | 707 | # |
| 531 | # CONFIG_FUSION is not set | ||
| 532 | # CONFIG_FUSION_SPI is not set | ||
| 533 | # CONFIG_FUSION_FC is not set | ||
| 534 | # CONFIG_FUSION_SAS is not set | ||
| 535 | 708 | ||
| 536 | # | 709 | # |
| 537 | # IEEE 1394 (FireWire) support | 710 | # You can enable one or both FireWire driver stacks. |
| 711 | # | ||
| 712 | |||
| 713 | # | ||
| 714 | # The newer stack is recommended. | ||
| 538 | # | 715 | # |
| 539 | # CONFIG_FIREWIRE is not set | 716 | # CONFIG_FIREWIRE is not set |
| 540 | # CONFIG_IEEE1394 is not set | 717 | # CONFIG_IEEE1394 is not set |
| 541 | # CONFIG_I2O is not set | 718 | # CONFIG_I2O is not set |
| 542 | CONFIG_NETDEVICES=y | 719 | CONFIG_NETDEVICES=y |
| 543 | CONFIG_NETDEVICES_MULTIQUEUE=y | ||
| 544 | CONFIG_IFB=m | 720 | CONFIG_IFB=m |
| 545 | # CONFIG_DUMMY is not set | 721 | # CONFIG_DUMMY is not set |
| 546 | # CONFIG_BONDING is not set | 722 | # CONFIG_BONDING is not set |
| 547 | CONFIG_MACVLAN=m | 723 | CONFIG_MACVLAN=m |
| 548 | # CONFIG_EQUALIZER is not set | 724 | # CONFIG_EQUALIZER is not set |
| 549 | # CONFIG_TUN is not set | 725 | # CONFIG_TUN is not set |
| 726 | CONFIG_VETH=m | ||
| 550 | # CONFIG_ARCNET is not set | 727 | # CONFIG_ARCNET is not set |
| 551 | CONFIG_PHYLIB=m | 728 | CONFIG_PHYLIB=y |
| 552 | 729 | ||
| 553 | # | 730 | # |
| 554 | # MII PHY device drivers | 731 | # MII PHY device drivers |
| @@ -562,23 +739,51 @@ CONFIG_VITESSE_PHY=m | |||
| 562 | CONFIG_SMSC_PHY=m | 739 | CONFIG_SMSC_PHY=m |
| 563 | # CONFIG_BROADCOM_PHY is not set | 740 | # CONFIG_BROADCOM_PHY is not set |
| 564 | CONFIG_ICPLUS_PHY=m | 741 | CONFIG_ICPLUS_PHY=m |
| 742 | CONFIG_REALTEK_PHY=m | ||
| 743 | CONFIG_NATIONAL_PHY=m | ||
| 744 | CONFIG_STE10XP=m | ||
| 745 | CONFIG_LSI_ET1011C_PHY=m | ||
| 565 | # CONFIG_FIXED_PHY is not set | 746 | # CONFIG_FIXED_PHY is not set |
| 747 | CONFIG_MDIO_BITBANG=m | ||
| 566 | CONFIG_NET_ETHERNET=y | 748 | CONFIG_NET_ETHERNET=y |
| 567 | CONFIG_MII=y | 749 | CONFIG_MII=y |
| 568 | CONFIG_AX88796=m | 750 | CONFIG_AX88796=m |
| 751 | CONFIG_AX88796_93CX6=y | ||
| 569 | CONFIG_SGI_IOC3_ETH=y | 752 | CONFIG_SGI_IOC3_ETH=y |
| 570 | # CONFIG_HAPPYMEAL is not set | 753 | # CONFIG_HAPPYMEAL is not set |
| 571 | # CONFIG_SUNGEM is not set | 754 | # CONFIG_SUNGEM is not set |
| 572 | # CONFIG_CASSINI is not set | 755 | # CONFIG_CASSINI is not set |
| 573 | # CONFIG_NET_VENDOR_3COM is not set | 756 | # CONFIG_NET_VENDOR_3COM is not set |
| 757 | CONFIG_SMC91X=m | ||
| 574 | # CONFIG_DM9000 is not set | 758 | # CONFIG_DM9000 is not set |
| 759 | CONFIG_ETHOC=m | ||
| 760 | CONFIG_SMSC911X=m | ||
| 761 | CONFIG_DNET=m | ||
| 575 | # CONFIG_NET_TULIP is not set | 762 | # CONFIG_NET_TULIP is not set |
| 576 | # CONFIG_HP100 is not set | 763 | # CONFIG_HP100 is not set |
| 764 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
| 765 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
| 766 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
| 767 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
| 768 | # CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set | ||
| 769 | # CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set | ||
| 770 | # CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set | ||
| 577 | # CONFIG_NET_PCI is not set | 771 | # CONFIG_NET_PCI is not set |
| 772 | CONFIG_B44=m | ||
| 773 | CONFIG_B44_PCI_AUTOSELECT=y | ||
| 774 | CONFIG_B44_PCICORE_AUTOSELECT=y | ||
| 775 | CONFIG_B44_PCI=y | ||
| 776 | CONFIG_KS8842=m | ||
| 777 | CONFIG_KS8851_MLL=m | ||
| 778 | CONFIG_ATL2=m | ||
| 578 | CONFIG_NETDEV_1000=y | 779 | CONFIG_NETDEV_1000=y |
| 579 | # CONFIG_ACENIC is not set | 780 | # CONFIG_ACENIC is not set |
| 580 | # CONFIG_DL2K is not set | 781 | # CONFIG_DL2K is not set |
| 581 | # CONFIG_E1000 is not set | 782 | # CONFIG_E1000 is not set |
| 783 | CONFIG_E1000E=m | ||
| 784 | CONFIG_IP1000=m | ||
| 785 | CONFIG_IGB=m | ||
| 786 | CONFIG_IGBVF=m | ||
| 582 | # CONFIG_NS83820 is not set | 787 | # CONFIG_NS83820 is not set |
| 583 | # CONFIG_HAMACHI is not set | 788 | # CONFIG_HAMACHI is not set |
| 584 | # CONFIG_YELLOWFIN is not set | 789 | # CONFIG_YELLOWFIN is not set |
| @@ -588,24 +793,75 @@ CONFIG_NETDEV_1000=y | |||
| 588 | # CONFIG_SKY2 is not set | 793 | # CONFIG_SKY2 is not set |
| 589 | CONFIG_VIA_VELOCITY=m | 794 | CONFIG_VIA_VELOCITY=m |
| 590 | # CONFIG_TIGON3 is not set | 795 | # CONFIG_TIGON3 is not set |
| 591 | # CONFIG_BNX2 is not set | 796 | CONFIG_BNX2=m |
| 797 | CONFIG_CNIC=m | ||
| 592 | CONFIG_QLA3XXX=m | 798 | CONFIG_QLA3XXX=m |
| 593 | # CONFIG_ATL1 is not set | 799 | # CONFIG_ATL1 is not set |
| 800 | CONFIG_ATL1E=m | ||
| 801 | CONFIG_ATL1C=m | ||
| 802 | CONFIG_JME=m | ||
| 594 | CONFIG_NETDEV_10000=y | 803 | CONFIG_NETDEV_10000=y |
| 804 | CONFIG_MDIO=m | ||
| 595 | # CONFIG_CHELSIO_T1 is not set | 805 | # CONFIG_CHELSIO_T1 is not set |
| 806 | CONFIG_CHELSIO_T3_DEPENDS=y | ||
| 596 | CONFIG_CHELSIO_T3=m | 807 | CONFIG_CHELSIO_T3=m |
| 808 | CONFIG_ENIC=m | ||
| 809 | CONFIG_IXGBE=m | ||
| 597 | # CONFIG_IXGB is not set | 810 | # CONFIG_IXGB is not set |
| 598 | # CONFIG_S2IO is not set | 811 | # CONFIG_S2IO is not set |
| 812 | CONFIG_VXGE=m | ||
| 813 | # CONFIG_VXGE_DEBUG_TRACE_ALL is not set | ||
| 599 | # CONFIG_MYRI10GE is not set | 814 | # CONFIG_MYRI10GE is not set |
| 600 | CONFIG_NETXEN_NIC=m | 815 | CONFIG_NETXEN_NIC=m |
| 601 | # CONFIG_MLX4_CORE is not set | 816 | CONFIG_NIU=m |
| 817 | CONFIG_MLX4_EN=m | ||
| 818 | CONFIG_MLX4_CORE=m | ||
| 819 | # CONFIG_MLX4_DEBUG is not set | ||
| 820 | CONFIG_TEHUTI=m | ||
| 821 | CONFIG_BNX2X=m | ||
| 822 | CONFIG_QLGE=m | ||
| 823 | CONFIG_SFC=m | ||
| 824 | CONFIG_BE2NET=m | ||
| 602 | # CONFIG_TR is not set | 825 | # CONFIG_TR is not set |
| 603 | 826 | CONFIG_WLAN=y | |
| 604 | # | 827 | CONFIG_LIBERTAS_THINFIRM=m |
| 605 | # Wireless LAN | 828 | CONFIG_ATMEL=m |
| 606 | # | 829 | CONFIG_PCI_ATMEL=m |
| 607 | # CONFIG_WLAN_PRE80211 is not set | 830 | CONFIG_PRISM54=m |
| 608 | CONFIG_WLAN_80211=y | 831 | CONFIG_RTL8180=m |
| 832 | CONFIG_ADM8211=m | ||
| 833 | # CONFIG_MAC80211_HWSIM is not set | ||
| 834 | CONFIG_MWL8K=m | ||
| 835 | CONFIG_ATH_COMMON=m | ||
| 836 | # CONFIG_ATH_DEBUG is not set | ||
| 837 | CONFIG_ATH5K=m | ||
| 838 | # CONFIG_ATH5K_DEBUG is not set | ||
| 839 | CONFIG_ATH9K_HW=m | ||
| 840 | CONFIG_ATH9K_COMMON=m | ||
| 841 | CONFIG_ATH9K=m | ||
| 842 | CONFIG_B43=m | ||
| 843 | CONFIG_B43_PCI_AUTOSELECT=y | ||
| 844 | CONFIG_B43_PCICORE_AUTOSELECT=y | ||
| 845 | CONFIG_B43_PHY_LP=y | ||
| 846 | CONFIG_B43_LEDS=y | ||
| 847 | CONFIG_B43_HWRNG=y | ||
| 848 | # CONFIG_B43_DEBUG is not set | ||
| 849 | CONFIG_B43LEGACY=m | ||
| 850 | CONFIG_B43LEGACY_PCI_AUTOSELECT=y | ||
| 851 | CONFIG_B43LEGACY_PCICORE_AUTOSELECT=y | ||
| 852 | CONFIG_B43LEGACY_LEDS=y | ||
| 853 | CONFIG_B43LEGACY_HWRNG=y | ||
| 854 | # CONFIG_B43LEGACY_DEBUG is not set | ||
| 855 | CONFIG_B43LEGACY_DMA=y | ||
| 856 | CONFIG_B43LEGACY_PIO=y | ||
| 857 | CONFIG_B43LEGACY_DMA_AND_PIO_MODE=y | ||
| 858 | # CONFIG_B43LEGACY_DMA_MODE is not set | ||
| 859 | # CONFIG_B43LEGACY_PIO_MODE is not set | ||
| 860 | CONFIG_HOSTAP=m | ||
| 861 | CONFIG_HOSTAP_FIRMWARE=y | ||
| 862 | CONFIG_HOSTAP_FIRMWARE_NVRAM=y | ||
| 863 | CONFIG_HOSTAP_PLX=m | ||
| 864 | CONFIG_HOSTAP_PCI=m | ||
| 609 | CONFIG_IPW2100=m | 865 | CONFIG_IPW2100=m |
| 610 | CONFIG_IPW2100_MONITOR=y | 866 | CONFIG_IPW2100_MONITOR=y |
| 611 | CONFIG_IPW2100_DEBUG=y | 867 | CONFIG_IPW2100_DEBUG=y |
| @@ -615,38 +871,57 @@ CONFIG_IPW2200_RADIOTAP=y | |||
| 615 | CONFIG_IPW2200_PROMISCUOUS=y | 871 | CONFIG_IPW2200_PROMISCUOUS=y |
| 616 | CONFIG_IPW2200_QOS=y | 872 | CONFIG_IPW2200_QOS=y |
| 617 | CONFIG_IPW2200_DEBUG=y | 873 | CONFIG_IPW2200_DEBUG=y |
| 874 | CONFIG_LIBIPW=m | ||
| 875 | # CONFIG_LIBIPW_DEBUG is not set | ||
| 876 | CONFIG_IWLWIFI=m | ||
| 877 | CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT=y | ||
| 878 | # CONFIG_IWLWIFI_DEBUG is not set | ||
| 879 | CONFIG_IWLAGN=m | ||
| 880 | CONFIG_IWL4965=y | ||
| 881 | CONFIG_IWL5000=y | ||
| 882 | CONFIG_IWL3945=m | ||
| 883 | CONFIG_IWL3945_SPECTRUM_MEASUREMENT=y | ||
| 618 | CONFIG_LIBERTAS=m | 884 | CONFIG_LIBERTAS=m |
| 619 | # CONFIG_LIBERTAS_DEBUG is not set | 885 | # CONFIG_LIBERTAS_DEBUG is not set |
| 620 | CONFIG_HERMES=m | 886 | CONFIG_HERMES=m |
| 887 | # CONFIG_HERMES_CACHE_FW_ON_INIT is not set | ||
| 621 | CONFIG_PLX_HERMES=m | 888 | CONFIG_PLX_HERMES=m |
| 622 | CONFIG_TMD_HERMES=m | 889 | CONFIG_TMD_HERMES=m |
| 623 | CONFIG_NORTEL_HERMES=m | 890 | CONFIG_NORTEL_HERMES=m |
| 624 | CONFIG_PCI_HERMES=m | 891 | CONFIG_PCI_HERMES=m |
| 625 | CONFIG_ATMEL=m | 892 | CONFIG_P54_COMMON=m |
| 626 | CONFIG_PCI_ATMEL=m | 893 | CONFIG_P54_PCI=m |
| 627 | CONFIG_PRISM54=m | 894 | CONFIG_P54_LEDS=y |
| 628 | CONFIG_HOSTAP=m | 895 | CONFIG_RT2X00=m |
| 629 | CONFIG_HOSTAP_FIRMWARE=y | 896 | CONFIG_RT2400PCI=m |
| 630 | CONFIG_HOSTAP_FIRMWARE_NVRAM=y | 897 | CONFIG_RT2500PCI=m |
| 631 | CONFIG_HOSTAP_PLX=m | 898 | CONFIG_RT61PCI=m |
| 632 | CONFIG_HOSTAP_PCI=m | 899 | CONFIG_RT2800PCI_PCI=m |
| 633 | CONFIG_BCM43XX=m | 900 | CONFIG_RT2800PCI=m |
| 634 | CONFIG_BCM43XX_DEBUG=y | 901 | CONFIG_RT2800_LIB=m |
| 635 | CONFIG_BCM43XX_DMA=y | 902 | CONFIG_RT2X00_LIB_PCI=m |
| 636 | CONFIG_BCM43XX_PIO=y | 903 | CONFIG_RT2X00_LIB=m |
| 637 | CONFIG_BCM43XX_DMA_AND_PIO_MODE=y | 904 | CONFIG_RT2X00_LIB_HT=y |
| 638 | # CONFIG_BCM43XX_DMA_MODE is not set | 905 | CONFIG_RT2X00_LIB_FIRMWARE=y |
| 639 | # CONFIG_BCM43XX_PIO_MODE is not set | 906 | CONFIG_RT2X00_LIB_CRYPTO=y |
| 907 | CONFIG_RT2X00_LIB_LEDS=y | ||
| 908 | # CONFIG_RT2X00_DEBUG is not set | ||
| 909 | CONFIG_WL12XX=m | ||
| 910 | CONFIG_WL1251=m | ||
| 911 | |||
| 912 | # | ||
| 913 | # Enable WiMAX (Networking options) to see the WiMAX drivers | ||
| 914 | # | ||
| 640 | # CONFIG_WAN is not set | 915 | # CONFIG_WAN is not set |
| 641 | # CONFIG_FDDI is not set | 916 | # CONFIG_FDDI is not set |
| 642 | # CONFIG_HIPPI is not set | 917 | # CONFIG_HIPPI is not set |
| 643 | # CONFIG_PPP is not set | 918 | # CONFIG_PPP is not set |
| 644 | # CONFIG_SLIP is not set | 919 | # CONFIG_SLIP is not set |
| 645 | # CONFIG_NET_FC is not set | 920 | # CONFIG_NET_FC is not set |
| 646 | # CONFIG_SHAPER is not set | ||
| 647 | # CONFIG_NETCONSOLE is not set | 921 | # CONFIG_NETCONSOLE is not set |
| 648 | # CONFIG_NETPOLL is not set | 922 | # CONFIG_NETPOLL is not set |
| 649 | # CONFIG_NET_POLL_CONTROLLER is not set | 923 | # CONFIG_NET_POLL_CONTROLLER is not set |
| 924 | # CONFIG_VMXNET3 is not set | ||
| 650 | # CONFIG_ISDN is not set | 925 | # CONFIG_ISDN is not set |
| 651 | # CONFIG_PHONE is not set | 926 | # CONFIG_PHONE is not set |
| 652 | 927 | ||
| @@ -664,13 +939,16 @@ CONFIG_SERIO_SERPORT=y | |||
| 664 | # CONFIG_SERIO_PCIPS2 is not set | 939 | # CONFIG_SERIO_PCIPS2 is not set |
| 665 | CONFIG_SERIO_LIBPS2=m | 940 | CONFIG_SERIO_LIBPS2=m |
| 666 | CONFIG_SERIO_RAW=m | 941 | CONFIG_SERIO_RAW=m |
| 942 | CONFIG_SERIO_ALTERA_PS2=m | ||
| 667 | # CONFIG_GAMEPORT is not set | 943 | # CONFIG_GAMEPORT is not set |
| 668 | 944 | ||
| 669 | # | 945 | # |
| 670 | # Character devices | 946 | # Character devices |
| 671 | # | 947 | # |
| 672 | # CONFIG_VT is not set | 948 | # CONFIG_VT is not set |
| 949 | CONFIG_DEVKMEM=y | ||
| 673 | # CONFIG_SERIAL_NONSTANDARD is not set | 950 | # CONFIG_SERIAL_NONSTANDARD is not set |
| 951 | CONFIG_NOZOMI=m | ||
| 674 | 952 | ||
| 675 | # | 953 | # |
| 676 | # Serial drivers | 954 | # Serial drivers |
| @@ -693,95 +971,258 @@ CONFIG_SERIAL_CORE=y | |||
| 693 | CONFIG_SERIAL_CORE_CONSOLE=y | 971 | CONFIG_SERIAL_CORE_CONSOLE=y |
| 694 | # CONFIG_SERIAL_JSM is not set | 972 | # CONFIG_SERIAL_JSM is not set |
| 695 | CONFIG_UNIX98_PTYS=y | 973 | CONFIG_UNIX98_PTYS=y |
| 974 | CONFIG_DEVPTS_MULTIPLE_INSTANCES=y | ||
| 696 | CONFIG_LEGACY_PTYS=y | 975 | CONFIG_LEGACY_PTYS=y |
| 697 | CONFIG_LEGACY_PTY_COUNT=256 | 976 | CONFIG_LEGACY_PTY_COUNT=256 |
| 698 | # CONFIG_IPMI_HANDLER is not set | 977 | # CONFIG_IPMI_HANDLER is not set |
| 699 | # CONFIG_WATCHDOG is not set | ||
| 700 | CONFIG_HW_RANDOM=m | 978 | CONFIG_HW_RANDOM=m |
| 701 | # CONFIG_RTC is not set | 979 | CONFIG_HW_RANDOM_TIMERIOMEM=m |
| 702 | # CONFIG_R3964 is not set | 980 | # CONFIG_R3964 is not set |
| 703 | # CONFIG_APPLICOM is not set | 981 | # CONFIG_APPLICOM is not set |
| 704 | # CONFIG_DRM is not set | ||
| 705 | # CONFIG_RAW_DRIVER is not set | 982 | # CONFIG_RAW_DRIVER is not set |
| 706 | # CONFIG_TCG_TPM is not set | 983 | # CONFIG_TCG_TPM is not set |
| 707 | CONFIG_DEVPORT=y | 984 | CONFIG_DEVPORT=y |
| 708 | # CONFIG_I2C is not set | 985 | CONFIG_I2C=m |
| 986 | CONFIG_I2C_BOARDINFO=y | ||
| 987 | CONFIG_I2C_COMPAT=y | ||
| 988 | CONFIG_I2C_CHARDEV=m | ||
| 989 | CONFIG_I2C_HELPER_AUTO=y | ||
| 990 | CONFIG_I2C_ALGOBIT=m | ||
| 991 | CONFIG_I2C_ALGOPCA=m | ||
| 992 | |||
| 993 | # | ||
| 994 | # I2C Hardware Bus support | ||
| 995 | # | ||
| 996 | |||
| 997 | # | ||
| 998 | # PC SMBus host controller drivers | ||
| 999 | # | ||
| 1000 | CONFIG_I2C_ALI1535=m | ||
| 1001 | CONFIG_I2C_ALI1563=m | ||
| 1002 | CONFIG_I2C_ALI15X3=m | ||
| 1003 | CONFIG_I2C_AMD756=m | ||
| 1004 | CONFIG_I2C_AMD8111=m | ||
| 1005 | CONFIG_I2C_I801=m | ||
| 1006 | CONFIG_I2C_ISCH=m | ||
| 1007 | CONFIG_I2C_PIIX4=m | ||
| 1008 | CONFIG_I2C_NFORCE2=m | ||
| 1009 | CONFIG_I2C_SIS5595=m | ||
| 1010 | CONFIG_I2C_SIS630=m | ||
| 1011 | CONFIG_I2C_SIS96X=m | ||
| 1012 | CONFIG_I2C_VIA=m | ||
| 1013 | CONFIG_I2C_VIAPRO=m | ||
| 709 | 1014 | ||
| 710 | # | 1015 | # |
| 711 | # SPI support | 1016 | # I2C system bus drivers (mostly embedded / system-on-chip) |
| 712 | # | 1017 | # |
| 1018 | CONFIG_I2C_OCORES=m | ||
| 1019 | CONFIG_I2C_SIMTEC=m | ||
| 1020 | |||
| 1021 | # | ||
| 1022 | # External I2C/SMBus adapter drivers | ||
| 1023 | # | ||
| 1024 | CONFIG_I2C_PARPORT_LIGHT=m | ||
| 1025 | CONFIG_I2C_TAOS_EVM=m | ||
| 1026 | |||
| 1027 | # | ||
| 1028 | # Other I2C/SMBus bus drivers | ||
| 1029 | # | ||
| 1030 | CONFIG_I2C_PCA_PLATFORM=m | ||
| 1031 | CONFIG_I2C_STUB=m | ||
| 1032 | |||
| 1033 | # | ||
| 1034 | # Miscellaneous I2C Chip support | ||
| 1035 | # | ||
| 1036 | CONFIG_SENSORS_TSL2550=m | ||
| 1037 | # CONFIG_I2C_DEBUG_CORE is not set | ||
| 1038 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
| 1039 | # CONFIG_I2C_DEBUG_BUS is not set | ||
| 1040 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
| 713 | # CONFIG_SPI is not set | 1041 | # CONFIG_SPI is not set |
| 714 | # CONFIG_SPI_MASTER is not set | 1042 | |
| 1043 | # | ||
| 1044 | # PPS support | ||
| 1045 | # | ||
| 1046 | CONFIG_PPS=m | ||
| 1047 | # CONFIG_PPS_DEBUG is not set | ||
| 715 | # CONFIG_W1 is not set | 1048 | # CONFIG_W1 is not set |
| 716 | # CONFIG_POWER_SUPPLY is not set | 1049 | # CONFIG_POWER_SUPPLY is not set |
| 717 | # CONFIG_HWMON is not set | 1050 | # CONFIG_HWMON is not set |
| 1051 | CONFIG_THERMAL=m | ||
| 1052 | # CONFIG_WATCHDOG is not set | ||
| 1053 | CONFIG_SSB_POSSIBLE=y | ||
| 718 | 1054 | ||
| 719 | # | 1055 | # |
| 720 | # Multifunction device drivers | 1056 | # Sonics Silicon Backplane |
| 721 | # | 1057 | # |
| 722 | # CONFIG_MFD_SM501 is not set | 1058 | CONFIG_SSB=m |
| 1059 | CONFIG_SSB_SPROM=y | ||
| 1060 | CONFIG_SSB_PCIHOST_POSSIBLE=y | ||
| 1061 | CONFIG_SSB_PCIHOST=y | ||
| 1062 | CONFIG_SSB_B43_PCI_BRIDGE=y | ||
| 1063 | # CONFIG_SSB_SILENT is not set | ||
| 1064 | # CONFIG_SSB_DEBUG is not set | ||
| 1065 | CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y | ||
| 1066 | CONFIG_SSB_DRIVER_PCICORE=y | ||
| 1067 | # CONFIG_SSB_DRIVER_MIPS is not set | ||
| 723 | 1068 | ||
| 724 | # | 1069 | # |
| 725 | # Multimedia devices | 1070 | # Multifunction device drivers |
| 726 | # | 1071 | # |
| 727 | # CONFIG_VIDEO_DEV is not set | 1072 | # CONFIG_MFD_CORE is not set |
| 728 | # CONFIG_DVB_CORE is not set | 1073 | # CONFIG_MFD_SM501 is not set |
| 729 | # CONFIG_DAB is not set | 1074 | # CONFIG_HTC_PASIC3 is not set |
| 1075 | # CONFIG_MFD_TMIO is not set | ||
| 1076 | # CONFIG_MFD_WM8400 is not set | ||
| 1077 | CONFIG_MFD_WM8350=m | ||
| 1078 | CONFIG_MFD_WM8350_I2C=m | ||
| 1079 | CONFIG_MFD_PCF50633=m | ||
| 1080 | CONFIG_PCF50633_ADC=m | ||
| 1081 | CONFIG_PCF50633_GPIO=m | ||
| 1082 | CONFIG_AB3100_CORE=m | ||
| 1083 | CONFIG_AB3100_OTP=m | ||
| 1084 | # CONFIG_REGULATOR is not set | ||
| 1085 | # CONFIG_MEDIA_SUPPORT is not set | ||
| 730 | 1086 | ||
| 731 | # | 1087 | # |
| 732 | # Graphics support | 1088 | # Graphics support |
| 733 | # | 1089 | # |
| 734 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | 1090 | # CONFIG_VGA_ARB is not set |
| 735 | 1091 | # CONFIG_DRM is not set | |
| 736 | # | ||
| 737 | # Display device support | ||
| 738 | # | ||
| 739 | # CONFIG_DISPLAY_SUPPORT is not set | ||
| 740 | # CONFIG_VGASTATE is not set | 1092 | # CONFIG_VGASTATE is not set |
| 741 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | 1093 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set |
| 742 | # CONFIG_FB is not set | 1094 | # CONFIG_FB is not set |
| 1095 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
| 743 | 1096 | ||
| 744 | # | 1097 | # |
| 745 | # Sound | 1098 | # Display device support |
| 746 | # | 1099 | # |
| 1100 | # CONFIG_DISPLAY_SUPPORT is not set | ||
| 747 | # CONFIG_SOUND is not set | 1101 | # CONFIG_SOUND is not set |
| 748 | CONFIG_USB_SUPPORT=y | 1102 | CONFIG_USB_SUPPORT=y |
| 749 | CONFIG_USB_ARCH_HAS_HCD=y | 1103 | CONFIG_USB_ARCH_HAS_HCD=y |
| 750 | CONFIG_USB_ARCH_HAS_OHCI=y | 1104 | CONFIG_USB_ARCH_HAS_OHCI=y |
| 751 | CONFIG_USB_ARCH_HAS_EHCI=y | 1105 | CONFIG_USB_ARCH_HAS_EHCI=y |
| 752 | # CONFIG_USB is not set | 1106 | # CONFIG_USB is not set |
| 1107 | # CONFIG_USB_OTG_WHITELIST is not set | ||
| 1108 | # CONFIG_USB_OTG_BLACKLIST_HUB is not set | ||
| 753 | 1109 | ||
| 754 | # | 1110 | # |
| 755 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | 1111 | # Enable Host or Gadget support to see Inventra options |
| 756 | # | 1112 | # |
| 757 | 1113 | ||
| 758 | # | 1114 | # |
| 759 | # USB Gadget Support | 1115 | # NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may |
| 760 | # | 1116 | # |
| 761 | # CONFIG_USB_GADGET is not set | 1117 | # CONFIG_USB_GADGET is not set |
| 1118 | |||
| 1119 | # | ||
| 1120 | # OTG and related infrastructure | ||
| 1121 | # | ||
| 1122 | # CONFIG_UWB is not set | ||
| 762 | # CONFIG_MMC is not set | 1123 | # CONFIG_MMC is not set |
| 763 | # CONFIG_NEW_LEDS is not set | 1124 | # CONFIG_MEMSTICK is not set |
| 764 | # CONFIG_INFINIBAND is not set | 1125 | CONFIG_NEW_LEDS=y |
| 765 | # CONFIG_RTC_CLASS is not set | 1126 | CONFIG_LEDS_CLASS=m |
| 1127 | |||
| 1128 | # | ||
| 1129 | # LED drivers | ||
| 1130 | # | ||
| 1131 | CONFIG_LEDS_LP3944=m | ||
| 1132 | CONFIG_LEDS_PCA955X=m | ||
| 1133 | CONFIG_LEDS_WM8350=m | ||
| 1134 | CONFIG_LEDS_BD2802=m | ||
| 1135 | |||
| 1136 | # | ||
| 1137 | # LED Triggers | ||
| 1138 | # | ||
| 1139 | CONFIG_LEDS_TRIGGERS=y | ||
| 1140 | CONFIG_LEDS_TRIGGER_TIMER=m | ||
| 1141 | CONFIG_LEDS_TRIGGER_HEARTBEAT=m | ||
| 1142 | CONFIG_LEDS_TRIGGER_BACKLIGHT=m | ||
| 1143 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=m | ||
| 766 | 1144 | ||
| 767 | # | 1145 | # |
| 768 | # DMA Engine support | 1146 | # iptables trigger is under Netfilter config (LED target) |
| 769 | # | 1147 | # |
| 770 | # CONFIG_DMA_ENGINE is not set | 1148 | # CONFIG_ACCESSIBILITY is not set |
| 1149 | # CONFIG_INFINIBAND is not set | ||
| 1150 | CONFIG_RTC_LIB=y | ||
| 1151 | CONFIG_RTC_CLASS=y | ||
| 1152 | CONFIG_RTC_HCTOSYS=y | ||
| 1153 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
| 1154 | # CONFIG_RTC_DEBUG is not set | ||
| 771 | 1155 | ||
| 772 | # | 1156 | # |
| 773 | # DMA Clients | 1157 | # RTC interfaces |
| 774 | # | 1158 | # |
| 1159 | CONFIG_RTC_INTF_SYSFS=y | ||
| 1160 | CONFIG_RTC_INTF_PROC=y | ||
| 1161 | CONFIG_RTC_INTF_DEV=y | ||
| 1162 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
| 1163 | # CONFIG_RTC_DRV_TEST is not set | ||
| 775 | 1164 | ||
| 776 | # | 1165 | # |
| 777 | # DMA Devices | 1166 | # I2C RTC drivers |
| 1167 | # | ||
| 1168 | # CONFIG_RTC_DRV_DS1307 is not set | ||
| 1169 | # CONFIG_RTC_DRV_DS1374 is not set | ||
| 1170 | # CONFIG_RTC_DRV_DS1672 is not set | ||
| 1171 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
| 1172 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
| 1173 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
| 1174 | # CONFIG_RTC_DRV_X1205 is not set | ||
| 1175 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
| 1176 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
| 1177 | # CONFIG_RTC_DRV_M41T80 is not set | ||
| 1178 | # CONFIG_RTC_DRV_BQ32K is not set | ||
| 1179 | # CONFIG_RTC_DRV_S35390A is not set | ||
| 1180 | # CONFIG_RTC_DRV_FM3130 is not set | ||
| 1181 | # CONFIG_RTC_DRV_RX8581 is not set | ||
| 1182 | # CONFIG_RTC_DRV_RX8025 is not set | ||
| 1183 | |||
| 1184 | # | ||
| 1185 | # SPI RTC drivers | ||
| 1186 | # | ||
| 1187 | |||
| 778 | # | 1188 | # |
| 1189 | # Platform RTC drivers | ||
| 1190 | # | ||
| 1191 | # CONFIG_RTC_DRV_CMOS is not set | ||
| 1192 | # CONFIG_RTC_DRV_DS1286 is not set | ||
| 1193 | # CONFIG_RTC_DRV_DS1511 is not set | ||
| 1194 | # CONFIG_RTC_DRV_DS1553 is not set | ||
| 1195 | # CONFIG_RTC_DRV_DS1742 is not set | ||
| 1196 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
| 1197 | # CONFIG_RTC_DRV_M48T86 is not set | ||
| 1198 | CONFIG_RTC_DRV_M48T35=y | ||
| 1199 | # CONFIG_RTC_DRV_M48T59 is not set | ||
| 1200 | # CONFIG_RTC_DRV_MSM6242 is not set | ||
| 1201 | # CONFIG_RTC_DRV_BQ4802 is not set | ||
| 1202 | # CONFIG_RTC_DRV_RP5C01 is not set | ||
| 1203 | # CONFIG_RTC_DRV_V3020 is not set | ||
| 1204 | # CONFIG_RTC_DRV_WM8350 is not set | ||
| 1205 | # CONFIG_RTC_DRV_PCF50633 is not set | ||
| 1206 | CONFIG_RTC_DRV_AB3100=m | ||
| 779 | 1207 | ||
| 780 | # | 1208 | # |
| 781 | # Userspace I/O | 1209 | # on-CPU RTC drivers |
| 782 | # | 1210 | # |
| 1211 | # CONFIG_DMADEVICES is not set | ||
| 1212 | # CONFIG_AUXDISPLAY is not set | ||
| 783 | CONFIG_UIO=y | 1213 | CONFIG_UIO=y |
| 784 | # CONFIG_UIO_CIF is not set | 1214 | # CONFIG_UIO_CIF is not set |
| 1215 | # CONFIG_UIO_PDRV is not set | ||
| 1216 | # CONFIG_UIO_PDRV_GENIRQ is not set | ||
| 1217 | CONFIG_UIO_SMX=m | ||
| 1218 | CONFIG_UIO_AEC=m | ||
| 1219 | CONFIG_UIO_SERCOS3=m | ||
| 1220 | CONFIG_UIO_PCI_GENERIC=m | ||
| 1221 | |||
| 1222 | # | ||
| 1223 | # TI VLYNQ | ||
| 1224 | # | ||
| 1225 | # CONFIG_STAGING is not set | ||
| 785 | 1226 | ||
| 786 | # | 1227 | # |
| 787 | # File systems | 1228 | # File systems |
| @@ -792,36 +1233,58 @@ CONFIG_EXT2_FS_POSIX_ACL=y | |||
| 792 | CONFIG_EXT2_FS_SECURITY=y | 1233 | CONFIG_EXT2_FS_SECURITY=y |
| 793 | # CONFIG_EXT2_FS_XIP is not set | 1234 | # CONFIG_EXT2_FS_XIP is not set |
| 794 | CONFIG_EXT3_FS=y | 1235 | CONFIG_EXT3_FS=y |
| 1236 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
| 795 | CONFIG_EXT3_FS_XATTR=y | 1237 | CONFIG_EXT3_FS_XATTR=y |
| 796 | CONFIG_EXT3_FS_POSIX_ACL=y | 1238 | CONFIG_EXT3_FS_POSIX_ACL=y |
| 797 | CONFIG_EXT3_FS_SECURITY=y | 1239 | CONFIG_EXT3_FS_SECURITY=y |
| 798 | # CONFIG_EXT4DEV_FS is not set | 1240 | CONFIG_EXT4_FS=y |
| 1241 | CONFIG_EXT4_FS_XATTR=y | ||
| 1242 | CONFIG_EXT4_FS_POSIX_ACL=y | ||
| 1243 | CONFIG_EXT4_FS_SECURITY=y | ||
| 1244 | # CONFIG_EXT4_DEBUG is not set | ||
| 799 | CONFIG_JBD=y | 1245 | CONFIG_JBD=y |
| 800 | CONFIG_JBD_DEBUG=y | 1246 | CONFIG_JBD2=y |
| 801 | CONFIG_FS_MBCACHE=y | 1247 | CONFIG_FS_MBCACHE=y |
| 802 | # CONFIG_REISERFS_FS is not set | 1248 | # CONFIG_REISERFS_FS is not set |
| 803 | # CONFIG_JFS_FS is not set | 1249 | # CONFIG_JFS_FS is not set |
| 804 | CONFIG_FS_POSIX_ACL=y | 1250 | CONFIG_FS_POSIX_ACL=y |
| 805 | CONFIG_XFS_FS=m | 1251 | CONFIG_XFS_FS=m |
| 806 | CONFIG_XFS_QUOTA=y | 1252 | CONFIG_XFS_QUOTA=y |
| 807 | CONFIG_XFS_SECURITY=y | ||
| 808 | CONFIG_XFS_POSIX_ACL=y | 1253 | CONFIG_XFS_POSIX_ACL=y |
| 809 | # CONFIG_XFS_RT is not set | 1254 | # CONFIG_XFS_RT is not set |
| 1255 | # CONFIG_XFS_DEBUG is not set | ||
| 810 | # CONFIG_GFS2_FS is not set | 1256 | # CONFIG_GFS2_FS is not set |
| 811 | # CONFIG_OCFS2_FS is not set | 1257 | # CONFIG_OCFS2_FS is not set |
| 812 | # CONFIG_MINIX_FS is not set | 1258 | CONFIG_BTRFS_FS=m |
| 813 | # CONFIG_ROMFS_FS is not set | 1259 | CONFIG_BTRFS_FS_POSIX_ACL=y |
| 1260 | # CONFIG_NILFS2_FS is not set | ||
| 1261 | CONFIG_FILE_LOCKING=y | ||
| 1262 | CONFIG_FSNOTIFY=y | ||
| 1263 | CONFIG_DNOTIFY=y | ||
| 814 | CONFIG_INOTIFY=y | 1264 | CONFIG_INOTIFY=y |
| 815 | CONFIG_INOTIFY_USER=y | 1265 | CONFIG_INOTIFY_USER=y |
| 816 | # CONFIG_QUOTA is not set | 1266 | # CONFIG_QUOTA is not set |
| 1267 | CONFIG_QUOTA_NETLINK_INTERFACE=y | ||
| 817 | CONFIG_QUOTACTL=y | 1268 | CONFIG_QUOTACTL=y |
| 818 | CONFIG_DNOTIFY=y | ||
| 819 | CONFIG_AUTOFS_FS=m | 1269 | CONFIG_AUTOFS_FS=m |
| 820 | # CONFIG_AUTOFS4_FS is not set | 1270 | # CONFIG_AUTOFS4_FS is not set |
| 821 | CONFIG_FUSE_FS=m | 1271 | CONFIG_FUSE_FS=m |
| 1272 | CONFIG_CUSE=m | ||
| 822 | CONFIG_GENERIC_ACL=y | 1273 | CONFIG_GENERIC_ACL=y |
| 823 | 1274 | ||
| 824 | # | 1275 | # |
| 1276 | # Caches | ||
| 1277 | # | ||
| 1278 | CONFIG_FSCACHE=m | ||
| 1279 | CONFIG_FSCACHE_STATS=y | ||
| 1280 | # CONFIG_FSCACHE_HISTOGRAM is not set | ||
| 1281 | # CONFIG_FSCACHE_DEBUG is not set | ||
| 1282 | # CONFIG_FSCACHE_OBJECT_LIST is not set | ||
| 1283 | CONFIG_CACHEFILES=m | ||
| 1284 | # CONFIG_CACHEFILES_DEBUG is not set | ||
| 1285 | # CONFIG_CACHEFILES_HISTOGRAM is not set | ||
| 1286 | |||
| 1287 | # | ||
| 825 | # CD-ROM/DVD Filesystems | 1288 | # CD-ROM/DVD Filesystems |
| 826 | # | 1289 | # |
| 827 | # CONFIG_ISO9660_FS is not set | 1290 | # CONFIG_ISO9660_FS is not set |
| @@ -840,16 +1303,13 @@ CONFIG_GENERIC_ACL=y | |||
| 840 | CONFIG_PROC_FS=y | 1303 | CONFIG_PROC_FS=y |
| 841 | CONFIG_PROC_KCORE=y | 1304 | CONFIG_PROC_KCORE=y |
| 842 | CONFIG_PROC_SYSCTL=y | 1305 | CONFIG_PROC_SYSCTL=y |
| 1306 | CONFIG_PROC_PAGE_MONITOR=y | ||
| 843 | CONFIG_SYSFS=y | 1307 | CONFIG_SYSFS=y |
| 844 | CONFIG_TMPFS=y | 1308 | CONFIG_TMPFS=y |
| 845 | CONFIG_TMPFS_POSIX_ACL=y | 1309 | CONFIG_TMPFS_POSIX_ACL=y |
| 846 | # CONFIG_HUGETLB_PAGE is not set | 1310 | # CONFIG_HUGETLB_PAGE is not set |
| 847 | CONFIG_RAMFS=y | ||
| 848 | CONFIG_CONFIGFS_FS=m | 1311 | CONFIG_CONFIGFS_FS=m |
| 849 | 1312 | CONFIG_MISC_FILESYSTEMS=y | |
| 850 | # | ||
| 851 | # Miscellaneous filesystems | ||
| 852 | # | ||
| 853 | # CONFIG_ADFS_FS is not set | 1313 | # CONFIG_ADFS_FS is not set |
| 854 | # CONFIG_AFFS_FS is not set | 1314 | # CONFIG_AFFS_FS is not set |
| 855 | # CONFIG_ECRYPT_FS is not set | 1315 | # CONFIG_ECRYPT_FS is not set |
| @@ -859,28 +1319,32 @@ CONFIG_CONFIGFS_FS=m | |||
| 859 | # CONFIG_BFS_FS is not set | 1319 | # CONFIG_BFS_FS is not set |
| 860 | # CONFIG_EFS_FS is not set | 1320 | # CONFIG_EFS_FS is not set |
| 861 | # CONFIG_CRAMFS is not set | 1321 | # CONFIG_CRAMFS is not set |
| 1322 | CONFIG_SQUASHFS=m | ||
| 1323 | # CONFIG_SQUASHFS_EMBEDDED is not set | ||
| 1324 | CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 | ||
| 862 | # CONFIG_VXFS_FS is not set | 1325 | # CONFIG_VXFS_FS is not set |
| 1326 | # CONFIG_MINIX_FS is not set | ||
| 1327 | CONFIG_OMFS_FS=m | ||
| 863 | # CONFIG_HPFS_FS is not set | 1328 | # CONFIG_HPFS_FS is not set |
| 864 | # CONFIG_QNX4FS_FS is not set | 1329 | # CONFIG_QNX4FS_FS is not set |
| 1330 | # CONFIG_ROMFS_FS is not set | ||
| 865 | # CONFIG_SYSV_FS is not set | 1331 | # CONFIG_SYSV_FS is not set |
| 866 | # CONFIG_UFS_FS is not set | 1332 | # CONFIG_UFS_FS is not set |
| 867 | 1333 | CONFIG_EXOFS_FS=m | |
| 868 | # | 1334 | # CONFIG_EXOFS_DEBUG is not set |
| 869 | # Network File Systems | 1335 | CONFIG_NETWORK_FILESYSTEMS=y |
| 870 | # | ||
| 871 | CONFIG_NFS_FS=y | 1336 | CONFIG_NFS_FS=y |
| 872 | CONFIG_NFS_V3=y | 1337 | CONFIG_NFS_V3=y |
| 873 | # CONFIG_NFS_V3_ACL is not set | 1338 | # CONFIG_NFS_V3_ACL is not set |
| 874 | # CONFIG_NFS_V4 is not set | 1339 | # CONFIG_NFS_V4 is not set |
| 875 | # CONFIG_NFS_DIRECTIO is not set | ||
| 876 | # CONFIG_NFSD is not set | ||
| 877 | # CONFIG_ROOT_NFS is not set | 1340 | # CONFIG_ROOT_NFS is not set |
| 1341 | # CONFIG_NFSD is not set | ||
| 878 | CONFIG_LOCKD=y | 1342 | CONFIG_LOCKD=y |
| 879 | CONFIG_LOCKD_V4=y | 1343 | CONFIG_LOCKD_V4=y |
| 1344 | CONFIG_EXPORTFS=m | ||
| 880 | CONFIG_NFS_COMMON=y | 1345 | CONFIG_NFS_COMMON=y |
| 881 | CONFIG_SUNRPC=y | 1346 | CONFIG_SUNRPC=y |
| 882 | CONFIG_SUNRPC_GSS=y | 1347 | CONFIG_SUNRPC_GSS=y |
| 883 | # CONFIG_SUNRPC_BIND34 is not set | ||
| 884 | CONFIG_RPCSEC_GSS_KRB5=y | 1348 | CONFIG_RPCSEC_GSS_KRB5=y |
| 885 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 1349 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
| 886 | # CONFIG_SMB_FS is not set | 1350 | # CONFIG_SMB_FS is not set |
| @@ -910,35 +1374,37 @@ CONFIG_SGI_PARTITION=y | |||
| 910 | # CONFIG_KARMA_PARTITION is not set | 1374 | # CONFIG_KARMA_PARTITION is not set |
| 911 | # CONFIG_EFI_PARTITION is not set | 1375 | # CONFIG_EFI_PARTITION is not set |
| 912 | # CONFIG_SYSV68_PARTITION is not set | 1376 | # CONFIG_SYSV68_PARTITION is not set |
| 913 | |||
| 914 | # | ||
| 915 | # Native Language Support | ||
| 916 | # | ||
| 917 | # CONFIG_NLS is not set | 1377 | # CONFIG_NLS is not set |
| 918 | |||
| 919 | # | ||
| 920 | # Distributed Lock Manager | ||
| 921 | # | ||
| 922 | CONFIG_DLM=m | 1378 | CONFIG_DLM=m |
| 923 | # CONFIG_DLM_DEBUG is not set | 1379 | # CONFIG_DLM_DEBUG is not set |
| 924 | 1380 | ||
| 925 | # | 1381 | # |
| 926 | # Profiling support | ||
| 927 | # | ||
| 928 | # CONFIG_PROFILING is not set | ||
| 929 | |||
| 930 | # | ||
| 931 | # Kernel hacking | 1382 | # Kernel hacking |
| 932 | # | 1383 | # |
| 933 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | 1384 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y |
| 934 | # CONFIG_PRINTK_TIME is not set | 1385 | # CONFIG_PRINTK_TIME is not set |
| 1386 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
| 935 | CONFIG_ENABLE_MUST_CHECK=y | 1387 | CONFIG_ENABLE_MUST_CHECK=y |
| 1388 | CONFIG_FRAME_WARN=2048 | ||
| 936 | # CONFIG_MAGIC_SYSRQ is not set | 1389 | # CONFIG_MAGIC_SYSRQ is not set |
| 1390 | # CONFIG_STRIP_ASM_SYMS is not set | ||
| 937 | # CONFIG_UNUSED_SYMBOLS is not set | 1391 | # CONFIG_UNUSED_SYMBOLS is not set |
| 938 | # CONFIG_DEBUG_FS is not set | 1392 | # CONFIG_DEBUG_FS is not set |
| 939 | # CONFIG_HEADERS_CHECK is not set | 1393 | # CONFIG_HEADERS_CHECK is not set |
| 940 | # CONFIG_DEBUG_KERNEL is not set | 1394 | # CONFIG_DEBUG_KERNEL is not set |
| 941 | CONFIG_CROSSCOMPILE=y | 1395 | # CONFIG_DEBUG_MEMORY_INIT is not set |
| 1396 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
| 1397 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
| 1398 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
| 1399 | CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y | ||
| 1400 | CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y | ||
| 1401 | CONFIG_HAVE_DYNAMIC_FTRACE=y | ||
| 1402 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | ||
| 1403 | CONFIG_TRACING_SUPPORT=y | ||
| 1404 | # CONFIG_FTRACE is not set | ||
| 1405 | # CONFIG_SAMPLES is not set | ||
| 1406 | CONFIG_HAVE_ARCH_KGDB=y | ||
| 1407 | CONFIG_EARLY_PRINTK=y | ||
| 942 | # CONFIG_CMDLINE_BOOL is not set | 1408 | # CONFIG_CMDLINE_BOOL is not set |
| 943 | 1409 | ||
| 944 | # | 1410 | # |
| @@ -947,65 +1413,140 @@ CONFIG_CROSSCOMPILE=y | |||
| 947 | CONFIG_KEYS=y | 1413 | CONFIG_KEYS=y |
| 948 | CONFIG_KEYS_DEBUG_PROC_KEYS=y | 1414 | CONFIG_KEYS_DEBUG_PROC_KEYS=y |
| 949 | # CONFIG_SECURITY is not set | 1415 | # CONFIG_SECURITY is not set |
| 950 | CONFIG_XOR_BLOCKS=m | 1416 | CONFIG_SECURITYFS=y |
| 951 | CONFIG_ASYNC_CORE=m | 1417 | # CONFIG_DEFAULT_SECURITY_SELINUX is not set |
| 952 | CONFIG_ASYNC_MEMCPY=m | 1418 | # CONFIG_DEFAULT_SECURITY_SMACK is not set |
| 953 | CONFIG_ASYNC_XOR=m | 1419 | # CONFIG_DEFAULT_SECURITY_TOMOYO is not set |
| 1420 | CONFIG_DEFAULT_SECURITY_DAC=y | ||
| 1421 | CONFIG_DEFAULT_SECURITY="" | ||
| 1422 | CONFIG_XOR_BLOCKS=y | ||
| 1423 | CONFIG_ASYNC_CORE=y | ||
| 1424 | CONFIG_ASYNC_MEMCPY=y | ||
| 1425 | CONFIG_ASYNC_XOR=y | ||
| 1426 | CONFIG_ASYNC_PQ=y | ||
| 1427 | CONFIG_ASYNC_RAID6_RECOV=y | ||
| 954 | CONFIG_CRYPTO=y | 1428 | CONFIG_CRYPTO=y |
| 1429 | |||
| 1430 | # | ||
| 1431 | # Crypto core or helper | ||
| 1432 | # | ||
| 1433 | CONFIG_CRYPTO_FIPS=y | ||
| 955 | CONFIG_CRYPTO_ALGAPI=y | 1434 | CONFIG_CRYPTO_ALGAPI=y |
| 956 | CONFIG_CRYPTO_ABLKCIPHER=m | 1435 | CONFIG_CRYPTO_ALGAPI2=y |
| 1436 | CONFIG_CRYPTO_AEAD=m | ||
| 1437 | CONFIG_CRYPTO_AEAD2=y | ||
| 957 | CONFIG_CRYPTO_BLKCIPHER=y | 1438 | CONFIG_CRYPTO_BLKCIPHER=y |
| 1439 | CONFIG_CRYPTO_BLKCIPHER2=y | ||
| 958 | CONFIG_CRYPTO_HASH=y | 1440 | CONFIG_CRYPTO_HASH=y |
| 1441 | CONFIG_CRYPTO_HASH2=y | ||
| 1442 | CONFIG_CRYPTO_RNG=m | ||
| 1443 | CONFIG_CRYPTO_RNG2=y | ||
| 1444 | CONFIG_CRYPTO_PCOMP=y | ||
| 959 | CONFIG_CRYPTO_MANAGER=y | 1445 | CONFIG_CRYPTO_MANAGER=y |
| 1446 | CONFIG_CRYPTO_MANAGER2=y | ||
| 1447 | CONFIG_CRYPTO_GF128MUL=m | ||
| 1448 | CONFIG_CRYPTO_NULL=m | ||
| 1449 | CONFIG_CRYPTO_WORKQUEUE=y | ||
| 1450 | CONFIG_CRYPTO_CRYPTD=m | ||
| 1451 | CONFIG_CRYPTO_AUTHENC=m | ||
| 1452 | # CONFIG_CRYPTO_TEST is not set | ||
| 1453 | |||
| 1454 | # | ||
| 1455 | # Authenticated Encryption with Associated Data | ||
| 1456 | # | ||
| 1457 | CONFIG_CRYPTO_CCM=m | ||
| 1458 | CONFIG_CRYPTO_GCM=m | ||
| 1459 | CONFIG_CRYPTO_SEQIV=m | ||
| 1460 | |||
| 1461 | # | ||
| 1462 | # Block modes | ||
| 1463 | # | ||
| 1464 | CONFIG_CRYPTO_CBC=y | ||
| 1465 | CONFIG_CRYPTO_CTR=m | ||
| 1466 | CONFIG_CRYPTO_CTS=m | ||
| 1467 | CONFIG_CRYPTO_ECB=m | ||
| 1468 | CONFIG_CRYPTO_LRW=m | ||
| 1469 | CONFIG_CRYPTO_PCBC=m | ||
| 1470 | CONFIG_CRYPTO_XTS=m | ||
| 1471 | |||
| 1472 | # | ||
| 1473 | # Hash modes | ||
| 1474 | # | ||
| 960 | CONFIG_CRYPTO_HMAC=y | 1475 | CONFIG_CRYPTO_HMAC=y |
| 961 | CONFIG_CRYPTO_XCBC=m | 1476 | CONFIG_CRYPTO_XCBC=m |
| 962 | CONFIG_CRYPTO_NULL=m | 1477 | CONFIG_CRYPTO_VMAC=m |
| 1478 | |||
| 1479 | # | ||
| 1480 | # Digest | ||
| 1481 | # | ||
| 1482 | CONFIG_CRYPTO_CRC32C=m | ||
| 1483 | CONFIG_CRYPTO_GHASH=m | ||
| 963 | CONFIG_CRYPTO_MD4=m | 1484 | CONFIG_CRYPTO_MD4=m |
| 964 | CONFIG_CRYPTO_MD5=y | 1485 | CONFIG_CRYPTO_MD5=y |
| 1486 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
| 1487 | CONFIG_CRYPTO_RMD128=m | ||
| 1488 | CONFIG_CRYPTO_RMD160=m | ||
| 1489 | CONFIG_CRYPTO_RMD256=m | ||
| 1490 | CONFIG_CRYPTO_RMD320=m | ||
| 965 | CONFIG_CRYPTO_SHA1=m | 1491 | CONFIG_CRYPTO_SHA1=m |
| 966 | CONFIG_CRYPTO_SHA256=m | 1492 | CONFIG_CRYPTO_SHA256=m |
| 967 | CONFIG_CRYPTO_SHA512=m | 1493 | CONFIG_CRYPTO_SHA512=m |
| 968 | CONFIG_CRYPTO_WP512=m | ||
| 969 | CONFIG_CRYPTO_TGR192=m | 1494 | CONFIG_CRYPTO_TGR192=m |
| 970 | CONFIG_CRYPTO_GF128MUL=m | 1495 | CONFIG_CRYPTO_WP512=m |
| 971 | CONFIG_CRYPTO_ECB=m | 1496 | |
| 972 | CONFIG_CRYPTO_CBC=y | 1497 | # |
| 973 | CONFIG_CRYPTO_PCBC=m | 1498 | # Ciphers |
| 974 | CONFIG_CRYPTO_LRW=m | 1499 | # |
| 975 | CONFIG_CRYPTO_CRYPTD=m | ||
| 976 | CONFIG_CRYPTO_DES=y | ||
| 977 | CONFIG_CRYPTO_FCRYPT=m | ||
| 978 | CONFIG_CRYPTO_BLOWFISH=m | ||
| 979 | CONFIG_CRYPTO_TWOFISH=m | ||
| 980 | CONFIG_CRYPTO_TWOFISH_COMMON=m | ||
| 981 | CONFIG_CRYPTO_SERPENT=m | ||
| 982 | CONFIG_CRYPTO_AES=m | 1500 | CONFIG_CRYPTO_AES=m |
| 1501 | CONFIG_CRYPTO_ANUBIS=m | ||
| 1502 | CONFIG_CRYPTO_ARC4=m | ||
| 1503 | CONFIG_CRYPTO_BLOWFISH=m | ||
| 1504 | CONFIG_CRYPTO_CAMELLIA=m | ||
| 983 | CONFIG_CRYPTO_CAST5=m | 1505 | CONFIG_CRYPTO_CAST5=m |
| 984 | CONFIG_CRYPTO_CAST6=m | 1506 | CONFIG_CRYPTO_CAST6=m |
| 985 | CONFIG_CRYPTO_TEA=m | 1507 | CONFIG_CRYPTO_DES=y |
| 986 | CONFIG_CRYPTO_ARC4=m | 1508 | CONFIG_CRYPTO_FCRYPT=m |
| 987 | CONFIG_CRYPTO_KHAZAD=m | 1509 | CONFIG_CRYPTO_KHAZAD=m |
| 988 | CONFIG_CRYPTO_ANUBIS=m | 1510 | CONFIG_CRYPTO_SALSA20=m |
| 1511 | CONFIG_CRYPTO_SEED=m | ||
| 1512 | CONFIG_CRYPTO_SERPENT=m | ||
| 1513 | CONFIG_CRYPTO_TEA=m | ||
| 1514 | CONFIG_CRYPTO_TWOFISH=m | ||
| 1515 | CONFIG_CRYPTO_TWOFISH_COMMON=m | ||
| 1516 | |||
| 1517 | # | ||
| 1518 | # Compression | ||
| 1519 | # | ||
| 989 | CONFIG_CRYPTO_DEFLATE=m | 1520 | CONFIG_CRYPTO_DEFLATE=m |
| 990 | CONFIG_CRYPTO_MICHAEL_MIC=m | 1521 | CONFIG_CRYPTO_ZLIB=m |
| 991 | CONFIG_CRYPTO_CRC32C=m | 1522 | CONFIG_CRYPTO_LZO=m |
| 992 | CONFIG_CRYPTO_CAMELLIA=m | 1523 | |
| 993 | # CONFIG_CRYPTO_TEST is not set | 1524 | # |
| 1525 | # Random Number Generation | ||
| 1526 | # | ||
| 1527 | CONFIG_CRYPTO_ANSI_CPRNG=m | ||
| 994 | CONFIG_CRYPTO_HW=y | 1528 | CONFIG_CRYPTO_HW=y |
| 1529 | CONFIG_CRYPTO_DEV_HIFN_795X=m | ||
| 1530 | # CONFIG_CRYPTO_DEV_HIFN_795X_RNG is not set | ||
| 1531 | # CONFIG_BINARY_PRINTF is not set | ||
| 995 | 1532 | ||
| 996 | # | 1533 | # |
| 997 | # Library routines | 1534 | # Library routines |
| 998 | # | 1535 | # |
| 999 | CONFIG_BITREVERSE=y | 1536 | CONFIG_BITREVERSE=y |
| 1537 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
| 1000 | CONFIG_CRC_CCITT=m | 1538 | CONFIG_CRC_CCITT=m |
| 1001 | # CONFIG_CRC16 is not set | 1539 | CONFIG_CRC16=y |
| 1002 | # CONFIG_CRC_ITU_T is not set | 1540 | CONFIG_CRC_T10DIF=m |
| 1541 | CONFIG_CRC_ITU_T=m | ||
| 1003 | CONFIG_CRC32=y | 1542 | CONFIG_CRC32=y |
| 1004 | # CONFIG_CRC7 is not set | 1543 | CONFIG_CRC7=m |
| 1005 | CONFIG_LIBCRC32C=m | 1544 | CONFIG_LIBCRC32C=m |
| 1006 | CONFIG_ZLIB_INFLATE=m | 1545 | CONFIG_ZLIB_INFLATE=m |
| 1007 | CONFIG_ZLIB_DEFLATE=m | 1546 | CONFIG_ZLIB_DEFLATE=m |
| 1008 | CONFIG_PLIST=y | 1547 | CONFIG_LZO_COMPRESS=m |
| 1548 | CONFIG_LZO_DECOMPRESS=m | ||
| 1009 | CONFIG_HAS_IOMEM=y | 1549 | CONFIG_HAS_IOMEM=y |
| 1010 | CONFIG_HAS_IOPORT=y | 1550 | CONFIG_HAS_IOPORT=y |
| 1011 | CONFIG_HAS_DMA=y | 1551 | CONFIG_HAS_DMA=y |
| 1552 | CONFIG_NLATTR=y | ||
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 9c187a64649b..758ad426c57f 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
| @@ -287,9 +287,9 @@ static inline int __cpu_has_fpu(void) | |||
| 287 | static inline void cpu_probe_vmbits(struct cpuinfo_mips *c) | 287 | static inline void cpu_probe_vmbits(struct cpuinfo_mips *c) |
| 288 | { | 288 | { |
| 289 | #ifdef __NEED_VMBITS_PROBE | 289 | #ifdef __NEED_VMBITS_PROBE |
| 290 | write_c0_entryhi(0x3ffffffffffff000ULL); | 290 | write_c0_entryhi(0x3fffffffffffe000ULL); |
| 291 | back_to_back_c0_hazard(); | 291 | back_to_back_c0_hazard(); |
| 292 | c->vmbits = fls64(read_c0_entryhi() & 0x3ffffffffffff000ULL); | 292 | c->vmbits = fls64(read_c0_entryhi() & 0x3fffffffffffe000ULL); |
| 293 | #endif | 293 | #endif |
| 294 | } | 294 | } |
| 295 | 295 | ||
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 338dfe8ed002..31b204b26ba0 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
| @@ -1501,6 +1501,7 @@ void __cpuinit per_cpu_trap_init(void) | |||
| 1501 | cp0_perfcount_irq = -1; | 1501 | cp0_perfcount_irq = -1; |
| 1502 | } else { | 1502 | } else { |
| 1503 | cp0_compare_irq = CP0_LEGACY_COMPARE_IRQ; | 1503 | cp0_compare_irq = CP0_LEGACY_COMPARE_IRQ; |
| 1504 | cp0_compare_irq_shift = cp0_compare_irq; | ||
| 1504 | cp0_perfcount_irq = -1; | 1505 | cp0_perfcount_irq = -1; |
| 1505 | } | 1506 | } |
| 1506 | 1507 | ||
diff --git a/arch/mips/mm/c-octeon.c b/arch/mips/mm/c-octeon.c index 94e05e5733c1..e06f1af760a7 100644 --- a/arch/mips/mm/c-octeon.c +++ b/arch/mips/mm/c-octeon.c | |||
| @@ -174,7 +174,7 @@ static void octeon_flush_cache_page(struct vm_area_struct *vma, | |||
| 174 | * Probe Octeon's caches | 174 | * Probe Octeon's caches |
| 175 | * | 175 | * |
| 176 | */ | 176 | */ |
| 177 | static void __devinit probe_octeon(void) | 177 | static void __cpuinit probe_octeon(void) |
| 178 | { | 178 | { |
| 179 | unsigned long icache_size; | 179 | unsigned long icache_size; |
| 180 | unsigned long dcache_size; | 180 | unsigned long dcache_size; |
| @@ -235,7 +235,7 @@ static void __devinit probe_octeon(void) | |||
| 235 | * Setup the Octeon cache flush routines | 235 | * Setup the Octeon cache flush routines |
| 236 | * | 236 | * |
| 237 | */ | 237 | */ |
| 238 | void __devinit octeon_cache_init(void) | 238 | void __cpuinit octeon_cache_init(void) |
| 239 | { | 239 | { |
| 240 | extern unsigned long ebase; | 240 | extern unsigned long ebase; |
| 241 | extern char except_vec2_octeon; | 241 | extern char except_vec2_octeon; |
diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index 102b2dfa542a..e716cafc346d 100644 --- a/arch/mips/mm/cache.c +++ b/arch/mips/mm/cache.c | |||
| @@ -155,7 +155,7 @@ static inline void setup_protection_map(void) | |||
| 155 | protection_map[15] = PAGE_SHARED; | 155 | protection_map[15] = PAGE_SHARED; |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | void __devinit cpu_cache_init(void) | 158 | void __cpuinit cpu_cache_init(void) |
| 159 | { | 159 | { |
| 160 | if (cpu_has_3k_cache) { | 160 | if (cpu_has_3k_cache) { |
| 161 | extern void __weak r3k_cache_init(void); | 161 | extern void __weak r3k_cache_init(void); |
diff --git a/arch/mips/mm/highmem.c b/arch/mips/mm/highmem.c index e274fda329f4..127d732474bf 100644 --- a/arch/mips/mm/highmem.c +++ b/arch/mips/mm/highmem.c | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #include <linux/module.h> | 1 | #include <linux/module.h> |
| 2 | #include <linux/highmem.h> | 2 | #include <linux/highmem.h> |
| 3 | #include <linux/sched.h> | ||
| 3 | #include <linux/smp.h> | 4 | #include <linux/smp.h> |
| 4 | #include <asm/fixmap.h> | 5 | #include <asm/fixmap.h> |
| 5 | #include <asm/tlbflush.h> | 6 | #include <asm/tlbflush.h> |
diff --git a/arch/mips/sni/rm200.c b/arch/mips/sni/rm200.c index 46f00691f448..31e2583ec622 100644 --- a/arch/mips/sni/rm200.c +++ b/arch/mips/sni/rm200.c | |||
| @@ -404,7 +404,7 @@ void __init sni_rm200_i8259_irqs(void) | |||
| 404 | if (!rm200_pic_master) | 404 | if (!rm200_pic_master) |
| 405 | return; | 405 | return; |
| 406 | rm200_pic_slave = ioremap_nocache(0x160000a0, 4); | 406 | rm200_pic_slave = ioremap_nocache(0x160000a0, 4); |
| 407 | if (!rm200_pic_master) { | 407 | if (!rm200_pic_slave) { |
| 408 | iounmap(rm200_pic_master); | 408 | iounmap(rm200_pic_master); |
| 409 | return; | 409 | return; |
| 410 | } | 410 | } |
diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig index 524d9352f17e..f388dc68f605 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig | |||
| @@ -18,7 +18,6 @@ config PARISC | |||
| 18 | select BUG | 18 | select BUG |
| 19 | select HAVE_PERF_EVENTS | 19 | select HAVE_PERF_EVENTS |
| 20 | select GENERIC_ATOMIC64 if !64BIT | 20 | select GENERIC_ATOMIC64 if !64BIT |
| 21 | select HAVE_ARCH_TRACEHOOK | ||
| 22 | help | 21 | help |
| 23 | The PA-RISC microprocessor is designed by Hewlett-Packard and used | 22 | The PA-RISC microprocessor is designed by Hewlett-Packard and used |
| 24 | in many of their workstations & servers (HP9000 700 and 800 series, | 23 | in many of their workstations & servers (HP9000 700 and 800 series, |
diff --git a/arch/parisc/kernel/pci.c b/arch/parisc/kernel/pci.c index f7064abc3bb6..9e74bfe071dc 100644 --- a/arch/parisc/kernel/pci.c +++ b/arch/parisc/kernel/pci.c | |||
| @@ -18,7 +18,6 @@ | |||
| 18 | 18 | ||
| 19 | #include <asm/io.h> | 19 | #include <asm/io.h> |
| 20 | #include <asm/system.h> | 20 | #include <asm/system.h> |
| 21 | #include <asm/cache.h> /* for L1_CACHE_BYTES */ | ||
| 22 | #include <asm/superio.h> | 21 | #include <asm/superio.h> |
| 23 | 22 | ||
| 24 | #define DEBUG_RESOURCES 0 | 23 | #define DEBUG_RESOURCES 0 |
| @@ -123,6 +122,10 @@ static int __init pcibios_init(void) | |||
| 123 | } else { | 122 | } else { |
| 124 | printk(KERN_WARNING "pci_bios != NULL but init() is!\n"); | 123 | printk(KERN_WARNING "pci_bios != NULL but init() is!\n"); |
| 125 | } | 124 | } |
| 125 | |||
| 126 | /* Set the CLS for PCI as early as possible. */ | ||
| 127 | pci_cache_line_size = pci_dfl_cache_line_size; | ||
| 128 | |||
| 126 | return 0; | 129 | return 0; |
| 127 | } | 130 | } |
| 128 | 131 | ||
| @@ -171,7 +174,7 @@ void pcibios_set_master(struct pci_dev *dev) | |||
| 171 | ** upper byte is PCI_LATENCY_TIMER. | 174 | ** upper byte is PCI_LATENCY_TIMER. |
| 172 | */ | 175 | */ |
| 173 | pci_write_config_word(dev, PCI_CACHE_LINE_SIZE, | 176 | pci_write_config_word(dev, PCI_CACHE_LINE_SIZE, |
| 174 | (0x80 << 8) | (L1_CACHE_BYTES / sizeof(u32))); | 177 | (0x80 << 8) | pci_cache_line_size); |
| 175 | } | 178 | } |
| 176 | 179 | ||
| 177 | 180 | ||
diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c index fb37ac52e46c..35c827e94e31 100644 --- a/arch/parisc/kernel/signal.c +++ b/arch/parisc/kernel/signal.c | |||
| @@ -468,7 +468,9 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, | |||
| 468 | recalc_sigpending(); | 468 | recalc_sigpending(); |
| 469 | spin_unlock_irq(¤t->sighand->siglock); | 469 | spin_unlock_irq(¤t->sighand->siglock); |
| 470 | 470 | ||
| 471 | tracehook_signal_handler(sig, info, ka, regs, 0); | 471 | tracehook_signal_handler(sig, info, ka, regs, |
| 472 | test_thread_flag(TIF_SINGLESTEP) || | ||
| 473 | test_thread_flag(TIF_BLOCKSTEP)); | ||
| 472 | 474 | ||
| 473 | return 1; | 475 | return 1; |
| 474 | } | 476 | } |
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c index 21f61b8c445b..cc29c0f5300d 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c | |||
| @@ -338,7 +338,8 @@ static void __init mpc85xx_mds_pic_init(void) | |||
| 338 | } | 338 | } |
| 339 | 339 | ||
| 340 | mpic = mpic_alloc(np, r.start, | 340 | mpic = mpic_alloc(np, r.start, |
| 341 | MPIC_PRIMARY | MPIC_WANTS_RESET | MPIC_BIG_ENDIAN, | 341 | MPIC_PRIMARY | MPIC_WANTS_RESET | MPIC_BIG_ENDIAN | |
| 342 | MPIC_BROKEN_FRR_NIRQS, | ||
| 342 | 0, 256, " OpenPIC "); | 343 | 0, 256, " OpenPIC "); |
| 343 | BUG_ON(mpic == NULL); | 344 | BUG_ON(mpic == NULL); |
| 344 | of_node_put(np); | 345 | of_node_put(np); |
diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc/platforms/85xx/smp.c index 04160a4cc699..a15f582300d8 100644 --- a/arch/powerpc/platforms/85xx/smp.c +++ b/arch/powerpc/platforms/85xx/smp.c | |||
| @@ -46,6 +46,7 @@ smp_85xx_kick_cpu(int nr) | |||
| 46 | __iomem u32 *bptr_vaddr; | 46 | __iomem u32 *bptr_vaddr; |
| 47 | struct device_node *np; | 47 | struct device_node *np; |
| 48 | int n = 0; | 48 | int n = 0; |
| 49 | int ioremappable; | ||
| 49 | 50 | ||
| 50 | WARN_ON (nr < 0 || nr >= NR_CPUS); | 51 | WARN_ON (nr < 0 || nr >= NR_CPUS); |
| 51 | 52 | ||
| @@ -59,21 +60,37 @@ smp_85xx_kick_cpu(int nr) | |||
| 59 | return; | 60 | return; |
| 60 | } | 61 | } |
| 61 | 62 | ||
| 63 | /* | ||
| 64 | * A secondary core could be in a spinloop in the bootpage | ||
| 65 | * (0xfffff000), somewhere in highmem, or somewhere in lowmem. | ||
| 66 | * The bootpage and highmem can be accessed via ioremap(), but | ||
| 67 | * we need to directly access the spinloop if its in lowmem. | ||
| 68 | */ | ||
| 69 | ioremappable = *cpu_rel_addr > virt_to_phys(high_memory); | ||
| 70 | |||
| 62 | /* Map the spin table */ | 71 | /* Map the spin table */ |
| 63 | bptr_vaddr = ioremap(*cpu_rel_addr, SIZE_BOOT_ENTRY); | 72 | if (ioremappable) |
| 73 | bptr_vaddr = ioremap(*cpu_rel_addr, SIZE_BOOT_ENTRY); | ||
| 74 | else | ||
| 75 | bptr_vaddr = phys_to_virt(*cpu_rel_addr); | ||
| 64 | 76 | ||
| 65 | local_irq_save(flags); | 77 | local_irq_save(flags); |
| 66 | 78 | ||
| 67 | out_be32(bptr_vaddr + BOOT_ENTRY_PIR, nr); | 79 | out_be32(bptr_vaddr + BOOT_ENTRY_PIR, nr); |
| 68 | out_be32(bptr_vaddr + BOOT_ENTRY_ADDR_LOWER, __pa(__early_start)); | 80 | out_be32(bptr_vaddr + BOOT_ENTRY_ADDR_LOWER, __pa(__early_start)); |
| 69 | 81 | ||
| 82 | if (!ioremappable) | ||
| 83 | flush_dcache_range((ulong)bptr_vaddr, | ||
| 84 | (ulong)(bptr_vaddr + SIZE_BOOT_ENTRY)); | ||
| 85 | |||
| 70 | /* Wait a bit for the CPU to ack. */ | 86 | /* Wait a bit for the CPU to ack. */ |
| 71 | while ((__secondary_hold_acknowledge != nr) && (++n < 1000)) | 87 | while ((__secondary_hold_acknowledge != nr) && (++n < 1000)) |
| 72 | mdelay(1); | 88 | mdelay(1); |
| 73 | 89 | ||
| 74 | local_irq_restore(flags); | 90 | local_irq_restore(flags); |
| 75 | 91 | ||
| 76 | iounmap(bptr_vaddr); | 92 | if (ioremappable) |
| 93 | iounmap(bptr_vaddr); | ||
| 77 | 94 | ||
| 78 | pr_debug("waited %d msecs for CPU #%d.\n", n, nr); | 95 | pr_debug("waited %d msecs for CPU #%d.\n", n, nr); |
| 79 | } | 96 | } |
diff --git a/arch/sh/kernel/ptrace_64.c b/arch/sh/kernel/ptrace_64.c index 873ebdc4f98e..b063eb8b18e3 100644 --- a/arch/sh/kernel/ptrace_64.c +++ b/arch/sh/kernel/ptrace_64.c | |||
| @@ -133,6 +133,8 @@ void user_enable_single_step(struct task_struct *child) | |||
| 133 | struct pt_regs *regs = child->thread.uregs; | 133 | struct pt_regs *regs = child->thread.uregs; |
| 134 | 134 | ||
| 135 | regs->sr |= SR_SSTEP; /* auto-resetting upon exception */ | 135 | regs->sr |= SR_SSTEP; /* auto-resetting upon exception */ |
| 136 | |||
| 137 | set_tsk_thread_flag(child, TIF_SINGLESTEP); | ||
| 136 | } | 138 | } |
| 137 | 139 | ||
| 138 | void user_disable_single_step(struct task_struct *child) | 140 | void user_disable_single_step(struct task_struct *child) |
| @@ -140,6 +142,8 @@ void user_disable_single_step(struct task_struct *child) | |||
| 140 | struct pt_regs *regs = child->thread.uregs; | 142 | struct pt_regs *regs = child->thread.uregs; |
| 141 | 143 | ||
| 142 | regs->sr &= ~SR_SSTEP; | 144 | regs->sr &= ~SR_SSTEP; |
| 145 | |||
| 146 | clear_tsk_thread_flag(child, TIF_SINGLESTEP); | ||
| 143 | } | 147 | } |
| 144 | 148 | ||
| 145 | static int genregs_get(struct task_struct *target, | 149 | static int genregs_get(struct task_struct *target, |
| @@ -454,6 +458,8 @@ asmlinkage long long do_syscall_trace_enter(struct pt_regs *regs) | |||
| 454 | 458 | ||
| 455 | asmlinkage void do_syscall_trace_leave(struct pt_regs *regs) | 459 | asmlinkage void do_syscall_trace_leave(struct pt_regs *regs) |
| 456 | { | 460 | { |
| 461 | int step; | ||
| 462 | |||
| 457 | if (unlikely(current->audit_context)) | 463 | if (unlikely(current->audit_context)) |
| 458 | audit_syscall_exit(AUDITSC_RESULT(regs->regs[9]), | 464 | audit_syscall_exit(AUDITSC_RESULT(regs->regs[9]), |
| 459 | regs->regs[9]); | 465 | regs->regs[9]); |
| @@ -461,8 +467,9 @@ asmlinkage void do_syscall_trace_leave(struct pt_regs *regs) | |||
| 461 | if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT))) | 467 | if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT))) |
| 462 | trace_sys_exit(regs, regs->regs[9]); | 468 | trace_sys_exit(regs, regs->regs[9]); |
| 463 | 469 | ||
| 464 | if (test_thread_flag(TIF_SYSCALL_TRACE)) | 470 | step = test_thread_flag(TIF_SINGLESTEP); |
| 465 | tracehook_report_syscall_exit(regs, 0); | 471 | if (step || test_thread_flag(TIF_SYSCALL_TRACE)) |
| 472 | tracehook_report_syscall_exit(regs, step); | ||
| 466 | } | 473 | } |
| 467 | 474 | ||
| 468 | /* Called with interrupts disabled */ | 475 | /* Called with interrupts disabled */ |
diff --git a/arch/sh/kernel/signal_64.c b/arch/sh/kernel/signal_64.c index ce76dbdef294..580e97d46ca5 100644 --- a/arch/sh/kernel/signal_64.c +++ b/arch/sh/kernel/signal_64.c | |||
| @@ -118,7 +118,9 @@ static int do_signal(struct pt_regs *regs, sigset_t *oldset) | |||
| 118 | * clear the TS_RESTORE_SIGMASK flag. | 118 | * clear the TS_RESTORE_SIGMASK flag. |
| 119 | */ | 119 | */ |
| 120 | current_thread_info()->status &= ~TS_RESTORE_SIGMASK; | 120 | current_thread_info()->status &= ~TS_RESTORE_SIGMASK; |
| 121 | tracehook_signal_handler(signr, &info, &ka, regs, 0); | 121 | |
| 122 | tracehook_signal_handler(signr, &info, &ka, regs, | ||
| 123 | test_thread_flag(TIF_SINGLESTEP)); | ||
| 122 | return 1; | 124 | return 1; |
| 123 | } | 125 | } |
| 124 | } | 126 | } |
diff --git a/arch/sparc/include/asm/stat.h b/arch/sparc/include/asm/stat.h index 55db5eca08e2..39327d6a57eb 100644 --- a/arch/sparc/include/asm/stat.h +++ b/arch/sparc/include/asm/stat.h | |||
| @@ -53,8 +53,8 @@ struct stat { | |||
| 53 | ino_t st_ino; | 53 | ino_t st_ino; |
| 54 | mode_t st_mode; | 54 | mode_t st_mode; |
| 55 | short st_nlink; | 55 | short st_nlink; |
| 56 | uid_t st_uid; | 56 | uid16_t st_uid; |
| 57 | gid_t st_gid; | 57 | gid16_t st_gid; |
| 58 | unsigned short st_rdev; | 58 | unsigned short st_rdev; |
| 59 | off_t st_size; | 59 | off_t st_size; |
| 60 | time_t st_atime; | 60 | time_t st_atime; |
diff --git a/arch/sparc/kernel/kstack.h b/arch/sparc/kernel/kstack.h index 4248d969272f..5247283d1c03 100644 --- a/arch/sparc/kernel/kstack.h +++ b/arch/sparc/kernel/kstack.h | |||
| @@ -11,6 +11,10 @@ static inline bool kstack_valid(struct thread_info *tp, unsigned long sp) | |||
| 11 | { | 11 | { |
| 12 | unsigned long base = (unsigned long) tp; | 12 | unsigned long base = (unsigned long) tp; |
| 13 | 13 | ||
| 14 | /* Stack pointer must be 16-byte aligned. */ | ||
| 15 | if (sp & (16UL - 1)) | ||
| 16 | return false; | ||
| 17 | |||
| 14 | if (sp >= (base + sizeof(struct thread_info)) && | 18 | if (sp >= (base + sizeof(struct thread_info)) && |
| 15 | sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) | 19 | sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) |
| 16 | return true; | 20 | return true; |
diff --git a/arch/sparc/kernel/of_device_32.c b/arch/sparc/kernel/of_device_32.c index 4c26eb59e742..53a58b349849 100644 --- a/arch/sparc/kernel/of_device_32.c +++ b/arch/sparc/kernel/of_device_32.c | |||
| @@ -105,7 +105,7 @@ static unsigned long of_bus_sbus_get_flags(const u32 *addr, unsigned long flags) | |||
| 105 | 105 | ||
| 106 | static int of_bus_ambapp_match(struct device_node *np) | 106 | static int of_bus_ambapp_match(struct device_node *np) |
| 107 | { | 107 | { |
| 108 | return !strcmp(np->name, "ambapp"); | 108 | return !strcmp(np->type, "ambapp"); |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | static void of_bus_ambapp_count_cells(struct device_node *child, | 111 | static void of_bus_ambapp_count_cells(struct device_node *child, |
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index 539e83f8e087..592b03d85167 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c | |||
| @@ -247,6 +247,7 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm, | |||
| 247 | struct pci_bus *bus, int devfn) | 247 | struct pci_bus *bus, int devfn) |
| 248 | { | 248 | { |
| 249 | struct dev_archdata *sd; | 249 | struct dev_archdata *sd; |
| 250 | struct pci_slot *slot; | ||
| 250 | struct of_device *op; | 251 | struct of_device *op; |
| 251 | struct pci_dev *dev; | 252 | struct pci_dev *dev; |
| 252 | const char *type; | 253 | const char *type; |
| @@ -286,6 +287,11 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm, | |||
| 286 | dev->dev.bus = &pci_bus_type; | 287 | dev->dev.bus = &pci_bus_type; |
| 287 | dev->devfn = devfn; | 288 | dev->devfn = devfn; |
| 288 | dev->multifunction = 0; /* maybe a lie? */ | 289 | dev->multifunction = 0; /* maybe a lie? */ |
| 290 | set_pcie_port_type(dev); | ||
| 291 | |||
| 292 | list_for_each_entry(slot, &dev->bus->slots, list) | ||
| 293 | if (PCI_SLOT(dev->devfn) == slot->number) | ||
| 294 | dev->slot = slot; | ||
| 289 | 295 | ||
| 290 | dev->vendor = of_getintprop_default(node, "vendor-id", 0xffff); | 296 | dev->vendor = of_getintprop_default(node, "vendor-id", 0xffff); |
| 291 | dev->device = of_getintprop_default(node, "device-id", 0xffff); | 297 | dev->device = of_getintprop_default(node, "device-id", 0xffff); |
| @@ -322,6 +328,7 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm, | |||
| 322 | 328 | ||
| 323 | dev->current_state = 4; /* unknown power state */ | 329 | dev->current_state = 4; /* unknown power state */ |
| 324 | dev->error_state = pci_channel_io_normal; | 330 | dev->error_state = pci_channel_io_normal; |
| 331 | dev->dma_mask = 0xffffffff; | ||
| 325 | 332 | ||
| 326 | if (!strcmp(node->name, "pci")) { | 333 | if (!strcmp(node->name, "pci")) { |
| 327 | /* a PCI-PCI bridge */ | 334 | /* a PCI-PCI bridge */ |
diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c index 2830b415e214..c49865b30719 100644 --- a/arch/sparc/kernel/process_32.c +++ b/arch/sparc/kernel/process_32.c | |||
| @@ -526,7 +526,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp, | |||
| 526 | * Set some valid stack frames to give to the child. | 526 | * Set some valid stack frames to give to the child. |
| 527 | */ | 527 | */ |
| 528 | childstack = (struct sparc_stackf __user *) | 528 | childstack = (struct sparc_stackf __user *) |
| 529 | (sp & ~0x7UL); | 529 | (sp & ~0xfUL); |
| 530 | parentstack = (struct sparc_stackf __user *) | 530 | parentstack = (struct sparc_stackf __user *) |
| 531 | regs->u_regs[UREG_FP]; | 531 | regs->u_regs[UREG_FP]; |
| 532 | 532 | ||
diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c index c3f1cce0e95e..cb70476bd8f5 100644 --- a/arch/sparc/kernel/process_64.c +++ b/arch/sparc/kernel/process_64.c | |||
| @@ -398,11 +398,11 @@ static unsigned long clone_stackframe(unsigned long csp, unsigned long psp) | |||
| 398 | } else | 398 | } else |
| 399 | __get_user(fp, &(((struct reg_window32 __user *)psp)->ins[6])); | 399 | __get_user(fp, &(((struct reg_window32 __user *)psp)->ins[6])); |
| 400 | 400 | ||
| 401 | /* Now 8-byte align the stack as this is mandatory in the | 401 | /* Now align the stack as this is mandatory in the Sparc ABI |
| 402 | * Sparc ABI due to how register windows work. This hides | 402 | * due to how register windows work. This hides the |
| 403 | * the restriction from thread libraries etc. -DaveM | 403 | * restriction from thread libraries etc. |
| 404 | */ | 404 | */ |
| 405 | csp &= ~7UL; | 405 | csp &= ~15UL; |
| 406 | 406 | ||
| 407 | distance = fp - psp; | 407 | distance = fp - psp; |
| 408 | rval = (csp - distance); | 408 | rval = (csp - distance); |
diff --git a/arch/sparc/kernel/signal32.c b/arch/sparc/kernel/signal32.c index ba5b09ad6666..ea22cd373c64 100644 --- a/arch/sparc/kernel/signal32.c +++ b/arch/sparc/kernel/signal32.c | |||
| @@ -120,8 +120,8 @@ struct rt_signal_frame32 { | |||
| 120 | }; | 120 | }; |
| 121 | 121 | ||
| 122 | /* Align macros */ | 122 | /* Align macros */ |
| 123 | #define SF_ALIGNEDSZ (((sizeof(struct signal_frame32) + 7) & (~7))) | 123 | #define SF_ALIGNEDSZ (((sizeof(struct signal_frame32) + 15) & (~15))) |
| 124 | #define RT_ALIGNEDSZ (((sizeof(struct rt_signal_frame32) + 7) & (~7))) | 124 | #define RT_ALIGNEDSZ (((sizeof(struct rt_signal_frame32) + 15) & (~15))) |
| 125 | 125 | ||
| 126 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from) | 126 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from) |
| 127 | { | 127 | { |
| @@ -420,15 +420,17 @@ static void __user *get_sigframe(struct sigaction *sa, struct pt_regs *regs, uns | |||
| 420 | sp = current->sas_ss_sp + current->sas_ss_size; | 420 | sp = current->sas_ss_sp + current->sas_ss_size; |
| 421 | } | 421 | } |
| 422 | 422 | ||
| 423 | sp -= framesize; | ||
| 424 | |||
| 423 | /* Always align the stack frame. This handles two cases. First, | 425 | /* Always align the stack frame. This handles two cases. First, |
| 424 | * sigaltstack need not be mindful of platform specific stack | 426 | * sigaltstack need not be mindful of platform specific stack |
| 425 | * alignment. Second, if we took this signal because the stack | 427 | * alignment. Second, if we took this signal because the stack |
| 426 | * is not aligned properly, we'd like to take the signal cleanly | 428 | * is not aligned properly, we'd like to take the signal cleanly |
| 427 | * and report that. | 429 | * and report that. |
| 428 | */ | 430 | */ |
| 429 | sp &= ~7UL; | 431 | sp &= ~15UL; |
| 430 | 432 | ||
| 431 | return (void __user *)(sp - framesize); | 433 | return (void __user *) sp; |
| 432 | } | 434 | } |
| 433 | 435 | ||
| 434 | static int save_fpu_state32(struct pt_regs *regs, __siginfo_fpu_t __user *fpu) | 436 | static int save_fpu_state32(struct pt_regs *regs, __siginfo_fpu_t __user *fpu) |
diff --git a/arch/sparc/kernel/signal_32.c b/arch/sparc/kernel/signal_32.c index 7ce1a1005b1d..9882df92ba0a 100644 --- a/arch/sparc/kernel/signal_32.c +++ b/arch/sparc/kernel/signal_32.c | |||
| @@ -267,15 +267,17 @@ static inline void __user *get_sigframe(struct sigaction *sa, struct pt_regs *re | |||
| 267 | sp = current->sas_ss_sp + current->sas_ss_size; | 267 | sp = current->sas_ss_sp + current->sas_ss_size; |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | sp -= framesize; | ||
| 271 | |||
| 270 | /* Always align the stack frame. This handles two cases. First, | 272 | /* Always align the stack frame. This handles two cases. First, |
| 271 | * sigaltstack need not be mindful of platform specific stack | 273 | * sigaltstack need not be mindful of platform specific stack |
| 272 | * alignment. Second, if we took this signal because the stack | 274 | * alignment. Second, if we took this signal because the stack |
| 273 | * is not aligned properly, we'd like to take the signal cleanly | 275 | * is not aligned properly, we'd like to take the signal cleanly |
| 274 | * and report that. | 276 | * and report that. |
| 275 | */ | 277 | */ |
| 276 | sp &= ~7UL; | 278 | sp &= ~15UL; |
| 277 | 279 | ||
| 278 | return (void __user *)(sp - framesize); | 280 | return (void __user *) sp; |
| 279 | } | 281 | } |
| 280 | 282 | ||
| 281 | static inline int | 283 | static inline int |
diff --git a/arch/sparc/kernel/signal_64.c b/arch/sparc/kernel/signal_64.c index 647afbda7ae1..9fa48c30037e 100644 --- a/arch/sparc/kernel/signal_64.c +++ b/arch/sparc/kernel/signal_64.c | |||
| @@ -353,7 +353,7 @@ segv: | |||
| 353 | /* Checks if the fp is valid */ | 353 | /* Checks if the fp is valid */ |
| 354 | static int invalid_frame_pointer(void __user *fp, int fplen) | 354 | static int invalid_frame_pointer(void __user *fp, int fplen) |
| 355 | { | 355 | { |
| 356 | if (((unsigned long) fp) & 7) | 356 | if (((unsigned long) fp) & 15) |
| 357 | return 1; | 357 | return 1; |
| 358 | return 0; | 358 | return 0; |
| 359 | } | 359 | } |
| @@ -396,15 +396,17 @@ static inline void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs * | |||
| 396 | sp = current->sas_ss_sp + current->sas_ss_size; | 396 | sp = current->sas_ss_sp + current->sas_ss_size; |
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | sp -= framesize; | ||
| 400 | |||
| 399 | /* Always align the stack frame. This handles two cases. First, | 401 | /* Always align the stack frame. This handles two cases. First, |
| 400 | * sigaltstack need not be mindful of platform specific stack | 402 | * sigaltstack need not be mindful of platform specific stack |
| 401 | * alignment. Second, if we took this signal because the stack | 403 | * alignment. Second, if we took this signal because the stack |
| 402 | * is not aligned properly, we'd like to take the signal cleanly | 404 | * is not aligned properly, we'd like to take the signal cleanly |
| 403 | * and report that. | 405 | * and report that. |
| 404 | */ | 406 | */ |
| 405 | sp &= ~7UL; | 407 | sp &= ~15UL; |
| 406 | 408 | ||
| 407 | return (void __user *)(sp - framesize); | 409 | return (void __user *) sp; |
| 408 | } | 410 | } |
| 409 | 411 | ||
| 410 | static inline void | 412 | static inline void |
diff --git a/arch/sparc/kernel/tsb.S b/arch/sparc/kernel/tsb.S index 8c91d9b29a2f..db15d123f054 100644 --- a/arch/sparc/kernel/tsb.S +++ b/arch/sparc/kernel/tsb.S | |||
| @@ -191,10 +191,12 @@ tsb_dtlb_load: | |||
| 191 | 191 | ||
| 192 | tsb_itlb_load: | 192 | tsb_itlb_load: |
| 193 | /* Executable bit must be set. */ | 193 | /* Executable bit must be set. */ |
| 194 | 661: andcc %g5, _PAGE_EXEC_4U, %g0 | 194 | 661: sethi %hi(_PAGE_EXEC_4U), %g4 |
| 195 | .section .sun4v_1insn_patch, "ax" | 195 | andcc %g5, %g4, %g0 |
| 196 | .section .sun4v_2insn_patch, "ax" | ||
| 196 | .word 661b | 197 | .word 661b |
| 197 | andcc %g5, _PAGE_EXEC_4V, %g0 | 198 | andcc %g5, _PAGE_EXEC_4V, %g0 |
| 199 | nop | ||
| 198 | .previous | 200 | .previous |
| 199 | 201 | ||
| 200 | be,pn %xcc, tsb_do_fault | 202 | be,pn %xcc, tsb_do_fault |
diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h index 1994d3f58443..f2ad2163109d 100644 --- a/arch/x86/include/asm/elf.h +++ b/arch/x86/include/asm/elf.h | |||
| @@ -170,10 +170,7 @@ static inline void elf_common_init(struct thread_struct *t, | |||
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | #define ELF_PLAT_INIT(_r, load_addr) \ | 172 | #define ELF_PLAT_INIT(_r, load_addr) \ |
| 173 | do { \ | 173 | elf_common_init(¤t->thread, _r, 0) |
| 174 | elf_common_init(¤t->thread, _r, 0); \ | ||
| 175 | clear_thread_flag(TIF_IA32); \ | ||
| 176 | } while (0) | ||
| 177 | 174 | ||
| 178 | #define COMPAT_ELF_PLAT_INIT(regs, load_addr) \ | 175 | #define COMPAT_ELF_PLAT_INIT(regs, load_addr) \ |
| 179 | elf_common_init(¤t->thread, regs, __USER_DS) | 176 | elf_common_init(¤t->thread, regs, __USER_DS) |
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index fc801bab1b3b..b753ea59703a 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
| @@ -450,6 +450,8 @@ struct thread_struct { | |||
| 450 | struct perf_event *ptrace_bps[HBP_NUM]; | 450 | struct perf_event *ptrace_bps[HBP_NUM]; |
| 451 | /* Debug status used for traps, single steps, etc... */ | 451 | /* Debug status used for traps, single steps, etc... */ |
| 452 | unsigned long debugreg6; | 452 | unsigned long debugreg6; |
| 453 | /* Keep track of the exact dr7 value set by the user */ | ||
| 454 | unsigned long ptrace_dr7; | ||
| 453 | /* Fault info: */ | 455 | /* Fault info: */ |
| 454 | unsigned long cr2; | 456 | unsigned long cr2; |
| 455 | unsigned long trap_no; | 457 | unsigned long trap_no; |
diff --git a/arch/x86/include/asm/system.h b/arch/x86/include/asm/system.h index ecb544e65382..e04740f7a0bb 100644 --- a/arch/x86/include/asm/system.h +++ b/arch/x86/include/asm/system.h | |||
| @@ -11,9 +11,9 @@ | |||
| 11 | #include <linux/irqflags.h> | 11 | #include <linux/irqflags.h> |
| 12 | 12 | ||
| 13 | /* entries in ARCH_DLINFO: */ | 13 | /* entries in ARCH_DLINFO: */ |
| 14 | #ifdef CONFIG_IA32_EMULATION | 14 | #if defined(CONFIG_IA32_EMULATION) || !defined(CONFIG_X86_64) |
| 15 | # define AT_VECTOR_SIZE_ARCH 2 | 15 | # define AT_VECTOR_SIZE_ARCH 2 |
| 16 | #else | 16 | #else /* else it's non-compat x86-64 */ |
| 17 | # define AT_VECTOR_SIZE_ARCH 1 | 17 | # define AT_VECTOR_SIZE_ARCH 1 |
| 18 | #endif | 18 | #endif |
| 19 | 19 | ||
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 036d28adf59d..af1c5833ff23 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
| @@ -1185,9 +1185,6 @@ static void __init acpi_process_madt(void) | |||
| 1185 | if (!error) { | 1185 | if (!error) { |
| 1186 | acpi_lapic = 1; | 1186 | acpi_lapic = 1; |
| 1187 | 1187 | ||
| 1188 | #ifdef CONFIG_X86_BIGSMP | ||
| 1189 | generic_bigsmp_probe(); | ||
| 1190 | #endif | ||
| 1191 | /* | 1188 | /* |
| 1192 | * Parse MADT IO-APIC entries | 1189 | * Parse MADT IO-APIC entries |
| 1193 | */ | 1190 | */ |
| @@ -1197,8 +1194,6 @@ static void __init acpi_process_madt(void) | |||
| 1197 | acpi_ioapic = 1; | 1194 | acpi_ioapic = 1; |
| 1198 | 1195 | ||
| 1199 | smp_found_config = 1; | 1196 | smp_found_config = 1; |
| 1200 | if (apic->setup_apic_routing) | ||
| 1201 | apic->setup_apic_routing(); | ||
| 1202 | } | 1197 | } |
| 1203 | } | 1198 | } |
| 1204 | if (error == -EINVAL) { | 1199 | if (error == -EINVAL) { |
| @@ -1349,14 +1344,6 @@ static struct dmi_system_id __initdata acpi_dmi_table[] = { | |||
| 1349 | }, | 1344 | }, |
| 1350 | { | 1345 | { |
| 1351 | .callback = force_acpi_ht, | 1346 | .callback = force_acpi_ht, |
| 1352 | .ident = "ASUS P2B-DS", | ||
| 1353 | .matches = { | ||
| 1354 | DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."), | ||
| 1355 | DMI_MATCH(DMI_BOARD_NAME, "P2B-DS"), | ||
| 1356 | }, | ||
| 1357 | }, | ||
| 1358 | { | ||
| 1359 | .callback = force_acpi_ht, | ||
| 1360 | .ident = "ASUS CUR-DLS", | 1347 | .ident = "ASUS CUR-DLS", |
| 1361 | .matches = { | 1348 | .matches = { |
| 1362 | DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."), | 1349 | DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."), |
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 3987e4408f75..dfca210f6a10 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
| @@ -1641,9 +1641,7 @@ int __init APIC_init_uniprocessor(void) | |||
| 1641 | #endif | 1641 | #endif |
| 1642 | 1642 | ||
| 1643 | enable_IR_x2apic(); | 1643 | enable_IR_x2apic(); |
| 1644 | #ifdef CONFIG_X86_64 | ||
| 1645 | default_setup_apic_routing(); | 1644 | default_setup_apic_routing(); |
| 1646 | #endif | ||
| 1647 | 1645 | ||
| 1648 | verify_local_APIC(); | 1646 | verify_local_APIC(); |
| 1649 | connect_bsp_APIC(); | 1647 | connect_bsp_APIC(); |
| @@ -1891,21 +1889,6 @@ void __cpuinit generic_processor_info(int apicid, int version) | |||
| 1891 | if (apicid > max_physical_apicid) | 1889 | if (apicid > max_physical_apicid) |
| 1892 | max_physical_apicid = apicid; | 1890 | max_physical_apicid = apicid; |
| 1893 | 1891 | ||
| 1894 | #ifdef CONFIG_X86_32 | ||
| 1895 | if (num_processors > 8) { | ||
| 1896 | switch (boot_cpu_data.x86_vendor) { | ||
| 1897 | case X86_VENDOR_INTEL: | ||
| 1898 | if (!APIC_XAPIC(version)) { | ||
| 1899 | def_to_bigsmp = 0; | ||
| 1900 | break; | ||
| 1901 | } | ||
| 1902 | /* If P4 and above fall through */ | ||
| 1903 | case X86_VENDOR_AMD: | ||
| 1904 | def_to_bigsmp = 1; | ||
| 1905 | } | ||
| 1906 | } | ||
| 1907 | #endif | ||
| 1908 | |||
| 1909 | #if defined(CONFIG_SMP) || defined(CONFIG_X86_64) | 1892 | #if defined(CONFIG_SMP) || defined(CONFIG_X86_64) |
| 1910 | early_per_cpu(x86_cpu_to_apicid, cpu) = apicid; | 1893 | early_per_cpu(x86_cpu_to_apicid, cpu) = apicid; |
| 1911 | early_per_cpu(x86_bios_cpu_apicid, cpu) = apicid; | 1894 | early_per_cpu(x86_bios_cpu_apicid, cpu) = apicid; |
diff --git a/arch/x86/kernel/apic/probe_32.c b/arch/x86/kernel/apic/probe_32.c index 1a6559f6768c..99d2fe016084 100644 --- a/arch/x86/kernel/apic/probe_32.c +++ b/arch/x86/kernel/apic/probe_32.c | |||
| @@ -52,7 +52,32 @@ static int __init print_ipi_mode(void) | |||
| 52 | } | 52 | } |
| 53 | late_initcall(print_ipi_mode); | 53 | late_initcall(print_ipi_mode); |
| 54 | 54 | ||
| 55 | void default_setup_apic_routing(void) | 55 | void __init default_setup_apic_routing(void) |
| 56 | { | ||
| 57 | int version = apic_version[boot_cpu_physical_apicid]; | ||
| 58 | |||
| 59 | if (num_possible_cpus() > 8) { | ||
| 60 | switch (boot_cpu_data.x86_vendor) { | ||
| 61 | case X86_VENDOR_INTEL: | ||
| 62 | if (!APIC_XAPIC(version)) { | ||
| 63 | def_to_bigsmp = 0; | ||
| 64 | break; | ||
| 65 | } | ||
| 66 | /* If P4 and above fall through */ | ||
| 67 | case X86_VENDOR_AMD: | ||
| 68 | def_to_bigsmp = 1; | ||
| 69 | } | ||
| 70 | } | ||
| 71 | |||
| 72 | #ifdef CONFIG_X86_BIGSMP | ||
| 73 | generic_bigsmp_probe(); | ||
| 74 | #endif | ||
| 75 | |||
| 76 | if (apic->setup_apic_routing) | ||
| 77 | apic->setup_apic_routing(); | ||
| 78 | } | ||
| 79 | |||
| 80 | static void setup_apic_flat_routing(void) | ||
| 56 | { | 81 | { |
| 57 | #ifdef CONFIG_X86_IO_APIC | 82 | #ifdef CONFIG_X86_IO_APIC |
| 58 | printk(KERN_INFO | 83 | printk(KERN_INFO |
| @@ -103,7 +128,7 @@ struct apic apic_default = { | |||
| 103 | .init_apic_ldr = default_init_apic_ldr, | 128 | .init_apic_ldr = default_init_apic_ldr, |
| 104 | 129 | ||
| 105 | .ioapic_phys_id_map = default_ioapic_phys_id_map, | 130 | .ioapic_phys_id_map = default_ioapic_phys_id_map, |
| 106 | .setup_apic_routing = default_setup_apic_routing, | 131 | .setup_apic_routing = setup_apic_flat_routing, |
| 107 | .multi_timer_check = NULL, | 132 | .multi_timer_check = NULL, |
| 108 | .apicid_to_node = default_apicid_to_node, | 133 | .apicid_to_node = default_apicid_to_node, |
| 109 | .cpu_to_logical_apicid = default_cpu_to_logical_apicid, | 134 | .cpu_to_logical_apicid = default_cpu_to_logical_apicid, |
diff --git a/arch/x86/kernel/apic/probe_64.c b/arch/x86/kernel/apic/probe_64.c index 450fe2064a14..83e9be4778e2 100644 --- a/arch/x86/kernel/apic/probe_64.c +++ b/arch/x86/kernel/apic/probe_64.c | |||
| @@ -67,7 +67,7 @@ void __init default_setup_apic_routing(void) | |||
| 67 | } | 67 | } |
| 68 | #endif | 68 | #endif |
| 69 | 69 | ||
| 70 | if (apic == &apic_flat && num_processors > 8) | 70 | if (apic == &apic_flat && num_possible_cpus() > 8) |
| 71 | apic = &apic_physflat; | 71 | apic = &apic_physflat; |
| 72 | 72 | ||
| 73 | printk(KERN_INFO "Setting APIC routing to %s\n", apic->name); | 73 | printk(KERN_INFO "Setting APIC routing to %s\n", apic->name); |
diff --git a/arch/x86/kernel/hw_breakpoint.c b/arch/x86/kernel/hw_breakpoint.c index 05d5fec64a94..bb6006e3e295 100644 --- a/arch/x86/kernel/hw_breakpoint.c +++ b/arch/x86/kernel/hw_breakpoint.c | |||
| @@ -212,25 +212,6 @@ static int arch_check_va_in_kernelspace(unsigned long va, u8 hbp_len) | |||
| 212 | return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); | 212 | return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); |
| 213 | } | 213 | } |
| 214 | 214 | ||
| 215 | /* | ||
| 216 | * Store a breakpoint's encoded address, length, and type. | ||
| 217 | */ | ||
| 218 | static int arch_store_info(struct perf_event *bp) | ||
| 219 | { | ||
| 220 | struct arch_hw_breakpoint *info = counter_arch_bp(bp); | ||
| 221 | /* | ||
| 222 | * For kernel-addresses, either the address or symbol name can be | ||
| 223 | * specified. | ||
| 224 | */ | ||
| 225 | if (info->name) | ||
| 226 | info->address = (unsigned long) | ||
| 227 | kallsyms_lookup_name(info->name); | ||
| 228 | if (info->address) | ||
| 229 | return 0; | ||
| 230 | |||
| 231 | return -EINVAL; | ||
| 232 | } | ||
| 233 | |||
| 234 | int arch_bp_generic_fields(int x86_len, int x86_type, | 215 | int arch_bp_generic_fields(int x86_len, int x86_type, |
| 235 | int *gen_len, int *gen_type) | 216 | int *gen_len, int *gen_type) |
| 236 | { | 217 | { |
| @@ -362,10 +343,13 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp, | |||
| 362 | return ret; | 343 | return ret; |
| 363 | } | 344 | } |
| 364 | 345 | ||
| 365 | ret = arch_store_info(bp); | 346 | /* |
| 366 | 347 | * For kernel-addresses, either the address or symbol name can be | |
| 367 | if (ret < 0) | 348 | * specified. |
| 368 | return ret; | 349 | */ |
| 350 | if (info->name) | ||
| 351 | info->address = (unsigned long) | ||
| 352 | kallsyms_lookup_name(info->name); | ||
| 369 | /* | 353 | /* |
| 370 | * Check that the low-order bits of the address are appropriate | 354 | * Check that the low-order bits of the address are appropriate |
| 371 | * for the alignment implied by len. | 355 | * for the alignment implied by len. |
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 40b54ceb68b5..a2c1edd2d3ac 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
| @@ -359,13 +359,6 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early) | |||
| 359 | x86_init.mpparse.mpc_record(1); | 359 | x86_init.mpparse.mpc_record(1); |
| 360 | } | 360 | } |
| 361 | 361 | ||
| 362 | #ifdef CONFIG_X86_BIGSMP | ||
| 363 | generic_bigsmp_probe(); | ||
| 364 | #endif | ||
| 365 | |||
| 366 | if (apic->setup_apic_routing) | ||
| 367 | apic->setup_apic_routing(); | ||
| 368 | |||
| 369 | if (!num_processors) | 362 | if (!num_processors) |
| 370 | printk(KERN_ERR "MPTABLE: no processors registered!\n"); | 363 | printk(KERN_ERR "MPTABLE: no processors registered!\n"); |
| 371 | return num_processors; | 364 | return num_processors; |
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 41a26a82470a..126f0b493d04 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
| @@ -527,6 +527,7 @@ void set_personality_ia32(void) | |||
| 527 | 527 | ||
| 528 | /* Make sure to be in 32bit mode */ | 528 | /* Make sure to be in 32bit mode */ |
| 529 | set_thread_flag(TIF_IA32); | 529 | set_thread_flag(TIF_IA32); |
| 530 | current->personality |= force_personality32; | ||
| 530 | 531 | ||
| 531 | /* Prepare the first "return" to user space */ | 532 | /* Prepare the first "return" to user space */ |
| 532 | current_thread_info()->status |= TS_COMPAT; | 533 | current_thread_info()->status |= TS_COMPAT; |
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index 017d937639fe..0c1033d61e59 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c | |||
| @@ -702,7 +702,7 @@ static unsigned long ptrace_get_debugreg(struct task_struct *tsk, int n) | |||
| 702 | } else if (n == 6) { | 702 | } else if (n == 6) { |
| 703 | val = thread->debugreg6; | 703 | val = thread->debugreg6; |
| 704 | } else if (n == 7) { | 704 | } else if (n == 7) { |
| 705 | val = ptrace_get_dr7(thread->ptrace_bps); | 705 | val = thread->ptrace_dr7; |
| 706 | } | 706 | } |
| 707 | return val; | 707 | return val; |
| 708 | } | 708 | } |
| @@ -778,8 +778,11 @@ int ptrace_set_debugreg(struct task_struct *tsk, int n, unsigned long val) | |||
| 778 | return rc; | 778 | return rc; |
| 779 | } | 779 | } |
| 780 | /* All that's left is DR7 */ | 780 | /* All that's left is DR7 */ |
| 781 | if (n == 7) | 781 | if (n == 7) { |
| 782 | rc = ptrace_write_dr7(tsk, val); | 782 | rc = ptrace_write_dr7(tsk, val); |
| 783 | if (!rc) | ||
| 784 | thread->ptrace_dr7 = val; | ||
| 785 | } | ||
| 783 | 786 | ||
| 784 | ret_path: | 787 | ret_path: |
| 785 | return rc; | 788 | return rc; |
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 678d0b8c26f3..b4e870cbdc60 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
| @@ -1083,9 +1083,7 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) | |||
| 1083 | set_cpu_sibling_map(0); | 1083 | set_cpu_sibling_map(0); |
| 1084 | 1084 | ||
| 1085 | enable_IR_x2apic(); | 1085 | enable_IR_x2apic(); |
| 1086 | #ifdef CONFIG_X86_64 | ||
| 1087 | default_setup_apic_routing(); | 1086 | default_setup_apic_routing(); |
| 1088 | #endif | ||
| 1089 | 1087 | ||
| 1090 | if (smp_sanity_check(max_cpus) < 0) { | 1088 | if (smp_sanity_check(max_cpus) < 0) { |
| 1091 | printk(KERN_INFO "SMP disabled\n"); | 1089 | printk(KERN_INFO "SMP disabled\n"); |
diff --git a/arch/x86/mm/gup.c b/arch/x86/mm/gup.c index 71da1bca13cb..738e6593799d 100644 --- a/arch/x86/mm/gup.c +++ b/arch/x86/mm/gup.c | |||
| @@ -18,7 +18,7 @@ static inline pte_t gup_get_pte(pte_t *ptep) | |||
| 18 | #else | 18 | #else |
| 19 | /* | 19 | /* |
| 20 | * With get_user_pages_fast, we walk down the pagetables without taking | 20 | * With get_user_pages_fast, we walk down the pagetables without taking |
| 21 | * any locks. For this we would like to load the pointers atoimcally, | 21 | * any locks. For this we would like to load the pointers atomically, |
| 22 | * but that is not possible (without expensive cmpxchg8b) on PAE. What | 22 | * but that is not possible (without expensive cmpxchg8b) on PAE. What |
| 23 | * we do have is the guarantee that a pte will only either go from not | 23 | * we do have is the guarantee that a pte will only either go from not |
| 24 | * present to present, or present to not present or both -- it will not | 24 | * present to present, or present to not present or both -- it will not |
diff --git a/block/blk-core.c b/block/blk-core.c index 718897e6d37f..d1a9a0a64f95 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
| @@ -1147,7 +1147,7 @@ void init_request_from_bio(struct request *req, struct bio *bio) | |||
| 1147 | */ | 1147 | */ |
| 1148 | static inline bool queue_should_plug(struct request_queue *q) | 1148 | static inline bool queue_should_plug(struct request_queue *q) |
| 1149 | { | 1149 | { |
| 1150 | return !(blk_queue_nonrot(q) && blk_queue_queuing(q)); | 1150 | return !(blk_queue_nonrot(q) && blk_queue_tagged(q)); |
| 1151 | } | 1151 | } |
| 1152 | 1152 | ||
| 1153 | static int __make_request(struct request_queue *q, struct bio *bio) | 1153 | static int __make_request(struct request_queue *q, struct bio *bio) |
| @@ -1859,15 +1859,8 @@ void blk_dequeue_request(struct request *rq) | |||
| 1859 | * and to it is freed is accounted as io that is in progress at | 1859 | * and to it is freed is accounted as io that is in progress at |
| 1860 | * the driver side. | 1860 | * the driver side. |
| 1861 | */ | 1861 | */ |
| 1862 | if (blk_account_rq(rq)) { | 1862 | if (blk_account_rq(rq)) |
| 1863 | q->in_flight[rq_is_sync(rq)]++; | 1863 | q->in_flight[rq_is_sync(rq)]++; |
| 1864 | /* | ||
| 1865 | * Mark this device as supporting hardware queuing, if | ||
| 1866 | * we have more IOs in flight than 4. | ||
| 1867 | */ | ||
| 1868 | if (!blk_queue_queuing(q) && queue_in_flight(q) > 4) | ||
| 1869 | set_bit(QUEUE_FLAG_CQ, &q->queue_flags); | ||
| 1870 | } | ||
| 1871 | } | 1864 | } |
| 1872 | 1865 | ||
| 1873 | /** | 1866 | /** |
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 17b768d0d42f..023f4e69a337 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
| @@ -42,16 +42,13 @@ static const int cfq_hist_divisor = 4; | |||
| 42 | */ | 42 | */ |
| 43 | #define CFQ_MIN_TT (2) | 43 | #define CFQ_MIN_TT (2) |
| 44 | 44 | ||
| 45 | /* | ||
| 46 | * Allow merged cfqqs to perform this amount of seeky I/O before | ||
| 47 | * deciding to break the queues up again. | ||
| 48 | */ | ||
| 49 | #define CFQQ_COOP_TOUT (HZ) | ||
| 50 | |||
| 51 | #define CFQ_SLICE_SCALE (5) | 45 | #define CFQ_SLICE_SCALE (5) |
| 52 | #define CFQ_HW_QUEUE_MIN (5) | 46 | #define CFQ_HW_QUEUE_MIN (5) |
| 53 | #define CFQ_SERVICE_SHIFT 12 | 47 | #define CFQ_SERVICE_SHIFT 12 |
| 54 | 48 | ||
| 49 | #define CFQQ_SEEK_THR 8 * 1024 | ||
| 50 | #define CFQQ_SEEKY(cfqq) ((cfqq)->seek_mean > CFQQ_SEEK_THR) | ||
| 51 | |||
| 55 | #define RQ_CIC(rq) \ | 52 | #define RQ_CIC(rq) \ |
| 56 | ((struct cfq_io_context *) (rq)->elevator_private) | 53 | ((struct cfq_io_context *) (rq)->elevator_private) |
| 57 | #define RQ_CFQQ(rq) (struct cfq_queue *) ((rq)->elevator_private2) | 54 | #define RQ_CFQQ(rq) (struct cfq_queue *) ((rq)->elevator_private2) |
| @@ -137,7 +134,6 @@ struct cfq_queue { | |||
| 137 | u64 seek_total; | 134 | u64 seek_total; |
| 138 | sector_t seek_mean; | 135 | sector_t seek_mean; |
| 139 | sector_t last_request_pos; | 136 | sector_t last_request_pos; |
| 140 | unsigned long seeky_start; | ||
| 141 | 137 | ||
| 142 | pid_t pid; | 138 | pid_t pid; |
| 143 | 139 | ||
| @@ -314,6 +310,7 @@ enum cfqq_state_flags { | |||
| 314 | CFQ_CFQQ_FLAG_slice_new, /* no requests dispatched in slice */ | 310 | CFQ_CFQQ_FLAG_slice_new, /* no requests dispatched in slice */ |
| 315 | CFQ_CFQQ_FLAG_sync, /* synchronous queue */ | 311 | CFQ_CFQQ_FLAG_sync, /* synchronous queue */ |
| 316 | CFQ_CFQQ_FLAG_coop, /* cfqq is shared */ | 312 | CFQ_CFQQ_FLAG_coop, /* cfqq is shared */ |
| 313 | CFQ_CFQQ_FLAG_split_coop, /* shared cfqq will be splitted */ | ||
| 317 | CFQ_CFQQ_FLAG_deep, /* sync cfqq experienced large depth */ | 314 | CFQ_CFQQ_FLAG_deep, /* sync cfqq experienced large depth */ |
| 318 | CFQ_CFQQ_FLAG_wait_busy, /* Waiting for next request */ | 315 | CFQ_CFQQ_FLAG_wait_busy, /* Waiting for next request */ |
| 319 | }; | 316 | }; |
| @@ -342,6 +339,7 @@ CFQ_CFQQ_FNS(prio_changed); | |||
| 342 | CFQ_CFQQ_FNS(slice_new); | 339 | CFQ_CFQQ_FNS(slice_new); |
| 343 | CFQ_CFQQ_FNS(sync); | 340 | CFQ_CFQQ_FNS(sync); |
| 344 | CFQ_CFQQ_FNS(coop); | 341 | CFQ_CFQQ_FNS(coop); |
| 342 | CFQ_CFQQ_FNS(split_coop); | ||
| 345 | CFQ_CFQQ_FNS(deep); | 343 | CFQ_CFQQ_FNS(deep); |
| 346 | CFQ_CFQQ_FNS(wait_busy); | 344 | CFQ_CFQQ_FNS(wait_busy); |
| 347 | #undef CFQ_CFQQ_FNS | 345 | #undef CFQ_CFQQ_FNS |
| @@ -1566,6 +1564,15 @@ __cfq_slice_expired(struct cfq_data *cfqd, struct cfq_queue *cfqq, | |||
| 1566 | cfq_clear_cfqq_wait_busy(cfqq); | 1564 | cfq_clear_cfqq_wait_busy(cfqq); |
| 1567 | 1565 | ||
| 1568 | /* | 1566 | /* |
| 1567 | * If this cfqq is shared between multiple processes, check to | ||
| 1568 | * make sure that those processes are still issuing I/Os within | ||
| 1569 | * the mean seek distance. If not, it may be time to break the | ||
| 1570 | * queues apart again. | ||
| 1571 | */ | ||
| 1572 | if (cfq_cfqq_coop(cfqq) && CFQQ_SEEKY(cfqq)) | ||
| 1573 | cfq_mark_cfqq_split_coop(cfqq); | ||
| 1574 | |||
| 1575 | /* | ||
| 1569 | * store what was left of this slice, if the queue idled/timed out | 1576 | * store what was left of this slice, if the queue idled/timed out |
| 1570 | */ | 1577 | */ |
| 1571 | if (timed_out && !cfq_cfqq_slice_new(cfqq)) { | 1578 | if (timed_out && !cfq_cfqq_slice_new(cfqq)) { |
| @@ -1663,9 +1670,6 @@ static inline sector_t cfq_dist_from_last(struct cfq_data *cfqd, | |||
| 1663 | return cfqd->last_position - blk_rq_pos(rq); | 1670 | return cfqd->last_position - blk_rq_pos(rq); |
| 1664 | } | 1671 | } |
| 1665 | 1672 | ||
| 1666 | #define CFQQ_SEEK_THR 8 * 1024 | ||
| 1667 | #define CFQQ_SEEKY(cfqq) ((cfqq)->seek_mean > CFQQ_SEEK_THR) | ||
| 1668 | |||
| 1669 | static inline int cfq_rq_close(struct cfq_data *cfqd, struct cfq_queue *cfqq, | 1673 | static inline int cfq_rq_close(struct cfq_data *cfqd, struct cfq_queue *cfqq, |
| 1670 | struct request *rq, bool for_preempt) | 1674 | struct request *rq, bool for_preempt) |
| 1671 | { | 1675 | { |
| @@ -3000,19 +3004,6 @@ cfq_update_io_seektime(struct cfq_data *cfqd, struct cfq_queue *cfqq, | |||
| 3000 | total = cfqq->seek_total + (cfqq->seek_samples/2); | 3004 | total = cfqq->seek_total + (cfqq->seek_samples/2); |
| 3001 | do_div(total, cfqq->seek_samples); | 3005 | do_div(total, cfqq->seek_samples); |
| 3002 | cfqq->seek_mean = (sector_t)total; | 3006 | cfqq->seek_mean = (sector_t)total; |
| 3003 | |||
| 3004 | /* | ||
| 3005 | * If this cfqq is shared between multiple processes, check to | ||
| 3006 | * make sure that those processes are still issuing I/Os within | ||
| 3007 | * the mean seek distance. If not, it may be time to break the | ||
| 3008 | * queues apart again. | ||
| 3009 | */ | ||
| 3010 | if (cfq_cfqq_coop(cfqq)) { | ||
| 3011 | if (CFQQ_SEEKY(cfqq) && !cfqq->seeky_start) | ||
| 3012 | cfqq->seeky_start = jiffies; | ||
| 3013 | else if (!CFQQ_SEEKY(cfqq)) | ||
| 3014 | cfqq->seeky_start = 0; | ||
| 3015 | } | ||
| 3016 | } | 3007 | } |
| 3017 | 3008 | ||
| 3018 | /* | 3009 | /* |
| @@ -3453,14 +3444,6 @@ cfq_merge_cfqqs(struct cfq_data *cfqd, struct cfq_io_context *cic, | |||
| 3453 | return cic_to_cfqq(cic, 1); | 3444 | return cic_to_cfqq(cic, 1); |
| 3454 | } | 3445 | } |
| 3455 | 3446 | ||
| 3456 | static int should_split_cfqq(struct cfq_queue *cfqq) | ||
| 3457 | { | ||
| 3458 | if (cfqq->seeky_start && | ||
| 3459 | time_after(jiffies, cfqq->seeky_start + CFQQ_COOP_TOUT)) | ||
| 3460 | return 1; | ||
| 3461 | return 0; | ||
| 3462 | } | ||
| 3463 | |||
| 3464 | /* | 3447 | /* |
| 3465 | * Returns NULL if a new cfqq should be allocated, or the old cfqq if this | 3448 | * Returns NULL if a new cfqq should be allocated, or the old cfqq if this |
| 3466 | * was the last process referring to said cfqq. | 3449 | * was the last process referring to said cfqq. |
| @@ -3469,9 +3452,9 @@ static struct cfq_queue * | |||
| 3469 | split_cfqq(struct cfq_io_context *cic, struct cfq_queue *cfqq) | 3452 | split_cfqq(struct cfq_io_context *cic, struct cfq_queue *cfqq) |
| 3470 | { | 3453 | { |
| 3471 | if (cfqq_process_refs(cfqq) == 1) { | 3454 | if (cfqq_process_refs(cfqq) == 1) { |
| 3472 | cfqq->seeky_start = 0; | ||
| 3473 | cfqq->pid = current->pid; | 3455 | cfqq->pid = current->pid; |
| 3474 | cfq_clear_cfqq_coop(cfqq); | 3456 | cfq_clear_cfqq_coop(cfqq); |
| 3457 | cfq_clear_cfqq_split_coop(cfqq); | ||
| 3475 | return cfqq; | 3458 | return cfqq; |
| 3476 | } | 3459 | } |
| 3477 | 3460 | ||
| @@ -3510,7 +3493,7 @@ new_queue: | |||
| 3510 | /* | 3493 | /* |
| 3511 | * If the queue was seeky for too long, break it apart. | 3494 | * If the queue was seeky for too long, break it apart. |
| 3512 | */ | 3495 | */ |
| 3513 | if (cfq_cfqq_coop(cfqq) && should_split_cfqq(cfqq)) { | 3496 | if (cfq_cfqq_coop(cfqq) && cfq_cfqq_split_coop(cfqq)) { |
| 3514 | cfq_log_cfqq(cfqd, cfqq, "breaking apart cfqq"); | 3497 | cfq_log_cfqq(cfqd, cfqq, "breaking apart cfqq"); |
| 3515 | cfqq = split_cfqq(cic, cfqq); | 3498 | cfqq = split_cfqq(cic, cfqq); |
| 3516 | if (!cfqq) | 3499 | if (!cfqq) |
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index bbc2c1315c47..b2586f57e1f5 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c | |||
| @@ -935,6 +935,7 @@ static int dock_add(acpi_handle handle) | |||
| 935 | struct platform_device *dd; | 935 | struct platform_device *dd; |
| 936 | 936 | ||
| 937 | id = dock_station_count; | 937 | id = dock_station_count; |
| 938 | memset(&ds, 0, sizeof(ds)); | ||
| 938 | dd = platform_device_register_data(NULL, "dock", id, &ds, sizeof(ds)); | 939 | dd = platform_device_register_data(NULL, "dock", id, &ds, sizeof(ds)); |
| 939 | if (IS_ERR(dd)) | 940 | if (IS_ERR(dd)) |
| 940 | return PTR_ERR(dd); | 941 | return PTR_ERR(dd); |
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 7c0441f63b39..cc978a8c00b7 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
| @@ -110,6 +110,14 @@ static struct dmi_system_id __cpuinitdata processor_power_dmi_table[] = { | |||
| 110 | DMI_MATCH(DMI_BIOS_VENDOR,"Phoenix Technologies LTD"), | 110 | DMI_MATCH(DMI_BIOS_VENDOR,"Phoenix Technologies LTD"), |
| 111 | DMI_MATCH(DMI_BIOS_VERSION,"SHE845M0.86C.0013.D.0302131307")}, | 111 | DMI_MATCH(DMI_BIOS_VERSION,"SHE845M0.86C.0013.D.0302131307")}, |
| 112 | (void *)2}, | 112 | (void *)2}, |
| 113 | { set_max_cstate, "Pavilion zv5000", { | ||
| 114 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), | ||
| 115 | DMI_MATCH(DMI_PRODUCT_NAME,"Pavilion zv5000 (DS502A#ABA)")}, | ||
| 116 | (void *)1}, | ||
| 117 | { set_max_cstate, "Asus L8400B", { | ||
| 118 | DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer Inc."), | ||
| 119 | DMI_MATCH(DMI_PRODUCT_NAME,"L8400B series Notebook PC")}, | ||
| 120 | (void *)1}, | ||
| 113 | {}, | 121 | {}, |
| 114 | }; | 122 | }; |
| 115 | 123 | ||
| @@ -872,12 +880,14 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev, | |||
| 872 | return(acpi_idle_enter_c1(dev, state)); | 880 | return(acpi_idle_enter_c1(dev, state)); |
| 873 | 881 | ||
| 874 | local_irq_disable(); | 882 | local_irq_disable(); |
| 875 | current_thread_info()->status &= ~TS_POLLING; | 883 | if (cx->entry_method != ACPI_CSTATE_FFH) { |
| 876 | /* | 884 | current_thread_info()->status &= ~TS_POLLING; |
| 877 | * TS_POLLING-cleared state must be visible before we test | 885 | /* |
| 878 | * NEED_RESCHED: | 886 | * TS_POLLING-cleared state must be visible before we test |
| 879 | */ | 887 | * NEED_RESCHED: |
| 880 | smp_mb(); | 888 | */ |
| 889 | smp_mb(); | ||
| 890 | } | ||
| 881 | 891 | ||
| 882 | if (unlikely(need_resched())) { | 892 | if (unlikely(need_resched())) { |
| 883 | current_thread_info()->status |= TS_POLLING; | 893 | current_thread_info()->status |= TS_POLLING; |
| @@ -957,12 +967,14 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev, | |||
| 957 | } | 967 | } |
| 958 | 968 | ||
| 959 | local_irq_disable(); | 969 | local_irq_disable(); |
| 960 | current_thread_info()->status &= ~TS_POLLING; | 970 | if (cx->entry_method != ACPI_CSTATE_FFH) { |
| 961 | /* | 971 | current_thread_info()->status &= ~TS_POLLING; |
| 962 | * TS_POLLING-cleared state must be visible before we test | 972 | /* |
| 963 | * NEED_RESCHED: | 973 | * TS_POLLING-cleared state must be visible before we test |
| 964 | */ | 974 | * NEED_RESCHED: |
| 965 | smp_mb(); | 975 | */ |
| 976 | smp_mb(); | ||
| 977 | } | ||
| 966 | 978 | ||
| 967 | if (unlikely(need_resched())) { | 979 | if (unlikely(need_resched())) { |
| 968 | current_thread_info()->status |= TS_POLLING; | 980 | current_thread_info()->status |= TS_POLLING; |
diff --git a/drivers/acpi/processor_pdc.c b/drivers/acpi/processor_pdc.c index 7247819dbd80..e306ba9aa34e 100644 --- a/drivers/acpi/processor_pdc.c +++ b/drivers/acpi/processor_pdc.c | |||
| @@ -125,6 +125,8 @@ acpi_processor_eval_pdc(acpi_handle handle, struct acpi_object_list *pdc_in) | |||
| 125 | return status; | 125 | return status; |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | static int early_pdc_done; | ||
| 129 | |||
| 128 | void acpi_processor_set_pdc(acpi_handle handle) | 130 | void acpi_processor_set_pdc(acpi_handle handle) |
| 129 | { | 131 | { |
| 130 | struct acpi_object_list *obj_list; | 132 | struct acpi_object_list *obj_list; |
| @@ -132,6 +134,9 @@ void acpi_processor_set_pdc(acpi_handle handle) | |||
| 132 | if (arch_has_acpi_pdc() == false) | 134 | if (arch_has_acpi_pdc() == false) |
| 133 | return; | 135 | return; |
| 134 | 136 | ||
| 137 | if (early_pdc_done) | ||
| 138 | return; | ||
| 139 | |||
| 135 | obj_list = acpi_processor_alloc_pdc(); | 140 | obj_list = acpi_processor_alloc_pdc(); |
| 136 | if (!obj_list) | 141 | if (!obj_list) |
| 137 | return; | 142 | return; |
| @@ -151,6 +156,13 @@ static int set_early_pdc_optin(const struct dmi_system_id *id) | |||
| 151 | return 0; | 156 | return 0; |
| 152 | } | 157 | } |
| 153 | 158 | ||
| 159 | static int param_early_pdc_optin(char *s) | ||
| 160 | { | ||
| 161 | early_pdc_optin = 1; | ||
| 162 | return 1; | ||
| 163 | } | ||
| 164 | __setup("acpi_early_pdc_eval", param_early_pdc_optin); | ||
| 165 | |||
| 154 | static struct dmi_system_id __cpuinitdata early_pdc_optin_table[] = { | 166 | static struct dmi_system_id __cpuinitdata early_pdc_optin_table[] = { |
| 155 | { | 167 | { |
| 156 | set_early_pdc_optin, "HP Envy", { | 168 | set_early_pdc_optin, "HP Envy", { |
| @@ -192,4 +204,6 @@ void __init acpi_early_processor_set_pdc(void) | |||
| 192 | acpi_walk_namespace(ACPI_TYPE_PROCESSOR, ACPI_ROOT_OBJECT, | 204 | acpi_walk_namespace(ACPI_TYPE_PROCESSOR, ACPI_ROOT_OBJECT, |
| 193 | ACPI_UINT32_MAX, | 205 | ACPI_UINT32_MAX, |
| 194 | early_init_pdc, NULL, NULL, NULL); | 206 | early_init_pdc, NULL, NULL, NULL); |
| 207 | |||
| 208 | early_pdc_done = 1; | ||
| 195 | } | 209 | } |
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c index 2cabadcc4d8c..a959f6a07508 100644 --- a/drivers/acpi/processor_perflib.c +++ b/drivers/acpi/processor_perflib.c | |||
| @@ -413,7 +413,11 @@ static int acpi_processor_get_performance_info(struct acpi_processor *pr) | |||
| 413 | if (result) | 413 | if (result) |
| 414 | goto update_bios; | 414 | goto update_bios; |
| 415 | 415 | ||
| 416 | return 0; | 416 | /* We need to call _PPC once when cpufreq starts */ |
| 417 | if (ignore_ppc != 1) | ||
| 418 | result = acpi_processor_get_platform_limit(pr); | ||
| 419 | |||
| 420 | return result; | ||
| 417 | 421 | ||
| 418 | /* | 422 | /* |
| 419 | * Having _PPC but missing frequencies (_PSS, _PCT) is a very good hint that | 423 | * Having _PPC but missing frequencies (_PSS, _PCT) is a very good hint that |
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index ff9f6226085d..3e009674f333 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
| @@ -1336,9 +1336,25 @@ static int acpi_bus_scan(acpi_handle handle, struct acpi_bus_ops *ops, | |||
| 1336 | 1336 | ||
| 1337 | if (child) | 1337 | if (child) |
| 1338 | *child = device; | 1338 | *child = device; |
| 1339 | return 0; | 1339 | |
| 1340 | if (device) | ||
| 1341 | return 0; | ||
| 1342 | else | ||
| 1343 | return -ENODEV; | ||
| 1340 | } | 1344 | } |
| 1341 | 1345 | ||
| 1346 | /* | ||
| 1347 | * acpi_bus_add and acpi_bus_start | ||
| 1348 | * | ||
| 1349 | * scan a given ACPI tree and (probably recently hot-plugged) | ||
| 1350 | * create and add or starts found devices. | ||
| 1351 | * | ||
| 1352 | * If no devices were found -ENODEV is returned which does not | ||
| 1353 | * mean that this is a real error, there just have been no suitable | ||
| 1354 | * ACPI objects in the table trunk from which the kernel could create | ||
| 1355 | * a device and add/start an appropriate driver. | ||
| 1356 | */ | ||
| 1357 | |||
| 1342 | int | 1358 | int |
| 1343 | acpi_bus_add(struct acpi_device **child, | 1359 | acpi_bus_add(struct acpi_device **child, |
| 1344 | struct acpi_device *parent, acpi_handle handle, int type) | 1360 | struct acpi_device *parent, acpi_handle handle, int type) |
| @@ -1348,8 +1364,7 @@ acpi_bus_add(struct acpi_device **child, | |||
| 1348 | memset(&ops, 0, sizeof(ops)); | 1364 | memset(&ops, 0, sizeof(ops)); |
| 1349 | ops.acpi_op_add = 1; | 1365 | ops.acpi_op_add = 1; |
| 1350 | 1366 | ||
| 1351 | acpi_bus_scan(handle, &ops, child); | 1367 | return acpi_bus_scan(handle, &ops, child); |
| 1352 | return 0; | ||
| 1353 | } | 1368 | } |
| 1354 | EXPORT_SYMBOL(acpi_bus_add); | 1369 | EXPORT_SYMBOL(acpi_bus_add); |
| 1355 | 1370 | ||
| @@ -1357,11 +1372,13 @@ int acpi_bus_start(struct acpi_device *device) | |||
| 1357 | { | 1372 | { |
| 1358 | struct acpi_bus_ops ops; | 1373 | struct acpi_bus_ops ops; |
| 1359 | 1374 | ||
| 1375 | if (!device) | ||
| 1376 | return -EINVAL; | ||
| 1377 | |||
| 1360 | memset(&ops, 0, sizeof(ops)); | 1378 | memset(&ops, 0, sizeof(ops)); |
| 1361 | ops.acpi_op_start = 1; | 1379 | ops.acpi_op_start = 1; |
| 1362 | 1380 | ||
| 1363 | acpi_bus_scan(device->handle, &ops, NULL); | 1381 | return acpi_bus_scan(device->handle, &ops, NULL); |
| 1364 | return 0; | ||
| 1365 | } | 1382 | } |
| 1366 | EXPORT_SYMBOL(acpi_bus_start); | 1383 | EXPORT_SYMBOL(acpi_bus_start); |
| 1367 | 1384 | ||
diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index f336bca7c450..8a0ed2800e63 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c | |||
| @@ -213,7 +213,7 @@ acpi_table_parse_entries(char *id, | |||
| 213 | unsigned long table_end; | 213 | unsigned long table_end; |
| 214 | acpi_size tbl_size; | 214 | acpi_size tbl_size; |
| 215 | 215 | ||
| 216 | if (acpi_disabled) | 216 | if (acpi_disabled && !acpi_ht) |
| 217 | return -ENODEV; | 217 | return -ENODEV; |
| 218 | 218 | ||
| 219 | if (!handler) | 219 | if (!handler) |
| @@ -280,7 +280,7 @@ int __init acpi_table_parse(char *id, acpi_table_handler handler) | |||
| 280 | struct acpi_table_header *table = NULL; | 280 | struct acpi_table_header *table = NULL; |
| 281 | acpi_size tbl_size; | 281 | acpi_size tbl_size; |
| 282 | 282 | ||
| 283 | if (acpi_disabled) | 283 | if (acpi_disabled && !acpi_ht) |
| 284 | return -ENODEV; | 284 | return -ENODEV; |
| 285 | 285 | ||
| 286 | if (!handler) | 286 | if (!handler) |
diff --git a/drivers/base/class.c b/drivers/base/class.c index 161746deab4b..6e2c3b064f53 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c | |||
| @@ -59,6 +59,8 @@ static void class_release(struct kobject *kobj) | |||
| 59 | else | 59 | else |
| 60 | pr_debug("class '%s' does not have a release() function, " | 60 | pr_debug("class '%s' does not have a release() function, " |
| 61 | "be careful\n", class->name); | 61 | "be careful\n", class->name); |
| 62 | |||
| 63 | kfree(cp); | ||
| 62 | } | 64 | } |
| 63 | 65 | ||
| 64 | static struct sysfs_ops class_sysfs_ops = { | 66 | static struct sysfs_ops class_sysfs_ops = { |
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 873e594860d3..9291614ac6b7 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
| @@ -337,6 +337,9 @@ static int cciss_seq_show(struct seq_file *seq, void *v) | |||
| 337 | if (*pos > h->highest_lun) | 337 | if (*pos > h->highest_lun) |
| 338 | return 0; | 338 | return 0; |
| 339 | 339 | ||
| 340 | if (drv == NULL) /* it's possible for h->drv[] to have holes. */ | ||
| 341 | return 0; | ||
| 342 | |||
| 340 | if (drv->heads == 0) | 343 | if (drv->heads == 0) |
| 341 | return 0; | 344 | return 0; |
| 342 | 345 | ||
diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c index 34cf04e21795..fd50ead59c79 100644 --- a/drivers/char/agp/amd64-agp.c +++ b/drivers/char/agp/amd64-agp.c | |||
| @@ -767,16 +767,19 @@ int __init agp_amd64_init(void) | |||
| 767 | 767 | ||
| 768 | static int __init agp_amd64_mod_init(void) | 768 | static int __init agp_amd64_mod_init(void) |
| 769 | { | 769 | { |
| 770 | #ifndef MODULE | ||
| 770 | if (gart_iommu_aperture) | 771 | if (gart_iommu_aperture) |
| 771 | return agp_bridges_found ? 0 : -ENODEV; | 772 | return agp_bridges_found ? 0 : -ENODEV; |
| 772 | 773 | #endif | |
| 773 | return agp_amd64_init(); | 774 | return agp_amd64_init(); |
| 774 | } | 775 | } |
| 775 | 776 | ||
| 776 | static void __exit agp_amd64_cleanup(void) | 777 | static void __exit agp_amd64_cleanup(void) |
| 777 | { | 778 | { |
| 779 | #ifndef MODULE | ||
| 778 | if (gart_iommu_aperture) | 780 | if (gart_iommu_aperture) |
| 779 | return; | 781 | return; |
| 782 | #endif | ||
| 780 | if (aperture_resource) | 783 | if (aperture_resource) |
| 781 | release_resource(aperture_resource); | 784 | release_resource(aperture_resource); |
| 782 | pci_unregister_driver(&agp_amd64_pci_driver); | 785 | pci_unregister_driver(&agp_amd64_pci_driver); |
diff --git a/drivers/char/tpm/tpm_infineon.c b/drivers/char/tpm/tpm_infineon.c index ecba4942fc8e..f58440791e65 100644 --- a/drivers/char/tpm/tpm_infineon.c +++ b/drivers/char/tpm/tpm_infineon.c | |||
| @@ -39,12 +39,12 @@ | |||
| 39 | struct tpm_inf_dev { | 39 | struct tpm_inf_dev { |
| 40 | int iotype; | 40 | int iotype; |
| 41 | 41 | ||
| 42 | void __iomem *mem_base; /* MMIO ioremap'd addr */ | 42 | void __iomem *mem_base; /* MMIO ioremap'd addr */ |
| 43 | unsigned long map_base; /* phys MMIO base */ | 43 | unsigned long map_base; /* phys MMIO base */ |
| 44 | unsigned long map_size; /* MMIO region size */ | 44 | unsigned long map_size; /* MMIO region size */ |
| 45 | unsigned int index_off; /* index register offset */ | 45 | unsigned int index_off; /* index register offset */ |
| 46 | 46 | ||
| 47 | unsigned int data_regs; /* Data registers */ | 47 | unsigned int data_regs; /* Data registers */ |
| 48 | unsigned int data_size; | 48 | unsigned int data_size; |
| 49 | 49 | ||
| 50 | unsigned int config_port; /* IO Port config index reg */ | 50 | unsigned int config_port; /* IO Port config index reg */ |
| @@ -406,14 +406,14 @@ static const struct tpm_vendor_specific tpm_inf = { | |||
| 406 | .miscdev = {.fops = &inf_ops,}, | 406 | .miscdev = {.fops = &inf_ops,}, |
| 407 | }; | 407 | }; |
| 408 | 408 | ||
| 409 | static const struct pnp_device_id tpm_pnp_tbl[] = { | 409 | static const struct pnp_device_id tpm_inf_pnp_tbl[] = { |
| 410 | /* Infineon TPMs */ | 410 | /* Infineon TPMs */ |
| 411 | {"IFX0101", 0}, | 411 | {"IFX0101", 0}, |
| 412 | {"IFX0102", 0}, | 412 | {"IFX0102", 0}, |
| 413 | {"", 0} | 413 | {"", 0} |
| 414 | }; | 414 | }; |
| 415 | 415 | ||
| 416 | MODULE_DEVICE_TABLE(pnp, tpm_pnp_tbl); | 416 | MODULE_DEVICE_TABLE(pnp, tpm_inf_pnp_tbl); |
| 417 | 417 | ||
| 418 | static int __devinit tpm_inf_pnp_probe(struct pnp_dev *dev, | 418 | static int __devinit tpm_inf_pnp_probe(struct pnp_dev *dev, |
| 419 | const struct pnp_device_id *dev_id) | 419 | const struct pnp_device_id *dev_id) |
| @@ -430,7 +430,7 @@ static int __devinit tpm_inf_pnp_probe(struct pnp_dev *dev, | |||
| 430 | if (pnp_port_valid(dev, 0) && pnp_port_valid(dev, 1) && | 430 | if (pnp_port_valid(dev, 0) && pnp_port_valid(dev, 1) && |
| 431 | !(pnp_port_flags(dev, 0) & IORESOURCE_DISABLED)) { | 431 | !(pnp_port_flags(dev, 0) & IORESOURCE_DISABLED)) { |
| 432 | 432 | ||
| 433 | tpm_dev.iotype = TPM_INF_IO_PORT; | 433 | tpm_dev.iotype = TPM_INF_IO_PORT; |
| 434 | 434 | ||
| 435 | tpm_dev.config_port = pnp_port_start(dev, 0); | 435 | tpm_dev.config_port = pnp_port_start(dev, 0); |
| 436 | tpm_dev.config_size = pnp_port_len(dev, 0); | 436 | tpm_dev.config_size = pnp_port_len(dev, 0); |
| @@ -459,9 +459,9 @@ static int __devinit tpm_inf_pnp_probe(struct pnp_dev *dev, | |||
| 459 | goto err_last; | 459 | goto err_last; |
| 460 | } | 460 | } |
| 461 | } else if (pnp_mem_valid(dev, 0) && | 461 | } else if (pnp_mem_valid(dev, 0) && |
| 462 | !(pnp_mem_flags(dev, 0) & IORESOURCE_DISABLED)) { | 462 | !(pnp_mem_flags(dev, 0) & IORESOURCE_DISABLED)) { |
| 463 | 463 | ||
| 464 | tpm_dev.iotype = TPM_INF_IO_MEM; | 464 | tpm_dev.iotype = TPM_INF_IO_MEM; |
| 465 | 465 | ||
| 466 | tpm_dev.map_base = pnp_mem_start(dev, 0); | 466 | tpm_dev.map_base = pnp_mem_start(dev, 0); |
| 467 | tpm_dev.map_size = pnp_mem_len(dev, 0); | 467 | tpm_dev.map_size = pnp_mem_len(dev, 0); |
| @@ -563,11 +563,11 @@ static int __devinit tpm_inf_pnp_probe(struct pnp_dev *dev, | |||
| 563 | "product id 0x%02x%02x" | 563 | "product id 0x%02x%02x" |
| 564 | "%s\n", | 564 | "%s\n", |
| 565 | tpm_dev.iotype == TPM_INF_IO_PORT ? | 565 | tpm_dev.iotype == TPM_INF_IO_PORT ? |
| 566 | tpm_dev.config_port : | 566 | tpm_dev.config_port : |
| 567 | tpm_dev.map_base + tpm_dev.index_off, | 567 | tpm_dev.map_base + tpm_dev.index_off, |
| 568 | tpm_dev.iotype == TPM_INF_IO_PORT ? | 568 | tpm_dev.iotype == TPM_INF_IO_PORT ? |
| 569 | tpm_dev.data_regs : | 569 | tpm_dev.data_regs : |
| 570 | tpm_dev.map_base + tpm_dev.data_regs, | 570 | tpm_dev.map_base + tpm_dev.data_regs, |
| 571 | version[0], version[1], | 571 | version[0], version[1], |
| 572 | vendorid[0], vendorid[1], | 572 | vendorid[0], vendorid[1], |
| 573 | productid[0], productid[1], chipname); | 573 | productid[0], productid[1], chipname); |
| @@ -607,20 +607,55 @@ static __devexit void tpm_inf_pnp_remove(struct pnp_dev *dev) | |||
| 607 | iounmap(tpm_dev.mem_base); | 607 | iounmap(tpm_dev.mem_base); |
| 608 | release_mem_region(tpm_dev.map_base, tpm_dev.map_size); | 608 | release_mem_region(tpm_dev.map_base, tpm_dev.map_size); |
| 609 | } | 609 | } |
| 610 | tpm_dev_vendor_release(chip); | ||
| 610 | tpm_remove_hardware(chip->dev); | 611 | tpm_remove_hardware(chip->dev); |
| 611 | } | 612 | } |
| 612 | } | 613 | } |
| 613 | 614 | ||
| 615 | static int tpm_inf_pnp_suspend(struct pnp_dev *dev, pm_message_t pm_state) | ||
| 616 | { | ||
| 617 | struct tpm_chip *chip = pnp_get_drvdata(dev); | ||
| 618 | int rc; | ||
| 619 | if (chip) { | ||
| 620 | u8 savestate[] = { | ||
| 621 | 0, 193, /* TPM_TAG_RQU_COMMAND */ | ||
| 622 | 0, 0, 0, 10, /* blob length (in bytes) */ | ||
| 623 | 0, 0, 0, 152 /* TPM_ORD_SaveState */ | ||
| 624 | }; | ||
| 625 | dev_info(&dev->dev, "saving TPM state\n"); | ||
| 626 | rc = tpm_inf_send(chip, savestate, sizeof(savestate)); | ||
| 627 | if (rc < 0) { | ||
| 628 | dev_err(&dev->dev, "error while saving TPM state\n"); | ||
| 629 | return rc; | ||
| 630 | } | ||
| 631 | } | ||
| 632 | return 0; | ||
| 633 | } | ||
| 634 | |||
| 635 | static int tpm_inf_pnp_resume(struct pnp_dev *dev) | ||
| 636 | { | ||
| 637 | /* Re-configure TPM after suspending */ | ||
| 638 | tpm_config_out(ENABLE_REGISTER_PAIR, TPM_INF_ADDR); | ||
| 639 | tpm_config_out(IOLIMH, TPM_INF_ADDR); | ||
| 640 | tpm_config_out((tpm_dev.data_regs >> 8) & 0xff, TPM_INF_DATA); | ||
| 641 | tpm_config_out(IOLIML, TPM_INF_ADDR); | ||
| 642 | tpm_config_out((tpm_dev.data_regs & 0xff), TPM_INF_DATA); | ||
| 643 | /* activate register */ | ||
| 644 | tpm_config_out(TPM_DAR, TPM_INF_ADDR); | ||
| 645 | tpm_config_out(0x01, TPM_INF_DATA); | ||
| 646 | tpm_config_out(DISABLE_REGISTER_PAIR, TPM_INF_ADDR); | ||
| 647 | /* disable RESET, LP and IRQC */ | ||
| 648 | tpm_data_out(RESET_LP_IRQC_DISABLE, CMD); | ||
| 649 | return tpm_pm_resume(&dev->dev); | ||
| 650 | } | ||
| 651 | |||
| 614 | static struct pnp_driver tpm_inf_pnp_driver = { | 652 | static struct pnp_driver tpm_inf_pnp_driver = { |
| 615 | .name = "tpm_inf_pnp", | 653 | .name = "tpm_inf_pnp", |
| 616 | .driver = { | 654 | .id_table = tpm_inf_pnp_tbl, |
| 617 | .owner = THIS_MODULE, | ||
| 618 | .suspend = tpm_pm_suspend, | ||
| 619 | .resume = tpm_pm_resume, | ||
| 620 | }, | ||
| 621 | .id_table = tpm_pnp_tbl, | ||
| 622 | .probe = tpm_inf_pnp_probe, | 655 | .probe = tpm_inf_pnp_probe, |
| 623 | .remove = __devexit_p(tpm_inf_pnp_remove), | 656 | .suspend = tpm_inf_pnp_suspend, |
| 657 | .resume = tpm_inf_pnp_resume, | ||
| 658 | .remove = __devexit_p(tpm_inf_pnp_remove) | ||
| 624 | }; | 659 | }; |
| 625 | 660 | ||
| 626 | static int __init init_inf(void) | 661 | static int __init init_inf(void) |
| @@ -638,5 +673,5 @@ module_exit(cleanup_inf); | |||
| 638 | 673 | ||
| 639 | MODULE_AUTHOR("Marcel Selhorst <m.selhorst@sirrix.com>"); | 674 | MODULE_AUTHOR("Marcel Selhorst <m.selhorst@sirrix.com>"); |
| 640 | MODULE_DESCRIPTION("Driver for Infineon TPM SLD 9630 TT 1.1 / SLB 9635 TT 1.2"); | 675 | MODULE_DESCRIPTION("Driver for Infineon TPM SLD 9630 TT 1.1 / SLB 9635 TT 1.2"); |
| 641 | MODULE_VERSION("1.9"); | 676 | MODULE_VERSION("1.9.2"); |
| 642 | MODULE_LICENSE("GPL"); | 677 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/clocksource/cs5535-clockevt.c b/drivers/clocksource/cs5535-clockevt.c index 27d20fac19d1..b314a999aabe 100644 --- a/drivers/clocksource/cs5535-clockevt.c +++ b/drivers/clocksource/cs5535-clockevt.c | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | #define DRV_NAME "cs5535-clockevt" | 22 | #define DRV_NAME "cs5535-clockevt" |
| 23 | 23 | ||
| 24 | static int timer_irq = CONFIG_CS5535_MFGPT_DEFAULT_IRQ; | 24 | static int timer_irq; |
| 25 | module_param_named(irq, timer_irq, int, 0644); | 25 | module_param_named(irq, timer_irq, int, 0644); |
| 26 | MODULE_PARM_DESC(irq, "Which IRQ to use for the clock source MFGPT ticks."); | 26 | MODULE_PARM_DESC(irq, "Which IRQ to use for the clock source MFGPT ticks."); |
| 27 | 27 | ||
diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c index b5f2ee0f8e2c..64a937262a40 100644 --- a/drivers/dma/coh901318.c +++ b/drivers/dma/coh901318.c | |||
| @@ -613,8 +613,6 @@ static void dma_tasklet(unsigned long data) | |||
| 613 | cohd_fin->pending_irqs--; | 613 | cohd_fin->pending_irqs--; |
| 614 | cohc->completed = cohd_fin->desc.cookie; | 614 | cohc->completed = cohd_fin->desc.cookie; |
| 615 | 615 | ||
| 616 | BUG_ON(cohc->nbr_active_done && cohd_fin == NULL); | ||
| 617 | |||
| 618 | if (cohc->nbr_active_done == 0) | 616 | if (cohc->nbr_active_done == 0) |
| 619 | return; | 617 | return; |
| 620 | 618 | ||
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 6f51a0a7a8bb..e7a3230fb7d5 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c | |||
| @@ -826,6 +826,7 @@ void dma_async_device_unregister(struct dma_device *device) | |||
| 826 | chan->dev->chan = NULL; | 826 | chan->dev->chan = NULL; |
| 827 | mutex_unlock(&dma_list_mutex); | 827 | mutex_unlock(&dma_list_mutex); |
| 828 | device_unregister(&chan->dev->device); | 828 | device_unregister(&chan->dev->device); |
| 829 | free_percpu(chan->local); | ||
| 829 | } | 830 | } |
| 830 | } | 831 | } |
| 831 | EXPORT_SYMBOL(dma_async_device_unregister); | 832 | EXPORT_SYMBOL(dma_async_device_unregister); |
diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index 8b905161fbf4..948d563941c9 100644 --- a/drivers/dma/dmatest.c +++ b/drivers/dma/dmatest.c | |||
| @@ -467,7 +467,7 @@ err_srcs: | |||
| 467 | 467 | ||
| 468 | if (iterations > 0) | 468 | if (iterations > 0) |
| 469 | while (!kthread_should_stop()) { | 469 | while (!kthread_should_stop()) { |
| 470 | DECLARE_WAIT_QUEUE_HEAD(wait_dmatest_exit); | 470 | DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wait_dmatest_exit); |
| 471 | interruptible_sleep_on(&wait_dmatest_exit); | 471 | interruptible_sleep_on(&wait_dmatest_exit); |
| 472 | } | 472 | } |
| 473 | 473 | ||
diff --git a/drivers/dma/ioat/dma_v2.c b/drivers/dma/ioat/dma_v2.c index 5f7a500e18d0..5cc37afe2bc1 100644 --- a/drivers/dma/ioat/dma_v2.c +++ b/drivers/dma/ioat/dma_v2.c | |||
| @@ -249,7 +249,7 @@ int ioat2_quiesce(struct ioat_chan_common *chan, unsigned long tmo) | |||
| 249 | if (is_ioat_active(status) || is_ioat_idle(status)) | 249 | if (is_ioat_active(status) || is_ioat_idle(status)) |
| 250 | ioat_suspend(chan); | 250 | ioat_suspend(chan); |
| 251 | while (is_ioat_active(status) || is_ioat_idle(status)) { | 251 | while (is_ioat_active(status) || is_ioat_idle(status)) { |
| 252 | if (end && time_after(jiffies, end)) { | 252 | if (tmo && time_after(jiffies, end)) { |
| 253 | err = -ETIMEDOUT; | 253 | err = -ETIMEDOUT; |
| 254 | break; | 254 | break; |
| 255 | } | 255 | } |
diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c index 9a5bc1a7389e..e80bae1673fa 100644 --- a/drivers/dma/ipu/ipu_idmac.c +++ b/drivers/dma/ipu/ipu_idmac.c | |||
| @@ -761,12 +761,10 @@ static void ipu_select_buffer(enum ipu_channel channel, int buffer_n) | |||
| 761 | * @buffer_n: buffer number to update. | 761 | * @buffer_n: buffer number to update. |
| 762 | * 0 or 1 are the only valid values. | 762 | * 0 or 1 are the only valid values. |
| 763 | * @phyaddr: buffer physical address. | 763 | * @phyaddr: buffer physical address. |
| 764 | * @return: Returns 0 on success or negative error code on failure. This | ||
| 765 | * function will fail if the buffer is set to ready. | ||
| 766 | */ | 764 | */ |
| 767 | /* Called under spin_lock(_irqsave)(&ichan->lock) */ | 765 | /* Called under spin_lock(_irqsave)(&ichan->lock) */ |
| 768 | static int ipu_update_channel_buffer(struct idmac_channel *ichan, | 766 | static void ipu_update_channel_buffer(struct idmac_channel *ichan, |
| 769 | int buffer_n, dma_addr_t phyaddr) | 767 | int buffer_n, dma_addr_t phyaddr) |
| 770 | { | 768 | { |
| 771 | enum ipu_channel channel = ichan->dma_chan.chan_id; | 769 | enum ipu_channel channel = ichan->dma_chan.chan_id; |
| 772 | uint32_t reg; | 770 | uint32_t reg; |
| @@ -806,8 +804,6 @@ static int ipu_update_channel_buffer(struct idmac_channel *ichan, | |||
| 806 | } | 804 | } |
| 807 | 805 | ||
| 808 | spin_unlock_irqrestore(&ipu_data.lock, flags); | 806 | spin_unlock_irqrestore(&ipu_data.lock, flags); |
| 809 | |||
| 810 | return 0; | ||
| 811 | } | 807 | } |
| 812 | 808 | ||
| 813 | /* Called under spin_lock_irqsave(&ichan->lock) */ | 809 | /* Called under spin_lock_irqsave(&ichan->lock) */ |
| @@ -816,7 +812,6 @@ static int ipu_submit_buffer(struct idmac_channel *ichan, | |||
| 816 | { | 812 | { |
| 817 | unsigned int chan_id = ichan->dma_chan.chan_id; | 813 | unsigned int chan_id = ichan->dma_chan.chan_id; |
| 818 | struct device *dev = &ichan->dma_chan.dev->device; | 814 | struct device *dev = &ichan->dma_chan.dev->device; |
| 819 | int ret; | ||
| 820 | 815 | ||
| 821 | if (async_tx_test_ack(&desc->txd)) | 816 | if (async_tx_test_ack(&desc->txd)) |
| 822 | return -EINTR; | 817 | return -EINTR; |
| @@ -827,14 +822,7 @@ static int ipu_submit_buffer(struct idmac_channel *ichan, | |||
| 827 | * could make it conditional on status >= IPU_CHANNEL_ENABLED, but | 822 | * could make it conditional on status >= IPU_CHANNEL_ENABLED, but |
| 828 | * doing it again shouldn't hurt either. | 823 | * doing it again shouldn't hurt either. |
| 829 | */ | 824 | */ |
| 830 | ret = ipu_update_channel_buffer(ichan, buf_idx, | 825 | ipu_update_channel_buffer(ichan, buf_idx, sg_dma_address(sg)); |
| 831 | sg_dma_address(sg)); | ||
| 832 | |||
| 833 | if (ret < 0) { | ||
| 834 | dev_err(dev, "Updating sg %p on channel 0x%x buffer %d failed!\n", | ||
| 835 | sg, chan_id, buf_idx); | ||
| 836 | return ret; | ||
| 837 | } | ||
| 838 | 826 | ||
| 839 | ipu_select_buffer(chan_id, buf_idx); | 827 | ipu_select_buffer(chan_id, buf_idx); |
| 840 | dev_dbg(dev, "Updated sg %p on channel 0x%x buffer %d\n", | 828 | dev_dbg(dev, "Updated sg %p on channel 0x%x buffer %d\n", |
| @@ -1379,10 +1367,11 @@ static irqreturn_t idmac_interrupt(int irq, void *dev_id) | |||
| 1379 | 1367 | ||
| 1380 | if (likely(sgnew) && | 1368 | if (likely(sgnew) && |
| 1381 | ipu_submit_buffer(ichan, descnew, sgnew, ichan->active_buffer) < 0) { | 1369 | ipu_submit_buffer(ichan, descnew, sgnew, ichan->active_buffer) < 0) { |
| 1382 | callback = desc->txd.callback; | 1370 | callback = descnew->txd.callback; |
| 1383 | callback_param = desc->txd.callback_param; | 1371 | callback_param = descnew->txd.callback_param; |
| 1384 | spin_unlock(&ichan->lock); | 1372 | spin_unlock(&ichan->lock); |
| 1385 | callback(callback_param); | 1373 | if (callback) |
| 1374 | callback(callback_param); | ||
| 1386 | spin_lock(&ichan->lock); | 1375 | spin_lock(&ichan->lock); |
| 1387 | } | 1376 | } |
| 1388 | 1377 | ||
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 000dc67b85b7..3391e6739d06 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
| @@ -2658,10 +2658,11 @@ static void amd64_restore_ecc_error_reporting(struct amd64_pvt *pvt) | |||
| 2658 | * the memory system completely. A command line option allows to force-enable | 2658 | * the memory system completely. A command line option allows to force-enable |
| 2659 | * hardware ECC later in amd64_enable_ecc_error_reporting(). | 2659 | * hardware ECC later in amd64_enable_ecc_error_reporting(). |
| 2660 | */ | 2660 | */ |
| 2661 | static const char *ecc_warning = | 2661 | static const char *ecc_msg = |
| 2662 | "WARNING: ECC is disabled by BIOS. Module will NOT be loaded.\n" | 2662 | "ECC disabled in the BIOS or no ECC capability, module will not load.\n" |
| 2663 | " Either Enable ECC in the BIOS, or set 'ecc_enable_override'.\n" | 2663 | " Either enable ECC checking or force module loading by setting " |
| 2664 | " Also, use of the override can cause unknown side effects.\n"; | 2664 | "'ecc_enable_override'.\n" |
| 2665 | " (Note that use of the override may cause unknown side effects.)\n"; | ||
| 2665 | 2666 | ||
| 2666 | static int amd64_check_ecc_enabled(struct amd64_pvt *pvt) | 2667 | static int amd64_check_ecc_enabled(struct amd64_pvt *pvt) |
| 2667 | { | 2668 | { |
| @@ -2673,7 +2674,7 @@ static int amd64_check_ecc_enabled(struct amd64_pvt *pvt) | |||
| 2673 | 2674 | ||
| 2674 | ecc_enabled = !!(value & K8_NBCFG_ECC_ENABLE); | 2675 | ecc_enabled = !!(value & K8_NBCFG_ECC_ENABLE); |
| 2675 | if (!ecc_enabled) | 2676 | if (!ecc_enabled) |
| 2676 | amd64_printk(KERN_WARNING, "This node reports that Memory ECC " | 2677 | amd64_printk(KERN_NOTICE, "This node reports that Memory ECC " |
| 2677 | "is currently disabled, set F3x%x[22] (%s).\n", | 2678 | "is currently disabled, set F3x%x[22] (%s).\n", |
| 2678 | K8_NBCFG, pci_name(pvt->misc_f3_ctl)); | 2679 | K8_NBCFG, pci_name(pvt->misc_f3_ctl)); |
| 2679 | else | 2680 | else |
| @@ -2681,13 +2682,13 @@ static int amd64_check_ecc_enabled(struct amd64_pvt *pvt) | |||
| 2681 | 2682 | ||
| 2682 | nb_mce_en = amd64_nb_mce_bank_enabled_on_node(pvt->mc_node_id); | 2683 | nb_mce_en = amd64_nb_mce_bank_enabled_on_node(pvt->mc_node_id); |
| 2683 | if (!nb_mce_en) | 2684 | if (!nb_mce_en) |
| 2684 | amd64_printk(KERN_WARNING, "NB MCE bank disabled, set MSR " | 2685 | amd64_printk(KERN_NOTICE, "NB MCE bank disabled, set MSR " |
| 2685 | "0x%08x[4] on node %d to enable.\n", | 2686 | "0x%08x[4] on node %d to enable.\n", |
| 2686 | MSR_IA32_MCG_CTL, pvt->mc_node_id); | 2687 | MSR_IA32_MCG_CTL, pvt->mc_node_id); |
| 2687 | 2688 | ||
| 2688 | if (!ecc_enabled || !nb_mce_en) { | 2689 | if (!ecc_enabled || !nb_mce_en) { |
| 2689 | if (!ecc_enable_override) { | 2690 | if (!ecc_enable_override) { |
| 2690 | amd64_printk(KERN_WARNING, "%s", ecc_warning); | 2691 | amd64_printk(KERN_NOTICE, "%s", ecc_msg); |
| 2691 | return -ENODEV; | 2692 | return -ENODEV; |
| 2692 | } | 2693 | } |
| 2693 | ecc_enable_override = 0; | 2694 | ecc_enable_override = 0; |
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index cf27402af97b..ecd5928d7110 100644 --- a/drivers/edac/mpc85xx_edac.c +++ b/drivers/edac/mpc85xx_edac.c | |||
| @@ -804,8 +804,8 @@ static void __devinit mpc85xx_init_csrows(struct mem_ctl_info *mci) | |||
| 804 | end <<= (24 - PAGE_SHIFT); | 804 | end <<= (24 - PAGE_SHIFT); |
| 805 | end |= (1 << (24 - PAGE_SHIFT)) - 1; | 805 | end |= (1 << (24 - PAGE_SHIFT)) - 1; |
| 806 | 806 | ||
| 807 | csrow->first_page = start >> PAGE_SHIFT; | 807 | csrow->first_page = start; |
| 808 | csrow->last_page = end >> PAGE_SHIFT; | 808 | csrow->last_page = end; |
| 809 | csrow->nr_pages = end + 1 - start; | 809 | csrow->nr_pages = end + 1 - start; |
| 810 | csrow->grain = 8; | 810 | csrow->grain = 8; |
| 811 | csrow->mtype = mtype; | 811 | csrow->mtype = mtype; |
| @@ -892,10 +892,6 @@ static int __devinit mpc85xx_mc_err_probe(struct of_device *op, | |||
| 892 | 892 | ||
| 893 | mpc85xx_init_csrows(mci); | 893 | mpc85xx_init_csrows(mci); |
| 894 | 894 | ||
| 895 | #ifdef CONFIG_EDAC_DEBUG | ||
| 896 | edac_mc_register_mcidev_debug((struct attribute **)debug_attr); | ||
| 897 | #endif | ||
| 898 | |||
| 899 | /* store the original error disable bits */ | 895 | /* store the original error disable bits */ |
| 900 | orig_ddr_err_disable = | 896 | orig_ddr_err_disable = |
| 901 | in_be32(pdata->mc_vbase + MPC85XX_MC_ERR_DISABLE); | 897 | in_be32(pdata->mc_vbase + MPC85XX_MC_ERR_DISABLE); |
diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c index cbaf420c36c5..2d3dc7ded0a9 100644 --- a/drivers/firewire/net.c +++ b/drivers/firewire/net.c | |||
| @@ -893,20 +893,31 @@ static void fwnet_receive_broadcast(struct fw_iso_context *context, | |||
| 893 | 893 | ||
| 894 | static struct kmem_cache *fwnet_packet_task_cache; | 894 | static struct kmem_cache *fwnet_packet_task_cache; |
| 895 | 895 | ||
| 896 | static void fwnet_free_ptask(struct fwnet_packet_task *ptask) | ||
| 897 | { | ||
| 898 | dev_kfree_skb_any(ptask->skb); | ||
| 899 | kmem_cache_free(fwnet_packet_task_cache, ptask); | ||
| 900 | } | ||
| 901 | |||
| 896 | static int fwnet_send_packet(struct fwnet_packet_task *ptask); | 902 | static int fwnet_send_packet(struct fwnet_packet_task *ptask); |
| 897 | 903 | ||
| 898 | static void fwnet_transmit_packet_done(struct fwnet_packet_task *ptask) | 904 | static void fwnet_transmit_packet_done(struct fwnet_packet_task *ptask) |
| 899 | { | 905 | { |
| 900 | struct fwnet_device *dev; | 906 | struct fwnet_device *dev = ptask->dev; |
| 901 | unsigned long flags; | 907 | unsigned long flags; |
| 902 | 908 | bool free; | |
| 903 | dev = ptask->dev; | ||
| 904 | 909 | ||
| 905 | spin_lock_irqsave(&dev->lock, flags); | 910 | spin_lock_irqsave(&dev->lock, flags); |
| 906 | list_del(&ptask->pt_link); | ||
| 907 | spin_unlock_irqrestore(&dev->lock, flags); | ||
| 908 | 911 | ||
| 909 | ptask->outstanding_pkts--; /* FIXME access inside lock */ | 912 | ptask->outstanding_pkts--; |
| 913 | |||
| 914 | /* Check whether we or the networking TX soft-IRQ is last user. */ | ||
| 915 | free = (ptask->outstanding_pkts == 0 && !list_empty(&ptask->pt_link)); | ||
| 916 | |||
| 917 | if (ptask->outstanding_pkts == 0) | ||
| 918 | list_del(&ptask->pt_link); | ||
| 919 | |||
| 920 | spin_unlock_irqrestore(&dev->lock, flags); | ||
| 910 | 921 | ||
| 911 | if (ptask->outstanding_pkts > 0) { | 922 | if (ptask->outstanding_pkts > 0) { |
| 912 | u16 dg_size; | 923 | u16 dg_size; |
| @@ -951,10 +962,10 @@ static void fwnet_transmit_packet_done(struct fwnet_packet_task *ptask) | |||
| 951 | ptask->max_payload = skb->len + RFC2374_FRAG_HDR_SIZE; | 962 | ptask->max_payload = skb->len + RFC2374_FRAG_HDR_SIZE; |
| 952 | } | 963 | } |
| 953 | fwnet_send_packet(ptask); | 964 | fwnet_send_packet(ptask); |
| 954 | } else { | ||
| 955 | dev_kfree_skb_any(ptask->skb); | ||
| 956 | kmem_cache_free(fwnet_packet_task_cache, ptask); | ||
| 957 | } | 965 | } |
| 966 | |||
| 967 | if (free) | ||
| 968 | fwnet_free_ptask(ptask); | ||
| 958 | } | 969 | } |
| 959 | 970 | ||
| 960 | static void fwnet_write_complete(struct fw_card *card, int rcode, | 971 | static void fwnet_write_complete(struct fw_card *card, int rcode, |
| @@ -977,6 +988,7 @@ static int fwnet_send_packet(struct fwnet_packet_task *ptask) | |||
| 977 | unsigned tx_len; | 988 | unsigned tx_len; |
| 978 | struct rfc2734_header *bufhdr; | 989 | struct rfc2734_header *bufhdr; |
| 979 | unsigned long flags; | 990 | unsigned long flags; |
| 991 | bool free; | ||
| 980 | 992 | ||
| 981 | dev = ptask->dev; | 993 | dev = ptask->dev; |
| 982 | tx_len = ptask->max_payload; | 994 | tx_len = ptask->max_payload; |
| @@ -1022,12 +1034,16 @@ static int fwnet_send_packet(struct fwnet_packet_task *ptask) | |||
| 1022 | generation, SCODE_100, 0ULL, ptask->skb->data, | 1034 | generation, SCODE_100, 0ULL, ptask->skb->data, |
| 1023 | tx_len + 8, fwnet_write_complete, ptask); | 1035 | tx_len + 8, fwnet_write_complete, ptask); |
| 1024 | 1036 | ||
| 1025 | /* FIXME race? */ | ||
| 1026 | spin_lock_irqsave(&dev->lock, flags); | 1037 | spin_lock_irqsave(&dev->lock, flags); |
| 1027 | list_add_tail(&ptask->pt_link, &dev->broadcasted_list); | 1038 | |
| 1039 | /* If the AT tasklet already ran, we may be last user. */ | ||
| 1040 | free = (ptask->outstanding_pkts == 0 && list_empty(&ptask->pt_link)); | ||
| 1041 | if (!free) | ||
| 1042 | list_add_tail(&ptask->pt_link, &dev->broadcasted_list); | ||
| 1043 | |||
| 1028 | spin_unlock_irqrestore(&dev->lock, flags); | 1044 | spin_unlock_irqrestore(&dev->lock, flags); |
| 1029 | 1045 | ||
| 1030 | return 0; | 1046 | goto out; |
| 1031 | } | 1047 | } |
| 1032 | 1048 | ||
| 1033 | fw_send_request(dev->card, &ptask->transaction, | 1049 | fw_send_request(dev->card, &ptask->transaction, |
| @@ -1035,12 +1051,19 @@ static int fwnet_send_packet(struct fwnet_packet_task *ptask) | |||
| 1035 | ptask->generation, ptask->speed, ptask->fifo_addr, | 1051 | ptask->generation, ptask->speed, ptask->fifo_addr, |
| 1036 | ptask->skb->data, tx_len, fwnet_write_complete, ptask); | 1052 | ptask->skb->data, tx_len, fwnet_write_complete, ptask); |
| 1037 | 1053 | ||
| 1038 | /* FIXME race? */ | ||
| 1039 | spin_lock_irqsave(&dev->lock, flags); | 1054 | spin_lock_irqsave(&dev->lock, flags); |
| 1040 | list_add_tail(&ptask->pt_link, &dev->sent_list); | 1055 | |
| 1056 | /* If the AT tasklet already ran, we may be last user. */ | ||
| 1057 | free = (ptask->outstanding_pkts == 0 && list_empty(&ptask->pt_link)); | ||
| 1058 | if (!free) | ||
| 1059 | list_add_tail(&ptask->pt_link, &dev->sent_list); | ||
| 1060 | |||
| 1041 | spin_unlock_irqrestore(&dev->lock, flags); | 1061 | spin_unlock_irqrestore(&dev->lock, flags); |
| 1042 | 1062 | ||
| 1043 | dev->netdev->trans_start = jiffies; | 1063 | dev->netdev->trans_start = jiffies; |
| 1064 | out: | ||
| 1065 | if (free) | ||
| 1066 | fwnet_free_ptask(ptask); | ||
| 1044 | 1067 | ||
| 1045 | return 0; | 1068 | return 0; |
| 1046 | } | 1069 | } |
| @@ -1298,6 +1321,8 @@ static netdev_tx_t fwnet_tx(struct sk_buff *skb, struct net_device *net) | |||
| 1298 | spin_unlock_irqrestore(&dev->lock, flags); | 1321 | spin_unlock_irqrestore(&dev->lock, flags); |
| 1299 | 1322 | ||
| 1300 | ptask->max_payload = max_payload; | 1323 | ptask->max_payload = max_payload; |
| 1324 | INIT_LIST_HEAD(&ptask->pt_link); | ||
| 1325 | |||
| 1301 | fwnet_send_packet(ptask); | 1326 | fwnet_send_packet(ptask); |
| 1302 | 1327 | ||
| 1303 | return NETDEV_TX_OK; | 1328 | return NETDEV_TX_OK; |
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index 2345d4103fe6..43ebf337b131 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
| @@ -2101,11 +2101,6 @@ static int ohci_queue_iso_transmit(struct fw_iso_context *base, | |||
| 2101 | u32 payload_index, payload_end_index, next_page_index; | 2101 | u32 payload_index, payload_end_index, next_page_index; |
| 2102 | int page, end_page, i, length, offset; | 2102 | int page, end_page, i, length, offset; |
| 2103 | 2103 | ||
| 2104 | /* | ||
| 2105 | * FIXME: Cycle lost behavior should be configurable: lose | ||
| 2106 | * packet, retransmit or terminate.. | ||
| 2107 | */ | ||
| 2108 | |||
| 2109 | p = packet; | 2104 | p = packet; |
| 2110 | payload_index = payload; | 2105 | payload_index = payload; |
| 2111 | 2106 | ||
| @@ -2135,6 +2130,14 @@ static int ohci_queue_iso_transmit(struct fw_iso_context *base, | |||
| 2135 | if (!p->skip) { | 2130 | if (!p->skip) { |
| 2136 | d[0].control = cpu_to_le16(DESCRIPTOR_KEY_IMMEDIATE); | 2131 | d[0].control = cpu_to_le16(DESCRIPTOR_KEY_IMMEDIATE); |
| 2137 | d[0].req_count = cpu_to_le16(8); | 2132 | d[0].req_count = cpu_to_le16(8); |
| 2133 | /* | ||
| 2134 | * Link the skip address to this descriptor itself. This causes | ||
| 2135 | * a context to skip a cycle whenever lost cycles or FIFO | ||
| 2136 | * overruns occur, without dropping the data. The application | ||
| 2137 | * should then decide whether this is an error condition or not. | ||
| 2138 | * FIXME: Make the context's cycle-lost behaviour configurable? | ||
| 2139 | */ | ||
| 2140 | d[0].branch_address = cpu_to_le32(d_bus | z); | ||
| 2138 | 2141 | ||
| 2139 | header = (__le32 *) &d[1]; | 2142 | header = (__le32 *) &d[1]; |
| 2140 | header[0] = cpu_to_le32(IT_HEADER_SY(p->sy) | | 2143 | header[0] = cpu_to_le32(IT_HEADER_SY(p->sy) | |
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index f665b05592f3..ab6c97330412 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
| @@ -598,6 +598,50 @@ struct drm_display_mode *drm_mode_std(struct drm_device *dev, | |||
| 598 | return mode; | 598 | return mode; |
| 599 | } | 599 | } |
| 600 | 600 | ||
| 601 | /* | ||
| 602 | * EDID is delightfully ambiguous about how interlaced modes are to be | ||
| 603 | * encoded. Our internal representation is of frame height, but some | ||
| 604 | * HDTV detailed timings are encoded as field height. | ||
| 605 | * | ||
| 606 | * The format list here is from CEA, in frame size. Technically we | ||
| 607 | * should be checking refresh rate too. Whatever. | ||
| 608 | */ | ||
| 609 | static void | ||
| 610 | drm_mode_do_interlace_quirk(struct drm_display_mode *mode, | ||
| 611 | struct detailed_pixel_timing *pt) | ||
| 612 | { | ||
| 613 | int i; | ||
| 614 | static const struct { | ||
| 615 | int w, h; | ||
| 616 | } cea_interlaced[] = { | ||
| 617 | { 1920, 1080 }, | ||
| 618 | { 720, 480 }, | ||
| 619 | { 1440, 480 }, | ||
| 620 | { 2880, 480 }, | ||
| 621 | { 720, 576 }, | ||
| 622 | { 1440, 576 }, | ||
| 623 | { 2880, 576 }, | ||
| 624 | }; | ||
| 625 | static const int n_sizes = | ||
| 626 | sizeof(cea_interlaced)/sizeof(cea_interlaced[0]); | ||
| 627 | |||
| 628 | if (!(pt->misc & DRM_EDID_PT_INTERLACED)) | ||
| 629 | return; | ||
| 630 | |||
| 631 | for (i = 0; i < n_sizes; i++) { | ||
| 632 | if ((mode->hdisplay == cea_interlaced[i].w) && | ||
| 633 | (mode->vdisplay == cea_interlaced[i].h / 2)) { | ||
| 634 | mode->vdisplay *= 2; | ||
| 635 | mode->vsync_start *= 2; | ||
| 636 | mode->vsync_end *= 2; | ||
| 637 | mode->vtotal *= 2; | ||
| 638 | mode->vtotal |= 1; | ||
| 639 | } | ||
| 640 | } | ||
| 641 | |||
| 642 | mode->flags |= DRM_MODE_FLAG_INTERLACE; | ||
| 643 | } | ||
| 644 | |||
| 601 | /** | 645 | /** |
| 602 | * drm_mode_detailed - create a new mode from an EDID detailed timing section | 646 | * drm_mode_detailed - create a new mode from an EDID detailed timing section |
| 603 | * @dev: DRM device (needed to create new mode) | 647 | * @dev: DRM device (needed to create new mode) |
| @@ -680,8 +724,7 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev, | |||
| 680 | 724 | ||
| 681 | drm_mode_set_name(mode); | 725 | drm_mode_set_name(mode); |
| 682 | 726 | ||
| 683 | if (pt->misc & DRM_EDID_PT_INTERLACED) | 727 | drm_mode_do_interlace_quirk(mode, pt); |
| 684 | mode->flags |= DRM_MODE_FLAG_INTERLACE; | ||
| 685 | 728 | ||
| 686 | if (quirks & EDID_QUIRK_DETAILED_SYNC_PP) { | 729 | if (quirks & EDID_QUIRK_DETAILED_SYNC_PP) { |
| 687 | pt->misc |= DRM_EDID_PT_HSYNC_POSITIVE | DRM_EDID_PT_VSYNC_POSITIVE; | 730 | pt->misc |= DRM_EDID_PT_HSYNC_POSITIVE | DRM_EDID_PT_VSYNC_POSITIVE; |
diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c index cdec32977129..2ac074c8f5d2 100644 --- a/drivers/gpu/drm/drm_mm.c +++ b/drivers/gpu/drm/drm_mm.c | |||
| @@ -405,7 +405,8 @@ struct drm_mm_node *drm_mm_search_free_in_range(const struct drm_mm *mm, | |||
| 405 | wasted += alignment - tmp; | 405 | wasted += alignment - tmp; |
| 406 | } | 406 | } |
| 407 | 407 | ||
| 408 | if (entry->size >= size + wasted) { | 408 | if (entry->size >= size + wasted && |
| 409 | (entry->start + wasted + size) <= end) { | ||
| 409 | if (!best_match) | 410 | if (!best_match) |
| 410 | return entry; | 411 | return entry; |
| 411 | if (entry->size < best_size) { | 412 | if (entry->size < best_size) { |
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index e660ac07f3b2..2307f98349f7 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
| @@ -735,8 +735,10 @@ static int i915_cmdbuffer(struct drm_device *dev, void *data, | |||
| 735 | if (cmdbuf->num_cliprects) { | 735 | if (cmdbuf->num_cliprects) { |
| 736 | cliprects = kcalloc(cmdbuf->num_cliprects, | 736 | cliprects = kcalloc(cmdbuf->num_cliprects, |
| 737 | sizeof(struct drm_clip_rect), GFP_KERNEL); | 737 | sizeof(struct drm_clip_rect), GFP_KERNEL); |
| 738 | if (cliprects == NULL) | 738 | if (cliprects == NULL) { |
| 739 | ret = -ENOMEM; | ||
| 739 | goto fail_batch_free; | 740 | goto fail_batch_free; |
| 741 | } | ||
| 740 | 742 | ||
| 741 | ret = copy_from_user(cliprects, cmdbuf->cliprects, | 743 | ret = copy_from_user(cliprects, cmdbuf->cliprects, |
| 742 | cmdbuf->num_cliprects * | 744 | cmdbuf->num_cliprects * |
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index ecac882e1d54..cf4cb3e9a0c2 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
| @@ -174,26 +174,20 @@ const static struct pci_device_id pciidlist[] = { | |||
| 174 | MODULE_DEVICE_TABLE(pci, pciidlist); | 174 | MODULE_DEVICE_TABLE(pci, pciidlist); |
| 175 | #endif | 175 | #endif |
| 176 | 176 | ||
| 177 | static int i915_suspend(struct drm_device *dev, pm_message_t state) | 177 | static int i915_drm_freeze(struct drm_device *dev) |
| 178 | { | 178 | { |
| 179 | struct drm_i915_private *dev_priv = dev->dev_private; | 179 | struct drm_i915_private *dev_priv = dev->dev_private; |
| 180 | 180 | ||
| 181 | if (!dev || !dev_priv) { | ||
| 182 | DRM_ERROR("dev: %p, dev_priv: %p\n", dev, dev_priv); | ||
| 183 | DRM_ERROR("DRM not initialized, aborting suspend.\n"); | ||
| 184 | return -ENODEV; | ||
| 185 | } | ||
| 186 | |||
| 187 | if (state.event == PM_EVENT_PRETHAW) | ||
| 188 | return 0; | ||
| 189 | |||
| 190 | pci_save_state(dev->pdev); | 181 | pci_save_state(dev->pdev); |
| 191 | 182 | ||
| 192 | /* If KMS is active, we do the leavevt stuff here */ | 183 | /* If KMS is active, we do the leavevt stuff here */ |
| 193 | if (drm_core_check_feature(dev, DRIVER_MODESET)) { | 184 | if (drm_core_check_feature(dev, DRIVER_MODESET)) { |
| 194 | if (i915_gem_idle(dev)) | 185 | int error = i915_gem_idle(dev); |
| 186 | if (error) { | ||
| 195 | dev_err(&dev->pdev->dev, | 187 | dev_err(&dev->pdev->dev, |
| 196 | "GEM idle failed, resume may fail\n"); | 188 | "GEM idle failed, resume might fail\n"); |
| 189 | return error; | ||
| 190 | } | ||
| 197 | drm_irq_uninstall(dev); | 191 | drm_irq_uninstall(dev); |
| 198 | } | 192 | } |
| 199 | 193 | ||
| @@ -201,26 +195,42 @@ static int i915_suspend(struct drm_device *dev, pm_message_t state) | |||
| 201 | 195 | ||
| 202 | intel_opregion_free(dev, 1); | 196 | intel_opregion_free(dev, 1); |
| 203 | 197 | ||
| 198 | /* Modeset on resume, not lid events */ | ||
| 199 | dev_priv->modeset_on_lid = 0; | ||
| 200 | |||
| 201 | return 0; | ||
| 202 | } | ||
| 203 | |||
| 204 | static int i915_suspend(struct drm_device *dev, pm_message_t state) | ||
| 205 | { | ||
| 206 | int error; | ||
| 207 | |||
| 208 | if (!dev || !dev->dev_private) { | ||
| 209 | DRM_ERROR("dev: %p\n", dev); | ||
| 210 | DRM_ERROR("DRM not initialized, aborting suspend.\n"); | ||
| 211 | return -ENODEV; | ||
| 212 | } | ||
| 213 | |||
| 214 | if (state.event == PM_EVENT_PRETHAW) | ||
| 215 | return 0; | ||
| 216 | |||
| 217 | error = i915_drm_freeze(dev); | ||
| 218 | if (error) | ||
| 219 | return error; | ||
| 220 | |||
| 204 | if (state.event == PM_EVENT_SUSPEND) { | 221 | if (state.event == PM_EVENT_SUSPEND) { |
| 205 | /* Shut down the device */ | 222 | /* Shut down the device */ |
| 206 | pci_disable_device(dev->pdev); | 223 | pci_disable_device(dev->pdev); |
| 207 | pci_set_power_state(dev->pdev, PCI_D3hot); | 224 | pci_set_power_state(dev->pdev, PCI_D3hot); |
| 208 | } | 225 | } |
| 209 | 226 | ||
| 210 | /* Modeset on resume, not lid events */ | ||
| 211 | dev_priv->modeset_on_lid = 0; | ||
| 212 | |||
| 213 | return 0; | 227 | return 0; |
| 214 | } | 228 | } |
| 215 | 229 | ||
| 216 | static int i915_resume(struct drm_device *dev) | 230 | static int i915_drm_thaw(struct drm_device *dev) |
| 217 | { | 231 | { |
| 218 | struct drm_i915_private *dev_priv = dev->dev_private; | 232 | struct drm_i915_private *dev_priv = dev->dev_private; |
| 219 | int ret = 0; | 233 | int error = 0; |
| 220 | |||
| 221 | if (pci_enable_device(dev->pdev)) | ||
| 222 | return -1; | ||
| 223 | pci_set_master(dev->pdev); | ||
| 224 | 234 | ||
| 225 | i915_restore_state(dev); | 235 | i915_restore_state(dev); |
| 226 | 236 | ||
| @@ -231,21 +241,28 @@ static int i915_resume(struct drm_device *dev) | |||
| 231 | mutex_lock(&dev->struct_mutex); | 241 | mutex_lock(&dev->struct_mutex); |
| 232 | dev_priv->mm.suspended = 0; | 242 | dev_priv->mm.suspended = 0; |
| 233 | 243 | ||
| 234 | ret = i915_gem_init_ringbuffer(dev); | 244 | error = i915_gem_init_ringbuffer(dev); |
| 235 | if (ret != 0) | ||
| 236 | ret = -1; | ||
| 237 | mutex_unlock(&dev->struct_mutex); | 245 | mutex_unlock(&dev->struct_mutex); |
| 238 | 246 | ||
| 239 | drm_irq_install(dev); | 247 | drm_irq_install(dev); |
| 240 | } | 248 | |
| 241 | if (drm_core_check_feature(dev, DRIVER_MODESET)) { | ||
| 242 | /* Resume the modeset for every activated CRTC */ | 249 | /* Resume the modeset for every activated CRTC */ |
| 243 | drm_helper_resume_force_mode(dev); | 250 | drm_helper_resume_force_mode(dev); |
| 244 | } | 251 | } |
| 245 | 252 | ||
| 246 | dev_priv->modeset_on_lid = 0; | 253 | dev_priv->modeset_on_lid = 0; |
| 247 | 254 | ||
| 248 | return ret; | 255 | return error; |
| 256 | } | ||
| 257 | |||
| 258 | static int i915_resume(struct drm_device *dev) | ||
| 259 | { | ||
| 260 | if (pci_enable_device(dev->pdev)) | ||
| 261 | return -EIO; | ||
| 262 | |||
| 263 | pci_set_master(dev->pdev); | ||
| 264 | |||
| 265 | return i915_drm_thaw(dev); | ||
| 249 | } | 266 | } |
| 250 | 267 | ||
| 251 | /** | 268 | /** |
| @@ -386,57 +403,62 @@ i915_pci_remove(struct pci_dev *pdev) | |||
| 386 | drm_put_dev(dev); | 403 | drm_put_dev(dev); |
| 387 | } | 404 | } |
| 388 | 405 | ||
| 389 | static int | 406 | static int i915_pm_suspend(struct device *dev) |
| 390 | i915_pci_suspend(struct pci_dev *pdev, pm_message_t state) | ||
| 391 | { | 407 | { |
| 392 | struct drm_device *dev = pci_get_drvdata(pdev); | 408 | struct pci_dev *pdev = to_pci_dev(dev); |
| 409 | struct drm_device *drm_dev = pci_get_drvdata(pdev); | ||
| 410 | int error; | ||
| 393 | 411 | ||
| 394 | return i915_suspend(dev, state); | 412 | if (!drm_dev || !drm_dev->dev_private) { |
| 395 | } | 413 | dev_err(dev, "DRM not initialized, aborting suspend.\n"); |
| 414 | return -ENODEV; | ||
| 415 | } | ||
| 396 | 416 | ||
| 397 | static int | 417 | error = i915_drm_freeze(drm_dev); |
| 398 | i915_pci_resume(struct pci_dev *pdev) | 418 | if (error) |
| 399 | { | 419 | return error; |
| 400 | struct drm_device *dev = pci_get_drvdata(pdev); | ||
| 401 | 420 | ||
| 402 | return i915_resume(dev); | 421 | pci_disable_device(pdev); |
| 403 | } | 422 | pci_set_power_state(pdev, PCI_D3hot); |
| 404 | 423 | ||
| 405 | static int | 424 | return 0; |
| 406 | i915_pm_suspend(struct device *dev) | ||
| 407 | { | ||
| 408 | return i915_pci_suspend(to_pci_dev(dev), PMSG_SUSPEND); | ||
| 409 | } | 425 | } |
| 410 | 426 | ||
| 411 | static int | 427 | static int i915_pm_resume(struct device *dev) |
| 412 | i915_pm_resume(struct device *dev) | ||
| 413 | { | 428 | { |
| 414 | return i915_pci_resume(to_pci_dev(dev)); | 429 | struct pci_dev *pdev = to_pci_dev(dev); |
| 415 | } | 430 | struct drm_device *drm_dev = pci_get_drvdata(pdev); |
| 416 | 431 | ||
| 417 | static int | 432 | return i915_resume(drm_dev); |
| 418 | i915_pm_freeze(struct device *dev) | ||
| 419 | { | ||
| 420 | return i915_pci_suspend(to_pci_dev(dev), PMSG_FREEZE); | ||
| 421 | } | 433 | } |
| 422 | 434 | ||
| 423 | static int | 435 | static int i915_pm_freeze(struct device *dev) |
| 424 | i915_pm_thaw(struct device *dev) | ||
| 425 | { | 436 | { |
| 426 | /* thaw during hibernate, do nothing! */ | 437 | struct pci_dev *pdev = to_pci_dev(dev); |
| 427 | return 0; | 438 | struct drm_device *drm_dev = pci_get_drvdata(pdev); |
| 439 | |||
| 440 | if (!drm_dev || !drm_dev->dev_private) { | ||
| 441 | dev_err(dev, "DRM not initialized, aborting suspend.\n"); | ||
| 442 | return -ENODEV; | ||
| 443 | } | ||
| 444 | |||
| 445 | return i915_drm_freeze(drm_dev); | ||
| 428 | } | 446 | } |
| 429 | 447 | ||
| 430 | static int | 448 | static int i915_pm_thaw(struct device *dev) |
| 431 | i915_pm_poweroff(struct device *dev) | ||
| 432 | { | 449 | { |
| 433 | return i915_pci_suspend(to_pci_dev(dev), PMSG_HIBERNATE); | 450 | struct pci_dev *pdev = to_pci_dev(dev); |
| 451 | struct drm_device *drm_dev = pci_get_drvdata(pdev); | ||
| 452 | |||
| 453 | return i915_drm_thaw(drm_dev); | ||
| 434 | } | 454 | } |
| 435 | 455 | ||
| 436 | static int | 456 | static int i915_pm_poweroff(struct device *dev) |
| 437 | i915_pm_restore(struct device *dev) | ||
| 438 | { | 457 | { |
| 439 | return i915_pci_resume(to_pci_dev(dev)); | 458 | struct pci_dev *pdev = to_pci_dev(dev); |
| 459 | struct drm_device *drm_dev = pci_get_drvdata(pdev); | ||
| 460 | |||
| 461 | return i915_drm_freeze(drm_dev); | ||
| 440 | } | 462 | } |
| 441 | 463 | ||
| 442 | const struct dev_pm_ops i915_pm_ops = { | 464 | const struct dev_pm_ops i915_pm_ops = { |
| @@ -445,7 +467,7 @@ const struct dev_pm_ops i915_pm_ops = { | |||
| 445 | .freeze = i915_pm_freeze, | 467 | .freeze = i915_pm_freeze, |
| 446 | .thaw = i915_pm_thaw, | 468 | .thaw = i915_pm_thaw, |
| 447 | .poweroff = i915_pm_poweroff, | 469 | .poweroff = i915_pm_poweroff, |
| 448 | .restore = i915_pm_restore, | 470 | .restore = i915_pm_resume, |
| 449 | }; | 471 | }; |
| 450 | 472 | ||
| 451 | static struct vm_operations_struct i915_gem_vm_ops = { | 473 | static struct vm_operations_struct i915_gem_vm_ops = { |
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index aaf934d96f21..b99b6a841d95 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
| @@ -493,6 +493,15 @@ typedef struct drm_i915_private { | |||
| 493 | struct list_head flushing_list; | 493 | struct list_head flushing_list; |
| 494 | 494 | ||
| 495 | /** | 495 | /** |
| 496 | * List of objects currently pending a GPU write flush. | ||
| 497 | * | ||
| 498 | * All elements on this list will belong to either the | ||
| 499 | * active_list or flushing_list, last_rendering_seqno can | ||
| 500 | * be used to differentiate between the two elements. | ||
| 501 | */ | ||
| 502 | struct list_head gpu_write_list; | ||
| 503 | |||
| 504 | /** | ||
| 496 | * LRU list of objects which are not in the ringbuffer and | 505 | * LRU list of objects which are not in the ringbuffer and |
| 497 | * are ready to unbind, but are still in the GTT. | 506 | * are ready to unbind, but are still in the GTT. |
| 498 | * | 507 | * |
| @@ -592,6 +601,8 @@ struct drm_i915_gem_object { | |||
| 592 | 601 | ||
| 593 | /** This object's place on the active/flushing/inactive lists */ | 602 | /** This object's place on the active/flushing/inactive lists */ |
| 594 | struct list_head list; | 603 | struct list_head list; |
| 604 | /** This object's place on GPU write list */ | ||
| 605 | struct list_head gpu_write_list; | ||
| 595 | 606 | ||
| 596 | /** This object's place on the fenced object LRU */ | 607 | /** This object's place on the fenced object LRU */ |
| 597 | struct list_head fence_list; | 608 | struct list_head fence_list; |
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 6844ca4f4265..9d87d5a41bdc 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
| @@ -1548,6 +1548,8 @@ i915_gem_object_move_to_inactive(struct drm_gem_object *obj) | |||
| 1548 | else | 1548 | else |
| 1549 | list_move_tail(&obj_priv->list, &dev_priv->mm.inactive_list); | 1549 | list_move_tail(&obj_priv->list, &dev_priv->mm.inactive_list); |
| 1550 | 1550 | ||
| 1551 | BUG_ON(!list_empty(&obj_priv->gpu_write_list)); | ||
| 1552 | |||
| 1551 | obj_priv->last_rendering_seqno = 0; | 1553 | obj_priv->last_rendering_seqno = 0; |
| 1552 | if (obj_priv->active) { | 1554 | if (obj_priv->active) { |
| 1553 | obj_priv->active = 0; | 1555 | obj_priv->active = 0; |
| @@ -1618,7 +1620,8 @@ i915_add_request(struct drm_device *dev, struct drm_file *file_priv, | |||
| 1618 | struct drm_i915_gem_object *obj_priv, *next; | 1620 | struct drm_i915_gem_object *obj_priv, *next; |
| 1619 | 1621 | ||
| 1620 | list_for_each_entry_safe(obj_priv, next, | 1622 | list_for_each_entry_safe(obj_priv, next, |
| 1621 | &dev_priv->mm.flushing_list, list) { | 1623 | &dev_priv->mm.gpu_write_list, |
| 1624 | gpu_write_list) { | ||
| 1622 | struct drm_gem_object *obj = obj_priv->obj; | 1625 | struct drm_gem_object *obj = obj_priv->obj; |
| 1623 | 1626 | ||
| 1624 | if ((obj->write_domain & flush_domains) == | 1627 | if ((obj->write_domain & flush_domains) == |
| @@ -1626,6 +1629,7 @@ i915_add_request(struct drm_device *dev, struct drm_file *file_priv, | |||
| 1626 | uint32_t old_write_domain = obj->write_domain; | 1629 | uint32_t old_write_domain = obj->write_domain; |
| 1627 | 1630 | ||
| 1628 | obj->write_domain = 0; | 1631 | obj->write_domain = 0; |
| 1632 | list_del_init(&obj_priv->gpu_write_list); | ||
| 1629 | i915_gem_object_move_to_active(obj, seqno); | 1633 | i915_gem_object_move_to_active(obj, seqno); |
| 1630 | 1634 | ||
| 1631 | trace_i915_gem_object_change_domain(obj, | 1635 | trace_i915_gem_object_change_domain(obj, |
| @@ -2080,8 +2084,8 @@ static int | |||
| 2080 | i915_gem_evict_everything(struct drm_device *dev) | 2084 | i915_gem_evict_everything(struct drm_device *dev) |
| 2081 | { | 2085 | { |
| 2082 | drm_i915_private_t *dev_priv = dev->dev_private; | 2086 | drm_i915_private_t *dev_priv = dev->dev_private; |
| 2083 | uint32_t seqno; | ||
| 2084 | int ret; | 2087 | int ret; |
| 2088 | uint32_t seqno; | ||
| 2085 | bool lists_empty; | 2089 | bool lists_empty; |
| 2086 | 2090 | ||
| 2087 | spin_lock(&dev_priv->mm.active_list_lock); | 2091 | spin_lock(&dev_priv->mm.active_list_lock); |
| @@ -2103,6 +2107,8 @@ i915_gem_evict_everything(struct drm_device *dev) | |||
| 2103 | if (ret) | 2107 | if (ret) |
| 2104 | return ret; | 2108 | return ret; |
| 2105 | 2109 | ||
| 2110 | BUG_ON(!list_empty(&dev_priv->mm.flushing_list)); | ||
| 2111 | |||
| 2106 | ret = i915_gem_evict_from_inactive_list(dev); | 2112 | ret = i915_gem_evict_from_inactive_list(dev); |
| 2107 | if (ret) | 2113 | if (ret) |
| 2108 | return ret; | 2114 | return ret; |
| @@ -2697,7 +2703,7 @@ i915_gem_object_flush_gpu_write_domain(struct drm_gem_object *obj) | |||
| 2697 | old_write_domain = obj->write_domain; | 2703 | old_write_domain = obj->write_domain; |
| 2698 | i915_gem_flush(dev, 0, obj->write_domain); | 2704 | i915_gem_flush(dev, 0, obj->write_domain); |
| 2699 | seqno = i915_add_request(dev, NULL, obj->write_domain); | 2705 | seqno = i915_add_request(dev, NULL, obj->write_domain); |
| 2700 | obj->write_domain = 0; | 2706 | BUG_ON(obj->write_domain); |
| 2701 | i915_gem_object_move_to_active(obj, seqno); | 2707 | i915_gem_object_move_to_active(obj, seqno); |
| 2702 | 2708 | ||
| 2703 | trace_i915_gem_object_change_domain(obj, | 2709 | trace_i915_gem_object_change_domain(obj, |
| @@ -3678,8 +3684,10 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data, | |||
| 3678 | if (args->num_cliprects != 0) { | 3684 | if (args->num_cliprects != 0) { |
| 3679 | cliprects = kcalloc(args->num_cliprects, sizeof(*cliprects), | 3685 | cliprects = kcalloc(args->num_cliprects, sizeof(*cliprects), |
| 3680 | GFP_KERNEL); | 3686 | GFP_KERNEL); |
| 3681 | if (cliprects == NULL) | 3687 | if (cliprects == NULL) { |
| 3688 | ret = -ENOMEM; | ||
| 3682 | goto pre_mutex_err; | 3689 | goto pre_mutex_err; |
| 3690 | } | ||
| 3683 | 3691 | ||
| 3684 | ret = copy_from_user(cliprects, | 3692 | ret = copy_from_user(cliprects, |
| 3685 | (struct drm_clip_rect __user *) | 3693 | (struct drm_clip_rect __user *) |
| @@ -3846,16 +3854,23 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data, | |||
| 3846 | i915_gem_flush(dev, | 3854 | i915_gem_flush(dev, |
| 3847 | dev->invalidate_domains, | 3855 | dev->invalidate_domains, |
| 3848 | dev->flush_domains); | 3856 | dev->flush_domains); |
| 3849 | if (dev->flush_domains) | 3857 | if (dev->flush_domains & I915_GEM_GPU_DOMAINS) |
| 3850 | (void)i915_add_request(dev, file_priv, | 3858 | (void)i915_add_request(dev, file_priv, |
| 3851 | dev->flush_domains); | 3859 | dev->flush_domains); |
| 3852 | } | 3860 | } |
| 3853 | 3861 | ||
| 3854 | for (i = 0; i < args->buffer_count; i++) { | 3862 | for (i = 0; i < args->buffer_count; i++) { |
| 3855 | struct drm_gem_object *obj = object_list[i]; | 3863 | struct drm_gem_object *obj = object_list[i]; |
| 3864 | struct drm_i915_gem_object *obj_priv = obj->driver_private; | ||
| 3856 | uint32_t old_write_domain = obj->write_domain; | 3865 | uint32_t old_write_domain = obj->write_domain; |
| 3857 | 3866 | ||
| 3858 | obj->write_domain = obj->pending_write_domain; | 3867 | obj->write_domain = obj->pending_write_domain; |
| 3868 | if (obj->write_domain) | ||
| 3869 | list_move_tail(&obj_priv->gpu_write_list, | ||
| 3870 | &dev_priv->mm.gpu_write_list); | ||
| 3871 | else | ||
| 3872 | list_del_init(&obj_priv->gpu_write_list); | ||
| 3873 | |||
| 3859 | trace_i915_gem_object_change_domain(obj, | 3874 | trace_i915_gem_object_change_domain(obj, |
| 3860 | obj->read_domains, | 3875 | obj->read_domains, |
| 3861 | old_write_domain); | 3876 | old_write_domain); |
| @@ -4366,6 +4381,7 @@ int i915_gem_init_object(struct drm_gem_object *obj) | |||
| 4366 | obj_priv->obj = obj; | 4381 | obj_priv->obj = obj; |
| 4367 | obj_priv->fence_reg = I915_FENCE_REG_NONE; | 4382 | obj_priv->fence_reg = I915_FENCE_REG_NONE; |
| 4368 | INIT_LIST_HEAD(&obj_priv->list); | 4383 | INIT_LIST_HEAD(&obj_priv->list); |
| 4384 | INIT_LIST_HEAD(&obj_priv->gpu_write_list); | ||
| 4369 | INIT_LIST_HEAD(&obj_priv->fence_list); | 4385 | INIT_LIST_HEAD(&obj_priv->fence_list); |
| 4370 | obj_priv->madv = I915_MADV_WILLNEED; | 4386 | obj_priv->madv = I915_MADV_WILLNEED; |
| 4371 | 4387 | ||
| @@ -4817,6 +4833,7 @@ i915_gem_load(struct drm_device *dev) | |||
| 4817 | spin_lock_init(&dev_priv->mm.active_list_lock); | 4833 | spin_lock_init(&dev_priv->mm.active_list_lock); |
| 4818 | INIT_LIST_HEAD(&dev_priv->mm.active_list); | 4834 | INIT_LIST_HEAD(&dev_priv->mm.active_list); |
| 4819 | INIT_LIST_HEAD(&dev_priv->mm.flushing_list); | 4835 | INIT_LIST_HEAD(&dev_priv->mm.flushing_list); |
| 4836 | INIT_LIST_HEAD(&dev_priv->mm.gpu_write_list); | ||
| 4820 | INIT_LIST_HEAD(&dev_priv->mm.inactive_list); | 4837 | INIT_LIST_HEAD(&dev_priv->mm.inactive_list); |
| 4821 | INIT_LIST_HEAD(&dev_priv->mm.request_list); | 4838 | INIT_LIST_HEAD(&dev_priv->mm.request_list); |
| 4822 | INIT_LIST_HEAD(&dev_priv->mm.fence_list); | 4839 | INIT_LIST_HEAD(&dev_priv->mm.fence_list); |
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 50ddf4a95c5e..a17d6bdfe63e 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
| @@ -309,21 +309,21 @@ irqreturn_t ironlake_irq_handler(struct drm_device *dev) | |||
| 309 | if (de_iir & DE_GSE) | 309 | if (de_iir & DE_GSE) |
| 310 | ironlake_opregion_gse_intr(dev); | 310 | ironlake_opregion_gse_intr(dev); |
| 311 | 311 | ||
| 312 | if (de_iir & DE_PLANEA_FLIP_DONE) | 312 | if (de_iir & DE_PLANEA_FLIP_DONE) { |
| 313 | intel_prepare_page_flip(dev, 0); | 313 | intel_prepare_page_flip(dev, 0); |
| 314 | intel_finish_page_flip(dev, 0); | ||
| 315 | } | ||
| 314 | 316 | ||
| 315 | if (de_iir & DE_PLANEB_FLIP_DONE) | 317 | if (de_iir & DE_PLANEB_FLIP_DONE) { |
| 316 | intel_prepare_page_flip(dev, 1); | 318 | intel_prepare_page_flip(dev, 1); |
| 319 | intel_finish_page_flip(dev, 1); | ||
| 320 | } | ||
| 317 | 321 | ||
| 318 | if (de_iir & DE_PIPEA_VBLANK) { | 322 | if (de_iir & DE_PIPEA_VBLANK) |
| 319 | drm_handle_vblank(dev, 0); | 323 | drm_handle_vblank(dev, 0); |
| 320 | intel_finish_page_flip(dev, 0); | ||
| 321 | } | ||
| 322 | 324 | ||
| 323 | if (de_iir & DE_PIPEB_VBLANK) { | 325 | if (de_iir & DE_PIPEB_VBLANK) |
| 324 | drm_handle_vblank(dev, 1); | 326 | drm_handle_vblank(dev, 1); |
| 325 | intel_finish_page_flip(dev, 1); | ||
| 326 | } | ||
| 327 | 327 | ||
| 328 | /* check event from PCH */ | 328 | /* check event from PCH */ |
| 329 | if ((de_iir & DE_PCH_EVENT) && | 329 | if ((de_iir & DE_PCH_EVENT) && |
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 847006c5218e..ab1bd2d3d3b6 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
| @@ -338,6 +338,7 @@ | |||
| 338 | #define FBC_CTL_PERIODIC (1<<30) | 338 | #define FBC_CTL_PERIODIC (1<<30) |
| 339 | #define FBC_CTL_INTERVAL_SHIFT (16) | 339 | #define FBC_CTL_INTERVAL_SHIFT (16) |
| 340 | #define FBC_CTL_UNCOMPRESSIBLE (1<<14) | 340 | #define FBC_CTL_UNCOMPRESSIBLE (1<<14) |
| 341 | #define FBC_C3_IDLE (1<<13) | ||
| 341 | #define FBC_CTL_STRIDE_SHIFT (5) | 342 | #define FBC_CTL_STRIDE_SHIFT (5) |
| 342 | #define FBC_CTL_FENCENO (1<<0) | 343 | #define FBC_CTL_FENCENO (1<<0) |
| 343 | #define FBC_COMMAND 0x0320c | 344 | #define FBC_COMMAND 0x0320c |
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 8f72d0bfa7c5..c8fd15f146af 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
| @@ -240,33 +240,86 @@ struct intel_limit { | |||
| 240 | #define IRONLAKE_DOT_MAX 350000 | 240 | #define IRONLAKE_DOT_MAX 350000 |
| 241 | #define IRONLAKE_VCO_MIN 1760000 | 241 | #define IRONLAKE_VCO_MIN 1760000 |
| 242 | #define IRONLAKE_VCO_MAX 3510000 | 242 | #define IRONLAKE_VCO_MAX 3510000 |
| 243 | #define IRONLAKE_N_MIN 1 | ||
| 244 | #define IRONLAKE_N_MAX 6 | ||
| 245 | #define IRONLAKE_M_MIN 79 | ||
| 246 | #define IRONLAKE_M_MAX 127 | ||
| 247 | #define IRONLAKE_M1_MIN 12 | 243 | #define IRONLAKE_M1_MIN 12 |
| 248 | #define IRONLAKE_M1_MAX 22 | 244 | #define IRONLAKE_M1_MAX 22 |
| 249 | #define IRONLAKE_M2_MIN 5 | 245 | #define IRONLAKE_M2_MIN 5 |
| 250 | #define IRONLAKE_M2_MAX 9 | 246 | #define IRONLAKE_M2_MAX 9 |
| 251 | #define IRONLAKE_P_SDVO_DAC_MIN 5 | ||
| 252 | #define IRONLAKE_P_SDVO_DAC_MAX 80 | ||
| 253 | #define IRONLAKE_P_LVDS_MIN 28 | ||
| 254 | #define IRONLAKE_P_LVDS_MAX 112 | ||
| 255 | #define IRONLAKE_P1_MIN 1 | ||
| 256 | #define IRONLAKE_P1_MAX 8 | ||
| 257 | #define IRONLAKE_P2_SDVO_DAC_SLOW 10 | ||
| 258 | #define IRONLAKE_P2_SDVO_DAC_FAST 5 | ||
| 259 | #define IRONLAKE_P2_LVDS_SLOW 14 /* single channel */ | ||
| 260 | #define IRONLAKE_P2_LVDS_FAST 7 /* double channel */ | ||
| 261 | #define IRONLAKE_P2_DOT_LIMIT 225000 /* 225Mhz */ | 247 | #define IRONLAKE_P2_DOT_LIMIT 225000 /* 225Mhz */ |
| 262 | 248 | ||
| 263 | #define IRONLAKE_P_DISPLAY_PORT_MIN 10 | 249 | /* We have parameter ranges for different type of outputs. */ |
| 264 | #define IRONLAKE_P_DISPLAY_PORT_MAX 20 | 250 | |
| 265 | #define IRONLAKE_P2_DISPLAY_PORT_FAST 10 | 251 | /* DAC & HDMI Refclk 120Mhz */ |
| 266 | #define IRONLAKE_P2_DISPLAY_PORT_SLOW 10 | 252 | #define IRONLAKE_DAC_N_MIN 1 |
| 267 | #define IRONLAKE_P2_DISPLAY_PORT_LIMIT 0 | 253 | #define IRONLAKE_DAC_N_MAX 5 |
| 268 | #define IRONLAKE_P1_DISPLAY_PORT_MIN 1 | 254 | #define IRONLAKE_DAC_M_MIN 79 |
| 269 | #define IRONLAKE_P1_DISPLAY_PORT_MAX 2 | 255 | #define IRONLAKE_DAC_M_MAX 127 |
| 256 | #define IRONLAKE_DAC_P_MIN 5 | ||
| 257 | #define IRONLAKE_DAC_P_MAX 80 | ||
| 258 | #define IRONLAKE_DAC_P1_MIN 1 | ||
| 259 | #define IRONLAKE_DAC_P1_MAX 8 | ||
| 260 | #define IRONLAKE_DAC_P2_SLOW 10 | ||
| 261 | #define IRONLAKE_DAC_P2_FAST 5 | ||
| 262 | |||
| 263 | /* LVDS single-channel 120Mhz refclk */ | ||
| 264 | #define IRONLAKE_LVDS_S_N_MIN 1 | ||
| 265 | #define IRONLAKE_LVDS_S_N_MAX 3 | ||
| 266 | #define IRONLAKE_LVDS_S_M_MIN 79 | ||
| 267 | #define IRONLAKE_LVDS_S_M_MAX 118 | ||
| 268 | #define IRONLAKE_LVDS_S_P_MIN 28 | ||
| 269 | #define IRONLAKE_LVDS_S_P_MAX 112 | ||
| 270 | #define IRONLAKE_LVDS_S_P1_MIN 2 | ||
| 271 | #define IRONLAKE_LVDS_S_P1_MAX 8 | ||
| 272 | #define IRONLAKE_LVDS_S_P2_SLOW 14 | ||
| 273 | #define IRONLAKE_LVDS_S_P2_FAST 14 | ||
| 274 | |||
| 275 | /* LVDS dual-channel 120Mhz refclk */ | ||
| 276 | #define IRONLAKE_LVDS_D_N_MIN 1 | ||
| 277 | #define IRONLAKE_LVDS_D_N_MAX 3 | ||
| 278 | #define IRONLAKE_LVDS_D_M_MIN 79 | ||
| 279 | #define IRONLAKE_LVDS_D_M_MAX 127 | ||
| 280 | #define IRONLAKE_LVDS_D_P_MIN 14 | ||
| 281 | #define IRONLAKE_LVDS_D_P_MAX 56 | ||
| 282 | #define IRONLAKE_LVDS_D_P1_MIN 2 | ||
| 283 | #define IRONLAKE_LVDS_D_P1_MAX 8 | ||
| 284 | #define IRONLAKE_LVDS_D_P2_SLOW 7 | ||
| 285 | #define IRONLAKE_LVDS_D_P2_FAST 7 | ||
| 286 | |||
| 287 | /* LVDS single-channel 100Mhz refclk */ | ||
| 288 | #define IRONLAKE_LVDS_S_SSC_N_MIN 1 | ||
| 289 | #define IRONLAKE_LVDS_S_SSC_N_MAX 2 | ||
| 290 | #define IRONLAKE_LVDS_S_SSC_M_MIN 79 | ||
| 291 | #define IRONLAKE_LVDS_S_SSC_M_MAX 126 | ||
| 292 | #define IRONLAKE_LVDS_S_SSC_P_MIN 28 | ||
| 293 | #define IRONLAKE_LVDS_S_SSC_P_MAX 112 | ||
| 294 | #define IRONLAKE_LVDS_S_SSC_P1_MIN 2 | ||
| 295 | #define IRONLAKE_LVDS_S_SSC_P1_MAX 8 | ||
| 296 | #define IRONLAKE_LVDS_S_SSC_P2_SLOW 14 | ||
| 297 | #define IRONLAKE_LVDS_S_SSC_P2_FAST 14 | ||
| 298 | |||
| 299 | /* LVDS dual-channel 100Mhz refclk */ | ||
| 300 | #define IRONLAKE_LVDS_D_SSC_N_MIN 1 | ||
| 301 | #define IRONLAKE_LVDS_D_SSC_N_MAX 3 | ||
| 302 | #define IRONLAKE_LVDS_D_SSC_M_MIN 79 | ||
| 303 | #define IRONLAKE_LVDS_D_SSC_M_MAX 126 | ||
| 304 | #define IRONLAKE_LVDS_D_SSC_P_MIN 14 | ||
| 305 | #define IRONLAKE_LVDS_D_SSC_P_MAX 42 | ||
| 306 | #define IRONLAKE_LVDS_D_SSC_P1_MIN 2 | ||
| 307 | #define IRONLAKE_LVDS_D_SSC_P1_MAX 6 | ||
| 308 | #define IRONLAKE_LVDS_D_SSC_P2_SLOW 7 | ||
| 309 | #define IRONLAKE_LVDS_D_SSC_P2_FAST 7 | ||
| 310 | |||
| 311 | /* DisplayPort */ | ||
| 312 | #define IRONLAKE_DP_N_MIN 1 | ||
| 313 | #define IRONLAKE_DP_N_MAX 2 | ||
| 314 | #define IRONLAKE_DP_M_MIN 81 | ||
| 315 | #define IRONLAKE_DP_M_MAX 90 | ||
| 316 | #define IRONLAKE_DP_P_MIN 10 | ||
| 317 | #define IRONLAKE_DP_P_MAX 20 | ||
| 318 | #define IRONLAKE_DP_P2_FAST 10 | ||
| 319 | #define IRONLAKE_DP_P2_SLOW 10 | ||
| 320 | #define IRONLAKE_DP_P2_LIMIT 0 | ||
| 321 | #define IRONLAKE_DP_P1_MIN 1 | ||
| 322 | #define IRONLAKE_DP_P1_MAX 2 | ||
| 270 | 323 | ||
| 271 | static bool | 324 | static bool |
| 272 | intel_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc, | 325 | intel_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc, |
| @@ -474,33 +527,78 @@ static const intel_limit_t intel_limits_pineview_lvds = { | |||
| 474 | .find_pll = intel_find_best_PLL, | 527 | .find_pll = intel_find_best_PLL, |
| 475 | }; | 528 | }; |
| 476 | 529 | ||
| 477 | static const intel_limit_t intel_limits_ironlake_sdvo = { | 530 | static const intel_limit_t intel_limits_ironlake_dac = { |
| 478 | .dot = { .min = IRONLAKE_DOT_MIN, .max = IRONLAKE_DOT_MAX }, | 531 | .dot = { .min = IRONLAKE_DOT_MIN, .max = IRONLAKE_DOT_MAX }, |
| 479 | .vco = { .min = IRONLAKE_VCO_MIN, .max = IRONLAKE_VCO_MAX }, | 532 | .vco = { .min = IRONLAKE_VCO_MIN, .max = IRONLAKE_VCO_MAX }, |
| 480 | .n = { .min = IRONLAKE_N_MIN, .max = IRONLAKE_N_MAX }, | 533 | .n = { .min = IRONLAKE_DAC_N_MIN, .max = IRONLAKE_DAC_N_MAX }, |
| 481 | .m = { .min = IRONLAKE_M_MIN, .max = IRONLAKE_M_MAX }, | 534 | .m = { .min = IRONLAKE_DAC_M_MIN, .max = IRONLAKE_DAC_M_MAX }, |
| 482 | .m1 = { .min = IRONLAKE_M1_MIN, .max = IRONLAKE_M1_MAX }, | 535 | .m1 = { .min = IRONLAKE_M1_MIN, .max = IRONLAKE_M1_MAX }, |
| 483 | .m2 = { .min = IRONLAKE_M2_MIN, .max = IRONLAKE_M2_MAX }, | 536 | .m2 = { .min = IRONLAKE_M2_MIN, .max = IRONLAKE_M2_MAX }, |
| 484 | .p = { .min = IRONLAKE_P_SDVO_DAC_MIN, .max = IRONLAKE_P_SDVO_DAC_MAX }, | 537 | .p = { .min = IRONLAKE_DAC_P_MIN, .max = IRONLAKE_DAC_P_MAX }, |
| 485 | .p1 = { .min = IRONLAKE_P1_MIN, .max = IRONLAKE_P1_MAX }, | 538 | .p1 = { .min = IRONLAKE_DAC_P1_MIN, .max = IRONLAKE_DAC_P1_MAX }, |
| 486 | .p2 = { .dot_limit = IRONLAKE_P2_DOT_LIMIT, | 539 | .p2 = { .dot_limit = IRONLAKE_P2_DOT_LIMIT, |
| 487 | .p2_slow = IRONLAKE_P2_SDVO_DAC_SLOW, | 540 | .p2_slow = IRONLAKE_DAC_P2_SLOW, |
| 488 | .p2_fast = IRONLAKE_P2_SDVO_DAC_FAST }, | 541 | .p2_fast = IRONLAKE_DAC_P2_FAST }, |
| 489 | .find_pll = intel_g4x_find_best_PLL, | 542 | .find_pll = intel_g4x_find_best_PLL, |
| 490 | }; | 543 | }; |
| 491 | 544 | ||
| 492 | static const intel_limit_t intel_limits_ironlake_lvds = { | 545 | static const intel_limit_t intel_limits_ironlake_single_lvds = { |
| 493 | .dot = { .min = IRONLAKE_DOT_MIN, .max = IRONLAKE_DOT_MAX }, | 546 | .dot = { .min = IRONLAKE_DOT_MIN, .max = IRONLAKE_DOT_MAX }, |
| 494 | .vco = { .min = IRONLAKE_VCO_MIN, .max = IRONLAKE_VCO_MAX }, | 547 | .vco = { .min = IRONLAKE_VCO_MIN, .max = IRONLAKE_VCO_MAX }, |
| 495 | .n = { .min = IRONLAKE_N_MIN, .max = IRONLAKE_N_MAX }, | 548 | .n = { .min = IRONLAKE_LVDS_S_N_MIN, .max = IRONLAKE_LVDS_S_N_MAX }, |
| 496 | .m = { .min = IRONLAKE_M_MIN, .max = IRONLAKE_M_MAX }, | 549 | .m = { .min = IRONLAKE_LVDS_S_M_MIN, .max = IRONLAKE_LVDS_S_M_MAX }, |
| 497 | .m1 = { .min = IRONLAKE_M1_MIN, .max = IRONLAKE_M1_MAX }, | 550 | .m1 = { .min = IRONLAKE_M1_MIN, .max = IRONLAKE_M1_MAX }, |
| 498 | .m2 = { .min = IRONLAKE_M2_MIN, .max = IRONLAKE_M2_MAX }, | 551 | .m2 = { .min = IRONLAKE_M2_MIN, .max = IRONLAKE_M2_MAX }, |
| 499 | .p = { .min = IRONLAKE_P_LVDS_MIN, .max = IRONLAKE_P_LVDS_MAX }, | 552 | .p = { .min = IRONLAKE_LVDS_S_P_MIN, .max = IRONLAKE_LVDS_S_P_MAX }, |
| 500 | .p1 = { .min = IRONLAKE_P1_MIN, .max = IRONLAKE_P1_MAX }, | 553 | .p1 = { .min = IRONLAKE_LVDS_S_P1_MIN, .max = IRONLAKE_LVDS_S_P1_MAX }, |
| 501 | .p2 = { .dot_limit = IRONLAKE_P2_DOT_LIMIT, | 554 | .p2 = { .dot_limit = IRONLAKE_P2_DOT_LIMIT, |
| 502 | .p2_slow = IRONLAKE_P2_LVDS_SLOW, | 555 | .p2_slow = IRONLAKE_LVDS_S_P2_SLOW, |
| 503 | .p2_fast = IRONLAKE_P2_LVDS_FAST }, | 556 | .p2_fast = IRONLAKE_LVDS_S_P2_FAST }, |
| 557 | .find_pll = intel_g4x_find_best_PLL, | ||
| 558 | }; | ||
| 559 | |||
| 560 | static const intel_limit_t intel_limits_ironlake_dual_lvds = { | ||
| 561 | .dot = { .min = IRONLAKE_DOT_MIN, .max = IRONLAKE_DOT_MAX }, | ||
| 562 | .vco = { .min = IRONLAKE_VCO_MIN, .max = IRONLAKE_VCO_MAX }, | ||
| 563 | .n = { .min = IRONLAKE_LVDS_D_N_MIN, .max = IRONLAKE_LVDS_D_N_MAX }, | ||
| 564 | .m = { .min = IRONLAKE_LVDS_D_M_MIN, .max = IRONLAKE_LVDS_D_M_MAX }, | ||
| 565 | .m1 = { .min = IRONLAKE_M1_MIN, .max = IRONLAKE_M1_MAX }, | ||
| 566 | .m2 = { .min = IRONLAKE_M2_MIN, .max = IRONLAKE_M2_MAX }, | ||
| 567 | .p = { .min = IRONLAKE_LVDS_D_P_MIN, .max = IRONLAKE_LVDS_D_P_MAX }, | ||
| 568 | .p1 = { .min = IRONLAKE_LVDS_D_P1_MIN, .max = IRONLAKE_LVDS_D_P1_MAX }, | ||
| 569 | .p2 = { .dot_limit = IRONLAKE_P2_DOT_LIMIT, | ||
| 570 | .p2_slow = IRONLAKE_LVDS_D_P2_SLOW, | ||
| 571 | .p2_fast = IRONLAKE_LVDS_D_P2_FAST }, | ||
| 572 | .find_pll = intel_g4x_find_best_PLL, | ||
| 573 | }; | ||
| 574 | |||
| 575 | static const intel_limit_t intel_limits_ironlake_single_lvds_100m = { | ||
| 576 | .dot = { .min = IRONLAKE_DOT_MIN, .max = IRONLAKE_DOT_MAX }, | ||
| 577 | .vco = { .min = IRONLAKE_VCO_MIN, .max = IRONLAKE_VCO_MAX }, | ||
| 578 | .n = { .min = IRONLAKE_LVDS_S_SSC_N_MIN, .max = IRONLAKE_LVDS_S_SSC_N_MAX }, | ||
| 579 | .m = { .min = IRONLAKE_LVDS_S_SSC_M_MIN, .max = IRONLAKE_LVDS_S_SSC_M_MAX }, | ||
| 580 | .m1 = { .min = IRONLAKE_M1_MIN, .max = IRONLAKE_M1_MAX }, | ||
| 581 | .m2 = { .min = IRONLAKE_M2_MIN, .max = IRONLAKE_M2_MAX }, | ||
| 582 | .p = { .min = IRONLAKE_LVDS_S_SSC_P_MIN, .max = IRONLAKE_LVDS_S_SSC_P_MAX }, | ||
| 583 | .p1 = { .min = IRONLAKE_LVDS_S_SSC_P1_MIN,.max = IRONLAKE_LVDS_S_SSC_P1_MAX }, | ||
| 584 | .p2 = { .dot_limit = IRONLAKE_P2_DOT_LIMIT, | ||
| 585 | .p2_slow = IRONLAKE_LVDS_S_SSC_P2_SLOW, | ||
| 586 | .p2_fast = IRONLAKE_LVDS_S_SSC_P2_FAST }, | ||
| 587 | .find_pll = intel_g4x_find_best_PLL, | ||
| 588 | }; | ||
| 589 | |||
| 590 | static const intel_limit_t intel_limits_ironlake_dual_lvds_100m = { | ||
| 591 | .dot = { .min = IRONLAKE_DOT_MIN, .max = IRONLAKE_DOT_MAX }, | ||
| 592 | .vco = { .min = IRONLAKE_VCO_MIN, .max = IRONLAKE_VCO_MAX }, | ||
| 593 | .n = { .min = IRONLAKE_LVDS_D_SSC_N_MIN, .max = IRONLAKE_LVDS_D_SSC_N_MAX }, | ||
| 594 | .m = { .min = IRONLAKE_LVDS_D_SSC_M_MIN, .max = IRONLAKE_LVDS_D_SSC_M_MAX }, | ||
| 595 | .m1 = { .min = IRONLAKE_M1_MIN, .max = IRONLAKE_M1_MAX }, | ||
| 596 | .m2 = { .min = IRONLAKE_M2_MIN, .max = IRONLAKE_M2_MAX }, | ||
| 597 | .p = { .min = IRONLAKE_LVDS_D_SSC_P_MIN, .max = IRONLAKE_LVDS_D_SSC_P_MAX }, | ||
| 598 | .p1 = { .min = IRONLAKE_LVDS_D_SSC_P1_MIN,.max = IRONLAKE_LVDS_D_SSC_P1_MAX }, | ||
| 599 | .p2 = { .dot_limit = IRONLAKE_P2_DOT_LIMIT, | ||
| 600 | .p2_slow = IRONLAKE_LVDS_D_SSC_P2_SLOW, | ||
| 601 | .p2_fast = IRONLAKE_LVDS_D_SSC_P2_FAST }, | ||
| 504 | .find_pll = intel_g4x_find_best_PLL, | 602 | .find_pll = intel_g4x_find_best_PLL, |
| 505 | }; | 603 | }; |
| 506 | 604 | ||
| @@ -509,34 +607,53 @@ static const intel_limit_t intel_limits_ironlake_display_port = { | |||
| 509 | .max = IRONLAKE_DOT_MAX }, | 607 | .max = IRONLAKE_DOT_MAX }, |
| 510 | .vco = { .min = IRONLAKE_VCO_MIN, | 608 | .vco = { .min = IRONLAKE_VCO_MIN, |
| 511 | .max = IRONLAKE_VCO_MAX}, | 609 | .max = IRONLAKE_VCO_MAX}, |
| 512 | .n = { .min = IRONLAKE_N_MIN, | 610 | .n = { .min = IRONLAKE_DP_N_MIN, |
| 513 | .max = IRONLAKE_N_MAX }, | 611 | .max = IRONLAKE_DP_N_MAX }, |
| 514 | .m = { .min = IRONLAKE_M_MIN, | 612 | .m = { .min = IRONLAKE_DP_M_MIN, |
| 515 | .max = IRONLAKE_M_MAX }, | 613 | .max = IRONLAKE_DP_M_MAX }, |
| 516 | .m1 = { .min = IRONLAKE_M1_MIN, | 614 | .m1 = { .min = IRONLAKE_M1_MIN, |
| 517 | .max = IRONLAKE_M1_MAX }, | 615 | .max = IRONLAKE_M1_MAX }, |
| 518 | .m2 = { .min = IRONLAKE_M2_MIN, | 616 | .m2 = { .min = IRONLAKE_M2_MIN, |
| 519 | .max = IRONLAKE_M2_MAX }, | 617 | .max = IRONLAKE_M2_MAX }, |
| 520 | .p = { .min = IRONLAKE_P_DISPLAY_PORT_MIN, | 618 | .p = { .min = IRONLAKE_DP_P_MIN, |
| 521 | .max = IRONLAKE_P_DISPLAY_PORT_MAX }, | 619 | .max = IRONLAKE_DP_P_MAX }, |
| 522 | .p1 = { .min = IRONLAKE_P1_DISPLAY_PORT_MIN, | 620 | .p1 = { .min = IRONLAKE_DP_P1_MIN, |
| 523 | .max = IRONLAKE_P1_DISPLAY_PORT_MAX}, | 621 | .max = IRONLAKE_DP_P1_MAX}, |
| 524 | .p2 = { .dot_limit = IRONLAKE_P2_DISPLAY_PORT_LIMIT, | 622 | .p2 = { .dot_limit = IRONLAKE_DP_P2_LIMIT, |
| 525 | .p2_slow = IRONLAKE_P2_DISPLAY_PORT_SLOW, | 623 | .p2_slow = IRONLAKE_DP_P2_SLOW, |
| 526 | .p2_fast = IRONLAKE_P2_DISPLAY_PORT_FAST }, | 624 | .p2_fast = IRONLAKE_DP_P2_FAST }, |
| 527 | .find_pll = intel_find_pll_ironlake_dp, | 625 | .find_pll = intel_find_pll_ironlake_dp, |
| 528 | }; | 626 | }; |
| 529 | 627 | ||
| 530 | static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc) | 628 | static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc) |
| 531 | { | 629 | { |
| 630 | struct drm_device *dev = crtc->dev; | ||
| 631 | struct drm_i915_private *dev_priv = dev->dev_private; | ||
| 532 | const intel_limit_t *limit; | 632 | const intel_limit_t *limit; |
| 533 | if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) | 633 | int refclk = 120; |
| 534 | limit = &intel_limits_ironlake_lvds; | 634 | |
| 535 | else if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) || | 635 | if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) { |
| 636 | if (dev_priv->lvds_use_ssc && dev_priv->lvds_ssc_freq == 100) | ||
| 637 | refclk = 100; | ||
| 638 | |||
| 639 | if ((I915_READ(PCH_LVDS) & LVDS_CLKB_POWER_MASK) == | ||
| 640 | LVDS_CLKB_POWER_UP) { | ||
| 641 | /* LVDS dual channel */ | ||
| 642 | if (refclk == 100) | ||
| 643 | limit = &intel_limits_ironlake_dual_lvds_100m; | ||
| 644 | else | ||
| 645 | limit = &intel_limits_ironlake_dual_lvds; | ||
| 646 | } else { | ||
| 647 | if (refclk == 100) | ||
| 648 | limit = &intel_limits_ironlake_single_lvds_100m; | ||
| 649 | else | ||
| 650 | limit = &intel_limits_ironlake_single_lvds; | ||
| 651 | } | ||
| 652 | } else if (intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) || | ||
| 536 | HAS_eDP) | 653 | HAS_eDP) |
| 537 | limit = &intel_limits_ironlake_display_port; | 654 | limit = &intel_limits_ironlake_display_port; |
| 538 | else | 655 | else |
| 539 | limit = &intel_limits_ironlake_sdvo; | 656 | limit = &intel_limits_ironlake_dac; |
| 540 | 657 | ||
| 541 | return limit; | 658 | return limit; |
| 542 | } | 659 | } |
| @@ -914,6 +1031,8 @@ static void i8xx_enable_fbc(struct drm_crtc *crtc, unsigned long interval) | |||
| 914 | 1031 | ||
| 915 | /* enable it... */ | 1032 | /* enable it... */ |
| 916 | fbc_ctl = FBC_CTL_EN | FBC_CTL_PERIODIC; | 1033 | fbc_ctl = FBC_CTL_EN | FBC_CTL_PERIODIC; |
| 1034 | if (IS_I945GM(dev)) | ||
| 1035 | fbc_ctl |= FBC_C3_IDLE; /* 945 needs special SR handling */ | ||
| 917 | fbc_ctl |= (dev_priv->cfb_pitch & 0xff) << FBC_CTL_STRIDE_SHIFT; | 1036 | fbc_ctl |= (dev_priv->cfb_pitch & 0xff) << FBC_CTL_STRIDE_SHIFT; |
| 918 | fbc_ctl |= (interval & 0x2fff) << FBC_CTL_INTERVAL_SHIFT; | 1037 | fbc_ctl |= (interval & 0x2fff) << FBC_CTL_INTERVAL_SHIFT; |
| 919 | if (obj_priv->tiling_mode != I915_TILING_NONE) | 1038 | if (obj_priv->tiling_mode != I915_TILING_NONE) |
| @@ -3961,7 +4080,8 @@ static void intel_crtc_destroy(struct drm_crtc *crtc) | |||
| 3961 | struct intel_unpin_work { | 4080 | struct intel_unpin_work { |
| 3962 | struct work_struct work; | 4081 | struct work_struct work; |
| 3963 | struct drm_device *dev; | 4082 | struct drm_device *dev; |
| 3964 | struct drm_gem_object *obj; | 4083 | struct drm_gem_object *old_fb_obj; |
| 4084 | struct drm_gem_object *pending_flip_obj; | ||
| 3965 | struct drm_pending_vblank_event *event; | 4085 | struct drm_pending_vblank_event *event; |
| 3966 | int pending; | 4086 | int pending; |
| 3967 | }; | 4087 | }; |
| @@ -3972,8 +4092,9 @@ static void intel_unpin_work_fn(struct work_struct *__work) | |||
| 3972 | container_of(__work, struct intel_unpin_work, work); | 4092 | container_of(__work, struct intel_unpin_work, work); |
| 3973 | 4093 | ||
| 3974 | mutex_lock(&work->dev->struct_mutex); | 4094 | mutex_lock(&work->dev->struct_mutex); |
| 3975 | i915_gem_object_unpin(work->obj); | 4095 | i915_gem_object_unpin(work->old_fb_obj); |
| 3976 | drm_gem_object_unreference(work->obj); | 4096 | drm_gem_object_unreference(work->pending_flip_obj); |
| 4097 | drm_gem_object_unreference(work->old_fb_obj); | ||
| 3977 | mutex_unlock(&work->dev->struct_mutex); | 4098 | mutex_unlock(&work->dev->struct_mutex); |
| 3978 | kfree(work); | 4099 | kfree(work); |
| 3979 | } | 4100 | } |
| @@ -3997,7 +4118,7 @@ void intel_finish_page_flip(struct drm_device *dev, int pipe) | |||
| 3997 | work = intel_crtc->unpin_work; | 4118 | work = intel_crtc->unpin_work; |
| 3998 | if (work == NULL || !work->pending) { | 4119 | if (work == NULL || !work->pending) { |
| 3999 | if (work && !work->pending) { | 4120 | if (work && !work->pending) { |
| 4000 | obj_priv = work->obj->driver_private; | 4121 | obj_priv = work->pending_flip_obj->driver_private; |
| 4001 | DRM_DEBUG_DRIVER("flip finish: %p (%d) not pending?\n", | 4122 | DRM_DEBUG_DRIVER("flip finish: %p (%d) not pending?\n", |
| 4002 | obj_priv, | 4123 | obj_priv, |
| 4003 | atomic_read(&obj_priv->pending_flip)); | 4124 | atomic_read(&obj_priv->pending_flip)); |
| @@ -4022,7 +4143,7 @@ void intel_finish_page_flip(struct drm_device *dev, int pipe) | |||
| 4022 | 4143 | ||
| 4023 | spin_unlock_irqrestore(&dev->event_lock, flags); | 4144 | spin_unlock_irqrestore(&dev->event_lock, flags); |
| 4024 | 4145 | ||
| 4025 | obj_priv = work->obj->driver_private; | 4146 | obj_priv = work->pending_flip_obj->driver_private; |
| 4026 | 4147 | ||
| 4027 | /* Initial scanout buffer will have a 0 pending flip count */ | 4148 | /* Initial scanout buffer will have a 0 pending flip count */ |
| 4028 | if ((atomic_read(&obj_priv->pending_flip) == 0) || | 4149 | if ((atomic_read(&obj_priv->pending_flip) == 0) || |
| @@ -4059,7 +4180,8 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc, | |||
| 4059 | struct intel_crtc *intel_crtc = to_intel_crtc(crtc); | 4180 | struct intel_crtc *intel_crtc = to_intel_crtc(crtc); |
| 4060 | struct intel_unpin_work *work; | 4181 | struct intel_unpin_work *work; |
| 4061 | unsigned long flags; | 4182 | unsigned long flags; |
| 4062 | int ret; | 4183 | int pipesrc_reg = (intel_crtc->pipe == 0) ? PIPEASRC : PIPEBSRC; |
| 4184 | int ret, pipesrc; | ||
| 4063 | RING_LOCALS; | 4185 | RING_LOCALS; |
| 4064 | 4186 | ||
| 4065 | work = kzalloc(sizeof *work, GFP_KERNEL); | 4187 | work = kzalloc(sizeof *work, GFP_KERNEL); |
| @@ -4071,7 +4193,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc, | |||
| 4071 | work->event = event; | 4193 | work->event = event; |
| 4072 | work->dev = crtc->dev; | 4194 | work->dev = crtc->dev; |
| 4073 | intel_fb = to_intel_framebuffer(crtc->fb); | 4195 | intel_fb = to_intel_framebuffer(crtc->fb); |
| 4074 | work->obj = intel_fb->obj; | 4196 | work->old_fb_obj = intel_fb->obj; |
| 4075 | INIT_WORK(&work->work, intel_unpin_work_fn); | 4197 | INIT_WORK(&work->work, intel_unpin_work_fn); |
| 4076 | 4198 | ||
| 4077 | /* We borrow the event spin lock for protecting unpin_work */ | 4199 | /* We borrow the event spin lock for protecting unpin_work */ |
| @@ -4099,14 +4221,16 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc, | |||
| 4099 | return ret; | 4221 | return ret; |
| 4100 | } | 4222 | } |
| 4101 | 4223 | ||
| 4102 | /* Reference the old fb object for the scheduled work. */ | 4224 | /* Reference the objects for the scheduled work. */ |
| 4103 | drm_gem_object_reference(work->obj); | 4225 | drm_gem_object_reference(work->old_fb_obj); |
| 4226 | drm_gem_object_reference(obj); | ||
| 4104 | 4227 | ||
| 4105 | crtc->fb = fb; | 4228 | crtc->fb = fb; |
| 4106 | i915_gem_object_flush_write_domain(obj); | 4229 | i915_gem_object_flush_write_domain(obj); |
| 4107 | drm_vblank_get(dev, intel_crtc->pipe); | 4230 | drm_vblank_get(dev, intel_crtc->pipe); |
| 4108 | obj_priv = obj->driver_private; | 4231 | obj_priv = obj->driver_private; |
| 4109 | atomic_inc(&obj_priv->pending_flip); | 4232 | atomic_inc(&obj_priv->pending_flip); |
| 4233 | work->pending_flip_obj = obj; | ||
| 4110 | 4234 | ||
| 4111 | BEGIN_LP_RING(4); | 4235 | BEGIN_LP_RING(4); |
| 4112 | OUT_RING(MI_DISPLAY_FLIP | | 4236 | OUT_RING(MI_DISPLAY_FLIP | |
| @@ -4114,7 +4238,8 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc, | |||
| 4114 | OUT_RING(fb->pitch); | 4238 | OUT_RING(fb->pitch); |
| 4115 | if (IS_I965G(dev)) { | 4239 | if (IS_I965G(dev)) { |
| 4116 | OUT_RING(obj_priv->gtt_offset | obj_priv->tiling_mode); | 4240 | OUT_RING(obj_priv->gtt_offset | obj_priv->tiling_mode); |
| 4117 | OUT_RING((fb->width << 16) | fb->height); | 4241 | pipesrc = I915_READ(pipesrc_reg); |
| 4242 | OUT_RING(pipesrc & 0x0fff0fff); | ||
| 4118 | } else { | 4243 | } else { |
| 4119 | OUT_RING(obj_priv->gtt_offset); | 4244 | OUT_RING(obj_priv->gtt_offset); |
| 4120 | OUT_RING(MI_NOOP); | 4245 | OUT_RING(MI_NOOP); |
diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index 371d753e362b..aaabbcbe5905 100644 --- a/drivers/gpu/drm/i915/intel_fb.c +++ b/drivers/gpu/drm/i915/intel_fb.c | |||
| @@ -148,7 +148,7 @@ static int intelfb_create(struct drm_device *dev, uint32_t fb_width, | |||
| 148 | 148 | ||
| 149 | mutex_lock(&dev->struct_mutex); | 149 | mutex_lock(&dev->struct_mutex); |
| 150 | 150 | ||
| 151 | ret = i915_gem_object_pin(fbo, PAGE_SIZE); | 151 | ret = i915_gem_object_pin(fbo, 64*1024); |
| 152 | if (ret) { | 152 | if (ret) { |
| 153 | DRM_ERROR("failed to pin fb: %d\n", ret); | 153 | DRM_ERROR("failed to pin fb: %d\n", ret); |
| 154 | goto out_unref; | 154 | goto out_unref; |
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index b1d0acbae4e4..c2e8a45780d5 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c | |||
| @@ -636,6 +636,13 @@ static const struct dmi_system_id bad_lid_status[] = { | |||
| 636 | DMI_MATCH(DMI_PRODUCT_NAME, "PC-81005"), | 636 | DMI_MATCH(DMI_PRODUCT_NAME, "PC-81005"), |
| 637 | }, | 637 | }, |
| 638 | }, | 638 | }, |
| 639 | { | ||
| 640 | .ident = "Clevo M5x0N", | ||
| 641 | .matches = { | ||
| 642 | DMI_MATCH(DMI_SYS_VENDOR, "CLEVO Co."), | ||
| 643 | DMI_MATCH(DMI_BOARD_NAME, "M5x0N"), | ||
| 644 | }, | ||
| 645 | }, | ||
| 639 | { } | 646 | { } |
| 640 | }; | 647 | }; |
| 641 | 648 | ||
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index 2cd0fad17dac..0e9cd1d49130 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c | |||
| @@ -5861,13 +5861,12 @@ nouveau_bios_run_init_table(struct drm_device *dev, uint16_t table, | |||
| 5861 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 5861 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
| 5862 | struct nvbios *bios = &dev_priv->VBIOS; | 5862 | struct nvbios *bios = &dev_priv->VBIOS; |
| 5863 | struct init_exec iexec = { true, false }; | 5863 | struct init_exec iexec = { true, false }; |
| 5864 | unsigned long flags; | ||
| 5865 | 5864 | ||
| 5866 | spin_lock_irqsave(&bios->lock, flags); | 5865 | mutex_lock(&bios->lock); |
| 5867 | bios->display.output = dcbent; | 5866 | bios->display.output = dcbent; |
| 5868 | parse_init_table(bios, table, &iexec); | 5867 | parse_init_table(bios, table, &iexec); |
| 5869 | bios->display.output = NULL; | 5868 | bios->display.output = NULL; |
| 5870 | spin_unlock_irqrestore(&bios->lock, flags); | 5869 | mutex_unlock(&bios->lock); |
| 5871 | } | 5870 | } |
| 5872 | 5871 | ||
| 5873 | static bool NVInitVBIOS(struct drm_device *dev) | 5872 | static bool NVInitVBIOS(struct drm_device *dev) |
| @@ -5876,7 +5875,7 @@ static bool NVInitVBIOS(struct drm_device *dev) | |||
| 5876 | struct nvbios *bios = &dev_priv->VBIOS; | 5875 | struct nvbios *bios = &dev_priv->VBIOS; |
| 5877 | 5876 | ||
| 5878 | memset(bios, 0, sizeof(struct nvbios)); | 5877 | memset(bios, 0, sizeof(struct nvbios)); |
| 5879 | spin_lock_init(&bios->lock); | 5878 | mutex_init(&bios->lock); |
| 5880 | bios->dev = dev; | 5879 | bios->dev = dev; |
| 5881 | 5880 | ||
| 5882 | if (!NVShadowVBIOS(dev, bios->data)) | 5881 | if (!NVShadowVBIOS(dev, bios->data)) |
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.h b/drivers/gpu/drm/nouveau/nouveau_bios.h index 68446fd4146b..fd94bd6dc264 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.h +++ b/drivers/gpu/drm/nouveau/nouveau_bios.h | |||
| @@ -205,7 +205,7 @@ struct nvbios { | |||
| 205 | struct drm_device *dev; | 205 | struct drm_device *dev; |
| 206 | struct nouveau_bios_info pub; | 206 | struct nouveau_bios_info pub; |
| 207 | 207 | ||
| 208 | spinlock_t lock; | 208 | struct mutex lock; |
| 209 | 209 | ||
| 210 | uint8_t data[NV_PROM_SIZE]; | 210 | uint8_t data[NV_PROM_SIZE]; |
| 211 | unsigned int length; | 211 | unsigned int length; |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h index 5445cefdd03e..1c15ef37b71c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.h +++ b/drivers/gpu/drm/nouveau/nouveau_drv.h | |||
| @@ -583,6 +583,7 @@ struct drm_nouveau_private { | |||
| 583 | uint64_t vm_end; | 583 | uint64_t vm_end; |
| 584 | struct nouveau_gpuobj *vm_vram_pt[NV50_VM_VRAM_NR]; | 584 | struct nouveau_gpuobj *vm_vram_pt[NV50_VM_VRAM_NR]; |
| 585 | int vm_vram_pt_nr; | 585 | int vm_vram_pt_nr; |
| 586 | uint64_t vram_sys_base; | ||
| 586 | 587 | ||
| 587 | /* the mtrr covering the FB */ | 588 | /* the mtrr covering the FB */ |
| 588 | int fb_mtrr; | 589 | int fb_mtrr; |
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c index 8f3a12f614ed..2dc09dbd817d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_mem.c +++ b/drivers/gpu/drm/nouveau/nouveau_mem.c | |||
| @@ -285,53 +285,50 @@ nv50_mem_vm_bind_linear(struct drm_device *dev, uint64_t virt, uint32_t size, | |||
| 285 | uint32_t flags, uint64_t phys) | 285 | uint32_t flags, uint64_t phys) |
| 286 | { | 286 | { |
| 287 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 287 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
| 288 | struct nouveau_gpuobj **pgt; | 288 | struct nouveau_gpuobj *pgt; |
| 289 | unsigned psz, pfl, pages; | 289 | unsigned block; |
| 290 | 290 | int i; | |
| 291 | if (virt >= dev_priv->vm_gart_base && | ||
| 292 | (virt + size) < (dev_priv->vm_gart_base + dev_priv->vm_gart_size)) { | ||
| 293 | psz = 12; | ||
| 294 | pgt = &dev_priv->gart_info.sg_ctxdma; | ||
| 295 | pfl = 0x21; | ||
| 296 | virt -= dev_priv->vm_gart_base; | ||
| 297 | } else | ||
| 298 | if (virt >= dev_priv->vm_vram_base && | ||
| 299 | (virt + size) < (dev_priv->vm_vram_base + dev_priv->vm_vram_size)) { | ||
| 300 | psz = 16; | ||
| 301 | pgt = dev_priv->vm_vram_pt; | ||
| 302 | pfl = 0x01; | ||
| 303 | virt -= dev_priv->vm_vram_base; | ||
| 304 | } else { | ||
| 305 | NV_ERROR(dev, "Invalid address: 0x%16llx-0x%16llx\n", | ||
| 306 | virt, virt + size - 1); | ||
| 307 | return -EINVAL; | ||
| 308 | } | ||
| 309 | 291 | ||
| 310 | pages = size >> psz; | 292 | virt = ((virt - dev_priv->vm_vram_base) >> 16) << 1; |
| 293 | size = (size >> 16) << 1; | ||
| 294 | |||
| 295 | phys |= ((uint64_t)flags << 32); | ||
| 296 | phys |= 1; | ||
| 297 | if (dev_priv->vram_sys_base) { | ||
| 298 | phys += dev_priv->vram_sys_base; | ||
| 299 | phys |= 0x30; | ||
| 300 | } | ||
| 311 | 301 | ||
| 312 | dev_priv->engine.instmem.prepare_access(dev, true); | 302 | dev_priv->engine.instmem.prepare_access(dev, true); |
| 313 | if (flags & 0x80000000) { | 303 | while (size) { |
| 314 | while (pages--) { | 304 | unsigned offset_h = upper_32_bits(phys); |
| 315 | struct nouveau_gpuobj *pt = pgt[virt >> 29]; | 305 | unsigned offset_l = lower_32_bits(phys); |
| 316 | unsigned pte = ((virt & 0x1fffffffULL) >> psz) << 1; | 306 | unsigned pte, end; |
| 307 | |||
| 308 | for (i = 7; i >= 0; i--) { | ||
| 309 | block = 1 << (i + 1); | ||
| 310 | if (size >= block && !(virt & (block - 1))) | ||
| 311 | break; | ||
| 312 | } | ||
| 313 | offset_l |= (i << 7); | ||
| 317 | 314 | ||
| 318 | nv_wo32(dev, pt, pte++, 0x00000000); | 315 | phys += block << 15; |
| 319 | nv_wo32(dev, pt, pte++, 0x00000000); | 316 | size -= block; |
| 320 | 317 | ||
| 321 | virt += (1 << psz); | 318 | while (block) { |
| 322 | } | 319 | pgt = dev_priv->vm_vram_pt[virt >> 14]; |
| 323 | } else { | 320 | pte = virt & 0x3ffe; |
| 324 | while (pages--) { | ||
| 325 | struct nouveau_gpuobj *pt = pgt[virt >> 29]; | ||
| 326 | unsigned pte = ((virt & 0x1fffffffULL) >> psz) << 1; | ||
| 327 | unsigned offset_h = upper_32_bits(phys) & 0xff; | ||
| 328 | unsigned offset_l = lower_32_bits(phys); | ||
| 329 | 321 | ||
| 330 | nv_wo32(dev, pt, pte++, offset_l | pfl); | 322 | end = pte + block; |
| 331 | nv_wo32(dev, pt, pte++, offset_h | flags); | 323 | if (end > 16384) |
| 324 | end = 16384; | ||
| 325 | block -= (end - pte); | ||
| 326 | virt += (end - pte); | ||
| 332 | 327 | ||
| 333 | phys += (1 << psz); | 328 | while (pte < end) { |
| 334 | virt += (1 << psz); | 329 | nv_wo32(dev, pgt, pte++, offset_l); |
| 330 | nv_wo32(dev, pgt, pte++, offset_h); | ||
| 331 | } | ||
| 335 | } | 332 | } |
| 336 | } | 333 | } |
| 337 | dev_priv->engine.instmem.finish_access(dev); | 334 | dev_priv->engine.instmem.finish_access(dev); |
| @@ -356,7 +353,41 @@ nv50_mem_vm_bind_linear(struct drm_device *dev, uint64_t virt, uint32_t size, | |||
| 356 | void | 353 | void |
| 357 | nv50_mem_vm_unbind(struct drm_device *dev, uint64_t virt, uint32_t size) | 354 | nv50_mem_vm_unbind(struct drm_device *dev, uint64_t virt, uint32_t size) |
| 358 | { | 355 | { |
| 359 | nv50_mem_vm_bind_linear(dev, virt, size, 0x80000000, 0); | 356 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
| 357 | struct nouveau_gpuobj *pgt; | ||
| 358 | unsigned pages, pte, end; | ||
| 359 | |||
| 360 | virt -= dev_priv->vm_vram_base; | ||
| 361 | pages = (size >> 16) << 1; | ||
| 362 | |||
| 363 | dev_priv->engine.instmem.prepare_access(dev, true); | ||
| 364 | while (pages) { | ||
| 365 | pgt = dev_priv->vm_vram_pt[virt >> 29]; | ||
| 366 | pte = (virt & 0x1ffe0000ULL) >> 15; | ||
| 367 | |||
| 368 | end = pte + pages; | ||
| 369 | if (end > 16384) | ||
| 370 | end = 16384; | ||
| 371 | pages -= (end - pte); | ||
| 372 | virt += (end - pte) << 15; | ||
| 373 | |||
| 374 | while (pte < end) | ||
| 375 | nv_wo32(dev, pgt, pte++, 0); | ||
| 376 | } | ||
| 377 | dev_priv->engine.instmem.finish_access(dev); | ||
| 378 | |||
| 379 | nv_wr32(dev, 0x100c80, 0x00050001); | ||
| 380 | if (!nv_wait(0x100c80, 0x00000001, 0x00000000)) { | ||
| 381 | NV_ERROR(dev, "timeout: (0x100c80 & 1) == 0 (2)\n"); | ||
| 382 | NV_ERROR(dev, "0x100c80 = 0x%08x\n", nv_rd32(dev, 0x100c80)); | ||
| 383 | return; | ||
| 384 | } | ||
| 385 | |||
| 386 | nv_wr32(dev, 0x100c80, 0x00000001); | ||
| 387 | if (!nv_wait(0x100c80, 0x00000001, 0x00000000)) { | ||
| 388 | NV_ERROR(dev, "timeout: (0x100c80 & 1) == 0 (2)\n"); | ||
| 389 | NV_ERROR(dev, "0x100c80 = 0x%08x\n", nv_rd32(dev, 0x100c80)); | ||
| 390 | } | ||
| 360 | } | 391 | } |
| 361 | 392 | ||
| 362 | /* | 393 | /* |
diff --git a/drivers/gpu/drm/nouveau/nv04_dac.c b/drivers/gpu/drm/nouveau/nv04_dac.c index d0e038d28948..1d73b15d70da 100644 --- a/drivers/gpu/drm/nouveau/nv04_dac.c +++ b/drivers/gpu/drm/nouveau/nv04_dac.c | |||
| @@ -119,7 +119,7 @@ static enum drm_connector_status nv04_dac_detect(struct drm_encoder *encoder, | |||
| 119 | struct drm_connector *connector) | 119 | struct drm_connector *connector) |
| 120 | { | 120 | { |
| 121 | struct drm_device *dev = encoder->dev; | 121 | struct drm_device *dev = encoder->dev; |
| 122 | uint8_t saved_seq1, saved_pi, saved_rpc1; | 122 | uint8_t saved_seq1, saved_pi, saved_rpc1, saved_cr_mode; |
| 123 | uint8_t saved_palette0[3], saved_palette_mask; | 123 | uint8_t saved_palette0[3], saved_palette_mask; |
| 124 | uint32_t saved_rtest_ctrl, saved_rgen_ctrl; | 124 | uint32_t saved_rtest_ctrl, saved_rgen_ctrl; |
| 125 | int i; | 125 | int i; |
| @@ -135,6 +135,9 @@ static enum drm_connector_status nv04_dac_detect(struct drm_encoder *encoder, | |||
| 135 | /* only implemented for head A for now */ | 135 | /* only implemented for head A for now */ |
| 136 | NVSetOwner(dev, 0); | 136 | NVSetOwner(dev, 0); |
| 137 | 137 | ||
| 138 | saved_cr_mode = NVReadVgaCrtc(dev, 0, NV_CIO_CR_MODE_INDEX); | ||
| 139 | NVWriteVgaCrtc(dev, 0, NV_CIO_CR_MODE_INDEX, saved_cr_mode | 0x80); | ||
| 140 | |||
| 138 | saved_seq1 = NVReadVgaSeq(dev, 0, NV_VIO_SR_CLOCK_INDEX); | 141 | saved_seq1 = NVReadVgaSeq(dev, 0, NV_VIO_SR_CLOCK_INDEX); |
| 139 | NVWriteVgaSeq(dev, 0, NV_VIO_SR_CLOCK_INDEX, saved_seq1 & ~0x20); | 142 | NVWriteVgaSeq(dev, 0, NV_VIO_SR_CLOCK_INDEX, saved_seq1 & ~0x20); |
| 140 | 143 | ||
| @@ -203,6 +206,7 @@ out: | |||
| 203 | NVWriteVgaCrtc(dev, 0, NV_CIO_CRE_PIXEL_INDEX, saved_pi); | 206 | NVWriteVgaCrtc(dev, 0, NV_CIO_CRE_PIXEL_INDEX, saved_pi); |
| 204 | NVWriteVgaCrtc(dev, 0, NV_CIO_CRE_RPC1_INDEX, saved_rpc1); | 207 | NVWriteVgaCrtc(dev, 0, NV_CIO_CRE_RPC1_INDEX, saved_rpc1); |
| 205 | NVWriteVgaSeq(dev, 0, NV_VIO_SR_CLOCK_INDEX, saved_seq1); | 208 | NVWriteVgaSeq(dev, 0, NV_VIO_SR_CLOCK_INDEX, saved_seq1); |
| 209 | NVWriteVgaCrtc(dev, 0, NV_CIO_CR_MODE_INDEX, saved_cr_mode); | ||
| 206 | 210 | ||
| 207 | if (blue == 0x18) { | 211 | if (blue == 0x18) { |
| 208 | NV_INFO(dev, "Load detected on head A\n"); | 212 | NV_INFO(dev, "Load detected on head A\n"); |
diff --git a/drivers/gpu/drm/nouveau/nv17_tv.c b/drivers/gpu/drm/nouveau/nv17_tv.c index 58b917c3341b..21ac6e49b6ee 100644 --- a/drivers/gpu/drm/nouveau/nv17_tv.c +++ b/drivers/gpu/drm/nouveau/nv17_tv.c | |||
| @@ -579,6 +579,8 @@ static void nv17_tv_restore(struct drm_encoder *encoder) | |||
| 579 | nouveau_encoder(encoder)->restore.output); | 579 | nouveau_encoder(encoder)->restore.output); |
| 580 | 580 | ||
| 581 | nv17_tv_state_load(dev, &to_tv_enc(encoder)->saved_state); | 581 | nv17_tv_state_load(dev, &to_tv_enc(encoder)->saved_state); |
| 582 | |||
| 583 | nouveau_encoder(encoder)->last_dpms = NV_DPMS_CLEARED; | ||
| 582 | } | 584 | } |
| 583 | 585 | ||
| 584 | static int nv17_tv_create_resources(struct drm_encoder *encoder, | 586 | static int nv17_tv_create_resources(struct drm_encoder *encoder, |
diff --git a/drivers/gpu/drm/nouveau/nv50_instmem.c b/drivers/gpu/drm/nouveau/nv50_instmem.c index 94400f777e7f..f0dc4e36ef05 100644 --- a/drivers/gpu/drm/nouveau/nv50_instmem.c +++ b/drivers/gpu/drm/nouveau/nv50_instmem.c | |||
| @@ -76,6 +76,11 @@ nv50_instmem_init(struct drm_device *dev) | |||
| 76 | for (i = 0x1700; i <= 0x1710; i += 4) | 76 | for (i = 0x1700; i <= 0x1710; i += 4) |
| 77 | priv->save1700[(i-0x1700)/4] = nv_rd32(dev, i); | 77 | priv->save1700[(i-0x1700)/4] = nv_rd32(dev, i); |
| 78 | 78 | ||
| 79 | if (dev_priv->chipset == 0xaa || dev_priv->chipset == 0xac) | ||
| 80 | dev_priv->vram_sys_base = nv_rd32(dev, 0x100e10) << 12; | ||
| 81 | else | ||
| 82 | dev_priv->vram_sys_base = 0; | ||
| 83 | |||
| 79 | /* Reserve the last MiB of VRAM, we should probably try to avoid | 84 | /* Reserve the last MiB of VRAM, we should probably try to avoid |
| 80 | * setting up the below tables over the top of the VBIOS image at | 85 | * setting up the below tables over the top of the VBIOS image at |
| 81 | * some point. | 86 | * some point. |
| @@ -172,16 +177,28 @@ nv50_instmem_init(struct drm_device *dev) | |||
| 172 | * We map the entire fake channel into the start of the PRAMIN BAR | 177 | * We map the entire fake channel into the start of the PRAMIN BAR |
| 173 | */ | 178 | */ |
| 174 | ret = nouveau_gpuobj_new_ref(dev, chan, NULL, 0, pt_size, 0x1000, | 179 | ret = nouveau_gpuobj_new_ref(dev, chan, NULL, 0, pt_size, 0x1000, |
| 175 | 0, &priv->pramin_pt); | 180 | 0, &priv->pramin_pt); |
| 176 | if (ret) | 181 | if (ret) |
| 177 | return ret; | 182 | return ret; |
| 178 | 183 | ||
| 179 | for (i = 0, v = c_offset; i < pt_size; i += 8, v += 0x1000) { | 184 | v = c_offset | 1; |
| 180 | if (v < (c_offset + c_size)) | 185 | if (dev_priv->vram_sys_base) { |
| 181 | BAR0_WI32(priv->pramin_pt->gpuobj, i + 0, v | 1); | 186 | v += dev_priv->vram_sys_base; |
| 182 | else | 187 | v |= 0x30; |
| 183 | BAR0_WI32(priv->pramin_pt->gpuobj, i + 0, 0x00000009); | 188 | } |
| 189 | |||
| 190 | i = 0; | ||
| 191 | while (v < dev_priv->vram_sys_base + c_offset + c_size) { | ||
| 192 | BAR0_WI32(priv->pramin_pt->gpuobj, i + 0, v); | ||
| 193 | BAR0_WI32(priv->pramin_pt->gpuobj, i + 4, 0x00000000); | ||
| 194 | v += 0x1000; | ||
| 195 | i += 8; | ||
| 196 | } | ||
| 197 | |||
| 198 | while (i < pt_size) { | ||
| 199 | BAR0_WI32(priv->pramin_pt->gpuobj, i + 0, 0x00000000); | ||
| 184 | BAR0_WI32(priv->pramin_pt->gpuobj, i + 4, 0x00000000); | 200 | BAR0_WI32(priv->pramin_pt->gpuobj, i + 4, 0x00000000); |
| 201 | i += 8; | ||
| 185 | } | 202 | } |
| 186 | 203 | ||
| 187 | BAR0_WI32(chan->vm_pd, 0x00, priv->pramin_pt->instance | 0x63); | 204 | BAR0_WI32(chan->vm_pd, 0x00, priv->pramin_pt->instance | 0x63); |
| @@ -416,7 +433,9 @@ nv50_instmem_bind(struct drm_device *dev, struct nouveau_gpuobj *gpuobj) | |||
| 416 | { | 433 | { |
| 417 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 434 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
| 418 | struct nv50_instmem_priv *priv = dev_priv->engine.instmem.priv; | 435 | struct nv50_instmem_priv *priv = dev_priv->engine.instmem.priv; |
| 419 | uint32_t pte, pte_end, vram; | 436 | struct nouveau_gpuobj *pramin_pt = priv->pramin_pt->gpuobj; |
| 437 | uint32_t pte, pte_end; | ||
| 438 | uint64_t vram; | ||
| 420 | 439 | ||
| 421 | if (!gpuobj->im_backing || !gpuobj->im_pramin || gpuobj->im_bound) | 440 | if (!gpuobj->im_backing || !gpuobj->im_pramin || gpuobj->im_bound) |
| 422 | return -EINVAL; | 441 | return -EINVAL; |
| @@ -424,20 +443,24 @@ nv50_instmem_bind(struct drm_device *dev, struct nouveau_gpuobj *gpuobj) | |||
| 424 | NV_DEBUG(dev, "st=0x%0llx sz=0x%0llx\n", | 443 | NV_DEBUG(dev, "st=0x%0llx sz=0x%0llx\n", |
| 425 | gpuobj->im_pramin->start, gpuobj->im_pramin->size); | 444 | gpuobj->im_pramin->start, gpuobj->im_pramin->size); |
| 426 | 445 | ||
| 427 | pte = (gpuobj->im_pramin->start >> 12) << 3; | 446 | pte = (gpuobj->im_pramin->start >> 12) << 1; |
| 428 | pte_end = ((gpuobj->im_pramin->size >> 12) << 3) + pte; | 447 | pte_end = ((gpuobj->im_pramin->size >> 12) << 1) + pte; |
| 429 | vram = gpuobj->im_backing_start; | 448 | vram = gpuobj->im_backing_start; |
| 430 | 449 | ||
| 431 | NV_DEBUG(dev, "pramin=0x%llx, pte=%d, pte_end=%d\n", | 450 | NV_DEBUG(dev, "pramin=0x%llx, pte=%d, pte_end=%d\n", |
| 432 | gpuobj->im_pramin->start, pte, pte_end); | 451 | gpuobj->im_pramin->start, pte, pte_end); |
| 433 | NV_DEBUG(dev, "first vram page: 0x%08x\n", gpuobj->im_backing_start); | 452 | NV_DEBUG(dev, "first vram page: 0x%08x\n", gpuobj->im_backing_start); |
| 434 | 453 | ||
| 454 | vram |= 1; | ||
| 455 | if (dev_priv->vram_sys_base) { | ||
| 456 | vram += dev_priv->vram_sys_base; | ||
| 457 | vram |= 0x30; | ||
| 458 | } | ||
| 459 | |||
| 435 | dev_priv->engine.instmem.prepare_access(dev, true); | 460 | dev_priv->engine.instmem.prepare_access(dev, true); |
| 436 | while (pte < pte_end) { | 461 | while (pte < pte_end) { |
| 437 | nv_wo32(dev, priv->pramin_pt->gpuobj, (pte + 0)/4, vram | 1); | 462 | nv_wo32(dev, pramin_pt, pte++, lower_32_bits(vram)); |
| 438 | nv_wo32(dev, priv->pramin_pt->gpuobj, (pte + 4)/4, 0x00000000); | 463 | nv_wo32(dev, pramin_pt, pte++, upper_32_bits(vram)); |
| 439 | |||
| 440 | pte += 8; | ||
| 441 | vram += NV50_INSTMEM_PAGE_SIZE; | 464 | vram += NV50_INSTMEM_PAGE_SIZE; |
| 442 | } | 465 | } |
| 443 | dev_priv->engine.instmem.finish_access(dev); | 466 | dev_priv->engine.instmem.finish_access(dev); |
| @@ -470,14 +493,13 @@ nv50_instmem_unbind(struct drm_device *dev, struct nouveau_gpuobj *gpuobj) | |||
| 470 | if (gpuobj->im_bound == 0) | 493 | if (gpuobj->im_bound == 0) |
| 471 | return -EINVAL; | 494 | return -EINVAL; |
| 472 | 495 | ||
| 473 | pte = (gpuobj->im_pramin->start >> 12) << 3; | 496 | pte = (gpuobj->im_pramin->start >> 12) << 1; |
| 474 | pte_end = ((gpuobj->im_pramin->size >> 12) << 3) + pte; | 497 | pte_end = ((gpuobj->im_pramin->size >> 12) << 1) + pte; |
| 475 | 498 | ||
| 476 | dev_priv->engine.instmem.prepare_access(dev, true); | 499 | dev_priv->engine.instmem.prepare_access(dev, true); |
| 477 | while (pte < pte_end) { | 500 | while (pte < pte_end) { |
| 478 | nv_wo32(dev, priv->pramin_pt->gpuobj, (pte + 0)/4, 0x00000009); | 501 | nv_wo32(dev, priv->pramin_pt->gpuobj, pte++, 0x00000000); |
| 479 | nv_wo32(dev, priv->pramin_pt->gpuobj, (pte + 4)/4, 0x00000000); | 502 | nv_wo32(dev, priv->pramin_pt->gpuobj, pte++, 0x00000000); |
| 480 | pte += 8; | ||
| 481 | } | 503 | } |
| 482 | dev_priv->engine.instmem.finish_access(dev); | 504 | dev_priv->engine.instmem.finish_access(dev); |
| 483 | 505 | ||
diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c index 614295a11dfb..d75788feac6c 100644 --- a/drivers/gpu/drm/radeon/atom.c +++ b/drivers/gpu/drm/radeon/atom.c | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | #include <linux/module.h> | 25 | #include <linux/module.h> |
| 26 | #include <linux/sched.h> | 26 | #include <linux/sched.h> |
| 27 | #include <asm/unaligned.h> | ||
| 27 | 28 | ||
| 28 | #define ATOM_DEBUG | 29 | #define ATOM_DEBUG |
| 29 | 30 | ||
| @@ -212,7 +213,9 @@ static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_t attr, | |||
| 212 | case ATOM_ARG_PS: | 213 | case ATOM_ARG_PS: |
| 213 | idx = U8(*ptr); | 214 | idx = U8(*ptr); |
| 214 | (*ptr)++; | 215 | (*ptr)++; |
| 215 | val = le32_to_cpu(ctx->ps[idx]); | 216 | /* get_unaligned_le32 avoids unaligned accesses from atombios |
| 217 | * tables, noticed on a DEC Alpha. */ | ||
| 218 | val = get_unaligned_le32((u32 *)&ctx->ps[idx]); | ||
| 216 | if (print) | 219 | if (print) |
| 217 | DEBUG("PS[0x%02X,0x%04X]", idx, val); | 220 | DEBUG("PS[0x%02X,0x%04X]", idx, val); |
| 218 | break; | 221 | break; |
| @@ -640,7 +643,7 @@ static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg) | |||
| 640 | uint8_t count = U8((*ptr)++); | 643 | uint8_t count = U8((*ptr)++); |
| 641 | SDEBUG(" count: %d\n", count); | 644 | SDEBUG(" count: %d\n", count); |
| 642 | if (arg == ATOM_UNIT_MICROSEC) | 645 | if (arg == ATOM_UNIT_MICROSEC) |
| 643 | schedule_timeout_uninterruptible(usecs_to_jiffies(count)); | 646 | udelay(count); |
| 644 | else | 647 | else |
| 645 | schedule_timeout_uninterruptible(msecs_to_jiffies(count)); | 648 | schedule_timeout_uninterruptible(msecs_to_jiffies(count)); |
| 646 | } | 649 | } |
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index b32eeea5bb8b..99915a682d59 100644 --- a/drivers/gpu/drm/radeon/atombios_dp.c +++ b/drivers/gpu/drm/radeon/atombios_dp.c | |||
| @@ -350,7 +350,7 @@ retry: | |||
| 350 | atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); | 350 | atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); |
| 351 | 351 | ||
| 352 | if (args.ucReplyStatus && !args.ucDataOutLen) { | 352 | if (args.ucReplyStatus && !args.ucDataOutLen) { |
| 353 | if (args.ucReplyStatus == 0x20 && retry_count < 10) | 353 | if (args.ucReplyStatus == 0x20 && retry_count++ < 10) |
| 354 | goto retry; | 354 | goto retry; |
| 355 | DRM_DEBUG("failed to get auxch %02x%02x %02x %02x 0x%02x %02x after %d retries\n", | 355 | DRM_DEBUG("failed to get auxch %02x%02x %02x %02x 0x%02x %02x after %d retries\n", |
| 356 | req_bytes[1], req_bytes[0], req_bytes[2], req_bytes[3], | 356 | req_bytes[1], req_bytes[0], req_bytes[2], req_bytes[3], |
diff --git a/drivers/gpu/drm/radeon/r600_blit_kms.c b/drivers/gpu/drm/radeon/r600_blit_kms.c index af1c3ca8a4cb..446b765ac72a 100644 --- a/drivers/gpu/drm/radeon/r600_blit_kms.c +++ b/drivers/gpu/drm/radeon/r600_blit_kms.c | |||
| @@ -543,9 +543,6 @@ int r600_vb_ib_get(struct radeon_device *rdev) | |||
| 543 | void r600_vb_ib_put(struct radeon_device *rdev) | 543 | void r600_vb_ib_put(struct radeon_device *rdev) |
| 544 | { | 544 | { |
| 545 | radeon_fence_emit(rdev, rdev->r600_blit.vb_ib->fence); | 545 | radeon_fence_emit(rdev, rdev->r600_blit.vb_ib->fence); |
| 546 | mutex_lock(&rdev->ib_pool.mutex); | ||
| 547 | list_add_tail(&rdev->r600_blit.vb_ib->list, &rdev->ib_pool.scheduled_ibs); | ||
| 548 | mutex_unlock(&rdev->ib_pool.mutex); | ||
| 549 | radeon_ib_free(rdev, &rdev->r600_blit.vb_ib); | 546 | radeon_ib_free(rdev, &rdev->r600_blit.vb_ib); |
| 550 | } | 547 | } |
| 551 | 548 | ||
diff --git a/drivers/gpu/drm/radeon/r600_cp.c b/drivers/gpu/drm/radeon/r600_cp.c index 6d5a711c2e91..75bcf35a0931 100644 --- a/drivers/gpu/drm/radeon/r600_cp.c +++ b/drivers/gpu/drm/radeon/r600_cp.c | |||
| @@ -1428,9 +1428,12 @@ static void r700_gfx_init(struct drm_device *dev, | |||
| 1428 | 1428 | ||
| 1429 | gb_tiling_config |= R600_BANK_SWAPS(1); | 1429 | gb_tiling_config |= R600_BANK_SWAPS(1); |
| 1430 | 1430 | ||
| 1431 | backend_map = r700_get_tile_pipe_to_backend_map(dev_priv->r600_max_tile_pipes, | 1431 | if ((dev_priv->flags & RADEON_FAMILY_MASK) == CHIP_RV740) |
| 1432 | dev_priv->r600_max_backends, | 1432 | backend_map = 0x28; |
| 1433 | (0xff << dev_priv->r600_max_backends) & 0xff); | 1433 | else |
| 1434 | backend_map = r700_get_tile_pipe_to_backend_map(dev_priv->r600_max_tile_pipes, | ||
| 1435 | dev_priv->r600_max_backends, | ||
| 1436 | (0xff << dev_priv->r600_max_backends) & 0xff); | ||
| 1434 | gb_tiling_config |= R600_BACKEND_MAP(backend_map); | 1437 | gb_tiling_config |= R600_BACKEND_MAP(backend_map); |
| 1435 | 1438 | ||
| 1436 | cc_gc_shader_pipe_config = | 1439 | cc_gc_shader_pipe_config = |
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index f57480ba1355..c0356bb193e5 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
| @@ -96,6 +96,7 @@ extern int radeon_audio; | |||
| 96 | * symbol; | 96 | * symbol; |
| 97 | */ | 97 | */ |
| 98 | #define RADEON_MAX_USEC_TIMEOUT 100000 /* 100 ms */ | 98 | #define RADEON_MAX_USEC_TIMEOUT 100000 /* 100 ms */ |
| 99 | /* RADEON_IB_POOL_SIZE must be a power of 2 */ | ||
| 99 | #define RADEON_IB_POOL_SIZE 16 | 100 | #define RADEON_IB_POOL_SIZE 16 |
| 100 | #define RADEON_DEBUGFS_MAX_NUM_FILES 32 | 101 | #define RADEON_DEBUGFS_MAX_NUM_FILES 32 |
| 101 | #define RADEONFB_CONN_LIMIT 4 | 102 | #define RADEONFB_CONN_LIMIT 4 |
| @@ -363,11 +364,12 @@ void radeon_irq_kms_sw_irq_put(struct radeon_device *rdev); | |||
| 363 | */ | 364 | */ |
| 364 | struct radeon_ib { | 365 | struct radeon_ib { |
| 365 | struct list_head list; | 366 | struct list_head list; |
| 366 | unsigned long idx; | 367 | unsigned idx; |
| 367 | uint64_t gpu_addr; | 368 | uint64_t gpu_addr; |
| 368 | struct radeon_fence *fence; | 369 | struct radeon_fence *fence; |
| 369 | uint32_t *ptr; | 370 | uint32_t *ptr; |
| 370 | uint32_t length_dw; | 371 | uint32_t length_dw; |
| 372 | bool free; | ||
| 371 | }; | 373 | }; |
| 372 | 374 | ||
| 373 | /* | 375 | /* |
| @@ -377,10 +379,9 @@ struct radeon_ib { | |||
| 377 | struct radeon_ib_pool { | 379 | struct radeon_ib_pool { |
| 378 | struct mutex mutex; | 380 | struct mutex mutex; |
| 379 | struct radeon_bo *robj; | 381 | struct radeon_bo *robj; |
| 380 | struct list_head scheduled_ibs; | ||
| 381 | struct radeon_ib ibs[RADEON_IB_POOL_SIZE]; | 382 | struct radeon_ib ibs[RADEON_IB_POOL_SIZE]; |
| 382 | bool ready; | 383 | bool ready; |
| 383 | DECLARE_BITMAP(alloc_bm, RADEON_IB_POOL_SIZE); | 384 | unsigned head_id; |
| 384 | }; | 385 | }; |
| 385 | 386 | ||
| 386 | struct radeon_cp { | 387 | struct radeon_cp { |
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 2dcda6115874..4d8831548a5f 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c | |||
| @@ -206,6 +206,15 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev, | |||
| 206 | *connector_type = DRM_MODE_CONNECTOR_DVID; | 206 | *connector_type = DRM_MODE_CONNECTOR_DVID; |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | /* Asrock RS600 board lists the DVI port as HDMI */ | ||
| 210 | if ((dev->pdev->device == 0x7941) && | ||
| 211 | (dev->pdev->subsystem_vendor == 0x1849) && | ||
| 212 | (dev->pdev->subsystem_device == 0x7941)) { | ||
| 213 | if ((*connector_type == DRM_MODE_CONNECTOR_HDMIA) && | ||
| 214 | (supported_device == ATOM_DEVICE_DFP3_SUPPORT)) | ||
| 215 | *connector_type = DRM_MODE_CONNECTOR_DVID; | ||
| 216 | } | ||
| 217 | |||
| 209 | /* a-bit f-i90hd - ciaranm on #radeonhd - this board has no DVI */ | 218 | /* a-bit f-i90hd - ciaranm on #radeonhd - this board has no DVI */ |
| 210 | if ((dev->pdev->device == 0x7941) && | 219 | if ((dev->pdev->device == 0x7941) && |
| 211 | (dev->pdev->subsystem_vendor == 0x147b) && | 220 | (dev->pdev->subsystem_vendor == 0x147b) && |
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 238188540017..65f81942f399 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c | |||
| @@ -780,7 +780,7 @@ static enum drm_connector_status radeon_dvi_detect(struct drm_connector *connect | |||
| 780 | * connected and the DVI port disconnected. If the edid doesn't | 780 | * connected and the DVI port disconnected. If the edid doesn't |
| 781 | * say HDMI, vice versa. | 781 | * say HDMI, vice versa. |
| 782 | */ | 782 | */ |
| 783 | if (radeon_connector->shared_ddc && connector_status_connected) { | 783 | if (radeon_connector->shared_ddc && (ret == connector_status_connected)) { |
| 784 | struct drm_device *dev = connector->dev; | 784 | struct drm_device *dev = connector->dev; |
| 785 | struct drm_connector *list_connector; | 785 | struct drm_connector *list_connector; |
| 786 | struct radeon_connector *list_radeon_connector; | 786 | struct radeon_connector *list_radeon_connector; |
| @@ -1060,8 +1060,7 @@ radeon_add_atom_connector(struct drm_device *dev, | |||
| 1060 | return; | 1060 | return; |
| 1061 | } | 1061 | } |
| 1062 | if (radeon_connector->ddc_bus && i2c_bus->valid) { | 1062 | if (radeon_connector->ddc_bus && i2c_bus->valid) { |
| 1063 | if (memcmp(&radeon_connector->ddc_bus->rec, i2c_bus, | 1063 | if (radeon_connector->ddc_bus->rec.i2c_id == i2c_bus->i2c_id) { |
| 1064 | sizeof(struct radeon_i2c_bus_rec)) == 0) { | ||
| 1065 | radeon_connector->shared_ddc = true; | 1064 | radeon_connector->shared_ddc = true; |
| 1066 | shared_ddc = true; | 1065 | shared_ddc = true; |
| 1067 | } | 1066 | } |
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index da59f5e78e09..70ba02ed7723 100644 --- a/drivers/gpu/drm/radeon/radeon_cs.c +++ b/drivers/gpu/drm/radeon/radeon_cs.c | |||
| @@ -86,7 +86,7 @@ int radeon_cs_parser_relocs(struct radeon_cs_parser *p) | |||
| 86 | &p->validated); | 86 | &p->validated); |
| 87 | } | 87 | } |
| 88 | } | 88 | } |
| 89 | return radeon_bo_list_validate(&p->validated, p->ib->fence); | 89 | return radeon_bo_list_validate(&p->validated); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data) | 92 | int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data) |
| @@ -189,12 +189,10 @@ static void radeon_cs_parser_fini(struct radeon_cs_parser *parser, int error) | |||
| 189 | { | 189 | { |
| 190 | unsigned i; | 190 | unsigned i; |
| 191 | 191 | ||
| 192 | if (error && parser->ib) { | 192 | if (!error && parser->ib) { |
| 193 | radeon_bo_list_unvalidate(&parser->validated, | 193 | radeon_bo_list_fence(&parser->validated, parser->ib->fence); |
| 194 | parser->ib->fence); | ||
| 195 | } else { | ||
| 196 | radeon_bo_list_unreserve(&parser->validated); | ||
| 197 | } | 194 | } |
| 195 | radeon_bo_list_unreserve(&parser->validated); | ||
| 198 | for (i = 0; i < parser->nrelocs; i++) { | 196 | for (i = 0; i < parser->nrelocs; i++) { |
| 199 | if (parser->relocs[i].gobj) | 197 | if (parser->relocs[i].gobj) |
| 200 | drm_gem_object_unreference_unlocked(parser->relocs[i].gobj); | 198 | drm_gem_object_unreference_unlocked(parser->relocs[i].gobj); |
diff --git a/drivers/gpu/drm/radeon/radeon_drv.h b/drivers/gpu/drm/radeon/radeon_drv.h index e13785282a82..c57ad606504d 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.h +++ b/drivers/gpu/drm/radeon/radeon_drv.h | |||
| @@ -106,9 +106,10 @@ | |||
| 106 | * 1.29- R500 3D cmd buffer support | 106 | * 1.29- R500 3D cmd buffer support |
| 107 | * 1.30- Add support for occlusion queries | 107 | * 1.30- Add support for occlusion queries |
| 108 | * 1.31- Add support for num Z pipes from GET_PARAM | 108 | * 1.31- Add support for num Z pipes from GET_PARAM |
| 109 | * 1.32- fixes for rv740 setup | ||
| 109 | */ | 110 | */ |
| 110 | #define DRIVER_MAJOR 1 | 111 | #define DRIVER_MAJOR 1 |
| 111 | #define DRIVER_MINOR 31 | 112 | #define DRIVER_MINOR 32 |
| 112 | #define DRIVER_PATCHLEVEL 0 | 113 | #define DRIVER_PATCHLEVEL 0 |
| 113 | 114 | ||
| 114 | enum radeon_cp_microcode_version { | 115 | enum radeon_cp_microcode_version { |
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index d72a71bff218..f1da370928eb 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c | |||
| @@ -306,11 +306,10 @@ void radeon_bo_list_unreserve(struct list_head *head) | |||
| 306 | } | 306 | } |
| 307 | } | 307 | } |
| 308 | 308 | ||
| 309 | int radeon_bo_list_validate(struct list_head *head, void *fence) | 309 | int radeon_bo_list_validate(struct list_head *head) |
| 310 | { | 310 | { |
| 311 | struct radeon_bo_list *lobj; | 311 | struct radeon_bo_list *lobj; |
| 312 | struct radeon_bo *bo; | 312 | struct radeon_bo *bo; |
| 313 | struct radeon_fence *old_fence = NULL; | ||
| 314 | int r; | 313 | int r; |
| 315 | 314 | ||
| 316 | r = radeon_bo_list_reserve(head); | 315 | r = radeon_bo_list_reserve(head); |
| @@ -334,32 +333,27 @@ int radeon_bo_list_validate(struct list_head *head, void *fence) | |||
| 334 | } | 333 | } |
| 335 | lobj->gpu_offset = radeon_bo_gpu_offset(bo); | 334 | lobj->gpu_offset = radeon_bo_gpu_offset(bo); |
| 336 | lobj->tiling_flags = bo->tiling_flags; | 335 | lobj->tiling_flags = bo->tiling_flags; |
| 337 | if (fence) { | ||
| 338 | old_fence = (struct radeon_fence *)bo->tbo.sync_obj; | ||
| 339 | bo->tbo.sync_obj = radeon_fence_ref(fence); | ||
| 340 | bo->tbo.sync_obj_arg = NULL; | ||
| 341 | } | ||
| 342 | if (old_fence) { | ||
| 343 | radeon_fence_unref(&old_fence); | ||
| 344 | } | ||
| 345 | } | 336 | } |
| 346 | return 0; | 337 | return 0; |
| 347 | } | 338 | } |
| 348 | 339 | ||
| 349 | void radeon_bo_list_unvalidate(struct list_head *head, void *fence) | 340 | void radeon_bo_list_fence(struct list_head *head, void *fence) |
| 350 | { | 341 | { |
| 351 | struct radeon_bo_list *lobj; | 342 | struct radeon_bo_list *lobj; |
| 352 | struct radeon_fence *old_fence; | 343 | struct radeon_bo *bo; |
| 353 | 344 | struct radeon_fence *old_fence = NULL; | |
| 354 | if (fence) | 345 | |
| 355 | list_for_each_entry(lobj, head, list) { | 346 | list_for_each_entry(lobj, head, list) { |
| 356 | old_fence = to_radeon_fence(lobj->bo->tbo.sync_obj); | 347 | bo = lobj->bo; |
| 357 | if (old_fence == fence) { | 348 | spin_lock(&bo->tbo.lock); |
| 358 | lobj->bo->tbo.sync_obj = NULL; | 349 | old_fence = (struct radeon_fence *)bo->tbo.sync_obj; |
| 359 | radeon_fence_unref(&old_fence); | 350 | bo->tbo.sync_obj = radeon_fence_ref(fence); |
| 360 | } | 351 | bo->tbo.sync_obj_arg = NULL; |
| 352 | spin_unlock(&bo->tbo.lock); | ||
| 353 | if (old_fence) { | ||
| 354 | radeon_fence_unref(&old_fence); | ||
| 361 | } | 355 | } |
| 362 | radeon_bo_list_unreserve(head); | 356 | } |
| 363 | } | 357 | } |
| 364 | 358 | ||
| 365 | int radeon_bo_fbdev_mmap(struct radeon_bo *bo, | 359 | int radeon_bo_fbdev_mmap(struct radeon_bo *bo, |
diff --git a/drivers/gpu/drm/radeon/radeon_object.h b/drivers/gpu/drm/radeon/radeon_object.h index a02f18011ad1..7ab43de1e244 100644 --- a/drivers/gpu/drm/radeon/radeon_object.h +++ b/drivers/gpu/drm/radeon/radeon_object.h | |||
| @@ -156,8 +156,8 @@ extern void radeon_bo_list_add_object(struct radeon_bo_list *lobj, | |||
| 156 | struct list_head *head); | 156 | struct list_head *head); |
| 157 | extern int radeon_bo_list_reserve(struct list_head *head); | 157 | extern int radeon_bo_list_reserve(struct list_head *head); |
| 158 | extern void radeon_bo_list_unreserve(struct list_head *head); | 158 | extern void radeon_bo_list_unreserve(struct list_head *head); |
| 159 | extern int radeon_bo_list_validate(struct list_head *head, void *fence); | 159 | extern int radeon_bo_list_validate(struct list_head *head); |
| 160 | extern void radeon_bo_list_unvalidate(struct list_head *head, void *fence); | 160 | extern void radeon_bo_list_fence(struct list_head *head, void *fence); |
| 161 | extern int radeon_bo_fbdev_mmap(struct radeon_bo *bo, | 161 | extern int radeon_bo_fbdev_mmap(struct radeon_bo *bo, |
| 162 | struct vm_area_struct *vma); | 162 | struct vm_area_struct *vma); |
| 163 | extern int radeon_bo_set_tiling_flags(struct radeon_bo *bo, | 163 | extern int radeon_bo_set_tiling_flags(struct radeon_bo *bo, |
diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c index 4d12b2d17b4d..6579eb4c1f28 100644 --- a/drivers/gpu/drm/radeon/radeon_ring.c +++ b/drivers/gpu/drm/radeon/radeon_ring.c | |||
| @@ -41,68 +41,55 @@ int radeon_ib_get(struct radeon_device *rdev, struct radeon_ib **ib) | |||
| 41 | { | 41 | { |
| 42 | struct radeon_fence *fence; | 42 | struct radeon_fence *fence; |
| 43 | struct radeon_ib *nib; | 43 | struct radeon_ib *nib; |
| 44 | unsigned long i; | 44 | int r = 0, i, c; |
| 45 | int r = 0; | ||
| 46 | 45 | ||
| 47 | *ib = NULL; | 46 | *ib = NULL; |
| 48 | r = radeon_fence_create(rdev, &fence); | 47 | r = radeon_fence_create(rdev, &fence); |
| 49 | if (r) { | 48 | if (r) { |
| 50 | DRM_ERROR("failed to create fence for new IB\n"); | 49 | dev_err(rdev->dev, "failed to create fence for new IB\n"); |
| 51 | return r; | 50 | return r; |
| 52 | } | 51 | } |
| 53 | mutex_lock(&rdev->ib_pool.mutex); | 52 | mutex_lock(&rdev->ib_pool.mutex); |
| 54 | i = find_first_zero_bit(rdev->ib_pool.alloc_bm, RADEON_IB_POOL_SIZE); | 53 | for (i = rdev->ib_pool.head_id, c = 0, nib = NULL; c < RADEON_IB_POOL_SIZE; c++, i++) { |
| 55 | if (i < RADEON_IB_POOL_SIZE) { | 54 | i &= (RADEON_IB_POOL_SIZE - 1); |
| 56 | set_bit(i, rdev->ib_pool.alloc_bm); | 55 | if (rdev->ib_pool.ibs[i].free) { |
| 57 | rdev->ib_pool.ibs[i].length_dw = 0; | 56 | nib = &rdev->ib_pool.ibs[i]; |
| 58 | *ib = &rdev->ib_pool.ibs[i]; | 57 | break; |
| 59 | mutex_unlock(&rdev->ib_pool.mutex); | 58 | } |
| 60 | goto out; | ||
| 61 | } | 59 | } |
| 62 | if (list_empty(&rdev->ib_pool.scheduled_ibs)) { | 60 | if (nib == NULL) { |
| 63 | /* we go do nothings here */ | 61 | /* This should never happen, it means we allocated all |
| 62 | * IB and haven't scheduled one yet, return EBUSY to | ||
| 63 | * userspace hoping that on ioctl recall we get better | ||
| 64 | * luck | ||
| 65 | */ | ||
| 66 | dev_err(rdev->dev, "no free indirect buffer !\n"); | ||
| 64 | mutex_unlock(&rdev->ib_pool.mutex); | 67 | mutex_unlock(&rdev->ib_pool.mutex); |
| 65 | DRM_ERROR("all IB allocated none scheduled.\n"); | 68 | radeon_fence_unref(&fence); |
| 66 | r = -EINVAL; | 69 | return -EBUSY; |
| 67 | goto out; | ||
| 68 | } | 70 | } |
| 69 | /* get the first ib on the scheduled list */ | 71 | rdev->ib_pool.head_id = (nib->idx + 1) & (RADEON_IB_POOL_SIZE - 1); |
| 70 | nib = list_entry(rdev->ib_pool.scheduled_ibs.next, | 72 | nib->free = false; |
| 71 | struct radeon_ib, list); | 73 | if (nib->fence) { |
| 72 | if (nib->fence == NULL) { | ||
| 73 | /* we go do nothings here */ | ||
| 74 | mutex_unlock(&rdev->ib_pool.mutex); | 74 | mutex_unlock(&rdev->ib_pool.mutex); |
| 75 | DRM_ERROR("IB %lu scheduled without a fence.\n", nib->idx); | 75 | r = radeon_fence_wait(nib->fence, false); |
| 76 | r = -EINVAL; | 76 | if (r) { |
| 77 | goto out; | 77 | dev_err(rdev->dev, "error waiting fence of IB(%u:0x%016lX:%u)\n", |
| 78 | } | 78 | nib->idx, (unsigned long)nib->gpu_addr, nib->length_dw); |
| 79 | mutex_unlock(&rdev->ib_pool.mutex); | 79 | mutex_lock(&rdev->ib_pool.mutex); |
| 80 | 80 | nib->free = true; | |
| 81 | r = radeon_fence_wait(nib->fence, false); | 81 | mutex_unlock(&rdev->ib_pool.mutex); |
| 82 | if (r) { | 82 | radeon_fence_unref(&fence); |
| 83 | DRM_ERROR("radeon: IB(%lu:0x%016lX:%u)\n", nib->idx, | 83 | return r; |
| 84 | (unsigned long)nib->gpu_addr, nib->length_dw); | 84 | } |
| 85 | DRM_ERROR("radeon: GPU lockup detected, fail to get a IB\n"); | 85 | mutex_lock(&rdev->ib_pool.mutex); |
| 86 | goto out; | ||
| 87 | } | 86 | } |
| 88 | radeon_fence_unref(&nib->fence); | 87 | radeon_fence_unref(&nib->fence); |
| 89 | 88 | nib->fence = fence; | |
| 90 | nib->length_dw = 0; | 89 | nib->length_dw = 0; |
| 91 | |||
| 92 | /* scheduled list is accessed here */ | ||
| 93 | mutex_lock(&rdev->ib_pool.mutex); | ||
| 94 | list_del(&nib->list); | ||
| 95 | INIT_LIST_HEAD(&nib->list); | ||
| 96 | mutex_unlock(&rdev->ib_pool.mutex); | 90 | mutex_unlock(&rdev->ib_pool.mutex); |
| 97 | |||
| 98 | *ib = nib; | 91 | *ib = nib; |
| 99 | out: | 92 | return 0; |
| 100 | if (r) { | ||
| 101 | radeon_fence_unref(&fence); | ||
| 102 | } else { | ||
| 103 | (*ib)->fence = fence; | ||
| 104 | } | ||
| 105 | return r; | ||
| 106 | } | 93 | } |
| 107 | 94 | ||
| 108 | void radeon_ib_free(struct radeon_device *rdev, struct radeon_ib **ib) | 95 | void radeon_ib_free(struct radeon_device *rdev, struct radeon_ib **ib) |
| @@ -113,19 +100,10 @@ void radeon_ib_free(struct radeon_device *rdev, struct radeon_ib **ib) | |||
| 113 | if (tmp == NULL) { | 100 | if (tmp == NULL) { |
| 114 | return; | 101 | return; |
| 115 | } | 102 | } |
| 116 | mutex_lock(&rdev->ib_pool.mutex); | 103 | if (!tmp->fence->emited) |
| 117 | if (!list_empty(&tmp->list) && !radeon_fence_signaled(tmp->fence)) { | ||
| 118 | /* IB is scheduled & not signaled don't do anythings */ | ||
| 119 | mutex_unlock(&rdev->ib_pool.mutex); | ||
| 120 | return; | ||
| 121 | } | ||
| 122 | list_del(&tmp->list); | ||
| 123 | INIT_LIST_HEAD(&tmp->list); | ||
| 124 | if (tmp->fence) | ||
| 125 | radeon_fence_unref(&tmp->fence); | 104 | radeon_fence_unref(&tmp->fence); |
| 126 | 105 | mutex_lock(&rdev->ib_pool.mutex); | |
| 127 | tmp->length_dw = 0; | 106 | tmp->free = true; |
| 128 | clear_bit(tmp->idx, rdev->ib_pool.alloc_bm); | ||
| 129 | mutex_unlock(&rdev->ib_pool.mutex); | 107 | mutex_unlock(&rdev->ib_pool.mutex); |
| 130 | } | 108 | } |
| 131 | 109 | ||
| @@ -135,7 +113,7 @@ int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib) | |||
| 135 | 113 | ||
| 136 | if (!ib->length_dw || !rdev->cp.ready) { | 114 | if (!ib->length_dw || !rdev->cp.ready) { |
| 137 | /* TODO: Nothings in the ib we should report. */ | 115 | /* TODO: Nothings in the ib we should report. */ |
| 138 | DRM_ERROR("radeon: couldn't schedule IB(%lu).\n", ib->idx); | 116 | DRM_ERROR("radeon: couldn't schedule IB(%u).\n", ib->idx); |
| 139 | return -EINVAL; | 117 | return -EINVAL; |
| 140 | } | 118 | } |
| 141 | 119 | ||
| @@ -148,7 +126,8 @@ int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib) | |||
| 148 | radeon_ring_ib_execute(rdev, ib); | 126 | radeon_ring_ib_execute(rdev, ib); |
| 149 | radeon_fence_emit(rdev, ib->fence); | 127 | radeon_fence_emit(rdev, ib->fence); |
| 150 | mutex_lock(&rdev->ib_pool.mutex); | 128 | mutex_lock(&rdev->ib_pool.mutex); |
| 151 | list_add_tail(&ib->list, &rdev->ib_pool.scheduled_ibs); | 129 | /* once scheduled IB is considered free and protected by the fence */ |
| 130 | ib->free = true; | ||
| 152 | mutex_unlock(&rdev->ib_pool.mutex); | 131 | mutex_unlock(&rdev->ib_pool.mutex); |
| 153 | radeon_ring_unlock_commit(rdev); | 132 | radeon_ring_unlock_commit(rdev); |
| 154 | return 0; | 133 | return 0; |
| @@ -164,7 +143,6 @@ int radeon_ib_pool_init(struct radeon_device *rdev) | |||
| 164 | if (rdev->ib_pool.robj) | 143 | if (rdev->ib_pool.robj) |
| 165 | return 0; | 144 | return 0; |
| 166 | /* Allocate 1M object buffer */ | 145 | /* Allocate 1M object buffer */ |
| 167 | INIT_LIST_HEAD(&rdev->ib_pool.scheduled_ibs); | ||
| 168 | r = radeon_bo_create(rdev, NULL, RADEON_IB_POOL_SIZE*64*1024, | 146 | r = radeon_bo_create(rdev, NULL, RADEON_IB_POOL_SIZE*64*1024, |
| 169 | true, RADEON_GEM_DOMAIN_GTT, | 147 | true, RADEON_GEM_DOMAIN_GTT, |
| 170 | &rdev->ib_pool.robj); | 148 | &rdev->ib_pool.robj); |
| @@ -195,9 +173,9 @@ int radeon_ib_pool_init(struct radeon_device *rdev) | |||
| 195 | rdev->ib_pool.ibs[i].ptr = ptr + offset; | 173 | rdev->ib_pool.ibs[i].ptr = ptr + offset; |
| 196 | rdev->ib_pool.ibs[i].idx = i; | 174 | rdev->ib_pool.ibs[i].idx = i; |
| 197 | rdev->ib_pool.ibs[i].length_dw = 0; | 175 | rdev->ib_pool.ibs[i].length_dw = 0; |
| 198 | INIT_LIST_HEAD(&rdev->ib_pool.ibs[i].list); | 176 | rdev->ib_pool.ibs[i].free = true; |
| 199 | } | 177 | } |
| 200 | bitmap_zero(rdev->ib_pool.alloc_bm, RADEON_IB_POOL_SIZE); | 178 | rdev->ib_pool.head_id = 0; |
| 201 | rdev->ib_pool.ready = true; | 179 | rdev->ib_pool.ready = true; |
| 202 | DRM_INFO("radeon: ib pool ready.\n"); | 180 | DRM_INFO("radeon: ib pool ready.\n"); |
| 203 | if (radeon_debugfs_ib_init(rdev)) { | 181 | if (radeon_debugfs_ib_init(rdev)) { |
| @@ -214,7 +192,6 @@ void radeon_ib_pool_fini(struct radeon_device *rdev) | |||
| 214 | return; | 192 | return; |
| 215 | } | 193 | } |
| 216 | mutex_lock(&rdev->ib_pool.mutex); | 194 | mutex_lock(&rdev->ib_pool.mutex); |
| 217 | bitmap_zero(rdev->ib_pool.alloc_bm, RADEON_IB_POOL_SIZE); | ||
| 218 | if (rdev->ib_pool.robj) { | 195 | if (rdev->ib_pool.robj) { |
| 219 | r = radeon_bo_reserve(rdev->ib_pool.robj, false); | 196 | r = radeon_bo_reserve(rdev->ib_pool.robj, false); |
| 220 | if (likely(r == 0)) { | 197 | if (likely(r == 0)) { |
| @@ -363,7 +340,7 @@ static int radeon_debugfs_ib_info(struct seq_file *m, void *data) | |||
| 363 | if (ib == NULL) { | 340 | if (ib == NULL) { |
| 364 | return 0; | 341 | return 0; |
| 365 | } | 342 | } |
| 366 | seq_printf(m, "IB %04lu\n", ib->idx); | 343 | seq_printf(m, "IB %04u\n", ib->idx); |
| 367 | seq_printf(m, "IB fence %p\n", ib->fence); | 344 | seq_printf(m, "IB fence %p\n", ib->fence); |
| 368 | seq_printf(m, "IB size %05u dwords\n", ib->length_dw); | 345 | seq_printf(m, "IB size %05u dwords\n", ib->length_dw); |
| 369 | for (i = 0; i < ib->length_dw; i++) { | 346 | for (i = 0; i < ib->length_dw; i++) { |
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 5943d561fd1e..03021674d097 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c | |||
| @@ -549,9 +549,12 @@ static void rv770_gpu_init(struct radeon_device *rdev) | |||
| 549 | 549 | ||
| 550 | gb_tiling_config |= BANK_SWAPS(1); | 550 | gb_tiling_config |= BANK_SWAPS(1); |
| 551 | 551 | ||
| 552 | backend_map = r700_get_tile_pipe_to_backend_map(rdev->config.rv770.max_tile_pipes, | 552 | if (rdev->family == CHIP_RV740) |
| 553 | rdev->config.rv770.max_backends, | 553 | backend_map = 0x28; |
| 554 | (0xff << rdev->config.rv770.max_backends) & 0xff); | 554 | else |
| 555 | backend_map = r700_get_tile_pipe_to_backend_map(rdev->config.rv770.max_tile_pipes, | ||
| 556 | rdev->config.rv770.max_backends, | ||
| 557 | (0xff << rdev->config.rv770.max_backends) & 0xff); | ||
| 555 | gb_tiling_config |= BACKEND_MAP(backend_map); | 558 | gb_tiling_config |= BACKEND_MAP(backend_map); |
| 556 | 559 | ||
| 557 | cc_gc_shader_pipe_config = | 560 | cc_gc_shader_pipe_config = |
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 1a3e909b7bba..c7320ce4567d 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c | |||
| @@ -1020,6 +1020,12 @@ static int ttm_bo_mem_compat(struct ttm_placement *placement, | |||
| 1020 | struct ttm_mem_reg *mem) | 1020 | struct ttm_mem_reg *mem) |
| 1021 | { | 1021 | { |
| 1022 | int i; | 1022 | int i; |
| 1023 | struct drm_mm_node *node = mem->mm_node; | ||
| 1024 | |||
| 1025 | if (node && placement->lpfn != 0 && | ||
| 1026 | (node->start < placement->fpfn || | ||
| 1027 | node->start + node->size > placement->lpfn)) | ||
| 1028 | return -1; | ||
| 1023 | 1029 | ||
| 1024 | for (i = 0; i < placement->num_placement; i++) { | 1030 | for (i = 0; i < placement->num_placement; i++) { |
| 1025 | if ((placement->placement[i] & mem->placement & | 1031 | if ((placement->placement[i] & mem->placement & |
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index 160c2745f8d8..a759170763bb 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c | |||
| @@ -196,14 +196,15 @@ EXPORT_SYMBOL(ttm_tt_populate); | |||
| 196 | 196 | ||
| 197 | #ifdef CONFIG_X86 | 197 | #ifdef CONFIG_X86 |
| 198 | static inline int ttm_tt_set_page_caching(struct page *p, | 198 | static inline int ttm_tt_set_page_caching(struct page *p, |
| 199 | enum ttm_caching_state c_state) | 199 | enum ttm_caching_state c_old, |
| 200 | enum ttm_caching_state c_new) | ||
| 200 | { | 201 | { |
| 201 | int ret = 0; | 202 | int ret = 0; |
| 202 | 203 | ||
| 203 | if (PageHighMem(p)) | 204 | if (PageHighMem(p)) |
| 204 | return 0; | 205 | return 0; |
| 205 | 206 | ||
| 206 | if (get_page_memtype(p) != -1) { | 207 | if (c_old != tt_cached) { |
| 207 | /* p isn't in the default caching state, set it to | 208 | /* p isn't in the default caching state, set it to |
| 208 | * writeback first to free its current memtype. */ | 209 | * writeback first to free its current memtype. */ |
| 209 | 210 | ||
| @@ -212,16 +213,17 @@ static inline int ttm_tt_set_page_caching(struct page *p, | |||
| 212 | return ret; | 213 | return ret; |
| 213 | } | 214 | } |
| 214 | 215 | ||
| 215 | if (c_state == tt_wc) | 216 | if (c_new == tt_wc) |
| 216 | ret = set_memory_wc((unsigned long) page_address(p), 1); | 217 | ret = set_memory_wc((unsigned long) page_address(p), 1); |
| 217 | else if (c_state == tt_uncached) | 218 | else if (c_new == tt_uncached) |
| 218 | ret = set_pages_uc(p, 1); | 219 | ret = set_pages_uc(p, 1); |
| 219 | 220 | ||
| 220 | return ret; | 221 | return ret; |
| 221 | } | 222 | } |
| 222 | #else /* CONFIG_X86 */ | 223 | #else /* CONFIG_X86 */ |
| 223 | static inline int ttm_tt_set_page_caching(struct page *p, | 224 | static inline int ttm_tt_set_page_caching(struct page *p, |
| 224 | enum ttm_caching_state c_state) | 225 | enum ttm_caching_state c_old, |
| 226 | enum ttm_caching_state c_new) | ||
| 225 | { | 227 | { |
| 226 | return 0; | 228 | return 0; |
| 227 | } | 229 | } |
| @@ -254,7 +256,9 @@ static int ttm_tt_set_caching(struct ttm_tt *ttm, | |||
| 254 | for (i = 0; i < ttm->num_pages; ++i) { | 256 | for (i = 0; i < ttm->num_pages; ++i) { |
| 255 | cur_page = ttm->pages[i]; | 257 | cur_page = ttm->pages[i]; |
| 256 | if (likely(cur_page != NULL)) { | 258 | if (likely(cur_page != NULL)) { |
| 257 | ret = ttm_tt_set_page_caching(cur_page, c_state); | 259 | ret = ttm_tt_set_page_caching(cur_page, |
| 260 | ttm->caching_state, | ||
| 261 | c_state); | ||
| 258 | if (unlikely(ret != 0)) | 262 | if (unlikely(ret != 0)) |
| 259 | goto out_err; | 263 | goto out_err; |
| 260 | } | 264 | } |
| @@ -268,7 +272,7 @@ out_err: | |||
| 268 | for (j = 0; j < i; ++j) { | 272 | for (j = 0; j < i; ++j) { |
| 269 | cur_page = ttm->pages[j]; | 273 | cur_page = ttm->pages[j]; |
| 270 | if (likely(cur_page != NULL)) { | 274 | if (likely(cur_page != NULL)) { |
| 271 | (void)ttm_tt_set_page_caching(cur_page, | 275 | (void)ttm_tt_set_page_caching(cur_page, c_state, |
| 272 | ttm->caching_state); | 276 | ttm->caching_state); |
| 273 | } | 277 | } |
| 274 | } | 278 | } |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index a6e8f687fa64..0c9c0811f42d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |||
| @@ -348,22 +348,19 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset) | |||
| 348 | */ | 348 | */ |
| 349 | 349 | ||
| 350 | DRM_INFO("It appears like vesafb is loaded. " | 350 | DRM_INFO("It appears like vesafb is loaded. " |
| 351 | "Ignore above error if any. Entering stealth mode.\n"); | 351 | "Ignore above error if any.\n"); |
| 352 | ret = pci_request_region(dev->pdev, 2, "vmwgfx stealth probe"); | 352 | ret = pci_request_region(dev->pdev, 2, "vmwgfx stealth probe"); |
| 353 | if (unlikely(ret != 0)) { | 353 | if (unlikely(ret != 0)) { |
| 354 | DRM_ERROR("Failed reserving the SVGA MMIO resource.\n"); | 354 | DRM_ERROR("Failed reserving the SVGA MMIO resource.\n"); |
| 355 | goto out_no_device; | 355 | goto out_no_device; |
| 356 | } | 356 | } |
| 357 | vmw_kms_init(dev_priv); | ||
| 358 | vmw_overlay_init(dev_priv); | ||
| 359 | } else { | ||
| 360 | ret = vmw_request_device(dev_priv); | ||
| 361 | if (unlikely(ret != 0)) | ||
| 362 | goto out_no_device; | ||
| 363 | vmw_kms_init(dev_priv); | ||
| 364 | vmw_overlay_init(dev_priv); | ||
| 365 | vmw_fb_init(dev_priv); | ||
| 366 | } | 357 | } |
| 358 | ret = vmw_request_device(dev_priv); | ||
| 359 | if (unlikely(ret != 0)) | ||
| 360 | goto out_no_device; | ||
| 361 | vmw_kms_init(dev_priv); | ||
| 362 | vmw_overlay_init(dev_priv); | ||
| 363 | vmw_fb_init(dev_priv); | ||
| 367 | 364 | ||
| 368 | dev_priv->pm_nb.notifier_call = vmwgfx_pm_notifier; | 365 | dev_priv->pm_nb.notifier_call = vmwgfx_pm_notifier; |
| 369 | register_pm_notifier(&dev_priv->pm_nb); | 366 | register_pm_notifier(&dev_priv->pm_nb); |
| @@ -406,17 +403,15 @@ static int vmw_driver_unload(struct drm_device *dev) | |||
| 406 | 403 | ||
| 407 | unregister_pm_notifier(&dev_priv->pm_nb); | 404 | unregister_pm_notifier(&dev_priv->pm_nb); |
| 408 | 405 | ||
| 409 | if (!dev_priv->stealth) { | 406 | vmw_fb_close(dev_priv); |
| 410 | vmw_fb_close(dev_priv); | 407 | vmw_kms_close(dev_priv); |
| 411 | vmw_kms_close(dev_priv); | 408 | vmw_overlay_close(dev_priv); |
| 412 | vmw_overlay_close(dev_priv); | 409 | vmw_release_device(dev_priv); |
| 413 | vmw_release_device(dev_priv); | 410 | if (dev_priv->stealth) |
| 414 | pci_release_regions(dev->pdev); | ||
| 415 | } else { | ||
| 416 | vmw_kms_close(dev_priv); | ||
| 417 | vmw_overlay_close(dev_priv); | ||
| 418 | pci_release_region(dev->pdev, 2); | 411 | pci_release_region(dev->pdev, 2); |
| 419 | } | 412 | else |
| 413 | pci_release_regions(dev->pdev); | ||
| 414 | |||
| 420 | if (dev_priv->capabilities & SVGA_CAP_IRQMASK) | 415 | if (dev_priv->capabilities & SVGA_CAP_IRQMASK) |
| 421 | drm_irq_uninstall(dev_priv->dev); | 416 | drm_irq_uninstall(dev_priv->dev); |
| 422 | if (dev->devname == vmw_devname) | 417 | if (dev->devname == vmw_devname) |
| @@ -585,11 +580,6 @@ static int vmw_master_set(struct drm_device *dev, | |||
| 585 | int ret = 0; | 580 | int ret = 0; |
| 586 | 581 | ||
| 587 | DRM_INFO("Master set.\n"); | 582 | DRM_INFO("Master set.\n"); |
| 588 | if (dev_priv->stealth) { | ||
| 589 | ret = vmw_request_device(dev_priv); | ||
| 590 | if (unlikely(ret != 0)) | ||
| 591 | return ret; | ||
| 592 | } | ||
| 593 | 583 | ||
| 594 | if (active) { | 584 | if (active) { |
| 595 | BUG_ON(active != &dev_priv->fbdev_master); | 585 | BUG_ON(active != &dev_priv->fbdev_master); |
| @@ -649,18 +639,11 @@ static void vmw_master_drop(struct drm_device *dev, | |||
| 649 | 639 | ||
| 650 | ttm_lock_set_kill(&vmaster->lock, true, SIGTERM); | 640 | ttm_lock_set_kill(&vmaster->lock, true, SIGTERM); |
| 651 | 641 | ||
| 652 | if (dev_priv->stealth) { | ||
| 653 | ret = ttm_bo_evict_mm(&dev_priv->bdev, TTM_PL_VRAM); | ||
| 654 | if (unlikely(ret != 0)) | ||
| 655 | DRM_ERROR("Unable to clean VRAM on master drop.\n"); | ||
| 656 | vmw_release_device(dev_priv); | ||
| 657 | } | ||
| 658 | dev_priv->active_master = &dev_priv->fbdev_master; | 642 | dev_priv->active_master = &dev_priv->fbdev_master; |
| 659 | ttm_lock_set_kill(&dev_priv->fbdev_master.lock, false, SIGTERM); | 643 | ttm_lock_set_kill(&dev_priv->fbdev_master.lock, false, SIGTERM); |
| 660 | ttm_vt_unlock(&dev_priv->fbdev_master.lock); | 644 | ttm_vt_unlock(&dev_priv->fbdev_master.lock); |
| 661 | 645 | ||
| 662 | if (!dev_priv->stealth) | 646 | vmw_fb_on(dev_priv); |
| 663 | vmw_fb_on(dev_priv); | ||
| 664 | } | 647 | } |
| 665 | 648 | ||
| 666 | 649 | ||
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c index d69caf92ffe7..0897359b3e4e 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | |||
| @@ -182,25 +182,19 @@ static int vmw_cmd_present_check(struct vmw_private *dev_priv, | |||
| 182 | return vmw_cmd_sid_check(dev_priv, sw_context, &cmd->body.sid); | 182 | return vmw_cmd_sid_check(dev_priv, sw_context, &cmd->body.sid); |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | static int vmw_cmd_dma(struct vmw_private *dev_priv, | 185 | static int vmw_translate_guest_ptr(struct vmw_private *dev_priv, |
| 186 | struct vmw_sw_context *sw_context, | 186 | struct vmw_sw_context *sw_context, |
| 187 | SVGA3dCmdHeader *header) | 187 | SVGAGuestPtr *ptr, |
| 188 | struct vmw_dma_buffer **vmw_bo_p) | ||
| 188 | { | 189 | { |
| 189 | uint32_t handle; | ||
| 190 | struct vmw_dma_buffer *vmw_bo = NULL; | 190 | struct vmw_dma_buffer *vmw_bo = NULL; |
| 191 | struct ttm_buffer_object *bo; | 191 | struct ttm_buffer_object *bo; |
| 192 | struct vmw_surface *srf = NULL; | 192 | uint32_t handle = ptr->gmrId; |
| 193 | struct vmw_dma_cmd { | ||
| 194 | SVGA3dCmdHeader header; | ||
| 195 | SVGA3dCmdSurfaceDMA dma; | ||
| 196 | } *cmd; | ||
| 197 | struct vmw_relocation *reloc; | 193 | struct vmw_relocation *reloc; |
| 198 | int ret; | ||
| 199 | uint32_t cur_validate_node; | 194 | uint32_t cur_validate_node; |
| 200 | struct ttm_validate_buffer *val_buf; | 195 | struct ttm_validate_buffer *val_buf; |
| 196 | int ret; | ||
| 201 | 197 | ||
| 202 | cmd = container_of(header, struct vmw_dma_cmd, header); | ||
| 203 | handle = cmd->dma.guest.ptr.gmrId; | ||
| 204 | ret = vmw_user_dmabuf_lookup(sw_context->tfile, handle, &vmw_bo); | 198 | ret = vmw_user_dmabuf_lookup(sw_context->tfile, handle, &vmw_bo); |
| 205 | if (unlikely(ret != 0)) { | 199 | if (unlikely(ret != 0)) { |
| 206 | DRM_ERROR("Could not find or use GMR region.\n"); | 200 | DRM_ERROR("Could not find or use GMR region.\n"); |
| @@ -209,14 +203,14 @@ static int vmw_cmd_dma(struct vmw_private *dev_priv, | |||
| 209 | bo = &vmw_bo->base; | 203 | bo = &vmw_bo->base; |
| 210 | 204 | ||
| 211 | if (unlikely(sw_context->cur_reloc >= VMWGFX_MAX_RELOCATIONS)) { | 205 | if (unlikely(sw_context->cur_reloc >= VMWGFX_MAX_RELOCATIONS)) { |
| 212 | DRM_ERROR("Max number of DMA commands per submission" | 206 | DRM_ERROR("Max number relocations per submission" |
| 213 | " exceeded\n"); | 207 | " exceeded\n"); |
| 214 | ret = -EINVAL; | 208 | ret = -EINVAL; |
| 215 | goto out_no_reloc; | 209 | goto out_no_reloc; |
| 216 | } | 210 | } |
| 217 | 211 | ||
| 218 | reloc = &sw_context->relocs[sw_context->cur_reloc++]; | 212 | reloc = &sw_context->relocs[sw_context->cur_reloc++]; |
| 219 | reloc->location = &cmd->dma.guest.ptr; | 213 | reloc->location = ptr; |
| 220 | 214 | ||
| 221 | cur_validate_node = vmw_dmabuf_validate_node(bo, sw_context->cur_val_buf); | 215 | cur_validate_node = vmw_dmabuf_validate_node(bo, sw_context->cur_val_buf); |
| 222 | if (unlikely(cur_validate_node >= VMWGFX_MAX_GMRS)) { | 216 | if (unlikely(cur_validate_node >= VMWGFX_MAX_GMRS)) { |
| @@ -234,7 +228,89 @@ static int vmw_cmd_dma(struct vmw_private *dev_priv, | |||
| 234 | list_add_tail(&val_buf->head, &sw_context->validate_nodes); | 228 | list_add_tail(&val_buf->head, &sw_context->validate_nodes); |
| 235 | ++sw_context->cur_val_buf; | 229 | ++sw_context->cur_val_buf; |
| 236 | } | 230 | } |
| 231 | *vmw_bo_p = vmw_bo; | ||
| 232 | return 0; | ||
| 233 | |||
| 234 | out_no_reloc: | ||
| 235 | vmw_dmabuf_unreference(&vmw_bo); | ||
| 236 | vmw_bo_p = NULL; | ||
| 237 | return ret; | ||
| 238 | } | ||
| 239 | |||
| 240 | static int vmw_cmd_end_query(struct vmw_private *dev_priv, | ||
| 241 | struct vmw_sw_context *sw_context, | ||
| 242 | SVGA3dCmdHeader *header) | ||
| 243 | { | ||
| 244 | struct vmw_dma_buffer *vmw_bo; | ||
| 245 | struct vmw_query_cmd { | ||
| 246 | SVGA3dCmdHeader header; | ||
| 247 | SVGA3dCmdEndQuery q; | ||
| 248 | } *cmd; | ||
| 249 | int ret; | ||
| 250 | |||
| 251 | cmd = container_of(header, struct vmw_query_cmd, header); | ||
| 252 | ret = vmw_cmd_cid_check(dev_priv, sw_context, header); | ||
| 253 | if (unlikely(ret != 0)) | ||
| 254 | return ret; | ||
| 255 | |||
| 256 | ret = vmw_translate_guest_ptr(dev_priv, sw_context, | ||
| 257 | &cmd->q.guestResult, | ||
| 258 | &vmw_bo); | ||
| 259 | if (unlikely(ret != 0)) | ||
| 260 | return ret; | ||
| 261 | |||
| 262 | vmw_dmabuf_unreference(&vmw_bo); | ||
| 263 | return 0; | ||
| 264 | } | ||
| 237 | 265 | ||
| 266 | static int vmw_cmd_wait_query(struct vmw_private *dev_priv, | ||
| 267 | struct vmw_sw_context *sw_context, | ||
| 268 | SVGA3dCmdHeader *header) | ||
| 269 | { | ||
| 270 | struct vmw_dma_buffer *vmw_bo; | ||
| 271 | struct vmw_query_cmd { | ||
| 272 | SVGA3dCmdHeader header; | ||
| 273 | SVGA3dCmdWaitForQuery q; | ||
| 274 | } *cmd; | ||
| 275 | int ret; | ||
| 276 | |||
| 277 | cmd = container_of(header, struct vmw_query_cmd, header); | ||
| 278 | ret = vmw_cmd_cid_check(dev_priv, sw_context, header); | ||
| 279 | if (unlikely(ret != 0)) | ||
| 280 | return ret; | ||
| 281 | |||
| 282 | ret = vmw_translate_guest_ptr(dev_priv, sw_context, | ||
| 283 | &cmd->q.guestResult, | ||
| 284 | &vmw_bo); | ||
| 285 | if (unlikely(ret != 0)) | ||
| 286 | return ret; | ||
| 287 | |||
| 288 | vmw_dmabuf_unreference(&vmw_bo); | ||
| 289 | return 0; | ||
| 290 | } | ||
| 291 | |||
| 292 | |||
| 293 | static int vmw_cmd_dma(struct vmw_private *dev_priv, | ||
| 294 | struct vmw_sw_context *sw_context, | ||
| 295 | SVGA3dCmdHeader *header) | ||
| 296 | { | ||
| 297 | struct vmw_dma_buffer *vmw_bo = NULL; | ||
| 298 | struct ttm_buffer_object *bo; | ||
| 299 | struct vmw_surface *srf = NULL; | ||
| 300 | struct vmw_dma_cmd { | ||
| 301 | SVGA3dCmdHeader header; | ||
| 302 | SVGA3dCmdSurfaceDMA dma; | ||
| 303 | } *cmd; | ||
| 304 | int ret; | ||
| 305 | |||
| 306 | cmd = container_of(header, struct vmw_dma_cmd, header); | ||
| 307 | ret = vmw_translate_guest_ptr(dev_priv, sw_context, | ||
| 308 | &cmd->dma.guest.ptr, | ||
| 309 | &vmw_bo); | ||
| 310 | if (unlikely(ret != 0)) | ||
| 311 | return ret; | ||
| 312 | |||
| 313 | bo = &vmw_bo->base; | ||
| 238 | ret = vmw_user_surface_lookup_handle(dev_priv, sw_context->tfile, | 314 | ret = vmw_user_surface_lookup_handle(dev_priv, sw_context->tfile, |
| 239 | cmd->dma.host.sid, &srf); | 315 | cmd->dma.host.sid, &srf); |
| 240 | if (ret) { | 316 | if (ret) { |
| @@ -379,8 +455,8 @@ static vmw_cmd_func vmw_cmd_funcs[SVGA_3D_CMD_MAX] = { | |||
| 379 | VMW_CMD_DEF(SVGA_3D_CMD_DRAW_PRIMITIVES, &vmw_cmd_draw), | 455 | VMW_CMD_DEF(SVGA_3D_CMD_DRAW_PRIMITIVES, &vmw_cmd_draw), |
| 380 | VMW_CMD_DEF(SVGA_3D_CMD_SETSCISSORRECT, &vmw_cmd_cid_check), | 456 | VMW_CMD_DEF(SVGA_3D_CMD_SETSCISSORRECT, &vmw_cmd_cid_check), |
| 381 | VMW_CMD_DEF(SVGA_3D_CMD_BEGIN_QUERY, &vmw_cmd_cid_check), | 457 | VMW_CMD_DEF(SVGA_3D_CMD_BEGIN_QUERY, &vmw_cmd_cid_check), |
| 382 | VMW_CMD_DEF(SVGA_3D_CMD_END_QUERY, &vmw_cmd_cid_check), | 458 | VMW_CMD_DEF(SVGA_3D_CMD_END_QUERY, &vmw_cmd_end_query), |
| 383 | VMW_CMD_DEF(SVGA_3D_CMD_WAIT_FOR_QUERY, &vmw_cmd_cid_check), | 459 | VMW_CMD_DEF(SVGA_3D_CMD_WAIT_FOR_QUERY, &vmw_cmd_wait_query), |
| 384 | VMW_CMD_DEF(SVGA_3D_CMD_PRESENT_READBACK, &vmw_cmd_ok), | 460 | VMW_CMD_DEF(SVGA_3D_CMD_PRESENT_READBACK, &vmw_cmd_ok), |
| 385 | VMW_CMD_DEF(SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN, | 461 | VMW_CMD_DEF(SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN, |
| 386 | &vmw_cmd_blt_surf_screen_check) | 462 | &vmw_cmd_blt_surf_screen_check) |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c index 4f4f6432be8b..a93367041cdc 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | |||
| @@ -559,6 +559,9 @@ int vmw_fb_init(struct vmw_private *vmw_priv) | |||
| 559 | info->pixmap.scan_align = 1; | 559 | info->pixmap.scan_align = 1; |
| 560 | #endif | 560 | #endif |
| 561 | 561 | ||
| 562 | info->aperture_base = vmw_priv->vram_start; | ||
| 563 | info->aperture_size = vmw_priv->vram_size; | ||
| 564 | |||
| 562 | /* | 565 | /* |
| 563 | * Dirty & Deferred IO | 566 | * Dirty & Deferred IO |
| 564 | */ | 567 | */ |
diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c index 24b56dc54597..2f6cf69ecb39 100644 --- a/drivers/gpu/vga/vgaarb.c +++ b/drivers/gpu/vga/vgaarb.c | |||
| @@ -961,7 +961,7 @@ static ssize_t vga_arb_write(struct file *file, const char __user * buf, | |||
| 961 | remaining -= 7; | 961 | remaining -= 7; |
| 962 | pr_devel("client 0x%p called 'target'\n", priv); | 962 | pr_devel("client 0x%p called 'target'\n", priv); |
| 963 | /* if target is default */ | 963 | /* if target is default */ |
| 964 | if (!strncmp(kbuf, "default", 7)) | 964 | if (!strncmp(curr_pos, "default", 7)) |
| 965 | pdev = pci_dev_get(vga_default_device()); | 965 | pdev = pci_dev_get(vga_default_device()); |
| 966 | else { | 966 | else { |
| 967 | if (!vga_pci_str_to_vars(curr_pos, remaining, | 967 | if (!vga_pci_str_to_vars(curr_pos, remaining, |
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index cc9b5940fa97..875e34e0b235 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c | |||
| @@ -2115,9 +2115,7 @@ int rdma_bind_addr(struct rdma_cm_id *id, struct sockaddr *addr) | |||
| 2115 | if (ret) | 2115 | if (ret) |
| 2116 | goto err1; | 2116 | goto err1; |
| 2117 | 2117 | ||
| 2118 | if (cma_loopback_addr(addr)) { | 2118 | if (!cma_any_addr(addr)) { |
| 2119 | ret = cma_bind_loopback(id_priv); | ||
| 2120 | } else if (!cma_zero_addr(addr)) { | ||
| 2121 | ret = rdma_translate_ip(addr, &id->route.addr.dev_addr); | 2119 | ret = rdma_translate_ip(addr, &id->route.addr.dev_addr); |
| 2122 | if (ret) | 2120 | if (ret) |
| 2123 | goto err1; | 2121 | goto err1; |
diff --git a/drivers/input/input-polldev.c b/drivers/input/input-polldev.c index aa6713b4a988..291d9393d359 100644 --- a/drivers/input/input-polldev.c +++ b/drivers/input/input-polldev.c | |||
| @@ -100,6 +100,12 @@ static void input_close_polled_device(struct input_dev *input) | |||
| 100 | struct input_polled_dev *dev = input_get_drvdata(input); | 100 | struct input_polled_dev *dev = input_get_drvdata(input); |
| 101 | 101 | ||
| 102 | cancel_delayed_work_sync(&dev->work); | 102 | cancel_delayed_work_sync(&dev->work); |
| 103 | /* | ||
| 104 | * Clean up work struct to remove references to the workqueue. | ||
| 105 | * It may be destroyed by the next call. This causes problems | ||
| 106 | * at next device open-close in case of poll_interval == 0. | ||
| 107 | */ | ||
| 108 | INIT_DELAYED_WORK(&dev->work, dev->work.work.func); | ||
| 103 | input_polldev_stop_workqueue(); | 109 | input_polldev_stop_workqueue(); |
| 104 | 110 | ||
| 105 | if (dev->close) | 111 | if (dev->close) |
diff --git a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c index 9774bdfaa482..d8c0c8d6992c 100644 --- a/drivers/input/mouse/psmouse-base.c +++ b/drivers/input/mouse/psmouse-base.c | |||
| @@ -1141,7 +1141,14 @@ static void psmouse_cleanup(struct serio *serio) | |||
| 1141 | psmouse_deactivate(parent); | 1141 | psmouse_deactivate(parent); |
| 1142 | } | 1142 | } |
| 1143 | 1143 | ||
| 1144 | psmouse_deactivate(psmouse); | 1144 | psmouse_set_state(psmouse, PSMOUSE_INITIALIZING); |
| 1145 | |||
| 1146 | /* | ||
| 1147 | * Disable stream mode so cleanup routine can proceed undisturbed. | ||
| 1148 | */ | ||
| 1149 | if (ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_DISABLE)) | ||
| 1150 | printk(KERN_WARNING "psmouse.c: Failed to disable mouse on %s\n", | ||
| 1151 | psmouse->ps2dev.serio->phys); | ||
| 1145 | 1152 | ||
| 1146 | if (psmouse->cleanup) | 1153 | if (psmouse->cleanup) |
| 1147 | psmouse->cleanup(psmouse); | 1154 | psmouse->cleanup(psmouse); |
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index d84a36e545f6..b54aee7cd9e3 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c | |||
| @@ -1161,9 +1161,17 @@ static int i8042_pm_restore(struct device *dev) | |||
| 1161 | return 0; | 1161 | return 0; |
| 1162 | } | 1162 | } |
| 1163 | 1163 | ||
| 1164 | static int i8042_pm_thaw(struct device *dev) | ||
| 1165 | { | ||
| 1166 | i8042_interrupt(0, NULL); | ||
| 1167 | |||
| 1168 | return 0; | ||
| 1169 | } | ||
| 1170 | |||
| 1164 | static const struct dev_pm_ops i8042_pm_ops = { | 1171 | static const struct dev_pm_ops i8042_pm_ops = { |
| 1165 | .suspend = i8042_pm_reset, | 1172 | .suspend = i8042_pm_reset, |
| 1166 | .resume = i8042_pm_restore, | 1173 | .resume = i8042_pm_restore, |
| 1174 | .thaw = i8042_pm_thaw, | ||
| 1167 | .poweroff = i8042_pm_reset, | 1175 | .poweroff = i8042_pm_reset, |
| 1168 | .restore = i8042_pm_restore, | 1176 | .restore = i8042_pm_restore, |
| 1169 | }; | 1177 | }; |
diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c index 09a5e7341bd5..5256123a5228 100644 --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c | |||
| @@ -618,8 +618,8 @@ static int idealtek_read_data(struct usbtouch_usb *dev, unsigned char *pkt) | |||
| 618 | #ifdef CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH | 618 | #ifdef CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH |
| 619 | static int general_touch_read_data(struct usbtouch_usb *dev, unsigned char *pkt) | 619 | static int general_touch_read_data(struct usbtouch_usb *dev, unsigned char *pkt) |
| 620 | { | 620 | { |
| 621 | dev->x = ((pkt[2] & 0x0F) << 8) | pkt[1] ; | 621 | dev->x = (pkt[2] << 8) | pkt[1]; |
| 622 | dev->y = ((pkt[4] & 0x0F) << 8) | pkt[3] ; | 622 | dev->y = (pkt[4] << 8) | pkt[3]; |
| 623 | dev->press = pkt[5] & 0xff; | 623 | dev->press = pkt[5] & 0xff; |
| 624 | dev->touch = pkt[0] & 0x01; | 624 | dev->touch = pkt[0] & 0x01; |
| 625 | 625 | ||
| @@ -809,9 +809,9 @@ static struct usbtouch_device_info usbtouch_dev_info[] = { | |||
| 809 | #ifdef CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH | 809 | #ifdef CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH |
| 810 | [DEVTYPE_GENERAL_TOUCH] = { | 810 | [DEVTYPE_GENERAL_TOUCH] = { |
| 811 | .min_xc = 0x0, | 811 | .min_xc = 0x0, |
| 812 | .max_xc = 0x0500, | 812 | .max_xc = 0x7fff, |
| 813 | .min_yc = 0x0, | 813 | .min_yc = 0x0, |
| 814 | .max_yc = 0x0500, | 814 | .max_yc = 0x7fff, |
| 815 | .rept_size = 7, | 815 | .rept_size = 7, |
| 816 | .read_data = general_touch_read_data, | 816 | .read_data = general_touch_read_data, |
| 817 | }, | 817 | }, |
diff --git a/drivers/md/dm-log-userspace-transfer.c b/drivers/md/dm-log-userspace-transfer.c index 54abf9e303b7..f1c8cae70b4b 100644 --- a/drivers/md/dm-log-userspace-transfer.c +++ b/drivers/md/dm-log-userspace-transfer.c | |||
| @@ -172,11 +172,15 @@ int dm_consult_userspace(const char *uuid, uint64_t luid, int request_type, | |||
| 172 | { | 172 | { |
| 173 | int r = 0; | 173 | int r = 0; |
| 174 | size_t dummy = 0; | 174 | size_t dummy = 0; |
| 175 | int overhead_size = | 175 | int overhead_size = sizeof(struct dm_ulog_request) + sizeof(struct cn_msg); |
| 176 | sizeof(struct dm_ulog_request *) + sizeof(struct cn_msg); | ||
| 177 | struct dm_ulog_request *tfr = prealloced_ulog_tfr; | 176 | struct dm_ulog_request *tfr = prealloced_ulog_tfr; |
| 178 | struct receiving_pkg pkg; | 177 | struct receiving_pkg pkg; |
| 179 | 178 | ||
| 179 | /* | ||
| 180 | * Given the space needed to hold the 'struct cn_msg' and | ||
| 181 | * 'struct dm_ulog_request' - do we have enough payload | ||
| 182 | * space remaining? | ||
| 183 | */ | ||
| 180 | if (data_size > (DM_ULOG_PREALLOCED_SIZE - overhead_size)) { | 184 | if (data_size > (DM_ULOG_PREALLOCED_SIZE - overhead_size)) { |
| 181 | DMINFO("Size of tfr exceeds preallocated size"); | 185 | DMINFO("Size of tfr exceeds preallocated size"); |
| 182 | return -EINVAL; | 186 | return -EINVAL; |
| @@ -191,7 +195,7 @@ resend: | |||
| 191 | */ | 195 | */ |
| 192 | mutex_lock(&dm_ulog_lock); | 196 | mutex_lock(&dm_ulog_lock); |
| 193 | 197 | ||
| 194 | memset(tfr, 0, DM_ULOG_PREALLOCED_SIZE - overhead_size); | 198 | memset(tfr, 0, DM_ULOG_PREALLOCED_SIZE - sizeof(struct cn_msg)); |
| 195 | memcpy(tfr->uuid, uuid, DM_UUID_LEN); | 199 | memcpy(tfr->uuid, uuid, DM_UUID_LEN); |
| 196 | tfr->luid = luid; | 200 | tfr->luid = luid; |
| 197 | tfr->seq = dm_ulog_seq++; | 201 | tfr->seq = dm_ulog_seq++; |
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index ad779bd13aec..6c1046df81f6 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c | |||
| @@ -724,7 +724,7 @@ static void do_writes(struct mirror_set *ms, struct bio_list *writes) | |||
| 724 | /* | 724 | /* |
| 725 | * Dispatch io. | 725 | * Dispatch io. |
| 726 | */ | 726 | */ |
| 727 | if (unlikely(ms->log_failure)) { | 727 | if (unlikely(ms->log_failure) && errors_handled(ms)) { |
| 728 | spin_lock_irq(&ms->lock); | 728 | spin_lock_irq(&ms->lock); |
| 729 | bio_list_merge(&ms->failures, &sync); | 729 | bio_list_merge(&ms->failures, &sync); |
| 730 | spin_unlock_irq(&ms->lock); | 730 | spin_unlock_irq(&ms->lock); |
diff --git a/drivers/md/dm-region-hash.c b/drivers/md/dm-region-hash.c index 5f19ceb6fe91..168bd38f5006 100644 --- a/drivers/md/dm-region-hash.c +++ b/drivers/md/dm-region-hash.c | |||
| @@ -660,10 +660,9 @@ void dm_rh_recovery_end(struct dm_region *reg, int success) | |||
| 660 | spin_lock_irq(&rh->region_lock); | 660 | spin_lock_irq(&rh->region_lock); |
| 661 | if (success) | 661 | if (success) |
| 662 | list_add(®->list, ®->rh->recovered_regions); | 662 | list_add(®->list, ®->rh->recovered_regions); |
| 663 | else { | 663 | else |
| 664 | reg->state = DM_RH_NOSYNC; | ||
| 665 | list_add(®->list, ®->rh->failed_recovered_regions); | 664 | list_add(®->list, ®->rh->failed_recovered_regions); |
| 666 | } | 665 | |
| 667 | spin_unlock_irq(&rh->region_lock); | 666 | spin_unlock_irq(&rh->region_lock); |
| 668 | 667 | ||
| 669 | rh->wakeup_workers(rh->context); | 668 | rh->wakeup_workers(rh->context); |
diff --git a/drivers/md/dm-snap-persistent.c b/drivers/md/dm-snap-persistent.c index 7d08879689ac..c097d8a4823d 100644 --- a/drivers/md/dm-snap-persistent.c +++ b/drivers/md/dm-snap-persistent.c | |||
| @@ -254,7 +254,7 @@ static int chunk_io(struct pstore *ps, void *area, chunk_t chunk, int rw, | |||
| 254 | * Issue the synchronous I/O from a different thread | 254 | * Issue the synchronous I/O from a different thread |
| 255 | * to avoid generic_make_request recursion. | 255 | * to avoid generic_make_request recursion. |
| 256 | */ | 256 | */ |
| 257 | INIT_WORK(&req.work, do_metadata); | 257 | INIT_WORK_ON_STACK(&req.work, do_metadata); |
| 258 | queue_work(ps->metadata_wq, &req.work); | 258 | queue_work(ps->metadata_wq, &req.work); |
| 259 | flush_workqueue(ps->metadata_wq); | 259 | flush_workqueue(ps->metadata_wq); |
| 260 | 260 | ||
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index e0efc1adcaff..bd58703ee8f6 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c | |||
| @@ -110,7 +110,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | stripes = simple_strtoul(argv[0], &end, 10); | 112 | stripes = simple_strtoul(argv[0], &end, 10); |
| 113 | if (*end) { | 113 | if (!stripes || *end) { |
| 114 | ti->error = "Invalid stripe count"; | 114 | ti->error = "Invalid stripe count"; |
| 115 | return -EINVAL; | 115 | return -EINVAL; |
| 116 | } | 116 | } |
diff --git a/drivers/md/dm-sysfs.c b/drivers/md/dm-sysfs.c index f53392df7b97..f91b40942e07 100644 --- a/drivers/md/dm-sysfs.c +++ b/drivers/md/dm-sysfs.c | |||
| @@ -80,20 +80,12 @@ static struct sysfs_ops dm_sysfs_ops = { | |||
| 80 | }; | 80 | }; |
| 81 | 81 | ||
| 82 | /* | 82 | /* |
| 83 | * The sysfs structure is embedded in md struct, nothing to do here | ||
| 84 | */ | ||
| 85 | static void dm_sysfs_release(struct kobject *kobj) | ||
| 86 | { | ||
| 87 | } | ||
| 88 | |||
| 89 | /* | ||
| 90 | * dm kobject is embedded in mapped_device structure | 83 | * dm kobject is embedded in mapped_device structure |
| 91 | * no need to define release function here | 84 | * no need to define release function here |
| 92 | */ | 85 | */ |
| 93 | static struct kobj_type dm_ktype = { | 86 | static struct kobj_type dm_ktype = { |
| 94 | .sysfs_ops = &dm_sysfs_ops, | 87 | .sysfs_ops = &dm_sysfs_ops, |
| 95 | .default_attrs = dm_attrs, | 88 | .default_attrs = dm_attrs, |
| 96 | .release = dm_sysfs_release | ||
| 97 | }; | 89 | }; |
| 98 | 90 | ||
| 99 | /* | 91 | /* |
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 3167480b532c..aa4e2aa86d49 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
| @@ -1595,10 +1595,15 @@ static int dm_prep_fn(struct request_queue *q, struct request *rq) | |||
| 1595 | return BLKPREP_OK; | 1595 | return BLKPREP_OK; |
| 1596 | } | 1596 | } |
| 1597 | 1597 | ||
| 1598 | static void map_request(struct dm_target *ti, struct request *clone, | 1598 | /* |
| 1599 | struct mapped_device *md) | 1599 | * Returns: |
| 1600 | * 0 : the request has been processed (not requeued) | ||
| 1601 | * !0 : the request has been requeued | ||
| 1602 | */ | ||
| 1603 | static int map_request(struct dm_target *ti, struct request *clone, | ||
| 1604 | struct mapped_device *md) | ||
| 1600 | { | 1605 | { |
| 1601 | int r; | 1606 | int r, requeued = 0; |
| 1602 | struct dm_rq_target_io *tio = clone->end_io_data; | 1607 | struct dm_rq_target_io *tio = clone->end_io_data; |
| 1603 | 1608 | ||
| 1604 | /* | 1609 | /* |
| @@ -1625,6 +1630,7 @@ static void map_request(struct dm_target *ti, struct request *clone, | |||
| 1625 | case DM_MAPIO_REQUEUE: | 1630 | case DM_MAPIO_REQUEUE: |
| 1626 | /* The target wants to requeue the I/O */ | 1631 | /* The target wants to requeue the I/O */ |
| 1627 | dm_requeue_unmapped_request(clone); | 1632 | dm_requeue_unmapped_request(clone); |
| 1633 | requeued = 1; | ||
| 1628 | break; | 1634 | break; |
| 1629 | default: | 1635 | default: |
| 1630 | if (r > 0) { | 1636 | if (r > 0) { |
| @@ -1636,6 +1642,8 @@ static void map_request(struct dm_target *ti, struct request *clone, | |||
| 1636 | dm_kill_unmapped_request(clone, r); | 1642 | dm_kill_unmapped_request(clone, r); |
| 1637 | break; | 1643 | break; |
| 1638 | } | 1644 | } |
| 1645 | |||
| 1646 | return requeued; | ||
| 1639 | } | 1647 | } |
| 1640 | 1648 | ||
| 1641 | /* | 1649 | /* |
| @@ -1677,12 +1685,17 @@ static void dm_request_fn(struct request_queue *q) | |||
| 1677 | atomic_inc(&md->pending[rq_data_dir(clone)]); | 1685 | atomic_inc(&md->pending[rq_data_dir(clone)]); |
| 1678 | 1686 | ||
| 1679 | spin_unlock(q->queue_lock); | 1687 | spin_unlock(q->queue_lock); |
| 1680 | map_request(ti, clone, md); | 1688 | if (map_request(ti, clone, md)) |
| 1689 | goto requeued; | ||
| 1690 | |||
| 1681 | spin_lock_irq(q->queue_lock); | 1691 | spin_lock_irq(q->queue_lock); |
| 1682 | } | 1692 | } |
| 1683 | 1693 | ||
| 1684 | goto out; | 1694 | goto out; |
| 1685 | 1695 | ||
| 1696 | requeued: | ||
| 1697 | spin_lock_irq(q->queue_lock); | ||
| 1698 | |||
| 1686 | plug_and_out: | 1699 | plug_and_out: |
| 1687 | if (!elv_queue_empty(q)) | 1700 | if (!elv_queue_empty(q)) |
| 1688 | /* Some requests still remain, retry later */ | 1701 | /* Some requests still remain, retry later */ |
diff --git a/drivers/media/dvb/dvb-usb/Kconfig b/drivers/media/dvb/dvb-usb/Kconfig index 1b249897c9fb..465295b1d14b 100644 --- a/drivers/media/dvb/dvb-usb/Kconfig +++ b/drivers/media/dvb/dvb-usb/Kconfig | |||
| @@ -112,11 +112,13 @@ config DVB_USB_CXUSB | |||
| 112 | select DVB_MT352 if !DVB_FE_CUSTOMISE | 112 | select DVB_MT352 if !DVB_FE_CUSTOMISE |
| 113 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE | 113 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE |
| 114 | select DVB_DIB7000P if !DVB_FE_CUSTOMISE | 114 | select DVB_DIB7000P if !DVB_FE_CUSTOMISE |
| 115 | select DVB_LGS8GL5 if !DVB_FE_CUSTOMISE | ||
| 116 | select DVB_TUNER_DIB0070 if !DVB_FE_CUSTOMISE | 115 | select DVB_TUNER_DIB0070 if !DVB_FE_CUSTOMISE |
| 116 | select DVB_ATBM8830 if !DVB_FE_CUSTOMISE | ||
| 117 | select DVB_LGS8GXX if !DVB_FE_CUSTOMISE | ||
| 117 | select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMISE | 118 | select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMISE |
| 118 | select MEDIA_TUNER_XC2028 if !MEDIA_TUNER_CUSTOMISE | 119 | select MEDIA_TUNER_XC2028 if !MEDIA_TUNER_CUSTOMISE |
| 119 | select MEDIA_TUNER_MXL5005S if !MEDIA_TUNER_CUSTOMISE | 120 | select MEDIA_TUNER_MXL5005S if !MEDIA_TUNER_CUSTOMISE |
| 121 | select MEDIA_TUNER_MAX2165 if !MEDIA_TUNER_CUSTOMISE | ||
| 120 | help | 122 | help |
| 121 | Say Y here to support the Conexant USB2.0 hybrid reference design. | 123 | Say Y here to support the Conexant USB2.0 hybrid reference design. |
| 122 | Currently, only DVB and ATSC modes are supported, analog mode | 124 | Currently, only DVB and ATSC modes are supported, analog mode |
diff --git a/drivers/media/dvb/frontends/l64781.c b/drivers/media/dvb/frontends/l64781.c index 3051b64aa17c..445fa1068064 100644 --- a/drivers/media/dvb/frontends/l64781.c +++ b/drivers/media/dvb/frontends/l64781.c | |||
| @@ -192,8 +192,8 @@ static int apply_frontend_param (struct dvb_frontend* fe, struct dvb_frontend_pa | |||
| 192 | spi_bias *= qam_tab[p->constellation]; | 192 | spi_bias *= qam_tab[p->constellation]; |
| 193 | spi_bias /= p->code_rate_HP + 1; | 193 | spi_bias /= p->code_rate_HP + 1; |
| 194 | spi_bias /= (guard_tab[p->guard_interval] + 32); | 194 | spi_bias /= (guard_tab[p->guard_interval] + 32); |
| 195 | spi_bias *= 1000ULL; | 195 | spi_bias *= 1000; |
| 196 | spi_bias /= 1000ULL + ppm/1000; | 196 | spi_bias /= 1000 + ppm/1000; |
| 197 | spi_bias *= p->code_rate_HP; | 197 | spi_bias *= p->code_rate_HP; |
| 198 | 198 | ||
| 199 | val0x04 = (p->transmission_mode << 2) | p->guard_interval; | 199 | val0x04 = (p->transmission_mode << 2) | p->guard_interval; |
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index 3182a406bdd1..ae08b077fd04 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
| @@ -4461,6 +4461,7 @@ static int __devinit bttv_probe(struct pci_dev *dev, | |||
| 4461 | request_modules(btv); | 4461 | request_modules(btv); |
| 4462 | } | 4462 | } |
| 4463 | 4463 | ||
| 4464 | init_bttv_i2c_ir(btv); | ||
| 4464 | bttv_input_init(btv); | 4465 | bttv_input_init(btv); |
| 4465 | 4466 | ||
| 4466 | /* everything is fine */ | 4467 | /* everything is fine */ |
diff --git a/drivers/media/video/bt8xx/bttv-i2c.c b/drivers/media/video/bt8xx/bttv-i2c.c index 63aa31a041e8..407fa61e4cda 100644 --- a/drivers/media/video/bt8xx/bttv-i2c.c +++ b/drivers/media/video/bt8xx/bttv-i2c.c | |||
| @@ -388,7 +388,12 @@ int __devinit init_bttv_i2c(struct bttv *btv) | |||
| 388 | if (0 == btv->i2c_rc && i2c_scan) | 388 | if (0 == btv->i2c_rc && i2c_scan) |
| 389 | do_i2c_scan(btv->c.v4l2_dev.name, &btv->i2c_client); | 389 | do_i2c_scan(btv->c.v4l2_dev.name, &btv->i2c_client); |
| 390 | 390 | ||
| 391 | /* Instantiate the IR receiver device, if present */ | 391 | return btv->i2c_rc; |
| 392 | } | ||
| 393 | |||
| 394 | /* Instantiate the I2C IR receiver device, if present */ | ||
| 395 | void __devinit init_bttv_i2c_ir(struct bttv *btv) | ||
| 396 | { | ||
| 392 | if (0 == btv->i2c_rc) { | 397 | if (0 == btv->i2c_rc) { |
| 393 | struct i2c_board_info info; | 398 | struct i2c_board_info info; |
| 394 | /* The external IR receiver is at i2c address 0x34 (0x35 for | 399 | /* The external IR receiver is at i2c address 0x34 (0x35 for |
| @@ -408,7 +413,6 @@ int __devinit init_bttv_i2c(struct bttv *btv) | |||
| 408 | strlcpy(info.type, "ir_video", I2C_NAME_SIZE); | 413 | strlcpy(info.type, "ir_video", I2C_NAME_SIZE); |
| 409 | i2c_new_probed_device(&btv->c.i2c_adap, &info, addr_list); | 414 | i2c_new_probed_device(&btv->c.i2c_adap, &info, addr_list); |
| 410 | } | 415 | } |
| 411 | return btv->i2c_rc; | ||
| 412 | } | 416 | } |
| 413 | 417 | ||
| 414 | int __devexit fini_bttv_i2c(struct bttv *btv) | 418 | int __devexit fini_bttv_i2c(struct bttv *btv) |
diff --git a/drivers/media/video/bt8xx/bttvp.h b/drivers/media/video/bt8xx/bttvp.h index a1d0e9c9f286..6cccc2a17eee 100644 --- a/drivers/media/video/bt8xx/bttvp.h +++ b/drivers/media/video/bt8xx/bttvp.h | |||
| @@ -279,6 +279,7 @@ extern unsigned int bttv_debug; | |||
| 279 | extern unsigned int bttv_gpio; | 279 | extern unsigned int bttv_gpio; |
| 280 | extern void bttv_gpio_tracking(struct bttv *btv, char *comment); | 280 | extern void bttv_gpio_tracking(struct bttv *btv, char *comment); |
| 281 | extern int init_bttv_i2c(struct bttv *btv); | 281 | extern int init_bttv_i2c(struct bttv *btv); |
| 282 | extern void init_bttv_i2c_ir(struct bttv *btv); | ||
| 282 | extern int fini_bttv_i2c(struct bttv *btv); | 283 | extern int fini_bttv_i2c(struct bttv *btv); |
| 283 | 284 | ||
| 284 | #define bttv_printk if (bttv_verbose) printk | 285 | #define bttv_printk if (bttv_verbose) printk |
diff --git a/drivers/media/video/mt9t112.c b/drivers/media/video/mt9t112.c index fc4dd6045720..7438f8d775ba 100644 --- a/drivers/media/video/mt9t112.c +++ b/drivers/media/video/mt9t112.c | |||
| @@ -514,7 +514,7 @@ static int mt9t112_init_pll(const struct i2c_client *client) | |||
| 514 | /* poll to verify out of standby. Must Poll this bit */ | 514 | /* poll to verify out of standby. Must Poll this bit */ |
| 515 | for (i = 0; i < 100; i++) { | 515 | for (i = 0; i < 100; i++) { |
| 516 | mt9t112_reg_read(data, client, 0x0018); | 516 | mt9t112_reg_read(data, client, 0x0018); |
| 517 | if (0x4000 & data) | 517 | if (!(0x4000 & data)) |
| 518 | break; | 518 | break; |
| 519 | 519 | ||
| 520 | mdelay(10); | 520 | mdelay(10); |
diff --git a/drivers/media/video/pwc/pwc-ctrl.c b/drivers/media/video/pwc/pwc-ctrl.c index 50b415e07eda..f7f7e04cf485 100644 --- a/drivers/media/video/pwc/pwc-ctrl.c +++ b/drivers/media/video/pwc/pwc-ctrl.c | |||
| @@ -753,7 +753,7 @@ int pwc_set_shutter_speed(struct pwc_device *pdev, int mode, int value) | |||
| 753 | buf[0] = 0xff; /* fixed */ | 753 | buf[0] = 0xff; /* fixed */ |
| 754 | 754 | ||
| 755 | ret = send_control_msg(pdev, | 755 | ret = send_control_msg(pdev, |
| 756 | SET_LUM_CTL, SHUTTER_MODE_FORMATTER, &buf, sizeof(buf)); | 756 | SET_LUM_CTL, SHUTTER_MODE_FORMATTER, &buf, 1); |
| 757 | 757 | ||
| 758 | if (!mode && ret >= 0) { | 758 | if (!mode && ret >= 0) { |
| 759 | if (value < 0) | 759 | if (value < 0) |
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index 57752751712b..81279b3d694c 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
| @@ -1796,7 +1796,7 @@ mptscsih_abort(struct scsi_cmnd * SCpnt) | |||
| 1796 | dtmprintk(ioc, printk(MYIOC_s_DEBUG_FMT "task abort: " | 1796 | dtmprintk(ioc, printk(MYIOC_s_DEBUG_FMT "task abort: " |
| 1797 | "Command not in the active list! (sc=%p)\n", ioc->name, | 1797 | "Command not in the active list! (sc=%p)\n", ioc->name, |
| 1798 | SCpnt)); | 1798 | SCpnt)); |
| 1799 | retval = 0; | 1799 | retval = SUCCESS; |
| 1800 | goto out; | 1800 | goto out; |
| 1801 | } | 1801 | } |
| 1802 | 1802 | ||
diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index b9f1e84897cc..e7f8027165e6 100644 --- a/drivers/mmc/card/mmc_test.c +++ b/drivers/mmc/card/mmc_test.c | |||
| @@ -74,6 +74,9 @@ static void mmc_test_prepare_mrq(struct mmc_test_card *test, | |||
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | mrq->cmd->arg = dev_addr; | 76 | mrq->cmd->arg = dev_addr; |
| 77 | if (!mmc_card_blockaddr(test->card)) | ||
| 78 | mrq->cmd->arg <<= 9; | ||
| 79 | |||
| 77 | mrq->cmd->flags = MMC_RSP_R1 | MMC_CMD_ADTC; | 80 | mrq->cmd->flags = MMC_RSP_R1 | MMC_CMD_ADTC; |
| 78 | 81 | ||
| 79 | if (blocks == 1) | 82 | if (blocks == 1) |
| @@ -190,7 +193,7 @@ static int __mmc_test_prepare(struct mmc_test_card *test, int write) | |||
| 190 | } | 193 | } |
| 191 | 194 | ||
| 192 | for (i = 0;i < BUFFER_SIZE / 512;i++) { | 195 | for (i = 0;i < BUFFER_SIZE / 512;i++) { |
| 193 | ret = mmc_test_buffer_transfer(test, test->buffer, i * 512, 512, 1); | 196 | ret = mmc_test_buffer_transfer(test, test->buffer, i, 512, 1); |
| 194 | if (ret) | 197 | if (ret) |
| 195 | return ret; | 198 | return ret; |
| 196 | } | 199 | } |
| @@ -219,7 +222,7 @@ static int mmc_test_cleanup(struct mmc_test_card *test) | |||
| 219 | memset(test->buffer, 0, 512); | 222 | memset(test->buffer, 0, 512); |
| 220 | 223 | ||
| 221 | for (i = 0;i < BUFFER_SIZE / 512;i++) { | 224 | for (i = 0;i < BUFFER_SIZE / 512;i++) { |
| 222 | ret = mmc_test_buffer_transfer(test, test->buffer, i * 512, 512, 1); | 225 | ret = mmc_test_buffer_transfer(test, test->buffer, i, 512, 1); |
| 223 | if (ret) | 226 | if (ret) |
| 224 | return ret; | 227 | return ret; |
| 225 | } | 228 | } |
| @@ -426,7 +429,7 @@ static int mmc_test_transfer(struct mmc_test_card *test, | |||
| 426 | for (i = 0;i < sectors;i++) { | 429 | for (i = 0;i < sectors;i++) { |
| 427 | ret = mmc_test_buffer_transfer(test, | 430 | ret = mmc_test_buffer_transfer(test, |
| 428 | test->buffer + i * 512, | 431 | test->buffer + i * 512, |
| 429 | dev_addr + i * 512, 512, 0); | 432 | dev_addr + i, 512, 0); |
| 430 | if (ret) | 433 | if (ret) |
| 431 | return ret; | 434 | return ret; |
| 432 | } | 435 | } |
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index fee6eee7ae5b..006cb2efcd22 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c | |||
| @@ -296,6 +296,7 @@ static void be_cmd_hdr_prepare(struct be_cmd_req_hdr *req_hdr, | |||
| 296 | req_hdr->opcode = opcode; | 296 | req_hdr->opcode = opcode; |
| 297 | req_hdr->subsystem = subsystem; | 297 | req_hdr->subsystem = subsystem; |
| 298 | req_hdr->request_length = cpu_to_le32(cmd_len - sizeof(*req_hdr)); | 298 | req_hdr->request_length = cpu_to_le32(cmd_len - sizeof(*req_hdr)); |
| 299 | req_hdr->version = 0; | ||
| 299 | } | 300 | } |
| 300 | 301 | ||
| 301 | static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages, | 302 | static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages, |
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index d29bb532eccf..765543663a4f 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
| @@ -4006,11 +4006,21 @@ check_page: | |||
| 4006 | } | 4006 | } |
| 4007 | } | 4007 | } |
| 4008 | 4008 | ||
| 4009 | if (!buffer_info->dma) | 4009 | if (!buffer_info->dma) { |
| 4010 | buffer_info->dma = pci_map_page(pdev, | 4010 | buffer_info->dma = pci_map_page(pdev, |
| 4011 | buffer_info->page, 0, | 4011 | buffer_info->page, 0, |
| 4012 | buffer_info->length, | 4012 | buffer_info->length, |
| 4013 | PCI_DMA_FROMDEVICE); | 4013 | PCI_DMA_FROMDEVICE); |
| 4014 | if (pci_dma_mapping_error(pdev, buffer_info->dma)) { | ||
| 4015 | put_page(buffer_info->page); | ||
| 4016 | dev_kfree_skb(skb); | ||
| 4017 | buffer_info->page = NULL; | ||
| 4018 | buffer_info->skb = NULL; | ||
| 4019 | buffer_info->dma = 0; | ||
| 4020 | adapter->alloc_rx_buff_failed++; | ||
| 4021 | break; /* while !buffer_info->skb */ | ||
| 4022 | } | ||
| 4023 | } | ||
| 4014 | 4024 | ||
| 4015 | rx_desc = E1000_RX_DESC(*rx_ring, i); | 4025 | rx_desc = E1000_RX_DESC(*rx_ring, i); |
| 4016 | rx_desc->buffer_addr = cpu_to_le64(buffer_info->dma); | 4026 | rx_desc->buffer_addr = cpu_to_le64(buffer_info->dma); |
| @@ -4101,6 +4111,13 @@ map_skb: | |||
| 4101 | skb->data, | 4111 | skb->data, |
| 4102 | buffer_info->length, | 4112 | buffer_info->length, |
| 4103 | PCI_DMA_FROMDEVICE); | 4113 | PCI_DMA_FROMDEVICE); |
| 4114 | if (pci_dma_mapping_error(pdev, buffer_info->dma)) { | ||
| 4115 | dev_kfree_skb(skb); | ||
| 4116 | buffer_info->skb = NULL; | ||
| 4117 | buffer_info->dma = 0; | ||
| 4118 | adapter->alloc_rx_buff_failed++; | ||
| 4119 | break; /* while !buffer_info->skb */ | ||
| 4120 | } | ||
| 4104 | 4121 | ||
| 4105 | /* | 4122 | /* |
| 4106 | * XXX if it was allocated cleanly it will never map to a | 4123 | * XXX if it was allocated cleanly it will never map to a |
diff --git a/drivers/net/ixgbe/ixgbe_82598.c b/drivers/net/ixgbe/ixgbe_82598.c index 3103f4165311..35a06b47587b 100644 --- a/drivers/net/ixgbe/ixgbe_82598.c +++ b/drivers/net/ixgbe/ixgbe_82598.c | |||
| @@ -357,12 +357,34 @@ static s32 ixgbe_fc_enable_82598(struct ixgbe_hw *hw, s32 packetbuf_num) | |||
| 357 | u32 fctrl_reg; | 357 | u32 fctrl_reg; |
| 358 | u32 rmcs_reg; | 358 | u32 rmcs_reg; |
| 359 | u32 reg; | 359 | u32 reg; |
| 360 | u32 link_speed = 0; | ||
| 361 | bool link_up; | ||
| 360 | 362 | ||
| 361 | #ifdef CONFIG_DCB | 363 | #ifdef CONFIG_DCB |
| 362 | if (hw->fc.requested_mode == ixgbe_fc_pfc) | 364 | if (hw->fc.requested_mode == ixgbe_fc_pfc) |
| 363 | goto out; | 365 | goto out; |
| 364 | 366 | ||
| 365 | #endif /* CONFIG_DCB */ | 367 | #endif /* CONFIG_DCB */ |
| 368 | /* | ||
| 369 | * On 82598 having Rx FC on causes resets while doing 1G | ||
| 370 | * so if it's on turn it off once we know link_speed. For | ||
| 371 | * more details see 82598 Specification update. | ||
| 372 | */ | ||
| 373 | hw->mac.ops.check_link(hw, &link_speed, &link_up, false); | ||
| 374 | if (link_up && link_speed == IXGBE_LINK_SPEED_1GB_FULL) { | ||
| 375 | switch (hw->fc.requested_mode) { | ||
| 376 | case ixgbe_fc_full: | ||
| 377 | hw->fc.requested_mode = ixgbe_fc_tx_pause; | ||
| 378 | break; | ||
| 379 | case ixgbe_fc_rx_pause: | ||
| 380 | hw->fc.requested_mode = ixgbe_fc_none; | ||
| 381 | break; | ||
| 382 | default: | ||
| 383 | /* no change */ | ||
| 384 | break; | ||
| 385 | } | ||
| 386 | } | ||
| 387 | |||
| 366 | /* Negotiate the fc mode to use */ | 388 | /* Negotiate the fc mode to use */ |
| 367 | ret_val = ixgbe_fc_autoneg(hw); | 389 | ret_val = ixgbe_fc_autoneg(hw); |
| 368 | if (ret_val) | 390 | if (ret_val) |
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 7b7c8486c0bf..951b73cf5ca2 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
| @@ -5763,6 +5763,10 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, | |||
| 5763 | if (err) | 5763 | if (err) |
| 5764 | goto err_sw_init; | 5764 | goto err_sw_init; |
| 5765 | 5765 | ||
| 5766 | /* Make it possible the adapter to be woken up via WOL */ | ||
| 5767 | if (adapter->hw.mac.type == ixgbe_mac_82599EB) | ||
| 5768 | IXGBE_WRITE_REG(&adapter->hw, IXGBE_WUS, ~0); | ||
| 5769 | |||
| 5766 | /* | 5770 | /* |
| 5767 | * If there is a fan on this device and it has failed log the | 5771 | * If there is a fan on this device and it has failed log the |
| 5768 | * failure. | 5772 | * failure. |
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 103e8b0e2a0d..46997e177ee3 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
| @@ -2284,6 +2284,7 @@ static int __devinit efx_pci_probe(struct pci_dev *pci_dev, | |||
| 2284 | fail2: | 2284 | fail2: |
| 2285 | efx_fini_struct(efx); | 2285 | efx_fini_struct(efx); |
| 2286 | fail1: | 2286 | fail1: |
| 2287 | WARN_ON(rc > 0); | ||
| 2287 | EFX_LOG(efx, "initialisation failed. rc=%d\n", rc); | 2288 | EFX_LOG(efx, "initialisation failed. rc=%d\n", rc); |
| 2288 | free_netdev(net_dev); | 2289 | free_netdev(net_dev); |
| 2289 | return rc; | 2290 | return rc; |
diff --git a/drivers/net/sfc/falcon_boards.c b/drivers/net/sfc/falcon_boards.c index bf0b96af5334..5712fddd72f2 100644 --- a/drivers/net/sfc/falcon_boards.c +++ b/drivers/net/sfc/falcon_boards.c | |||
| @@ -29,6 +29,15 @@ | |||
| 29 | #define FALCON_BOARD_SFN4111T 0x51 | 29 | #define FALCON_BOARD_SFN4111T 0x51 |
| 30 | #define FALCON_BOARD_SFN4112F 0x52 | 30 | #define FALCON_BOARD_SFN4112F 0x52 |
| 31 | 31 | ||
| 32 | /* Board temperature is about 15°C above ambient when air flow is | ||
| 33 | * limited. */ | ||
| 34 | #define FALCON_BOARD_TEMP_BIAS 15 | ||
| 35 | |||
| 36 | /* SFC4000 datasheet says: 'The maximum permitted junction temperature | ||
| 37 | * is 125°C; the thermal design of the environment for the SFC4000 | ||
| 38 | * should aim to keep this well below 100°C.' */ | ||
| 39 | #define FALCON_JUNC_TEMP_MAX 90 | ||
| 40 | |||
| 32 | /***************************************************************************** | 41 | /***************************************************************************** |
| 33 | * Support for LM87 sensor chip used on several boards | 42 | * Support for LM87 sensor chip used on several boards |
| 34 | */ | 43 | */ |
| @@ -548,16 +557,16 @@ fail_hwmon: | |||
| 548 | static u8 sfe4002_lm87_channel = 0x03; /* use AIN not FAN inputs */ | 557 | static u8 sfe4002_lm87_channel = 0x03; /* use AIN not FAN inputs */ |
| 549 | 558 | ||
| 550 | static const u8 sfe4002_lm87_regs[] = { | 559 | static const u8 sfe4002_lm87_regs[] = { |
| 551 | LM87_IN_LIMITS(0, 0x83, 0x91), /* 2.5V: 1.8V +/- 5% */ | 560 | LM87_IN_LIMITS(0, 0x7c, 0x99), /* 2.5V: 1.8V +/- 10% */ |
| 552 | LM87_IN_LIMITS(1, 0x51, 0x5a), /* Vccp1: 1.2V +/- 5% */ | 561 | LM87_IN_LIMITS(1, 0x4c, 0x5e), /* Vccp1: 1.2V +/- 10% */ |
| 553 | LM87_IN_LIMITS(2, 0xb6, 0xca), /* 3.3V: 3.3V +/- 5% */ | 562 | LM87_IN_LIMITS(2, 0xac, 0xd4), /* 3.3V: 3.3V +/- 10% */ |
| 554 | LM87_IN_LIMITS(3, 0xb0, 0xc9), /* 5V: 4.6-5.2V */ | 563 | LM87_IN_LIMITS(3, 0xac, 0xd4), /* 5V: 5.0V +/- 10% */ |
| 555 | LM87_IN_LIMITS(4, 0xb0, 0xe0), /* 12V: 11-14V */ | 564 | LM87_IN_LIMITS(4, 0xac, 0xe0), /* 12V: 10.8-14V */ |
| 556 | LM87_IN_LIMITS(5, 0x44, 0x4b), /* Vccp2: 1.0V +/- 5% */ | 565 | LM87_IN_LIMITS(5, 0x3f, 0x4f), /* Vccp2: 1.0V +/- 10% */ |
| 557 | LM87_AIN_LIMITS(0, 0xa0, 0xb2), /* AIN1: 1.66V +/- 5% */ | 566 | LM87_AIN_LIMITS(0, 0x98, 0xbb), /* AIN1: 1.66V +/- 10% */ |
| 558 | LM87_AIN_LIMITS(1, 0x91, 0xa1), /* AIN2: 1.5V +/- 5% */ | 567 | LM87_AIN_LIMITS(1, 0x8a, 0xa9), /* AIN2: 1.5V +/- 10% */ |
| 559 | LM87_TEMP_INT_LIMITS(10, 60), /* board */ | 568 | LM87_TEMP_INT_LIMITS(0, 80 + FALCON_BOARD_TEMP_BIAS), |
| 560 | LM87_TEMP_EXT1_LIMITS(10, 70), /* Falcon */ | 569 | LM87_TEMP_EXT1_LIMITS(0, FALCON_JUNC_TEMP_MAX), |
| 561 | 0 | 570 | 0 |
| 562 | }; | 571 | }; |
| 563 | 572 | ||
| @@ -619,14 +628,14 @@ static int sfe4002_init(struct efx_nic *efx) | |||
| 619 | static u8 sfn4112f_lm87_channel = 0x03; /* use AIN not FAN inputs */ | 628 | static u8 sfn4112f_lm87_channel = 0x03; /* use AIN not FAN inputs */ |
| 620 | 629 | ||
| 621 | static const u8 sfn4112f_lm87_regs[] = { | 630 | static const u8 sfn4112f_lm87_regs[] = { |
| 622 | LM87_IN_LIMITS(0, 0x83, 0x91), /* 2.5V: 1.8V +/- 5% */ | 631 | LM87_IN_LIMITS(0, 0x7c, 0x99), /* 2.5V: 1.8V +/- 10% */ |
| 623 | LM87_IN_LIMITS(1, 0x51, 0x5a), /* Vccp1: 1.2V +/- 5% */ | 632 | LM87_IN_LIMITS(1, 0x4c, 0x5e), /* Vccp1: 1.2V +/- 10% */ |
| 624 | LM87_IN_LIMITS(2, 0xb6, 0xca), /* 3.3V: 3.3V +/- 5% */ | 633 | LM87_IN_LIMITS(2, 0xac, 0xd4), /* 3.3V: 3.3V +/- 10% */ |
| 625 | LM87_IN_LIMITS(4, 0xb0, 0xe0), /* 12V: 11-14V */ | 634 | LM87_IN_LIMITS(4, 0xac, 0xe0), /* 12V: 10.8-14V */ |
| 626 | LM87_IN_LIMITS(5, 0x44, 0x4b), /* Vccp2: 1.0V +/- 5% */ | 635 | LM87_IN_LIMITS(5, 0x3f, 0x4f), /* Vccp2: 1.0V +/- 10% */ |
| 627 | LM87_AIN_LIMITS(1, 0x91, 0xa1), /* AIN2: 1.5V +/- 5% */ | 636 | LM87_AIN_LIMITS(1, 0x8a, 0xa9), /* AIN2: 1.5V +/- 10% */ |
| 628 | LM87_TEMP_INT_LIMITS(10, 60), /* board */ | 637 | LM87_TEMP_INT_LIMITS(0, 60 + FALCON_BOARD_TEMP_BIAS), |
| 629 | LM87_TEMP_EXT1_LIMITS(10, 70), /* Falcon */ | 638 | LM87_TEMP_EXT1_LIMITS(0, FALCON_JUNC_TEMP_MAX), |
| 630 | 0 | 639 | 0 |
| 631 | }; | 640 | }; |
| 632 | 641 | ||
diff --git a/drivers/net/sfc/mcdi.c b/drivers/net/sfc/mcdi.c index 9f035b9f0350..f66b3da6ddff 100644 --- a/drivers/net/sfc/mcdi.c +++ b/drivers/net/sfc/mcdi.c | |||
| @@ -127,7 +127,7 @@ static int efx_mcdi_poll(struct efx_nic *efx) | |||
| 127 | efx_dword_t reg; | 127 | efx_dword_t reg; |
| 128 | 128 | ||
| 129 | /* Check for a reboot atomically with respect to efx_mcdi_copyout() */ | 129 | /* Check for a reboot atomically with respect to efx_mcdi_copyout() */ |
| 130 | rc = efx_mcdi_poll_reboot(efx); | 130 | rc = -efx_mcdi_poll_reboot(efx); |
| 131 | if (rc) | 131 | if (rc) |
| 132 | goto out; | 132 | goto out; |
| 133 | 133 | ||
diff --git a/drivers/net/sfc/qt202x_phy.c b/drivers/net/sfc/qt202x_phy.c index e0d13a451019..67eec7a6e487 100644 --- a/drivers/net/sfc/qt202x_phy.c +++ b/drivers/net/sfc/qt202x_phy.c | |||
| @@ -320,7 +320,7 @@ static int qt202x_reset_phy(struct efx_nic *efx) | |||
| 320 | 320 | ||
| 321 | falcon_board(efx)->type->init_phy(efx); | 321 | falcon_board(efx)->type->init_phy(efx); |
| 322 | 322 | ||
| 323 | return rc; | 323 | return 0; |
| 324 | 324 | ||
| 325 | fail: | 325 | fail: |
| 326 | EFX_ERR(efx, "PHY reset timed out\n"); | 326 | EFX_ERR(efx, "PHY reset timed out\n"); |
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index 75a669d48e5e..d71c1976072e 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c | |||
| @@ -1437,7 +1437,6 @@ static int tc35815_do_interrupt(struct net_device *dev, u32 status, int limit) | |||
| 1437 | /* Transmit complete. */ | 1437 | /* Transmit complete. */ |
| 1438 | lp->lstats.tx_ints++; | 1438 | lp->lstats.tx_ints++; |
| 1439 | tc35815_txdone(dev); | 1439 | tc35815_txdone(dev); |
| 1440 | netif_wake_queue(dev); | ||
| 1441 | if (ret < 0) | 1440 | if (ret < 0) |
| 1442 | ret = 0; | 1441 | ret = 0; |
| 1443 | } | 1442 | } |
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index 4f27f022fbf7..5f3b9eaeb04f 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c | |||
| @@ -584,6 +584,11 @@ static const struct usb_device_id products [] = { | |||
| 584 | USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), | 584 | USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), |
| 585 | .driver_info = (unsigned long) &mbm_info, | 585 | .driver_info = (unsigned long) &mbm_info, |
| 586 | }, { | 586 | }, { |
| 587 | /* Ericsson C3607w ver 2 */ | ||
| 588 | USB_DEVICE_AND_INTERFACE_INFO(0x0bdb, 0x190b, USB_CLASS_COMM, | ||
| 589 | USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), | ||
| 590 | .driver_info = (unsigned long) &mbm_info, | ||
| 591 | }, { | ||
| 587 | /* Toshiba F3507g */ | 592 | /* Toshiba F3507g */ |
| 588 | USB_DEVICE_AND_INTERFACE_INFO(0x0930, 0x130b, USB_CLASS_COMM, | 593 | USB_DEVICE_AND_INTERFACE_INFO(0x0930, 0x130b, USB_CLASS_COMM, |
| 589 | USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), | 594 | USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), |
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index c93f58f5c6f2..317aa34b21cf 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c | |||
| @@ -1877,13 +1877,12 @@ static void velocity_error(struct velocity_info *vptr, int status) | |||
| 1877 | /** | 1877 | /** |
| 1878 | * tx_srv - transmit interrupt service | 1878 | * tx_srv - transmit interrupt service |
| 1879 | * @vptr; Velocity | 1879 | * @vptr; Velocity |
| 1880 | * @status: | ||
| 1881 | * | 1880 | * |
| 1882 | * Scan the queues looking for transmitted packets that | 1881 | * Scan the queues looking for transmitted packets that |
| 1883 | * we can complete and clean up. Update any statistics as | 1882 | * we can complete and clean up. Update any statistics as |
| 1884 | * necessary/ | 1883 | * necessary/ |
| 1885 | */ | 1884 | */ |
| 1886 | static int velocity_tx_srv(struct velocity_info *vptr, u32 status) | 1885 | static int velocity_tx_srv(struct velocity_info *vptr) |
| 1887 | { | 1886 | { |
| 1888 | struct tx_desc *td; | 1887 | struct tx_desc *td; |
| 1889 | int qnum; | 1888 | int qnum; |
| @@ -2090,14 +2089,12 @@ static int velocity_receive_frame(struct velocity_info *vptr, int idx) | |||
| 2090 | /** | 2089 | /** |
| 2091 | * velocity_rx_srv - service RX interrupt | 2090 | * velocity_rx_srv - service RX interrupt |
| 2092 | * @vptr: velocity | 2091 | * @vptr: velocity |
| 2093 | * @status: adapter status (unused) | ||
| 2094 | * | 2092 | * |
| 2095 | * Walk the receive ring of the velocity adapter and remove | 2093 | * Walk the receive ring of the velocity adapter and remove |
| 2096 | * any received packets from the receive queue. Hand the ring | 2094 | * any received packets from the receive queue. Hand the ring |
| 2097 | * slots back to the adapter for reuse. | 2095 | * slots back to the adapter for reuse. |
| 2098 | */ | 2096 | */ |
| 2099 | static int velocity_rx_srv(struct velocity_info *vptr, int status, | 2097 | static int velocity_rx_srv(struct velocity_info *vptr, int budget_left) |
| 2100 | int budget_left) | ||
| 2101 | { | 2098 | { |
| 2102 | struct net_device_stats *stats = &vptr->dev->stats; | 2099 | struct net_device_stats *stats = &vptr->dev->stats; |
| 2103 | int rd_curr = vptr->rx.curr; | 2100 | int rd_curr = vptr->rx.curr; |
| @@ -2151,32 +2148,24 @@ static int velocity_poll(struct napi_struct *napi, int budget) | |||
| 2151 | struct velocity_info *vptr = container_of(napi, | 2148 | struct velocity_info *vptr = container_of(napi, |
| 2152 | struct velocity_info, napi); | 2149 | struct velocity_info, napi); |
| 2153 | unsigned int rx_done; | 2150 | unsigned int rx_done; |
| 2154 | u32 isr_status; | 2151 | unsigned long flags; |
| 2155 | |||
| 2156 | spin_lock(&vptr->lock); | ||
| 2157 | isr_status = mac_read_isr(vptr->mac_regs); | ||
| 2158 | |||
| 2159 | /* Ack the interrupt */ | ||
| 2160 | mac_write_isr(vptr->mac_regs, isr_status); | ||
| 2161 | if (isr_status & (~(ISR_PRXI | ISR_PPRXI | ISR_PTXI | ISR_PPTXI))) | ||
| 2162 | velocity_error(vptr, isr_status); | ||
| 2163 | 2152 | ||
| 2153 | spin_lock_irqsave(&vptr->lock, flags); | ||
| 2164 | /* | 2154 | /* |
| 2165 | * Do rx and tx twice for performance (taken from the VIA | 2155 | * Do rx and tx twice for performance (taken from the VIA |
| 2166 | * out-of-tree driver). | 2156 | * out-of-tree driver). |
| 2167 | */ | 2157 | */ |
| 2168 | rx_done = velocity_rx_srv(vptr, isr_status, budget / 2); | 2158 | rx_done = velocity_rx_srv(vptr, budget / 2); |
| 2169 | velocity_tx_srv(vptr, isr_status); | 2159 | velocity_tx_srv(vptr); |
| 2170 | rx_done += velocity_rx_srv(vptr, isr_status, budget - rx_done); | 2160 | rx_done += velocity_rx_srv(vptr, budget - rx_done); |
| 2171 | velocity_tx_srv(vptr, isr_status); | 2161 | velocity_tx_srv(vptr); |
| 2172 | |||
| 2173 | spin_unlock(&vptr->lock); | ||
| 2174 | 2162 | ||
| 2175 | /* If budget not fully consumed, exit the polling mode */ | 2163 | /* If budget not fully consumed, exit the polling mode */ |
| 2176 | if (rx_done < budget) { | 2164 | if (rx_done < budget) { |
| 2177 | napi_complete(napi); | 2165 | napi_complete(napi); |
| 2178 | mac_enable_int(vptr->mac_regs); | 2166 | mac_enable_int(vptr->mac_regs); |
| 2179 | } | 2167 | } |
| 2168 | spin_unlock_irqrestore(&vptr->lock, flags); | ||
| 2180 | 2169 | ||
| 2181 | return rx_done; | 2170 | return rx_done; |
| 2182 | } | 2171 | } |
| @@ -2206,10 +2195,17 @@ static irqreturn_t velocity_intr(int irq, void *dev_instance) | |||
| 2206 | return IRQ_NONE; | 2195 | return IRQ_NONE; |
| 2207 | } | 2196 | } |
| 2208 | 2197 | ||
| 2198 | /* Ack the interrupt */ | ||
| 2199 | mac_write_isr(vptr->mac_regs, isr_status); | ||
| 2200 | |||
| 2209 | if (likely(napi_schedule_prep(&vptr->napi))) { | 2201 | if (likely(napi_schedule_prep(&vptr->napi))) { |
| 2210 | mac_disable_int(vptr->mac_regs); | 2202 | mac_disable_int(vptr->mac_regs); |
| 2211 | __napi_schedule(&vptr->napi); | 2203 | __napi_schedule(&vptr->napi); |
| 2212 | } | 2204 | } |
| 2205 | |||
| 2206 | if (isr_status & (~(ISR_PRXI | ISR_PPRXI | ISR_PTXI | ISR_PPTXI))) | ||
| 2207 | velocity_error(vptr, isr_status); | ||
| 2208 | |||
| 2213 | spin_unlock(&vptr->lock); | 2209 | spin_unlock(&vptr->lock); |
| 2214 | 2210 | ||
| 2215 | return IRQ_HANDLED; | 2211 | return IRQ_HANDLED; |
| @@ -3100,7 +3096,7 @@ static int velocity_resume(struct pci_dev *pdev) | |||
| 3100 | velocity_init_registers(vptr, VELOCITY_INIT_WOL); | 3096 | velocity_init_registers(vptr, VELOCITY_INIT_WOL); |
| 3101 | mac_disable_int(vptr->mac_regs); | 3097 | mac_disable_int(vptr->mac_regs); |
| 3102 | 3098 | ||
| 3103 | velocity_tx_srv(vptr, 0); | 3099 | velocity_tx_srv(vptr); |
| 3104 | 3100 | ||
| 3105 | for (i = 0; i < vptr->tx.numq; i++) { | 3101 | for (i = 0; i < vptr->tx.numq; i++) { |
| 3106 | if (vptr->tx.used[i]) | 3102 | if (vptr->tx.used[i]) |
| @@ -3344,6 +3340,7 @@ static int velocity_set_coalesce(struct net_device *dev, | |||
| 3344 | { | 3340 | { |
| 3345 | struct velocity_info *vptr = netdev_priv(dev); | 3341 | struct velocity_info *vptr = netdev_priv(dev); |
| 3346 | int max_us = 0x3f * 64; | 3342 | int max_us = 0x3f * 64; |
| 3343 | unsigned long flags; | ||
| 3347 | 3344 | ||
| 3348 | /* 6 bits of */ | 3345 | /* 6 bits of */ |
| 3349 | if (ecmd->tx_coalesce_usecs > max_us) | 3346 | if (ecmd->tx_coalesce_usecs > max_us) |
| @@ -3365,6 +3362,7 @@ static int velocity_set_coalesce(struct net_device *dev, | |||
| 3365 | ecmd->tx_coalesce_usecs); | 3362 | ecmd->tx_coalesce_usecs); |
| 3366 | 3363 | ||
| 3367 | /* Setup the interrupt suppression and queue timers */ | 3364 | /* Setup the interrupt suppression and queue timers */ |
| 3365 | spin_lock_irqsave(&vptr->lock, flags); | ||
| 3368 | mac_disable_int(vptr->mac_regs); | 3366 | mac_disable_int(vptr->mac_regs); |
| 3369 | setup_adaptive_interrupts(vptr); | 3367 | setup_adaptive_interrupts(vptr); |
| 3370 | setup_queue_timers(vptr); | 3368 | setup_queue_timers(vptr); |
| @@ -3372,6 +3370,7 @@ static int velocity_set_coalesce(struct net_device *dev, | |||
| 3372 | mac_write_int_mask(vptr->int_mask, vptr->mac_regs); | 3370 | mac_write_int_mask(vptr->int_mask, vptr->mac_regs); |
| 3373 | mac_clear_isr(vptr->mac_regs); | 3371 | mac_clear_isr(vptr->mac_regs); |
| 3374 | mac_enable_int(vptr->mac_regs); | 3372 | mac_enable_int(vptr->mac_regs); |
| 3373 | spin_unlock_irqrestore(&vptr->lock, flags); | ||
| 3375 | 3374 | ||
| 3376 | return 0; | 3375 | return 0; |
| 3377 | } | 3376 | } |
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index fa12b9060b0b..29bf33692f71 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
| @@ -1615,7 +1615,7 @@ static int ath_tx_setup_buffer(struct ieee80211_hw *hw, struct ath_buf *bf, | |||
| 1615 | bf->bf_frmlen -= padsize; | 1615 | bf->bf_frmlen -= padsize; |
| 1616 | } | 1616 | } |
| 1617 | 1617 | ||
| 1618 | if (conf_is_ht(&hw->conf) && !is_pae(skb)) | 1618 | if (conf_is_ht(&hw->conf)) |
| 1619 | bf->bf_state.bf_type |= BUF_HT; | 1619 | bf->bf_state.bf_type |= BUF_HT; |
| 1620 | 1620 | ||
| 1621 | bf->bf_flags = setup_tx_flags(sc, skb, txctl->txq); | 1621 | bf->bf_flags = setup_tx_flags(sc, skb, txctl->txq); |
| @@ -1701,7 +1701,7 @@ static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf, | |||
| 1701 | goto tx_done; | 1701 | goto tx_done; |
| 1702 | } | 1702 | } |
| 1703 | 1703 | ||
| 1704 | if (tx_info->flags & IEEE80211_TX_CTL_AMPDU) { | 1704 | if ((tx_info->flags & IEEE80211_TX_CTL_AMPDU) && !is_pae(skb)) { |
| 1705 | /* | 1705 | /* |
| 1706 | * Try aggregation if it's a unicast data frame | 1706 | * Try aggregation if it's a unicast data frame |
| 1707 | * and the destination is HT capable. | 1707 | * and the destination is HT capable. |
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index fe3bf9491997..c484cc253892 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h | |||
| @@ -115,6 +115,7 @@ | |||
| 115 | #define B43_MMIO_TSF_2 0x636 /* core rev < 3 only */ | 115 | #define B43_MMIO_TSF_2 0x636 /* core rev < 3 only */ |
| 116 | #define B43_MMIO_TSF_3 0x638 /* core rev < 3 only */ | 116 | #define B43_MMIO_TSF_3 0x638 /* core rev < 3 only */ |
| 117 | #define B43_MMIO_RNG 0x65A | 117 | #define B43_MMIO_RNG 0x65A |
| 118 | #define B43_MMIO_IFSSLOT 0x684 /* Interframe slot time */ | ||
| 118 | #define B43_MMIO_IFSCTL 0x688 /* Interframe space control */ | 119 | #define B43_MMIO_IFSCTL 0x688 /* Interframe space control */ |
| 119 | #define B43_MMIO_IFSCTL_USE_EDCF 0x0004 | 120 | #define B43_MMIO_IFSCTL_USE_EDCF 0x0004 |
| 120 | #define B43_MMIO_POWERUP_DELAY 0x6A8 | 121 | #define B43_MMIO_POWERUP_DELAY 0x6A8 |
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 4c41cfe44f26..490fb45d1d05 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
| @@ -628,10 +628,17 @@ static void b43_upload_card_macaddress(struct b43_wldev *dev) | |||
| 628 | static void b43_set_slot_time(struct b43_wldev *dev, u16 slot_time) | 628 | static void b43_set_slot_time(struct b43_wldev *dev, u16 slot_time) |
| 629 | { | 629 | { |
| 630 | /* slot_time is in usec. */ | 630 | /* slot_time is in usec. */ |
| 631 | if (dev->phy.type != B43_PHYTYPE_G) | 631 | /* This test used to exit for all but a G PHY. */ |
| 632 | if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) | ||
| 632 | return; | 633 | return; |
| 633 | b43_write16(dev, 0x684, 510 + slot_time); | 634 | b43_write16(dev, B43_MMIO_IFSSLOT, 510 + slot_time); |
| 634 | b43_shm_write16(dev, B43_SHM_SHARED, 0x0010, slot_time); | 635 | /* Shared memory location 0x0010 is the slot time and should be |
| 636 | * set to slot_time; however, this register is initially 0 and changing | ||
| 637 | * the value adversely affects the transmit rate for BCM4311 | ||
| 638 | * devices. Until this behavior is unterstood, delete this step | ||
| 639 | * | ||
| 640 | * b43_shm_write16(dev, B43_SHM_SHARED, 0x0010, slot_time); | ||
| 641 | */ | ||
| 635 | } | 642 | } |
| 636 | 643 | ||
| 637 | static void b43_short_slot_timing_enable(struct b43_wldev *dev) | 644 | static void b43_short_slot_timing_enable(struct b43_wldev *dev) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 9b4b8b5c7574..31462813bac0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
| @@ -2008,7 +2008,7 @@ static void iwl4965_rx_reply_tx(struct iwl_priv *priv, | |||
| 2008 | IWL_DEBUG_TX_REPLY(priv, "Retry scheduler reclaim scd_ssn " | 2008 | IWL_DEBUG_TX_REPLY(priv, "Retry scheduler reclaim scd_ssn " |
| 2009 | "%d index %d\n", scd_ssn , index); | 2009 | "%d index %d\n", scd_ssn , index); |
| 2010 | freed = iwl_tx_queue_reclaim(priv, txq_id, index); | 2010 | freed = iwl_tx_queue_reclaim(priv, txq_id, index); |
| 2011 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; | 2011 | iwl_free_tfds_in_queue(priv, sta_id, tid, freed); |
| 2012 | 2012 | ||
| 2013 | if (priv->mac80211_registered && | 2013 | if (priv->mac80211_registered && |
| 2014 | (iwl_queue_space(&txq->q) > txq->q.low_mark) && | 2014 | (iwl_queue_space(&txq->q) > txq->q.low_mark) && |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index de45f308b744..cffaae772d51 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
| @@ -1125,7 +1125,7 @@ static void iwl5000_rx_reply_tx(struct iwl_priv *priv, | |||
| 1125 | scd_ssn , index, txq_id, txq->swq_id); | 1125 | scd_ssn , index, txq_id, txq->swq_id); |
| 1126 | 1126 | ||
| 1127 | freed = iwl_tx_queue_reclaim(priv, txq_id, index); | 1127 | freed = iwl_tx_queue_reclaim(priv, txq_id, index); |
| 1128 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; | 1128 | iwl_free_tfds_in_queue(priv, sta_id, tid, freed); |
| 1129 | 1129 | ||
| 1130 | if (priv->mac80211_registered && | 1130 | if (priv->mac80211_registered && |
| 1131 | (iwl_queue_space(&txq->q) > txq->q.low_mark) && | 1131 | (iwl_queue_space(&txq->q) > txq->q.low_mark) && |
| @@ -1153,16 +1153,14 @@ static void iwl5000_rx_reply_tx(struct iwl_priv *priv, | |||
| 1153 | tx_resp->failure_frame); | 1153 | tx_resp->failure_frame); |
| 1154 | 1154 | ||
| 1155 | freed = iwl_tx_queue_reclaim(priv, txq_id, index); | 1155 | freed = iwl_tx_queue_reclaim(priv, txq_id, index); |
| 1156 | if (ieee80211_is_data_qos(tx_resp->frame_ctrl)) | 1156 | iwl_free_tfds_in_queue(priv, sta_id, tid, freed); |
| 1157 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; | ||
| 1158 | 1157 | ||
| 1159 | if (priv->mac80211_registered && | 1158 | if (priv->mac80211_registered && |
| 1160 | (iwl_queue_space(&txq->q) > txq->q.low_mark)) | 1159 | (iwl_queue_space(&txq->q) > txq->q.low_mark)) |
| 1161 | iwl_wake_queue(priv, txq_id); | 1160 | iwl_wake_queue(priv, txq_id); |
| 1162 | } | 1161 | } |
| 1163 | 1162 | ||
| 1164 | if (ieee80211_is_data_qos(tx_resp->frame_ctrl)) | 1163 | iwl_txq_check_empty(priv, sta_id, tid, txq_id); |
| 1165 | iwl_txq_check_empty(priv, sta_id, tid, txq_id); | ||
| 1166 | 1164 | ||
| 1167 | if (iwl_check_bits(status, TX_ABORT_REQUIRED_MSK)) | 1165 | if (iwl_check_bits(status, TX_ABORT_REQUIRED_MSK)) |
| 1168 | IWL_ERR(priv, "TODO: Implement Tx ABORT REQUIRED!!!\n"); | 1166 | IWL_ERR(priv, "TODO: Implement Tx ABORT REQUIRED!!!\n"); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 5461f105bd2d..f36f804804fc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
| @@ -2745,6 +2745,7 @@ int iwl_mac_config(struct ieee80211_hw *hw, u32 changed) | |||
| 2745 | priv->staging_rxon.flags = 0; | 2745 | priv->staging_rxon.flags = 0; |
| 2746 | 2746 | ||
| 2747 | iwl_set_rxon_channel(priv, conf->channel); | 2747 | iwl_set_rxon_channel(priv, conf->channel); |
| 2748 | iwl_set_rxon_ht(priv, ht_conf); | ||
| 2748 | 2749 | ||
| 2749 | iwl_set_flags_for_band(priv, conf->channel->band); | 2750 | iwl_set_flags_for_band(priv, conf->channel->band); |
| 2750 | spin_unlock_irqrestore(&priv->lock, flags); | 2751 | spin_unlock_irqrestore(&priv->lock, flags); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 27ca859e7453..b69e972671b2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
| @@ -446,6 +446,8 @@ void iwl_hw_txq_ctx_free(struct iwl_priv *priv); | |||
| 446 | int iwl_hw_tx_queue_init(struct iwl_priv *priv, | 446 | int iwl_hw_tx_queue_init(struct iwl_priv *priv, |
| 447 | struct iwl_tx_queue *txq); | 447 | struct iwl_tx_queue *txq); |
| 448 | int iwl_txq_update_write_ptr(struct iwl_priv *priv, struct iwl_tx_queue *txq); | 448 | int iwl_txq_update_write_ptr(struct iwl_priv *priv, struct iwl_tx_queue *txq); |
| 449 | void iwl_free_tfds_in_queue(struct iwl_priv *priv, | ||
| 450 | int sta_id, int tid, int freed); | ||
| 449 | int iwl_tx_queue_init(struct iwl_priv *priv, struct iwl_tx_queue *txq, | 451 | int iwl_tx_queue_init(struct iwl_priv *priv, struct iwl_tx_queue *txq, |
| 450 | int slots_num, u32 txq_id); | 452 | int slots_num, u32 txq_id); |
| 451 | void iwl_tx_queue_free(struct iwl_priv *priv, int txq_id); | 453 | void iwl_tx_queue_free(struct iwl_priv *priv, int txq_id); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index 6f36b6e79f5e..2dbce85404aa 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
| @@ -928,7 +928,10 @@ static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv, | |||
| 928 | if (ieee80211_is_mgmt(fc) || | 928 | if (ieee80211_is_mgmt(fc) || |
| 929 | ieee80211_has_protected(fc) || | 929 | ieee80211_has_protected(fc) || |
| 930 | ieee80211_has_morefrags(fc) || | 930 | ieee80211_has_morefrags(fc) || |
| 931 | le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG) | 931 | le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG || |
| 932 | (ieee80211_is_data_qos(fc) && | ||
| 933 | *ieee80211_get_qos_ctl(hdr) & | ||
| 934 | IEEE80211_QOS_CONTROL_A_MSDU_PRESENT)) | ||
| 932 | ret = skb_linearize(skb); | 935 | ret = skb_linearize(skb); |
| 933 | else | 936 | else |
| 934 | ret = __pskb_pull_tail(skb, min_t(u16, IWL_LINK_HDR_MAX, len)) ? | 937 | ret = __pskb_pull_tail(skb, min_t(u16, IWL_LINK_HDR_MAX, len)) ? |
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 87ce2bd292c7..8f4071562857 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
| @@ -120,6 +120,20 @@ int iwl_txq_update_write_ptr(struct iwl_priv *priv, struct iwl_tx_queue *txq) | |||
| 120 | EXPORT_SYMBOL(iwl_txq_update_write_ptr); | 120 | EXPORT_SYMBOL(iwl_txq_update_write_ptr); |
| 121 | 121 | ||
| 122 | 122 | ||
| 123 | void iwl_free_tfds_in_queue(struct iwl_priv *priv, | ||
| 124 | int sta_id, int tid, int freed) | ||
| 125 | { | ||
| 126 | if (priv->stations[sta_id].tid[tid].tfds_in_queue >= freed) | ||
| 127 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; | ||
| 128 | else { | ||
| 129 | IWL_ERR(priv, "free more than tfds_in_queue (%u:%d)\n", | ||
| 130 | priv->stations[sta_id].tid[tid].tfds_in_queue, | ||
| 131 | freed); | ||
| 132 | priv->stations[sta_id].tid[tid].tfds_in_queue = 0; | ||
| 133 | } | ||
| 134 | } | ||
| 135 | EXPORT_SYMBOL(iwl_free_tfds_in_queue); | ||
| 136 | |||
| 123 | /** | 137 | /** |
| 124 | * iwl_tx_queue_free - Deallocate DMA queue. | 138 | * iwl_tx_queue_free - Deallocate DMA queue. |
| 125 | * @txq: Transmit queue to deallocate. | 139 | * @txq: Transmit queue to deallocate. |
| @@ -1131,6 +1145,7 @@ int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index) | |||
| 1131 | struct iwl_queue *q = &txq->q; | 1145 | struct iwl_queue *q = &txq->q; |
| 1132 | struct iwl_tx_info *tx_info; | 1146 | struct iwl_tx_info *tx_info; |
| 1133 | int nfreed = 0; | 1147 | int nfreed = 0; |
| 1148 | struct ieee80211_hdr *hdr; | ||
| 1134 | 1149 | ||
| 1135 | if ((index >= q->n_bd) || (iwl_queue_used(q, index) == 0)) { | 1150 | if ((index >= q->n_bd) || (iwl_queue_used(q, index) == 0)) { |
| 1136 | IWL_ERR(priv, "Read index for DMA queue txq id (%d), index %d, " | 1151 | IWL_ERR(priv, "Read index for DMA queue txq id (%d), index %d, " |
| @@ -1145,13 +1160,16 @@ int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index) | |||
| 1145 | 1160 | ||
| 1146 | tx_info = &txq->txb[txq->q.read_ptr]; | 1161 | tx_info = &txq->txb[txq->q.read_ptr]; |
| 1147 | iwl_tx_status(priv, tx_info->skb[0]); | 1162 | iwl_tx_status(priv, tx_info->skb[0]); |
| 1163 | |||
| 1164 | hdr = (struct ieee80211_hdr *)tx_info->skb[0]->data; | ||
| 1165 | if (hdr && ieee80211_is_data_qos(hdr->frame_control)) | ||
| 1166 | nfreed++; | ||
| 1148 | tx_info->skb[0] = NULL; | 1167 | tx_info->skb[0] = NULL; |
| 1149 | 1168 | ||
| 1150 | if (priv->cfg->ops->lib->txq_inval_byte_cnt_tbl) | 1169 | if (priv->cfg->ops->lib->txq_inval_byte_cnt_tbl) |
| 1151 | priv->cfg->ops->lib->txq_inval_byte_cnt_tbl(priv, txq); | 1170 | priv->cfg->ops->lib->txq_inval_byte_cnt_tbl(priv, txq); |
| 1152 | 1171 | ||
| 1153 | priv->cfg->ops->lib->txq_free_tfd(priv, txq); | 1172 | priv->cfg->ops->lib->txq_free_tfd(priv, txq); |
| 1154 | nfreed++; | ||
| 1155 | } | 1173 | } |
| 1156 | return nfreed; | 1174 | return nfreed; |
| 1157 | } | 1175 | } |
| @@ -1559,7 +1577,7 @@ void iwl_rx_reply_compressed_ba(struct iwl_priv *priv, | |||
| 1559 | if (txq->q.read_ptr != (ba_resp_scd_ssn & 0xff)) { | 1577 | if (txq->q.read_ptr != (ba_resp_scd_ssn & 0xff)) { |
| 1560 | /* calculate mac80211 ampdu sw queue to wake */ | 1578 | /* calculate mac80211 ampdu sw queue to wake */ |
| 1561 | int freed = iwl_tx_queue_reclaim(priv, scd_flow, index); | 1579 | int freed = iwl_tx_queue_reclaim(priv, scd_flow, index); |
| 1562 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; | 1580 | iwl_free_tfds_in_queue(priv, sta_id, tid, freed); |
| 1563 | 1581 | ||
| 1564 | if ((iwl_queue_space(&txq->q) > txq->q.low_mark) && | 1582 | if ((iwl_queue_space(&txq->q) > txq->q.low_mark) && |
| 1565 | priv->mac80211_registered && | 1583 | priv->mac80211_registered && |
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index 6d6ed7485175..f727b4a83196 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c | |||
| @@ -794,7 +794,7 @@ static int iwm_mlme_update_bss_table(struct iwm_priv *iwm, u8 *buf, | |||
| 794 | } | 794 | } |
| 795 | 795 | ||
| 796 | bss->bss = kzalloc(bss_len, GFP_KERNEL); | 796 | bss->bss = kzalloc(bss_len, GFP_KERNEL); |
| 797 | if (!bss) { | 797 | if (!bss->bss) { |
| 798 | kfree(bss); | 798 | kfree(bss); |
| 799 | IWM_ERR(iwm, "Couldn't allocate bss\n"); | 799 | IWM_ERR(iwm, "Couldn't allocate bss\n"); |
| 800 | return -ENOMEM; | 800 | return -ENOMEM; |
diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c b/drivers/net/wireless/rtl818x/rtl8187_dev.c index bc5726dd5fe4..7ba3052b0708 100644 --- a/drivers/net/wireless/rtl818x/rtl8187_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c | |||
| @@ -65,6 +65,7 @@ static struct usb_device_id rtl8187_table[] __devinitdata = { | |||
| 65 | /* Sitecom */ | 65 | /* Sitecom */ |
| 66 | {USB_DEVICE(0x0df6, 0x000d), .driver_info = DEVICE_RTL8187}, | 66 | {USB_DEVICE(0x0df6, 0x000d), .driver_info = DEVICE_RTL8187}, |
| 67 | {USB_DEVICE(0x0df6, 0x0028), .driver_info = DEVICE_RTL8187B}, | 67 | {USB_DEVICE(0x0df6, 0x0028), .driver_info = DEVICE_RTL8187B}, |
| 68 | {USB_DEVICE(0x0df6, 0x0029), .driver_info = DEVICE_RTL8187B}, | ||
| 68 | /* Sphairon Access Systems GmbH */ | 69 | /* Sphairon Access Systems GmbH */ |
| 69 | {USB_DEVICE(0x114B, 0x0150), .driver_info = DEVICE_RTL8187}, | 70 | {USB_DEVICE(0x114B, 0x0150), .driver_info = DEVICE_RTL8187}, |
| 70 | /* Dick Smith Electronics */ | 71 | /* Dick Smith Electronics */ |
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index 8e952fdab764..cb2fd01eddae 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
| @@ -720,12 +720,6 @@ static int acpiphp_bus_add(struct acpiphp_func *func) | |||
| 720 | -ret_val); | 720 | -ret_val); |
| 721 | goto acpiphp_bus_add_out; | 721 | goto acpiphp_bus_add_out; |
| 722 | } | 722 | } |
| 723 | /* | ||
| 724 | * try to start anyway. We could have failed to add | ||
| 725 | * simply because this bus had previously been added | ||
| 726 | * on another add. Don't bother with the return value | ||
| 727 | * we just keep going. | ||
| 728 | */ | ||
| 729 | ret_val = acpi_bus_start(device); | 723 | ret_val = acpi_bus_start(device); |
| 730 | 724 | ||
| 731 | acpiphp_bus_add_out: | 725 | acpiphp_bus_add_out: |
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 07d14dfdf0b4..226b3e93498c 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c | |||
| @@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev) | |||
| 934 | acer_backlight_device = bd; | 934 | acer_backlight_device = bd; |
| 935 | 935 | ||
| 936 | bd->props.power = FB_BLANK_UNBLANK; | 936 | bd->props.power = FB_BLANK_UNBLANK; |
| 937 | bd->props.brightness = max_brightness; | 937 | bd->props.brightness = read_brightness(bd); |
| 938 | bd->props.max_brightness = max_brightness; | 938 | bd->props.max_brightness = max_brightness; |
| 939 | backlight_update_status(bd); | 939 | backlight_update_status(bd); |
| 940 | return 0; | 940 | return 0; |
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index e67e4feb35cb..eb603f1d55ca 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
| @@ -5771,7 +5771,7 @@ static void thermal_exit(void) | |||
| 5771 | case TPACPI_THERMAL_ACPI_TMP07: | 5771 | case TPACPI_THERMAL_ACPI_TMP07: |
| 5772 | case TPACPI_THERMAL_ACPI_UPDT: | 5772 | case TPACPI_THERMAL_ACPI_UPDT: |
| 5773 | sysfs_remove_group(&tpacpi_sensors_pdev->dev.kobj, | 5773 | sysfs_remove_group(&tpacpi_sensors_pdev->dev.kobj, |
| 5774 | &thermal_temp_input16_group); | 5774 | &thermal_temp_input8_group); |
| 5775 | break; | 5775 | break; |
| 5776 | case TPACPI_THERMAL_NONE: | 5776 | case TPACPI_THERMAL_NONE: |
| 5777 | default: | 5777 | default: |
diff --git a/drivers/power/wm97xx_battery.c b/drivers/power/wm97xx_battery.c index fa39e759a275..6ea3cb5837c7 100644 --- a/drivers/power/wm97xx_battery.c +++ b/drivers/power/wm97xx_battery.c | |||
| @@ -175,8 +175,14 @@ static int __devinit wm97xx_bat_probe(struct platform_device *dev) | |||
| 175 | dev_err(&dev->dev, "Do not pass platform_data through " | 175 | dev_err(&dev->dev, "Do not pass platform_data through " |
| 176 | "wm97xx_bat_set_pdata!\n"); | 176 | "wm97xx_bat_set_pdata!\n"); |
| 177 | return -EINVAL; | 177 | return -EINVAL; |
| 178 | } else | 178 | } |
| 179 | pdata = wmdata->batt_pdata; | 179 | |
| 180 | if (!wmdata) { | ||
| 181 | dev_err(&dev->dev, "No platform data supplied\n"); | ||
| 182 | return -EINVAL; | ||
| 183 | } | ||
| 184 | |||
| 185 | pdata = wmdata->batt_pdata; | ||
| 180 | 186 | ||
| 181 | if (dev->id != -1) | 187 | if (dev->id != -1) |
| 182 | return -EINVAL; | 188 | return -EINVAL; |
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 686ef270ecf7..b60a4c9f8f16 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
| @@ -661,7 +661,7 @@ static int suspend_prepare(struct regulator_dev *rdev, suspend_state_t state) | |||
| 661 | static void print_constraints(struct regulator_dev *rdev) | 661 | static void print_constraints(struct regulator_dev *rdev) |
| 662 | { | 662 | { |
| 663 | struct regulation_constraints *constraints = rdev->constraints; | 663 | struct regulation_constraints *constraints = rdev->constraints; |
| 664 | char buf[80]; | 664 | char buf[80] = ""; |
| 665 | int count = 0; | 665 | int count = 0; |
| 666 | int ret; | 666 | int ret; |
| 667 | 667 | ||
diff --git a/drivers/regulator/lp3971.c b/drivers/regulator/lp3971.c index 76d08c282f9c..4f33a0f4a179 100644 --- a/drivers/regulator/lp3971.c +++ b/drivers/regulator/lp3971.c | |||
| @@ -183,7 +183,7 @@ static int lp3971_ldo_set_voltage(struct regulator_dev *dev, | |||
| 183 | if (vol_map[val] >= min_vol) | 183 | if (vol_map[val] >= min_vol) |
| 184 | break; | 184 | break; |
| 185 | 185 | ||
| 186 | if (vol_map[val] > max_vol) | 186 | if (val > LDO_VOL_MAX_IDX || vol_map[val] > max_vol) |
| 187 | return -EINVAL; | 187 | return -EINVAL; |
| 188 | 188 | ||
| 189 | return lp3971_set_bits(lp3971, LP3971_LDO_VOL_CONTR_REG(ldo), | 189 | return lp3971_set_bits(lp3971, LP3971_LDO_VOL_CONTR_REG(ldo), |
| @@ -272,7 +272,7 @@ static int lp3971_dcdc_set_voltage(struct regulator_dev *dev, | |||
| 272 | if (vol_map[val] >= min_vol) | 272 | if (vol_map[val] >= min_vol) |
| 273 | break; | 273 | break; |
| 274 | 274 | ||
| 275 | if (vol_map[val] > max_vol) | 275 | if (val > BUCK_TARGET_VOL_MAX_IDX || vol_map[val] > max_vol) |
| 276 | return -EINVAL; | 276 | return -EINVAL; |
| 277 | 277 | ||
| 278 | ret = lp3971_set_bits(lp3971, LP3971_BUCK_TARGET_VOL1_REG(buck), | 278 | ret = lp3971_set_bits(lp3971, LP3971_BUCK_TARGET_VOL1_REG(buck), |
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c index 0f7b493fb105..271399f62f1b 100644 --- a/drivers/s390/scsi/zfcp_fc.c +++ b/drivers/s390/scsi/zfcp_fc.c | |||
| @@ -671,12 +671,11 @@ static void zfcp_fc_ct_els_job_handler(void *data) | |||
| 671 | { | 671 | { |
| 672 | struct fc_bsg_job *job = data; | 672 | struct fc_bsg_job *job = data; |
| 673 | struct zfcp_fsf_ct_els *zfcp_ct_els = job->dd_data; | 673 | struct zfcp_fsf_ct_els *zfcp_ct_els = job->dd_data; |
| 674 | int status = zfcp_ct_els->status; | 674 | struct fc_bsg_reply *jr = job->reply; |
| 675 | int reply_status; | ||
| 676 | 675 | ||
| 677 | reply_status = status ? FC_CTELS_STATUS_REJECT : FC_CTELS_STATUS_OK; | 676 | jr->reply_payload_rcv_len = job->reply_payload.payload_len; |
| 678 | job->reply->reply_data.ctels_reply.status = reply_status; | 677 | jr->reply_data.ctels_reply.status = FC_CTELS_STATUS_OK; |
| 679 | job->reply->reply_payload_rcv_len = job->reply_payload.payload_len; | 678 | jr->result = zfcp_ct_els->status ? -EIO : 0; |
| 680 | job->job_done(job); | 679 | job->job_done(job); |
| 681 | } | 680 | } |
| 682 | 681 | ||
diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c index 477542602284..9e71ac611146 100644 --- a/drivers/scsi/arm/fas216.c +++ b/drivers/scsi/arm/fas216.c | |||
| @@ -2516,7 +2516,7 @@ int fas216_eh_device_reset(struct scsi_cmnd *SCpnt) | |||
| 2516 | if (info->scsi.phase == PHASE_IDLE) | 2516 | if (info->scsi.phase == PHASE_IDLE) |
| 2517 | fas216_kick(info); | 2517 | fas216_kick(info); |
| 2518 | 2518 | ||
| 2519 | mod_timer(&info->eh_timer, 30 * HZ); | 2519 | mod_timer(&info->eh_timer, jiffies + 30 * HZ); |
| 2520 | spin_unlock_irqrestore(&info->host_lock, flags); | 2520 | spin_unlock_irqrestore(&info->host_lock, flags); |
| 2521 | 2521 | ||
| 2522 | /* | 2522 | /* |
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 10be9f36a4cc..2f47ae7cce91 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
| @@ -2009,6 +2009,8 @@ static int fcoe_destroy(const char *buffer, struct kernel_param *kp) | |||
| 2009 | fcoe_interface_cleanup(fcoe); | 2009 | fcoe_interface_cleanup(fcoe); |
| 2010 | rtnl_unlock(); | 2010 | rtnl_unlock(); |
| 2011 | fcoe_if_destroy(fcoe->ctlr.lp); | 2011 | fcoe_if_destroy(fcoe->ctlr.lp); |
| 2012 | module_put(THIS_MODULE); | ||
| 2013 | |||
| 2012 | out_putdev: | 2014 | out_putdev: |
| 2013 | dev_put(netdev); | 2015 | dev_put(netdev); |
| 2014 | out_nodev: | 2016 | out_nodev: |
| @@ -2059,6 +2061,11 @@ static int fcoe_create(const char *buffer, struct kernel_param *kp) | |||
| 2059 | } | 2061 | } |
| 2060 | #endif | 2062 | #endif |
| 2061 | 2063 | ||
| 2064 | if (!try_module_get(THIS_MODULE)) { | ||
| 2065 | rc = -EINVAL; | ||
| 2066 | goto out_nomod; | ||
| 2067 | } | ||
| 2068 | |||
| 2062 | rtnl_lock(); | 2069 | rtnl_lock(); |
| 2063 | netdev = fcoe_if_to_netdev(buffer); | 2070 | netdev = fcoe_if_to_netdev(buffer); |
| 2064 | if (!netdev) { | 2071 | if (!netdev) { |
| @@ -2099,17 +2106,24 @@ static int fcoe_create(const char *buffer, struct kernel_param *kp) | |||
| 2099 | if (!fcoe_link_ok(lport)) | 2106 | if (!fcoe_link_ok(lport)) |
| 2100 | fcoe_ctlr_link_up(&fcoe->ctlr); | 2107 | fcoe_ctlr_link_up(&fcoe->ctlr); |
| 2101 | 2108 | ||
| 2102 | rc = 0; | ||
| 2103 | out_free: | ||
| 2104 | /* | 2109 | /* |
| 2105 | * Release from init in fcoe_interface_create(), on success lport | 2110 | * Release from init in fcoe_interface_create(), on success lport |
| 2106 | * should be holding a reference taken in fcoe_if_create(). | 2111 | * should be holding a reference taken in fcoe_if_create(). |
| 2107 | */ | 2112 | */ |
| 2108 | fcoe_interface_put(fcoe); | 2113 | fcoe_interface_put(fcoe); |
| 2114 | dev_put(netdev); | ||
| 2115 | rtnl_unlock(); | ||
| 2116 | mutex_unlock(&fcoe_config_mutex); | ||
| 2117 | |||
| 2118 | return 0; | ||
| 2119 | out_free: | ||
| 2120 | fcoe_interface_put(fcoe); | ||
| 2109 | out_putdev: | 2121 | out_putdev: |
| 2110 | dev_put(netdev); | 2122 | dev_put(netdev); |
| 2111 | out_nodev: | 2123 | out_nodev: |
| 2112 | rtnl_unlock(); | 2124 | rtnl_unlock(); |
| 2125 | module_put(THIS_MODULE); | ||
| 2126 | out_nomod: | ||
| 2113 | mutex_unlock(&fcoe_config_mutex); | 2127 | mutex_unlock(&fcoe_config_mutex); |
| 2114 | return rc; | 2128 | return rc; |
| 2115 | } | 2129 | } |
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c index 9823291395ad..511cb6b371ee 100644 --- a/drivers/scsi/fcoe/libfcoe.c +++ b/drivers/scsi/fcoe/libfcoe.c | |||
| @@ -1187,7 +1187,7 @@ static void fcoe_ctlr_timeout(unsigned long arg) | |||
| 1187 | next_timer = fip->ctlr_ka_time; | 1187 | next_timer = fip->ctlr_ka_time; |
| 1188 | 1188 | ||
| 1189 | if (time_after_eq(jiffies, fip->port_ka_time)) { | 1189 | if (time_after_eq(jiffies, fip->port_ka_time)) { |
| 1190 | fip->port_ka_time += jiffies + | 1190 | fip->port_ka_time = jiffies + |
| 1191 | msecs_to_jiffies(FIP_VN_KA_PERIOD); | 1191 | msecs_to_jiffies(FIP_VN_KA_PERIOD); |
| 1192 | fip->send_port_ka = 1; | 1192 | fip->send_port_ka = 1; |
| 1193 | } | 1193 | } |
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c index 19d711cb938c..7f4364770e4a 100644 --- a/drivers/scsi/libfc/fc_exch.c +++ b/drivers/scsi/libfc/fc_exch.c | |||
| @@ -1890,7 +1890,7 @@ static struct fc_seq *fc_exch_seq_send(struct fc_lport *lport, | |||
| 1890 | fc_exch_setup_hdr(ep, fp, ep->f_ctl); | 1890 | fc_exch_setup_hdr(ep, fp, ep->f_ctl); |
| 1891 | sp->cnt++; | 1891 | sp->cnt++; |
| 1892 | 1892 | ||
| 1893 | if (ep->xid <= lport->lro_xid) | 1893 | if (ep->xid <= lport->lro_xid && fh->fh_r_ctl == FC_RCTL_DD_UNSOL_CMD) |
| 1894 | fc_fcp_ddp_setup(fr_fsp(fp), ep->xid); | 1894 | fc_fcp_ddp_setup(fr_fsp(fp), ep->xid); |
| 1895 | 1895 | ||
| 1896 | if (unlikely(lport->tt.frame_send(lport, fp))) | 1896 | if (unlikely(lport->tt.frame_send(lport, fp))) |
diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c index 881d5dfe8c74..6fde2fabfd9b 100644 --- a/drivers/scsi/libfc/fc_fcp.c +++ b/drivers/scsi/libfc/fc_fcp.c | |||
| @@ -298,9 +298,6 @@ void fc_fcp_ddp_setup(struct fc_fcp_pkt *fsp, u16 xid) | |||
| 298 | { | 298 | { |
| 299 | struct fc_lport *lport; | 299 | struct fc_lport *lport; |
| 300 | 300 | ||
| 301 | if (!fsp) | ||
| 302 | return; | ||
| 303 | |||
| 304 | lport = fsp->lp; | 301 | lport = fsp->lp; |
| 305 | if ((fsp->req_flags & FC_SRB_READ) && | 302 | if ((fsp->req_flags & FC_SRB_READ) && |
| 306 | (lport->lro_enabled) && (lport->tt.ddp_setup)) { | 303 | (lport->lro_enabled) && (lport->tt.ddp_setup)) { |
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c index 0b165024a219..7ec8ce75007c 100644 --- a/drivers/scsi/libfc/fc_lport.c +++ b/drivers/scsi/libfc/fc_lport.c | |||
| @@ -1800,7 +1800,8 @@ int fc_lport_bsg_request(struct fc_bsg_job *job) | |||
| 1800 | u32 did; | 1800 | u32 did; |
| 1801 | 1801 | ||
| 1802 | job->reply->reply_payload_rcv_len = 0; | 1802 | job->reply->reply_payload_rcv_len = 0; |
| 1803 | rsp->resid_len = job->reply_payload.payload_len; | 1803 | if (rsp) |
| 1804 | rsp->resid_len = job->reply_payload.payload_len; | ||
| 1804 | 1805 | ||
| 1805 | mutex_lock(&lport->lp_mutex); | 1806 | mutex_lock(&lport->lp_mutex); |
| 1806 | 1807 | ||
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index 02300523b234..97923bb07765 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c | |||
| @@ -623,7 +623,7 @@ static void fc_rport_plogi_resp(struct fc_seq *sp, struct fc_frame *fp, | |||
| 623 | 623 | ||
| 624 | tov = ntohl(plp->fl_csp.sp_e_d_tov); | 624 | tov = ntohl(plp->fl_csp.sp_e_d_tov); |
| 625 | if (ntohs(plp->fl_csp.sp_features) & FC_SP_FT_EDTR) | 625 | if (ntohs(plp->fl_csp.sp_features) & FC_SP_FT_EDTR) |
| 626 | tov /= 1000; | 626 | tov /= 1000000; |
| 627 | if (tov > rdata->e_d_tov) | 627 | if (tov > rdata->e_d_tov) |
| 628 | rdata->e_d_tov = tov; | 628 | rdata->e_d_tov = tov; |
| 629 | csp_seq = ntohs(plp->fl_csp.sp_tot_seq); | 629 | csp_seq = ntohs(plp->fl_csp.sp_tot_seq); |
diff --git a/drivers/scsi/libiscsi_tcp.c b/drivers/scsi/libiscsi_tcp.c index db6856c138fc..4ad87fd74ddd 100644 --- a/drivers/scsi/libiscsi_tcp.c +++ b/drivers/scsi/libiscsi_tcp.c | |||
| @@ -992,12 +992,10 @@ static struct iscsi_r2t_info *iscsi_tcp_get_curr_r2t(struct iscsi_task *task) | |||
| 992 | if (r2t == NULL) { | 992 | if (r2t == NULL) { |
| 993 | if (kfifo_out(&tcp_task->r2tqueue, | 993 | if (kfifo_out(&tcp_task->r2tqueue, |
| 994 | (void *)&tcp_task->r2t, sizeof(void *)) != | 994 | (void *)&tcp_task->r2t, sizeof(void *)) != |
| 995 | sizeof(void *)) { | 995 | sizeof(void *)) |
| 996 | WARN_ONCE(1, "unexpected fifo state"); | ||
| 997 | r2t = NULL; | 996 | r2t = NULL; |
| 998 | } | 997 | else |
| 999 | 998 | r2t = tcp_task->r2t; | |
| 1000 | r2t = tcp_task->r2t; | ||
| 1001 | } | 999 | } |
| 1002 | spin_unlock_bh(&session->lock); | 1000 | spin_unlock_bh(&session->lock); |
| 1003 | } | 1001 | } |
diff --git a/drivers/scsi/megaraid/megaraid_sas.c b/drivers/scsi/megaraid/megaraid_sas.c index 708ea3157b60..d9b8ca5116bc 100644 --- a/drivers/scsi/megaraid/megaraid_sas.c +++ b/drivers/scsi/megaraid/megaraid_sas.c | |||
| @@ -3781,6 +3781,7 @@ static int megasas_mgmt_compat_ioctl_fw(struct file *file, unsigned long arg) | |||
| 3781 | compat_alloc_user_space(sizeof(struct megasas_iocpacket)); | 3781 | compat_alloc_user_space(sizeof(struct megasas_iocpacket)); |
| 3782 | int i; | 3782 | int i; |
| 3783 | int error = 0; | 3783 | int error = 0; |
| 3784 | compat_uptr_t ptr; | ||
| 3784 | 3785 | ||
| 3785 | if (clear_user(ioc, sizeof(*ioc))) | 3786 | if (clear_user(ioc, sizeof(*ioc))) |
| 3786 | return -EFAULT; | 3787 | return -EFAULT; |
| @@ -3793,9 +3794,22 @@ static int megasas_mgmt_compat_ioctl_fw(struct file *file, unsigned long arg) | |||
| 3793 | copy_in_user(&ioc->sge_count, &cioc->sge_count, sizeof(u32))) | 3794 | copy_in_user(&ioc->sge_count, &cioc->sge_count, sizeof(u32))) |
| 3794 | return -EFAULT; | 3795 | return -EFAULT; |
| 3795 | 3796 | ||
| 3796 | for (i = 0; i < MAX_IOCTL_SGE; i++) { | 3797 | /* |
| 3797 | compat_uptr_t ptr; | 3798 | * The sense_ptr is used in megasas_mgmt_fw_ioctl only when |
| 3799 | * sense_len is not null, so prepare the 64bit value under | ||
| 3800 | * the same condition. | ||
| 3801 | */ | ||
| 3802 | if (ioc->sense_len) { | ||
| 3803 | void __user **sense_ioc_ptr = | ||
| 3804 | (void __user **)(ioc->frame.raw + ioc->sense_off); | ||
| 3805 | compat_uptr_t *sense_cioc_ptr = | ||
| 3806 | (compat_uptr_t *)(cioc->frame.raw + cioc->sense_off); | ||
| 3807 | if (get_user(ptr, sense_cioc_ptr) || | ||
| 3808 | put_user(compat_ptr(ptr), sense_ioc_ptr)) | ||
| 3809 | return -EFAULT; | ||
| 3810 | } | ||
| 3798 | 3811 | ||
| 3812 | for (i = 0; i < MAX_IOCTL_SGE; i++) { | ||
| 3799 | if (get_user(ptr, &cioc->sgl[i].iov_base) || | 3813 | if (get_user(ptr, &cioc->sgl[i].iov_base) || |
| 3800 | put_user(compat_ptr(ptr), &ioc->sgl[i].iov_base) || | 3814 | put_user(compat_ptr(ptr), &ioc->sgl[i].iov_base) || |
| 3801 | copy_in_user(&ioc->sgl[i].iov_len, | 3815 | copy_in_user(&ioc->sgl[i].iov_len, |
diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h index f61fb8d01330..8bc6f53691e9 100644 --- a/drivers/scsi/qla2xxx/qla_gbl.h +++ b/drivers/scsi/qla2xxx/qla_gbl.h | |||
| @@ -453,6 +453,5 @@ extern void qla24xx_wrt_req_reg(struct qla_hw_data *, uint16_t, uint16_t); | |||
| 453 | extern void qla25xx_wrt_req_reg(struct qla_hw_data *, uint16_t, uint16_t); | 453 | extern void qla25xx_wrt_req_reg(struct qla_hw_data *, uint16_t, uint16_t); |
| 454 | extern void qla25xx_wrt_rsp_reg(struct qla_hw_data *, uint16_t, uint16_t); | 454 | extern void qla25xx_wrt_rsp_reg(struct qla_hw_data *, uint16_t, uint16_t); |
| 455 | extern void qla24xx_wrt_rsp_reg(struct qla_hw_data *, uint16_t, uint16_t); | 455 | extern void qla24xx_wrt_rsp_reg(struct qla_hw_data *, uint16_t, uint16_t); |
| 456 | extern struct scsi_qla_host * qla25xx_get_host(struct rsp_que *); | ||
| 457 | 456 | ||
| 458 | #endif /* _QLA_GBL_H */ | 457 | #endif /* _QLA_GBL_H */ |
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index ffd0efdff40e..6fc63b98818c 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c | |||
| @@ -1917,6 +1917,7 @@ qla24xx_msix_rsp_q(int irq, void *dev_id) | |||
| 1917 | struct rsp_que *rsp; | 1917 | struct rsp_que *rsp; |
| 1918 | struct device_reg_24xx __iomem *reg; | 1918 | struct device_reg_24xx __iomem *reg; |
| 1919 | struct scsi_qla_host *vha; | 1919 | struct scsi_qla_host *vha; |
| 1920 | unsigned long flags; | ||
| 1920 | 1921 | ||
| 1921 | rsp = (struct rsp_que *) dev_id; | 1922 | rsp = (struct rsp_que *) dev_id; |
| 1922 | if (!rsp) { | 1923 | if (!rsp) { |
| @@ -1927,15 +1928,15 @@ qla24xx_msix_rsp_q(int irq, void *dev_id) | |||
| 1927 | ha = rsp->hw; | 1928 | ha = rsp->hw; |
| 1928 | reg = &ha->iobase->isp24; | 1929 | reg = &ha->iobase->isp24; |
| 1929 | 1930 | ||
| 1930 | spin_lock_irq(&ha->hardware_lock); | 1931 | spin_lock_irqsave(&ha->hardware_lock, flags); |
| 1931 | 1932 | ||
| 1932 | vha = qla25xx_get_host(rsp); | 1933 | vha = pci_get_drvdata(ha->pdev); |
| 1933 | qla24xx_process_response_queue(vha, rsp); | 1934 | qla24xx_process_response_queue(vha, rsp); |
| 1934 | if (!ha->flags.disable_msix_handshake) { | 1935 | if (!ha->flags.disable_msix_handshake) { |
| 1935 | WRT_REG_DWORD(®->hccr, HCCRX_CLR_RISC_INT); | 1936 | WRT_REG_DWORD(®->hccr, HCCRX_CLR_RISC_INT); |
| 1936 | RD_REG_DWORD_RELAXED(®->hccr); | 1937 | RD_REG_DWORD_RELAXED(®->hccr); |
| 1937 | } | 1938 | } |
| 1938 | spin_unlock_irq(&ha->hardware_lock); | 1939 | spin_unlock_irqrestore(&ha->hardware_lock, flags); |
| 1939 | 1940 | ||
| 1940 | return IRQ_HANDLED; | 1941 | return IRQ_HANDLED; |
| 1941 | } | 1942 | } |
| @@ -1946,6 +1947,7 @@ qla25xx_msix_rsp_q(int irq, void *dev_id) | |||
| 1946 | struct qla_hw_data *ha; | 1947 | struct qla_hw_data *ha; |
| 1947 | struct rsp_que *rsp; | 1948 | struct rsp_que *rsp; |
| 1948 | struct device_reg_24xx __iomem *reg; | 1949 | struct device_reg_24xx __iomem *reg; |
| 1950 | unsigned long flags; | ||
| 1949 | 1951 | ||
| 1950 | rsp = (struct rsp_que *) dev_id; | 1952 | rsp = (struct rsp_que *) dev_id; |
| 1951 | if (!rsp) { | 1953 | if (!rsp) { |
| @@ -1958,10 +1960,10 @@ qla25xx_msix_rsp_q(int irq, void *dev_id) | |||
| 1958 | /* Clear the interrupt, if enabled, for this response queue */ | 1960 | /* Clear the interrupt, if enabled, for this response queue */ |
| 1959 | if (rsp->options & ~BIT_6) { | 1961 | if (rsp->options & ~BIT_6) { |
| 1960 | reg = &ha->iobase->isp24; | 1962 | reg = &ha->iobase->isp24; |
| 1961 | spin_lock_irq(&ha->hardware_lock); | 1963 | spin_lock_irqsave(&ha->hardware_lock, flags); |
| 1962 | WRT_REG_DWORD(®->hccr, HCCRX_CLR_RISC_INT); | 1964 | WRT_REG_DWORD(®->hccr, HCCRX_CLR_RISC_INT); |
| 1963 | RD_REG_DWORD_RELAXED(®->hccr); | 1965 | RD_REG_DWORD_RELAXED(®->hccr); |
| 1964 | spin_unlock_irq(&ha->hardware_lock); | 1966 | spin_unlock_irqrestore(&ha->hardware_lock, flags); |
| 1965 | } | 1967 | } |
| 1966 | queue_work_on((int) (rsp->id - 1), ha->wq, &rsp->q_work); | 1968 | queue_work_on((int) (rsp->id - 1), ha->wq, &rsp->q_work); |
| 1967 | 1969 | ||
| @@ -1979,6 +1981,7 @@ qla24xx_msix_default(int irq, void *dev_id) | |||
| 1979 | uint32_t stat; | 1981 | uint32_t stat; |
| 1980 | uint32_t hccr; | 1982 | uint32_t hccr; |
| 1981 | uint16_t mb[4]; | 1983 | uint16_t mb[4]; |
| 1984 | unsigned long flags; | ||
| 1982 | 1985 | ||
| 1983 | rsp = (struct rsp_que *) dev_id; | 1986 | rsp = (struct rsp_que *) dev_id; |
| 1984 | if (!rsp) { | 1987 | if (!rsp) { |
| @@ -1990,7 +1993,7 @@ qla24xx_msix_default(int irq, void *dev_id) | |||
| 1990 | reg = &ha->iobase->isp24; | 1993 | reg = &ha->iobase->isp24; |
| 1991 | status = 0; | 1994 | status = 0; |
| 1992 | 1995 | ||
| 1993 | spin_lock_irq(&ha->hardware_lock); | 1996 | spin_lock_irqsave(&ha->hardware_lock, flags); |
| 1994 | vha = pci_get_drvdata(ha->pdev); | 1997 | vha = pci_get_drvdata(ha->pdev); |
| 1995 | do { | 1998 | do { |
| 1996 | stat = RD_REG_DWORD(®->host_status); | 1999 | stat = RD_REG_DWORD(®->host_status); |
| @@ -2039,7 +2042,7 @@ qla24xx_msix_default(int irq, void *dev_id) | |||
| 2039 | } | 2042 | } |
| 2040 | WRT_REG_DWORD(®->hccr, HCCRX_CLR_RISC_INT); | 2043 | WRT_REG_DWORD(®->hccr, HCCRX_CLR_RISC_INT); |
| 2041 | } while (0); | 2044 | } while (0); |
| 2042 | spin_unlock_irq(&ha->hardware_lock); | 2045 | spin_unlock_irqrestore(&ha->hardware_lock, flags); |
| 2043 | 2046 | ||
| 2044 | if (test_bit(MBX_INTR_WAIT, &ha->mbx_cmd_flags) && | 2047 | if (test_bit(MBX_INTR_WAIT, &ha->mbx_cmd_flags) && |
| 2045 | (status & MBX_INTERRUPT) && ha->flags.mbox_int) { | 2048 | (status & MBX_INTERRUPT) && ha->flags.mbox_int) { |
| @@ -2277,30 +2280,3 @@ int qla25xx_request_irq(struct rsp_que *rsp) | |||
| 2277 | msix->rsp = rsp; | 2280 | msix->rsp = rsp; |
| 2278 | return ret; | 2281 | return ret; |
| 2279 | } | 2282 | } |
| 2280 | |||
| 2281 | struct scsi_qla_host * | ||
| 2282 | qla25xx_get_host(struct rsp_que *rsp) | ||
| 2283 | { | ||
| 2284 | srb_t *sp; | ||
| 2285 | struct qla_hw_data *ha = rsp->hw; | ||
| 2286 | struct scsi_qla_host *vha = NULL; | ||
| 2287 | struct sts_entry_24xx *pkt; | ||
| 2288 | struct req_que *req; | ||
| 2289 | uint16_t que; | ||
| 2290 | uint32_t handle; | ||
| 2291 | |||
| 2292 | pkt = (struct sts_entry_24xx *) rsp->ring_ptr; | ||
| 2293 | que = MSW(pkt->handle); | ||
| 2294 | handle = (uint32_t) LSW(pkt->handle); | ||
| 2295 | req = ha->req_q_map[que]; | ||
| 2296 | if (handle < MAX_OUTSTANDING_COMMANDS) { | ||
| 2297 | sp = req->outstanding_cmds[handle]; | ||
| 2298 | if (sp) | ||
| 2299 | return sp->fcport->vha; | ||
| 2300 | else | ||
| 2301 | goto base_que; | ||
| 2302 | } | ||
| 2303 | base_que: | ||
| 2304 | vha = pci_get_drvdata(ha->pdev); | ||
| 2305 | return vha; | ||
| 2306 | } | ||
diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c index b901aa267e7d..ff17dee28613 100644 --- a/drivers/scsi/qla2xxx/qla_mid.c +++ b/drivers/scsi/qla2xxx/qla_mid.c | |||
| @@ -636,13 +636,15 @@ failed: | |||
| 636 | 636 | ||
| 637 | static void qla_do_work(struct work_struct *work) | 637 | static void qla_do_work(struct work_struct *work) |
| 638 | { | 638 | { |
| 639 | unsigned long flags; | ||
| 639 | struct rsp_que *rsp = container_of(work, struct rsp_que, q_work); | 640 | struct rsp_que *rsp = container_of(work, struct rsp_que, q_work); |
| 640 | struct scsi_qla_host *vha; | 641 | struct scsi_qla_host *vha; |
| 642 | struct qla_hw_data *ha = rsp->hw; | ||
| 641 | 643 | ||
| 642 | spin_lock_irq(&rsp->hw->hardware_lock); | 644 | spin_lock_irqsave(&rsp->hw->hardware_lock, flags); |
| 643 | vha = qla25xx_get_host(rsp); | 645 | vha = pci_get_drvdata(ha->pdev); |
| 644 | qla24xx_process_response_queue(vha, rsp); | 646 | qla24xx_process_response_queue(vha, rsp); |
| 645 | spin_unlock_irq(&rsp->hw->hardware_lock); | 647 | spin_unlock_irqrestore(&rsp->hw->hardware_lock, flags); |
| 646 | } | 648 | } |
| 647 | 649 | ||
| 648 | /* create response queue */ | 650 | /* create response queue */ |
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index c3e37c8e7e26..e9b15c3746fa 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c | |||
| @@ -83,6 +83,9 @@ static unsigned int skip_txen_test; /* force skip of txen test at init time */ | |||
| 83 | 83 | ||
| 84 | #define PASS_LIMIT 256 | 84 | #define PASS_LIMIT 256 |
| 85 | 85 | ||
| 86 | #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) | ||
| 87 | |||
| 88 | |||
| 86 | /* | 89 | /* |
| 87 | * We default to IRQ0 for the "no irq" hack. Some | 90 | * We default to IRQ0 for the "no irq" hack. Some |
| 88 | * machine types want others as well - they're free | 91 | * machine types want others as well - they're free |
| @@ -1792,7 +1795,7 @@ static unsigned int serial8250_tx_empty(struct uart_port *port) | |||
| 1792 | up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; | 1795 | up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; |
| 1793 | spin_unlock_irqrestore(&up->port.lock, flags); | 1796 | spin_unlock_irqrestore(&up->port.lock, flags); |
| 1794 | 1797 | ||
| 1795 | return lsr & UART_LSR_TEMT ? TIOCSER_TEMT : 0; | 1798 | return (lsr & BOTH_EMPTY) == BOTH_EMPTY ? TIOCSER_TEMT : 0; |
| 1796 | } | 1799 | } |
| 1797 | 1800 | ||
| 1798 | static unsigned int serial8250_get_mctrl(struct uart_port *port) | 1801 | static unsigned int serial8250_get_mctrl(struct uart_port *port) |
| @@ -1850,8 +1853,6 @@ static void serial8250_break_ctl(struct uart_port *port, int break_state) | |||
| 1850 | spin_unlock_irqrestore(&up->port.lock, flags); | 1853 | spin_unlock_irqrestore(&up->port.lock, flags); |
| 1851 | } | 1854 | } |
| 1852 | 1855 | ||
| 1853 | #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) | ||
| 1854 | |||
| 1855 | /* | 1856 | /* |
| 1856 | * Wait for transmitter & holding register to empty | 1857 | * Wait for transmitter & holding register to empty |
| 1857 | */ | 1858 | */ |
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index 5681ebed9c65..03dfd27c4bfb 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c | |||
| @@ -494,8 +494,7 @@ static int ssb_devices_register(struct ssb_bus *bus) | |||
| 494 | #endif | 494 | #endif |
| 495 | break; | 495 | break; |
| 496 | case SSB_BUSTYPE_SDIO: | 496 | case SSB_BUSTYPE_SDIO: |
| 497 | #ifdef CONFIG_SSB_SDIO | 497 | #ifdef CONFIG_SSB_SDIOHOST |
| 498 | sdev->irq = bus->host_sdio->dev.irq; | ||
| 499 | dev->parent = &bus->host_sdio->dev; | 498 | dev->parent = &bus->host_sdio->dev; |
| 500 | #endif | 499 | #endif |
| 501 | break; | 500 | break; |
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 6e8bcdfd23b4..a678186f218f 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
| @@ -1312,9 +1312,9 @@ static int processcompl(struct async *as, void __user * __user *arg) | |||
| 1312 | void __user *addr = as->userurb; | 1312 | void __user *addr = as->userurb; |
| 1313 | unsigned int i; | 1313 | unsigned int i; |
| 1314 | 1314 | ||
| 1315 | if (as->userbuffer) | 1315 | if (as->userbuffer && urb->actual_length) |
| 1316 | if (copy_to_user(as->userbuffer, urb->transfer_buffer, | 1316 | if (copy_to_user(as->userbuffer, urb->transfer_buffer, |
| 1317 | urb->transfer_buffer_length)) | 1317 | urb->actual_length)) |
| 1318 | goto err_out; | 1318 | goto err_out; |
| 1319 | if (put_user(as->status, &userurb->status)) | 1319 | if (put_user(as->status, &userurb->status)) |
| 1320 | goto err_out; | 1320 | goto err_out; |
| @@ -1334,14 +1334,11 @@ static int processcompl(struct async *as, void __user * __user *arg) | |||
| 1334 | } | 1334 | } |
| 1335 | } | 1335 | } |
| 1336 | 1336 | ||
| 1337 | free_async(as); | ||
| 1338 | |||
| 1339 | if (put_user(addr, (void __user * __user *)arg)) | 1337 | if (put_user(addr, (void __user * __user *)arg)) |
| 1340 | return -EFAULT; | 1338 | return -EFAULT; |
| 1341 | return 0; | 1339 | return 0; |
| 1342 | 1340 | ||
| 1343 | err_out: | 1341 | err_out: |
| 1344 | free_async(as); | ||
| 1345 | return -EFAULT; | 1342 | return -EFAULT; |
| 1346 | } | 1343 | } |
| 1347 | 1344 | ||
| @@ -1371,8 +1368,11 @@ static struct async *reap_as(struct dev_state *ps) | |||
| 1371 | static int proc_reapurb(struct dev_state *ps, void __user *arg) | 1368 | static int proc_reapurb(struct dev_state *ps, void __user *arg) |
| 1372 | { | 1369 | { |
| 1373 | struct async *as = reap_as(ps); | 1370 | struct async *as = reap_as(ps); |
| 1374 | if (as) | 1371 | if (as) { |
| 1375 | return processcompl(as, (void __user * __user *)arg); | 1372 | int retval = processcompl(as, (void __user * __user *)arg); |
| 1373 | free_async(as); | ||
| 1374 | return retval; | ||
| 1375 | } | ||
| 1376 | if (signal_pending(current)) | 1376 | if (signal_pending(current)) |
| 1377 | return -EINTR; | 1377 | return -EINTR; |
| 1378 | return -EIO; | 1378 | return -EIO; |
| @@ -1380,11 +1380,16 @@ static int proc_reapurb(struct dev_state *ps, void __user *arg) | |||
| 1380 | 1380 | ||
| 1381 | static int proc_reapurbnonblock(struct dev_state *ps, void __user *arg) | 1381 | static int proc_reapurbnonblock(struct dev_state *ps, void __user *arg) |
| 1382 | { | 1382 | { |
| 1383 | int retval; | ||
| 1383 | struct async *as; | 1384 | struct async *as; |
| 1384 | 1385 | ||
| 1385 | if (!(as = async_getcompleted(ps))) | 1386 | as = async_getcompleted(ps); |
| 1386 | return -EAGAIN; | 1387 | retval = -EAGAIN; |
| 1387 | return processcompl(as, (void __user * __user *)arg); | 1388 | if (as) { |
| 1389 | retval = processcompl(as, (void __user * __user *)arg); | ||
| 1390 | free_async(as); | ||
| 1391 | } | ||
| 1392 | return retval; | ||
| 1388 | } | 1393 | } |
| 1389 | 1394 | ||
| 1390 | #ifdef CONFIG_COMPAT | 1395 | #ifdef CONFIG_COMPAT |
| @@ -1475,9 +1480,9 @@ static int processcompl_compat(struct async *as, void __user * __user *arg) | |||
| 1475 | void __user *addr = as->userurb; | 1480 | void __user *addr = as->userurb; |
| 1476 | unsigned int i; | 1481 | unsigned int i; |
| 1477 | 1482 | ||
| 1478 | if (as->userbuffer) | 1483 | if (as->userbuffer && urb->actual_length) |
| 1479 | if (copy_to_user(as->userbuffer, urb->transfer_buffer, | 1484 | if (copy_to_user(as->userbuffer, urb->transfer_buffer, |
| 1480 | urb->transfer_buffer_length)) | 1485 | urb->actual_length)) |
| 1481 | return -EFAULT; | 1486 | return -EFAULT; |
| 1482 | if (put_user(as->status, &userurb->status)) | 1487 | if (put_user(as->status, &userurb->status)) |
| 1483 | return -EFAULT; | 1488 | return -EFAULT; |
| @@ -1497,7 +1502,6 @@ static int processcompl_compat(struct async *as, void __user * __user *arg) | |||
| 1497 | } | 1502 | } |
| 1498 | } | 1503 | } |
| 1499 | 1504 | ||
| 1500 | free_async(as); | ||
| 1501 | if (put_user(ptr_to_compat(addr), (u32 __user *)arg)) | 1505 | if (put_user(ptr_to_compat(addr), (u32 __user *)arg)) |
| 1502 | return -EFAULT; | 1506 | return -EFAULT; |
| 1503 | return 0; | 1507 | return 0; |
| @@ -1506,8 +1510,11 @@ static int processcompl_compat(struct async *as, void __user * __user *arg) | |||
| 1506 | static int proc_reapurb_compat(struct dev_state *ps, void __user *arg) | 1510 | static int proc_reapurb_compat(struct dev_state *ps, void __user *arg) |
| 1507 | { | 1511 | { |
| 1508 | struct async *as = reap_as(ps); | 1512 | struct async *as = reap_as(ps); |
| 1509 | if (as) | 1513 | if (as) { |
| 1510 | return processcompl_compat(as, (void __user * __user *)arg); | 1514 | int retval = processcompl_compat(as, (void __user * __user *)arg); |
| 1515 | free_async(as); | ||
| 1516 | return retval; | ||
| 1517 | } | ||
| 1511 | if (signal_pending(current)) | 1518 | if (signal_pending(current)) |
| 1512 | return -EINTR; | 1519 | return -EINTR; |
| 1513 | return -EIO; | 1520 | return -EIO; |
| @@ -1515,11 +1522,16 @@ static int proc_reapurb_compat(struct dev_state *ps, void __user *arg) | |||
| 1515 | 1522 | ||
| 1516 | static int proc_reapurbnonblock_compat(struct dev_state *ps, void __user *arg) | 1523 | static int proc_reapurbnonblock_compat(struct dev_state *ps, void __user *arg) |
| 1517 | { | 1524 | { |
| 1525 | int retval; | ||
| 1518 | struct async *as; | 1526 | struct async *as; |
| 1519 | 1527 | ||
| 1520 | if (!(as = async_getcompleted(ps))) | 1528 | retval = -EAGAIN; |
| 1521 | return -EAGAIN; | 1529 | as = async_getcompleted(ps); |
| 1522 | return processcompl_compat(as, (void __user * __user *)arg); | 1530 | if (as) { |
| 1531 | retval = processcompl_compat(as, (void __user * __user *)arg); | ||
| 1532 | free_async(as); | ||
| 1533 | } | ||
| 1534 | return retval; | ||
| 1523 | } | 1535 | } |
| 1524 | 1536 | ||
| 1525 | 1537 | ||
diff --git a/drivers/usb/gadget/f_eem.c b/drivers/usb/gadget/f_eem.c index 0a577d5694fd..d4f0db58a8ad 100644 --- a/drivers/usb/gadget/f_eem.c +++ b/drivers/usb/gadget/f_eem.c | |||
| @@ -358,7 +358,7 @@ done: | |||
| 358 | * b15: bmType (0 == data) | 358 | * b15: bmType (0 == data) |
| 359 | */ | 359 | */ |
| 360 | len = skb->len; | 360 | len = skb->len; |
| 361 | put_unaligned_le16((len & 0x3FFF) | BIT(14), skb_push(skb, 2)); | 361 | put_unaligned_le16(len & 0x3FFF, skb_push(skb, 2)); |
| 362 | 362 | ||
| 363 | /* add a zero-length EEM packet, if needed */ | 363 | /* add a zero-length EEM packet, if needed */ |
| 364 | if (padlen) | 364 | if (padlen) |
| @@ -464,7 +464,6 @@ static int eem_unwrap(struct gether *port, | |||
| 464 | } | 464 | } |
| 465 | 465 | ||
| 466 | /* validate CRC */ | 466 | /* validate CRC */ |
| 467 | crc = get_unaligned_le32(skb->data + len - ETH_FCS_LEN); | ||
| 468 | if (header & BIT(14)) { | 467 | if (header & BIT(14)) { |
| 469 | crc = get_unaligned_le32(skb->data + len | 468 | crc = get_unaligned_le32(skb->data + len |
| 470 | - ETH_FCS_LEN); | 469 | - ETH_FCS_LEN); |
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c index 429560100b10..76496f5d272c 100644 --- a/drivers/usb/gadget/multi.c +++ b/drivers/usb/gadget/multi.c | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | #if defined USB_ETH_RNDIS | 29 | #if defined USB_ETH_RNDIS |
| 30 | # undef USB_ETH_RNDIS | 30 | # undef USB_ETH_RNDIS |
| 31 | #endif | 31 | #endif |
| 32 | #ifdef CONFIG_USB_ETH_RNDIS | 32 | #ifdef CONFIG_USB_G_MULTI_RNDIS |
| 33 | # define USB_ETH_RNDIS y | 33 | # define USB_ETH_RNDIS y |
| 34 | #endif | 34 | #endif |
| 35 | 35 | ||
diff --git a/drivers/usb/gadget/r8a66597-udc.c b/drivers/usb/gadget/r8a66597-udc.c index e220fb8091a3..8b45145b9136 100644 --- a/drivers/usb/gadget/r8a66597-udc.c +++ b/drivers/usb/gadget/r8a66597-udc.c | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | #include <linux/io.h> | 26 | #include <linux/io.h> |
| 27 | #include <linux/platform_device.h> | 27 | #include <linux/platform_device.h> |
| 28 | #include <linux/clk.h> | 28 | #include <linux/clk.h> |
| 29 | #include <linux/err.h> | ||
| 29 | 30 | ||
| 30 | #include <linux/usb/ch9.h> | 31 | #include <linux/usb/ch9.h> |
| 31 | #include <linux/usb/gadget.h> | 32 | #include <linux/usb/gadget.h> |
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index 4b5dbd0127f5..5fc80a104150 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c | |||
| @@ -2582,6 +2582,7 @@ err: | |||
| 2582 | hsotg->gadget.dev.driver = NULL; | 2582 | hsotg->gadget.dev.driver = NULL; |
| 2583 | return ret; | 2583 | return ret; |
| 2584 | } | 2584 | } |
| 2585 | EXPORT_SYMBOL(usb_gadget_register_driver); | ||
| 2585 | 2586 | ||
| 2586 | int usb_gadget_unregister_driver(struct usb_gadget_driver *driver) | 2587 | int usb_gadget_unregister_driver(struct usb_gadget_driver *driver) |
| 2587 | { | 2588 | { |
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index c75d9270c752..19372673bf09 100644 --- a/drivers/usb/host/ehci-hub.c +++ b/drivers/usb/host/ehci-hub.c | |||
| @@ -196,7 +196,9 @@ static int ehci_bus_suspend (struct usb_hcd *hcd) | |||
| 196 | if (hostpc_reg) { | 196 | if (hostpc_reg) { |
| 197 | u32 t3; | 197 | u32 t3; |
| 198 | 198 | ||
| 199 | spin_unlock_irq(&ehci->lock); | ||
| 199 | msleep(5);/* 5ms for HCD enter low pwr mode */ | 200 | msleep(5);/* 5ms for HCD enter low pwr mode */ |
| 201 | spin_lock_irq(&ehci->lock); | ||
| 200 | t3 = ehci_readl(ehci, hostpc_reg); | 202 | t3 = ehci_readl(ehci, hostpc_reg); |
| 201 | ehci_writel(ehci, t3 | HOSTPC_PHCD, hostpc_reg); | 203 | ehci_writel(ehci, t3 | HOSTPC_PHCD, hostpc_reg); |
| 202 | t3 = ehci_readl(ehci, hostpc_reg); | 204 | t3 = ehci_readl(ehci, hostpc_reg); |
| @@ -904,17 +906,18 @@ static int ehci_hub_control ( | |||
| 904 | if ((temp & PORT_PE) == 0 | 906 | if ((temp & PORT_PE) == 0 |
| 905 | || (temp & PORT_RESET) != 0) | 907 | || (temp & PORT_RESET) != 0) |
| 906 | goto error; | 908 | goto error; |
| 907 | ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); | 909 | |
| 908 | /* After above check the port must be connected. | 910 | /* After above check the port must be connected. |
| 909 | * Set appropriate bit thus could put phy into low power | 911 | * Set appropriate bit thus could put phy into low power |
| 910 | * mode if we have hostpc feature | 912 | * mode if we have hostpc feature |
| 911 | */ | 913 | */ |
| 914 | temp &= ~PORT_WKCONN_E; | ||
| 915 | temp |= PORT_WKDISC_E | PORT_WKOC_E; | ||
| 916 | ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); | ||
| 912 | if (hostpc_reg) { | 917 | if (hostpc_reg) { |
| 913 | temp &= ~PORT_WKCONN_E; | 918 | spin_unlock_irqrestore(&ehci->lock, flags); |
| 914 | temp |= (PORT_WKDISC_E | PORT_WKOC_E); | ||
| 915 | ehci_writel(ehci, temp | PORT_SUSPEND, | ||
| 916 | status_reg); | ||
| 917 | msleep(5);/* 5ms for HCD enter low pwr mode */ | 919 | msleep(5);/* 5ms for HCD enter low pwr mode */ |
| 920 | spin_lock_irqsave(&ehci->lock, flags); | ||
| 918 | temp1 = ehci_readl(ehci, hostpc_reg); | 921 | temp1 = ehci_readl(ehci, hostpc_reg); |
| 919 | ehci_writel(ehci, temp1 | HOSTPC_PHCD, | 922 | ehci_writel(ehci, temp1 | HOSTPC_PHCD, |
| 920 | hostpc_reg); | 923 | hostpc_reg); |
diff --git a/drivers/usb/host/fhci-tds.c b/drivers/usb/host/fhci-tds.c index d224ab467a40..e1232890c78b 100644 --- a/drivers/usb/host/fhci-tds.c +++ b/drivers/usb/host/fhci-tds.c | |||
| @@ -105,7 +105,7 @@ void fhci_ep0_free(struct fhci_usb *usb) | |||
| 105 | if (ep->td_base) | 105 | if (ep->td_base) |
| 106 | cpm_muram_free(cpm_muram_offset(ep->td_base)); | 106 | cpm_muram_free(cpm_muram_offset(ep->td_base)); |
| 107 | 107 | ||
| 108 | if (ep->conf_frame_Q) { | 108 | if (kfifo_initialized(&ep->conf_frame_Q)) { |
| 109 | size = cq_howmany(&ep->conf_frame_Q); | 109 | size = cq_howmany(&ep->conf_frame_Q); |
| 110 | for (; size; size--) { | 110 | for (; size; size--) { |
| 111 | struct packet *pkt = cq_get(&ep->conf_frame_Q); | 111 | struct packet *pkt = cq_get(&ep->conf_frame_Q); |
| @@ -115,7 +115,7 @@ void fhci_ep0_free(struct fhci_usb *usb) | |||
| 115 | cq_delete(&ep->conf_frame_Q); | 115 | cq_delete(&ep->conf_frame_Q); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | if (ep->empty_frame_Q) { | 118 | if (kfifo_initialized(&ep->empty_frame_Q)) { |
| 119 | size = cq_howmany(&ep->empty_frame_Q); | 119 | size = cq_howmany(&ep->empty_frame_Q); |
| 120 | for (; size; size--) { | 120 | for (; size; size--) { |
| 121 | struct packet *pkt = cq_get(&ep->empty_frame_Q); | 121 | struct packet *pkt = cq_get(&ep->empty_frame_Q); |
| @@ -125,7 +125,7 @@ void fhci_ep0_free(struct fhci_usb *usb) | |||
| 125 | cq_delete(&ep->empty_frame_Q); | 125 | cq_delete(&ep->empty_frame_Q); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | if (ep->dummy_packets_Q) { | 128 | if (kfifo_initialized(&ep->dummy_packets_Q)) { |
| 129 | size = cq_howmany(&ep->dummy_packets_Q); | 129 | size = cq_howmany(&ep->dummy_packets_Q); |
| 130 | for (; size; size--) { | 130 | for (; size; size--) { |
| 131 | u8 *buff = cq_get(&ep->dummy_packets_Q); | 131 | u8 *buff = cq_get(&ep->dummy_packets_Q); |
diff --git a/drivers/usb/misc/sisusbvga/sisusb.c b/drivers/usb/misc/sisusbvga/sisusb.c index 0025847743f3..8b37a4b9839e 100644 --- a/drivers/usb/misc/sisusbvga/sisusb.c +++ b/drivers/usb/misc/sisusbvga/sisusb.c | |||
| @@ -3245,6 +3245,7 @@ static struct usb_device_id sisusb_table [] = { | |||
| 3245 | { USB_DEVICE(0x0711, 0x0902) }, | 3245 | { USB_DEVICE(0x0711, 0x0902) }, |
| 3246 | { USB_DEVICE(0x0711, 0x0903) }, | 3246 | { USB_DEVICE(0x0711, 0x0903) }, |
| 3247 | { USB_DEVICE(0x0711, 0x0918) }, | 3247 | { USB_DEVICE(0x0711, 0x0918) }, |
| 3248 | { USB_DEVICE(0x0711, 0x0920) }, | ||
| 3248 | { USB_DEVICE(0x182d, 0x021c) }, | 3249 | { USB_DEVICE(0x182d, 0x021c) }, |
| 3249 | { USB_DEVICE(0x182d, 0x0269) }, | 3250 | { USB_DEVICE(0x182d, 0x0269) }, |
| 3250 | { } | 3251 | { } |
diff --git a/drivers/usb/otg/Kconfig b/drivers/usb/otg/Kconfig index de56b3d743d7..3d2d3e549bd1 100644 --- a/drivers/usb/otg/Kconfig +++ b/drivers/usb/otg/Kconfig | |||
| @@ -44,6 +44,7 @@ config ISP1301_OMAP | |||
| 44 | config USB_ULPI | 44 | config USB_ULPI |
| 45 | bool "Generic ULPI Transceiver Driver" | 45 | bool "Generic ULPI Transceiver Driver" |
| 46 | depends on ARM | 46 | depends on ARM |
| 47 | select USB_OTG_UTILS | ||
| 47 | help | 48 | help |
| 48 | Enable this to support ULPI connected USB OTG transceivers which | 49 | Enable this to support ULPI connected USB OTG transceivers which |
| 49 | are likely found on embedded boards. | 50 | are likely found on embedded boards. |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 216f187582ab..7638828e7317 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
| @@ -50,7 +50,7 @@ | |||
| 50 | * Version Information | 50 | * Version Information |
| 51 | */ | 51 | */ |
| 52 | #define DRIVER_VERSION "v1.5.0" | 52 | #define DRIVER_VERSION "v1.5.0" |
| 53 | #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober <kuba@mareimbrium.org>" | 53 | #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober <kuba@mareimbrium.org>, Andreas Mohr" |
| 54 | #define DRIVER_DESC "USB FTDI Serial Converters Driver" | 54 | #define DRIVER_DESC "USB FTDI Serial Converters Driver" |
| 55 | 55 | ||
| 56 | static int debug; | 56 | static int debug; |
| @@ -145,10 +145,15 @@ static struct ftdi_sio_quirk ftdi_HE_TIRA1_quirk = { | |||
| 145 | 145 | ||
| 146 | 146 | ||
| 147 | 147 | ||
| 148 | /* | ||
| 149 | * Device ID not listed? Test via module params product/vendor or | ||
| 150 | * /sys/bus/usb/ftdi_sio/new_id, then send patch/report! | ||
| 151 | */ | ||
| 148 | static struct usb_device_id id_table_combined [] = { | 152 | static struct usb_device_id id_table_combined [] = { |
| 149 | { USB_DEVICE(FTDI_VID, FTDI_AMC232_PID) }, | 153 | { USB_DEVICE(FTDI_VID, FTDI_AMC232_PID) }, |
| 150 | { USB_DEVICE(FTDI_VID, FTDI_CANUSB_PID) }, | 154 | { USB_DEVICE(FTDI_VID, FTDI_CANUSB_PID) }, |
| 151 | { USB_DEVICE(FTDI_VID, FTDI_CANDAPTER_PID) }, | 155 | { USB_DEVICE(FTDI_VID, FTDI_CANDAPTER_PID) }, |
| 156 | { USB_DEVICE(FTDI_VID, FTDI_NXTCAM_PID) }, | ||
| 152 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_0_PID) }, | 157 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_0_PID) }, |
| 153 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_1_PID) }, | 158 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_1_PID) }, |
| 154 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_2_PID) }, | 159 | { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_2_PID) }, |
| @@ -552,9 +557,16 @@ static struct usb_device_id id_table_combined [] = { | |||
| 552 | { USB_DEVICE(FTDI_VID, FTDI_IBS_PEDO_PID) }, | 557 | { USB_DEVICE(FTDI_VID, FTDI_IBS_PEDO_PID) }, |
| 553 | { USB_DEVICE(FTDI_VID, FTDI_IBS_PROD_PID) }, | 558 | { USB_DEVICE(FTDI_VID, FTDI_IBS_PROD_PID) }, |
| 554 | /* | 559 | /* |
| 555 | * Due to many user requests for multiple ELV devices we enable | 560 | * ELV devices: |
| 556 | * them by default. | ||
| 557 | */ | 561 | */ |
| 562 | { USB_DEVICE(FTDI_VID, FTDI_ELV_USR_PID) }, | ||
| 563 | { USB_DEVICE(FTDI_VID, FTDI_ELV_MSM1_PID) }, | ||
| 564 | { USB_DEVICE(FTDI_VID, FTDI_ELV_KL100_PID) }, | ||
| 565 | { USB_DEVICE(FTDI_VID, FTDI_ELV_WS550_PID) }, | ||
| 566 | { USB_DEVICE(FTDI_VID, FTDI_ELV_EC3000_PID) }, | ||
| 567 | { USB_DEVICE(FTDI_VID, FTDI_ELV_WS888_PID) }, | ||
| 568 | { USB_DEVICE(FTDI_VID, FTDI_ELV_TWS550_PID) }, | ||
| 569 | { USB_DEVICE(FTDI_VID, FTDI_ELV_FEM_PID) }, | ||
| 558 | { USB_DEVICE(FTDI_VID, FTDI_ELV_CLI7000_PID) }, | 570 | { USB_DEVICE(FTDI_VID, FTDI_ELV_CLI7000_PID) }, |
| 559 | { USB_DEVICE(FTDI_VID, FTDI_ELV_PPS7330_PID) }, | 571 | { USB_DEVICE(FTDI_VID, FTDI_ELV_PPS7330_PID) }, |
| 560 | { USB_DEVICE(FTDI_VID, FTDI_ELV_TFM100_PID) }, | 572 | { USB_DEVICE(FTDI_VID, FTDI_ELV_TFM100_PID) }, |
| @@ -571,11 +583,17 @@ static struct usb_device_id id_table_combined [] = { | |||
| 571 | { USB_DEVICE(FTDI_VID, FTDI_ELV_PCK100_PID) }, | 583 | { USB_DEVICE(FTDI_VID, FTDI_ELV_PCK100_PID) }, |
| 572 | { USB_DEVICE(FTDI_VID, FTDI_ELV_RFP500_PID) }, | 584 | { USB_DEVICE(FTDI_VID, FTDI_ELV_RFP500_PID) }, |
| 573 | { USB_DEVICE(FTDI_VID, FTDI_ELV_FS20SIG_PID) }, | 585 | { USB_DEVICE(FTDI_VID, FTDI_ELV_FS20SIG_PID) }, |
| 586 | { USB_DEVICE(FTDI_VID, FTDI_ELV_UTP8_PID) }, | ||
| 574 | { USB_DEVICE(FTDI_VID, FTDI_ELV_WS300PC_PID) }, | 587 | { USB_DEVICE(FTDI_VID, FTDI_ELV_WS300PC_PID) }, |
| 588 | { USB_DEVICE(FTDI_VID, FTDI_ELV_WS444PC_PID) }, | ||
| 575 | { USB_DEVICE(FTDI_VID, FTDI_ELV_FHZ1300PC_PID) }, | 589 | { USB_DEVICE(FTDI_VID, FTDI_ELV_FHZ1300PC_PID) }, |
| 576 | { USB_DEVICE(FTDI_VID, FTDI_ELV_EM1010PC_PID) }, | 590 | { USB_DEVICE(FTDI_VID, FTDI_ELV_EM1010PC_PID) }, |
| 577 | { USB_DEVICE(FTDI_VID, FTDI_ELV_WS500_PID) }, | 591 | { USB_DEVICE(FTDI_VID, FTDI_ELV_WS500_PID) }, |
| 578 | { USB_DEVICE(FTDI_VID, FTDI_ELV_HS485_PID) }, | 592 | { USB_DEVICE(FTDI_VID, FTDI_ELV_HS485_PID) }, |
| 593 | { USB_DEVICE(FTDI_VID, FTDI_ELV_UMS100_PID) }, | ||
| 594 | { USB_DEVICE(FTDI_VID, FTDI_ELV_TFD128_PID) }, | ||
| 595 | { USB_DEVICE(FTDI_VID, FTDI_ELV_FM3RX_PID) }, | ||
| 596 | { USB_DEVICE(FTDI_VID, FTDI_ELV_WS777_PID) }, | ||
| 579 | { USB_DEVICE(FTDI_VID, LINX_SDMUSBQSS_PID) }, | 597 | { USB_DEVICE(FTDI_VID, LINX_SDMUSBQSS_PID) }, |
| 580 | { USB_DEVICE(FTDI_VID, LINX_MASTERDEVEL2_PID) }, | 598 | { USB_DEVICE(FTDI_VID, LINX_MASTERDEVEL2_PID) }, |
| 581 | { USB_DEVICE(FTDI_VID, LINX_FUTURE_0_PID) }, | 599 | { USB_DEVICE(FTDI_VID, LINX_FUTURE_0_PID) }, |
| @@ -697,6 +715,7 @@ static struct usb_device_id id_table_combined [] = { | |||
| 697 | { USB_DEVICE(RATOC_VENDOR_ID, RATOC_PRODUCT_ID_USB60F) }, | 715 | { USB_DEVICE(RATOC_VENDOR_ID, RATOC_PRODUCT_ID_USB60F) }, |
| 698 | { USB_DEVICE(FTDI_VID, FTDI_REU_TINY_PID) }, | 716 | { USB_DEVICE(FTDI_VID, FTDI_REU_TINY_PID) }, |
| 699 | { USB_DEVICE(PAPOUCH_VID, PAPOUCH_QUIDO4x4_PID) }, | 717 | { USB_DEVICE(PAPOUCH_VID, PAPOUCH_QUIDO4x4_PID) }, |
| 718 | { USB_DEVICE(PAPOUCH_VID, PAPOUCH_AD4USB_PID) }, | ||
| 700 | { USB_DEVICE(FTDI_VID, FTDI_DOMINTELL_DGQG_PID) }, | 719 | { USB_DEVICE(FTDI_VID, FTDI_DOMINTELL_DGQG_PID) }, |
| 701 | { USB_DEVICE(FTDI_VID, FTDI_DOMINTELL_DUSB_PID) }, | 720 | { USB_DEVICE(FTDI_VID, FTDI_DOMINTELL_DUSB_PID) }, |
| 702 | { USB_DEVICE(ALTI2_VID, ALTI2_N3_PID) }, | 721 | { USB_DEVICE(ALTI2_VID, ALTI2_N3_PID) }, |
diff --git a/drivers/usb/serial/ftdi_sio_ids.h b/drivers/usb/serial/ftdi_sio_ids.h index da92b4952ffb..c8951aeed983 100644 --- a/drivers/usb/serial/ftdi_sio_ids.h +++ b/drivers/usb/serial/ftdi_sio_ids.h | |||
| @@ -38,6 +38,8 @@ | |||
| 38 | /* www.candapter.com Ewert Energy Systems CANdapter device */ | 38 | /* www.candapter.com Ewert Energy Systems CANdapter device */ |
| 39 | #define FTDI_CANDAPTER_PID 0x9F80 /* Product Id */ | 39 | #define FTDI_CANDAPTER_PID 0x9F80 /* Product Id */ |
| 40 | 40 | ||
| 41 | #define FTDI_NXTCAM_PID 0xABB8 /* NXTCam for Mindstorms NXT */ | ||
| 42 | |||
| 41 | /* OOCDlink by Joern Kaipf <joernk@web.de> | 43 | /* OOCDlink by Joern Kaipf <joernk@web.de> |
| 42 | * (http://www.joernonline.de/dw/doku.php?id=start&idx=projects:oocdlink) */ | 44 | * (http://www.joernonline.de/dw/doku.php?id=start&idx=projects:oocdlink) */ |
| 43 | #define FTDI_OOCDLINK_PID 0xbaf8 /* Amontec JTAGkey */ | 45 | #define FTDI_OOCDLINK_PID 0xbaf8 /* Amontec JTAGkey */ |
| @@ -161,22 +163,37 @@ | |||
| 161 | /* | 163 | /* |
| 162 | * ELV USB devices submitted by Christian Abt of ELV (www.elv.de). | 164 | * ELV USB devices submitted by Christian Abt of ELV (www.elv.de). |
| 163 | * All of these devices use FTDI's vendor ID (0x0403). | 165 | * All of these devices use FTDI's vendor ID (0x0403). |
| 166 | * Further IDs taken from ELV Windows .inf file. | ||
| 164 | * | 167 | * |
| 165 | * The previously included PID for the UO 100 module was incorrect. | 168 | * The previously included PID for the UO 100 module was incorrect. |
| 166 | * In fact, that PID was for ELV's UR 100 USB-RS232 converter (0xFB58). | 169 | * In fact, that PID was for ELV's UR 100 USB-RS232 converter (0xFB58). |
| 167 | * | 170 | * |
| 168 | * Armin Laeuger originally sent the PID for the UM 100 module. | 171 | * Armin Laeuger originally sent the PID for the UM 100 module. |
| 169 | */ | 172 | */ |
| 173 | #define FTDI_ELV_USR_PID 0xE000 /* ELV Universal-Sound-Recorder */ | ||
| 174 | #define FTDI_ELV_MSM1_PID 0xE001 /* ELV Mini-Sound-Modul */ | ||
| 175 | #define FTDI_ELV_KL100_PID 0xE002 /* ELV Kfz-Leistungsmesser KL 100 */ | ||
| 176 | #define FTDI_ELV_WS550_PID 0xE004 /* WS 550 */ | ||
| 177 | #define FTDI_ELV_EC3000_PID 0xE006 /* ENERGY CONTROL 3000 USB */ | ||
| 178 | #define FTDI_ELV_WS888_PID 0xE008 /* WS 888 */ | ||
| 179 | #define FTDI_ELV_TWS550_PID 0xE009 /* Technoline WS 550 */ | ||
| 180 | #define FTDI_ELV_FEM_PID 0xE00A /* Funk Energie Monitor */ | ||
| 170 | #define FTDI_ELV_FHZ1300PC_PID 0xE0E8 /* FHZ 1300 PC */ | 181 | #define FTDI_ELV_FHZ1300PC_PID 0xE0E8 /* FHZ 1300 PC */ |
| 171 | #define FTDI_ELV_WS500_PID 0xE0E9 /* PC-Wetterstation (WS 500) */ | 182 | #define FTDI_ELV_WS500_PID 0xE0E9 /* PC-Wetterstation (WS 500) */ |
| 172 | #define FTDI_ELV_HS485_PID 0xE0EA /* USB to RS-485 adapter */ | 183 | #define FTDI_ELV_HS485_PID 0xE0EA /* USB to RS-485 adapter */ |
| 184 | #define FTDI_ELV_UMS100_PID 0xE0EB /* ELV USB Master-Slave Schaltsteckdose UMS 100 */ | ||
| 185 | #define FTDI_ELV_TFD128_PID 0xE0EC /* ELV Temperatur-Feuchte-Datenlogger TFD 128 */ | ||
| 186 | #define FTDI_ELV_FM3RX_PID 0xE0ED /* ELV Messwertuebertragung FM3 RX */ | ||
| 187 | #define FTDI_ELV_WS777_PID 0xE0EE /* Conrad WS 777 */ | ||
| 173 | #define FTDI_ELV_EM1010PC_PID 0xE0EF /* Engery monitor EM 1010 PC */ | 188 | #define FTDI_ELV_EM1010PC_PID 0xE0EF /* Engery monitor EM 1010 PC */ |
| 174 | #define FTDI_ELV_CSI8_PID 0xE0F0 /* Computer-Schalt-Interface (CSI 8) */ | 189 | #define FTDI_ELV_CSI8_PID 0xE0F0 /* Computer-Schalt-Interface (CSI 8) */ |
| 175 | #define FTDI_ELV_EM1000DL_PID 0xE0F1 /* PC-Datenlogger fuer Energiemonitor (EM 1000 DL) */ | 190 | #define FTDI_ELV_EM1000DL_PID 0xE0F1 /* PC-Datenlogger fuer Energiemonitor (EM 1000 DL) */ |
| 176 | #define FTDI_ELV_PCK100_PID 0xE0F2 /* PC-Kabeltester (PCK 100) */ | 191 | #define FTDI_ELV_PCK100_PID 0xE0F2 /* PC-Kabeltester (PCK 100) */ |
| 177 | #define FTDI_ELV_RFP500_PID 0xE0F3 /* HF-Leistungsmesser (RFP 500) */ | 192 | #define FTDI_ELV_RFP500_PID 0xE0F3 /* HF-Leistungsmesser (RFP 500) */ |
| 178 | #define FTDI_ELV_FS20SIG_PID 0xE0F4 /* Signalgeber (FS 20 SIG) */ | 193 | #define FTDI_ELV_FS20SIG_PID 0xE0F4 /* Signalgeber (FS 20 SIG) */ |
| 194 | #define FTDI_ELV_UTP8_PID 0xE0F5 /* ELV UTP 8 */ | ||
| 179 | #define FTDI_ELV_WS300PC_PID 0xE0F6 /* PC-Wetterstation (WS 300 PC) */ | 195 | #define FTDI_ELV_WS300PC_PID 0xE0F6 /* PC-Wetterstation (WS 300 PC) */ |
| 196 | #define FTDI_ELV_WS444PC_PID 0xE0F7 /* Conrad WS 444 PC */ | ||
| 180 | #define FTDI_PHI_FISCO_PID 0xE40B /* PHI Fisco USB to Serial cable */ | 197 | #define FTDI_PHI_FISCO_PID 0xE40B /* PHI Fisco USB to Serial cable */ |
| 181 | #define FTDI_ELV_UAD8_PID 0xF068 /* USB-AD-Wandler (UAD 8) */ | 198 | #define FTDI_ELV_UAD8_PID 0xF068 /* USB-AD-Wandler (UAD 8) */ |
| 182 | #define FTDI_ELV_UDA7_PID 0xF069 /* USB-DA-Wandler (UDA 7) */ | 199 | #define FTDI_ELV_UDA7_PID 0xF069 /* USB-DA-Wandler (UDA 7) */ |
| @@ -968,6 +985,7 @@ | |||
| 968 | #define PAPOUCH_VID 0x5050 /* Vendor ID */ | 985 | #define PAPOUCH_VID 0x5050 /* Vendor ID */ |
| 969 | #define PAPOUCH_TMU_PID 0x0400 /* TMU USB Thermometer */ | 986 | #define PAPOUCH_TMU_PID 0x0400 /* TMU USB Thermometer */ |
| 970 | #define PAPOUCH_QUIDO4x4_PID 0x0900 /* Quido 4/4 Module */ | 987 | #define PAPOUCH_QUIDO4x4_PID 0x0900 /* Quido 4/4 Module */ |
| 988 | #define PAPOUCH_AD4USB_PID 0x8003 /* AD4USB Measurement Module */ | ||
| 971 | 989 | ||
| 972 | /* | 990 | /* |
| 973 | * Marvell SheevaPlug | 991 | * Marvell SheevaPlug |
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index ac1b6449fb6a..3eb6143bb646 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
| @@ -298,6 +298,7 @@ static struct usb_device_id id_table [] = { | |||
| 298 | { USB_DEVICE(0x1199, 0x68A3), /* Sierra Wireless Direct IP modems */ | 298 | { USB_DEVICE(0x1199, 0x68A3), /* Sierra Wireless Direct IP modems */ |
| 299 | .driver_info = (kernel_ulong_t)&direct_ip_interface_blacklist | 299 | .driver_info = (kernel_ulong_t)&direct_ip_interface_blacklist |
| 300 | }, | 300 | }, |
| 301 | { USB_DEVICE(0x413C, 0x08133) }, /* Dell Computer Corp. Wireless 5720 VZW Mobile Broadband (EVDO Rev-A) Minicard GPS Port */ | ||
| 301 | 302 | ||
| 302 | { } | 303 | { } |
| 303 | }; | 304 | }; |
diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h index c932f9053188..49575fba3756 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h | |||
| @@ -941,7 +941,7 @@ UNUSUAL_DEV( 0x07ab, 0xfccd, 0x0000, 0x9999, | |||
| 941 | UNUSUAL_DEV( 0x07af, 0x0004, 0x0100, 0x0133, | 941 | UNUSUAL_DEV( 0x07af, 0x0004, 0x0100, 0x0133, |
| 942 | "Microtech", | 942 | "Microtech", |
| 943 | "USB-SCSI-DB25", | 943 | "USB-SCSI-DB25", |
| 944 | US_SC_SCSI, US_PR_BULK, usb_stor_euscsi_init, | 944 | US_SC_DEVICE, US_PR_DEVICE, usb_stor_euscsi_init, |
| 945 | US_FL_SCM_MULT_TARG ), | 945 | US_FL_SCM_MULT_TARG ), |
| 946 | 946 | ||
| 947 | UNUSUAL_DEV( 0x07af, 0x0005, 0x0100, 0x0100, | 947 | UNUSUAL_DEV( 0x07af, 0x0005, 0x0100, 0x0100, |
diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c index eb12182b2059..d25df51bb0d2 100644 --- a/drivers/video/efifb.c +++ b/drivers/video/efifb.c | |||
| @@ -161,8 +161,17 @@ static int efifb_setcolreg(unsigned regno, unsigned red, unsigned green, | |||
| 161 | return 0; | 161 | return 0; |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | static void efifb_destroy(struct fb_info *info) | ||
| 165 | { | ||
| 166 | if (info->screen_base) | ||
| 167 | iounmap(info->screen_base); | ||
| 168 | release_mem_region(info->aperture_base, info->aperture_size); | ||
| 169 | framebuffer_release(info); | ||
| 170 | } | ||
| 171 | |||
| 164 | static struct fb_ops efifb_ops = { | 172 | static struct fb_ops efifb_ops = { |
| 165 | .owner = THIS_MODULE, | 173 | .owner = THIS_MODULE, |
| 174 | .fb_destroy = efifb_destroy, | ||
| 166 | .fb_setcolreg = efifb_setcolreg, | 175 | .fb_setcolreg = efifb_setcolreg, |
| 167 | .fb_fillrect = cfb_fillrect, | 176 | .fb_fillrect = cfb_fillrect, |
| 168 | .fb_copyarea = cfb_copyarea, | 177 | .fb_copyarea = cfb_copyarea, |
| @@ -281,7 +290,7 @@ static int __init efifb_probe(struct platform_device *dev) | |||
| 281 | info->par = NULL; | 290 | info->par = NULL; |
| 282 | 291 | ||
| 283 | info->aperture_base = efifb_fix.smem_start; | 292 | info->aperture_base = efifb_fix.smem_start; |
| 284 | info->aperture_size = size_total; | 293 | info->aperture_size = size_remap; |
| 285 | 294 | ||
| 286 | info->screen_base = ioremap(efifb_fix.smem_start, efifb_fix.smem_len); | 295 | info->screen_base = ioremap(efifb_fix.smem_start, efifb_fix.smem_len); |
| 287 | if (!info->screen_base) { | 296 | if (!info->screen_base) { |
diff --git a/drivers/watchdog/bfin_wdt.c b/drivers/watchdog/bfin_wdt.c index c7b3f9df2317..2159e668751c 100644 --- a/drivers/watchdog/bfin_wdt.c +++ b/drivers/watchdog/bfin_wdt.c | |||
| @@ -1,9 +1,8 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Blackfin On-Chip Watchdog Driver | 2 | * Blackfin On-Chip Watchdog Driver |
| 3 | * Supports BF53[123]/BF53[467]/BF54[2489]/BF561 | ||
| 4 | * | 3 | * |
| 5 | * Originally based on softdog.c | 4 | * Originally based on softdog.c |
| 6 | * Copyright 2006-2007 Analog Devices Inc. | 5 | * Copyright 2006-2010 Analog Devices Inc. |
| 7 | * Copyright 2006-2007 Michele d'Amico | 6 | * Copyright 2006-2007 Michele d'Amico |
| 8 | * Copyright 1996 Alan Cox <alan@lxorguk.ukuu.org.uk> | 7 | * Copyright 1996 Alan Cox <alan@lxorguk.ukuu.org.uk> |
| 9 | * | 8 | * |
| @@ -137,13 +136,15 @@ static int bfin_wdt_running(void) | |||
| 137 | */ | 136 | */ |
| 138 | static int bfin_wdt_set_timeout(unsigned long t) | 137 | static int bfin_wdt_set_timeout(unsigned long t) |
| 139 | { | 138 | { |
| 140 | u32 cnt; | 139 | u32 cnt, max_t, sclk; |
| 141 | unsigned long flags; | 140 | unsigned long flags; |
| 142 | 141 | ||
| 143 | stampit(); | 142 | sclk = get_sclk(); |
| 143 | max_t = -1 / sclk; | ||
| 144 | cnt = t * sclk; | ||
| 145 | stamp("maxtimeout=%us newtimeout=%lus (cnt=%#x)", max_t, t, cnt); | ||
| 144 | 146 | ||
| 145 | cnt = t * get_sclk(); | 147 | if (t > max_t) { |
| 146 | if (cnt < get_sclk()) { | ||
| 147 | printk(KERN_WARNING PFX "timeout value is too large\n"); | 148 | printk(KERN_WARNING PFX "timeout value is too large\n"); |
| 148 | return -EINVAL; | 149 | return -EINVAL; |
| 149 | } | 150 | } |
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 9d0809629967..6ed434ac037f 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
| @@ -720,13 +720,15 @@ again: | |||
| 720 | inode->i_ino, orig_offset); | 720 | inode->i_ino, orig_offset); |
| 721 | BUG_ON(ret); | 721 | BUG_ON(ret); |
| 722 | } | 722 | } |
| 723 | fi = btrfs_item_ptr(leaf, path->slots[0], | ||
| 724 | struct btrfs_file_extent_item); | ||
| 725 | if (del_nr == 0) { | 723 | if (del_nr == 0) { |
| 724 | fi = btrfs_item_ptr(leaf, path->slots[0], | ||
| 725 | struct btrfs_file_extent_item); | ||
| 726 | btrfs_set_file_extent_type(leaf, fi, | 726 | btrfs_set_file_extent_type(leaf, fi, |
| 727 | BTRFS_FILE_EXTENT_REG); | 727 | BTRFS_FILE_EXTENT_REG); |
| 728 | btrfs_mark_buffer_dirty(leaf); | 728 | btrfs_mark_buffer_dirty(leaf); |
| 729 | } else { | 729 | } else { |
| 730 | fi = btrfs_item_ptr(leaf, del_slot - 1, | ||
| 731 | struct btrfs_file_extent_item); | ||
| 730 | btrfs_set_file_extent_type(leaf, fi, | 732 | btrfs_set_file_extent_type(leaf, fi, |
| 731 | BTRFS_FILE_EXTENT_REG); | 733 | BTRFS_FILE_EXTENT_REG); |
| 732 | btrfs_set_file_extent_num_bytes(leaf, fi, | 734 | btrfs_set_file_extent_num_bytes(leaf, fi, |
diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c index 14ac4806e291..eeb4986ea7db 100644 --- a/fs/cachefiles/namei.c +++ b/fs/cachefiles/namei.c | |||
| @@ -348,7 +348,17 @@ int cachefiles_delete_object(struct cachefiles_cache *cache, | |||
| 348 | dir = dget_parent(object->dentry); | 348 | dir = dget_parent(object->dentry); |
| 349 | 349 | ||
| 350 | mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT); | 350 | mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT); |
| 351 | ret = cachefiles_bury_object(cache, dir, object->dentry); | 351 | |
| 352 | /* we need to check that our parent is _still_ our parent - it may have | ||
| 353 | * been renamed */ | ||
| 354 | if (dir == object->dentry->d_parent) { | ||
| 355 | ret = cachefiles_bury_object(cache, dir, object->dentry); | ||
| 356 | } else { | ||
| 357 | /* it got moved, presumably by cachefilesd culling it, so it's | ||
| 358 | * no longer in the key path and we can ignore it */ | ||
| 359 | mutex_unlock(&dir->d_inode->i_mutex); | ||
| 360 | ret = 0; | ||
| 361 | } | ||
| 352 | 362 | ||
| 353 | dput(dir); | 363 | dput(dir); |
| 354 | _leave(" = %d", ret); | 364 | _leave(" = %d", ret); |
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index c5c45de1a2ee..0ca9ec4a79c3 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
| @@ -301,6 +301,12 @@ static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, | |||
| 301 | u32 data; | 301 | u32 data; |
| 302 | void __user *dxferp; | 302 | void __user *dxferp; |
| 303 | int err; | 303 | int err; |
| 304 | int interface_id; | ||
| 305 | |||
| 306 | if (get_user(interface_id, &sgio32->interface_id)) | ||
| 307 | return -EFAULT; | ||
| 308 | if (interface_id != 'S') | ||
| 309 | return sys_ioctl(fd, cmd, (unsigned long)sgio32); | ||
| 304 | 310 | ||
| 305 | if (get_user(iovec_count, &sgio32->iovec_count)) | 311 | if (get_user(iovec_count, &sgio32->iovec_count)) |
| 306 | return -EFAULT; | 312 | return -EFAULT; |
| @@ -936,6 +942,7 @@ COMPATIBLE_IOCTL(TCSETSF) | |||
| 936 | COMPATIBLE_IOCTL(TIOCLINUX) | 942 | COMPATIBLE_IOCTL(TIOCLINUX) |
| 937 | COMPATIBLE_IOCTL(TIOCSBRK) | 943 | COMPATIBLE_IOCTL(TIOCSBRK) |
| 938 | COMPATIBLE_IOCTL(TIOCCBRK) | 944 | COMPATIBLE_IOCTL(TIOCCBRK) |
| 945 | COMPATIBLE_IOCTL(TIOCGSID) | ||
| 939 | COMPATIBLE_IOCTL(TIOCGICOUNT) | 946 | COMPATIBLE_IOCTL(TIOCGICOUNT) |
| 940 | /* Little t */ | 947 | /* Little t */ |
| 941 | COMPATIBLE_IOCTL(TIOCGETD) | 948 | COMPATIBLE_IOCTL(TIOCGETD) |
| @@ -1038,6 +1045,8 @@ COMPATIBLE_IOCTL(FIOQSIZE) | |||
| 1038 | #ifdef CONFIG_BLOCK | 1045 | #ifdef CONFIG_BLOCK |
| 1039 | /* loop */ | 1046 | /* loop */ |
| 1040 | IGNORE_IOCTL(LOOP_CLR_FD) | 1047 | IGNORE_IOCTL(LOOP_CLR_FD) |
| 1048 | /* md calls this on random blockdevs */ | ||
| 1049 | IGNORE_IOCTL(RAID_VERSION) | ||
| 1041 | /* SG stuff */ | 1050 | /* SG stuff */ |
| 1042 | COMPATIBLE_IOCTL(SG_SET_TIMEOUT) | 1051 | COMPATIBLE_IOCTL(SG_SET_TIMEOUT) |
| 1043 | COMPATIBLE_IOCTL(SG_GET_TIMEOUT) | 1052 | COMPATIBLE_IOCTL(SG_GET_TIMEOUT) |
| @@ -571,6 +571,9 @@ int setup_arg_pages(struct linux_binprm *bprm, | |||
| 571 | struct vm_area_struct *prev = NULL; | 571 | struct vm_area_struct *prev = NULL; |
| 572 | unsigned long vm_flags; | 572 | unsigned long vm_flags; |
| 573 | unsigned long stack_base; | 573 | unsigned long stack_base; |
| 574 | unsigned long stack_size; | ||
| 575 | unsigned long stack_expand; | ||
| 576 | unsigned long rlim_stack; | ||
| 574 | 577 | ||
| 575 | #ifdef CONFIG_STACK_GROWSUP | 578 | #ifdef CONFIG_STACK_GROWSUP |
| 576 | /* Limit stack size to 1GB */ | 579 | /* Limit stack size to 1GB */ |
| @@ -627,10 +630,23 @@ int setup_arg_pages(struct linux_binprm *bprm, | |||
| 627 | goto out_unlock; | 630 | goto out_unlock; |
| 628 | } | 631 | } |
| 629 | 632 | ||
| 633 | stack_expand = EXTRA_STACK_VM_PAGES * PAGE_SIZE; | ||
| 634 | stack_size = vma->vm_end - vma->vm_start; | ||
| 635 | /* | ||
| 636 | * Align this down to a page boundary as expand_stack | ||
| 637 | * will align it up. | ||
| 638 | */ | ||
| 639 | rlim_stack = rlimit(RLIMIT_STACK) & PAGE_MASK; | ||
| 630 | #ifdef CONFIG_STACK_GROWSUP | 640 | #ifdef CONFIG_STACK_GROWSUP |
| 631 | stack_base = vma->vm_end + EXTRA_STACK_VM_PAGES * PAGE_SIZE; | 641 | if (stack_size + stack_expand > rlim_stack) |
| 642 | stack_base = vma->vm_start + rlim_stack; | ||
| 643 | else | ||
| 644 | stack_base = vma->vm_end + stack_expand; | ||
| 632 | #else | 645 | #else |
| 633 | stack_base = vma->vm_start - EXTRA_STACK_VM_PAGES * PAGE_SIZE; | 646 | if (stack_size + stack_expand > rlim_stack) |
| 647 | stack_base = vma->vm_end - rlim_stack; | ||
| 648 | else | ||
| 649 | stack_base = vma->vm_start - stack_expand; | ||
| 634 | #endif | 650 | #endif |
| 635 | ret = expand_stack(vma, stack_base); | 651 | ret = expand_stack(vma, stack_base); |
| 636 | if (ret) | 652 | if (ret) |
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index 6d47379e794b..583e823307ae 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
| @@ -541,7 +541,7 @@ static int gfs2_bmap_alloc(struct inode *inode, const sector_t lblock, | |||
| 541 | *ptr++ = cpu_to_be64(bn++); | 541 | *ptr++ = cpu_to_be64(bn++); |
| 542 | break; | 542 | break; |
| 543 | } | 543 | } |
| 544 | } while (state != ALLOC_DATA); | 544 | } while ((state != ALLOC_DATA) || !dblock); |
| 545 | 545 | ||
| 546 | ip->i_height = height; | 546 | ip->i_height = height; |
| 547 | gfs2_add_inode_blocks(&ip->i_inode, alloced); | 547 | gfs2_add_inode_blocks(&ip->i_inode, alloced); |
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 8a102f731003..a86ed6381566 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
| @@ -725,7 +725,7 @@ static int init_journal(struct gfs2_sbd *sdp, int undo) | |||
| 725 | goto fail; | 725 | goto fail; |
| 726 | } | 726 | } |
| 727 | 727 | ||
| 728 | error = -EINVAL; | 728 | error = -EUSERS; |
| 729 | if (!gfs2_jindex_size(sdp)) { | 729 | if (!gfs2_jindex_size(sdp)) { |
| 730 | fs_err(sdp, "no journals!\n"); | 730 | fs_err(sdp, "no journals!\n"); |
| 731 | goto fail_jindex; | 731 | goto fail_jindex; |
diff --git a/fs/namei.c b/fs/namei.c index d62fdc875f22..a4855af776a8 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
| @@ -823,6 +823,17 @@ fail: | |||
| 823 | } | 823 | } |
| 824 | 824 | ||
| 825 | /* | 825 | /* |
| 826 | * This is a temporary kludge to deal with "automount" symlinks; proper | ||
| 827 | * solution is to trigger them on follow_mount(), so that do_lookup() | ||
| 828 | * would DTRT. To be killed before 2.6.34-final. | ||
| 829 | */ | ||
| 830 | static inline int follow_on_final(struct inode *inode, unsigned lookup_flags) | ||
| 831 | { | ||
| 832 | return inode && unlikely(inode->i_op->follow_link) && | ||
| 833 | ((lookup_flags & LOOKUP_FOLLOW) || S_ISDIR(inode->i_mode)); | ||
| 834 | } | ||
| 835 | |||
| 836 | /* | ||
| 826 | * Name resolution. | 837 | * Name resolution. |
| 827 | * This is the basic name resolution function, turning a pathname into | 838 | * This is the basic name resolution function, turning a pathname into |
| 828 | * the final dentry. We expect 'base' to be positive and a directory. | 839 | * the final dentry. We expect 'base' to be positive and a directory. |
| @@ -942,8 +953,7 @@ last_component: | |||
| 942 | if (err) | 953 | if (err) |
| 943 | break; | 954 | break; |
| 944 | inode = next.dentry->d_inode; | 955 | inode = next.dentry->d_inode; |
| 945 | if ((lookup_flags & LOOKUP_FOLLOW) | 956 | if (follow_on_final(inode, lookup_flags)) { |
| 946 | && inode && inode->i_op->follow_link) { | ||
| 947 | err = do_follow_link(&next, nd); | 957 | err = do_follow_link(&next, nd); |
| 948 | if (err) | 958 | if (err) |
| 949 | goto return_err; | 959 | goto return_err; |
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index e1d415e97849..0d289823e856 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c | |||
| @@ -342,6 +342,7 @@ static ssize_t nfs_direct_read_schedule_segment(struct nfs_direct_req *dreq, | |||
| 342 | data->res.fattr = &data->fattr; | 342 | data->res.fattr = &data->fattr; |
| 343 | data->res.eof = 0; | 343 | data->res.eof = 0; |
| 344 | data->res.count = bytes; | 344 | data->res.count = bytes; |
| 345 | nfs_fattr_init(&data->fattr); | ||
| 345 | msg.rpc_argp = &data->args; | 346 | msg.rpc_argp = &data->args; |
| 346 | msg.rpc_resp = &data->res; | 347 | msg.rpc_resp = &data->res; |
| 347 | 348 | ||
| @@ -575,6 +576,7 @@ static void nfs_direct_commit_schedule(struct nfs_direct_req *dreq) | |||
| 575 | data->res.count = 0; | 576 | data->res.count = 0; |
| 576 | data->res.fattr = &data->fattr; | 577 | data->res.fattr = &data->fattr; |
| 577 | data->res.verf = &data->verf; | 578 | data->res.verf = &data->verf; |
| 579 | nfs_fattr_init(&data->fattr); | ||
| 578 | 580 | ||
| 579 | NFS_PROTO(data->inode)->commit_setup(data, &msg); | 581 | NFS_PROTO(data->inode)->commit_setup(data, &msg); |
| 580 | 582 | ||
| @@ -766,6 +768,7 @@ static ssize_t nfs_direct_write_schedule_segment(struct nfs_direct_req *dreq, | |||
| 766 | data->res.fattr = &data->fattr; | 768 | data->res.fattr = &data->fattr; |
| 767 | data->res.count = bytes; | 769 | data->res.count = bytes; |
| 768 | data->res.verf = &data->verf; | 770 | data->res.verf = &data->verf; |
| 771 | nfs_fattr_init(&data->fattr); | ||
| 769 | 772 | ||
| 770 | task_setup_data.task = &data->task; | 773 | task_setup_data.task = &data->task; |
| 771 | task_setup_data.callback_data = data; | 774 | task_setup_data.callback_data = data; |
diff --git a/fs/nfs/fscache.c b/fs/nfs/fscache.c index fa588006588d..237874f1af23 100644 --- a/fs/nfs/fscache.c +++ b/fs/nfs/fscache.c | |||
| @@ -354,12 +354,11 @@ void nfs_fscache_reset_inode_cookie(struct inode *inode) | |||
| 354 | */ | 354 | */ |
| 355 | int nfs_fscache_release_page(struct page *page, gfp_t gfp) | 355 | int nfs_fscache_release_page(struct page *page, gfp_t gfp) |
| 356 | { | 356 | { |
| 357 | struct nfs_inode *nfsi = NFS_I(page->mapping->host); | ||
| 358 | struct fscache_cookie *cookie = nfsi->fscache; | ||
| 359 | |||
| 360 | BUG_ON(!cookie); | ||
| 361 | |||
| 362 | if (PageFsCache(page)) { | 357 | if (PageFsCache(page)) { |
| 358 | struct nfs_inode *nfsi = NFS_I(page->mapping->host); | ||
| 359 | struct fscache_cookie *cookie = nfsi->fscache; | ||
| 360 | |||
| 361 | BUG_ON(!cookie); | ||
| 363 | dfprintk(FSCACHE, "NFS: fscache releasepage (0x%p/0x%p/0x%p)\n", | 362 | dfprintk(FSCACHE, "NFS: fscache releasepage (0x%p/0x%p/0x%p)\n", |
| 364 | cookie, page, nfsi); | 363 | cookie, page, nfsi); |
| 365 | 364 | ||
diff --git a/fs/nfs/mount_clnt.c b/fs/nfs/mount_clnt.c index 0adefc40cc89..59047f8d7d72 100644 --- a/fs/nfs/mount_clnt.c +++ b/fs/nfs/mount_clnt.c | |||
| @@ -120,7 +120,7 @@ static struct { | |||
| 120 | { .status = MNT3ERR_INVAL, .errno = -EINVAL, }, | 120 | { .status = MNT3ERR_INVAL, .errno = -EINVAL, }, |
| 121 | { .status = MNT3ERR_NAMETOOLONG, .errno = -ENAMETOOLONG, }, | 121 | { .status = MNT3ERR_NAMETOOLONG, .errno = -ENAMETOOLONG, }, |
| 122 | { .status = MNT3ERR_NOTSUPP, .errno = -ENOTSUPP, }, | 122 | { .status = MNT3ERR_NOTSUPP, .errno = -ENOTSUPP, }, |
| 123 | { .status = MNT3ERR_SERVERFAULT, .errno = -ESERVERFAULT, }, | 123 | { .status = MNT3ERR_SERVERFAULT, .errno = -EREMOTEIO, }, |
| 124 | }; | 124 | }; |
| 125 | 125 | ||
| 126 | struct mountres { | 126 | struct mountres { |
diff --git a/fs/nfs/nfs2xdr.c b/fs/nfs/nfs2xdr.c index 5e078b222b4e..7bc2da8efd4a 100644 --- a/fs/nfs/nfs2xdr.c +++ b/fs/nfs/nfs2xdr.c | |||
| @@ -699,7 +699,7 @@ static struct { | |||
| 699 | { NFSERR_BAD_COOKIE, -EBADCOOKIE }, | 699 | { NFSERR_BAD_COOKIE, -EBADCOOKIE }, |
| 700 | { NFSERR_NOTSUPP, -ENOTSUPP }, | 700 | { NFSERR_NOTSUPP, -ENOTSUPP }, |
| 701 | { NFSERR_TOOSMALL, -ETOOSMALL }, | 701 | { NFSERR_TOOSMALL, -ETOOSMALL }, |
| 702 | { NFSERR_SERVERFAULT, -ESERVERFAULT }, | 702 | { NFSERR_SERVERFAULT, -EREMOTEIO }, |
| 703 | { NFSERR_BADTYPE, -EBADTYPE }, | 703 | { NFSERR_BADTYPE, -EBADTYPE }, |
| 704 | { NFSERR_JUKEBOX, -EJUKEBOX }, | 704 | { NFSERR_JUKEBOX, -EJUKEBOX }, |
| 705 | { -1, -EIO } | 705 | { -1, -EIO } |
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index e437fd6a819f..5cd5184b56db 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
| @@ -4631,7 +4631,7 @@ static int decode_sequence(struct xdr_stream *xdr, | |||
| 4631 | * If the server returns different values for sessionID, slotID or | 4631 | * If the server returns different values for sessionID, slotID or |
| 4632 | * sequence number, the server is looney tunes. | 4632 | * sequence number, the server is looney tunes. |
| 4633 | */ | 4633 | */ |
| 4634 | status = -ESERVERFAULT; | 4634 | status = -EREMOTEIO; |
| 4635 | 4635 | ||
| 4636 | if (memcmp(id.data, res->sr_session->sess_id.data, | 4636 | if (memcmp(id.data, res->sr_session->sess_id.data, |
| 4637 | NFS4_MAX_SESSIONID_LEN)) { | 4637 | NFS4_MAX_SESSIONID_LEN)) { |
| @@ -5774,7 +5774,7 @@ static struct { | |||
| 5774 | { NFS4ERR_BAD_COOKIE, -EBADCOOKIE }, | 5774 | { NFS4ERR_BAD_COOKIE, -EBADCOOKIE }, |
| 5775 | { NFS4ERR_NOTSUPP, -ENOTSUPP }, | 5775 | { NFS4ERR_NOTSUPP, -ENOTSUPP }, |
| 5776 | { NFS4ERR_TOOSMALL, -ETOOSMALL }, | 5776 | { NFS4ERR_TOOSMALL, -ETOOSMALL }, |
| 5777 | { NFS4ERR_SERVERFAULT, -ESERVERFAULT }, | 5777 | { NFS4ERR_SERVERFAULT, -EREMOTEIO }, |
| 5778 | { NFS4ERR_BADTYPE, -EBADTYPE }, | 5778 | { NFS4ERR_BADTYPE, -EBADTYPE }, |
| 5779 | { NFS4ERR_LOCKED, -EAGAIN }, | 5779 | { NFS4ERR_LOCKED, -EAGAIN }, |
| 5780 | { NFS4ERR_SYMLINK, -ELOOP }, | 5780 | { NFS4ERR_SYMLINK, -ELOOP }, |
| @@ -5801,7 +5801,7 @@ nfs4_stat_to_errno(int stat) | |||
| 5801 | } | 5801 | } |
| 5802 | if (stat <= 10000 || stat > 10100) { | 5802 | if (stat <= 10000 || stat > 10100) { |
| 5803 | /* The server is looney tunes. */ | 5803 | /* The server is looney tunes. */ |
| 5804 | return -ESERVERFAULT; | 5804 | return -EREMOTEIO; |
| 5805 | } | 5805 | } |
| 5806 | /* If we cannot translate the error, the recovery routines should | 5806 | /* If we cannot translate the error, the recovery routines should |
| 5807 | * handle it. | 5807 | * handle it. |
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 7b54b8bb101f..d63d964a0392 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
| @@ -1598,8 +1598,7 @@ int nfs_migrate_page(struct address_space *mapping, struct page *newpage, | |||
| 1598 | struct nfs_page *req; | 1598 | struct nfs_page *req; |
| 1599 | int ret; | 1599 | int ret; |
| 1600 | 1600 | ||
| 1601 | if (PageFsCache(page)) | 1601 | nfs_fscache_release_page(page, GFP_KERNEL); |
| 1602 | nfs_fscache_release_page(page, GFP_KERNEL); | ||
| 1603 | 1602 | ||
| 1604 | req = nfs_find_and_lock_request(page); | 1603 | req = nfs_find_and_lock_request(page); |
| 1605 | ret = PTR_ERR(req); | 1604 | ret = PTR_ERR(req); |
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 97d79eff6b7f..8715d194561a 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
| @@ -752,7 +752,8 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, | |||
| 752 | flags, current_cred()); | 752 | flags, current_cred()); |
| 753 | if (IS_ERR(*filp)) | 753 | if (IS_ERR(*filp)) |
| 754 | host_err = PTR_ERR(*filp); | 754 | host_err = PTR_ERR(*filp); |
| 755 | host_err = ima_file_check(*filp, access); | 755 | else |
| 756 | host_err = ima_file_check(*filp, access); | ||
| 756 | out_nfserr: | 757 | out_nfserr: |
| 757 | err = nfserrno(host_err); | 758 | err = nfserrno(host_err); |
| 758 | out: | 759 | out: |
diff --git a/fs/proc/base.c b/fs/proc/base.c index e42bbd843ed1..58324c299165 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
| @@ -2369,16 +2369,30 @@ static void *proc_self_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
| 2369 | { | 2369 | { |
| 2370 | struct pid_namespace *ns = dentry->d_sb->s_fs_info; | 2370 | struct pid_namespace *ns = dentry->d_sb->s_fs_info; |
| 2371 | pid_t tgid = task_tgid_nr_ns(current, ns); | 2371 | pid_t tgid = task_tgid_nr_ns(current, ns); |
| 2372 | char tmp[PROC_NUMBUF]; | 2372 | char *name = ERR_PTR(-ENOENT); |
| 2373 | if (!tgid) | 2373 | if (tgid) { |
| 2374 | return ERR_PTR(-ENOENT); | 2374 | name = __getname(); |
| 2375 | sprintf(tmp, "%d", task_tgid_nr_ns(current, ns)); | 2375 | if (!name) |
| 2376 | return ERR_PTR(vfs_follow_link(nd,tmp)); | 2376 | name = ERR_PTR(-ENOMEM); |
| 2377 | else | ||
| 2378 | sprintf(name, "%d", tgid); | ||
| 2379 | } | ||
| 2380 | nd_set_link(nd, name); | ||
| 2381 | return NULL; | ||
| 2382 | } | ||
| 2383 | |||
| 2384 | static void proc_self_put_link(struct dentry *dentry, struct nameidata *nd, | ||
| 2385 | void *cookie) | ||
| 2386 | { | ||
| 2387 | char *s = nd_get_link(nd); | ||
| 2388 | if (!IS_ERR(s)) | ||
| 2389 | __putname(s); | ||
| 2377 | } | 2390 | } |
| 2378 | 2391 | ||
| 2379 | static const struct inode_operations proc_self_inode_operations = { | 2392 | static const struct inode_operations proc_self_inode_operations = { |
| 2380 | .readlink = proc_self_readlink, | 2393 | .readlink = proc_self_readlink, |
| 2381 | .follow_link = proc_self_follow_link, | 2394 | .follow_link = proc_self_follow_link, |
| 2395 | .put_link = proc_self_put_link, | ||
| 2382 | }; | 2396 | }; |
| 2383 | 2397 | ||
| 2384 | /* | 2398 | /* |
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index 9087b10209e6..2df0f5c7c60b 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
| @@ -1497,9 +1497,11 @@ struct inode *reiserfs_iget(struct super_block *s, const struct cpu_key *key) | |||
| 1497 | 1497 | ||
| 1498 | args.objectid = key->on_disk_key.k_objectid; | 1498 | args.objectid = key->on_disk_key.k_objectid; |
| 1499 | args.dirid = key->on_disk_key.k_dir_id; | 1499 | args.dirid = key->on_disk_key.k_dir_id; |
| 1500 | reiserfs_write_unlock(s); | ||
| 1500 | inode = iget5_locked(s, key->on_disk_key.k_objectid, | 1501 | inode = iget5_locked(s, key->on_disk_key.k_objectid, |
| 1501 | reiserfs_find_actor, reiserfs_init_locked_inode, | 1502 | reiserfs_find_actor, reiserfs_init_locked_inode, |
| 1502 | (void *)(&args)); | 1503 | (void *)(&args)); |
| 1504 | reiserfs_write_lock(s); | ||
| 1503 | if (!inode) | 1505 | if (!inode) |
| 1504 | return ERR_PTR(-ENOMEM); | 1506 | return ERR_PTR(-ENOMEM); |
| 1505 | 1507 | ||
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index 220b758523ae..6a06a1d1ea7b 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
| @@ -81,24 +81,23 @@ int sysfs_sd_setattr(struct sysfs_dirent *sd, struct iattr * iattr) | |||
| 81 | if (!sd_attrs) | 81 | if (!sd_attrs) |
| 82 | return -ENOMEM; | 82 | return -ENOMEM; |
| 83 | sd->s_iattr = sd_attrs; | 83 | sd->s_iattr = sd_attrs; |
| 84 | } else { | 84 | } |
| 85 | /* attributes were changed at least once in past */ | 85 | /* attributes were changed at least once in past */ |
| 86 | iattrs = &sd_attrs->ia_iattr; | 86 | iattrs = &sd_attrs->ia_iattr; |
| 87 | 87 | ||
| 88 | if (ia_valid & ATTR_UID) | 88 | if (ia_valid & ATTR_UID) |
| 89 | iattrs->ia_uid = iattr->ia_uid; | 89 | iattrs->ia_uid = iattr->ia_uid; |
| 90 | if (ia_valid & ATTR_GID) | 90 | if (ia_valid & ATTR_GID) |
| 91 | iattrs->ia_gid = iattr->ia_gid; | 91 | iattrs->ia_gid = iattr->ia_gid; |
| 92 | if (ia_valid & ATTR_ATIME) | 92 | if (ia_valid & ATTR_ATIME) |
| 93 | iattrs->ia_atime = iattr->ia_atime; | 93 | iattrs->ia_atime = iattr->ia_atime; |
| 94 | if (ia_valid & ATTR_MTIME) | 94 | if (ia_valid & ATTR_MTIME) |
| 95 | iattrs->ia_mtime = iattr->ia_mtime; | 95 | iattrs->ia_mtime = iattr->ia_mtime; |
| 96 | if (ia_valid & ATTR_CTIME) | 96 | if (ia_valid & ATTR_CTIME) |
| 97 | iattrs->ia_ctime = iattr->ia_ctime; | 97 | iattrs->ia_ctime = iattr->ia_ctime; |
| 98 | if (ia_valid & ATTR_MODE) { | 98 | if (ia_valid & ATTR_MODE) { |
| 99 | umode_t mode = iattr->ia_mode; | 99 | umode_t mode = iattr->ia_mode; |
| 100 | iattrs->ia_mode = sd->s_mode = mode; | 100 | iattrs->ia_mode = sd->s_mode = mode; |
| 101 | } | ||
| 102 | } | 101 | } |
| 103 | return 0; | 102 | return 0; |
| 104 | } | 103 | } |
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index ab94335b4bb9..6816be6c3f77 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * linux/include/asm-arm/hardware/amba.h | 2 | * linux/include/amba/bus.h |
| 3 | * | ||
| 4 | * This device type deals with ARM PrimeCells and anything else that | ||
| 5 | * presents a proper CID (0xB105F00D) at the end of the I/O register | ||
| 6 | * region or that is derived from a PrimeCell. | ||
| 3 | * | 7 | * |
| 4 | * Copyright (C) 2003 Deep Blue Solutions Ltd, All Rights Reserved. | 8 | * Copyright (C) 2003 Deep Blue Solutions Ltd, All Rights Reserved. |
| 5 | * | 9 | * |
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 5c8018977efa..1896e868854f 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -461,8 +461,7 @@ struct request_queue | |||
| 461 | #define QUEUE_FLAG_NONROT 14 /* non-rotational device (SSD) */ | 461 | #define QUEUE_FLAG_NONROT 14 /* non-rotational device (SSD) */ |
| 462 | #define QUEUE_FLAG_VIRT QUEUE_FLAG_NONROT /* paravirt device */ | 462 | #define QUEUE_FLAG_VIRT QUEUE_FLAG_NONROT /* paravirt device */ |
| 463 | #define QUEUE_FLAG_IO_STAT 15 /* do IO stats */ | 463 | #define QUEUE_FLAG_IO_STAT 15 /* do IO stats */ |
| 464 | #define QUEUE_FLAG_CQ 16 /* hardware does queuing */ | 464 | #define QUEUE_FLAG_DISCARD 16 /* supports DISCARD */ |
| 465 | #define QUEUE_FLAG_DISCARD 17 /* supports DISCARD */ | ||
| 466 | 465 | ||
| 467 | #define QUEUE_FLAG_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \ | 466 | #define QUEUE_FLAG_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \ |
| 468 | (1 << QUEUE_FLAG_CLUSTER) | \ | 467 | (1 << QUEUE_FLAG_CLUSTER) | \ |
| @@ -586,7 +585,6 @@ enum { | |||
| 586 | 585 | ||
| 587 | #define blk_queue_plugged(q) test_bit(QUEUE_FLAG_PLUGGED, &(q)->queue_flags) | 586 | #define blk_queue_plugged(q) test_bit(QUEUE_FLAG_PLUGGED, &(q)->queue_flags) |
| 588 | #define blk_queue_tagged(q) test_bit(QUEUE_FLAG_QUEUED, &(q)->queue_flags) | 587 | #define blk_queue_tagged(q) test_bit(QUEUE_FLAG_QUEUED, &(q)->queue_flags) |
| 589 | #define blk_queue_queuing(q) test_bit(QUEUE_FLAG_CQ, &(q)->queue_flags) | ||
| 590 | #define blk_queue_stopped(q) test_bit(QUEUE_FLAG_STOPPED, &(q)->queue_flags) | 588 | #define blk_queue_stopped(q) test_bit(QUEUE_FLAG_STOPPED, &(q)->queue_flags) |
| 591 | #define blk_queue_nomerges(q) test_bit(QUEUE_FLAG_NOMERGES, &(q)->queue_flags) | 589 | #define blk_queue_nomerges(q) test_bit(QUEUE_FLAG_NOMERGES, &(q)->queue_flags) |
| 592 | #define blk_queue_nonrot(q) test_bit(QUEUE_FLAG_NONROT, &(q)->queue_flags) | 590 | #define blk_queue_nonrot(q) test_bit(QUEUE_FLAG_NONROT, &(q)->queue_flags) |
diff --git a/include/linux/fs.h b/include/linux/fs.h index b1bcb275b596..ebb1cd5bc241 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -729,6 +729,7 @@ struct inode { | |||
| 729 | uid_t i_uid; | 729 | uid_t i_uid; |
| 730 | gid_t i_gid; | 730 | gid_t i_gid; |
| 731 | dev_t i_rdev; | 731 | dev_t i_rdev; |
| 732 | unsigned int i_blkbits; | ||
| 732 | u64 i_version; | 733 | u64 i_version; |
| 733 | loff_t i_size; | 734 | loff_t i_size; |
| 734 | #ifdef __NEED_I_SIZE_ORDERED | 735 | #ifdef __NEED_I_SIZE_ORDERED |
| @@ -738,7 +739,6 @@ struct inode { | |||
| 738 | struct timespec i_mtime; | 739 | struct timespec i_mtime; |
| 739 | struct timespec i_ctime; | 740 | struct timespec i_ctime; |
| 740 | blkcnt_t i_blocks; | 741 | blkcnt_t i_blocks; |
| 741 | unsigned int i_blkbits; | ||
| 742 | unsigned short i_bytes; | 742 | unsigned short i_bytes; |
| 743 | umode_t i_mode; | 743 | umode_t i_mode; |
| 744 | spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */ | 744 | spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */ |
diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h index 070ba0621738..5977b724f7c6 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h | |||
| @@ -44,7 +44,7 @@ static inline int hw_breakpoint_type(struct perf_event *bp) | |||
| 44 | return bp->attr.bp_type; | 44 | return bp->attr.bp_type; |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | static inline int hw_breakpoint_len(struct perf_event *bp) | 47 | static inline unsigned long hw_breakpoint_len(struct perf_event *bp) |
| 48 | { | 48 | { |
| 49 | return bp->attr.bp_len; | 49 | return bp->attr.bp_len; |
| 50 | } | 50 | } |
diff --git a/include/linux/input.h b/include/linux/input.h index 735ceaf1bc2d..663208afb64c 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
| @@ -376,6 +376,7 @@ struct input_absinfo { | |||
| 376 | #define KEY_DISPLAY_OFF 245 /* display device to off state */ | 376 | #define KEY_DISPLAY_OFF 245 /* display device to off state */ |
| 377 | 377 | ||
| 378 | #define KEY_WIMAX 246 | 378 | #define KEY_WIMAX 246 |
| 379 | #define KEY_RFKILL 247 /* Key that controls all radios */ | ||
| 379 | 380 | ||
| 380 | /* Range 248 - 255 is reserved for special needs of AT keyboard driver */ | 381 | /* Range 248 - 255 is reserved for special needs of AT keyboard driver */ |
| 381 | 382 | ||
diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h index 6f6c5f300af6..bc0fc795bd35 100644 --- a/include/linux/kfifo.h +++ b/include/linux/kfifo.h | |||
| @@ -124,7 +124,7 @@ extern __must_check unsigned int kfifo_out_peek(struct kfifo *fifo, | |||
| 124 | */ | 124 | */ |
| 125 | static inline bool kfifo_initialized(struct kfifo *fifo) | 125 | static inline bool kfifo_initialized(struct kfifo *fifo) |
| 126 | { | 126 | { |
| 127 | return fifo->buffer != 0; | 127 | return fifo->buffer != NULL; |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | /** | 130 | /** |
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 8fa71874113f..a177698d95e2 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
| @@ -211,11 +211,9 @@ struct perf_event_attr { | |||
| 211 | __u32 wakeup_watermark; /* bytes before wakeup */ | 211 | __u32 wakeup_watermark; /* bytes before wakeup */ |
| 212 | }; | 212 | }; |
| 213 | 213 | ||
| 214 | __u32 __reserved_2; | ||
| 215 | |||
| 216 | __u64 bp_addr; | ||
| 217 | __u32 bp_type; | 214 | __u32 bp_type; |
| 218 | __u32 bp_len; | 215 | __u64 bp_addr; |
| 216 | __u64 bp_len; | ||
| 219 | }; | 217 | }; |
| 220 | 218 | ||
| 221 | /* | 219 | /* |
diff --git a/kernel/hw_breakpoint.c b/kernel/hw_breakpoint.c index 8a5c7d55ac9f..967e66143e11 100644 --- a/kernel/hw_breakpoint.c +++ b/kernel/hw_breakpoint.c | |||
| @@ -360,8 +360,8 @@ EXPORT_SYMBOL_GPL(register_user_hw_breakpoint); | |||
| 360 | int modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr) | 360 | int modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr) |
| 361 | { | 361 | { |
| 362 | u64 old_addr = bp->attr.bp_addr; | 362 | u64 old_addr = bp->attr.bp_addr; |
| 363 | u64 old_len = bp->attr.bp_len; | ||
| 363 | int old_type = bp->attr.bp_type; | 364 | int old_type = bp->attr.bp_type; |
| 364 | int old_len = bp->attr.bp_len; | ||
| 365 | int err = 0; | 365 | int err = 0; |
| 366 | 366 | ||
| 367 | perf_event_disable(bp); | 367 | perf_event_disable(bp); |
diff --git a/kernel/kfifo.c b/kernel/kfifo.c index 498cabba225e..35edbe22e9a9 100644 --- a/kernel/kfifo.c +++ b/kernel/kfifo.c | |||
| @@ -80,7 +80,7 @@ int kfifo_alloc(struct kfifo *fifo, unsigned int size, gfp_t gfp_mask) | |||
| 80 | 80 | ||
| 81 | buffer = kmalloc(size, gfp_mask); | 81 | buffer = kmalloc(size, gfp_mask); |
| 82 | if (!buffer) { | 82 | if (!buffer) { |
| 83 | _kfifo_init(fifo, 0, 0); | 83 | _kfifo_init(fifo, NULL, 0); |
| 84 | return -ENOMEM; | 84 | return -ENOMEM; |
| 85 | } | 85 | } |
| 86 | 86 | ||
| @@ -97,6 +97,7 @@ EXPORT_SYMBOL(kfifo_alloc); | |||
| 97 | void kfifo_free(struct kfifo *fifo) | 97 | void kfifo_free(struct kfifo *fifo) |
| 98 | { | 98 | { |
| 99 | kfree(fifo->buffer); | 99 | kfree(fifo->buffer); |
| 100 | _kfifo_init(fifo, NULL, 0); | ||
| 100 | } | 101 | } |
| 101 | EXPORT_SYMBOL(kfifo_free); | 102 | EXPORT_SYMBOL(kfifo_free); |
| 102 | 103 | ||
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index d27746bd3a06..2ae7409bf38f 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
| @@ -3259,8 +3259,6 @@ static void perf_event_task_output(struct perf_event *event, | |||
| 3259 | task_event->event_id.tid = perf_event_tid(event, task); | 3259 | task_event->event_id.tid = perf_event_tid(event, task); |
| 3260 | task_event->event_id.ptid = perf_event_tid(event, current); | 3260 | task_event->event_id.ptid = perf_event_tid(event, current); |
| 3261 | 3261 | ||
| 3262 | task_event->event_id.time = perf_clock(); | ||
| 3263 | |||
| 3264 | perf_output_put(&handle, task_event->event_id); | 3262 | perf_output_put(&handle, task_event->event_id); |
| 3265 | 3263 | ||
| 3266 | perf_output_end(&handle); | 3264 | perf_output_end(&handle); |
| @@ -3268,7 +3266,7 @@ static void perf_event_task_output(struct perf_event *event, | |||
| 3268 | 3266 | ||
| 3269 | static int perf_event_task_match(struct perf_event *event) | 3267 | static int perf_event_task_match(struct perf_event *event) |
| 3270 | { | 3268 | { |
| 3271 | if (event->state != PERF_EVENT_STATE_ACTIVE) | 3269 | if (event->state < PERF_EVENT_STATE_INACTIVE) |
| 3272 | return 0; | 3270 | return 0; |
| 3273 | 3271 | ||
| 3274 | if (event->cpu != -1 && event->cpu != smp_processor_id()) | 3272 | if (event->cpu != -1 && event->cpu != smp_processor_id()) |
| @@ -3300,7 +3298,7 @@ static void perf_event_task_event(struct perf_task_event *task_event) | |||
| 3300 | cpuctx = &get_cpu_var(perf_cpu_context); | 3298 | cpuctx = &get_cpu_var(perf_cpu_context); |
| 3301 | perf_event_task_ctx(&cpuctx->ctx, task_event); | 3299 | perf_event_task_ctx(&cpuctx->ctx, task_event); |
| 3302 | if (!ctx) | 3300 | if (!ctx) |
| 3303 | ctx = rcu_dereference(task_event->task->perf_event_ctxp); | 3301 | ctx = rcu_dereference(current->perf_event_ctxp); |
| 3304 | if (ctx) | 3302 | if (ctx) |
| 3305 | perf_event_task_ctx(ctx, task_event); | 3303 | perf_event_task_ctx(ctx, task_event); |
| 3306 | put_cpu_var(perf_cpu_context); | 3304 | put_cpu_var(perf_cpu_context); |
| @@ -3331,6 +3329,7 @@ static void perf_event_task(struct task_struct *task, | |||
| 3331 | /* .ppid */ | 3329 | /* .ppid */ |
| 3332 | /* .tid */ | 3330 | /* .tid */ |
| 3333 | /* .ptid */ | 3331 | /* .ptid */ |
| 3332 | .time = perf_clock(), | ||
| 3334 | }, | 3333 | }, |
| 3335 | }; | 3334 | }; |
| 3336 | 3335 | ||
| @@ -3380,7 +3379,7 @@ static void perf_event_comm_output(struct perf_event *event, | |||
| 3380 | 3379 | ||
| 3381 | static int perf_event_comm_match(struct perf_event *event) | 3380 | static int perf_event_comm_match(struct perf_event *event) |
| 3382 | { | 3381 | { |
| 3383 | if (event->state != PERF_EVENT_STATE_ACTIVE) | 3382 | if (event->state < PERF_EVENT_STATE_INACTIVE) |
| 3384 | return 0; | 3383 | return 0; |
| 3385 | 3384 | ||
| 3386 | if (event->cpu != -1 && event->cpu != smp_processor_id()) | 3385 | if (event->cpu != -1 && event->cpu != smp_processor_id()) |
| @@ -3500,7 +3499,7 @@ static void perf_event_mmap_output(struct perf_event *event, | |||
| 3500 | static int perf_event_mmap_match(struct perf_event *event, | 3499 | static int perf_event_mmap_match(struct perf_event *event, |
| 3501 | struct perf_mmap_event *mmap_event) | 3500 | struct perf_mmap_event *mmap_event) |
| 3502 | { | 3501 | { |
| 3503 | if (event->state != PERF_EVENT_STATE_ACTIVE) | 3502 | if (event->state < PERF_EVENT_STATE_INACTIVE) |
| 3504 | return 0; | 3503 | return 0; |
| 3505 | 3504 | ||
| 3506 | if (event->cpu != -1 && event->cpu != smp_processor_id()) | 3505 | if (event->cpu != -1 && event->cpu != smp_processor_id()) |
| @@ -4580,7 +4579,7 @@ static int perf_copy_attr(struct perf_event_attr __user *uattr, | |||
| 4580 | if (attr->type >= PERF_TYPE_MAX) | 4579 | if (attr->type >= PERF_TYPE_MAX) |
| 4581 | return -EINVAL; | 4580 | return -EINVAL; |
| 4582 | 4581 | ||
| 4583 | if (attr->__reserved_1 || attr->__reserved_2) | 4582 | if (attr->__reserved_1) |
| 4584 | return -EINVAL; | 4583 | return -EINVAL; |
| 4585 | 4584 | ||
| 4586 | if (attr->sample_type & ~(PERF_SAMPLE_MAX-1)) | 4585 | if (attr->sample_type & ~(PERF_SAMPLE_MAX-1)) |
diff --git a/kernel/softirq.c b/kernel/softirq.c index a09502e2ef75..7c1a67ef0274 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
| @@ -500,22 +500,17 @@ EXPORT_SYMBOL(tasklet_kill); | |||
| 500 | */ | 500 | */ |
| 501 | 501 | ||
| 502 | /* | 502 | /* |
| 503 | * The trampoline is called when the hrtimer expires. If this is | 503 | * The trampoline is called when the hrtimer expires. It schedules a tasklet |
| 504 | * called from the hrtimer interrupt then we schedule the tasklet as | 504 | * to run __tasklet_hrtimer_trampoline() which in turn will call the intended |
| 505 | * the timer callback function expects to run in softirq context. If | 505 | * hrtimer callback, but from softirq context. |
| 506 | * it's called in softirq context anyway (i.e. high resolution timers | ||
| 507 | * disabled) then the hrtimer callback is called right away. | ||
| 508 | */ | 506 | */ |
| 509 | static enum hrtimer_restart __hrtimer_tasklet_trampoline(struct hrtimer *timer) | 507 | static enum hrtimer_restart __hrtimer_tasklet_trampoline(struct hrtimer *timer) |
| 510 | { | 508 | { |
| 511 | struct tasklet_hrtimer *ttimer = | 509 | struct tasklet_hrtimer *ttimer = |
| 512 | container_of(timer, struct tasklet_hrtimer, timer); | 510 | container_of(timer, struct tasklet_hrtimer, timer); |
| 513 | 511 | ||
| 514 | if (hrtimer_is_hres_active(timer)) { | 512 | tasklet_hi_schedule(&ttimer->tasklet); |
| 515 | tasklet_hi_schedule(&ttimer->tasklet); | 513 | return HRTIMER_NORESTART; |
| 516 | return HRTIMER_NORESTART; | ||
| 517 | } | ||
| 518 | return ttimer->function(timer); | ||
| 519 | } | 514 | } |
| 520 | 515 | ||
| 521 | /* | 516 | /* |
diff --git a/kernel/sys.c b/kernel/sys.c index 26a6b73a6b85..18bde979f346 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
| @@ -222,6 +222,7 @@ SYSCALL_DEFINE2(getpriority, int, which, int, who) | |||
| 222 | if (which > PRIO_USER || which < PRIO_PROCESS) | 222 | if (which > PRIO_USER || which < PRIO_PROCESS) |
| 223 | return -EINVAL; | 223 | return -EINVAL; |
| 224 | 224 | ||
| 225 | rcu_read_lock(); | ||
| 225 | read_lock(&tasklist_lock); | 226 | read_lock(&tasklist_lock); |
| 226 | switch (which) { | 227 | switch (which) { |
| 227 | case PRIO_PROCESS: | 228 | case PRIO_PROCESS: |
| @@ -267,6 +268,7 @@ SYSCALL_DEFINE2(getpriority, int, which, int, who) | |||
| 267 | } | 268 | } |
| 268 | out_unlock: | 269 | out_unlock: |
| 269 | read_unlock(&tasklist_lock); | 270 | read_unlock(&tasklist_lock); |
| 271 | rcu_read_unlock(); | ||
| 270 | 272 | ||
| 271 | return retval; | 273 | return retval; |
| 272 | } | 274 | } |
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 6ea90c0e2c96..50b1b8239806 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c | |||
| @@ -689,7 +689,7 @@ static int create_trace_probe(int argc, char **argv) | |||
| 689 | return -EINVAL; | 689 | return -EINVAL; |
| 690 | } | 690 | } |
| 691 | /* an address specified */ | 691 | /* an address specified */ |
| 692 | ret = strict_strtoul(&argv[0][2], 0, (unsigned long *)&addr); | 692 | ret = strict_strtoul(&argv[1][0], 0, (unsigned long *)&addr); |
| 693 | if (ret) { | 693 | if (ret) { |
| 694 | pr_info("Failed to parse address.\n"); | 694 | pr_info("Failed to parse address.\n"); |
| 695 | return ret; | 695 | return ret; |
diff --git a/kernel/trace/trace_stack.c b/kernel/trace/trace_stack.c index 678a5120ee30..f4bc9b27de5f 100644 --- a/kernel/trace/trace_stack.c +++ b/kernel/trace/trace_stack.c | |||
| @@ -157,6 +157,7 @@ stack_max_size_write(struct file *filp, const char __user *ubuf, | |||
| 157 | unsigned long val, flags; | 157 | unsigned long val, flags; |
| 158 | char buf[64]; | 158 | char buf[64]; |
| 159 | int ret; | 159 | int ret; |
| 160 | int cpu; | ||
| 160 | 161 | ||
| 161 | if (count >= sizeof(buf)) | 162 | if (count >= sizeof(buf)) |
| 162 | return -EINVAL; | 163 | return -EINVAL; |
| @@ -171,9 +172,20 @@ stack_max_size_write(struct file *filp, const char __user *ubuf, | |||
| 171 | return ret; | 172 | return ret; |
| 172 | 173 | ||
| 173 | local_irq_save(flags); | 174 | local_irq_save(flags); |
| 175 | |||
| 176 | /* | ||
| 177 | * In case we trace inside arch_spin_lock() or after (NMI), | ||
| 178 | * we will cause circular lock, so we also need to increase | ||
| 179 | * the percpu trace_active here. | ||
| 180 | */ | ||
| 181 | cpu = smp_processor_id(); | ||
| 182 | per_cpu(trace_active, cpu)++; | ||
| 183 | |||
| 174 | arch_spin_lock(&max_stack_lock); | 184 | arch_spin_lock(&max_stack_lock); |
| 175 | *ptr = val; | 185 | *ptr = val; |
| 176 | arch_spin_unlock(&max_stack_lock); | 186 | arch_spin_unlock(&max_stack_lock); |
| 187 | |||
| 188 | per_cpu(trace_active, cpu)--; | ||
| 177 | local_irq_restore(flags); | 189 | local_irq_restore(flags); |
| 178 | 190 | ||
| 179 | return count; | 191 | return count; |
| @@ -206,7 +218,13 @@ t_next(struct seq_file *m, void *v, loff_t *pos) | |||
| 206 | 218 | ||
| 207 | static void *t_start(struct seq_file *m, loff_t *pos) | 219 | static void *t_start(struct seq_file *m, loff_t *pos) |
| 208 | { | 220 | { |
| 221 | int cpu; | ||
| 222 | |||
| 209 | local_irq_disable(); | 223 | local_irq_disable(); |
| 224 | |||
| 225 | cpu = smp_processor_id(); | ||
| 226 | per_cpu(trace_active, cpu)++; | ||
| 227 | |||
| 210 | arch_spin_lock(&max_stack_lock); | 228 | arch_spin_lock(&max_stack_lock); |
| 211 | 229 | ||
| 212 | if (*pos == 0) | 230 | if (*pos == 0) |
| @@ -217,7 +235,13 @@ static void *t_start(struct seq_file *m, loff_t *pos) | |||
| 217 | 235 | ||
| 218 | static void t_stop(struct seq_file *m, void *p) | 236 | static void t_stop(struct seq_file *m, void *p) |
| 219 | { | 237 | { |
| 238 | int cpu; | ||
| 239 | |||
| 220 | arch_spin_unlock(&max_stack_lock); | 240 | arch_spin_unlock(&max_stack_lock); |
| 241 | |||
| 242 | cpu = smp_processor_id(); | ||
| 243 | per_cpu(trace_active, cpu)--; | ||
| 244 | |||
| 221 | local_irq_enable(); | 245 | local_irq_enable(); |
| 222 | } | 246 | } |
| 223 | 247 | ||
| @@ -156,10 +156,12 @@ static int sub_alloc(struct idr *idp, int *starting_id, struct idr_layer **pa) | |||
| 156 | id = (id | ((1 << (IDR_BITS * l)) - 1)) + 1; | 156 | id = (id | ((1 << (IDR_BITS * l)) - 1)) + 1; |
| 157 | 157 | ||
| 158 | /* if already at the top layer, we need to grow */ | 158 | /* if already at the top layer, we need to grow */ |
| 159 | if (!(p = pa[l])) { | 159 | if (id >= 1 << (idp->layers * IDR_BITS)) { |
| 160 | *starting_id = id; | 160 | *starting_id = id; |
| 161 | return IDR_NEED_TO_GROW; | 161 | return IDR_NEED_TO_GROW; |
| 162 | } | 162 | } |
| 163 | p = pa[l]; | ||
| 164 | BUG_ON(!p); | ||
| 163 | 165 | ||
| 164 | /* If we need to go up one layer, continue the | 166 | /* If we need to go up one layer, continue the |
| 165 | * loop; otherwise, restart from the top. | 167 | * loop; otherwise, restart from the top. |
diff --git a/mm/migrate.c b/mm/migrate.c index 9a0db5bbabe4..880bd592d38e 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
| @@ -1002,33 +1002,27 @@ static int do_pages_stat(struct mm_struct *mm, unsigned long nr_pages, | |||
| 1002 | #define DO_PAGES_STAT_CHUNK_NR 16 | 1002 | #define DO_PAGES_STAT_CHUNK_NR 16 |
| 1003 | const void __user *chunk_pages[DO_PAGES_STAT_CHUNK_NR]; | 1003 | const void __user *chunk_pages[DO_PAGES_STAT_CHUNK_NR]; |
| 1004 | int chunk_status[DO_PAGES_STAT_CHUNK_NR]; | 1004 | int chunk_status[DO_PAGES_STAT_CHUNK_NR]; |
| 1005 | unsigned long i, chunk_nr = DO_PAGES_STAT_CHUNK_NR; | ||
| 1006 | int err; | ||
| 1007 | 1005 | ||
| 1008 | for (i = 0; i < nr_pages; i += chunk_nr) { | 1006 | while (nr_pages) { |
| 1009 | if (chunk_nr > nr_pages - i) | 1007 | unsigned long chunk_nr; |
| 1010 | chunk_nr = nr_pages - i; | ||
| 1011 | 1008 | ||
| 1012 | err = copy_from_user(chunk_pages, &pages[i], | 1009 | chunk_nr = nr_pages; |
| 1013 | chunk_nr * sizeof(*chunk_pages)); | 1010 | if (chunk_nr > DO_PAGES_STAT_CHUNK_NR) |
| 1014 | if (err) { | 1011 | chunk_nr = DO_PAGES_STAT_CHUNK_NR; |
| 1015 | err = -EFAULT; | 1012 | |
| 1016 | goto out; | 1013 | if (copy_from_user(chunk_pages, pages, chunk_nr * sizeof(*chunk_pages))) |
| 1017 | } | 1014 | break; |
| 1018 | 1015 | ||
| 1019 | do_pages_stat_array(mm, chunk_nr, chunk_pages, chunk_status); | 1016 | do_pages_stat_array(mm, chunk_nr, chunk_pages, chunk_status); |
| 1020 | 1017 | ||
| 1021 | err = copy_to_user(&status[i], chunk_status, | 1018 | if (copy_to_user(status, chunk_status, chunk_nr * sizeof(*status))) |
| 1022 | chunk_nr * sizeof(*chunk_status)); | 1019 | break; |
| 1023 | if (err) { | ||
| 1024 | err = -EFAULT; | ||
| 1025 | goto out; | ||
| 1026 | } | ||
| 1027 | } | ||
| 1028 | err = 0; | ||
| 1029 | 1020 | ||
| 1030 | out: | 1021 | pages += chunk_nr; |
| 1031 | return err; | 1022 | status += chunk_nr; |
| 1023 | nr_pages -= chunk_nr; | ||
| 1024 | } | ||
| 1025 | return nr_pages ? -EFAULT : 0; | ||
| 1032 | } | 1026 | } |
| 1033 | 1027 | ||
| 1034 | /* | 1028 | /* |
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index f52481b1c1e5..237050478f28 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
| @@ -459,6 +459,8 @@ static int oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order, | |||
| 459 | list_for_each_entry(c, &p->children, sibling) { | 459 | list_for_each_entry(c, &p->children, sibling) { |
| 460 | if (c->mm == p->mm) | 460 | if (c->mm == p->mm) |
| 461 | continue; | 461 | continue; |
| 462 | if (mem && !task_in_mem_cgroup(c, mem)) | ||
| 463 | continue; | ||
| 462 | if (!oom_kill_task(c)) | 464 | if (!oom_kill_task(c)) |
| 463 | return 0; | 465 | return 0; |
| 464 | } | 466 | } |
diff --git a/net/core/dev.c b/net/core/dev.c index be9924f60ec3..ec874218b206 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
| @@ -2761,7 +2761,7 @@ gro_result_t napi_frags_finish(struct napi_struct *napi, struct sk_buff *skb, | |||
| 2761 | switch (ret) { | 2761 | switch (ret) { |
| 2762 | case GRO_NORMAL: | 2762 | case GRO_NORMAL: |
| 2763 | case GRO_HELD: | 2763 | case GRO_HELD: |
| 2764 | skb->protocol = eth_type_trans(skb, napi->dev); | 2764 | skb->protocol = eth_type_trans(skb, skb->dev); |
| 2765 | 2765 | ||
| 2766 | if (ret == GRO_HELD) | 2766 | if (ret == GRO_HELD) |
| 2767 | skb_gro_pull(skb, -ETH_HLEN); | 2767 | skb_gro_pull(skb, -ETH_HLEN); |
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index d8aee584e8d1..236a9988ea91 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c | |||
| @@ -927,6 +927,7 @@ int dev_ethtool(struct net *net, struct ifreq *ifr) | |||
| 927 | case ETHTOOL_GPERMADDR: | 927 | case ETHTOOL_GPERMADDR: |
| 928 | case ETHTOOL_GUFO: | 928 | case ETHTOOL_GUFO: |
| 929 | case ETHTOOL_GGSO: | 929 | case ETHTOOL_GGSO: |
| 930 | case ETHTOOL_GGRO: | ||
| 930 | case ETHTOOL_GFLAGS: | 931 | case ETHTOOL_GFLAGS: |
| 931 | case ETHTOOL_GPFLAGS: | 932 | case ETHTOOL_GPFLAGS: |
| 932 | case ETHTOOL_GRXFH: | 933 | case ETHTOOL_GRXFH: |
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index fbc1c7472c5e..099c753c4213 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
| @@ -410,7 +410,8 @@ static ssize_t wireless_show(struct device *d, char *buf, | |||
| 410 | const struct iw_statistics *iw; | 410 | const struct iw_statistics *iw; |
| 411 | ssize_t ret = -EINVAL; | 411 | ssize_t ret = -EINVAL; |
| 412 | 412 | ||
| 413 | rtnl_lock(); | 413 | if (!rtnl_trylock()) |
| 414 | return restart_syscall(); | ||
| 414 | if (dev_isalive(dev)) { | 415 | if (dev_isalive(dev)) { |
| 415 | iw = get_wireless_stats(dev); | 416 | iw = get_wireless_stats(dev); |
| 416 | if (iw) | 417 | if (iw) |
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 040c4f05b653..26dec2be9615 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
| @@ -1317,14 +1317,19 @@ static int devinet_sysctl_forward(ctl_table *ctl, int write, | |||
| 1317 | { | 1317 | { |
| 1318 | int *valp = ctl->data; | 1318 | int *valp = ctl->data; |
| 1319 | int val = *valp; | 1319 | int val = *valp; |
| 1320 | loff_t pos = *ppos; | ||
| 1320 | int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); | 1321 | int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); |
| 1321 | 1322 | ||
| 1322 | if (write && *valp != val) { | 1323 | if (write && *valp != val) { |
| 1323 | struct net *net = ctl->extra2; | 1324 | struct net *net = ctl->extra2; |
| 1324 | 1325 | ||
| 1325 | if (valp != &IPV4_DEVCONF_DFLT(net, FORWARDING)) { | 1326 | if (valp != &IPV4_DEVCONF_DFLT(net, FORWARDING)) { |
| 1326 | if (!rtnl_trylock()) | 1327 | if (!rtnl_trylock()) { |
| 1328 | /* Restore the original values before restarting */ | ||
| 1329 | *valp = val; | ||
| 1330 | *ppos = pos; | ||
| 1327 | return restart_syscall(); | 1331 | return restart_syscall(); |
| 1332 | } | ||
| 1328 | if (valp == &IPV4_DEVCONF_ALL(net, FORWARDING)) { | 1333 | if (valp == &IPV4_DEVCONF_ALL(net, FORWARDING)) { |
| 1329 | inet_forward_change(net); | 1334 | inet_forward_change(net); |
| 1330 | } else if (*valp) { | 1335 | } else if (*valp) { |
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 76c08402c933..a42f658e756a 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c | |||
| @@ -946,7 +946,6 @@ int igmp_rcv(struct sk_buff *skb) | |||
| 946 | break; | 946 | break; |
| 947 | case IGMP_HOST_MEMBERSHIP_REPORT: | 947 | case IGMP_HOST_MEMBERSHIP_REPORT: |
| 948 | case IGMPV2_HOST_MEMBERSHIP_REPORT: | 948 | case IGMPV2_HOST_MEMBERSHIP_REPORT: |
| 949 | case IGMPV3_HOST_MEMBERSHIP_REPORT: | ||
| 950 | /* Is it our report looped back? */ | 949 | /* Is it our report looped back? */ |
| 951 | if (skb_rtable(skb)->fl.iif == 0) | 950 | if (skb_rtable(skb)->fl.iif == 0) |
| 952 | break; | 951 | break; |
| @@ -960,6 +959,7 @@ int igmp_rcv(struct sk_buff *skb) | |||
| 960 | in_dev_put(in_dev); | 959 | in_dev_put(in_dev); |
| 961 | return pim_rcv_v1(skb); | 960 | return pim_rcv_v1(skb); |
| 962 | #endif | 961 | #endif |
| 962 | case IGMPV3_HOST_MEMBERSHIP_REPORT: | ||
| 963 | case IGMP_DVMRP: | 963 | case IGMP_DVMRP: |
| 964 | case IGMP_TRACE: | 964 | case IGMP_TRACE: |
| 965 | case IGMP_HOST_LEAVE_MESSAGE: | 965 | case IGMP_HOST_LEAVE_MESSAGE: |
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index 38fbf04150ae..544ce0876f12 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c | |||
| @@ -124,16 +124,12 @@ static int ipcomp4_init_state(struct xfrm_state *x) | |||
| 124 | if (x->props.mode == XFRM_MODE_TUNNEL) { | 124 | if (x->props.mode == XFRM_MODE_TUNNEL) { |
| 125 | err = ipcomp_tunnel_attach(x); | 125 | err = ipcomp_tunnel_attach(x); |
| 126 | if (err) | 126 | if (err) |
| 127 | goto error_tunnel; | 127 | goto out; |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | err = 0; | 130 | err = 0; |
| 131 | out: | 131 | out: |
| 132 | return err; | 132 | return err; |
| 133 | |||
| 134 | error_tunnel: | ||
| 135 | ipcomp_destroy(x); | ||
| 136 | goto out; | ||
| 137 | } | 133 | } |
| 138 | 134 | ||
| 139 | static const struct xfrm_type ipcomp_type = { | 135 | static const struct xfrm_type ipcomp_type = { |
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 28e029632493..3fddc69ccccc 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
| @@ -5783,11 +5783,9 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb, | |||
| 5783 | 5783 | ||
| 5784 | /* tcp_ack considers this ACK as duplicate | 5784 | /* tcp_ack considers this ACK as duplicate |
| 5785 | * and does not calculate rtt. | 5785 | * and does not calculate rtt. |
| 5786 | * Fix it at least with timestamps. | 5786 | * Force it here. |
| 5787 | */ | 5787 | */ |
| 5788 | if (tp->rx_opt.saw_tstamp && | 5788 | tcp_ack_update_rtt(sk, 0, 0); |
| 5789 | tp->rx_opt.rcv_tsecr && !tp->srtt) | ||
| 5790 | tcp_ack_saw_tstamp(sk, 0); | ||
| 5791 | 5789 | ||
| 5792 | if (tp->rx_opt.tstamp_ok) | 5790 | if (tp->rx_opt.tstamp_ok) |
| 5793 | tp->advmss -= TCPOLEN_TSTAMP_ALIGNED; | 5791 | tp->advmss -= TCPOLEN_TSTAMP_ALIGNED; |
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index de7a194a64ab..143791da062c 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
| @@ -502,8 +502,11 @@ static int addrconf_fixup_forwarding(struct ctl_table *table, int *p, int old) | |||
| 502 | if (p == &net->ipv6.devconf_dflt->forwarding) | 502 | if (p == &net->ipv6.devconf_dflt->forwarding) |
| 503 | return 0; | 503 | return 0; |
| 504 | 504 | ||
| 505 | if (!rtnl_trylock()) | 505 | if (!rtnl_trylock()) { |
| 506 | /* Restore the original values before restarting */ | ||
| 507 | *p = old; | ||
| 506 | return restart_syscall(); | 508 | return restart_syscall(); |
| 509 | } | ||
| 507 | 510 | ||
| 508 | if (p == &net->ipv6.devconf_all->forwarding) { | 511 | if (p == &net->ipv6.devconf_all->forwarding) { |
| 509 | __s32 newf = net->ipv6.devconf_all->forwarding; | 512 | __s32 newf = net->ipv6.devconf_all->forwarding; |
| @@ -4028,12 +4031,15 @@ int addrconf_sysctl_forward(ctl_table *ctl, int write, | |||
| 4028 | { | 4031 | { |
| 4029 | int *valp = ctl->data; | 4032 | int *valp = ctl->data; |
| 4030 | int val = *valp; | 4033 | int val = *valp; |
| 4034 | loff_t pos = *ppos; | ||
| 4031 | int ret; | 4035 | int ret; |
| 4032 | 4036 | ||
| 4033 | ret = proc_dointvec(ctl, write, buffer, lenp, ppos); | 4037 | ret = proc_dointvec(ctl, write, buffer, lenp, ppos); |
| 4034 | 4038 | ||
| 4035 | if (write) | 4039 | if (write) |
| 4036 | ret = addrconf_fixup_forwarding(ctl, valp, val); | 4040 | ret = addrconf_fixup_forwarding(ctl, valp, val); |
| 4041 | if (ret) | ||
| 4042 | *ppos = pos; | ||
| 4037 | return ret; | 4043 | return ret; |
| 4038 | } | 4044 | } |
| 4039 | 4045 | ||
| @@ -4075,8 +4081,11 @@ static int addrconf_disable_ipv6(struct ctl_table *table, int *p, int old) | |||
| 4075 | if (p == &net->ipv6.devconf_dflt->disable_ipv6) | 4081 | if (p == &net->ipv6.devconf_dflt->disable_ipv6) |
| 4076 | return 0; | 4082 | return 0; |
| 4077 | 4083 | ||
| 4078 | if (!rtnl_trylock()) | 4084 | if (!rtnl_trylock()) { |
| 4085 | /* Restore the original values before restarting */ | ||
| 4086 | *p = old; | ||
| 4079 | return restart_syscall(); | 4087 | return restart_syscall(); |
| 4088 | } | ||
| 4080 | 4089 | ||
| 4081 | if (p == &net->ipv6.devconf_all->disable_ipv6) { | 4090 | if (p == &net->ipv6.devconf_all->disable_ipv6) { |
| 4082 | __s32 newf = net->ipv6.devconf_all->disable_ipv6; | 4091 | __s32 newf = net->ipv6.devconf_all->disable_ipv6; |
| @@ -4095,12 +4104,15 @@ int addrconf_sysctl_disable(ctl_table *ctl, int write, | |||
| 4095 | { | 4104 | { |
| 4096 | int *valp = ctl->data; | 4105 | int *valp = ctl->data; |
| 4097 | int val = *valp; | 4106 | int val = *valp; |
| 4107 | loff_t pos = *ppos; | ||
| 4098 | int ret; | 4108 | int ret; |
| 4099 | 4109 | ||
| 4100 | ret = proc_dointvec(ctl, write, buffer, lenp, ppos); | 4110 | ret = proc_dointvec(ctl, write, buffer, lenp, ppos); |
| 4101 | 4111 | ||
| 4102 | if (write) | 4112 | if (write) |
| 4103 | ret = addrconf_disable_ipv6(ctl, valp, val); | 4113 | ret = addrconf_disable_ipv6(ctl, valp, val); |
| 4114 | if (ret) | ||
| 4115 | *ppos = pos; | ||
| 4104 | return ret; | 4116 | return ret; |
| 4105 | } | 4117 | } |
| 4106 | 4118 | ||
diff --git a/net/ipv6/ipcomp6.c b/net/ipv6/ipcomp6.c index 2f2a5ca2c878..002e6eef9120 100644 --- a/net/ipv6/ipcomp6.c +++ b/net/ipv6/ipcomp6.c | |||
| @@ -154,16 +154,12 @@ static int ipcomp6_init_state(struct xfrm_state *x) | |||
| 154 | if (x->props.mode == XFRM_MODE_TUNNEL) { | 154 | if (x->props.mode == XFRM_MODE_TUNNEL) { |
| 155 | err = ipcomp6_tunnel_attach(x); | 155 | err = ipcomp6_tunnel_attach(x); |
| 156 | if (err) | 156 | if (err) |
| 157 | goto error_tunnel; | 157 | goto out; |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | err = 0; | 160 | err = 0; |
| 161 | out: | 161 | out: |
| 162 | return err; | 162 | return err; |
| 163 | error_tunnel: | ||
| 164 | ipcomp_destroy(x); | ||
| 165 | |||
| 166 | goto out; | ||
| 167 | } | 163 | } |
| 168 | 164 | ||
| 169 | static const struct xfrm_type ipcomp6_type = | 165 | static const struct xfrm_type ipcomp6_type = |
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 1f2db647bb5c..22f0c2aa7a89 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c | |||
| @@ -647,7 +647,7 @@ static void ieee80211_rx_mgmt_probe_req(struct ieee80211_sub_if_data *sdata, | |||
| 647 | } | 647 | } |
| 648 | if (pos[1] != 0 && | 648 | if (pos[1] != 0 && |
| 649 | (pos[1] != ifibss->ssid_len || | 649 | (pos[1] != ifibss->ssid_len || |
| 650 | !memcmp(pos + 2, ifibss->ssid, ifibss->ssid_len))) { | 650 | memcmp(pos + 2, ifibss->ssid, ifibss->ssid_len))) { |
| 651 | /* Ignore ProbeReq for foreign SSID */ | 651 | /* Ignore ProbeReq for foreign SSID */ |
| 652 | return; | 652 | return; |
| 653 | } | 653 | } |
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index b9007f80cb92..12a2bff7dcdb 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c | |||
| @@ -245,6 +245,9 @@ void rate_control_get_rate(struct ieee80211_sub_if_data *sdata, | |||
| 245 | info->control.rates[i].count = 1; | 245 | info->control.rates[i].count = 1; |
| 246 | } | 246 | } |
| 247 | 247 | ||
| 248 | if (sdata->local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL) | ||
| 249 | return; | ||
| 250 | |||
| 248 | if (sta && sdata->force_unicast_rateidx > -1) { | 251 | if (sta && sdata->force_unicast_rateidx > -1) { |
| 249 | info->control.rates[0].idx = sdata->force_unicast_rateidx; | 252 | info->control.rates[0].idx = sdata->force_unicast_rateidx; |
| 250 | } else { | 253 | } else { |
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index f934c9620b73..bc17cf7d68db 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
| @@ -439,6 +439,16 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata, | |||
| 439 | if (local->scan_req) | 439 | if (local->scan_req) |
| 440 | return -EBUSY; | 440 | return -EBUSY; |
| 441 | 441 | ||
| 442 | if (req != local->int_scan_req && | ||
| 443 | sdata->vif.type == NL80211_IFTYPE_STATION && | ||
| 444 | !list_empty(&ifmgd->work_list)) { | ||
| 445 | /* actually wait for the work it's doing to finish/time out */ | ||
| 446 | set_bit(IEEE80211_STA_REQ_SCAN, &ifmgd->request); | ||
| 447 | local->scan_req = req; | ||
| 448 | local->scan_sdata = sdata; | ||
| 449 | return 0; | ||
| 450 | } | ||
| 451 | |||
| 442 | if (local->ops->hw_scan) { | 452 | if (local->ops->hw_scan) { |
| 443 | u8 *ies; | 453 | u8 *ies; |
| 444 | 454 | ||
| @@ -463,14 +473,6 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata, | |||
| 463 | local->scan_req = req; | 473 | local->scan_req = req; |
| 464 | local->scan_sdata = sdata; | 474 | local->scan_sdata = sdata; |
| 465 | 475 | ||
| 466 | if (req != local->int_scan_req && | ||
| 467 | sdata->vif.type == NL80211_IFTYPE_STATION && | ||
| 468 | !list_empty(&ifmgd->work_list)) { | ||
| 469 | /* actually wait for the work it's doing to finish/time out */ | ||
| 470 | set_bit(IEEE80211_STA_REQ_SCAN, &ifmgd->request); | ||
| 471 | return 0; | ||
| 472 | } | ||
| 473 | |||
| 474 | if (local->ops->hw_scan) | 476 | if (local->ops->hw_scan) |
| 475 | __set_bit(SCAN_HW_SCANNING, &local->scanning); | 477 | __set_bit(SCAN_HW_SCANNING, &local->scanning); |
| 476 | else | 478 | else |
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index b36cc344474b..f445ea1c5f52 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
| @@ -1102,7 +1102,7 @@ static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig, int *errp) | |||
| 1102 | int err = -ENOMEM; | 1102 | int err = -ENOMEM; |
| 1103 | struct xfrm_state *x = xfrm_state_alloc(net); | 1103 | struct xfrm_state *x = xfrm_state_alloc(net); |
| 1104 | if (!x) | 1104 | if (!x) |
| 1105 | goto error; | 1105 | goto out; |
| 1106 | 1106 | ||
| 1107 | memcpy(&x->id, &orig->id, sizeof(x->id)); | 1107 | memcpy(&x->id, &orig->id, sizeof(x->id)); |
| 1108 | memcpy(&x->sel, &orig->sel, sizeof(x->sel)); | 1108 | memcpy(&x->sel, &orig->sel, sizeof(x->sel)); |
| @@ -1160,16 +1160,10 @@ static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig, int *errp) | |||
| 1160 | return x; | 1160 | return x; |
| 1161 | 1161 | ||
| 1162 | error: | 1162 | error: |
| 1163 | xfrm_state_put(x); | ||
| 1164 | out: | ||
| 1163 | if (errp) | 1165 | if (errp) |
| 1164 | *errp = err; | 1166 | *errp = err; |
| 1165 | if (x) { | ||
| 1166 | kfree(x->aalg); | ||
| 1167 | kfree(x->ealg); | ||
| 1168 | kfree(x->calg); | ||
| 1169 | kfree(x->encap); | ||
| 1170 | kfree(x->coaddr); | ||
| 1171 | } | ||
| 1172 | kfree(x); | ||
| 1173 | return NULL; | 1167 | return NULL; |
| 1174 | } | 1168 | } |
| 1175 | 1169 | ||
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index b8faa6dc5abe..ff6da6f386d1 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
| @@ -1893,6 +1893,9 @@ static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev) | |||
| 1893 | 1893 | ||
| 1894 | if (!bdl_pos_adj[chip->dev_index]) | 1894 | if (!bdl_pos_adj[chip->dev_index]) |
| 1895 | return 1; /* no delayed ack */ | 1895 | return 1; /* no delayed ack */ |
| 1896 | if (WARN_ONCE(!azx_dev->period_bytes, | ||
| 1897 | "hda-intel: zero azx_dev->period_bytes")) | ||
| 1898 | return 0; /* this shouldn't happen! */ | ||
| 1896 | if (pos % azx_dev->period_bytes > azx_dev->period_bytes / 2) | 1899 | if (pos % azx_dev->period_bytes > azx_dev->period_bytes / 2) |
| 1897 | return 0; /* NG - it's below the period boundary */ | 1900 | return 0; /* NG - it's below the period boundary */ |
| 1898 | return 1; /* OK, it's fine */ | 1901 | return 1; /* OK, it's fine */ |
| @@ -2347,7 +2350,7 @@ static void __devinit check_probe_mask(struct azx *chip, int dev) | |||
| 2347 | */ | 2350 | */ |
| 2348 | static struct snd_pci_quirk msi_black_list[] __devinitdata = { | 2351 | static struct snd_pci_quirk msi_black_list[] __devinitdata = { |
| 2349 | SND_PCI_QUIRK(0x1043, 0x81f2, "ASUS", 0), /* Athlon64 X2 + nvidia */ | 2352 | SND_PCI_QUIRK(0x1043, 0x81f2, "ASUS", 0), /* Athlon64 X2 + nvidia */ |
| 2350 | SND_PCI_QUIRK(0x1043, 0x829c, "ASUS", 0), /* nvidia */ | 2353 | SND_PCI_QUIRK(0x1043, 0x81f6, "ASUS", 0), /* nvidia */ |
| 2351 | {} | 2354 | {} |
| 2352 | }; | 2355 | }; |
| 2353 | 2356 | ||
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index ddc584b64871..4b91d8cf00ec 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
| @@ -705,7 +705,7 @@ static void print_mapped_keys(void) | |||
| 705 | fprintf(stdout, "\t[w] toggle display weighted/count[E]r. \t(%d)\n", display_weighted ? 1 : 0); | 705 | fprintf(stdout, "\t[w] toggle display weighted/count[E]r. \t(%d)\n", display_weighted ? 1 : 0); |
| 706 | 706 | ||
| 707 | fprintf(stdout, | 707 | fprintf(stdout, |
| 708 | "\t[K] hide kernel_symbols symbols. \t(%s)\n", | 708 | "\t[K] hide kernel_symbols symbols. \t(%s)\n", |
| 709 | hide_kernel_symbols ? "yes" : "no"); | 709 | hide_kernel_symbols ? "yes" : "no"); |
| 710 | fprintf(stdout, | 710 | fprintf(stdout, |
| 711 | "\t[U] hide user symbols. \t(%s)\n", | 711 | "\t[U] hide user symbols. \t(%s)\n", |
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index bb0fd6da2d56..8a9e6baa3099 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
| @@ -295,10 +295,10 @@ void thread__find_addr_location(struct thread *self, | |||
| 295 | al->thread = self; | 295 | al->thread = self; |
| 296 | al->addr = addr; | 296 | al->addr = addr; |
| 297 | 297 | ||
| 298 | if (cpumode & PERF_RECORD_MISC_KERNEL) { | 298 | if (cpumode == PERF_RECORD_MISC_KERNEL) { |
| 299 | al->level = 'k'; | 299 | al->level = 'k'; |
| 300 | mg = &session->kmaps; | 300 | mg = &session->kmaps; |
| 301 | } else if (cpumode & PERF_RECORD_MISC_USER) | 301 | } else if (cpumode == PERF_RECORD_MISC_USER) |
| 302 | al->level = '.'; | 302 | al->level = '.'; |
| 303 | else { | 303 | else { |
| 304 | al->level = 'H'; | 304 | al->level = 'H'; |
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 29465d440043..fde17b090a47 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
| @@ -272,6 +272,7 @@ int synthesize_perf_probe_point(struct probe_point *pp) | |||
| 272 | int ret; | 272 | int ret; |
| 273 | 273 | ||
| 274 | pp->probes[0] = buf = zalloc(MAX_CMDLEN); | 274 | pp->probes[0] = buf = zalloc(MAX_CMDLEN); |
| 275 | pp->found = 1; | ||
| 275 | if (!buf) | 276 | if (!buf) |
| 276 | die("Failed to allocate memory by zalloc."); | 277 | die("Failed to allocate memory by zalloc."); |
| 277 | if (pp->offset) { | 278 | if (pp->offset) { |
| @@ -294,6 +295,7 @@ int synthesize_perf_probe_point(struct probe_point *pp) | |||
| 294 | error: | 295 | error: |
| 295 | free(pp->probes[0]); | 296 | free(pp->probes[0]); |
| 296 | pp->probes[0] = NULL; | 297 | pp->probes[0] = NULL; |
| 298 | pp->found = 0; | ||
| 297 | } | 299 | } |
| 298 | return ret; | 300 | return ret; |
| 299 | } | 301 | } |
| @@ -455,6 +457,7 @@ void show_perf_probe_events(void) | |||
| 455 | struct strlist *rawlist; | 457 | struct strlist *rawlist; |
| 456 | struct str_node *ent; | 458 | struct str_node *ent; |
| 457 | 459 | ||
| 460 | memset(&pp, 0, sizeof(pp)); | ||
| 458 | fd = open_kprobe_events(O_RDONLY, 0); | 461 | fd = open_kprobe_events(O_RDONLY, 0); |
| 459 | rawlist = get_trace_kprobe_event_rawlist(fd); | 462 | rawlist = get_trace_kprobe_event_rawlist(fd); |
| 460 | close(fd); | 463 | close(fd); |
