[lx2160a] boot fail when SRDS_PRTCL_S2=10

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

[lx2160a] boot fail when SRDS_PRTCL_S2=10

1,143 Views
DohwanAhn
Contributor II

We attached 1G phy to sedes 2 lane2, and attached PCIE interface to lane4/5. Changed SRDS_PRTCL_S2=5 to SRDS_PRTCL_S2=10 in RCW for sedes2 protocol configuration. I download the image after building, I don't see any logs. Changing it to SRDS_PRTCL_S2=5 boots normally. Are there any parts of the source code or script that need to be modified? Is this combination unusable? I look forward to your opinion. thank you

0 Kudos
9 Replies

1,118 Views
yipingwang
NXP TechSupport
NXP TechSupport

For SerDes2 protocols 10 the user has to remove all workarounds for PEX3 - i.e. should be:

 

/*PCIe Errata A-009531*/

#include <../lx2160asi/a009531_PEX5.rcw>

 

/*PCIe Errata A-008851*/

#include <../lx2160asi/a008851_PEX5.rcw>

 

/*SerDes Errata A-050479*/

#include <../lx2160asi/a050479_PEX5.rcw>

0 Kudos

1,042 Views
DohwanAhn
Contributor II

Thank you for answer.
We were late debugging due to memory issues.
It worked as instructed and booted normally.

[RCW file]

/*PCIe Errata A-009531*/
/*#include <../lx2160asi/a009531_PEX4.rcw>*/
#include <../lx2160asi/a009531_PEX5.rcw>

/*PCIe Errata A-008851*/
/*#include <../lx2160asi/a008851_PEX4.rcw>*/
#include <../lx2160asi/a008851_PEX5.rcw>


However, PICE doesn't seem to work normally.
Below is the work done on U-BOOT and KERNEL.
Do I need to make more changes elsewhere?

[U-BOOT log]

PCIe0: pcie@3400000 disabled
PCIe1: pcie@3500000 disabled
PCIe2: pcie@3600000 disabled
PCIe3: pcie@3700000 Root Complex: no link
PCIe4: pcie@3800000 Root Complex: no link
PCIe5: pcie@3900000 disabled

=> pci 3
Scanning PCI devices on bus 3
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
03.00.00 0x1957 0x8d80 Bridge device 0x04

 

=> pci 5
Scanning PCI devices on bus 5
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
05.00.00 0x1957 0x8d80 Bridge device 0x04

 

[kernel log]

root@localhost:~# lspci
lspci: sysfs_scan: Invalid domain ffffffff

 

Thanks,

0 Kudos

1,038 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please try the following RCW configuration.

/*PCIe Errata A-009531*/
#include <../lx2160asi/a009531_PEX4.rcw>
#include <../lx2160asi/a009531_PEX5.rcw>

/*PCIe Errata A-008851*/
#include <../lx2160asi/a008851_PEX4.rcw>
#include <../lx2160asi/a008851_PEX5.rcw>

/*SerDes Errata A-050479*/
#include <../lx2160asi/a050479_PEX4.rcw>
#include <../lx2160asi/a050479_PEX5.rcw>

0 Kudos

1,034 Views
DohwanAhn
Contributor II

No files related to Errata A-050479.

/*SerDes Errata A-050479*/
#include <../lx2160asi/a050479_PEX4.rcw>
#include <../lx2160asi/a050479_PEX5.rcw>

////////

We use the TAG under /packages/firmware .

[Tag Info]
rcw_repo_tag=LSDK-20.04-update-290520
uboot_repo_tag=LSDK-20.04-update-290520
atf_repo_tag=LSDK-20.04-update-290520

 

[Note]

I've tried excluding Errata A-050479.
The result is the same.

 

Thanks,

Dohwan

 

0 Kudos

1,017 Views
yipingwang
NXP TechSupport
NXP TechSupport

Are you using lx2160a rev2 processor?

Please try the following PBI commands configuration.

/*PCIe Errata A-009531*/
#include <../lx2160asi/a009531_PEX4.rcw>
#include <../lx2160asi/a009531_PEX5.rcw>

/*PCIe Errata A-008851*/
#include <../lx2160asi/a008851_PEX4.rcw>
#include <../lx2160asi/a008851_PEX5.rcw>

Have you tried whether PCIe worked normally when configuring 

SRDS_PRTCL_S2=5 in RCW?

0 Kudos

1,006 Views
DohwanAhn
Contributor II

We use lx2150ardb rev2 chipset. And it's a custom board.
We use SRDS_PRTCL_S2=10 in RCW.
SRDS_PRTCL_S3 is set to 2, so PCIE.5 seems to be enabled.
So, SRDS_PRTCL_S3 was set to 0 to turn it OFF, and We change that only PEX4 was used in RCW
We see the information of lspci. but We can't see external device after rescan command in lspci log)

I have a several questions as below :
1. Can SR-IOV and NON SR-IOV be used together as a ROOT COMPLEX?
2. PCIe.1/2/4/6 as ROOT COMPLEX are NON SR-IOV. Is communication possible when the external device is SR-IOV?

Thanks,
Dohwan

0 Kudos

998 Views
yipingwang
NXP TechSupport
NXP TechSupport

1. Yes. We can insert a SR-IOV PCIe device and NON SR-IOV PCIe device into the same Root Complex at the same time via PCIe switch. Both PCIe device can work.

 

2. Yes. SR-IOV is a device feature. SR-IOV or NON-SRIOV the the feature for the EP mode .

 

0 Kudos

993 Views
DohwanAhn
Contributor II

sorry, we use bridge mode same as lsdk default mode .
Is it work to virtualization ?

|             Host                 |                               |      Device     |
---------------------------------                               ---------------------
| PCIE.4 (Non-SR-IOV)  |   <----------------->   |    (SR-IOV)   |


Thanks,
Dohwan

0 Kudos

963 Views
yipingwang
NXP TechSupport
NXP TechSupport

Would you please create a new thread for your PCIe issue?

0 Kudos