Commit 4d2e1288 authored by Daniel Vetter's avatar Daniel Vetter

Merge tag 'drm-intel-fixes-2021-04-15' of...

Merge tag 'drm-intel-fixes-2021-04-15' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes

Display panel & power related fixes:

- Backlight fix (Lyude)
- Display watermark fix (Ville)
- VLV panel power fix (Hans)
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>

From: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/YHg4nz/ndzDRmPjd@intel.com
parents d434405a aee6f25e
...@@ -646,7 +646,6 @@ int intel_dp_aux_init_backlight_funcs(struct intel_connector *connector) ...@@ -646,7 +646,6 @@ int intel_dp_aux_init_backlight_funcs(struct intel_connector *connector)
break; break;
case INTEL_BACKLIGHT_DISPLAY_DDI: case INTEL_BACKLIGHT_DISPLAY_DDI:
try_intel_interface = true; try_intel_interface = true;
try_vesa_interface = true;
break; break;
default: default:
return -ENODEV; return -ENODEV;
......
...@@ -992,14 +992,14 @@ static void intel_dsi_post_disable(struct intel_atomic_state *state, ...@@ -992,14 +992,14 @@ static void intel_dsi_post_disable(struct intel_atomic_state *state,
* FIXME As we do with eDP, just make a note of the time here * FIXME As we do with eDP, just make a note of the time here
* and perform the wait before the next panel power on. * and perform the wait before the next panel power on.
*/ */
intel_dsi_msleep(intel_dsi, intel_dsi->panel_pwr_cycle_delay); msleep(intel_dsi->panel_pwr_cycle_delay);
} }
static void intel_dsi_shutdown(struct intel_encoder *encoder) static void intel_dsi_shutdown(struct intel_encoder *encoder)
{ {
struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder); struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder);
intel_dsi_msleep(intel_dsi, intel_dsi->panel_pwr_cycle_delay); msleep(intel_dsi->panel_pwr_cycle_delay);
} }
static bool intel_dsi_get_hw_state(struct intel_encoder *encoder, static bool intel_dsi_get_hw_state(struct intel_encoder *encoder,
......
...@@ -5471,12 +5471,12 @@ static int icl_build_plane_wm(struct intel_crtc_state *crtc_state, ...@@ -5471,12 +5471,12 @@ static int icl_build_plane_wm(struct intel_crtc_state *crtc_state,
struct skl_plane_wm *wm = &crtc_state->wm.skl.raw.planes[plane_id]; struct skl_plane_wm *wm = &crtc_state->wm.skl.raw.planes[plane_id];
int ret; int ret;
memset(wm, 0, sizeof(*wm));
/* Watermarks calculated in master */ /* Watermarks calculated in master */
if (plane_state->planar_slave) if (plane_state->planar_slave)
return 0; return 0;
memset(wm, 0, sizeof(*wm));
if (plane_state->planar_linked_plane) { if (plane_state->planar_linked_plane) {
const struct drm_framebuffer *fb = plane_state->hw.fb; const struct drm_framebuffer *fb = plane_state->hw.fb;
enum plane_id y_plane_id = plane_state->planar_linked_plane->id; enum plane_id y_plane_id = plane_state->planar_linked_plane->id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment