diff options
author | Dave Airlie <airlied@redhat.com> | 2017-05-17 22:57:06 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-05-17 22:57:06 -0400 |
commit | e98c58e55f68f8785aebfab1f8c9a03d8de0afe1 (patch) | |
tree | 8357e8fda6efb0867ac39fc6b9211a579721d00a /drivers/gpu/drm/i915/intel_display.c | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) | |
parent | 9cf8f5802f39d9991158b29033c852bccfc3a4d4 (diff) |
Merge tag 'drm-misc-next-2017-05-16' of git://anongit.freedesktop.org/git/drm-misc into drm-next
UAPI Changes:
- Return -ENODEV instead of -ENXIO when creating cma fb w/o valid gem (Daniel)
- Add aspect ratio and custom scaling propertis to connector state (Maarten)
Cross-subsystem Changes:
- None
Core Changes:
- Add Laurent as bridge reviewer and Andrzej as bridge maintainer (Archit)
- Maintain new STM driver through -misc (Yannick)
- Misc doc improvements (as is tradition) (Daniel)
- Add driver-private objects to atomic state (Dhinakaran)
- Deprecate preclose hook in modern drivers (use postclose) (Daniel)
- Add hwmode to vblank struct. This fixes mode access in irq context and reduced
a bunch of boilerplate (Daniel)
Driver Changes:
- vc4: Add out-fence support to vc4 V3D rendering (Eric)
- stm: Add stm32f429 display hw and am-480272h3tmqw-t01h panel support (Yannick)
- vc4: Remove 256MB cma limit from vc4 (Eric)
- dw-hdmi: Disable audio when inactive, instead of always enabled (Romain)
- zte: Add support for VGA to the ZTE driver (Shawn)
- i915: Track DP MST bandwidth and check it in atomic_check (Dhinakaran)
- vgem: Enable gem dmabuf import iface to facilitate ion testing (Laura)
- vc4: Add support for Cygnus (new dt compat string + couple bug fixes) (Eric)
- pl111: Add driver for pl111 CLCD display controller (Eric/Tom)
- vgem: Subclass drm_device instead of standalone platform device (Chris)
Cc: Archit Taneja <architt@codeaurora.org>
Cc: Eric Anholt <eric@anholt.net>
Cc: Yannick Fertre <yannick.fertre@st.com>
Cc: Romain Perier <romain.perier@collabora.com>
Cc: Navare, Manasi D <manasi.d.navare@intel.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Laura Abbott <labbott@redhat.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Tom Cooksey <tom.cooksey@arm.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
* tag 'drm-misc-next-2017-05-16' of git://anongit.freedesktop.org/git/drm-misc: (72 commits)
drm: add missing declaration to drm_blend.h
drm/dp: Wait up all outstanding tx waiters
drm/dp: Read the tx msg state once after checking for an event
drm/prime: Forward declare struct device
drm/vblank: Lock down vblank->hwmode more
drm/vblank: drop the mode argument from drm_calc_vbltimestamp_from_scanoutpos
drm/vblank: Add FIXME comments about moving the vblank ts hooks
drm/vblank: Switch to bool in_vblank_irq in get_vblank_timestamp
drm/vblank: Switch drm_driver->get_vblank_timestamp to return a bool
drm/vgem: Convert to a struct drm_device subclass
gpu: drm: gma500: remove dead code
drm/sti: Adjust two checks for null pointers in sti_hqvdp_probe()
drm/sti: Fix typos in a comment line
drm/sti: Fix a typo in a comment line
drm/sti: Replace 17 seq_puts() calls by seq_putc()
drm/sti: Reduce function calls for sequence output at five places
drm/sti: use seq_puts to display a string
drm: Nerf the preclose callback for modern drivers
drm/exynos: Merge pre/postclose hooks
drm/tegra: switch to postclose
...
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 3617927af269..2f2bb623cf5f 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -11444,12 +11444,6 @@ intel_modeset_update_crtc_state(struct drm_atomic_state *state) | |||
11444 | for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { | 11444 | for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { |
11445 | to_intel_crtc(crtc)->config = to_intel_crtc_state(new_crtc_state); | 11445 | to_intel_crtc(crtc)->config = to_intel_crtc_state(new_crtc_state); |
11446 | 11446 | ||
11447 | /* Update hwmode for vblank functions */ | ||
11448 | if (new_crtc_state->active) | ||
11449 | crtc->hwmode = new_crtc_state->adjusted_mode; | ||
11450 | else | ||
11451 | crtc->hwmode.crtc_clock = 0; | ||
11452 | |||
11453 | /* | 11447 | /* |
11454 | * Update legacy state to satisfy fbc code. This can | 11448 | * Update legacy state to satisfy fbc code. This can |
11455 | * be removed when fbc uses the atomic state. | 11449 | * be removed when fbc uses the atomic state. |
@@ -15425,8 +15419,6 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev) | |||
15425 | to_intel_crtc_state(crtc->base.state); | 15419 | to_intel_crtc_state(crtc->base.state); |
15426 | int pixclk = 0; | 15420 | int pixclk = 0; |
15427 | 15421 | ||
15428 | crtc->base.hwmode = crtc_state->base.adjusted_mode; | ||
15429 | |||
15430 | memset(&crtc->base.mode, 0, sizeof(crtc->base.mode)); | 15422 | memset(&crtc->base.mode, 0, sizeof(crtc->base.mode)); |
15431 | if (crtc_state->base.active) { | 15423 | if (crtc_state->base.active) { |
15432 | intel_mode_from_pipe_config(&crtc->base.mode, crtc_state); | 15424 | intel_mode_from_pipe_config(&crtc->base.mode, crtc_state); |
@@ -15456,7 +15448,8 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev) | |||
15456 | if (IS_BROADWELL(dev_priv) && crtc_state->ips_enabled) | 15448 | if (IS_BROADWELL(dev_priv) && crtc_state->ips_enabled) |
15457 | pixclk = DIV_ROUND_UP(pixclk * 100, 95); | 15449 | pixclk = DIV_ROUND_UP(pixclk * 100, 95); |
15458 | 15450 | ||
15459 | drm_calc_timestamping_constants(&crtc->base, &crtc->base.hwmode); | 15451 | drm_calc_timestamping_constants(&crtc->base, |
15452 | &crtc_state->base.adjusted_mode); | ||
15460 | update_scanline_offset(crtc); | 15453 | update_scanline_offset(crtc); |
15461 | } | 15454 | } |
15462 | 15455 | ||