From owner-freebsd-stable@freebsd.org Mon May 2 17:28:21 2016 Return-Path: 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 5277DB2A745 for ; Mon, 2 May 2016 17:28:21 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 156771A87 for ; Mon, 2 May 2016 17:28:21 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-oi0-x236.google.com with SMTP id v145so165544227oie.0 for ; Mon, 02 May 2016 10:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=Lidqs4zbKCZoipueVPlNr3R/eWlG0YVgN8vx/yV3CZk=; b=v/af7Gt+TlUFTUBz3nIf5Upo1QgXTl9hfUvU7f/XSnSekluvXW2gvr10ExY0IMaFcJ +2FfpfbRj3LUKamn1ArSyqXOUCN4/xm3Zkitqjd8ryHKBR7vKZamfEl/hhDNgl3I2Vop 3tfZdaeFd3OuoeF4TLlVz0U3+TTmP50lb0Xww9M0lI3mkMoXnkV7RHySDzH0KIGxDX+w x+kxlYAPFU+eEundMqQ6Kf8Qm+kuPAWi1bqXvkv2n3/AKOsWXABYuJDG3OMnODXNhBt1 ucZ7fXIDT3h4iCT38ugOM4qr5iMA0jPxQzFkFgSwKCG9868vq4zAEDR09dAxi36Tqw9Y aCgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Lidqs4zbKCZoipueVPlNr3R/eWlG0YVgN8vx/yV3CZk=; b=T1LnBahnCC1Z8xLITuLhyJ1gKKJlOZeWLhPsMdhvF9AAjT91tQEXCnwjcdBa4d4oAS cFUZZJKAmfaU2hkILak2ElxiKczQhnvaGWK16RRfbGPcCTbzAcDKaCe/Z1N+SohS7meN FaQFQgedMwgdJqnVQCS7/3oZM7WRmgxu+tW9FAeCTfuACLWqC1GA+DVit56U6kO0TGeH Y7rYVKgnTjLSIINXGVIcgJH+iIUVDuDMSETL3z5H6wqg+SWaP/EbWUaiFo/XdCkRK/uB gmMPN74AEIuC41/jD9a55WPLK8bycdA2Rj+La+9+6WnXScz2hrFDiYmzxL42C0WBFrPS 7/Xw== X-Gm-Message-State: AOPr4FX08OG+4qgqPow0Y5shBzBJfc/vgpqnAIffzUrGbMx0ypgX2rLQa3xeTuJHlKBhU+GuJa7LWc5zSprmMA== MIME-Version: 1.0 X-Received: by 10.157.46.70 with SMTP id c6mr16161091otd.106.1462210100418; Mon, 02 May 2016 10:28:20 -0700 (PDT) Sender: asomers@gmail.com Received: by 10.202.64.138 with HTTP; Mon, 2 May 2016 10:28:20 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 May 2016 11:28:20 -0600 X-Google-Sender-Auth: yP3wCtab9wvaxQPPH8Tu-Mi3Su8 Message-ID: Subject: Re: devd(8) complains loudly when DVD player is empty, possibly due to r298134 From: Alan Somers To: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Cc: Scott Long , FreeBSD stable Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2016 17:28:21 -0000 "-q" is only really intended for embedded systems that don't use the standard syslogd or that are extremely concerned about syslogd's pipe bandwidth and/or CPU usage. Most people should control devd's chattiness with /etc/syslog.conf. This setting is good for most people. It will log actions devd takes based on the stuff in /etc/devd/, but not much else. !devd *.>=3Dnotice /var/log/devd.log And if you're directing every facility to its own file, you might consider something like this: !-devd user.* /var/log/user.log -Alan On Sun, May 1, 2016 at 9:07 AM, Trond Endrest=C3=B8l < Trond.Endrestol@fagskolen.gjovik.no> wrote: > On Wed, 27 Apr 2016 13:46-0400, Scott Long wrote: > > > 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 > > I solved the problem by running devd with -q, i.e. devd_flags=3D"-q" in > /etc/rc.conf. This should probably be the default anyway. > > All of my systems (stable/10) have custom logging where each facility > has its own file. Also *.*;mark.* is sent to /dev/ttyvb and to the > central log host. /dev/ttyvb was pretty busy on the log host. > > Making devd less chatty does have its merits. > The next servers I buy will probably exclude a DVD player. > > Happy hacking. > > > > On Apr 27, 2016, at 1:23 PM, Trond Endrest=C3=B8l < > Trond.Endrestol@fagskolen.gjovik.no> wrote: > > > > > > Hi, > > > > > > The symptoms began after upgrading from stable/10 r298033 to stable/1= 0 > r298573. > > > > > > Apr 27 18:40:00 [HOSTNAME] devd: Processing event > '!system=3DCAM subsystem=3Dperiph type=3Derror device=3Dcd0 serial=3D"R8K= L6GKC900AFG" > cam_status=3D"0xcc" scsi_status=3D2 scsi_sense=3D"70 02 04 01" CDB=3D"00 = 00 00 00 > 00 00 " ' > > > > > > These messages are just seconds apart: > > > > > > Apr 27 18:40:01 [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 [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 [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 " ' > > > > > > 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: 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=3Drevision&revision=3D298134 > > -- > +-------------------------------+------------------------------------+ > | 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" >