OpenCloudOS-Kernel/drivers/gpu/drm/i915
Paulo Zanoni 4b28a1f3ef drm/i915: fix infinite loop at gen6_update_ring_freq
If I boot my Broadwell machine to X on a system with Mesa Gallium
llvmpipe instead of i965, then kill X and try to run pm_pc8.c, when we
disable PC8 and call gen6_update_ring_freq(), we will get stuck on an
infinite loop because the frequencies are zero and the variables are
unsigned. This happens because we never ran any batch, so we did not
enable RC6, so the variables are zero. If I run gem_exec_nop before
running pm_pc8, everything works as expected because gem_exec_nop
makes RC6 be enabled.

This commit should prevent the infinite loop, which IMHO is already a
good reason to be merged, but it is not the proper fix to the "RC6 is
not being enabled" problem.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-04-02 16:57:19 +02:00
..
Kconfig drm/i915: Deprecate UMS harder 2014-04-01 22:58:24 +02:00
Makefile Merge remote-tracking branch 'airlied/drm-next' into drm-intel-next 2014-03-18 09:43:56 +01:00
dvo.h drm/i915: Remove unused mode_fixup() vfunc of struct intel_dvo_dev_ops 2013-09-05 21:39:59 +02:00
dvo_ch7xxx.c drm/i915: dvo_ch7xxx: fix vsync polarity setting 2013-07-25 16:10:22 +02:00
dvo_ch7017.c
dvo_ivch.c
dvo_ns2501.c drm/i915: drop __FUNCTION__ as argument to DRM_DEBUG_KMS 2014-04-01 22:58:20 +02:00
dvo_sil164.c
dvo_tfp410.c
i915_cmd_parser.c drm/i915: fix command parser debug print format mismatches 2014-04-02 11:38:42 +02:00
i915_debugfs.c drm/i915: Allow i915_pc8_status debug info on BDW 2014-04-02 09:26:56 +02:00
i915_dma.c drm/i915: Add a CMD_PARSER_VERSION getparam 2014-04-01 22:58:15 +02:00
i915_drv.c drm/i915: add BDW runtime PM support 2014-04-01 23:32:14 +02:00
i915_drv.h drm/i915/bdw: Expand FADD to 64bit 2014-04-02 09:21:44 +02:00
i915_gem.c drm/i915/gem: prefer struct drm_i915_private to drm_i915_private_t 2014-03-31 15:32:38 +02:00
i915_gem_context.c drm/i915: Implement WaProgramMiArbOnOffAroundMiSetContext:bdw 2014-04-02 09:11:22 +02:00
i915_gem_debug.c drm/i915: prefer struct drm_i915_private to drm_i915_private_t 2014-03-31 15:34:21 +02:00
i915_gem_dmabuf.c drm/i915: Pin pages whilst allocating for dma-buf vmap() 2013-11-29 15:51:20 +01:00
i915_gem_evict.c drm/i915: prefer struct drm_i915_private to drm_i915_private_t 2014-03-31 15:34:21 +02:00
i915_gem_execbuffer.c drm/i915: prefer struct drm_i915_private to drm_i915_private_t 2014-03-31 15:34:21 +02:00
i915_gem_gtt.c drm/i915: Allow full PPGTT with param override 2014-04-01 22:58:07 +02:00
i915_gem_gtt.h drm/i915: Split out GTT specific header file 2014-04-01 22:58:07 +02:00
i915_gem_stolen.c drm/i915: restrict vt-d stolen memory workaround to pre-gen8 2014-03-31 10:45:34 +02:00
i915_gem_tiling.c drm/i915: prefer struct drm_i915_private to drm_i915_private_t 2014-03-31 15:34:21 +02:00
i915_gpu_error.c drm/i915/bdw: Expand FADD to 64bit 2014-04-02 09:21:44 +02:00
i915_ioc32.c
i915_irq.c drm/i915: kill dev_priv->pm.regsave 2014-04-01 23:31:06 +02:00
i915_params.c drm/i915: Enable command parsing by default 2014-04-01 22:58:15 +02:00
i915_reg.h drm/i915/bdw: Expand FADD to 64bit 2014-04-02 09:21:44 +02:00
i915_suspend.c drm/i915: Kill most of the FBC register save/restore 2014-01-25 21:17:03 +01:00
i915_sysfs.c drm/i915: remove rps local variables 2014-03-20 14:46:07 +01:00
i915_trace.h drm/i915: Do not dereference pointers from ring buffer in evict event 2014-03-19 08:17:29 +01:00
i915_trace_points.c
i915_ums.c drm/i915: Only restore backlight combination mode reg for ums 2014-01-24 17:22:45 +01:00
intel_acpi.c Merge branch 'acpi-dsm' 2014-01-12 23:45:52 +01:00
intel_bios.c drm/i915: Adding VBT fields to support eDP DRRS feature 2014-04-01 22:58:30 +02:00
intel_bios.h drm/i915: Adding VBT fields to support eDP DRRS feature 2014-04-01 22:58:30 +02:00
intel_crt.c drm/i915: Allow HDMI+VGA cloning 2014-03-10 21:48:08 +01:00
intel_ddi.c drm/i915: fix WARNs when reading DDI state while suspended 2014-04-01 22:53:45 +02:00
intel_display.c drm/i915: only check for irqs_disabled when disabling LCPLL 2014-04-02 16:57:07 +02:00
intel_dp.c drm/i915: Split dp post_disable hooks 2014-04-01 22:58:26 +02:00
intel_drv.h drm/i915: kill dev_priv->pm.regsave 2014-04-01 23:31:06 +02:00
intel_dsi.c drm/i915: Make encoder cloning more flexible 2014-03-10 21:33:26 +01:00
intel_dsi.h drm/i915: Parametrize the dphy and other spec specific parameters 2013-12-11 23:52:20 +01:00
intel_dsi_cmd.c drm/i915/dsi: s/size_t/int/ 2013-09-04 17:34:51 +02:00
intel_dsi_cmd.h drm/i915/dsi: s/size_t/int/ 2013-09-04 17:34:51 +02:00
intel_dsi_pll.c drm/i915: Try harder to get best m, n, p values with minimal error 2013-12-11 23:52:18 +01:00
intel_dvo.c drm/i915: Make encoder cloning more flexible 2014-03-10 21:33:26 +01:00
intel_fbdev.c drm/i915: remove early fb allocation dependency on CONFIG_FB v2 2014-03-08 11:31:58 +01:00
intel_hdmi.c Linux 3.14-rc7 2014-03-18 19:12:31 +10:00
intel_i2c.c drm/i915: Disable dp aux irq on g4x 2014-02-07 16:40:07 +01:00
intel_lvds.c drm/i915: add locking to fixed panel edid probing 2014-03-28 18:25:18 +01:00
intel_modes.c
intel_opregion.c Merge tag 'drm-intel-fixes-2014-02-06' of ssh://git.freedesktop.org/git/drm-intel into drm-next 2014-02-11 12:57:27 +10:00
intel_overlay.c drm/i915/overlay: prefer struct drm_i915_private to drm_i915_private_t 2014-03-31 15:33:02 +02:00
intel_panel.c Linux 3.14-rc7 2014-03-18 19:12:31 +10:00
intel_pm.c drm/i915: fix infinite loop at gen6_update_ring_freq 2014-04-02 16:57:19 +02:00
intel_ringbuffer.c drm/i915: Enabling the TLB invalidate bit in GFX Mode register 2014-04-02 13:54:02 +02:00
intel_ringbuffer.h drm/i915: Broadwell expands ACTHD to 64bit 2014-03-28 18:33:14 +01:00
intel_sdvo.c drm/i915/sdvo: fix questionable return value check 2014-03-21 16:13:14 +01:00
intel_sdvo_regs.h drm/i915: use __packed instead of __attribute__((packed)) 2013-12-03 18:19:49 +01:00
intel_sideband.c drm/i915: Use FLISDSI interface for band gap reset 2013-12-11 23:52:17 +01:00
intel_sprite.c drm/i915: Shuffle sprite register writes into a tighter group 2014-01-24 17:22:53 +01:00
intel_tv.c drm/i915/tv: fix gen4 composite s-video tv-out 2014-03-28 18:33:16 +01:00
intel_uncore.c drm/i915: Use a macro to express the range of valid gens for reg_read 2014-04-01 22:58:23 +02:00