cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Participant
Participant
838 Views
Registered: ‎02-26-2013

Some pcie configuration missing?

Hi, 

 

I have I problem with ZCU102 pcie. 

A using it in root complex mode, device is detected:

[ 0.074126] nwl-pcie fd0e0000.pcie: Link is UP
[ 0.074164] OF: PCI: host bridge /amba/pcie@fd0e0000 ranges:
[ 0.074187] OF: PCI: MEM 0xe0000000..0xefffffff -> 0xe0000000
[ 0.074201] OF: PCI: MEM 0x600000000..0x7ffffffff -> 0x600000000
[ 0.074312] nwl-pcie fd0e0000.pcie: PCI host bridge to bus 0000:00

 

but allocating of resources fail:

0.074415] pci 0000:00:00.0: ignoring class 0x068000 (doesn't match header type 01)
[ 0.077305] pci 0000:01:00.0: BAR 0: no space for [mem size 0x00004000 64bit]
[ 0.077319] pci 0000:01:00.0: BAR 0: failed to assign [mem size 0x00004000 64bit]
[ 0.077337] pci 0000:00:00.0: not setting up bridge for bus 0000:01

 

and it probably cause error:

[ 0.113768] WARNING: CPU: 0 PID: 1 at arch/arm64/mm/ioremap.c:58 __ioremap_caller+0xc8/0xf0
[ 0.113784] Modules linked in:
[ 0.113794]
[ 0.113805] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0 #1


[ 0.113826] task: ffffffc87b876c00 task.stack: ffffffc87b878000
[ 0.113837] PC is at __ioremap_caller+0xc8/0xf0
[ 0.113848] LR is at __ioremap_caller+0x54/0xf0
[ 0.113858] pc : [<ffffff8008095c28>] lr : [<ffffff8008095bb4>] pstate: 80000045
[ 0.113873] sp : ffffffc87b87bbb0
[ 0.113882] x29: ffffffc87b87bbb0 x28: ffffff8008a87ca8
[ 0.113894] x27: 0000000000000007 x26: ffffff8008a40458
[ 0.113906] x25: ffffff8008b36000 x24: ffffff8008a7c8e8
[ 0.113917] x23: 00e8000000000707 x22: ffffff80084e7e48
[ 0.113929] x21: 0000000000000000 x20: 0000000000000000
[ 0.113940] x19: 0000000000002000 x18: 0000000000000001
[ 0.113952] x17: 00000000fa83b2da x16: 000000000267998d
[ 0.113963] x15: ffffffffffffffff x14: ffffffc87ad1dd03
[ 0.113975] x13: ffffffc87ad1dd02 x12: 0000000000000038
[ 0.113987] x11: 0101010101010101 x10: 0000000000000040
[ 0.113998] x9 : 0000000000000000 x8 : 0000000080000000
[ 0.114010] x7 : 0000000000000018 x6 : ffffff8008b8a590
[ 0.114021] x5 : ffffff8008b8a590 x4 : 0000000000000001
[ 0.114033] x3 : 0000000000000001 x2 : 0000000080000000
[ 0.114044] x1 : 0000000000000000 x0 : 0000000000000001
[ 0.114055]
[ 0.114066] ---[ end trace f311333c5d3f8ea2 ]---
[ 0.114075] Call trace:
[ 0.114086] Exception stack(0xffffffc87b87b9e0 to 0xffffffc87b87bb10)
[ 0.114098] b9e0: 0000000000002000 0000008000000000 ffffffc87b87bbb0 ffffff8008095c28
[ 0.114116] ba00: ffffffc87b87ba20 ffffff80080e2c28 ffffffc87b292000 0000000000000000
[ 0.114133] ba20: ffffffc87b87ba30 ffffff80080de0dc ffffffc87b87ba60 ffffff80080e1e24
[ 0.114150] ba40: ffffffc87b87ba50 ffffff80080de0dc ffffffc87b87ba80 ffffff80080e1e24
[ 0.114168] ba60: ffffffc87b87ba80 ffffff80080e1ee4 0000000000000100 0000000000000000
[ 0.114185] ba80: 0000000000000001 0000000000000000 0000000080000000 0000000000000001
[ 0.114202] baa0: 0000000000000001 ffffff8008b8a590 ffffff8008b8a590 0000000000000018
[ 0.114219] bac0: 0000000080000000 0000000000000000 0000000000000040 0101010101010101
[ 0.114236] bae0: 0000000000000038 ffffffc87ad1dd02 ffffffc87ad1dd03 ffffffffffffffff
[ 0.114253] bb00: 000000000267998d 00000000fa83b2da
[ 0.114264] [<ffffff8008095c28>] __ioremap_caller+0xc8/0xf0
[ 0.114276] [<ffffff8008095c60>] __ioremap+0x10/0x20
[ 0.114290] [<ffffff80084e7e48>] nvme_probe+0xb8/0x2c0
[ 0.114303] [<ffffff80083c9c3c>] pci_device_probe+0x9c/0x140
[ 0.114318] [<ffffff800849b040>] driver_probe_device+0x150/0x2b0
[ 0.114330] [<ffffff800849b25c>] __driver_attach+0xbc/0xc0
[ 0.114344] [<ffffff8008498f3c>] bus_for_each_dev+0x4c/0xa0
[ 0.114356] [<ffffff800849a890>] driver_attach+0x20/0x30
[ 0.114368] [<ffffff800849a450>] bus_add_driver+0x1c0/0x230
[ 0.114381] [<ffffff800849ba80>] driver_register+0x60/0x100
[ 0.114395] [<ffffff80083c8748>] __pci_register_driver+0x38/0x40
[ 0.114409] [<ffffff8008a67198>] nvme_init+0x4c/0x74
[ 0.114422] [<ffffff80080830d8>] do_one_initcall+0x38/0x130
[ 0.114434] [<ffffff8008a40c90>] kernel_init_freeable+0x144/0x1e8
[ 0.114447] [<ffffff80087dd7b0>] kernel_init+0x10/0x100
[ 0.114459] [<ffffff8008082e80>] ret_from_fork+0x10/0x50

 

Lspci output:

# lspci -vvv
00:00.0 Class 0000: 10ee:d011
01:00.0 Class 0108: 144d:a808

 

It seems some kernel configuration/support missing. Have you any idea?

 

Thank you

 

0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
810 Views
Registered: ‎01-21-2014

Re: Some pcie configuration missing?

In Vivado IPI PCW, try using a base class of 0x04 instead of 0x80. That's the default setting in PCW for the ZCU102 and I'm pretty sure that works.  

 

You can refer to the video here if you want to check your other settings as well:  https://www.youtube.com/watch?v=_jIw5ON0h7s&t=638s

 

 

 

Terry

0 Kudos