Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2016 19:23:44 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        FreeBSD stable <freebsd-stable@freebsd.org>
Subject:   devd(8) complains loudly when DVD player is empty, possibly due to r298134
Message-ID:  <alpine.BSF.2.20.1604271908090.14591@mail.fig.ol.no>

next in thread | raw e-mail | index | archive | help
Hi,

The symptoms began after upgrading from stable/10 r298033 to stable/10 r298573.

Apr 27 18:40:00 <user.info> [HOSTNAME] devd: Processing event '!system=CAM subsystem=periph type=error device=cd0 serial="R8KL6GKC900AFG" cam_status="0xcc" scsi_status=2 scsi_sense="70 02 04 01" CDB="00 00 00 00 00 00 " '

These messages are just seconds apart:

Apr 27 18:40:01 <user.info> [HOSTNAME] devd: Processing event '!system=CAM subsystem=periph type=error device=pass1 serial="R8KL6GKC900AFG" cam_status="0xcc" scsi_status=2 scsi_sense="70 02 04 01" CDB="00 00 00 00 00 00 " '
Apr 27 18:40:03 <user.info> [HOSTNAME] devd: Processing event '!system=CAM subsystem=periph type=error device=pass1 serial="R8KL6GKC900AFG" cam_status="0xcc" scsi_status=2 scsi_sense="70 02 04 01" CDB="00 00 00 00 00 00 " '
Apr 27 18:40:05 <user.info> [HOSTNAME] devd: Processing event '!system=CAM subsystem=periph type=error device=pass1 serial="R8KL6GKC900AFG" cam_status="0xcc" scsi_status=2 scsi_sense="70 02 04 01" CDB="00 00 00 00 00 00 " '

When I put a CD or DVD in the DVD player, the messages stop. As soon 
as I eject the disc, they start appearing again.

Here's the relevant part from dmesg:

cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
cd0: <TSSTcorp DVD+-RW SN-208BB D500> Removable CD-ROM SCSI device
cd0: Serial Number R8KL6GKC900AFG
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed

This is on a mid-2012 Dell Latitude E5530 with the stock DVD player.

Upgrading to stable/10 r298705 doesn't resolve this issue.

Does anyone else see this?

Maybe r298134 is to blame:

  stable/10/sys/cam/cam_periph.c

  MFC r298004:

  Add a devctl/devd notification conduit for CAM errors that happen at the
  periph level.

  Due to not merging the changes to ata_res_sbuf(), this version is a little
  messy.

  Sponsored by:	Netflix

http://svnweb.freebsd.org/base?view=revision&revision=298134

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-stable@freebsd.org  Wed Apr 27 17:46:33 2016
Return-Path: <owner-freebsd-stable@freebsd.org>
Delivered-To: freebsd-stable@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7AC15B1ED08
 for <freebsd-stable@mailman.ysv.freebsd.org>;
 Wed, 27 Apr 2016 17:46:33 +0000 (UTC)
 (envelope-from scottl@samsco.org)
Received: from mail.samsco.org (suzi.samsco.org [96.84.242.101])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 4CE9E1686
 for <freebsd-stable@freebsd.org>; Wed, 27 Apr 2016 17:46:32 +0000 (UTC)
 (envelope-from scottl@samsco.org)
Received: from localhost (localhost [192.168.254.3])
 by mail.samsco.org (Postfix) with ESMTP id 06C2315C1867C;
 Wed, 27 Apr 2016 17:47:07 +0000 (UTC)
Received: from mail.samsco.org ([192.168.254.3])
 by localhost (mail.samsco.org [192.168.254.3]) (maiad, port 10024) with ESMTP
 id 66540-04; Wed, 27 Apr 2016 17:47:06 +0000 (UTC)
Received: from [100.127.144.32] (unknown [69.53.245.23])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: scottl@samsco.org)
 by mail.samsco.org (Postfix) with ESMTPSA id 6F6A615C1867B;
 Wed, 27 Apr 2016 17:47:06 +0000 (UTC)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Subject: Re: devd(8) complains loudly when DVD player is empty,
 possibly due to r298134
From: Scott Long <scottl@samsco.org>
In-Reply-To: <alpine.BSF.2.20.1604271908090.14591@mail.fig.ol.no>
Date: Wed, 27 Apr 2016 13:46:23 -0400
Cc: FreeBSD stable <freebsd-stable@freebsd.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <AF3E901D-CC0C-40D5-A806-46A89FA70A4A@samsco.org>
References: <alpine.BSF.2.20.1604271908090.14591@mail.fig.ol.no>
To: =?utf-8?Q?Trond_Endrest=C3=B8l?= <Trond.Endrestol@fagskolen.gjovik.no>
X-Mailer: Apple Mail (2.3124)
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-stable>, 
 <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable/>;
