Re: Disk not detected on ATI IXP600 SATA300 controller

From: Thomas Nyström <thn_at_saeab.se>
Date: Wed, 14 May 2008 00:53:15 +0200
Coleman Kane skrev:
> On Tue, 2008-05-13 at 13:47 +0200, Thomas Nyström wrote:
>> Anyone else seen this?
>>
>> Machine is HP Compaq 6715s and I'm running current (from yesterday).
>> During startup the internal SATA-disk is not detected. I have tried
>> both GENERIC and customized kernel with same bad result.
>> Everything works fine on 7.0R and 6.3R.
>>
>> If I modify ata-chipset.c:ata_ati_ident() and removes the lines
>> that matches the ATA_ATI_IXP600_S1 type chip everything is working
>> when the ata-system uses the default/fallback driver for ATI.
>>
>> dmesg and pciconf -lv attached (from the working system).
>>
>> The releveant message from a failing system are (hand typed off the
>> screen, no serial port available):
>>
>> atapci0: <ATI IXP600 SATA300 controller> port 0x9000-0x9007,0x9007-0x900b,0x9010-0x9017,
>> 0x5018-0x501b,0x5020-0x502f mem 0xd0409000-0xd04093ff irq 16 at device 18.0 on pci0
>> atapci0: [THREAD]
>> atapci0: AHCI Version 230.07 controller with 4 ports PM not supported
>> ata2: <ATA channel 0> on atapci0
>> ata2: port not implemented
>> ata2: [ITHREAD]
>> ata3: <ATA channel 1> on atapci0
>> ata3: port not implemented
>> ata3: [ITHREAD]
>> ata4: <ATA channel 2> on atapci0
>> ata4: port not implemented
>> ata4: [ITHREAD]
>> ata5: <ATA channel 3> on atapci0
>> ata5: port not implemented
>> ata5: [ITHREAD]
>>
>> What more info is needed?
>>
>> /Thomas
>>
> 
> Thomas,
> 
> I've fixed this, as I have the same notebook. It has also been confirmed
> by a few others. The problem is the fix is kind of ugly, and isn't
> something that is import-worthy into the kernel, as it requires a patch
> to change the memory-mapped I/O regions of the audio chipset during PCI
> device initialization.

Well, almost the same notebook, you have 6715b but I have 6715s.
One difference is the Ethernet-chip.

> The bug in this laptop is that the person who wrote the BIOS table was
> kind enough to place the MMIO region for the AHCI interface on the SATA
> controller right smack in the middle of the range reserved for the HDA
> Audio controller. The result of this is that you cannot use the HDA
> Audio at all and you can't use the AHCI interface of the SATA controller
> (until you apply my fix).

I can confirm that this is true for my laptop.

> Here's my page on the subject, including a link to some 7.0-STABLE ISOs
> that you can download with my patch already applied:
> http://www.cokane.org/dokuwiki/freebsd/amd64_compatibility#getting_the_hp_compaq_6715b_working
> 
> You can also apply the patch to your own source tree that I have here:
> http://www.cokane.org/dokuwiki/freebsd/amd64_compatibility#the_onboard_ati_sb600_hda_audio_controller

Your server is currently inaccessible but I managed to pick up the
information from the cached page on Google!

> You *won't* need to deal with any of the ATA-related stuff in that
> document, as that particular code was actually imported some time
> earlier.
> 
> You'll need to perform the following at the loader prompt before you
> boot the hardware (from my analysis of your dmesg below):
> set hw.pci.hp6715b_membase_for_hd_audio="0xd0414000"
> 
> After you get the system installed, you can put this
> into /boot/loader.conf.

I can confirm that your fix got my disk to appear and it seems to work!
Nice trick!

> Could you send me the output of "devinfo -uv" ?

Attached!

> Additionally, you'll find a Win64 driver for the Broadcom Wifi card that
> works really well with the draft-n card on the laptop.

Thanks for the tip. I'm not sure if I should bother with the WLAN. The
laptop is mainly used to compile the software and initiate a Compact
Flash disk for an embedded system. That system is using 6.3R. I put
-CURRENT on the system just to test some fixes for the Ethernet in the
machine (BCM5906, now supported by bge(4)).

> Hope that helps.

Yes! Thank you!

/Thomas

-- 
---------------------------------------------------------------
Svensk Aktuell Elektronik AB                     Thomas Nyström
Box 10                                  Phone: +46 73 069 69 30
S-191 21  Sollentuna                        Fax: +46 8 35 92 89
Sweden                                      Email: thn_at_saeab.se
---------------------------------------------------------------

Interrupt request lines:
    0 (root0)
    1 (atkbd0)
    3 (root0)
    4 (sio0)
    5-7 (root0)
    8 (atrtc0)
    9 (acpi0)
    10-11 (root0)
    12 (psm0)
    13 (root0)
    14 (ata0)
    15 (root0)
    16 (bge0)
    17 (ohci1)
    18-19 (root0)
    20 (cbb0)
    21-22 (root0)
    23 (ohci0)
DMA request lines:
    0-7 (root0)
