pci-imx6 how to reset completely during reboot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

pci-imx6 how to reset completely during reboot

3,075 Views
rrd
Contributor II

Hello,

I have noticed that on our board, which runs on an i.MX8M Plus, since switching to Yocto Scarthgap, aPhy Link never came uperror appears on the PCIe when I reboot the device. However, if I shut it down completely with poweroff, I don't have this problem.

Unless someone already has a working solution for me, I would try to adapt the pci-imx6, as I have seen that it has been fundamentally changed since Yocto Kirkstone. Since I don't know if a backport is possible, I would rather try to continue working with the current version. Hence the question: how can a warm start be implemented in the i.MX8M Plus in terms of software? Is there perhaps a bit that I may need to set so that the PCI goes into a complete reset? In that case, I could force a complete reset before initialization during testing.

Best regards,

Ralf

0 Kudos
Reply
19 Replies

1,891 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @rrd 

Could you please re-create a new case talk about your question? And Please describe the latest status. Since I am unable to reproduce your issue here, I will contact our internal team in a new case to continue supporting your issue. Thanks for your understanding.

B.R

0 Kudos
Reply

2,444 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @rrd 

As I mentioned before, I still cannot reproduce your issue on my i.MX8MP EVK board. With your changes, you can now reboot the PCIe device after running the reboot command, correct? If so, could you please share your code patch? Thanks.

B.R

0 Kudos
Reply

2,411 Views
rrd
Contributor II

Hi@pengyong_zhang

 

 Yes, I will provide you with the patch later. After patching, I encounter the next problem. I am currently trying to solve that. When I usesystemctl suspendafter applying my patch, pcie currently does not allow suspend mode anymore. In addition, the moal module seems to have problems so that the device no longer functions correctly.

[   75.372360] Filesystems sync: 0.014 seconds
[   75.377098] Freezing user space processes
[   75.405396] Freezing user space processes completed (elapsed 0.024 seconds)
[   75.412472] OOM killer disabled.
[   75.415717] Freezing remaining freezable tasks
[   75.416862] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[   75.427883] printk: Suspending console(s) (use no_console_suspend to debug)
[   76.273062] wlan_pcie 0000:01:00.0: PM: pci_legacy_suspend(): woal_pcie_suspend+0x0/0x450 [moal] returns -16
[   76.273173] wlan_pcie 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x258 returns -16
[   76.273188] wlan_pcie 0000:01:00.0: PM: failed to suspend async: error -16
[   76.274115] PM: Some devices failed to suspend, or early wake event detected

 

Best regards

R. 

0 Kudos
Reply

2,340 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @rrd 

Why are you use "systemctl suspend" command apple the patch? you can re-compile the kernel Image and re-boot your board.

 

And I haven't received your patch file.

B.R

0 Kudos
Reply

2,283 Views
rrd
Contributor II

Hi @pengyong_zhang ,

i don't use 'systemctl suspend' to apply the patch. One of the mandatory requirements is that the device must be able to enter and exit suspend mode without any problems. For this reason, I tested this and found that my previous patch was causing problems. Before the patch, it was possible to go into suspend mode. Therefore, it must be due to my change. 

Best regards

R.

0 Kudos
Reply

2,403 Views
rrd
Contributor II

 

It seems to make a difference whether it is the first call to ‘systemctl suspend’ after booting or a subsequent call.

first call:

systemct[   31.455442] Scan in progress, ignore ADDBA Request event
l suspend
root@proto1-imx8mp-3:~# [   36.127317] IOCTL failed: 0000000051f95355 id=0x10000, sub_id=0x10003 action=1, status_code=0x80000007
[   36.605028] PM: suspend entry (deep)
[   36.644969] Filesystems sync: 0.036 seconds
[   36.652111] Freezing user space processes
[   36.677562] Freezing user space processes completed (elapsed 0.021 seconds)
[   36.684580] OOM killer disabled.
[   36.687827] Freezing remaining freezable tasks
[   36.693613] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[   36.701033] printk: Suspending console(s) (use no_console_suspend to debug)
[   36.874932] PM: suspend devices took 0.160 seconds
[   36.895966] Disabling non-boot CPUs ...
[   36.896919] IRQ215: set affinity failed(-22).
[   36.896946] IRQ234: set affinity failed(-22).
[   36.897000] psci: CPU1 killed (polled 0 ms)
[   36.898387] IRQ215: set affinity failed(-22).
[   36.898417] IRQ234: set affinity failed(-22).
[   36.899480] psci: CPU2 killed (polled 0 ms)
[   36.900878] IRQ215: set affinity failed(-22).
[   36.900906] IRQ234: set affinity failed(-22).
[   36.900975] psci: CPU3 killed (polled 0 ms)
[   36.901555] Enabling non-boot CPUs ...
[   36.901980] Detected VIPT I-cache on CPU1
[   36.902013] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[   36.902048] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[   36.902722] CPU1 is up
[   36.903080] Detected VIPT I-cache on CPU2
[   36.903099] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[   36.903119] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[   36.903612] CPU2 is up
[   36.903967] Detected VIPT I-cache on CPU3
[   36.903987] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[   36.904008] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[   36.904574] CPU3 is up
[   37.113209] imx6q-pcie 33800000.pcie: PCIe Gen.1 x1 link up
[   37.113227] imx6q-pcie 33800000.pcie: PCIe Gen.1 x1 link up
[   37.113231] imx6q-pcie 33800000.pcie: Link up, Gen1
[   37.477842] xhci-hcd xhci-hcd.1.auto: xHC error in resume, USBSTS 0x401, Reinit
[   37.477858] usb usb1: root hub lost power or was reset
[   37.477863] usb usb2: root hub lost power or was reset
[   37.479659] xhci-hcd xhci-hcd.2.auto: xHC error in resume, USBSTS 0x401, Reinit
[   37.479672] usb usb3: root hub lost power or was reset
[   37.479677] usb usb4: root hub lost power or was reset
[   37.485549] woal_cancel_hs: woal_set_get_hs_params failed 
[   40.676053] wlan_wakeup_card_timeout_func: ps_state=3
[   40.676071] mlan0: 
[   40.676076] Wakeup card timeout(0)!
[   43.748025] wlan_wakeup_card_timeout_func: ps_state=3
[   43.748037] mlan0: 
[   43.748042] Wakeup card timeout(1)!
[   46.820338] wlan_wakeup_card_timeout_func: ps_state=3
[   46.820343] mlan0: 
[   46.820345] Wakeup card timeout(2)!
[   46.820365] Driver version = PCIE8997--16.92.21.p119.3-MM6X16437.p3-GPL-(FP92) 
[   46.820368] main_state = 3
[   46.820370] ioctl_pending = 2
[   46.820372] tx_pending = 0
[   46.820374] wmm_tx_pending[0] = 0
[   46.820375] wmm_tx_pending[1] = 0
[   46.820377] wmm_tx_pending[2] = 0
[   46.820379] wmm_tx_pending[3] = 0
[   46.820381] rx_pending = 0
[   46.820383] lock_count = 85
[   46.820385] malloc_count = 53
[   46.820387] mbufalloc_count = 40
[   46.820389] malloc_cons_count = 4
[   46.820391] hs_skip_count = 0
[   46.820392] hs_force_count = 0
[   46.820395] Media state = "Disconnected"
[   46.820397] carrier off
[   46.820399] tx queue 0: started
[   46.820401] tx queue 1: started
[   46.820404] tx queue 2: started
[   46.820406] tx queue 3: started
[   46.820408] mlan0: num_tx_timeout = 0
[   46.820411] uap0: num_tx_timeout = 0
[   46.820414] wfd0: num_tx_timeout = 0
[   46.820429] reg:0x00 value=0x2b421b4b
[   46.820437] reg:0x04 value=0x00100406
[   46.820444] reg:0x10 value=0x1810000c
[   46.820451] reg:0x18 value=0x1820000c
[   46.820459] reg:0x2c value=0x00000000
[   46.820466] reg:0x3c value=0x000001d6
[   46.820473] reg:0x44 value=0x00000008
[   46.820480] reg:0x80 value=0x10110040
[   46.820487] reg:0x98 value=0x00000000
[   46.820494] reg:0x170 value=0x0001001e
[   46.820501] reg:0xcf0 value=0x0
[   46.820505] reg:0xcf8 value=0x0
[   46.820510] reg:0xcfc value=0x0
[   46.922213] reg:0xcf8 value=0x0
[   46.922218] reg:0xcfc value=0x0
[   47.024390] IOCTL failed: 00000000bf55be26 id=0x90000, sub_id=0x90002 action=1, status_code=0x80000007
[   47.024400] IOCTL failed: 00000000860dac8e id=0x90000, sub_id=0x9000b action=2, status_code=0x80000007
[   47.024475] woal_reset_intf: get bss info failed 
[   47.024708] woal_cfg80211_resume: get_wakeup_reason failed 
[   47.038449] PM: resume devices took 9.916 seconds
[   47.149089] woal_close: woal_disconnect failed 
[   47.482813] OOM killer enabled.
[   47.485971] Restarting tasks ... done.
[   47.491474] random: crng reseeded on system resumption
[   47.509369] PM: suspend exit
[   47.577420] TI DP83867 30be0000.ethernet-1:00: attached PHY driver (mii_bus:phy_addr=30be0000.ethernet-1:00, irq=POLL)
[   47.862373] Failed to poll FW reset register CF4=0x99
[   47.867447] PCIe In-band Reset Fail

in the first call suspend state seems to be reached

 

second call:

systemctl suspend
root@proto1-imx8mp-3:~# [  336.385651] PM: suspend entry (deep)
[  336.395071] Filesystems sync: 0.005 seconds
[  336.401641] Freezing user space processes
[  336.423851] Freezing user space processes completed (elapsed 0.018 seconds)
[  336.434189] OOM killer disabled.
[  336.437425] Freezing remaining freezable tasks
[  336.443190] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[  336.450619] printk: Suspending console(s) (use no_console_suspend to debug)
[  337.296053] wlan_pcie 0000:01:00.0: PM: pci_legacy_suspend(): woal_pcie_suspend+0x0/0x450 [moal] returns -16
[  337.296169] wlan_pcie 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x258 returns -16
[  337.296185] wlan_pcie 0000:01:00.0: PM: failed to suspend async: error -16
[  337.297108] PM: Some devices failed to suspend, or early wake event detected
[  337.333014] PM: resume devices took 0.036 seconds
[  337.393024] OOM killer enabled.
[  337.396177] Restarting tasks ... done.
[  337.401318] random: crng reseeded on system resumption
[  337.406568] PM: suspend exit
[  337.409658] PM: suspend entry (s2idle)
[  337.662584] Filesystems sync: 0.249 seconds
[  337.667273] Freezing user space processes
[  337.692910] Freezing user space processes completed (elapsed 0.021 seconds)
[  337.699890] OOM killer disabled.
[  337.703116] Freezing remaining freezable tasks
[  337.708889] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[  337.716317] printk: Suspending console(s) (use no_console_suspend to debug)
[  338.560058] wlan_pcie 0000:01:00.0: PM: pci_legacy_suspend(): woal_pcie_suspend+0x0/0x450 [moal] returns -16
[  338.560177] wlan_pcie 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x258 returns -16
[  338.560192] wlan_pcie 0000:01:00.0: PM: failed to suspend async: error -16
[  338.560805] PM: Some devices failed to suspend, or early wake event detected
[  338.594530] PM: resume devices took 0.032 seconds
[  338.654823] OOM killer enabled.
[  338.657981] Restarting tasks ... done.
[  338.662955] random: crng reseeded on system resumption
[  338.668201] PM: suspend exit
[  338.695157] TI DP83867 30be0000.ethernet-1:00: attached PHY driver (mii_bus:phy_addr=30be0000.ethernet-1:00, irq=POLL)


However, after waking up and re-executing systemctl suspend, this is not the case.

Tags (1)
0 Kudos
Reply

2,485 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @rrd 

Glad to hear that, but have you tried the code patch in pci-imx6.c file imx_pcie_shutdown I provided? What were the test results?

 if (imx_pcie->pci && imx_pcie->pci->ops && imx_pcie->pci->ops->stop_link) {
dev_info(&pdev->dev, "%s: stopping PCIe link\n", __func__);
imx_pcie->pci->ops->stop_link(imx_pcie->pci);
} else {
dev_warn(&pdev->dev, "%s: stop_link not available\n", __func__);
}

B.R

0 Kudos
Reply

2,477 Views
rrd
Contributor II

Hi @pengyong_zhang ,

to be honest, I didn't try adding imx_pcie->pci->ops->stop_link(imx_pcie->pci) to the code.

Let me explain why:

Using the oscilloscope, I noticed that the levels of PERST0# and W_DISABLE1# gpios (pin labels of the 88w8997) were not behaving as they should during the power-up sequence according to the data sheet. Therefore, I thought that imx_pcie->pci->ops->stop_link(imx_pcie->pci) would not change this behaviour either.

Best regards

R.

0 Kudos
Reply

2,563 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @rrd 

What is the check result now?

B.R

0 Kudos
Reply

2,554 Views
rrd
Contributor II

Hello and thank you for your enquiry.


First, here are my hardware details again:

I have an imx8mp-phycore-som from phytec.

I would like to use it with an embeddedArtists 1YM module for PCIe. This worked without any problems in the old kernel 5.15.71.
However, during today's measurements, I noticed that the timing was not quite as it should be. I was just lucky that it still worked reliably back then.

In the current BSP with kernel 6.6.23, I had problems implementing it in such a way that it could be used after a restart in the same way as after a complete shutdown. The problem was that after a restart, the message ‘Phy Link never came up’ appeared and I couldn't get the WiFi module to work reliably.


Over the last few days, I have been working intensively on getting everything to work with adjustments to the device tree, but I was unable to set the correct timing behaviour. I experimented with a fixed controller and tried various other things. At some point, I gave up and adapted the pci-imx6.c driver similar to kernel 5.15.71.

I just had the long-awaited breakthrough.

What I did: I added the W_DISABLE1 pin as gpio_desc *power_on_gpio to the imx6_pcie structure.

In imx6_pcie_host_init, this is set to high after the clock has been activated. If pcie PHY power up fails, it is set back to low. In the case of err_reg_disable, there is a 100 ms wait after disabling the regulator. In imx6_pcie_host_exit, power_on_gpio is also pulled low before disabling the clock. After disabling the regulator, there is another 100 ms wait. In imx6_pcie_probe, power_on_gpio is initialised and pulled low before the reset_gpio is handled.

This provides the necessary timing for the card to boot up cleanly.

 

Best

R.

 

 

0 Kudos
Reply

2,931 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @rrd 

I use the below dts file with my imx8mp evk board. And do not change any code.

https://github.com/nxf90153/linux-imx_myGit/blob/6beeed18c88145fac733824ffb525274c9bcfc3e/arch/arm64...

Also you can try to add the below code in below file. function imx_pcie_shutdown().

https://github.com/nxf90153/linux-imx_myGit/blob/8f83c86d42cef621156627b7e56380653fb66731/drivers/pc...

 if (imx_pcie->pci && imx_pcie->pci->ops && imx_pcie->pci->ops->stop_link) {
dev_info(&pdev->dev, "%s: stopping PCIe link\n", __func__);
imx_pcie->pci->ops->stop_link(imx_pcie->pci);
} else {
dev_warn(&pdev->dev, "%s: stop_link not available\n", __func__);
}

And you mentioned that not all boards have this issue, only your colleague's board is affected. Have you checked whether the PCIe hardware connections on the faulty board are intact?

B.R

0 Kudos
Reply

2,909 Views
rrd
Contributor II
Hi @pengyong_zhang

i'm on vacation this week and will test it right after I get back and let you know. I don't think it's a wiring/connection problem.

R.
0 Kudos
Reply

2,760 Views
rrd
Contributor II

Hi @pengyong_zhang ,

i am back from holiday and will start comparing your DT section with ours. Nevertheless, I asked my colleagues to check the quality of the soldered joints again during my holiday.

 

R.

0 Kudos
Reply

3,038 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @rrd 

What is your kernel version? I have tested your scenario on my i,MX8MP EVK board with pcie Wifi-BT card. When i use "reboot" command reboot board, there is no problem occurred. please share your log file. How did you reset your board?

pengyong_zhang_0-1770278957346.png

 

B.R

0 Kudos
Reply

2,986 Views
rrd
Contributor II
Could you please send me your device tree settings? (Everything needed to get such a PCIe device up and running. So if you have set up a special controller, please include that entry as well). Then I could compare it with my settings...

thanks in advance
R.
0 Kudos
Reply

3,030 Views
rrd
Contributor II

Here are the logs


root@dut-proto1-imx8mp-3:~# # after reboot command
root@dut-proto1-imx8mp-3:~#
root@dut-proto1-imx8mp-3:~#
root@dut-proto1-imx8mp-3:~# dmesg | sed -n '/pci/,+10p'
[ 2.953057] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:
[ 2.953099] imx6q-pcie 33800000.pcie: IO 0x001ff80000..0x001ff8ffff -> 0x0000000000
[ 2.953117] imx6q-pcie 33800000.pcie: MEM 0x0018000000..0x001fefffff -> 0x0018000000
[ 2.960606] ### panel-dut-xxxx-ourdisplay: ot_panel_enable()
[ 2.960612] panel-dut-xxxx-ourdisplay 32e60000.mipi_dsi.0: dsi ourdisplay_enable()
[ 2.960617] panel-dut-xxxx-ourdisplay 32e60000.mipi_dsi.0: ### red_gain_num: 105, red_gain_den: 100, green_gain_num: 99, green_gain_den: 100, blue_gain_num: 93, blue_gain_d
en: 100
[ 3.168756] imx6q-pcie 33800000.pcie: iATU: unroll T, 4 ob, 4 ib, align 64K, limit 16G
[ 3.245768] Console: switching to colour frame buffer device 60x50
[ 3.333707] imx-drm display-subsystem: [drm] fb0: imx-drmdrmfb frame buffer device
[ 3.341641] ### panel-dut-xxxx-ourdisplay: ot_panel_get_modes()
[ 3.344756] pps pps0: new PPS source ptp0
[ 4.168649] imx6q-pcie 33800000.pcie: Phy link never came up
[ 4.678685] bq256xx-charger 3-006b: switch cc controller to low!
[ 5.176740] imx6q-pcie 33800000.pcie: Phy link never came up
[ 5.182870] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00
[ 5.189320] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 5.194844] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 5.201052] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff]
[ 5.208008] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 5.208024] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 5.208037] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 5.208090] pci 0000:00:00.0: supports D1
[ 5.208095] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 5.210923] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff]
[ 5.244439] pci 0000:00:00.0: BAR 6: assigned [mem 0x18100000-0x1810ffff pref]
[ 5.251676] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 5.252117] pcieport 0000:00:00.0: PME: Signaling with IRQ 233
[ 5.275376] EXT4-fs (mmcblk2p5): mounted filesystem c69f2650-c859-4d92-bd01-c47029bcbd90 r/w with ordered data mode. Quota mode: none.
[ 5.287547] VFS: Mounted root (ext4 filesystem) on device 179:5.
[ 5.288595] devtmpfs: mounted
[ 5.304812] Freeing unused kernel memory: 8448K
[ 5.309529] Run /sbin/init as init process
[ 5.313635] with arguments:
root@dut-proto1-imx8mp-3:~# lspci
00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01)
root@dut-proto1-imx8mp-3:~#



