From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:54940 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754740AbdA0OhE (ORCPT ); Fri, 27 Jan 2017 09:37:04 -0500 Subject: Patch "drm/atomic: clear out fence when duplicating state" has been added to the 4.9-stable tree To: l.stach@pengutronix.de, airlied@linux.ie, daniel.vetter@ffwll.ch, daniel@ffwll.ch, fabio.estevam@nxp.com, festevam@gmail.com, gregkh@linuxfoundation.org Cc: , From: Date: Fri, 27 Jan 2017 15:37:16 +0100 In-Reply-To: <20170127103304.27613-1-l.stach@pengutronix.de> Message-ID: <148552783625197@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled drm/atomic: clear out fence when duplicating state to the 4.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-atomic-clear-out-fence-when-duplicating-state.patch and it can be found in the queue-4.9 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From l.stach@pengutronix.de Fri Jan 27 15:34:48 2017 From: Lucas Stach Date: Fri, 27 Jan 2017 11:33:04 +0100 Subject: drm/atomic: clear out fence when duplicating state To: David Airlie Cc: dri-devel@lists.freedesktop.org, stable@vger.kernel.org, Daniel Vetter , Fabio Estevam , kernel@pengutronix.de, patchwork-lst@pengutronix.de Message-ID: <20170127103304.27613-1-l.stach@pengutronix.de> From: Lucas Stach [Fixed differently in 4.10] The fence needs to be cleared out, otherwise the following commit might wait on a stale fence from the previous commit. This was fixed as a side effect of 9626014258a5 (drm/fence: add in-fences support) in kernel 4.10. As this commit introduces new functionality and as such can not be applied to stable, this patch is the minimal fix for the kernel 4.9 stable series. Signed-off-by: Lucas Stach Reviewed-by: Daniel Vetter Tested-by: Fabio Estevam Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/drm_atomic_helper.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -3115,6 +3115,8 @@ void __drm_atomic_helper_plane_duplicate if (state->fb) drm_framebuffer_reference(state->fb); + + state->fence = NULL; } EXPORT_SYMBOL(__drm_atomic_helper_plane_duplicate_state); Patches currently in stable-queue which might be from l.stach@pengutronix.de are queue-4.9/drm-atomic-clear-out-fence-when-duplicating-state.patch