Re: Fwd: core dump on kldload atapicam



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@inferna ~]% ssh root@xxxxxxxxxxxx
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@xxxxxxxxxxx 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
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Ctrl+C doesnt interrupt process waiting for I/O
    ... some process is keeping the disk busy (some cron job for example: ... The following patch to 2.6.26-rc8 fixes the issue for me. ... I have tried to reproduce the original poster's issue on ... This disables the flush step, ...
    (Linux-Kernel)
  • Re: Outlook HTML crash
    ... This is definitely older than the latest IE patch, ... I can reproduce the issue more ... in Outlook or Outlook Express which causes them to crash or overflow (like ... Subject: Outlook HTML crash ...
    (Vuln-Dev)
  • Re: [2.6.26-rc4] mount.nfsv4/memory poisoning issues...
    ... If you can easily reproduce this, ... Note that this patch is entirely untested, ... The original patch that Trond commented on above is also probably ... could you apply that patchset to your kernel and see if it helps ...
    (Linux-Kernel)
  • Re: [PATCH update] firewire: reread config ROM when device reset the bus
    ... So don't put this patch into production yet. ... To reproduce it, I need to plug an SBP-2 device in and out, then shut the machine down (e.g. shutdown -h now, whereas shutdown -r now does not seem to trigger the bug). ... I am now gradually removing debug options from the kernel to see which debug facility is making the fuzz... ...
    (Linux-Kernel)