root@dut-proto1-imx8mp-3:~# # after normal start-up or switching off and on
root@dut-proto1-imx8mp-3:~#
root@dut-proto1-imx8mp-3:~#
root@dut-proto1-imx8mp-3:~# dmesg | sed -n '/pci/,+10p'
[ 3.011889] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:
[ 3.011933] imx6q-pcie 33800000.pcie: IO 0x001ff80000..0x001ff8ffff -> 0x0000000000
[ 3.011951] imx6q-pcie 33800000.pcie: MEM 0x0018000000..0x001fefffff -> 0x0018000000
[ 3.019439] ### panel-dut-xxxx-ourdisplay: ot_panel_enable()
[ 3.019445] panel-dut-xxxx-ourdisplay 32e60000.mipi_dsi.0: dsi ourdisplay_enable()
[ 3.019450] panel-dut-xxxx-ourdisplay 32e60000.mipi_dsi.0: ### red_gain_num: 105, red_gain_den: 100, green_gain_num: 99, green_gain_den: 100, blue_gain_num: 93, blue_gain_d
en: 100
[ 3.227889] imx6q-pcie 33800000.pcie: iATU: unroll T, 4 ob, 4 ib, align 64K, limit 16G
[ 3.303603] Console: switching to colour frame buffer device 60x50
[ 3.328245] imx6q-pcie 33800000.pcie: PCIe Gen.1 x1 link up
[ 3.328978] imx-drm display-subsystem: [drm] fb0: imx-drmdrmfb frame buffer device
[ 3.337154] imx6q-pcie 33800000.pcie: PCIe Gen.1 x1 link up
[ 3.410294] imx6q-pcie 33800000.pcie: Link up, Gen1
[ 3.410632] ### panel-dut-xxxx-ourdisplay: ot_panel_get_modes()
[ 3.415186] imx6q-pcie 33800000.pcie: PCIe Gen.1 x1 link up
[ 3.419225] pps pps0: new PPS source ptp0
[ 3.432062] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00
[ 3.438463] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 3.443969] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 3.448507] fec 30be0000.ethernet eth0: registered PHC device 0
[ 3.450170] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff]
[ 3.457621] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 3.462996] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 3.474486] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 3.482520] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x000000a001000010
[ 3.488411] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 3.497837] xhci-hcd xhci-hcd.1.auto: irq 219, io mem 0x38100000
[ 3.504556] pci 0000:00:00.0: supports D1
[ 3.510654] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 3.514524] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 3.520018] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[ 3.529736] pci 0000:01:00.0: [1b4b:2b42] type 00 class 0x020000
[ 3.534033] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 3.540117] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[ 3.553842] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x000fffff 64bit pref]
[ 3.557578] hub 1-0:1.0: 1 port detected
[ 3.565187] pci 0000:01:00.0: supports D1 D2
[ 3.569013] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 3.572988] pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold
[ 3.581871] hub 2-0:1.0: USB hub found
[ 3.587604] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[ 3.591223] hub 2-0:1.0: 1 port detected
[ 3.611709] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 3.615897] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff]
[ 3.617235] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 3
[ 3.624017] pci 0000:00:00.0: BAR 15: assigned [mem 0x18100000-0x182fffff pref]
[ 3.632052] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x000000a001000010
[ 3.639087] pci 0000:00:00.0: BAR 6: assigned [mem 0x18300000-0x1830ffff pref]
[ 3.648409] xhci-hcd xhci-hcd.2.auto: irq 220, io mem 0x38200000
[ 3.655674] pci 0000:01:00.0: BAR 0: assigned [mem 0x18100000-0x181fffff 64bit pref]
[ 3.661735] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 3.669386] pci 0000:01:00.0: BAR 2: assigned [mem 0x18200000-0x182fffff 64bit pref]
[ 3.674847] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 4
[ 3.682703] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 3.690254] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
[ 3.695554] pci 0000:00:00.0: bridge window [mem 0x18100000-0x182fffff pref]
[ 3.709742] pcieport 0000:00:00.0: PME: Signaling with IRQ 222
[ 3.713028] hub 3-0:1.0: 1 port detected
[ 3.723089] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 3.732009] hub 4-0:1.0: USB hub found
[ 3.735803] hub 4-0:1.0: 1 port detected
[ 3.741061] Hot alarm is canceled. GPU3D clock will return to 64/64
[ 3.748608] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 7 mkt segment 2 supported-hw 0x80 0x4
[ 3.760642] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[ 3.766527] nxp-pca9450 0-0025: PWRON interrupt.
[ 3.771176] nxp-pca9450 0-0025: WDOGB interrupt.
[ 3.775657] input: custom_keyboard as /devices/platform/custom_keyboard/input/input1
[ 5.791053] wlan_pcie 0000:01:00.0: enabling device (0000 -> 0002)
[ 5.797422] PCI memory map Virt0: 00000000161b0b11 PCI memory map Virt2: 00000000e0b06e9a
[ 5.805688] Attach moal handle ops, card interface type: 0x204
[ 5.811559] rps set to 0 from module param
[ 5.817047] PCIE8997: init module param from usr cfg
[ 5.822084] card_type: PCIE8997, config block: 0
[ 5.822099] cfg80211_wext=0xf
[ 5.822102] max_vir_bss=1
[ 5.822107] cal_data_cfg=none
[ 5.822110] ps_mode = 1
[ 5.822113] auto_ds = 1
[ 5.822126] fw_name=nxp/pcieuart8997_combo_v4.bin
[ 5.822150] rx_work=1 cpu_num=4
[ 5.822156] Enable moal_recv_amsdu_packet
[ 5.822182] Attach mlan adapter operations.card_type is 0x204.
[ 5.823422] Request firmware: nxp/pcieuart8997_combo_v4.bin
[ 5.823836] systemd[1]: Started Journal Service.
[ 6.235026] systemd-journald[161]: Received client request to flush runtime journal.
[ 6.511661] FW download over, size 621300 bytes
[ 7.239201] WLAN FW is active
[ 7.242211] on_time is 7239095875
[ 7.293239] EXT4-fs (mmcblk2p3): mounted filesystem aa764bef-f1a9-493d-87e5-4b2b34315827 r/w with ordered data mode. Quota mode: none.
root@dut-proto1-imx8mp-3:~# lspci
00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01)
01:00.0 Ethernet controller: Marvell Technology Group Ltd. Device 2b42 (rev 11)
root@dut-proto1-imx8mp-3:~#

0 Kudos
Reply

3,037 Views
rrd
Contributor II
Thank you for your quick reply.

The old kernel version was 5.15.71.
The new kernel version is 6.6.23.

One thing to note is that this does not occur on every device (of the same model). All of the devices I have here on site are working correctly. However, my colleagues have devices of exactly the same model on which this occurs. They all have the same rauc bundle/image installed on their devices. I will probably receive one of these devices with the malfunction on my desk today. I will then post the requested output immediately.

P.S. By the way, we use the same WiFi chip that I saw in your lspci output. It is the Murata 1YM module with the 88w8997 chipset.

Best regards,
R.
0 Kudos
Reply

3,053 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @rrd 

Our pcie device not support warm reset. Only cold reset can Re-enumerate PCIe devices. That is why you said "if I shut it down completely with poweroff, I don't have this problem" EP and RC need to be powered off. Power on EP, then power on RC.

B.R

0 Kudos
Reply

3,044 Views
rrd
Contributor II
Hello and thank you for your reply.

I just don't understand why it worked in kernel 5.15.71. I'm not that familiar with pci(e).
Is the problem more likely to be caused by the WiFi card, which is controlled via PCIe, or is it caused by the PCIe itself?

We have to get this problem under control somehow... I've never seen this happen before, either with Windows or Linux, where I had to completely shut down the operating system so that the hardware would work the next time I booted up.

Can you give me some more detailed instructions on how to solve the problem?

