Sasha Levin
2019-Mar-27 18:16 UTC
[Nouveau] [PATCH AUTOSEL 4.14 114/123] drm/nouveau: Stop using drm_crtc_force_disable
From: Daniel Vetter <daniel.vetter at ffwll.ch> [ Upstream commit 934c5b32a5e43d8de2ab4f1566f91d7c3bf8cb64 ] The correct way for legacy drivers to update properties that need to do a full modeset, is to do a full modeset. Note that we don't need to call the drm_mode_config_internal helper because we're not changing any of the refcounted paramters. v2: Fixup error handling (Ville). Since the old code didn't bother I decided to just delete it instead of adding even more code for just error handling. Cc: Ville Syrjälä <ville.syrjala at linux.intel.com> Reviewed-by: Alex Deucher <alexander.deucher at amd.com> (v1) Cc: Sean Paul <seanpaul at chromium.org> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181217194303.14397-2-daniel.vetter at ffwll.ch Signed-off-by: Sasha Levin <sashal at kernel.org> --- drivers/gpu/drm/nouveau/dispnv04/tvnv17.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c b/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c index 6d99f11fee4e..4bc8e9fe3095 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c +++ b/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c @@ -750,7 +750,9 @@ static int nv17_tv_set_property(struct drm_encoder *encoder, /* Disable the crtc to ensure a full modeset is * performed whenever it's turned on again. */ if (crtc) - drm_crtc_force_disable(crtc); + drm_crtc_helper_set_mode(crtc, &crtc->mode, + crtc->x, crtc->y, + crtc->primary->fb); } return 0; -- 2.19.1
Apparently Analagous Threads
- [PATCH AUTOSEL 5.0 242/262] drm/nouveau: Stop using drm_crtc_force_disable
- [PATCH AUTOSEL 4.19 177/192] drm/nouveau: Stop using drm_crtc_force_disable
- [PATCH AUTOSEL 4.9 80/87] drm/nouveau: Stop using drm_crtc_force_disable
- [PATCH v2 00/15] Runtime pm ref leak bonanza
- [PATCH] drm/nouveau/dispnv04: fix a possible null pointer dereference