Forums - lspci showing "!!! Unknown header type 7"

3 posts / 0 new
Last post
lspci showing "!!! Unknown header type 7"
vinuchandran
Join Date: 1 Dec 20
Posts: 13
Posted: Wed, 2020-12-02 02:01

Hi,

I'm trying to connect one card to PCIe2. But it's not getting enumerated.

The output of lspci -vvv is the following.  (Same for both with/without any external devices connected)

00:00.0 PCI bridge: Qualcomm Device 010b (rev ff) (prog-if 00 [Normal decode])
!!! Unknown header type 7f
Kernel driver in use: pci-msm-rc
 
01:00.0 Unassigned class [ff00]: Qualcomm Device 1101 (rev ff) (prog-if ff)
!!! Unknown header type 7f
Kernel driver in use: cnss_pci
Also, the following message (from the WiFi driver, I guess) comes in the kernel log continuously, in a one minute interval.
[Dec 2 09:53] cnss: Runtime resume start
[  +0.000270] cnss: Resuming PCI link
[  +0.005312] cnss: Set PCI link status to: 2
[  +0.004223] cnss: Setting MHI state: RESUME(7)
[  +0.018215] cnss: Runtime resume status: 0
[  +0.513054] cnss: Runtime suspend start
[  +0.001460] [kworke][0x22ae500f6][09:53:10.700194] wlan: [1458:I:PMO] pmo_core_is_wow_applicable: 319: lpass enabled, enabling wow
[  +0.000387] [kworke][0x22ae51e40][09:53:10.700585] wlan: [1458:I:PMO] pmo_core_enable_wow_in_fw: 799: drv wow is enabled
[  +0.000130] [kworke][0x22ae52804][09:53:10.700715] wlan: [1458:I:WMI] suspend type: WOW_IFACE_PAUSE_ENABLED
[  +0.039803] cnss: Setting MHI state: SUSPEND(6)
[  +0.000139] cnss: Suspending PCI link
[  +0.000050] cnss: Use PCIe DRV suspend
[  +0.000052] cnss: Set PCI link status to: 0
[  +0.008488] cnss: Runtime suspend status: 0
 
Is the pcie_msm driver proper?
What should be done to get the card enumerated?
  • Up0
  • Down0
vinuchandran
Join Date: 1 Dec 20
Posts: 13
Posted: Wed, 2020-12-02 03:07

Adding some additional information.

I also tried to select RC1 with rc_sel under /sys/kernel/debug/pci-msm.

It gave the following result.

[Dec 2 10:50] PCIe: rc_sel is now: 0x2
[  +0.000067] PCIe: the following RC(s) will be tested:
[  +0.000048] RC 1

Also, I tried to enumerate by giving 11 to case under /sys/kernel/debug/pci-msm, but it failed. See the dmesg below.

[Dec 2 10:51] PCIe: TEST: 11

[  +0.000094] msm_pcie_sel_debug_testcase: 
              
              PCIe: attempting to enumerate RC1
 
[  +0.000158] msm_pcie_enable: PCIe: Assert the reset of endpoint of RC1.
[  +0.009052] msm_pcie_enable: PCIe: RC1: PCIE20_PARF_INT_ALL_MASK: 0x7f80c202
[  +0.005492] pcie_phy_init: PCIe RC1 PHY is ready!
[  +0.015354] msm_pcie_enable: PCIe: Release the reset of endpoint of RC1.
[  +0.119370] msm_pcie_link_train: PCIe: Assert the reset of endpoint of RC1.
[  +0.000093] msm_pcie_link_train: PCIe RC1 link initialization failed
[  +0.004398] msm_pcie_enumerate: PCIe: RC1: failed to enable
[  +0.000072] msm_pcie_sel_debug_testcase: PCIe: RC1 enumeration failed
I also tried to disable the link by giving 2 to case, but it also failed.
Which gave the following log.
[Dec 2 10:53] PCIe: TEST: 1
[  +0.000095] msm_pcie_sel_debug_testcase: 
              
              PCIe: RC1: disable link
 
[  +0.000061] PCIe: endpoint device is NULL
[  +0.000066] msm_pcie_sel_debug_testcase: PCIe:msm_pcie_sel_debug_testcase:failed to disable link

I also tried to dump the PCIe reg space by giving 14 to case.

It gave the following message.

[  +5.475269] PCIe: TEST: 14
[  +0.000085] msm_pcie_sel_debug_testcase: PCIe: RC1 Resource does not exist
All of these messages come, irrespective of the presence of my PCIe Card.
  • Up0
  • Down0