Many thanks in advance.
Ralf
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2312344%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Epci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312344%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EHello%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ehave%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Enoticed%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethat%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eon%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eour%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eboard%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ewhich%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eruns%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eon%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ean%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ei.MX8M%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EPlus%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Esince%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eswitching%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eto%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EYocto%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EScarthgap%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ea%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%20%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EPhy%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3ELink%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Enever%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ecame%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eup%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%E2%80%9D%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eerror%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eappears%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eon%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EPCIe%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ewhen%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ereboot%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Edevice%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E.%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EHowever%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eif%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eshut%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eit%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Edown%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ecompletely%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ewith%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Epoweroff%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Edon't%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ehave%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethis%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eproblem%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EUnless%20someone%20already%20has%20a%20working%20solution%20for%20me%2C%20I%20would%20try%20to%20adapt%20the%20pci-imx6%2C%20as%20I%20have%20seen%20that%20it%20has%20been%20fundamentally%20changed%20since%20Yocto%20Kirkstone.%20Since%20I%20don't%20know%20if%20a%20backport%20is%20possible%2C%20I%20would%20rather%20try%20to%20continue%20working%20with%20the%20current%20version.%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EHence%20the%20question%3A%20how%20can%20a%20warm%20start%20be%20implemented%20in%20the%20i.MX8M%20Plus%20in%20terms%20of%20software%3F%20Is%20there%20perhaps%20a%20bit%20that%20I%20may%20need%20to%20set%20so%20that%20the%20PCI%20goes%20into%20a%20complete%20reset%3F%20In%20that%20case%2C%20I%20could%20force%20a%20complete%20reset%20before%20initialization%20during%20testing.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EBest%20regards%2C%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3ERalf%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2312706%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312706%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThank%20you%20for%20your%20quick%20reply.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20old%20kernel%20version%20was%205.15.71.%3CBR%20%2F%3EThe%20new%20kernel%20version%20is%206.6.23.%3CBR%20%2F%3E%3CBR%20%2F%3EOne%20thing%20to%20note%20is%20that%20this%20does%20not%20occur%20on%20every%20device%20(of%20the%20same%20model).%20All%20of%20the%20devices%20I%20have%20here%20on%20site%20are%20working%20correctly.%20However%2C%20my%20colleagues%20have%20devices%20of%20exactly%20the%20same%20model%20on%20which%20this%20occurs.%20They%20all%20have%20the%20same%20rauc%20bundle%2Fimage%20installed%20on%20their%20devices.%20I%20will%20probably%20receive%20one%20of%20these%20devices%20with%20the%20malfunction%20on%20my%20desk%20today.%20I%20will%20then%20post%20the%20requested%20output%20immediately.%3CBR%20%2F%3E%3CBR%20%2F%3EP.S.%20By%20the%20way%2C%20we%20use%20the%20same%20WiFi%20chip%20that%20I%20saw%20in%20your%20lspci%20output.%20It%20is%20the%20Murata%201YM%20module%20with%20the%2088w8997%20chipset.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2C%3CBR%20%2F%3ER.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2312665%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312665%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240378%22%20target%3D%22_blank%22%3E%40rrd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhat%20is%20your%20kernel%20version%3F%20I%20have%20tested%20your%20scenario%20on%20my%20i%2CMX8MP%20EVK%20board%20with%20pcie%20Wifi-BT%20card.%20When%20i%20use%20%22reboot%22%20command%20reboot%20board%2C%20there%20is%20no%20problem%20occurred.%20please%20share%20your%20log%20file.%20How%20did%20you%20reset%20your%20board%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1770278957346.png%22%20style%3D%22width%3A%20819px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F375637i085E59ACCC3A8CCD%2Fimage-dimensions%2F819x43%3Fv%3Dv2%22%20width%3D%22819%22%20height%3D%2243%22%20role%3D%22button%22%20title%3D%22pengyong_zhang_0-1770278957346.png%22%20alt%3D%22pengyong_zhang_0-1770278957346.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2312641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHello%20and%20thank%20you%20for%20your%20reply.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20just%20don't%20understand%20why%20it%20worked%20in%20kernel%205.15.71.%20I'm%20not%20that%20familiar%20with%20pci(e).%3CBR%20%2F%3EIs%20the%20problem%20more%20likely%20to%20be%20caused%20by%20the%20WiFi%20card%2C%20which%20is%20controlled%20via%20PCIe%2C%20or%20is%20it%20caused%20by%20the%20PCIe%20itself%3F%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20have%20to%20get%20this%20problem%20under%20control%20somehow...%20I've%20never%20seen%20this%20happen%20before%2C%20either%20with%20Windows%20or%20Linux%2C%20where%20I%20had%20to%20completely%20shut%20down%20the%20operating%20system%20so%20that%20the%20hardware%20would%20work%20the%20next%20time%20I%20booted%20up.%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20give%20me%20some%20more%20detailed%20instructions%20on%20how%20to%20solve%20the%20problem%3F%3CBR%20%2F%3E%3CBR%20%2F%3EMany%20thanks%20in%20advance.%3CBR%20%2F%3ERalf%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2312486%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312486%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240378%22%20target%3D%22_blank%22%3E%40rrd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOur%20pcie%20device%20not%20support%20warm%20reset.%20Only%20cold%20reset%20can%26nbsp%3BRe-enumerate%20PCIe%20devices.%20That%20is%20why%20you%20said%20%22if%20I%20shut%20it%20down%20completely%20with%20poweroff%2C%20I%20don't%20have%20this%20problem%22%20EP%20and%20RC%20need%20to%20be%20powered%20off.%20Power%20on%20EP%2C%20then%20power%20on%20RC.%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2312847%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312847%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHere%20are%20the%20logs%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3E%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%20%3CSTRONG%3E%23%20after%20reboot%20command%3C%2FSTRONG%3E%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%20dmesg%20%7C%20sed%20-n%20'%2Fpci%2F%2C%2B10p'%3CBR%20%2F%3E%5B%202.953057%5D%20imx6q-pcie%2033800000.pcie%3A%20host%20bridge%20%2Fsoc%400%2Fpcie%4033800000%20ranges%3A%3CBR%20%2F%3E%5B%202.953099%5D%20imx6q-pcie%2033800000.pcie%3A%20IO%200x001ff80000..0x001ff8ffff%20-%26gt%3B%200x0000000000%3CBR%20%2F%3E%5B%202.953117%5D%20imx6q-pcie%2033800000.pcie%3A%20MEM%200x0018000000..0x001fefffff%20-%26gt%3B%200x0018000000%3CBR%20%2F%3E%5B%202.960606%5D%20%23%23%23%20panel-dut-xxxx-ourdisplay%3A%20ot_panel_enable()%3CBR%20%2F%3E%5B%202.960612%5D%20panel-dut-xxxx-ourdisplay%2032e60000.mipi_dsi.0%3A%20dsi%20ourdisplay_enable()%3CBR%20%2F%3E%5B%202.960617%5D%20panel-dut-xxxx-ourdisplay%2032e60000.mipi_dsi.0%3A%20%23%23%23%20red_gain_num%3A%20105%2C%20red_gain_den%3A%20100%2C%20green_gain_num%3A%2099%2C%20green_gain_den%3A%20100%2C%20blue_gain_num%3A%2093%2C%20blue_gain_d%3CBR%20%2F%3Een%3A%20100%3CBR%20%2F%3E%5B%203.168756%5D%20imx6q-pcie%2033800000.pcie%3A%20iATU%3A%20unroll%20T%2C%204%20ob%2C%204%20ib%2C%20align%2064K%2C%20limit%2016G%3CBR%20%2F%3E%5B%203.245768%5D%20Console%3A%20switching%20to%20colour%20frame%20buffer%20device%2060x50%3CBR%20%2F%3E%5B%203.333707%5D%20imx-drm%20display-subsystem%3A%20%5Bdrm%5D%20fb0%3A%20imx-drmdrmfb%20frame%20buffer%20device%3CBR%20%2F%3E%5B%203.341641%5D%20%23%23%23%20panel-dut-xxxx-ourdisplay%3A%20ot_panel_get_modes()%3CBR%20%2F%3E%5B%203.344756%5D%20pps%20pps0%3A%20new%20PPS%20source%20ptp0%3CBR%20%2F%3E%5B%204.168649%5D%20imx6q-pcie%2033800000.pcie%3A%20Phy%20link%20never%20came%20up%3CBR%20%2F%3E%5B%204.678685%5D%20bq256xx-charger%203-006b%3A%20switch%20cc%20controller%20to%20low!%3CBR%20%2F%3E%5B%205.176740%5D%20imx6q-pcie%2033800000.pcie%3A%20Phy%20link%20never%20came%20up%3CBR%20%2F%3E%5B%205.182870%5D%20imx6q-pcie%2033800000.pcie%3A%20PCI%20host%20bridge%20to%20bus%200000%3A00%3CBR%20%2F%3E%5B%205.189320%5D%20pci_bus%200000%3A00%3A%20root%20bus%20resource%20%5Bbus%2000-ff%5D%3CBR%20%2F%3E%5B%205.194844%5D%20pci_bus%200000%3A00%3A%20root%20bus%20resource%20%5Bio%200x0000-0xffff%5D%3CBR%20%2F%3E%5B%205.201052%5D%20pci_bus%200000%3A00%3A%20root%20bus%20resource%20%5Bmem%200x18000000-0x1fefffff%5D%3CBR%20%2F%3E%5B%205.208008%5D%20pci%200000%3A00%3A00.0%3A%20%5B16c3%3Aabcd%5D%20type%2001%20class%200x060400%3CBR%20%2F%3E%5B%205.208024%5D%20pci%200000%3A00%3A00.0%3A%20reg%200x10%3A%20%5Bmem%200x00000000-0x000fffff%5D%3CBR%20%2F%3E%5B%205.208037%5D%20pci%200000%3A00%3A00.0%3A%20reg%200x38%3A%20%5Bmem%200x00000000-0x0000ffff%20pref%5D%3CBR%20%2F%3E%5B%205.208090%5D%20pci%200000%3A00%3A00.0%3A%20supports%20D1%3CBR%20%2F%3E%5B%205.208095%5D%20pci%200000%3A00%3A00.0%3A%20PME%23%20supported%20from%20D0%20D1%20D3hot%20D3cold%3CBR%20%2F%3E%5B%205.210923%5D%20pci%200000%3A00%3A00.0%3A%20BAR%200%3A%20assigned%20%5Bmem%200x18000000-0x180fffff%5D%3CBR%20%2F%3E%5B%205.244439%5D%20pci%200000%3A00%3A00.0%3A%20BAR%206%3A%20assigned%20%5Bmem%200x18100000-0x1810ffff%20pref%5D%3CBR%20%2F%3E%5B%205.251676%5D%20pci%200000%3A00%3A00.0%3A%20PCI%20bridge%20to%20%5Bbus%2001-ff%5D%3CBR%20%2F%3E%5B%205.252117%5D%20pcieport%200000%3A00%3A00.0%3A%20PME%3A%20Signaling%20with%20IRQ%20233%3CBR%20%2F%3E%5B%205.275376%5D%20EXT4-fs%20(mmcblk2p5)%3A%20mounted%20filesystem%20c69f2650-c859-4d92-bd01-c47029bcbd90%20r%2Fw%20with%20ordered%20data%20mode.%20Quota%20mode%3A%20none.%3CBR%20%2F%3E%5B%205.287547%5D%20VFS%3A%20Mounted%20root%20(ext4%20filesystem)%20on%20device%20179%3A5.%3CBR%20%2F%3E%5B%205.288595%5D%20devtmpfs%3A%20mounted%3CBR%20%2F%3E%5B%205.304812%5D%20Freeing%20unused%20kernel%20memory%3A%208448K%3CBR%20%2F%3E%5B%205.309529%5D%20Run%20%2Fsbin%2Finit%20as%20init%20process%3CBR%20%2F%3E%5B%205.313635%5D%20with%20arguments%3A%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%20lspci%3CBR%20%2F%3E00%3A00.0%20PCI%20bridge%3A%20Synopsys%2C%20Inc.%20DWC_usb3%20%2F%20PCIe%20bridge%20(rev%2001)%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%20%3CSTRONG%3E%23%20after%20normal%20start-up%20or%20switching%20off%20and%20on%3C%2FSTRONG%3E%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%20dmesg%20%7C%20sed%20-n%20'%2Fpci%2F%2C%2B10p'%3CBR%20%2F%3E%5B%203.011889%5D%20imx6q-pcie%2033800000.pcie%3A%20host%20bridge%20%2Fsoc%400%2Fpcie%4033800000%20ranges%3A%3CBR%20%2F%3E%5B%203.011933%5D%20imx6q-pcie%2033800000.pcie%3A%20IO%200x001ff80000..0x001ff8ffff%20-%26gt%3B%200x0000000000%3CBR%20%2F%3E%5B%203.011951%5D%20imx6q-pcie%2033800000.pcie%3A%20MEM%200x0018000000..0x001fefffff%20-%26gt%3B%200x0018000000%3CBR%20%2F%3E%5B%203.019439%5D%20%23%23%23%20panel-dut-xxxx-ourdisplay%3A%20ot_panel_enable()%3CBR%20%2F%3E%5B%203.019445%5D%20panel-dut-xxxx-ourdisplay%2032e60000.mipi_dsi.0%3A%20dsi%20ourdisplay_enable()%3CBR%20%2F%3E%5B%203.019450%5D%20panel-dut-xxxx-ourdisplay%2032e60000.mipi_dsi.0%3A%20%23%23%23%20red_gain_num%3A%20105%2C%20red_gain_den%3A%20100%2C%20green_gain_num%3A%2099%2C%20green_gain_den%3A%20100%2C%20blue_gain_num%3A%2093%2C%20blue_gain_d%3CBR%20%2F%3Een%3A%20100%3CBR%20%2F%3E%5B%203.227889%5D%20imx6q-pcie%2033800000.pcie%3A%20iATU%3A%20unroll%20T%2C%204%20ob%2C%204%20ib%2C%20align%2064K%2C%20limit%2016G%3CBR%20%2F%3E%5B%203.303603%5D%20Console%3A%20switching%20to%20colour%20frame%20buffer%20device%2060x50%3CBR%20%2F%3E%5B%203.328245%5D%20imx6q-pcie%2033800000.pcie%3A%20PCIe%20Gen.1%20x1%20link%20up%3CBR%20%2F%3E%5B%203.328978%5D%20imx-drm%20display-subsystem%3A%20%5Bdrm%5D%20fb0%3A%20imx-drmdrmfb%20frame%20buffer%20device%3CBR%20%2F%3E%5B%203.337154%5D%20imx6q-pcie%2033800000.pcie%3A%20PCIe%20Gen.1%20x1%20link%20up%3CBR%20%2F%3E%5B%203.410294%5D%20imx6q-pcie%2033800000.pcie%3A%20Link%20up%2C%20Gen1%3CBR%20%2F%3E%5B%203.410632%5D%20%23%23%23%20panel-dut-xxxx-ourdisplay%3A%20ot_panel_get_modes()%3CBR%20%2F%3E%5B%203.415186%5D%20imx6q-pcie%2033800000.pcie%3A%20PCIe%20Gen.1%20x1%20link%20up%3CBR%20%2F%3E%5B%203.419225%5D%20pps%20pps0%3A%20new%20PPS%20source%20ptp0%3CBR%20%2F%3E%5B%203.432062%5D%20imx6q-pcie%2033800000.pcie%3A%20PCI%20host%20bridge%20to%20bus%200000%3A00%3CBR%20%2F%3E%5B%203.438463%5D%20pci_bus%200000%3A00%3A%20root%20bus%20resource%20%5Bbus%2000-ff%5D%3CBR%20%2F%3E%5B%203.443969%5D%20pci_bus%200000%3A00%3A%20root%20bus%20resource%20%5Bio%200x0000-0xffff%5D%3CBR%20%2F%3E%5B%203.448507%5D%20fec%2030be0000.ethernet%20eth0%3A%20registered%20PHC%20device%200%3CBR%20%2F%3E%5B%203.450170%5D%20pci_bus%200000%3A00%3A%20root%20bus%20resource%20%5Bmem%200x18000000-0x1fefffff%5D%3CBR%20%2F%3E%5B%203.457621%5D%20xhci-hcd%20xhci-hcd.1.auto%3A%20xHCI%20Host%20Controller%3CBR%20%2F%3E%5B%203.462996%5D%20pci%200000%3A00%3A00.0%3A%20%5B16c3%3Aabcd%5D%20type%2001%20class%200x060400%3CBR%20%2F%3E%5B%203.474486%5D%20pci%200000%3A00%3A00.0%3A%20reg%200x10%3A%20%5Bmem%200x00000000-0x000fffff%5D%3CBR%20%2F%3E%5B%203.482520%5D%20xhci-hcd%20xhci-hcd.1.auto%3A%20hcc%20params%200x0220fe6d%20hci%20version%200x110%20quirks%200x000000a001000010%3CBR%20%2F%3E%5B%203.488411%5D%20pci%200000%3A00%3A00.0%3A%20reg%200x38%3A%20%5Bmem%200x00000000-0x0000ffff%20pref%5D%3CBR%20%2F%3E%5B%203.497837%5D%20xhci-hcd%20xhci-hcd.1.auto%3A%20irq%20219%2C%20io%20mem%200x38100000%3CBR%20%2F%3E%5B%203.504556%5D%20pci%200000%3A00%3A00.0%3A%20supports%20D1%3CBR%20%2F%3E%5B%203.510654%5D%20xhci-hcd%20xhci-hcd.1.auto%3A%20xHCI%20Host%20Controller%3CBR%20%2F%3E%5B%203.514524%5D%20pci%200000%3A00%3A00.0%3A%20PME%23%20supported%20from%20D0%20D1%20D3hot%20D3cold%3CBR%20%2F%3E%5B%203.520018%5D%20xhci-hcd%20xhci-hcd.1.auto%3A%20new%20USB%20bus%20registered%2C%20assigned%20bus%20number%202%3CBR%20%2F%3E%5B%203.529736%5D%20pci%200000%3A01%3A00.0%3A%20%5B1b4b%3A2b42%5D%20type%2000%20class%200x020000%3CBR%20%2F%3E%5B%203.534033%5D%20xhci-hcd%20xhci-hcd.1.auto%3A%20Host%20supports%20USB%203.0%20SuperSpeed%3CBR%20%2F%3E%5B%203.540117%5D%20pci%200000%3A01%3A00.0%3A%20reg%200x10%3A%20%5Bmem%200x00000000-0x000fffff%2064bit%20pref%5D%3CBR%20%2F%3E%5B%203.553842%5D%20pci%200000%3A01%3A00.0%3A%20reg%200x18%3A%20%5Bmem%200x00000000-0x000fffff%2064bit%20pref%5D%3CBR%20%2F%3E%5B%203.557578%5D%20hub%201-0%3A1.0%3A%201%20port%20detected%3CBR%20%2F%3E%5B%203.565187%5D%20pci%200000%3A01%3A00.0%3A%20supports%20D1%20D2%3CBR%20%2F%3E%5B%203.569013%5D%20usb%20usb2%3A%20We%20don't%20know%20the%20algorithms%20for%20LPM%20for%20this%20host%2C%20disabling%20LPM.%3CBR%20%2F%3E%5B%203.572988%5D%20pci%200000%3A01%3A00.0%3A%20PME%23%20supported%20from%20D0%20D1%20D3hot%20D3cold%3CBR%20%2F%3E%5B%203.581871%5D%20hub%202-0%3A1.0%3A%20USB%20hub%20found%3CBR%20%2F%3E%5B%203.587604%5D%20pci%200000%3A01%3A00.0%3A%202.000%20Gb%2Fs%20available%20PCIe%20bandwidth%2C%20limited%20by%202.5%20GT%2Fs%20PCIe%20x1%20link%20at%200000%3A00%3A00.0%20(capable%20of%204.000%20Gb%2Fs%20with%205.0%20GT%2Fs%20PCIe%20x1%20link)%3CBR%20%2F%3E%5B%203.591223%5D%20hub%202-0%3A1.0%3A%201%20port%20detected%3CBR%20%2F%3E%5B%203.611709%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20xHCI%20Host%20Controller%3CBR%20%2F%3E%5B%203.615897%5D%20pci%200000%3A00%3A00.0%3A%20BAR%200%3A%20assigned%20%5Bmem%200x18000000-0x180fffff%5D%3CBR%20%2F%3E%5B%203.617235%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20new%20USB%20bus%20registered%2C%20assigned%20bus%20number%203%3CBR%20%2F%3E%5B%203.624017%5D%20pci%200000%3A00%3A00.0%3A%20BAR%2015%3A%20assigned%20%5Bmem%200x18100000-0x182fffff%20pref%5D%3CBR%20%2F%3E%5B%203.632052%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20hcc%20params%200x0220fe6d%20hci%20version%200x110%20quirks%200x000000a001000010%3CBR%20%2F%3E%5B%203.639087%5D%20pci%200000%3A00%3A00.0%3A%20BAR%206%3A%20assigned%20%5Bmem%200x18300000-0x1830ffff%20pref%5D%3CBR%20%2F%3E%5B%203.648409%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20irq%20220%2C%20io%20mem%200x38200000%3CBR%20%2F%3E%5B%203.655674%5D%20pci%200000%3A01%3A00.0%3A%20BAR%200%3A%20assigned%20%5Bmem%200x18100000-0x181fffff%2064bit%20pref%5D%3CBR%20%2F%3E%5B%203.661735%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20xHCI%20Host%20Controller%3CBR%20%2F%3E%5B%203.669386%5D%20pci%200000%3A01%3A00.0%3A%20BAR%202%3A%20assigned%20%5Bmem%200x18200000-0x182fffff%2064bit%20pref%5D%3CBR%20%2F%3E%5B%203.674847%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20new%20USB%20bus%20registered%2C%20assigned%20bus%20number%204%3CBR%20%2F%3E%5B%203.682703%5D%20pci%200000%3A00%3A00.0%3A%20PCI%20bridge%20to%20%5Bbus%2001-ff%5D%3CBR%20%2F%3E%5B%203.690254%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20Host%20supports%20USB%203.0%20SuperSpeed%3CBR%20%2F%3E%5B%203.695554%5D%20pci%200000%3A00%3A00.0%3A%20bridge%20window%20%5Bmem%200x18100000-0x182fffff%20pref%5D%3CBR%20%2F%3E%5B%203.709742%5D%20pcieport%200000%3A00%3A00.0%3A%20PME%3A%20Signaling%20with%20IRQ%20222%3CBR%20%2F%3E%5B%203.713028%5D%20hub%203-0%3A1.0%3A%201%20port%20detected%3CBR%20%2F%3E%5B%203.723089%5D%20usb%20usb4%3A%20We%20don't%20know%20the%20algorithms%20for%20LPM%20for%20this%20host%2C%20disabling%20LPM.%3CBR%20%2F%3E%5B%203.732009%5D%20hub%204-0%3A1.0%3A%20USB%20hub%20found%3CBR%20%2F%3E%5B%203.735803%5D%20hub%204-0%3A1.0%3A%201%20port%20detected%3CBR%20%2F%3E%5B%203.741061%5D%20Hot%20alarm%20is%20canceled.%20GPU3D%20clock%20will%20return%20to%2064%2F64%3CBR%20%2F%3E%5B%203.748608%5D%20imx-cpufreq-dt%20imx-cpufreq-dt%3A%20cpu%20speed%20grade%207%20mkt%20segment%202%20supported-hw%200x80%200x4%3CBR%20%2F%3E%5B%203.760642%5D%20sdhci-esdhc-imx%2030b50000.mmc%3A%20Got%20CD%20GPIO%3CBR%20%2F%3E%5B%203.766527%5D%20nxp-pca9450%200-0025%3A%20PWRON%20interrupt.%3CBR%20%2F%3E%5B%203.771176%5D%20nxp-pca9450%200-0025%3A%20WDOGB%20interrupt.%3CBR%20%2F%3E%5B%203.775657%5D%20input%3A%20custom_keyboard%20as%20%2Fdevices%2Fplatform%2Fcustom_keyboard%2Finput%2Finput1%3CBR%20%2F%3E%5B%205.791053%5D%20wlan_pcie%200000%3A01%3A00.0%3A%20enabling%20device%20(0000%20-%26gt%3B%200002)%3CBR%20%2F%3E%5B%205.797422%5D%20PCI%20memory%20map%20Virt0%3A%2000000000161b0b11%20PCI%20memory%20map%20Virt2%3A%2000000000e0b06e9a%3CBR%20%2F%3E%5B%205.805688%5D%20Attach%20moal%20handle%20ops%2C%20card%20interface%20type%3A%200x204%3CBR%20%2F%3E%5B%205.811559%5D%20rps%20set%20to%200%20from%20module%20param%3CBR%20%2F%3E%5B%205.817047%5D%20PCIE8997%3A%20init%20module%20param%20from%20usr%20cfg%3CBR%20%2F%3E%5B%205.822084%5D%20card_type%3A%20PCIE8997%2C%20config%20block%3A%200%3CBR%20%2F%3E%5B%205.822099%5D%20cfg80211_wext%3D0xf%3CBR%20%2F%3E%5B%205.822102%5D%20max_vir_bss%3D1%3CBR%20%2F%3E%5B%205.822107%5D%20cal_data_cfg%3Dnone%3CBR%20%2F%3E%5B%205.822110%5D%20ps_mode%20%3D%201%3CBR%20%2F%3E%5B%205.822113%5D%20auto_ds%20%3D%201%3CBR%20%2F%3E%5B%205.822126%5D%20fw_name%3Dnxp%2Fpcieuart8997_combo_v4.bin%3CBR%20%2F%3E%5B%205.822150%5D%20rx_work%3D1%20cpu_num%3D4%3CBR%20%2F%3E%5B%205.822156%5D%20Enable%20moal_recv_amsdu_packet%3CBR%20%2F%3E%5B%205.822182%5D%20Attach%20mlan%20adapter%20operations.card_type%20is%200x204.%3CBR%20%2F%3E%5B%205.823422%5D%20Request%20firmware%3A%20nxp%2Fpcieuart8997_combo_v4.bin%3CBR%20%2F%3E%5B%205.823836%5D%20systemd%5B1%5D%3A%20Started%20Journal%20Service.%3CBR%20%2F%3E%5B%206.235026%5D%20systemd-journald%5B161%5D%3A%20Received%20client%20request%20to%20flush%20runtime%20journal.%3CBR%20%2F%3E%5B%206.511661%5D%20FW%20download%20over%2C%20size%20621300%20bytes%3CBR%20%2F%3E%5B%207.239201%5D%20WLAN%20FW%20is%20active%3CBR%20%2F%3E%5B%207.242211%5D%20on_time%20is%207239095875%3CBR%20%2F%3E%5B%207.293239%5D%20EXT4-fs%20(mmcblk2p3)%3A%20mounted%20filesystem%20aa764bef-f1a9-493d-87e5-4b2b34315827%20r%2Fw%20with%20ordered%20data%20mode.%20Quota%20mode%3A%20none.%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%20lspci%3CBR%20%2F%3E00%3A00.0%20PCI%20bridge%3A%20Synopsys%2C%20Inc.%20DWC_usb3%20%2F%20PCIe%20bridge%20(rev%2001)%3CBR%20%2F%3E01%3A00.0%20Ethernet%20controller%3A%20Marvell%20Technology%20Group%20Ltd.%20Device%202b42%20(rev%2011)%3CBR%20%2F%3Eroot%40dut-proto1-imx8mp-3%3A~%23%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2313869%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2313869%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECould%20you%20please%20send%20me%20your%20device%20tree%20settings%3F%20(Everything%20needed%20to%20get%20such%20a%20PCIe%20device%20up%20and%20running.%20So%20if%20you%20have%20set%20up%20a%20special%20controller%2C%20please%20include%20that%20entry%20as%20well).%20Then%20I%20could%20compare%20it%20with%20my%20settings...%3CBR%20%2F%3E%3CBR%20%2F%3Ethanks%20in%20advance%3CBR%20%2F%3ER.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314448%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314448%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F202673%22%20target%3D%22_blank%22%3E%40pengyong_zhang%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3Ei'm%20on%20vacation%20this%20week%20and%20will%20test%20it%20right%20after%20I%20get%20back%20and%20let%20you%20know.%20I%20don't%20think%20it's%20a%20wiring%2Fconnection%20problem.%3CBR%20%2F%3E%3CBR%20%2F%3ER.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314262%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314262%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240378%22%20target%3D%22_blank%22%3E%40rrd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20use%20the%20below%20dts%20file%20with%20my%20imx8mp%20evk%20board.%20And%20do%20not%20change%20any%20code.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxf90153%2Flinux-imx_myGit%2Fblob%2F6beeed18c88145fac733824ffb525274c9bcfc3e%2Farch%2Farm64%2Fboot%2Fdts%2Ffreescale%2Fimx8mp-evk.dts%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxf90153%2Flinux-imx_myGit%2Fblob%2F6beeed18c88145fac733824ffb525274c9bcfc3e%2Farch%2Farm64%2Fboot%2Fdts%2Ffreescale%2Fimx8mp-evk.dts%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EAlso%20you%20can%20try%20to%20add%20the%20below%20code%20in%20below%20file.%20function%26nbsp%3Bimx_pcie_shutdown().%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxf90153%2Flinux-imx_myGit%2Fblob%2F8f83c86d42cef621156627b7e56380653fb66731%2Fdrivers%2Fpci%2Fcontroller%2Fdwc%2Fpci-imx6.c%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxf90153%2Flinux-imx_myGit%2Fblob%2F8f83c86d42cef621156627b7e56380653fb66731%2Fdrivers%2Fpci%2Fcontroller%2Fdwc%2Fpci-imx6.c%3C%2FA%3E%3C%2FP%3E%0A%3CPRE%3E%20if%20(imx_pcie-%26gt%3Bpci%20%26amp%3B%26amp%3B%20imx_pcie-%26gt%3Bpci-%26gt%3Bops%20%26amp%3B%26amp%3B%20imx_pcie-%26gt%3Bpci-%26gt%3Bops-%26gt%3Bstop_link)%20%7B%3CBR%20%2F%3Edev_info(%26amp%3Bpdev-%26gt%3Bdev%2C%20%22%25s%3A%20stopping%20PCIe%20link%5Cn%22%2C%20__func__)%3B%3CBR%20%2F%3Eimx_pcie-%26gt%3Bpci-%26gt%3Bops-%26gt%3Bstop_link(imx_pcie-%26gt%3Bpci)%3B%3CBR%20%2F%3E%7D%20else%20%7B%3CBR%20%2F%3Edev_warn(%26amp%3Bpdev-%26gt%3Bdev%2C%20%22%25s%3A%20stop_link%20not%20available%5Cn%22%2C%20__func__)%3B%3CBR%20%2F%3E%7D%3C%2FPRE%3E%0A%3CP%3EAnd%20you%20mentioned%20that%20not%20all%20boards%20have%20this%20issue%2C%20only%20your%20colleague's%20board%20is%20affected.%20Have%20you%20checked%20whether%20the%20PCIe%20hardware%20connections%20on%20the%20faulty%20board%20are%20intact%3F%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2318463%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2318463%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F202673%22%20target%3D%22_blank%22%3E%40pengyong_zhang%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3Ei%20am%20back%20from%20holiday%20and%20will%20start%20comparing%20your%20DT%20section%20with%20ours.%20Nevertheless%2C%20I%20asked%20my%20colleagues%20to%20check%20the%20quality%20of%20the%20soldered%20joints%20again%20during%20my%20holiday.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ER.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2322788%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2322788%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240378%22%20target%3D%22_blank%22%3E%40rrd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhat%20is%20the%20check%20result%20now%3F%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2323656%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2323656%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20and%20thank%20you%20for%20your%20enquiry.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EFirst%2C%20here%20are%20my%20hardware%20details%20again%3A%3C%2FP%3E%3CP%3EI%20have%20an%20imx8mp-phycore-som%20from%20phytec.%3C%2FP%3E%3CP%3EI%20would%20like%20to%20use%20it%20with%20an%20embeddedArtists%201YM%20module%20for%20PCIe.%20This%20worked%20without%20any%20problems%20in%20the%20old%20kernel%205.15.71.%3CBR%20%2F%3EHowever%2C%20during%20today's%20measurements%2C%20I%20noticed%20that%20the%20timing%20was%20not%20quite%20as%20it%20should%20be.%20I%20was%20just%20lucky%20that%20it%20still%20worked%20reliably%20back%20then.%3C%2FP%3E%3CP%3EIn%20the%20current%20BSP%20with%20kernel%206.6.23%2C%20I%20had%20problems%20implementing%20it%20in%20such%20a%20way%20that%20it%20could%20be%20used%20after%20a%20restart%20in%20the%20same%20way%20as%20after%20a%20complete%20shutdown.%20The%20problem%20was%20that%20after%20a%20restart%2C%20the%20message%20%E2%80%98Phy%20Link%20never%20came%20up%E2%80%99%20appeared%20and%20I%20couldn't%20get%20the%20WiFi%20module%20to%20work%20reliably.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EOver%20the%20last%20few%20days%2C%20I%20have%20been%20working%20intensively%20on%20getting%20everything%20to%20work%20with%20adjustments%20to%20the%20device%20tree%2C%20but%20I%20was%20unable%20to%20set%20the%20correct%20timing%20behaviour.%20I%20experimented%20with%20a%20fixed%20controller%20and%20tried%20various%20other%20things.%20At%20some%20point%2C%20I%20gave%20up%20and%20adapted%20the%20pci-imx6.c%20driver%20similar%20to%20kernel%205.15.71.%3CSPAN%20class%3D%22%22%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Ejust%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Ehad%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Elong%3C%2FSPAN%3E-%3CSPAN%20class%3D%22%22%3Eawaited%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Ebreakthrough%3C%2FSPAN%3E.%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EWhat%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Edid%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Eadded%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3EW_DISABLE1%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Epin%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Eas%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Egpio_desc%3C%2FSPAN%3E%20*%3CSPAN%20class%3D%22%22%3Epower_on_gpio%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Eto%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Eimx6_pcie%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Estructure%3C%2FSPAN%3E.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EIn%20imx6_pcie_host_init%2C%20this%20is%20set%20to%20high%20after%20the%20clock%20has%20been%20activated.%20If%20pcie%20PHY%20power%20up%20fails%2C%20it%20is%20set%20back%20to%20low.%20In%20the%20case%20of%20err_reg_disable%2C%20there%20is%20a%20100%20ms%20wait%20after%20disabling%20the%20regulator.%20In%20imx6_pcie_host_exit%2C%20power_on_gpio%20is%20also%20pulled%20low%20before%20disabling%20the%20clock.%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3EAfter%20disabling%20the%20regulator%2C%20there%20is%20another%20100%20ms%20wait.%20In%20imx6_pcie_probe%2C%20power_on_gpio%20is%20initialised%20and%20pulled%20low%20before%20the%20reset_gpio%20is%20handled.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EThis%20provides%20the%20necessary%20timing%20for%20the%20card%20to%20boot%20up%20cleanly.%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EBest%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3ER.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2324925%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2324925%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F202673%22%20target%3D%22_blank%22%3E%40pengyong_zhang%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eto%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ebe%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ehonest%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Edidn't%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Etry%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eadding%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eimx_pcie%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Epci%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eops%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Estop_link%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eimx_pcie%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Epci%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E)%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eto%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ecode%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3ELet%20me%20explain%20why%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EUsing%20the%20oscilloscope%2C%20I%20noticed%20that%20the%20levels%20of%20PERST0%23%20and%20W_DISABLE1%23%20gpios%20(pin%20labels%20of%20the%2088w8997)%20were%20not%20behaving%20as%20they%20should%20during%20the%20power-up%20sequence%20according%20to%20the%20data%20sheet.%20Therefore%2C%20I%20thought%20that%20imx_pcie-%26gt%3Bpci-%26gt%3Bops-%26gt%3Bstop_link(imx_pcie-%26gt%3Bpci)%20would%20not%20change%20this%20behaviour%20either.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3ER.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2325430%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2325430%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F202673%22%20target%3D%22_blank%22%3E%40pengyong_zhang%3C%2FA%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EYes%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ewill%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eprovide%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eyou%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ewith%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Epatch%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Elater%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E.%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EAfter%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Epatching%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eencounter%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Enext%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eproblem%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E.%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eam%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ecurrently%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Etrying%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eto%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Esolve%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethat%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E.%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EWhen%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Euse%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%20%E2%80%98%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Esystemctl%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Esuspend%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%E2%80%99%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eafter%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eapplying%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Emy%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Epatch%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Epcie%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ecurrently%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Edoes%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Enot%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eallow%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Esuspend%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Emode%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eanymore%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E.%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EIn%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eaddition%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Emoal%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Emodule%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eseems%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eto%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ehave%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eproblems%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eso%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethat%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Edevice%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eno%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Elonger%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Efunctions%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ecorrectly%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E.%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%5B%20%20%2075.372360%5D%20Filesystems%20sync%3A%200.014%20seconds%0A%5B%20%20%2075.377098%5D%20Freezing%20user%20space%20processes%0A%5B%20%20%2075.405396%5D%20Freezing%20user%20space%20processes%20completed%20(elapsed%200.024%20seconds)%0A%5B%20%20%2075.412472%5D%20OOM%20killer%20disabled.%0A%5B%20%20%2075.415717%5D%20Freezing%20remaining%20freezable%20tasks%0A%5B%20%20%2075.416862%5D%20Freezing%20remaining%20freezable%20tasks%20completed%20(elapsed%200.001%20seconds)%0A%5B%20%20%2075.427883%5D%20printk%3A%20Suspending%20console(s)%20(use%20no_console_suspend%20to%20debug)%0A%5B%20%20%2076.273062%5D%20wlan_pcie%200000%3A01%3A00.0%3A%20PM%3A%20pci_legacy_suspend()%3A%20woal_pcie_suspend%2B0x0%2F0x450%20%5Bmoal%5D%20returns%20-16%0A%5B%20%20%2076.273173%5D%20wlan_pcie%200000%3A01%3A00.0%3A%20PM%3A%20dpm_run_callback()%3A%20pci_pm_suspend%2B0x0%2F0x258%20returns%20-16%0A%5B%20%20%2076.273188%5D%20wlan_pcie%200000%3A01%3A00.0%3A%20PM%3A%20failed%20to%20suspend%20async%3A%20error%20-16%0A%5B%20%20%2076.274115%5D%20PM%3A%20Some%20devices%20failed%20to%20suspend%2C%20or%20early%20wake%20event%20detected%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3ER.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2325441%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2325441%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CP%3EIt%20seems%20to%20make%20a%20difference%20whether%20it%20is%20the%20first%20call%20to%20%E2%80%98systemctl%20suspend%E2%80%99%20after%20booting%20or%20a%20subsequent%20call.%3CBR%20%2F%3E%3CBR%20%2F%3Efirst%20call%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Esystemct%5B%20%20%2031.455442%5D%20Scan%20in%20progress%2C%20ignore%20ADDBA%20Request%20event%0Al%20suspend%0Aroot%40proto1-imx8mp-3%3A~%23%20%5B%20%20%2036.127317%5D%20IOCTL%20failed%3A%200000000051f95355%20id%3D0x10000%2C%20sub_id%3D0x10003%20action%3D1%2C%20status_code%3D0x80000007%0A%5B%20%20%2036.605028%5D%20PM%3A%20suspend%20entry%20(deep)%0A%5B%20%20%2036.644969%5D%20Filesystems%20sync%3A%200.036%20seconds%0A%5B%20%20%2036.652111%5D%20Freezing%20user%20space%20processes%0A%5B%20%20%2036.677562%5D%20Freezing%20user%20space%20processes%20completed%20(elapsed%200.021%20seconds)%0A%5B%20%20%2036.684580%5D%20OOM%20killer%20disabled.%0A%5B%20%20%2036.687827%5D%20Freezing%20remaining%20freezable%20tasks%0A%5B%20%20%2036.693613%5D%20Freezing%20remaining%20freezable%20tasks%20completed%20(elapsed%200.001%20seconds)%0A%5B%20%20%2036.701033%5D%20printk%3A%20Suspending%20console(s)%20(use%20no_console_suspend%20to%20debug)%0A%5B%20%20%2036.874932%5D%20PM%3A%20suspend%20devices%20took%200.160%20seconds%0A%5B%20%20%2036.895966%5D%20Disabling%20non-boot%20CPUs%20...%0A%5B%20%20%2036.896919%5D%20IRQ215%3A%20set%20affinity%20failed(-22).%0A%5B%20%20%2036.896946%5D%20IRQ234%3A%20set%20affinity%20failed(-22).%0A%5B%20%20%2036.897000%5D%20psci%3A%20CPU1%20killed%20(polled%200%20ms)%0A%5B%20%20%2036.898387%5D%20IRQ215%3A%20set%20affinity%20failed(-22).%0A%5B%20%20%2036.898417%5D%20IRQ234%3A%20set%20affinity%20failed(-22).%0A%5B%20%20%2036.899480%5D%20psci%3A%20CPU2%20killed%20(polled%200%20ms)%0A%5B%20%20%2036.900878%5D%20IRQ215%3A%20set%20affinity%20failed(-22).%0A%5B%20%20%2036.900906%5D%20IRQ234%3A%20set%20affinity%20failed(-22).%0A%5B%20%20%2036.900975%5D%20psci%3A%20CPU3%20killed%20(polled%200%20ms)%0A%5B%20%20%2036.901555%5D%20Enabling%20non-boot%20CPUs%20...%0A%5B%20%20%2036.901980%5D%20Detected%20VIPT%20I-cache%20on%20CPU1%0A%5B%20%20%2036.902013%5D%20GICv3%3A%20CPU1%3A%20found%20redistributor%201%20region%200%3A0x00000000388a0000%0A%5B%20%20%2036.902048%5D%20CPU1%3A%20Booted%20secondary%20processor%200x0000000001%20%5B0x410fd034%5D%0A%5B%20%20%2036.902722%5D%20CPU1%20is%20up%0A%5B%20%20%2036.903080%5D%20Detected%20VIPT%20I-cache%20on%20CPU2%0A%5B%20%20%2036.903099%5D%20GICv3%3A%20CPU2%3A%20found%20redistributor%202%20region%200%3A0x00000000388c0000%0A%5B%20%20%2036.903119%5D%20CPU2%3A%20Booted%20secondary%20processor%200x0000000002%20%5B0x410fd034%5D%0A%5B%20%20%2036.903612%5D%20CPU2%20is%20up%0A%5B%20%20%2036.903967%5D%20Detected%20VIPT%20I-cache%20on%20CPU3%0A%5B%20%20%2036.903987%5D%20GICv3%3A%20CPU3%3A%20found%20redistributor%203%20region%200%3A0x00000000388e0000%0A%5B%20%20%2036.904008%5D%20CPU3%3A%20Booted%20secondary%20processor%200x0000000003%20%5B0x410fd034%5D%0A%5B%20%20%2036.904574%5D%20CPU3%20is%20up%0A%5B%20%20%2037.113209%5D%20imx6q-pcie%2033800000.pcie%3A%20PCIe%20Gen.1%20x1%20link%20up%0A%5B%20%20%2037.113227%5D%20imx6q-pcie%2033800000.pcie%3A%20PCIe%20Gen.1%20x1%20link%20up%0A%5B%20%20%2037.113231%5D%20imx6q-pcie%2033800000.pcie%3A%20Link%20up%2C%20Gen1%0A%5B%20%20%2037.477842%5D%20xhci-hcd%20xhci-hcd.1.auto%3A%20xHC%20error%20in%20resume%2C%20USBSTS%200x401%2C%20Reinit%0A%5B%20%20%2037.477858%5D%20usb%20usb1%3A%20root%20hub%20lost%20power%20or%20was%20reset%0A%5B%20%20%2037.477863%5D%20usb%20usb2%3A%20root%20hub%20lost%20power%20or%20was%20reset%0A%5B%20%20%2037.479659%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20xHC%20error%20in%20resume%2C%20USBSTS%200x401%2C%20Reinit%0A%5B%20%20%2037.479672%5D%20usb%20usb3%3A%20root%20hub%20lost%20power%20or%20was%20reset%0A%5B%20%20%2037.479677%5D%20usb%20usb4%3A%20root%20hub%20lost%20power%20or%20was%20reset%0A%5B%20%20%2037.485549%5D%20woal_cancel_hs%3A%20woal_set_get_hs_params%20failed%20%0A%5B%20%20%2040.676053%5D%20wlan_wakeup_card_timeout_func%3A%20ps_state%3D3%0A%5B%20%20%2040.676071%5D%20mlan0%3A%20%0A%5B%20%20%2040.676076%5D%20Wakeup%20card%20timeout(0)!%0A%5B%20%20%2043.748025%5D%20wlan_wakeup_card_timeout_func%3A%20ps_state%3D3%0A%5B%20%20%2043.748037%5D%20mlan0%3A%20%0A%5B%20%20%2043.748042%5D%20Wakeup%20card%20timeout(1)!%0A%5B%20%20%2046.820338%5D%20wlan_wakeup_card_timeout_func%3A%20ps_state%3D3%0A%5B%20%20%2046.820343%5D%20mlan0%3A%20%0A%5B%20%20%2046.820345%5D%20Wakeup%20card%20timeout(2)!%0A%5B%20%20%2046.820365%5D%20Driver%20version%20%3D%20PCIE8997--16.92.21.p119.3-MM6X16437.p3-GPL-(FP92)%20%0A%5B%20%20%2046.820368%5D%20main_state%20%3D%203%0A%5B%20%20%2046.820370%5D%20ioctl_pending%20%3D%202%0A%5B%20%20%2046.820372%5D%20tx_pending%20%3D%200%0A%5B%20%20%2046.820374%5D%20wmm_tx_pending%5B0%5D%20%3D%200%0A%5B%20%20%2046.820375%5D%20wmm_tx_pending%5B1%5D%20%3D%200%0A%5B%20%20%2046.820377%5D%20wmm_tx_pending%5B2%5D%20%3D%200%0A%5B%20%20%2046.820379%5D%20wmm_tx_pending%5B3%5D%20%3D%200%0A%5B%20%20%2046.820381%5D%20rx_pending%20%3D%200%0A%5B%20%20%2046.820383%5D%20lock_count%20%3D%2085%0A%5B%20%20%2046.820385%5D%20malloc_count%20%3D%2053%0A%5B%20%20%2046.820387%5D%20mbufalloc_count%20%3D%2040%0A%5B%20%20%2046.820389%5D%20malloc_cons_count%20%3D%204%0A%5B%20%20%2046.820391%5D%20hs_skip_count%20%3D%200%0A%5B%20%20%2046.820392%5D%20hs_force_count%20%3D%200%0A%5B%20%20%2046.820395%5D%20Media%20state%20%3D%20%22Disconnected%22%0A%5B%20%20%2046.820397%5D%20carrier%20off%0A%5B%20%20%2046.820399%5D%20tx%20queue%200%3A%20started%0A%5B%20%20%2046.820401%5D%20tx%20queue%201%3A%20started%0A%5B%20%20%2046.820404%5D%20tx%20queue%202%3A%20started%0A%5B%20%20%2046.820406%5D%20tx%20queue%203%3A%20started%0A%5B%20%20%2046.820408%5D%20mlan0%3A%20num_tx_timeout%20%3D%200%0A%5B%20%20%2046.820411%5D%20uap0%3A%20num_tx_timeout%20%3D%200%0A%5B%20%20%2046.820414%5D%20wfd0%3A%20num_tx_timeout%20%3D%200%0A%5B%20%20%2046.820429%5D%20reg%3A0x00%20value%3D0x2b421b4b%0A%5B%20%20%2046.820437%5D%20reg%3A0x04%20value%3D0x00100406%0A%5B%20%20%2046.820444%5D%20reg%3A0x10%20value%3D0x1810000c%0A%5B%20%20%2046.820451%5D%20reg%3A0x18%20value%3D0x1820000c%0A%5B%20%20%2046.820459%5D%20reg%3A0x2c%20value%3D0x00000000%0A%5B%20%20%2046.820466%5D%20reg%3A0x3c%20value%3D0x000001d6%0A%5B%20%20%2046.820473%5D%20reg%3A0x44%20value%3D0x00000008%0A%5B%20%20%2046.820480%5D%20reg%3A0x80%20value%3D0x10110040%0A%5B%20%20%2046.820487%5D%20reg%3A0x98%20value%3D0x00000000%0A%5B%20%20%2046.820494%5D%20reg%3A0x170%20value%3D0x0001001e%0A%5B%20%20%2046.820501%5D%20reg%3A0xcf0%20value%3D0x0%0A%5B%20%20%2046.820505%5D%20reg%3A0xcf8%20value%3D0x0%0A%5B%20%20%2046.820510%5D%20reg%3A0xcfc%20value%3D0x0%0A%5B%20%20%2046.922213%5D%20reg%3A0xcf8%20value%3D0x0%0A%5B%20%20%2046.922218%5D%20reg%3A0xcfc%20value%3D0x0%0A%5B%20%20%2047.024390%5D%20IOCTL%20failed%3A%2000000000bf55be26%20id%3D0x90000%2C%20sub_id%3D0x90002%20action%3D1%2C%20status_code%3D0x80000007%0A%5B%20%20%2047.024400%5D%20IOCTL%20failed%3A%2000000000860dac8e%20id%3D0x90000%2C%20sub_id%3D0x9000b%20action%3D2%2C%20status_code%3D0x80000007%0A%5B%20%20%2047.024475%5D%20woal_reset_intf%3A%20get%20bss%20info%20failed%20%0A%5B%20%20%2047.024708%5D%20woal_cfg80211_resume%3A%20get_wakeup_reason%20failed%20%0A%5B%20%20%2047.038449%5D%20PM%3A%20resume%20devices%20took%209.916%20seconds%0A%5B%20%20%2047.149089%5D%20woal_close%3A%20woal_disconnect%20failed%20%0A%5B%20%20%2047.482813%5D%20OOM%20killer%20enabled.%0A%5B%20%20%2047.485971%5D%20Restarting%20tasks%20...%20done.%0A%5B%20%20%2047.491474%5D%20random%3A%20crng%20reseeded%20on%20system%20resumption%0A%5B%20%20%2047.509369%5D%20PM%3A%20suspend%20exit%0A%5B%20%20%2047.577420%5D%20TI%20DP83867%2030be0000.ethernet-1%3A00%3A%20attached%20PHY%20driver%20(mii_bus%3Aphy_addr%3D30be0000.ethernet-1%3A00%2C%20irq%3DPOLL)%0A%5B%20%20%2047.862373%5D%20Failed%20to%20poll%20FW%20reset%20register%20CF4%3D0x99%0A%5B%20%20%2047.867447%5D%20PCIe%20In-band%20Reset%20Fail%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Ein%20the%20first%20call%20suspend%20state%20seems%20to%20be%20reached%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Esecond%20call%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Esystemctl%20suspend%0Aroot%40proto1-imx8mp-3%3A~%23%20%5B%20%20336.385651%5D%20PM%3A%20suspend%20entry%20(deep)%0A%5B%20%20336.395071%5D%20Filesystems%20sync%3A%200.005%20seconds%0A%5B%20%20336.401641%5D%20Freezing%20user%20space%20processes%0A%5B%20%20336.423851%5D%20Freezing%20user%20space%20processes%20completed%20(elapsed%200.018%20seconds)%0A%5B%20%20336.434189%5D%20OOM%20killer%20disabled.%0A%5B%20%20336.437425%5D%20Freezing%20remaining%20freezable%20tasks%0A%5B%20%20336.443190%5D%20Freezing%20remaining%20freezable%20tasks%20completed%20(elapsed%200.001%20seconds)%0A%5B%20%20336.450619%5D%20printk%3A%20Suspending%20console(s)%20(use%20no_console_suspend%20to%20debug)%0A%5B%20%20337.296053%5D%20wlan_pcie%200000%3A01%3A00.0%3A%20PM%3A%20pci_legacy_suspend()%3A%20woal_pcie_suspend%2B0x0%2F0x450%20%5Bmoal%5D%20returns%20-16%0A%5B%20%20337.296169%5D%20wlan_pcie%200000%3A01%3A00.0%3A%20PM%3A%20dpm_run_callback()%3A%20pci_pm_suspend%2B0x0%2F0x258%20returns%20-16%0A%5B%20%20337.296185%5D%20wlan_pcie%200000%3A01%3A00.0%3A%20PM%3A%20failed%20to%20suspend%20async%3A%20error%20-16%0A%5B%20%20337.297108%5D%20PM%3A%20Some%20devices%20failed%20to%20suspend%2C%20or%20early%20wake%20event%20detected%0A%5B%20%20337.333014%5D%20PM%3A%20resume%20devices%20took%200.036%20seconds%0A%5B%20%20337.393024%5D%20OOM%20killer%20enabled.%0A%5B%20%20337.396177%5D%20Restarting%20tasks%20...%20done.%0A%5B%20%20337.401318%5D%20random%3A%20crng%20reseeded%20on%20system%20resumption%0A%5B%20%20337.406568%5D%20PM%3A%20suspend%20exit%0A%5B%20%20337.409658%5D%20PM%3A%20suspend%20entry%20(s2idle)%0A%5B%20%20337.662584%5D%20Filesystems%20sync%3A%200.249%20seconds%0A%5B%20%20337.667273%5D%20Freezing%20user%20space%20processes%0A%5B%20%20337.692910%5D%20Freezing%20user%20space%20processes%20completed%20(elapsed%200.021%20seconds)%0A%5B%20%20337.699890%5D%20OOM%20killer%20disabled.%0A%5B%20%20337.703116%5D%20Freezing%20remaining%20freezable%20tasks%0A%5B%20%20337.708889%5D%20Freezing%20remaining%20freezable%20tasks%20completed%20(elapsed%200.001%20seconds)%0A%5B%20%20337.716317%5D%20printk%3A%20Suspending%20console(s)%20(use%20no_console_suspend%20to%20debug)%0A%5B%20%20338.560058%5D%20wlan_pcie%200000%3A01%3A00.0%3A%20PM%3A%20pci_legacy_suspend()%3A%20woal_pcie_suspend%2B0x0%2F0x450%20%5Bmoal%5D%20returns%20-16%0A%5B%20%20338.560177%5D%20wlan_pcie%200000%3A01%3A00.0%3A%20PM%3A%20dpm_run_callback()%3A%20pci_pm_suspend%2B0x0%2F0x258%20returns%20-16%0A%5B%20%20338.560192%5D%20wlan_pcie%200000%3A01%3A00.0%3A%20PM%3A%20failed%20to%20suspend%20async%3A%20error%20-16%0A%5B%20%20338.560805%5D%20PM%3A%20Some%20devices%20failed%20to%20suspend%2C%20or%20early%20wake%20event%20detected%0A%5B%20%20338.594530%5D%20PM%3A%20resume%20devices%20took%200.032%20seconds%0A%5B%20%20338.654823%5D%20OOM%20killer%20enabled.%0A%5B%20%20338.657981%5D%20Restarting%20tasks%20...%20done.%0A%5B%20%20338.662955%5D%20random%3A%20crng%20reseeded%20on%20system%20resumption%0A%5B%20%20338.668201%5D%20PM%3A%20suspend%20exit%0A%5B%20%20338.695157%5D%20TI%20DP83867%2030be0000.ethernet-1%3A00%3A%20attached%20PHY%20driver%20(mii_bus%3Aphy_addr%3D30be0000.ethernet-1%3A00%2C%20irq%3DPOLL)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EHowever%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eafter%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ewaking%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eup%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eand%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ere%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eexecuting%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Esystemctl%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Esuspend%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%2C%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethis%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eis%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Enot%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ethe%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ecase%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2325309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2325309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240378%22%20target%3D%22_blank%22%3E%40rrd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20I%20mentioned%20before%2C%20I%20still%20cannot%20reproduce%20your%20issue%20on%20my%20i.MX8MP%20EVK%20board.%20With%20your%20changes%2C%20you%20can%20now%20reboot%20the%20PCIe%20device%20after%20running%20the%20reboot%20command%2C%20correct%3F%20If%20so%2C%20could%20you%20please%20share%20your%20code%20patch%3F%20Thanks.%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2324877%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2324877%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240378%22%20target%3D%22_blank%22%3E%40rrd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGlad%20to%20hear%20that%2C%20but%20have%20you%20tried%20the%20code%20patch%20in%20pci-imx6.c%20file%26nbsp%3Bimx_pcie_shutdown%20I%20provided%3F%20What%20were%20the%20test%20results%3F%3C%2FP%3E%0A%3CPRE%3E%20if%20(imx_pcie-%26gt%3Bpci%20%26amp%3B%26amp%3B%20imx_pcie-%26gt%3Bpci-%26gt%3Bops%20%26amp%3B%26amp%3B%20imx_pcie-%26gt%3Bpci-%26gt%3Bops-%26gt%3Bstop_link)%20%7B%3CBR%20%2F%3Edev_info(%26amp%3Bpdev-%26gt%3Bdev%2C%20%22%25s%3A%20stopping%20PCIe%20link%5Cn%22%2C%20__func__)%3B%3CBR%20%2F%3Eimx_pcie-%26gt%3Bpci-%26gt%3Bops-%26gt%3Bstop_link(imx_pcie-%26gt%3Bpci)%3B%3CBR%20%2F%3E%7D%20else%20%7B%3CBR%20%2F%3Edev_warn(%26amp%3Bpdev-%26gt%3Bdev%2C%20%22%25s%3A%20stop_link%20not%20available%5Cn%22%2C%20__func__)%3B%3CBR%20%2F%3E%7D%3C%2FPRE%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2326777%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326777%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F202673%22%20target%3D%22_blank%22%3E%40pengyong_zhang%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3Ei%20don't%20use%20'systemctl%20suspend'%20to%20apply%20the%20patch.%20One%20of%20the%20mandatory%20requirements%20is%20that%20the%20device%20must%20be%20able%20to%20enter%20and%20exit%20suspend%20mode%20without%20any%20problems.%26nbsp%3BFor%20this%20reason%2C%20I%20tested%20this%20and%20found%20that%20my%20previous%20patch%20was%20causing%20problems.%20Before%20the%20patch%2C%20it%20was%20possible%20to%20go%20into%20suspend%20mode.%20Therefore%2C%20it%20must%20be%20due%20to%20my%20change.%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3ER.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2326668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240378%22%20target%3D%22_blank%22%3E%40rrd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhy%20are%20you%20use%20%22%3CSPAN%20class%3D%22%22%3Esystemctl%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3Esuspend%3C%2FSPAN%3E%22%20command%20apple%20the%20patch%3F%20you%20can%20re-compile%20the%20kernel%20Image%20and%20re-boot%20your%20board.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAnd%20I%20haven't%20received%20your%20patch%20file.%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20pci-imx6%20how%20to%20reset%20completely%20during%20reboot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240378%22%20target%3D%22_blank%22%3E%40rrd%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20re-create%20a%20new%20case%20talk%20about%20your%20question%3F%20And%20Please%20describe%20the%20latest%20status.%20Since%20I%20am%20unable%20to%20reproduce%20your%20issue%20here%2C%20I%20will%20contact%20our%20internal%20team%20in%20a%20new%20case%20to%20continue%20supporting%20your%20issue.%20Thanks%20for%20your%20understanding.%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E