Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C05B5C7EE39 for ; Mon, 30 Jun 2025 10:11:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 169FF10E3EB; Mon, 30 Jun 2025 10:11:11 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BxCd/RiP"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3E86D10E3EB for ; Mon, 30 Jun 2025 10:11:10 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 182B8448BF; Mon, 30 Jun 2025 10:11:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82ABBC4CEEB; Mon, 30 Jun 2025 10:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751278270; bh=dSo8CtIuAR5imlFfKdTzsJDUPo/KajLpc3fL93316GE=; h=Subject:To:Cc:From:Date:From; b=BxCd/RiPFYToEgNSz/UObO8GBdA9JTG1VWJLkOngMqHCRsX/V8pXLxCq5dPQpgUrP nigJEefQhj/kQG9fwLGeWJChReMz7MU6F+uTKtoeWdYMcnGvh51IUPpjdOnAssOCIc St8eEX5s/viYmIRk2nPbc7dDS4zi2Ax16AZApGvU= Subject: Patch "drm/udl: Unregister device before cleaning up on disconnect" has been added to the 6.6-stable tree To: dri-devel@lists.freedesktop.org, gregkh@linuxfoundation.org, patrik.r.jakobsson@gmail.com, tzimmermann@suse.de Cc: From: Date: Mon, 30 Jun 2025 12:07:36 +0200 Message-ID: <2025063036-prison-unsaid-7e1a@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is a note to let you know that I've just added the patch titled drm/udl: Unregister device before cleaning up on disconnect to the 6.6-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-udl-unregister-device-before-cleaning-up-on-disconnect.patch and it can be found in the queue-6.6 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. From ff9cb6d2035c586ea7c8f1754d4409eec7a2d26d Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Mon, 3 Mar 2025 15:52:56 +0100 Subject: drm/udl: Unregister device before cleaning up on disconnect From: Thomas Zimmermann commit ff9cb6d2035c586ea7c8f1754d4409eec7a2d26d upstream. Disconnecting a DisplayLink device results in the following kernel error messages [ 93.041748] [drm:udl_urb_completion [udl]] *ERROR* udl_urb_completion - nonzero write bulk status received: -115 [ 93.055299] [drm:udl_submit_urb [udl]] *ERROR* usb_submit_urb error fffffffe [ 93.065363] [drm:udl_urb_completion [udl]] *ERROR* udl_urb_completion - nonzero write bulk status received: -115 [ 93.078207] [drm:udl_submit_urb [udl]] *ERROR* usb_submit_urb error fffffffe coming from KMS poll helpers. Shutting down poll helpers runs them one final time when the USB device is already gone. Run drm_dev_unplug() first in udl's USB disconnect handler. Udl's polling code already handles disconnects gracefully if the device has been marked as unplugged. Signed-off-by: Thomas Zimmermann Fixes: b1a981bd5576 ("drm/udl: drop drm_driver.release hook") Cc: dri-devel@lists.freedesktop.org Cc: # v5.8+ Reviewed-by: Patrik Jakobsson Link: https://patchwork.freedesktop.org/patch/msgid/20250303145604.62962-2-tzimmermann@suse.de Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/udl/udl_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/udl/udl_drv.c +++ b/drivers/gpu/drm/udl/udl_drv.c @@ -126,9 +126,9 @@ static void udl_usb_disconnect(struct us { struct drm_device *dev = usb_get_intfdata(interface); + drm_dev_unplug(dev); drm_kms_helper_poll_fini(dev); udl_drop_usb(dev); - drm_dev_unplug(dev); } /* Patches currently in stable-queue which might be from tzimmermann@suse.de are queue-6.6/drm-cirrus-qemu-fix-pitch-programming.patch queue-6.6/dummycon-trigger-redraw-when-switching-consoles-with.patch queue-6.6/drm-ast-fix-comment-on-modeset-lock.patch queue-6.6/drm-udl-unregister-device-before-cleaning-up-on-disconnect.patch