Bug 254651 - pcib0: Failed to translate resource 0-ffffffffffffffff type 3 for ahci0 on Gigabyte R281-T91
Summary: pcib0: Failed to translate resource 0-ffffffffffffffff type 3 for ahci0 on Gi...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 13.0-STABLE
Hardware: arm64 Any
: --- Affects Some People
Assignee: freebsd-arm (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2021-03-30 02:14 UTC by Daniel Morante
Modified: 2021-08-07 09:58 UTC (History)
0 users

See Also:


Attachments
R281-T91_13.0-RC3_dmesg.boot (35.81 KB, text/plain)
2021-03-30 02:14 UTC, Daniel Morante
no flags Details
R281-T91_13.0-RC3_pciconf.out (25.66 KB, text/plain)
2021-03-30 02:14 UTC, Daniel Morante
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Morante 2021-03-30 02:14:26 UTC
Created attachment 223700 [details]
R281-T91_13.0-RC3_dmesg.boot

When booting off any of the installation ISO images the OS is failing to load or detect the onboard SATA controller.  I'm not sure exactly what this error means.

The system is a new Gigabyte R281-T91.  It's a dual Cavium ThunderX2 ARM64 CPU, and the controller having trouble is the "CN99xx [ThunderX2] Integrated AHCI/SATA 3 Host Controller".

The full output of dmesg.boot and pciconf are attached, but here are the relevant sections:

```
ahci0: <AHCI SATA controller> mem 0x42220000-0x4222ffff at device 16.0 numa-domain 0 on pci0
pcib0: Failed to translate resource 0-ffffffffffffffff type 3 for ahci0
ahci0: 0x10000 bytes of rid 0x18 res 3 failed (0, 0xffffffffffffffff).
device_attach: ahci0 attach returned 6
ahci0: <AHCI SATA controller> mem 0x42200000-0x4220ffff at device 16.1 numa-domain 0 on pci0
pcib0: Failed to translate resource 0-ffffffffffffffff type 3 for ahci0
ahci0: 0x10000 bytes of rid 0x18 res 3 failed (0, 0xffffffffffffffff).
device_attach: ahci0 attach returned 6
```

```
none0@pci0:0:16:0:    class=0x010601 rev=0x00 hdr=0x00 vendor=0x14e4 device=0x9027 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Broadcom Inc. and subsidiaries'
    device     = 'CN99xx [ThunderX2] Integrated AHCI/SATA 3 Host Controller'
    class      = mass storage
    subclass   = SATA
    cap 11[80] = MSI-X supports 4 messages
                 Table in map 0x18[0x0], PBA in map 0x18[0x8000]
    cap 09[90] = vendor (length 112)
none1@pci0:0:16:1:    class=0x010601 rev=0x00 hdr=0x00 vendor=0x14e4 device=0x9027 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Broadcom Inc. and subsidiaries'
    device     = 'CN99xx [ThunderX2] Integrated AHCI/SATA 3 Host Controller'
    class      = mass storage
    subclass   = SATA
    cap 11[80] = MSI-X supports 4 messages
                 Table in map 0x18[0x0], PBA in map 0x18[0x8000]
    cap 09[90] = vendor (length 112)
```

The problem occurs on 13.0-RC3 and 13.0-RC4. I also see it occurring on a 14.0-CURRENT snapshot from 2021-Mar-18.  On 12.2-RELEASE it just kernel panics when trying to load the driver.

For troubleshooting purposes I am able to install and boot the OS from a volume attached to the onboard LSI SAS RAID controller (after doing "kldload mpr").
Comment 1 Daniel Morante 2021-03-30 02:14:58 UTC
Created attachment 223701 [details]
R281-T91_13.0-RC3_pciconf.out
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2021-03-30 03:55:03 UTC
Thank you for the report Daniel. Have you been able to successfully boot this system with *any* FreeBSD version? If not can you try 12.1 and the latest 11 as well. Any symptom changes might be useful in isolation.
Comment 3 Daniel Morante 2021-03-30 08:27:14 UTC
(In reply to Kubilay Kocak from comment #2)

13.0 and 14.0 boot up but fail to detect the SATA controller.  They show the error mentioned in dmesg.boot, but the system is otherwise usable.  Sorry if that wasn't clear in my original report.

Latest snapshot (FreeBSD-11.4-STABLE-arm64-aarch64-20210318-r369446-memstick) for 11.4 just hangs after loading the kernel.

http://venus.morante.net/downloads/unibia/screenshots/freebsd/R281-T91/PR254651/11.4/ScreenCapture.jpg

12.1 has the same kernel panic as 12.2.  I've uploaded screen caps of the serial console and video output here:

http://venus.morante.net/downloads/unibia/screenshots/freebsd/R281-T91/PR254651/12.1/

(I apologize for it being images, the BMC's Serial over LAN GUI doesn't let me copy the text)