Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2321396imm; Mon, 28 May 2018 06:03:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrTLz+IwQXzUtzu4N7oKgxwSOujrjR7m4JzlffAWHdxgtk/XtUOhLNwY/yP/xq/hr7GpE9j X-Received: by 2002:a62:b909:: with SMTP id z9-v6mr13526649pfe.254.1527512588261; Mon, 28 May 2018 06:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527512588; cv=none; d=google.com; s=arc-20160816; b=irMO6DbI5e0QmhkggTrU93mKWM7w61IosG2KvAEh88g0Ggh9shNmS8Elw+kqIF8DiD kPYJZw415TlS9xw1HtOlJbk4UiFGJoVz32WTvJHfIwnvf6mBtsv94kvguTaVE0ts/Hn4 POrL4AH/iXESs2BeQ+bCHa94jST94Oh/Wtntfd05NJkY0XjRMPCyLldBtfrnGN4ujTyq WK8zBsycROowXBI+7gRmAPOqIOI2k7/RNHtL9Z0uVwFTqPjRlvFajwW/rQayTqx7eAqU IcR4g9PeTdMieZV6Yr/8BP8MdkEeqIIk+fyEFG1KShoiii15nl0iGiKbeGq7LgqfP3b3 syFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=u8jMwoQqMXkp7ppkTvalswaAt2jA65jm4o/MI9zyJow=; b=zPJ65WILh9jAhCwiarLIIT2V7TvH+Egx6oR+0a2TP+iZT8ZxXw3RKO2Z+nSUv0e+wX 0mXZKguRAv1bf0Mz+mV4ySud2gis+E5BsUckczFpVsI4BJZjuTwZcHMA3td70vGVqY+m 1twAmu8HHNCD6HJ/EIk1uJlLQWBOddSLeeakHqfcpIZxwyB0q/g9xoJCp0aM2Gw+FWM3 MCLw6yXn6AxH7+G++wHvKVOGIwdbajj7Kfj0CY2U3EZ9nMii6Nmnub4sMXNcG6Am0qIA TpyKf7rChFDRTiIcrl+OQRFW0YIEfitlTVbyFvO5lUg+O7yCZkdEmy8ltSEVQPSFkn/D Z7bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ns4XTbrs; 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 j6-v6si30657346pfc.351.2018.05.28.06.02.32; Mon, 28 May 2018 06:03:08 -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=ns4XTbrs; 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 S939026AbeE1NBm (ORCPT + 99 others); Mon, 28 May 2018 09:01:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:42622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164146AbeE1Kxa (ORCPT ); Mon, 28 May 2018 06:53:30 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 BF40B20845; Mon, 28 May 2018 10:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527504809; bh=4LBqQy8Fyqqx4kARWuNY4l3v3CdN5DAxe7X6uaNRTkQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ns4XTbrs/mF20tCyVB5Ehz6dj8iyaOEvqCTQdhzKXYsBUHEvrMhyE7BdAkn+JATva llArTR61LjjGqiJI/WcB2DX7Fc0Xt4da/Q2gEd+t2nRGiYqsfT4nEwKiaJM8H7+p0j dcz7vAz+DBQ/L4wf/E0ACOe79qDa7Z3VjRZOdvpI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thierry Reding , Sasha Levin Subject: [PATCH 4.14 271/496] drm/tegra: Shutdown on driver unbind Date: Mon, 28 May 2018 12:00:56 +0200 Message-Id: <20180528100331.274719153@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thierry Reding [ Upstream commit 192b4af6cd28cdad9b42fd79c21a90a2aeb0bec7 ] Since commit 846c7dfc1193 ("drm/atomic: Try to preserve the crtc enabled state in drm_atomic_remove_fb, v2."), removing the last framebuffer will no longer disable the corresponding pipeline, which causes the KMS core to complain about leaked connectors on driver unbind. Fix this by calling drm_atomic_helper_shutdown() on driver unbind, which will cause all display pipelines to be shut down and therefore drop the extra references on the connectors. Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/tegra/drm.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -250,6 +250,7 @@ static void tegra_drm_unload(struct drm_ drm_kms_helper_poll_fini(drm); tegra_drm_fb_exit(drm); + drm_atomic_helper_shutdown(drm); drm_mode_config_cleanup(drm); err = host1x_device_exit(device);