Bug 256779 - Marvell Armada8K PCI-E - Cannot get phy: map: cannot get reg property
Summary: Marvell Armada8K PCI-E - Cannot get phy: map: cannot get reg property
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: arm64 Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-22 18:13 UTC by Bjoern A. Zeeb
Modified: 2021-06-23 12:49 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bjoern A. Zeeb freebsd_committer freebsd_triage 2021-06-22 18:13:28 UTC
Hi,

updated my GT8K and found this;  not much time to investigate tonight;  if it rings a bell to someone please let me know (I assume dts has changes and code has not)?


(Sorry for the slightly garbled serial console output)

pcib0: <Marvell Armada8K PCI-E Controller> mem 0xf2600000-0xf260ffff,0xf6f00000-0xf6f7ffff irq 23 on simplebus2                                                                                                                                                                                           
pcib0: Cannot get phy[0]                                                                                                                                                                                                                                                                                  
pcib0: Bus is cache-coherent                                                                                                                                                                                                                                                                              
pci0: <OFW PCI bus> on pcib0                                                                                                                                                                                                                                                                              
pci0: domain=0, physical bus=0                                                                                                                                                                                                                                                                            
found-> vendor=0x11ab, dev=0x0110, revid=0x00                                                                                                                                                                                                                                                             
        domain=0, bus=0, slot=0, func=0                                                                                                                                                                                                                                                                   
        class=06-04-00, hdrtype=0x01, mfdev=0                                                                                                                                                                                                                                                             
        cmdreg=0x0107, statreg=0x0010, cachelnsz=8 (dwords)                                                                                                                                                                                                                                               
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)                                                                                                                                                                                                                                      
        intpin=a, irq=255                                                                                                                                                                                                                                                                                 
        powerspec 3  supports D0 D1 D2 D3  current D0                                                                                                                                                                                                                                                     
        MSI supports 32 messages, 64 bit, vector masks                                                                                                                                                                                                                                                    
        MSI-X supports 1 message in maps 0x10 and 0x18                                                                                                                                                                                                                                                    
        mcib0: failed to reserve resource for pcib1                                                                                                                                                                                                                                                       
pcib1: failed to allocate initial I/O port window: 0-0xffff                                                                                                                                                                                                                                               
pcib1:   domain        I bus> on pcib1                                                                                                                                                                                                                                                                    
pcib1: allocated bus range (1-1) for rid 0 of pci1                                                                                                                                                                                                                                                        
pci1: domain=0, physical bus=1                                                                                                                                                                                                                                                                            
found-> vendor=0x14c3, dev=chelnsz=8 (dwords)                                                                                                                                                                                                                                                             
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)                                                                                                                                                                                                                                      
        intpin=a, irq=0                                                                                                                                                                                                                                                                                   
        powerspec 3  supports D0 Dmap: cannot get reg property                                                                                                                                                                                                                                            
cpuid = 0                                                                                                                                                                                                                                                                                                 
time = 1                                                                                                                                                                                                                                                                                                  
KDB: stack backtrace:                                                                                                                                                                                                                                                                                     
db_trace_self() at db_trace_self                                                                                                                                                                                                                                                                          
db_trace_self_wrapper() at db_trace_self_wrapper+0x30                                                                                                                                                                                                                                                     
vpanic() at vpanic+0x184                                                                                                                                                                                                                                                                                  
panic() at panic+0x44                                                                                                                                                                                                                                                                                     
ofw_bus_lookup_imap() at ofw_bus_lookup_imap+0x108                                                                                                                                                                                                                                                        
ofw_pcib_route_interrupt() at ofw_pcib_route_interrupt+0x1cc                                                                                                                                                                                                                                              
pcib_route_interrupt() at pcib_route_interrupt+0xf4                                                                                                                                                                                                                                                       
pci_assign_interrupt() at pci_assign_interrupt+0xf4                                                                                                                                                                                                                                                       
pci_add_resources() at pci_add_resources+0x654                                                                                                                                                                                                                                                            
pci_add_child() at pci_add_child+0x7c                                                                                                                                                                                                                                                                     
pci_add_children() at pci_add_children+0x58                                                                                                                                                                                                                                                               
pci_attach() at pci_attach+0xd8                                                                                                                                                                                                                                                                           
device_attach() at device_attach+0x400                                                                                                                                                                                                                                                                    
bus_generic_attach() at bus_generic_attach+0x4c                                                                                                                                                                                                                                                           
device_attach() at device_attach+0x400                                                                                                                                                                                                                                                                    
bus_generic_attach() at bus_generic_attach+0x4c                                                                                                                                                                                                                                                           
pci_attach() at pci_attach+0xe0                                                                                                                                                                                                                                                                           
device_attach() at device_attach+0x400                                                                                                                                                                                                                                                                    
bus_generic_attach() at bus_generic_attach+0x4c                                                                                                                                                                                                                                                           
pci_mv_attach() at pci_mv_attach+0x6dc
Comment 1 mw 2021-06-23 06:52:37 UTC
Hi,

It is a known problem, possible fix is being discussed here: https://reviews.freebsd.org/D30761
Comment 2 Bjoern A. Zeeb freebsd_committer freebsd_triage 2021-06-23 11:46:41 UTC
Thanks will follow there.
Comment 3 mw 2021-06-23 12:00:06 UTC
Any chance you apply this one-liner and see if it helps in your setup?
Comment 4 Bjoern A. Zeeb freebsd_committer freebsd_triage 2021-06-23 12:49:03 UTC
(In reply to mw from comment #3)

I am just re-starting image builds.  I'll report back on the review if it helps;  I'll be a bit as I'll just do this on the side.