From owner-freebsd-bugs@freebsd.org Thu Jul 30 14:17:31 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8D0333A6DA7 for ; Thu, 30 Jul 2020 14:17:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BHXYR3H72z4Qxx for ; Thu, 30 Jul 2020 14:17:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7063A3A6DA6; Thu, 30 Jul 2020 14:17:31 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 702423A6DA5 for ; Thu, 30 Jul 2020 14:17:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BHXYR2Hjqz4QbT for ; Thu, 30 Jul 2020 14:17:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 322DF12548 for ; Thu, 30 Jul 2020 14:17:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06UEHVoB043898 for ; Thu, 30 Jul 2020 14:17:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06UEHV1V043897 for bugs@FreeBSD.org; Thu, 30 Jul 2020 14:17:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 248368] devd MEDIACHANGE events are delivered unreliably for /dev/cdX devices Date: Thu, 30 Jul 2020 14:17:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: arrowd@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2020 14:17:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248368 Bug ID: 248368 Summary: devd MEDIACHANGE events are delivered unreliably for /dev/cdX devices Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: arrowd@FreeBSD.org 1. VirtualBox On a VirtualBox VM with a CD-ROM device attached I run: # cat /var/run/devd.pipe | grep cd While it runs, I insert and then eject an ISO image to/from the drive. This yields MEDIACHANGE event only during **ejection**: !system=3DDEVFS subsystem=3DCDEV type=3DMEDIACHANGE cdev=3Dcd0 !system=3DGEOM subsystem=3DDEV type=3DMEDIACHANGE cdev=3Dcd0 2. Real hardware The same test done on real computer and DVD-ROM drive results in MEDIACHANGE events emitted during **insertion** only, and not on ejection. Additionally, devd log is spammed with following errors, not sure if releva= nt: !system=3DCAM subsystem=3Dperiph type=3Derror device=3Dcd0 serial=3D"K1KH3T= A2730" cam_status=3D"0xcc" scsi_status=3D2 scsi_sense=3D"71 02 3a 02" CDB=3D"00 00= 00 00 00 00 " --=20 You are receiving this mail because: You are the assignee for the bug.=