vinuchandran
Join Date: 1 Dec 20
Posts: 13
Posted: Wed, 2020-12-02 20:44

Additional information:

These messages come in dmesg while booting up.

[   11.334980] pcie:pcie_init.
[   11.344128] register_client_adhoc:Client handle 12 pcie0
[   11.350439] pci-msm 1c00000.qcom,pcie: 1c00000.qcom,pcie supply vreg-3p3 not found, using dummy regulator
[   11.365960] pci-msm 1c00000.qcom,pcie: Linked as a consumer to regulator.0
[   11.373226] pci-msm 1c00000.qcom,pcie: Linked as a consumer to regulator.18
[   11.380557] pci-msm 1c00000.qcom,pcie: Linked as a consumer to regulator.13
[   11.387849] pci-msm 1c00000.qcom,pcie: Linked as a consumer to regulator.4
[   11.395157] pci-msm 1c00000.qcom,pcie: Linked as a consumer to regulator.59
[   11.403120] msm_pcie_get_reg: PCIe: RC0: no tcsr resource found.
[   11.409339] msm_pcie_get_reg: PCIe: RC0: no rumi resource found.
[   11.418050] register_client_adhoc:Client handle 13 pcie1
[   11.424370] pci-msm 1c08000.qcom,pcie: 1c08000.qcom,pcie supply vreg-3p3 not found, using dummy regulator
[   11.439863] pci-msm 1c08000.qcom,pcie: Linked as a consumer to regulator.0
[   11.447113] pci-msm 1c08000.qcom,pcie: Linked as a consumer to regulator.18
[   11.454440] pci-msm 1c08000.qcom,pcie: Linked as a consumer to regulator.13
[   11.461752] pci-msm 1c08000.qcom,pcie: Linked as a consumer to regulator.4
[   11.469054] pci-msm 1c08000.qcom,pcie: Linked as a consumer to regulator.60
[   11.476818] msm_pcie_get_reg: PCIe: RC1: no tcsr resource found.
[   11.483016] msm_pcie_get_reg: PCIe: RC1: no rumi resource found.
[   11.489236] msm_pcie_probe: PCIe: RC1 could not get pinctrl sleep state
[   15.133071] msm_pcie_enable: PCIe: Assert the reset of endpoint of RC0.
[   15.148894] msm_pcie_enable: PCIe: RC0: PCIE20_PARF_INT_ALL_MASK: 0x7f80c202
[   15.151516] pcie_phy_init: PCIe RC0 PHY is ready!
[   15.161546] msm_pcie_enable: PCIe: Release the reset of endpoint of RC0.
[   15.199725] msm_pcie_link_train: PCIe RC0 link initialized
[   15.213972] pci-msm 1c00000.qcom,pcie: host bridge /soc/qcom,pcie@1c00000 ranges:
[   15.227794] pci-msm 1c00000.qcom,pcie:   No bus range found for /soc/qcom,pcie@1c00000, using [bus 00-ff]
[   15.227830] pci-msm 1c00000.qcom,pcie:    IO 0x60200000..0x602fffff -> 0x60200000
[   15.239772] pci-msm 1c00000.qcom,pcie:   MEM 0x60300000..0x63ffffff -> 0x60300000
[   15.252460] pci-msm 1c00000.qcom,pcie: PCI host bridge to bus 0000:00
[   15.567553] msm_pcie_enumerate: PCIe: RC0: has already been enumerated.
[   16.179232] msm_pcie_disable: PCIe: Assert the reset of endpoint of RC0.
[   38.700942] msm_pcie_enable: PCIe: Assert the reset of endpoint of RC0.
[   38.704819] msm_pcie_enable: PCIe: RC0: PCIE20_PARF_INT_ALL_MASK: 0x7f80c202
[   38.707166] pcie_phy_init: PCIe RC0 PHY is ready!
[   38.719542] msm_pcie_enable: PCIe: Release the reset of endpoint of RC0.
[   38.736410] msm_pcie_link_train: PCIe RC0 link initialized
Are the "pcie supply vreg-3p3 not found, using dummy regulator" and "PCIe: RC1 could not get pinctrl sleep state" expected?
 
Also when I try to read the config space, without connecting the device, I'm getting the following.
 
sudo lspci -x
00:00.0 PCI bridge: Qualcomm Device 010b (rev ff)
00: ff ff ff ff ff ff ff ff ff 00 04 06 ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 
01:00.0 Unassigned class [ff00]: Qualcomm Device 1101 (rev ff)
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.