I/O ports:
    0x0-0xf (root0)
    0x10-0x1f (acpi0)
    0x20-0x21 (root0)
    0x22-0x23 (acpi0)
    0x24-0x2d (root0)
    0x2e-0x2f (acpi0)
    0x30-0x4d (root0)
    0x4e-0x4f (acpi0)
    0x50-0x5f (root0)
    0x60 (atkbdc0)
    0x61 (root0)
    0x62 (acpi_ec0)
    0x63 (root0)
    0x64 (atkbdc0)
    0x65 (root0)
    0x66 (acpi_ec0)
    0x67-0x6f (root0)
    0x70-0x71 (atrtc0)
    0x72-0x91 (root0)
    0x92 (acpi0)
    0x93-0x16f (root0)
    0x170-0x177 (atapci1)
    0x178-0x1ef (root0)
    0x1f0-0x1f7 (atapci1)
    0x1f8-0x375 (root0)
    0x376 (atapci1)
    0x377-0x3bf (root0)
    0x3c0-0x3df (vga0)
    0x3e0-0x3f5 (root0)
    0x3f6 (atapci1)
    0x3f7 (root0)
    0x3f8-0x3ff (sio0)
    0x400-0x40a (root0)
    0x40b (acpi0)
    0x40c-0x4cf (root0)
    0x4d0-0x4d1 (acpi0)
    0x4d2-0x4d5 (root0)
    0x4d6 (acpi0)
    0x4d7-0x4ff (root0)
    0x500-0x53f (acpi0)
    0x540-0xbff (root0)
    0xc00-0xc01 (acpi0)
    0xc02-0xc13 (root0)
    0xc14 (acpi0)
    0xc15-0xc4f (root0)
    0xc50-0xc51 (acpi0)
    0xc52 (acpi0)
    0xc53-0xc6b (root0)
    0xc6c (acpi0)
    0xc6d-0xc6e (root0)
    0xc6f (acpi0)
    0xc70-0xccf (root0)
    0xcd0-0xcdf (acpi0)
    0xce0-0x3fff (root0)
    0x4000-0x40ff (vgapci0)
    0x4100-0x5017 (root0)
    0x5018-0x501b (atapci0)
    0x501c-0x501f (root0)
    0x5020-0x502f (atapci0)
    0x5030-0x503f (root0)
    0x5040-0x504f (atapci1)
    0x5050-0x7fff (root0)
    0x8000-0x802f (acpi0)
    0x8030-0x80ff (root0)
    0x8100-0x811f (acpi0)
    0x8120-0x81ff (root0)
    0x8200-0x820f ----
    0x8210-0x8fff (root0)
    0x9000-0x9007 (atapci0)
    0x9008-0x900b (atapci0)
    0x900c-0x900f (root0)
    0x9010-0x9017 (atapci0)
    0x9018-0xffff (root0)
I/O memory addresses:
    0x0-0x9efff (ram0)
    0x9f000-0x9ffff (root0)
    0xa0000-0xbffff (vga0)
    0xc0000-0xcd3ff (root0)
    0xcd400-0xcffff (acpi0)
    0xd0000-0xdffff (root0)
    0xe0000-0xfffff (acpi0)
    0x100000-0x77faffff (ram0)
    0x77fb0000-0xbfffffff (root0)
    0xc0000000-0xc7ffffff (vgapci0)
    0xc8000000-0xcfffffff (root0)
    0xd0000000-0xd000ffff (bge0)
    0xd0010000-0xd00fffff (root0)
    0xd0100000-0xd0100fff (cbb0)
    0xd0101000-0xd01fffff (root0)
    0xd0200000-0xd020ffff (vgapci0)
    0xd0210000-0xd02fffff (root0)
    0xd0300000-0xd03fffff (vgapci0)
    0xd0400000-0xd0400fff (root0)
    0xd0401000-0xd0401fff (ohci0)
    0xd0402000-0xd0402fff (ohci1)
    0xd0403000-0xd0403fff (ohci2)
    0xd0404000-0xd0404fff (ohci3)
    0xd0405000-0xd0405fff (ohci4)
    0xd0406000-0xd04060ff (ehci0)
    0xd0406100-0xd0408fff (root0)
    0xd0409000-0xd04093ff (atapci0)
    0xd0409400-0xd0413fff (root0)
    0xd0414000-0xd0417fff ----
    0xd0418000-0xfebfffff (root0)
    0xfec00000-0xfec0001f (apic0)
    0xfec00020-0xfedfffff (root0)
    0xfee00000-0xfee003ff (apic0)
    0xfee00400-0xffffffff (root0)
ACPI I/O ports:
    0x10-0x1f (root0)
    0x22-0x23 (root0)
    0x2e-0x2f (root0)
    0x4e-0x4f (root0)
    0x92 (root0)
    0x40b (root0)
    0x4d0-0x4d1 (root0)
    0x4d6 (root0)
    0x500-0x53f (root0)
    0xc00-0xc01 (root0)
    0xc14 (root0)
    0xc50-0xc52 (root0)
    0xc6c (root0)
    0xc6f (root0)
    0xcd0-0xcdf (root0)
    0x8000-0x8007 (root0)
    0x8008-0x800b (acpi_timer0)
    0x800c-0x800f (root0)
    0x8010-0x8013 (acpi_throttle0)
    0x8014-0x802f (root0)
    0x8100-0x811f (root0)
ACPI I/O memory addresses:
    0xcd400-0xcffff (root0)
    0xe0000-0xfffff (root0)
Received on Tue May 13 2008 - 20:53:30 UTC

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