LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2018, 04:52 AM   #1
ghhbak
LQ Newbie
 
Registered: May 2018
Posts: 9

Rep: Reputation: Disabled
Linux PCI enumeration issue


Hi folks,

I'm working on a new target board and slowly bringing up U-boot and Linux on it. I'm using OpenWRT version 15.05 (kernel version is 3.18.23). First I did some of my code development on a reference board. Now I have switched to my target board to complete the bring up.

I'm facing a problem with detecting mini PCIe devices on my target board. This issue is not seen on the reference board. Here are the logs from both taken after Linux boot up is completed.

Reference board
---------------
root@OpenWrt:/# dmesg | grep pci
pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
pci_bus 0000:00: root bus resource [io 0x0000]
pci 0000:00:00.0: [168c:003c] type 0 class 0x000280
pci 0000:00:00.0: invalid calibration data
pci 0000:00:00.0: reg 10: [mem 0x00000000-0x001fffff 64bit]
pci 0000:00:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
pci 0000:00:00.0: supports D1 D2
pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
pci 0000:00:00.0: using irq 40 for pin 1
root@OpenWrt:/#
root@OpenWrt:/# dmesg | grep PCI
registering PCI controller with io_map_base unset
PCI host bridge to bus 0000:00
PCI: CLS 0 bytes, default 32
root@OpenWrt:/#

On the target board:
-------------------
root@:~# dmesg | grep pci
ar724x-pci ar724x-pci: PCIe link is down
pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
pci_bus 0000:00: root bus resource [io 0x0000]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
Modules linked in: ath9k ath9k_common crc_ccitt ath9k_hw ath10k_pci ath10k_core ath mac80211 cfg80211 compat ledtrig_usbdev ledtrig_oneshot arc4 crypto_blkcipher ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_bue

root@:~# dmesg | grep PCI
ar724x-pci ar724x-pci: PCIe link is down
registering PCI controller with io_map_base unset
PCI host bridge to bus 0000:00
PCI: CLS 0 bytes, default 32

What I have tried so far to debug:
---------------------------------
1) Looked at any potential code changes in PCI enumeration, found none.
2) Tried many patches found online related to ar-724x and PCI/PCIe, none worked.
3) Ensured the power is correctly supplied to the mini PCIe card on the target board, and that voltage readings are correct.

Has anyone faced a similar issue? Any tips?
 
Old 07-13-2018, 03:13 AM   #2
ghhbak
LQ Newbie
 
Registered: May 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
I finally managed to figure it out and I'm putting the solution here in case someone hits this in the future. #define CONFIG_PCI 1 was required in my U-boot configuration for this target board.
 
1 members found this post helpful.
Old 03-23-2019, 05:11 PM   #3
GektorUA
LQ Newbie
 
Registered: Mar 2019
Posts: 1

Rep: Reputation: Disabled
I have the same problem with equal board on AR9334 (Compex WPJ344), working about this problem a week and nothing helpsm PCIe cards did not detect.
How did you fix this? Did you rebuild and flash u-boot?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enterprise Linux 6.0 - New Partitions Device Files Enumeration ISSUE harmandeep Linux - Server 0 10-05-2011 07:42 AM
usbserial enumeration issue after suspend zxz Linux - Kernel 0 01-25-2010 04:23 PM
Access Based Enumeration on Linux with Samba? gimpy530 Linux - General 3 06-01-2009 08:25 PM
PCI Express Enumeration at bootup in Linux 2.6.xx webunto Linux - Software 1 01-12-2008 11:46 AM
Linux USB Enumeration Vs Windows USB Enumeration rajasekarpadmanaban Linux - Software 1 05-02-2007 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration