From nobody@FreeBSD.org  Mon Apr  9 08:31:26 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 4AC9D106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Apr 2012 08:31:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 36AF08FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Apr 2012 08:31:26 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q398VPKI021250
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 9 Apr 2012 08:31:25 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q398VPvU021249;
	Mon, 9 Apr 2012 08:31:25 GMT
	(envelope-from nobody)
Message-Id: <201204090831.q398VPvU021249@red.freebsd.org>
Date: Mon, 9 Apr 2012 08:31:25 GMT
From: Martin Beach <mxhy@live.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: VIA 6420 SATA150 not AHCI-capable?
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         166784
>Category:       i386
>Synopsis:       VIA 6420 SATA150 not AHCI-capable?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 09 08:40:11 UTC 2012
>Closed-Date:    Thu Apr 12 10:22:16 UTC 2012
>Last-Modified:  Thu Apr 12 10:22:16 UTC 2012
>Originator:     Martin Beach
>Release:        9.0-RELEASE FreeBSD
>Organization:
-
>Environment:
>Description:
I noticed that pure ahci is not possible with my VIA CN700 based board.
The controller used is a 

atapci0: <VIA 6420 SATA150 controller> port 0xfe00-0xfe07,0xfd00-0xfd03,0xfc00-0xfc07,0xfb00-0xfb03,0xfa00-0xfa0f,0xee00-0xeeff irq 20 at device 15.0 on pci0

However AHCI with ATA_CAM does not work. I have to use 'ata' additionally in the kernel to have access to my disk.
The device nodes used for the partitions are all prefixed with ada*.
lrwxr-xr-x  1 root  wheel            6 Apr  9 10:21 /dev/ad4s1 -> ada0s1
lrwxr-xr-x  1 root  wheel            7 Apr  9 10:21 /dev/ad4s1a -> ada0s1a
lrwxr-xr-x  1 root  wheel            7 Apr  9 10:21 /dev/ad4s1b -> ada0s1b
lrwxr-xr-x  1 root  wheel            7 Apr  9 10:21 /dev/ad4s1d -> ada0s1d
lrwxr-xr-x  1 root  wheel            7 Apr  9 10:21 /dev/ad4s1e -> ada0s1e
lrwxr-xr-x  1 root  wheel            7 Apr  9 10:21 /dev/ad4s1f -> ada0s1f

When compiling the kernel without 'device ata' and just leaving 'device ahci and options ATA_CAM' it does not work.

Bug or feature?
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->mav 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Apr 9 09:05:16 UTC 2012 
Responsible-Changed-Why:  
Hi, 

Can you have a look please? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=166784 

From: Alexander Motin <mav@FreeBSD.org>
To: bug-followup@FreeBSD.org, mxhy@live.de
Cc:  
Subject: Re: i386/166784: VIA 6420 SATA150 not AHCI-capable?
Date: Mon, 09 Apr 2012 14:52:19 +0300

 'options ATA_CAM' is an additional option of the 'device ata'. First 
 means nothing without second.
 
 What's about VIA 6420, I think it is not AHCI compatible. ahci(4) should 
 automatically attach to any compatible controller, even unknown. You may 
 check your BIOS setting to make sure it is not just disabled.
 
 -- 
 Alexander Motin
State-Changed-From-To: open->closed 
State-Changed-By: mav 
State-Changed-When: Thu Apr 12 10:21:37 UTC 2012 
State-Changed-Why:  
Not a bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=166784 
>Unformatted:
