Commit 49172fee authored by Ander Conselvan de Oliveira's avatar Ander Conselvan de Oliveira Committed by Daniel Vetter

drm/i915: Pass acquire ctx also to intel_release_load_detect_pipe()

For now this is not necessary since intel_set_mode() doesn't acquire any
new locks. However, once that function is converted to atomic, that will
change, since we'll pass an atomic state to it, and that needs to have
the right acquire context set.
Signed-off-by: default avatarAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 10f81c19
...@@ -708,7 +708,7 @@ intel_crt_detect(struct drm_connector *connector, bool force) ...@@ -708,7 +708,7 @@ intel_crt_detect(struct drm_connector *connector, bool force)
status = connector_status_connected; status = connector_status_connected;
else else
status = intel_crt_load_detect(crt); status = intel_crt_load_detect(crt);
intel_release_load_detect_pipe(connector, &tmp); intel_release_load_detect_pipe(connector, &tmp, &ctx);
} else } else
status = connector_status_unknown; status = connector_status_unknown;
......
...@@ -9038,7 +9038,8 @@ bool intel_get_load_detect_pipe(struct drm_connector *connector, ...@@ -9038,7 +9038,8 @@ bool intel_get_load_detect_pipe(struct drm_connector *connector,
} }
void intel_release_load_detect_pipe(struct drm_connector *connector, void intel_release_load_detect_pipe(struct drm_connector *connector,
struct intel_load_detect_pipe *old) struct intel_load_detect_pipe *old,
struct drm_modeset_acquire_ctx *ctx)
{ {
struct intel_encoder *intel_encoder = struct intel_encoder *intel_encoder =
intel_attached_encoder(connector); intel_attached_encoder(connector);
...@@ -13595,7 +13596,7 @@ static void intel_enable_pipe_a(struct drm_device *dev) ...@@ -13595,7 +13596,7 @@ static void intel_enable_pipe_a(struct drm_device *dev)
return; return;
if (intel_get_load_detect_pipe(crt, NULL, &load_detect_temp, ctx)) if (intel_get_load_detect_pipe(crt, NULL, &load_detect_temp, ctx))
intel_release_load_detect_pipe(crt, &load_detect_temp); intel_release_load_detect_pipe(crt, &load_detect_temp, ctx);
} }
static bool static bool
......
...@@ -959,7 +959,8 @@ bool intel_get_load_detect_pipe(struct drm_connector *connector, ...@@ -959,7 +959,8 @@ bool intel_get_load_detect_pipe(struct drm_connector *connector,
struct intel_load_detect_pipe *old, struct intel_load_detect_pipe *old,
struct drm_modeset_acquire_ctx *ctx); struct drm_modeset_acquire_ctx *ctx);
void intel_release_load_detect_pipe(struct drm_connector *connector, void intel_release_load_detect_pipe(struct drm_connector *connector,
struct intel_load_detect_pipe *old); struct intel_load_detect_pipe *old,
struct drm_modeset_acquire_ctx *ctx);
int intel_pin_and_fence_fb_obj(struct drm_plane *plane, int intel_pin_and_fence_fb_obj(struct drm_plane *plane,
struct drm_framebuffer *fb, struct drm_framebuffer *fb,
const struct drm_plane_state *plane_state, const struct drm_plane_state *plane_state,
......
...@@ -1332,7 +1332,7 @@ intel_tv_detect(struct drm_connector *connector, bool force) ...@@ -1332,7 +1332,7 @@ intel_tv_detect(struct drm_connector *connector, bool force)
if (intel_get_load_detect_pipe(connector, &mode, &tmp, &ctx)) { if (intel_get_load_detect_pipe(connector, &mode, &tmp, &ctx)) {
type = intel_tv_detect_type(intel_tv, connector); type = intel_tv_detect_type(intel_tv, connector);
intel_release_load_detect_pipe(connector, &tmp); intel_release_load_detect_pipe(connector, &tmp, &ctx);
status = type < 0 ? status = type < 0 ?
connector_status_disconnected : connector_status_disconnected :
connector_status_connected; connector_status_connected;
......
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