linux/drivers/gpu/drm/i915
Imre Deak 2960bc9cce drm/i915: make user mode sync polarity setting explicit
Userspace can pass a mode with an unspecified vsync/hsync polarity
setting. All encoders in the Intel driver take this to mean a negative
polarity setting. The HW readout/state checker code on the other hand
needs these flags to be explicitly set, otherwise the state checker will
WARN about the mismatch.

Get rid of the WARN by making the polarity setting explicit in the
adjusted mode flags based on the requested mode flags. This will keep
the existing behavior otherwise.

Note that we could guess from the other timing parameters whether the
user wanted a VESA or other standard mode and set the polarity
accordingly. This is what the NV driver does
(drivers/gpu/drm/nouveau/dispnv04/crtc.c), but I think that's not very
exact and would change the existing behavior of the Intel driver.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65442
Signed-off-by: Imre Deak <imre.deak@intel.com>
Tested-by: cancan,feng <cancan.feng@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-05 19:04:05 +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
dvo_sil164.c
dvo_tfp410.c
dvo.h
i915_debugfs.c drm/i915: Squelch repeated reasoning for why FBC cannot be activated 2013-08-04 21:29:56 +02:00
i915_dma.c drm/i915: fix the racy object accounting 2013-07-25 15:30:54 +02:00
i915_drv.c drm/i915: Colocate all GT access routines in the same file 2013-07-25 15:21:50 +02:00
i915_drv.h drm/i915: Add scaled paramater to update_sprite_watermarks() 2013-08-05 19:03:55 +02:00
i915_gem_context.c drm/i915: Fix retrieval of hangcheck stats 2013-07-16 10:40:25 +02:00
i915_gem_debug.c drm/i915: Move active/inactive lists to new mm 2013-07-17 22:24:32 +02:00
i915_gem_dmabuf.c
i915_gem_evict.c drm/i915: Create VMAs 2013-07-18 08:46:13 +02:00
i915_gem_execbuffer.c drm/i915: Replace open-coded offset_in_page() 2013-07-26 19:45:11 +02:00
i915_gem_gtt.c drm/i915: Use the same pte_encoding for ppgtt as for gtt 2013-08-04 21:29:57 +02:00
i915_gem_stolen.c Merge commit 'Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux' 2013-07-25 15:18:41 +02:00
i915_gem_tiling.c drm/i915: Getter/setter for object attributes 2013-07-08 22:04:34 +02:00
i915_gem.c drm/i915: fix the racy object accounting 2013-07-25 15:30:54 +02:00
i915_gpu_error.c drm/i915: Move active/inactive lists to new mm 2013-07-17 22:24:32 +02:00
i915_ioc32.c
i915_irq.c drm/i915: Add messages useful for HPD storm detection debugging (v2) 2013-07-26 19:43:48 +02:00
i915_reg.h drm/i915: fix pnv display core clock readout out 2013-07-26 19:54:46 +02:00
i915_suspend.c Linux 3.10 2013-07-18 12:03:29 +02:00
i915_sysfs.c drm/i915: add error_state sysfs entry 2013-07-01 19:39:31 +02:00
i915_trace_points.c
i915_trace.h drm/i915: Convert the register access tracepoint to be conditional 2013-07-25 15:22:07 +02:00
i915_ums.c
intel_acpi.c
intel_bios.c
intel_bios.h
intel_crt.c drm/i915/crt: use native encoder->mode_set callback 2013-08-04 21:25:23 +02:00
intel_ddi.c drm/i915/ddi: use the native encoder ->mode_set callback 2013-08-04 21:25:26 +02:00
intel_display.c drm/i915: make user mode sync polarity setting explicit 2013-08-05 19:04:05 +02:00
intel_dp.c drm/i915: rearrange vlv dp enable and pre_enable callbacks 2013-08-05 19:04:03 +02:00
intel_drv.h drm/i915: Add scaled paramater to update_sprite_watermarks() 2013-08-05 19:03:55 +02:00
intel_dvo.c drm/i915/dvo: use native encoder ->mode_set callback 2013-08-04 21:25:21 +02:00
intel_fb.c drm/i915: Getter/setter for object attributes 2013-07-08 22:04:34 +02:00
intel_hdmi.c drm/i915: rearrange vlv hdmi enable and pre_enable callbacks 2013-08-05 19:04:04 +02:00
intel_i2c.c
intel_lvds.c drm/i915/lvds: use the native encoder ->mode_set callback 2013-08-04 21:25:25 +02:00
intel_modes.c
intel_opregion.c drm/i915: tune down DIDL warning about too many outputs 2013-07-01 11:14:42 +02:00
intel_overlay.c drm/i915: disable stolen mem for OVERLAY_NEEDS_PHYSICAL 2013-07-24 10:37:11 +02:00
intel_panel.c drm/i915: clean up crtc timings computation 2013-08-04 21:25:27 +02:00
intel_pm.c drm/i915: Add SNB/IVB support to intel_read_wm_latency 2013-08-05 19:04:01 +02:00
intel_ringbuffer.c Merge commit 'Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux' 2013-07-25 15:18:41 +02:00
intel_ringbuffer.h drm/i915: unify ring irq refcounts (again) 2013-07-11 14:36:49 +02:00
intel_sdvo_regs.h
intel_sdvo.c drm/i915/sdvo: use intel_encoder for upcast helper 2013-08-04 21:25:22 +02:00
intel_sideband.c
intel_sprite.c drm/i915: Calculate the sprite WM based on the source width instead of the destination width 2013-08-05 19:03:56 +02:00
intel_tv.c drm/i915/tv: Use native encoder->mode_set callback 2013-08-04 21:25:22 +02:00
intel_uncore.c drm/i915: Convert the register access tracepoint to be conditional 2013-07-25 15:22:07 +02:00
Makefile drm/i915: Colocate all GT access routines in the same file 2013-07-25 15:21:50 +02:00