From owner-freebsd-hardware@FreeBSD.ORG Tue Mar 29 03:20:07 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C75CB1065673; Tue, 29 Mar 2011 03:20:07 +0000 (UTC) (envelope-from steven_nikkel@ertyu.org) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8622F8FC12; Tue, 29 Mar 2011 03:20:07 +0000 (UTC) Received: from pd3ml1so-ssvc.prod.shaw.ca ([10.0.141.140]) by pd3mo1so-svcs.prod.shaw.ca with ESMTP; 28 Mar 2011 21:20:06 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=PoCsjI4yX/9PNLpOJB7VMdKHKyM4vJcX/7ufEpQ0Uvw= c=1 sm=1 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=97yHE6Nv0E5rBv82QpB2FA==:17 a=fGO4tVQLAAAA:8 a=tZan19wuAAAA:8 a=sQotUzF2nPdF0aC7MUkA:9 a=InNu5r2pkz57PGFLzKsA:7 a=MlciCFn8P4VYd21hGXt5epD5UkIA:4 a=CjuIK1q_8ugA:10 a=YY1X9cfHHtQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO ertyu.org) ([24.78.45.129]) by pd3ml1so-dmz.prod.shaw.ca with ESMTP; 28 Mar 2011 21:20:06 -0600 Date: Mon, 28 Mar 2011 22:20:05 -0500 (CDT) From: Steven Nikkel To: John Baldwin In-Reply-To: <201103280818.06763.jhb@freebsd.org> Message-ID: References: <3052ba363957ef179b4531ed0362d494.squirrel@www2.ertyu.org> <201103241315.28747.jhb@freebsd.org> <201103280818.06763.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hardware@freebsd.org Subject: Re: 8.x and Modems X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2011 03:20:08 -0000 On Mon, 28 Mar 2011, John Baldwin wrote: >>>>>>>>>> I recently upgraded my trusty old 4.x system to 8.1 and the one > little >>>>>>> bit >>>>>>>>>> I can't get working is the internal ISA modem in the system. On 4.x > it >>>>>>> was >>>>>>>>>> detected automatically by the sio driver: >>>>>>>>>> >>>>>>>>>> /kernel: sio4: <U.S. Robotics Sportster 33600 FAX/Voice Int> > at >>>>>>> port >>>>>>>>>> 0x3e8-0x3ef irq 5 on isa0 >>>>>>>>>> /kernel: sio4: type 16550A >>>>>>>>> >>>>>> >>>>>> Ok, here's the proper verbose dump: http://pastebin.com/DJ1z0k4D >>>>>> I've set it back to PnP mode and taken out all the specific hints. >>>>> >>>>> Hmm, no helpful bootverbose messages in the pnp.c code it seems. >>>>> >> >> A first glance tells me the only thing that could be happening is a time out > trying to read resources. So sure enough after a couple hours of compiling and > reboots that is the issue. The first check shows it reads a few resources then > times out trying to read one 45 bytes long. I updated the time out > dramatically in pnp_get_resource_info to verify and sure enough PNP now > successfully initializes the card. Curiously I looked at pnpinfo and it seems > to use pretty much the exact same process, except it was working previously. > (PS: I set the count to 1000 and delay to 100, extreme overkill, but I didn't > want to wait for several kernel compiles to get it to work) > > Can you try just increasing the DELAY()? If that works I'll commit it. I > wonder if DELAY(1) is broken somehow. (Would be odd if DELAY(2) worked for > example, but DELAY(1) didn't.) > >> Here are some relevant snippets from dmesg with my debugging bits: > http://pastebin.com/uKRReBc0 >> >> Now onto the next bit: uart doesn't seem to identify the card properly. This > was about the same message I was getting when I hard coded the settings on the > board (no-pnp) and put them in device.hints >> >> However, it does seem to produce results now when I try to use it. Different > than previous usage, but at least appears to be useful. > > So is the card working correctly now? Is the only problem the string name in > dmesg? > > -- > John Baldwin > I upped to DELAY(2) in pnp_get_resource_info and left everything else as what it was originally, modem was detected properly. Curiously the uart driver now reports a different port type: uart5: <16550 or compatible> at port 0x3e8-0x3ef irq 5 pnpid USR0011 on isa0 uart5: [FILTER] uart5: fast interrupt I'm still testing the modem, I'm only using a very limit set of its functionality. It doesn't function like it did in 4.x, so I'm having to access it differently, but its similar behaviour. --- Steven Nikkel steven_nikkel@ertyu.org