From owner-freebsd-stable@freebsd.org Tue May 3 04:29:04 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 45ECAB2A99D for ; Tue, 3 May 2016 04:29:04 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C8C0C1EFF; Tue, 3 May 2016 04:29:03 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id u434SuId097206 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 3 May 2016 06:28:56 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id u434St53097203; Tue, 3 May 2016 06:28:55 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 3 May 2016 06:28:55 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Alan Somers cc: Scott Long , FreeBSD stable Subject: Re: devd(8) complains loudly when DVD player is empty, possibly due to r298134 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT 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: Tue, 03 May 2016 04:29:04 -0000 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 [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 [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 [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 [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: 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: 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 ; 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 ; 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 ) 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: Date: Tue, 03 May 2016 09:46:05 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2016 07:46:09 -0000 On Tue, 03 May 2016 02:51:56 +0200, Ronald Klop 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: mem 0xf8000000-0xf8001fff irq 17 at > device 0.0 on pci3 > > ifconfig: > wlan0: flags=8843 metric 0 mtu > 1500 > ether **:**:**:**:**:** > nd6 options=29 > 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.