Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2016 06:28:55 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Alan Somers <asomers@freebsd.org>
Cc:        Scott Long <scottl@samsco.org>, FreeBSD stable <freebsd-stable@freebsd.org>
Subject:   Re: devd(8) complains loudly when DVD player is empty, possibly due to r298134
Message-ID:  <alpine.BSF.2.20.1605030625320.1206@mail.fig.ol.no>
In-Reply-To: <CAOtMX2h7Oydu%2BECM9qZzppLWFPAo%2BiqrYkfJZHP4smFegXAa1g@mail.gmail.com>
References:  <alpine.BSF.2.20.1604271908090.14591@mail.fig.ol.no> <AF3E901D-CC0C-40D5-A806-46A89FA70A4A@samsco.org> <alpine.BSF.2.20.1605011659490.62240@mail.fig.ol.no> <CAOtMX2h7Oydu%2BECM9qZzppLWFPAo%2BiqrYkfJZHP4smFegXAa1g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2 May 2016 11:28-0600, Alan Somers wrote:

> "-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
> *.>=notice                                    /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

Thanks for the suggestion. I'll look into it when I get at work.

> On Sun, May 1, 2016 at 9:07 AM, Trond Endrestøl <
> 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’t
> > > see this during my development.  However, what you’re 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="-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øl <
> > Trond.Endrestol@fagskolen.gjovik.no> wrote:
> > > >
> > > > 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  Tue May  3 07:46:09 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 ACE1DB2B605
 for <freebsd-stable@mailman.ysv.freebsd.org>;
 Tue,  3 May 2016 07:46:09 +0000 (UTC)
 (envelope-from ronald-lists@klop.ws)
Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl
 [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 7A85613D3
 for <freebsd-stable@freebsd.org>; Tue,  3 May 2016 07:46:09 +0000 (UTC)
 (envelope-from ronald-lists@klop.ws)
Received: from smtp.greenhost.nl ([213.108.104.138])
 by smarthost1.greenhost.nl with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.72) (envelope-from <ronald-lists@klop.ws>)
 id 1axV1x-0000kq-Up
 for freebsd-stable@freebsd.org; Tue, 03 May 2016 09:46:06 +0200
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
To: freebsd-stable@freebsd.org
Subject: Re: if_iwn wifi broke on 11-CURRENT
References: <op.ygu3cuhskndu52@53555a16.cm-6-6b.dynamic.ziggo.nl>
Date: Tue, 03 May 2016 09:46:05 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Ronald Klop" <ronald-lists@klop.ws>
Message-ID: <op.ygvmi3rwkndu52@ronaldradial.radialsg.local>
In-Reply-To: <op.ygu3cuhskndu52@53555a16.cm-6-6b.dynamic.ziggo.nl>
User-Agent: Opera Mail/1.0 (Win32)
X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1
X-Virus-Scanned: by clamav at smarthost1.samage.net
X-Spam-Level: /
X-Spam-Score: -0.2
X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED,
 BAYES_50 autolearn=disabled version=3.4.0
X-Scan-Signature: a2d32f98be707cbcda8602d5fffa976a
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.22
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: Tue, 03 May 2016 07:46:09 -0000

On Tue, 03 May 2016 02:51:56 +0200, Ronald Klop <ronald-lists@klop.ws>  
wrote:

> Hi,
>
> I upgraded my laptop and Wifi stopped working.
>
> It still worked on:
> May  2 20:11:13 sjakie kernel: FreeBSD 11.0-CURRENT #8 r296724M: Sun Mar  
> 13 16:03:31 CET 2016
> but broke on:
> May  2 20:24:53 sjakie kernel: FreeBSD 11.0-CURRENT #9 r298900M: Mon  
> May  2 05:00:46 CEST 2016.
>
> I booted the old kernel again and grabbed this information:
> The device is an:
> iwn0: <Intel Centrino Advanced 6235> mem 0xf8000000-0xf8001fff irq 17 at  
> device 0.0 on pci3
>
> ifconfig:
> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu  
> 1500
> 	ether **:**:**:**:**:**
> 	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> 	media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
> 	status: associated
> 	ssid ****** channel 11 (2462 MHz 11g ht/20) bssid **:**:**:**:**:**
> 	regdomain ETSI country NL authmode WPA2/802.11i privacy ON
> 	deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 10 scanvalid 60
> 	protmode CTS ampdulimit 64k ampdudensity 8 -amsdutx amsdurx shortgi
> 	wme roaming MANUAL
> 	groups: wlan
>
> It works on 5Ghz also.

This looks exactly like my issue:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208933
I was just 41 commit short of a working version. ;-) I will try this  
tomorrow.

Regards,
Ronald.




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