Re: Fwd: core dump on kldload atapicam

From: Gonzalo Nemmi <gnemmi_at_gmail.com>
Date: Thu, 24 Sep 2009 12:27:53 -0300
On Thursday 24 September 2009 6:36:38 am Alexander Motin wrote:
> Jaakko Heinonen wrote:
> > On 2009-09-23, Alexander Motin wrote:
> >> Then please explain me how it happens. I don't think that
> >> explanation "it just works" sufficient.
> >>
> >> Any ideas what needed to reproduce that? Because it looks like not
> >> going to fall in my case:
> >
> > It happens if a parent ata device is not attached. I can reproduce
> > the problem on system which hash ata0, ata2 and ata3 devices but
> > ata1 fails to probe.
>
> Nice catch. I think it is newbus problem, not ata. I am able to
> simulate this problem locally and attached patch fixes it. Any
> objections?

After a lot of going back and forth and trying Jaakko's patch, I did a 
clean -RC1 install today, applied your patch, make kernel, reboot and 
it works. Here's the output:

[gonzalo_at_inferna ~]% ssh root_at_192.168.1.15
Password:
Last login: Thu Sep 24 12:19:54 2009
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights 
reserved.

FreeBSD 8.0-RC1 (GENERIC) #0: Thu Sep 24 12:06:44 ART 2009

Welcome to FreeBSD!

Before seeking technical support, please use the following resources:

o  Security advisories and updated errata information for all releases 
are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA 
section
   for your release first as it's updated frequently.

o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.

If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions_at_FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.

You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login 
announcement.

gargoyle# kldload atapicam
gargoyle# tail -15 /var/log/messages
Sep 24 12:19:46 gargoyle kernel: uhub6: 6 ports with 6 removable, self 
powered
Sep 24 12:19:46 gargoyle kernel: Trying to mount root from 
ufs:/dev/ad4s4a
Sep 24 12:19:47 gargoyle kernel: bge0: link state changed to UP
Sep 24 12:19:54 gargoyle login: ROOT LOGIN (root) ON ttyv0
Sep 24 12:20:35 gargoyle kernel: acd0: FAILURE - INQUIRY ILLEGAL REQUEST 
asc=0x24 ascq=0x00
Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): TEST UNIT READY. 
CDB: 0 0 0 0 0 0
Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): CAM Status: SCSI 
Status Error
Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): SCSI Status: Check 
Condition
Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): NOT READY asc:3a,0
Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): Medium not present
Sep 24 12:20:35 gargoyle kernel: (probe0:ata0:0:0:0): Unretryable error
Sep 24 12:20:35 gargoyle kernel: cd0 at ata0 bus 0 target 0 lun 0
Sep 24 12:20:35 gargoyle kernel: cd0: <MATSHITA DVD+-RW UJ-875S D200> 
Removable CD-ROM SCSI-0 device
Sep 24 12:20:35 gargoyle kernel: cd0: 33.000MB/s transfers
Sep 24 12:20:35 gargoyle kernel: cd0: Attempt to query device size 
failed: NOT READY, Medium not present
gargoyle# camcontrol devlist
<MATSHITA DVD+-RW UJ-875S D200>    at scbus1 target 0 lun 0 (pass0,cd0)
gargoyle#

If you'd like me to test something in particular, just tell me what and 
how and I'll do it right away. Your patch solved my problem. Thanks 
_a_lot_ !!

Best Regards
Gonzalo
-- 
Blessings
Gonzalo Nemmi
Received on Thu Sep 24 2009 - 13:27:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC