From e3ad20d482bb27ca42482280692ece86f0876904 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Fri, 25 May 2012 09:03:50 -0400 Subject: [PATCH] Linux v3.4-7644-g07acfc2 --- config-generic | 11 +- drm-i915-dp-stfu.patch | 31 +- drm-i915-lvds-dual-channel.patch | 161 ----- kernel.spec | 12 +- linux-2.6-32bit-mmap-exec-randomization.patch | 39 +- linux-2.6-input-kill-stupid-messages.patch | 20 +- sources | 2 +- vgaarb-vga_default_device.patch | 642 ------------------ 8 files changed, 41 insertions(+), 877 deletions(-) delete mode 100644 drm-i915-lvds-dual-channel.patch delete mode 100644 vgaarb-vga_default_device.patch diff --git a/config-generic b/config-generic index 9cf9e2b51..28d748e1d 100644 --- a/config-generic +++ b/config-generic @@ -1860,6 +1860,7 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 CONFIG_INPUT_JOYDEV=m CONFIG_INPUT_EVDEV=y # CONFIG_INPUT_EVBUG is not set +# CONFIG_INPUT_MATRIXKMAP is not set CONFIG_INPUT_TABLET=y CONFIG_TABLET_USB_ACECAD=m @@ -1910,6 +1911,7 @@ CONFIG_KEYBOARD_ATKBD=y # CONFIG_KEYBOARD_STOWAWAY is not set # CONFIG_KEYBOARD_LKKBD is not set # CONFIG_KEYBOARD_LM8323 is not set +# CONFIG_KEYBOARD_LM8333 is not set # CONFIG_KEYBOARD_ADP5588 is not set # CONFIG_KEYBOARD_MAX7359 is not set # CONFIG_KEYBOARD_ADP5589 is not set @@ -1992,6 +1994,7 @@ CONFIG_TOUCHSCREEN_TOUCHWIN=m CONFIG_TOUCHSCREEN_PIXCIR=m CONFIG_TOUCHSCREEN_UCB1400=m CONFIG_TOUCHSCREEN_WACOM_W8001=m +CONFIG_TOUCHSCREEN_WACOM_I2C=m CONFIG_TOUCHSCREEN_USB_E2I=y CONFIG_TOUCHSCREEN_USB_COMPOSITE=m # CONFIG_TOUCHSCREEN_WM97XX is not set @@ -2426,12 +2429,15 @@ CONFIG_VGA_ARB_MAX_GPUS=16 CONFIG_DRM=m # CONFIG_DRM_LOAD_EDID_FIRMWARE is not set +CONFIG_DRM_AST=m # do not enable on f17 or older +CONFIG_DRM_CIRRUS_QEMU=m # do not enable on f17 or older # CONFIG_DRM_TDFX is not set # CONFIG_DRM_R128 is not set CONFIG_DRM_RADEON=m CONFIG_DRM_RADEON_KMS=y # CONFIG_DRM_I810 is not set # CONFIG_DRM_MGA is not set +CONFIG_DRM_MGAG200=m # do not enable on f17 or older # CONFIG_DRM_SIS is not set # CONFIG_DRM_SAVAGE is not set CONFIG_DRM_I915=m @@ -2643,6 +2649,7 @@ CONFIG_DVB_USB_AZ6027=m CONFIG_DVB_USB_AZ6007=m CONFIG_DVB_USB_LME2510=m CONFIG_DVB_USB_RTL28XXU=m +CONFIG_DVB_USB_AF9035=m CONFIG_DVB_PT1=m @@ -2763,7 +2770,7 @@ CONFIG_FB_EFI=y # CONFIG_FB_PRE_INIT_FB is not set # CONFIG_FB_TMIO is not set # CONFIG_FB_BROADSHEET is not set -CONFIG_FB_UDL=m +# CONFIG_FB_UDL is not set # CONFIG_FIRMWARE_EDID is not set @@ -4044,7 +4051,7 @@ CONFIG_ASYNC_TX_DMA=y CONFIG_UNUSED_SYMBOLS=y -CONFIG_UTRACE=y +CONFIG_UPROBE_EVENT=y CONFIG_FTRACE=y CONFIG_DYNAMIC_FTRACE=y diff --git a/drm-i915-dp-stfu.patch b/drm-i915-dp-stfu.patch index 8948229dc..a8b395199 100644 --- a/drm-i915-dp-stfu.patch +++ b/drm-i915-dp-stfu.patch @@ -1,21 +1,8 @@ -From 04a43e2598db35b3d0ec25925bb8475b5c0a3809 Mon Sep 17 00:00:00 2001 -From: Adam Jackson -Date: Fri, 16 Mar 2012 16:39:11 -0400 -Subject: [PATCH] drm/i915/dp: Use DRM_ERROR not WARN for sanity checks - -These are noisy as shit and creating a ton of abrt reports. I don't -need more, thanks. Proper fix upstream eventually. - -Signed-off-by: Adam Jackson ---- - drivers/gpu/drm/i915/intel_dp.c | 14 ++++++++------ - 1 files changed, 8 insertions(+), 6 deletions(-) - diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c -index 94f860c..6bf27c9 100644 +index 71c7096..5defdd5 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c -@@ -331,7 +331,7 @@ intel_dp_check_edp(struct intel_dp *intel_dp) +@@ -347,7 +347,7 @@ intel_dp_check_edp(struct intel_dp *intel_dp) if (!is_edp(intel_dp)) return; if (!ironlake_edp_have_panel_power(intel_dp) && !ironlake_edp_have_panel_vdd(intel_dp)) { @@ -24,7 +11,7 @@ index 94f860c..6bf27c9 100644 DRM_DEBUG_KMS("Status 0x%08x Control 0x%08x\n", I915_READ(PCH_PP_STATUS), I915_READ(PCH_PP_CONTROL)); -@@ -386,7 +386,7 @@ intel_dp_aux_ch(struct intel_dp *intel_dp, +@@ -397,7 +397,7 @@ intel_dp_aux_ch(struct intel_dp *intel_dp, } if (try == 3) { @@ -33,7 +20,7 @@ index 94f860c..6bf27c9 100644 I915_READ(ch_ctl)); return -EBUSY; } -@@ -992,8 +992,8 @@ static void ironlake_edp_panel_vdd_on(struct intel_dp *intel_dp) +@@ -1018,8 +1018,8 @@ static void ironlake_edp_panel_vdd_on(struct intel_dp *intel_dp) return; DRM_DEBUG_KMS("Turn eDP VDD on\n"); @@ -44,7 +31,7 @@ index 94f860c..6bf27c9 100644 intel_dp->want_panel_vdd = true; -@@ -1058,7 +1058,8 @@ static void ironlake_edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync) +@@ -1084,7 +1084,8 @@ static void ironlake_edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync) return; DRM_DEBUG_KMS("Turn eDP VDD off %d\n", intel_dp->want_panel_vdd); @@ -54,16 +41,14 @@ index 94f860c..6bf27c9 100644 intel_dp->want_panel_vdd = false; -@@ -1128,7 +1129,8 @@ static void ironlake_edp_panel_off(struct intel_dp *intel_dp) +@@ -1154,7 +1155,9 @@ static void ironlake_edp_panel_off(struct intel_dp *intel_dp) DRM_DEBUG_KMS("Turn eDP power off\n"); - WARN(intel_dp->want_panel_vdd, "Cannot turn power off while VDD is on\n"); + if (intel_dp->want_panel_vdd) + DRM_ERROR("Cannot turn power off while VDD is on\n"); ++ + ironlake_panel_vdd_off_sync(intel_dp); /* finish any pending work */ pp = ironlake_get_pp_control(dev_priv); - pp &= ~(POWER_TARGET_ON | EDP_FORCE_VDD | PANEL_POWER_RESET | EDP_BLC_ENABLE); --- -1.7.7.6 - diff --git a/drm-i915-lvds-dual-channel.patch b/drm-i915-lvds-dual-channel.patch deleted file mode 100644 index b2ddff04a..000000000 --- a/drm-i915-lvds-dual-channel.patch +++ /dev/null @@ -1,161 +0,0 @@ -From b03543857fd75876b96e10d4320b775e95041bb7 Mon Sep 17 00:00:00 2001 -From: Takashi Iwai -Date: Tue, 20 Mar 2012 12:07:05 +0000 -Subject: drm/i915: Check VBIOS value for determining LVDS dual channel mode, too - -Currently i915 driver checks [PCH_]LVDS register bits to decide -whether to set up the dual-link or the single-link mode. This relies -implicitly on that BIOS initializes the register properly at boot. -However, BIOS doesn't initialize it always. When the machine is -booted with the closed lid, BIOS skips the LVDS reg initialization. -This ends up in blank output on a machine with a dual-link LVDS when -you open the lid after the boot. - -This patch adds a workaround for that problem by checking the initial -LVDS register value in VBT. - -Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37742 -Tested-By: Paulo Zanoni -Reviewed-by: Rodrigo Vivi -Reviewed-by: Adam Jackson -Signed-off-by: Takashi Iwai -Signed-off-by: Daniel Vetter ---- -diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h -index b6098b0..4cbed7f 100644 ---- a/drivers/gpu/drm/i915/i915_drv.h -+++ b/drivers/gpu/drm/i915/i915_drv.h -@@ -406,6 +406,8 @@ typedef struct drm_i915_private { - unsigned int lvds_use_ssc:1; - unsigned int display_clock_mode:1; - int lvds_ssc_freq; -+ unsigned int bios_lvds_val; /* initial [PCH_]LVDS reg val in VBIOS */ -+ unsigned int lvds_val; /* used for checking LVDS channel mode */ - struct { - int rate; - int lanes; -diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c -index 0ae76d6..e4317da 100644 ---- a/drivers/gpu/drm/i915/intel_bios.c -+++ b/drivers/gpu/drm/i915/intel_bios.c -@@ -173,6 +173,28 @@ get_lvds_dvo_timing(const struct bdb_lvds_lfp_data *lvds_lfp_data, - return (struct lvds_dvo_timing *)(entry + dvo_timing_offset); - } - -+/* get lvds_fp_timing entry -+ * this function may return NULL if the corresponding entry is invalid -+ */ -+static const struct lvds_fp_timing * -+get_lvds_fp_timing(const struct bdb_header *bdb, -+ const struct bdb_lvds_lfp_data *data, -+ const struct bdb_lvds_lfp_data_ptrs *ptrs, -+ int index) -+{ -+ size_t data_ofs = (const u8 *)data - (const u8 *)bdb; -+ u16 data_size = ((const u16 *)data)[-1]; /* stored in header */ -+ size_t ofs; -+ -+ if (index >= ARRAY_SIZE(ptrs->ptr)) -+ return NULL; -+ ofs = ptrs->ptr[index].fp_timing_offset; -+ if (ofs < data_ofs || -+ ofs + sizeof(struct lvds_fp_timing) > data_ofs + data_size) -+ return NULL; -+ return (const struct lvds_fp_timing *)((const u8 *)bdb + ofs); -+} -+ - /* Try to find integrated panel data */ - static void - parse_lfp_panel_data(struct drm_i915_private *dev_priv, -@@ -182,6 +204,7 @@ parse_lfp_panel_data(struct drm_i915_private *dev_priv, - const struct bdb_lvds_lfp_data *lvds_lfp_data; - const struct bdb_lvds_lfp_data_ptrs *lvds_lfp_data_ptrs; - const struct lvds_dvo_timing *panel_dvo_timing; -+ const struct lvds_fp_timing *fp_timing; - struct drm_display_mode *panel_fixed_mode; - int i, downclock; - -@@ -243,6 +266,19 @@ parse_lfp_panel_data(struct drm_i915_private *dev_priv, - "Normal Clock %dKHz, downclock %dKHz\n", - panel_fixed_mode->clock, 10*downclock); - } -+ -+ fp_timing = get_lvds_fp_timing(bdb, lvds_lfp_data, -+ lvds_lfp_data_ptrs, -+ lvds_options->panel_type); -+ if (fp_timing) { -+ /* check the resolution, just to be sure */ -+ if (fp_timing->x_res == panel_fixed_mode->hdisplay && -+ fp_timing->y_res == panel_fixed_mode->vdisplay) { -+ dev_priv->bios_lvds_val = fp_timing->lvds_reg_val; -+ DRM_DEBUG_KMS("VBT initial LVDS value %x\n", -+ dev_priv->bios_lvds_val); -+ } -+ } - } - - /* Try to find sdvo panel data */ -diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c -index 683002fb..a76ac2e 100644 ---- a/drivers/gpu/drm/i915/intel_display.c -+++ b/drivers/gpu/drm/i915/intel_display.c -@@ -360,6 +360,27 @@ static const intel_limit_t intel_limits_ironlake_display_port = { - .find_pll = intel_find_pll_ironlake_dp, - }; - -+static bool is_dual_link_lvds(struct drm_i915_private *dev_priv, -+ unsigned int reg) -+{ -+ unsigned int val; -+ -+ if (dev_priv->lvds_val) -+ val = dev_priv->lvds_val; -+ else { -+ /* BIOS should set the proper LVDS register value at boot, but -+ * in reality, it doesn't set the value when the lid is closed; -+ * we need to check "the value to be set" in VBT when LVDS -+ * register is uninitialized. -+ */ -+ val = I915_READ(reg); -+ if (!(val & ~LVDS_DETECTED)) -+ val = dev_priv->bios_lvds_val; -+ dev_priv->lvds_val = val; -+ } -+ return (val & LVDS_CLKB_POWER_MASK) == LVDS_CLKB_POWER_UP; -+} -+ - static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc, - int refclk) - { -@@ -368,8 +389,7 @@ static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc, - const intel_limit_t *limit; - - if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) { -- if ((I915_READ(PCH_LVDS) & LVDS_CLKB_POWER_MASK) == -- LVDS_CLKB_POWER_UP) { -+ if (is_dual_link_lvds(dev_priv, PCH_LVDS)) { - /* LVDS dual channel */ - if (refclk == 100000) - limit = &intel_limits_ironlake_dual_lvds_100m; -@@ -397,8 +417,7 @@ static const intel_limit_t *intel_g4x_limit(struct drm_crtc *crtc) - const intel_limit_t *limit; - - if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) { -- if ((I915_READ(LVDS) & LVDS_CLKB_POWER_MASK) == -- LVDS_CLKB_POWER_UP) -+ if (is_dual_link_lvds(dev_priv, LVDS)) - /* LVDS with dual channel */ - limit = &intel_limits_g4x_dual_channel_lvds; - else -@@ -536,8 +555,7 @@ intel_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc, - * reliably set up different single/dual channel state, if we - * even can. - */ -- if ((I915_READ(LVDS) & LVDS_CLKB_POWER_MASK) == -- LVDS_CLKB_POWER_UP) -+ if (is_dual_link_lvds(dev_priv, LVDS)) - clock.p2 = limit->p2.p2_fast; - else - clock.p2 = limit->p2.p2_slow; --- -cgit v0.9.0.2-2-gbebe diff --git a/kernel.spec b/kernel.spec index 92c4cfcc4..2238947cd 100644 --- a/kernel.spec +++ b/kernel.spec @@ -95,7 +95,7 @@ Summary: The Linux kernel # The rc snapshot level %define rcrev 0 # The git snapshot level -%define gitrev 6 +%define gitrev 7 # Set rpm version accordingly %define rpmversion 3.%{upstream_sublevel}.0 %endif @@ -688,7 +688,6 @@ Patch1800: drm-vgem.patch # intel drm is all merged upstream Patch1824: drm-intel-next.patch Patch1825: drm-i915-dp-stfu.patch -Patch1826: drm-i915-lvds-dual-channel.patch Patch1900: linux-2.6-intel-iommu-igfx.patch @@ -746,8 +745,6 @@ Patch21306: shlib_base_randomize.patch Patch21400: unhandled-irqs-switch-to-polling.patch -Patch21620: vgaarb-vga_default_device.patch - Patch22000: weird-root-dentry-name-debug.patch #selinux ptrace child permissions @@ -1402,7 +1399,6 @@ ApplyPatch drm-vgem.patch # Intel DRM ApplyOptionalPatch drm-intel-next.patch ApplyPatch drm-i915-dp-stfu.patch -ApplyPatch drm-i915-lvds-dual-channel.patch ApplyPatch linux-2.6-intel-iommu-igfx.patch @@ -1451,9 +1447,6 @@ ApplyPatch selinux-apply-different-permission-to-ptrace-child.patch #Highbank clock functions ApplyPatch highbank-export-clock-functions.patch -#vgaarb patches. blame mjg59 -ApplyPatch vgaarb-vga_default_device.patch - #rhbz 822825 822821 CVE-2012-2372 ApplyPatch mm-pmd_read_atomic-fix-32bit-PAE-pmd-walk-vs-pmd_populate-SMP-race-condition.patch @@ -2307,6 +2300,9 @@ fi # ||----w | # || || %changelog +* Fri May 25 2012 Josh Boyer - 3.5.0-0.rc0.git7.1 +- Linux v3.4-7644-g07acfc2 + * Fri May 25 2012 Mauro Carvalho Chehab - Don't manually customise tuners/frontends (rhbz 825203) diff --git a/linux-2.6-32bit-mmap-exec-randomization.patch b/linux-2.6-32bit-mmap-exec-randomization.patch index e4936991a..f6079841d 100644 --- a/linux-2.6-32bit-mmap-exec-randomization.patch +++ b/linux-2.6-32bit-mmap-exec-randomization.patch @@ -1,17 +1,8 @@ -Before: -Heap randomisation test (PIE) : 16 bits (guessed) -Main executable randomisation (PIE) : 8 bits (guessed) - -after: -Heap randomisation test (PIE) : 19 bits (guessed) -Main executable randomisation (PIE) : 12 bits (guessed) - - diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c -index 1d92a5a..81fef23 100644 +index 735279e..0f9f005 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c -@@ -753,6 +753,16 @@ unsigned long arch_align_stack(unsigned long sp) +@@ -756,6 +756,16 @@ unsigned long arch_align_stack(unsigned long sp) unsigned long arch_randomize_brk(struct mm_struct *mm) { unsigned long range_end = mm->brk + 0x02000000; @@ -60,10 +51,10 @@ index 66e6d93..b80cde7 100644 ret = addr; goto up_fail; diff --git a/include/linux/mm.h b/include/linux/mm.h -index 74aa71b..d9971db 100644 +index 7d5c37f..92cb90d 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h -@@ -1391,7 +1391,13 @@ extern int install_special_mapping(struct mm_struct *mm, +@@ -1389,7 +1389,13 @@ extern int install_special_mapping(struct mm_struct *mm, unsigned long addr, unsigned long len, unsigned long flags, struct page **pages); @@ -79,10 +70,10 @@ index 74aa71b..d9971db 100644 extern unsigned long mmap_region(struct file *file, unsigned long addr, unsigned long len, unsigned long flags, diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h -index 3cc3062..b42f00b 100644 +index 26574c7..54a063d 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h -@@ -293,6 +293,9 @@ struct mm_struct { +@@ -294,6 +294,9 @@ struct mm_struct { unsigned long (*get_unmapped_area) (struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags); @@ -93,10 +84,10 @@ index 3cc3062..b42f00b 100644 #endif unsigned long mmap_base; /* base of mmap area */ diff --git a/include/linux/sched.h b/include/linux/sched.h -index 81a173c..3f9f5c4 100644 +index f45c0b2..7234f1d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h -@@ -390,6 +390,10 @@ extern void arch_pick_mmap_layout(struct mm_struct *mm); +@@ -391,6 +391,10 @@ extern void arch_pick_mmap_layout(struct mm_struct *mm); extern unsigned long arch_get_unmapped_area(struct file *, unsigned long, unsigned long, unsigned long, unsigned long); @@ -108,18 +99,18 @@ index 81a173c..3f9f5c4 100644 arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, diff --git a/mm/mmap.c b/mm/mmap.c -index 848ef52..65650a5 100644 +index e8dcfc7..4bb6ac9 100644 --- a/mm/mmap.c +++ b/mm/mmap.c -@@ -30,6 +30,7 @@ - #include +@@ -31,6 +31,7 @@ #include #include + #include +#include #include #include -@@ -995,7 +996,8 @@ static unsigned long do_mmap_pgoff(struct file *file, unsigned long addr, +@@ -1013,7 +1014,8 @@ static unsigned long do_mmap_pgoff(struct file *file, unsigned long addr, /* Obtain the address to map to. we verify (or select) it and ensure * that it represents a valid section of the address space. */ @@ -129,7 +120,7 @@ index 848ef52..65650a5 100644 if (addr & ~PAGE_MASK) return addr; -@@ -1580,8 +1582,8 @@ void arch_unmap_area_topdown(struct mm_struct *mm, unsigned long addr) +@@ -1603,8 +1605,8 @@ void arch_unmap_area_topdown(struct mm_struct *mm, unsigned long addr) } unsigned long @@ -140,7 +131,7 @@ index 848ef52..65650a5 100644 { unsigned long (*get_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long); -@@ -1594,7 +1596,11 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, +@@ -1617,7 +1619,11 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, if (len > TASK_SIZE) return -ENOMEM; @@ -153,7 +144,7 @@ index 848ef52..65650a5 100644 if (file && file->f_op && file->f_op->get_unmapped_area) get_area = file->f_op->get_unmapped_area; addr = get_area(file, addr, len, pgoff, flags); -@@ -1608,8 +1614,83 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, +@@ -1631,8 +1637,83 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, return arch_rebalance_pgtables(addr, len); } diff --git a/linux-2.6-input-kill-stupid-messages.patch b/linux-2.6-input-kill-stupid-messages.patch index cc1dd7470..ff7023f51 100644 --- a/linux-2.6-input-kill-stupid-messages.patch +++ b/linux-2.6-input-kill-stupid-messages.patch @@ -1,32 +1,20 @@ -From b2c6d55b2351152696aafb8c9bf3ec8968acf77c Mon Sep 17 00:00:00 2001 -From: Kyle McMartin -Date: Mon, 29 Mar 2010 23:59:58 -0400 -Subject: linux-2.6-input-kill-stupid-messages - ---- - drivers/input/keyboard/atkbd.c | 5 +++++ - 1 files changed, 5 insertions(+), 0 deletions(-) - diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c -index d358ef8..38db098 100644 +index add5ffd..5eb2f03 100644 --- a/drivers/input/keyboard/atkbd.c +++ b/drivers/input/keyboard/atkbd.c -@@ -425,11 +426,15 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data, +@@ -430,11 +430,15 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data, goto out; case ATKBD_RET_ACK: case ATKBD_RET_NAK: -+#if 0 ++# if 0 + /* Quite a few key switchers and other tools trigger this + * and it confuses people who can do nothing about it */ if (printk_ratelimit()) dev_warn(&serio->dev, "Spurious %s on %s. " - "Some program might be trying access hardware directly.\n", + "Some program might be trying to access hardware directly.\n", data == ATKBD_RET_ACK ? "ACK" : "NAK", serio->phys); +#endif goto out; case ATKBD_RET_ERR: atkbd->err_count++; --- -1.7.0.1 - diff --git a/sources b/sources index 4dc1a3270..31ce34112 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ 967f72983655e2479f951195953e8480 linux-3.4.tar.xz -657853733d14a957379f1bf15f454b75 patch-3.4-git6.xz +09761e8f1f690e9a906d5f9f988c99d5 patch-3.4-git7.xz diff --git a/vgaarb-vga_default_device.patch b/vgaarb-vga_default_device.patch deleted file mode 100644 index 57a27388b..000000000 --- a/vgaarb-vga_default_device.patch +++ /dev/null @@ -1,642 +0,0 @@ - -Delivered-To: jwboyer@gmail.com -Received: by 10.229.187.201 with SMTP id cx9csp141480qcb; - Mon, 16 Apr 2012 13:27:50 -0700 (PDT) -Received: by 10.60.0.201 with SMTP id 9mr17463209oeg.59.1334608065659; - Mon, 16 Apr 2012 13:27:45 -0700 (PDT) -Return-Path: -Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) - by mx.google.com with ESMTP id 4si12245496oei.14.2012.04.16.13.27.44; - Mon, 16 Apr 2012 13:27:45 -0700 (PDT) -Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; -Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mail=linux-kernel-owner@vger.kernel.org -Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand - id S1755065Ab2DPU02 (ORCPT - + 99 others); Mon, 16 Apr 2012 16:26:28 -0400 -Received: from mx1.redhat.com ([209.132.183.28]:1184 "EHLO mx1.redhat.com" - rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP - id S1754698Ab2DPU01 (ORCPT ); - Mon, 16 Apr 2012 16:26:27 -0400 -Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) - by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3GKQPYb007336 - (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); - Mon, 16 Apr 2012 16:26:25 -0400 -Received: from cavan.codon.org.uk (ovpn-113-122.phx2.redhat.com [10.3.113.122]) - by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q3GKQNG5011412 - (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); - Mon, 16 Apr 2012 16:26:24 -0400 -Received: from nat-pool-rdu.redhat.com ([66.187.233.202] helo=x220.boston.devel.redhat.com) - by cavan.codon.org.uk with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) - (Exim 4.72) - (envelope-from ) - id 1SJsVA-0003T4-U8; Mon, 16 Apr 2012 21:26:21 +0100 -From: Matthew Garrett -To: linux-kernel@vger.kernel.org -Cc: Matthew Garrett , benh@kernel.crashing.org, - airlied@redhat.com -Subject: [PATCH V2 1/4] vgaarb: Add support for setting the default video device -Date: Mon, 16 Apr 2012 16:26:02 -0400 -Message-Id: <1334607965-9582-1-git-send-email-mjg@redhat.com> -X-SA-Do-Not-Run: Yes -X-SA-Exim-Connect-IP: 66.187.233.202 -X-SA-Exim-Mail-From: mjg@redhat.com -X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false -X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 -Sender: linux-kernel-owner@vger.kernel.org -Precedence: bulk -List-ID: -X-Mailing-List: linux-kernel@vger.kernel.org - -The default VGA device is a somewhat fluid concept on platforms with -multiple GPUs. Add support for setting it so switching code can update -things appropriately, and make sure that the sysfs code returns the right -device if it's changed. - -Signed-off-by: Matthew Garrett -Cc: benh@kernel.crashing.org -Cc: airlied@redhat.com ---- -Updated to fix builds when __ARCH_HAS_VGA_DEFAULT_DEVICE is false. - - drivers/gpu/vga/vgaarb.c | 7 +++++++ - drivers/pci/pci-sysfs.c | 5 +++++ - include/linux/vgaarb.h | 2 ++ - 3 files changed, 14 insertions(+) - -diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c -index 111d956..e223b96 100644 ---- a/drivers/gpu/vga/vgaarb.c -+++ b/drivers/gpu/vga/vgaarb.c -@@ -136,6 +136,11 @@ struct pci_dev *vga_default_device(void) - { - return vga_default; - } -+ -+void vga_set_default_device(struct pci_dev *pdev) -+{ -+ vga_default = pdev; -+} - #endif - - static inline void vga_irq_set_state(struct vga_device *vgadev, bool state) -@@ -605,10 +610,12 @@ static bool vga_arbiter_del_pci_device(struct pci_dev *pdev) - goto bail; - } - -+#ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE - if (vga_default == pdev) { - pci_dev_put(vga_default); - vga_default = NULL; - } -+#endif - - if (vgadev->decodes & (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM)) - vga_decode_count--; -diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c -index a3cd8ca..7dd9f2b 100644 ---- a/drivers/pci/pci-sysfs.c -+++ b/drivers/pci/pci-sysfs.c -@@ -27,6 +27,7 @@ - #include - #include - #include -+#include - #include "pci.h" - - static int sysfs_initialized; /* = 0 */ -@@ -414,6 +415,10 @@ static ssize_t - boot_vga_show(struct device *dev, struct device_attribute *attr, char *buf) - { - struct pci_dev *pdev = to_pci_dev(dev); -+ struct pci_dev *vga_dev = vga_default_device(); -+ -+ if (vga_dev) -+ return sprintf(buf, "%u\n", (pdev == vga_dev)); - - return sprintf(buf, "%u\n", - !!(pdev->resource[PCI_ROM_RESOURCE].flags & -diff --git a/include/linux/vgaarb.h b/include/linux/vgaarb.h -index 9c3120d..759a25b 100644 ---- a/include/linux/vgaarb.h -+++ b/include/linux/vgaarb.h -@@ -31,6 +31,7 @@ - #ifndef LINUX_VGA_H - #define LINUX_VGA_H - -+#include