From owner-freebsd-current@FreeBSD.ORG  Thu Jan 28 16:25:26 2010
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 24AAF1065672;
	Thu, 28 Jan 2010 16:25:26 +0000 (UTC)
	(envelope-from lists@yamagi.org)
Received: from mail.yamagi.org (yamagi.org [88.198.78.242])
	by mx1.freebsd.org (Postfix) with ESMTP id DB75C8FC13;
	Thu, 28 Jan 2010 16:25:25 +0000 (UTC)
Received: from screw (f054138160.adsl.alicedsl.de [78.54.138.160])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mail.yamagi.org (Postfix) with ESMTP id ECB1B10849D1;
	Thu, 28 Jan 2010 17:25:23 +0100 (CET)
Date: Thu, 28 Jan 2010 17:25:23 +0100 (CET)
From: Yamagi Burmeister <lists@yamagi.org>
X-X-Sender: yamagi@screw.home.yamagi.org
To: freebsd-current@freebsd.org
In-Reply-To: <alpine.OSX.2.00.1001232228180.2800@idate.home.yamagi.org>
Message-ID: <alpine.BSF.2.00.1001281701530.29385@screw.home.yamagi.org>
References: <4B55D9D4.1000008@FreeBSD.org>
	<alpine.OSX.2.00.1001232228180.2800@idate.home.yamagi.org>
User-Agent: Alpine 2.00 (BSF 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: mav@FreeBSD.org
Subject: Re: Pack of CAM improvements
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 28 Jan 2010 16:25:26 -0000

On Sat, 23 Jan 2010, Yamagi Burmeister wrote:

> Hello,
> applied this patch to 8-stable recompiled the kernel and rebooted. The
> kernel did not boot it hangs while probing the ahci-controller. The
> error message is:
>
> ahcich0: Timeout on slot 0
> ahcich0: is 00000002 cs 00000000 ss 000000000 rs 00000001 tfs 50 serr
> 00000000
> run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config
>
> After that the kernel hangs forever. A 8-stable without the patch shows
>
> ahcich0: Timeout on slot 0
> run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config
>
> and boots but doesn't find any hard disks. It's an Asus M3A-H/HDMI
> motherboard with AMD SB710 southbridge. The harddisk is an Western
> Digital WD10EAVS. Both are working with the old ata implementation in
> AHCI mode. pciconf output of the controller is
>
> atapci0@pci0:0:17:0: class=0x010601 card=0x43911002 chip=0x43911002
> rev=0x00 hdr=0x00

Okay, I took a deeper look into this and tried 9-CURRENT SVN r203116.
Still the same problem but some more and maybe helpfull informations.
With ahci.ko loaded the dmesg shows (transcribed by hand):

ahci0: <ATI IXP700 AHCI SATA controller> port 0xd000-0xd007,
0xc000-0xc003,0xb000-0xb007,0xa000-0xa003,0x9000-0x900f 
mem 0xfe8ffbff irq 22 at device 7.0 on pci0
ahci0: [ITHREAD]
ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier supported
ahcich0: <AHCI channel> at channel 0 on ahci 0
ahcich0: [ITHREAD]
ahcich1: <AHCI channel> at channel 1 on ahci 0
ahcich1: [ITHREAD] 
ahcich2: <AHCI channel> at channel 2 on ahci 0
ahcich2: [ITHREAD] 
ahcich3: <AHCI channel> at channel 3 on ahci 0
ahcich3: [ITHREAD] 
ahcich4: <AHCI channel> at channel 4 on ahci 0
ahcich4: [ITHREAD] 
ahcich5: <AHCI channel> at channel 5 on ahci 0
ahcich5: [ITHREAD]

[snip]

ahcich0: is 00000002 cs 00000000 ss 00000000 rs 00000001 tfd 50 serr
00000000
ahcich0: Timeout on slot 0

After that the kernel hangs indefinitly, endless repeating the last two 
lines. I changed some bios-options, deactivated s-ata port 5 and 6, even
tried the latest bios version. No change, it always hangs.

The same kernel but without ahci.ko reports:

atapci0: <ATI IXP700/800 SATA300 controller> port
0xd000-0xd007,0xc000-0xc003,0xb000-0xb007,0
xa000-0xa003,0x9000-0x900f mem 0xfe8ff800-0xfe8ffbff irq 22 at device
17.0 on pci0
atapci0: [ITHREAD]
atapci0: AHCI v1.10 controller with 6 3Gbps ports, PM supported
ata2: <ATA channel 0> on atapci0
ata2: port is not ready (timeout 0ms) tfd = 000001d0
ata2: software reset clear timeout
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
ata4: <ATA channel 2> on atapci0
ata4: [ITHREAD]
ata5: <ATA channel 3> on atapci0
ata5: [ITHREAD]
ata6: <ATA channel 4> on atapci0
ata6: [ITHREAD]
ata7: <ATA channel 5> on atapci0
ata7: [ITHREAD]

[snip]

ad4: 953869MB <WDC WD10EACS-00D6B0 01.01A01> at ata2-master UDMA100 SATA
3Gb/s

So it's working fine with the old ahci driver without cam.

Hope that helps,
Yamagi

-- 
Homepage:     www.yamagi.org
Jabber:       yamagi@yamagi.org
GnuPG/GPG:    0xEFBCCBCB