List-Post: <mailto:freebsd-stable@freebsd.org>
List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-stable>,
 <mailto:freebsd-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 27 Apr 2016 17:46:33 -0000

Hi Trond,

Thanks for the report.  I might be mistaken, but the default system is =
not configured to direct devd messages to user.info, so I didn=E2=80=99t =
see this during my development.  However, what you=E2=80=99re reporting =
is definitely annoying, so Warner Losh and I are working on a solution.

Scott

> On Apr 27, 2016, at 1:23 PM, Trond Endrest=C3=B8l =
<Trond.Endrestol@fagskolen.gjovik.no> wrote:
>=20
> Hi,
>=20
> The symptoms began after upgrading from stable/10 r298033 to stable/10 =
r298573.
>=20
> Apr 27 18:40:00 <user.info> [HOSTNAME] devd: Processing event =
'!system=3DCAM subsystem=3Dperiph type=3Derror device=3Dcd0 =
serial=3D"R8KL6GKC900AFG" cam_status=3D"0xcc" scsi_status=3D2 =
scsi_sense=3D"70 02 04 01" CDB=3D"00 00 00 00 00 00 " '
>=20
> These messages are just seconds apart:
>=20
> Apr 27 18:40:01 <user.info> [HOSTNAME] devd: Processing event =
'!system=3DCAM subsystem=3Dperiph type=3Derror device=3Dpass1 =
serial=3D"R8KL6GKC900AFG" cam_status=3D"0xcc" scsi_status=3D2 =
scsi_sense=3D"70 02 04 01" CDB=3D"00 00 00 00 00 00 " '
> Apr 27 18:40:03 <user.info> [HOSTNAME] devd: Processing event =
'!system=3DCAM subsystem=3Dperiph type=3Derror device=3Dpass1 =
serial=3D"R8KL6GKC900AFG" cam_status=3D"0xcc" scsi_status=3D2 =
scsi_sense=3D"70 02 04 01" CDB=3D"00 00 00 00 00 00 " '
> Apr 27 18:40:05 <user.info> [HOSTNAME] devd: Processing event =
'!system=3DCAM subsystem=3Dperiph type=3Derror device=3Dpass1 =
serial=3D"R8KL6GKC900AFG" cam_status=3D"0xcc" scsi_status=3D2 =
scsi_sense=3D"70 02 04 01" CDB=3D"00 00 00 00 00 00 " '
>=20
> When I put a CD or DVD in the DVD player, the messages stop. As soon=20=

> as I eject the disc, they start appearing again.
>=20
> Here's the relevant part from dmesg:
>=20
> cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
> cd0: <TSSTcorp DVD+-RW SN-208BB D500> Removable CD-ROM SCSI device
> cd0: Serial Number R8KL6GKC900AFG
> cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO =
8192bytes)
> cd0: Attempt to query device size failed: NOT READY, Medium not =
present - tray closed
>=20
> This is on a mid-2012 Dell Latitude E5530 with the stock DVD player.
>=20
> Upgrading to stable/10 r298705 doesn't resolve this issue.
>=20
> Does anyone else see this?
>=20
> Maybe r298134 is to blame:
>=20
>  stable/10/sys/cam/cam_periph.c
>=20
>  MFC r298004:
>=20
>  Add a devctl/devd notification conduit for CAM errors that happen at =
the
>  periph level.
>=20
>  Due to not merging the changes to ata_res_sbuf(), this version is a =
little
>  messy.
>=20
>  Sponsored by:	Netflix
>=20
> http://svnweb.freebsd.org/base?view=3Drevision&revision=3D298134
>=20
> --=20
> +-------------------------------+------------------------------------+
> | Vennlig hilsen,               | Best regards,                      |
> | Trond Endrest=C3=B8l,              | Trond Endrest=C3=B8l,           =
        |
> | IT-ansvarlig,                 | System administrator,              |
> | Fagskolen Innlandet,          | Gj=C3=B8vik Technical College, =
Norway,  |
> | tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
> | sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
> +-------------------------------+------------------------------------+
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to =
"freebsd-stable-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1604271908090.14591>