Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5640641img; Wed, 27 Mar 2019 12:15:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ0CqR4GPh9iZVcOoR3efaMIjEOkCG3reARD8VA6uzf0cQGFwptmkQbhcTjJH3acJLX/WW X-Received: by 2002:a17:902:b404:: with SMTP id x4mr39070300plr.232.1553714110595; Wed, 27 Mar 2019 12:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553714110; cv=none; d=google.com; s=arc-20160816; b=r1oFSdvaPSfjwy/R0w1sidwS5HMLEG0G17XIvO9l8Af1PRaHXGxbMBwiyPjM5shRP6 DqyJ8jZ9kUNwSqwK4YIqTHpd+DcYR0r6bmdNPQgnhiM+ZM0nBtpU1iONYmLcnh14Y0j7 DOVPgap0UTKtVNPCB1/IAVEVCCWlnS7rUEaIGUkEY3D9qMsGlc+zIVThRtikaJYFf6Jc 9N8J3/OlXvejnppRHIywPtzdjFg6srY1dFCt+5O82f/Bw1Hk6PvrVmNn14u2Dy2lyx+W t58O3IXphmhL27cCOmATi3co04pTJqipnu0Xv8pWPX5U+wIcTbu6BLlY2wNB1Uje4m0V 0aFA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fgwzUpho8DMfjuG8dsMU+VUsbYCStCrJsI9BUwsAfCU=; b=kWLzgElALZN/qjspwhkcV0M5cqfQZQD52iQeKMt4q0zAWLLGJuBqAvs3gOWaj+Usc2 fWDju3WQj1LOxf/tF6RT5+tiz3p13aVT5RlKQGtJxxRzqygFYTAtl//fOq1aecDqKRfN dXK9X5A2SjGQvZlGpfM9FrcUF+aaVZMA/ITiIdSxQw9Ew2qjxl1NgDD1U1K8gSa5faHA VCH0Ufxm9da1y7SswN4E07AaRh2Xjwnb6WowbgbXEXg/p8spoPGs+H63TFl8Ltml2D9P ggzGhazNozhs2x7Xu2Pl/DHloKGcGXElVuR5azV6V86p9dy51vGJa3wgnkrUfmlyA8KK BqZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uiXFnSa4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 129si1246001pfz.159.2019.03.27.12.14.54; Wed, 27 Mar 2019 12:15:10 -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=uiXFnSa4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388730AbfC0TOU (ORCPT + 99 others); Wed, 27 Mar 2019 15:14:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:51676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388631AbfC0SJs (ORCPT ); Wed, 27 Mar 2019 14:09:48 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CB8CC2063F; Wed, 27 Mar 2019 18:09:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710187; bh=eWNi1/2LgvDUiHsHnel0TmTz8K9TZ+gzcNTjsTjv8Sk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uiXFnSa4B8Ra9vjSymB+G4y0LPmNsfz3llPtIAsu72Nt/b0NdAmlRHpwTipm7/KGF SdOv7Xxc2dz0RunzATSRa1lRiWYk6Wn4iOUZyz0JwfX0otIcwSQF9+tGyOoBQzDXHH rT599GNrtlmCe7K+z+PDoJh8MDhz9vqEoBof96+4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Daniel Vetter , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Sean Paul , Daniel Vetter , Sasha Levin , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.0 242/262] drm/nouveau: Stop using drm_crtc_force_disable Date: Wed, 27 Mar 2019 14:01:37 -0400 Message-Id: <20190327180158.10245-242-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Vetter [ 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