Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1000580yba; Thu, 4 Apr 2019 02:07:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3TYkprBIZU3RGLFlTMe1GpN4+IRqnT/jSBcps6Stgrb4q3PNJiVxNtxmgrBeaIGPdN9Bv X-Received: by 2002:a65:638f:: with SMTP id h15mr1510451pgv.147.1554368857075; Thu, 04 Apr 2019 02:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368857; cv=none; d=google.com; s=arc-20160816; b=Kcys0+EJ4phvpVB+weGL89QOxfbA8FF3crVmH7AEbT/ITMuFIkLmdSg3uOk4TFudj3 IXmwBhfp8XrbHKOVRlfY7yaHMoqbQRA2RDY8KEIeZXEpSen4nrUEDbfRXK03FknW9pBl 9zBHf/gyxmi3XpADxkaEbYBEPGDdVBJaC0EWoWPqD7DTBTSMDna1D2OHyeDjR9qHSrn9 PtYRQCbl/UOp419oVCjr1nelxjzve8qC3BvL8XuDf3PDLWqqMN2Tod34aXe6lFzv/snU Fy+zNody9S9ciD3951LUyisxp0KqQwHPw3AbVjY24TOKevx7P/uTp5vbR41AbJX2iRRG DHAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dz257uznfC3AnrOY4nQzmEUmfPK0NQp3esYBKNNXC20=; b=w2apXL7STqyBM/csXEi2eLjYSJHAGtRCGQ8y6xKB1JV0QuM0ILOcgrVqhkLKzq2qEB ZjwG/aswqAYCLQSueTmLugTfmLk7ohinUJgn2tJreAt32UEMF9ZXpzCTVX2DkDc50RKY is1ZngD1Db1Ub/wogCSqYRIh7Vc9TBRI3/f4bVLeGfqaMheN0f+Y58ZXSzi+YT7T7NV2 3CNzl0iG/ChPuHzUUyrH5C5yTQMjX2nMC0V+hYQkSwtbhEn+rA9prheB8z2Av/AUJkqZ TBvCJuagnHc2YDlqdb9W2MfhjZrOwbAOdqLKo6R4ZUyRuN+0bTT5i1BDHI/k56nwnjxD TFAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yvROEIpJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186si16435368pfe.262.2019.04.04.02.07.21; Thu, 04 Apr 2019 02:07:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yvROEIpJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732344AbfDDJGg (ORCPT + 99 others); Thu, 4 Apr 2019 05:06:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:45046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732334AbfDDJGd (ORCPT ); Thu, 4 Apr 2019 05:06:33 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6FBD521901; Thu, 4 Apr 2019 09:06:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368792; bh=svEgfPLb2GsrPtkBxZSjjkrlBz+RrO43Z+D/n+ym1+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yvROEIpJ1jHSEa9+cZnfs39oPhbAYWS4ujcBBHB3ypEDyCrcLkVdA853efR0BKXuM 4U5KiDM2kd/z1kq7LTBoKylPn/NoRWmlrNo3wsWVvmFhy+tXf845N1H/jA+0ok8jK6 Eacgt/9O+BwQrNpZFqoMSiEkDPtBVbatCfCCqzug= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Sean Paul , Daniel Vetter , Sasha Levin , Alex Deucher Subject: [PATCH 4.19 172/187] drm/nouveau: Stop using drm_crtc_force_disable Date: Thu, 4 Apr 2019 10:48:29 +0200 Message-Id: <20190404084611.198395073@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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ä Reviewed-by: Alex Deucher (v1) Cc: Sean Paul Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20181217194303.14397-2-daniel.vetter@ffwll.ch Signed-off-by: Sasha Levin --- 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 6a4ca139cf5d..8fd8124d72ba 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