Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5611705img; Wed, 27 Mar 2019 11:41:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGsVGyP9A7g5Ff0X8T4GKo4FaOE23Li6oUUsmZV+rayAUEiPO+XGJrzAAb/Je2s7OHJ17k X-Received: by 2002:a62:12d0:: with SMTP id 77mr37031617pfs.15.1553712064631; Wed, 27 Mar 2019 11:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553712064; cv=none; d=google.com; s=arc-20160816; b=0be7jDPwjXEPM7yO2zq6XZN8/QXhR02rnMAvLREL57bsUr6uODjx9kxSsNoi9ViqqG /wE6Zx9UI4obFkgShxU3Fodbr37UCiVeWy7hgvvB9kt4AH3+zM251871P0Ugyl/4kFda +h9aVSu74kKKPfMSIAQ8mYJclchce1KWBgLzmAliJzdRhWCANQv8GTuq8eB4F3BSumhk /nG1oD8PbRZgFHoJVTDol6DcouAEziDtPPUJ0owHd0mUk8BZs2/AFJO6/Xn5Jaauzj8L 4c9Sm5lH+dE0jFebpTmUE9GeqHcQBxtkEhzHzG9uJ95hcIkXeqo8K1K3za1+StOTBicT q5vw== 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=3xbjXNFTAmEf5qAyg0orjILPGUgvPvH5104NDO8+YE4=; b=uha04tXCqs9DLvRYJ+uTFijJhxR4s1HoxHIrv2pkbgaYXpovCb0hQj63P6piEVpcY4 ceVBJXuxplymWrj9e0laleoZ8JYnnLENnTwkMF2/ZHafkULxeloUfne14+ewxbgwouaw sSNJT7FZaBwNL+4lyPj/5xOwiQBXBY1lqD8uCpRLwgdNJ9aty9qIB7psi9iTKwjnCn7O rXleh+CggmL80SMwHOV9TWKur9x3T0V6T1jde+zRt0TdvV/PLJqAxqpSaISia7vuuUyc 5BNccuzg4Y41TyXokoYpJsC9HhiZ3QSTzVOr2EFpOqigjBX0Oxle4s37ERNrasU/dfFb JlTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YvC46zd8; 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 d5si20278773pla.312.2019.03.27.11.40.49; Wed, 27 Mar 2019 11:41:04 -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=YvC46zd8; 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 S2391246AbfC0SXM (ORCPT + 99 others); Wed, 27 Mar 2019 14:23:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:41430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388836AbfC0SXJ (ORCPT ); Wed, 27 Mar 2019 14:23:09 -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 6461720651; Wed, 27 Mar 2019 18:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710988; bh=j1gkuQlke2C0Q/P6z+5UCuBRWkRQxc6+f39anwhRZIE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YvC46zd8oxhx0GgzLCHFdvgeF7z8Gtm+NF4JDDXxD26AnPAl+GdIvwEb2yjCXNyhq lKL2msn13MSTJtfIAu+JGBieEYulwvGbY62SswUoO7BQKmCBIs4ucmrczswLW3cWrJ ka+yDtTZLRQmrMY+iTHrJDGh4lm8LesdWVCOvL/E= 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 4.9 80/87] drm/nouveau: Stop using drm_crtc_force_disable Date: Wed, 27 Mar 2019 14:20:33 -0400 Message-Id: <20190327182040.17444-80-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327182040.17444-1-sashal@kernel.org> References: <20190327182040.17444-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 434d1e29f279..cd37d00e9723 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