MPC8641D PCI-Express problem
Hi,
do you remember my problem with the pci-express? I have an mpc8641d_hpcn (rev. 2.0) board connected via pci-express with the Xilinx ML555 evaluation board. I'm using the 2.6.24 kernel. I'm observing this strange behavior:
1) I turn on the board and I stop the U-boot
2) I load the FPGA microcode
3) I start the system
4) I load the driver module and I read a version register in the FPGA
5) The system crashes with a "machine check exception: transfer error ack signal"
6) reboot
7) same procedure (without load the FPGA again)
8) now I can read the registers!
If I repeat the procedure again it doesn't work anymore. I think it's a problem with pci-express controller. Have you got any suggestions?
Thanks.
Marco
Quoted 13 lines · Marco Stornelli
Hi,
do you remember my problem with the pci-express? I have an
mpc8641d_hpcn(rev. 2.0) board connected via pci-express with the Xilinx ML555 evaluation board. I'm using the 2.6.24 kernel. I'm observing this strange behavior:1) I turn on the board and I stop the U-boot
2) I load the FPGA microcode
3) I start the system
4) I load the driver module and I read a version register in the FPGA
5) The system crashes with a "machine check exception: transfer error ack signal"
6) reboot
7) same procedure (without load the FPGA again)
8) now I can read the registers!
Quoted 3 lines
If I repeat the procedure again it doesn't work anymore. I think it's a problem with pci-express controller. Have you got any suggestions?
Thanks.
Where are you loading the FPGA microcode (linux, u-boot)? Also, is the FPGA the only device connected over PCIe?
- k
Kumar Gala ha scritto:
Quoted 15 lines · Marco Stornelli
Quoted 13 lines
Hi,
do you remember my problem with the pci-express? I have an
mpc8641d_hpcn(rev. 2.0) board connected via pci-express with the Xilinx ML555 evaluation board. I'm using the 2.6.24 kernel. I'm observing this strange behavior:1) I turn on the board and I stop the U-boot
2) I load the FPGA microcode
3) I start the system
4) I load the driver module and I read a version register in the FPGA
5) The system crashes with a "machine check exception: transfer error ack signal"
6) reboot
7) same procedure (without load the FPGA again)
8) now I can read the registers!
Quoted 8 lines
Quoted 3 lines
If I repeat the procedure again it doesn't work anymore. I think it's a problem with pci-express controller. Have you got any suggestions?
Thanks.
Where are you loading the FPGA microcode (linux, u-boot)? Also, is the FPGA the only device connected over PCIe?
- k
I load the FPGA with JTAG and with a Xilinx program without a specific linux driver or u-boot. Yes, it is the only device connected over PCIe.
\Marco
I Need to Reset a PPC405EP PCI Bridge From a Kernel Driver Without Reboot
Hello,
I have a peculiar problem dealing with an mPCI wireless network card on an AMCC405EP based system (spin-off of a Taihu). The task is to load the FPGA firmware in the card, reset the PCI card (to reset an ASIC, get it to reload from EEPROM but without resetting the PowerPC and of course without clearing the firmware in the FPGA), then to rescan (using a fake hotplug scheme) to find the PCI device, then finally upload a secondary firmware file to a flash device on the card.
I need this for two reasons. One is to solve a chicken-and-egg type problem to recover a failed radio card after a botched up upgrade. The other is to avoid reboots (and wasted time per radio card) as they are programmed and calibrated in a jig on a manufacturing production line.
I tried setting and then clearing the CPC0_SRR (software reset register) bit to reset the PCI bridge. I think that this wipes out the PCI bus completely. Since PCI is initialized by U-Boot, the kernel doesn't appear to know what to do. I get a data machine check oops at the point where the device drivers load up and start.
I tried simply saving the 16 words of PCIL0 register content before toggling the SRR bit, and then restoring them afterwards. No difference. Next I notice a whole bank of configuration registers and am wondering just what needs to explicitly be preserved.
Before I go into saving and restoring more registers, or cloning the 4xx_pci.c code from u-Boot into my fake hotplug rescan driver to reinitialize the PCI subsystem, does anyone have suggestions?
Regards,
Darcy
Quoted 15 lines · Marco Stornelli
Kumar Gala ha scritto:
Quoted 14 lines · Marco Stornelli
Quoted 13 lines
Hi,
do you remember my problem with the pci-express? I have an
mpc8641d_hpcn(rev. 2.0) board connected via pci-express with the Xilinx ML555 evaluation board. I'm using the 2.6.24 kernel. I'm observing this strange behavior:1) I turn on the board and I stop the U-boot
2) I load the FPGA microcode
3) I start the system
4) I load the driver module and I read a version register in the FPGA
5) The system crashes with a "machine check exception: transfer error ack signal"
6) reboot
7) same procedure (without load the FPGA again)
8) now I can read the registers!
Quoted 6 lines
Quoted 5 lines
Quoted 3 lines
If I repeat the procedure again it doesn't work anymore. I think it's a problem with pci-express controller. Have you got any suggestions?
Thanks.
Where are you loading the FPGA microcode (linux, u-boot)? Also, is the FPGA the only device connected over PCIe?
- kI load the FPGA with JTAG and with a Xilinx program without a specific linux driver or u-boot. Yes, it is the only device connected over PCIe.
The issue may be related to the PCIe link training. Are you able to access the FPGA in u-boot? Can you try reseting the PCIe controller after you've loaded up the FPGA (see u-boot code in drivers/pci/fsl_pci_init.c and look for CONFIG_FSL_PCIE_RESET)
- k
Quoted 34 lines · Marco Stornelli
Quoted 24 lines
Kumar Gala ha scritto:
Quoted 23 lines · Marco Stornelli
Quoted 22 lines
Hi,
do you remember my problem with the pci-express? I have an
mpc8641d_hpcn(rev. 2.0) board connected via pci-express with the Xilinx ML555 evaluation board. I'm using the 2.6.24 kernel. I'm observing this strange behavior:1) I turn on the board and I stop the U-boot
2) I load the FPGA microcode
3) I start the system
4) I load the driver module and I read a version register in the FPGA
5) The system crashes with a "machine check exception: transfer error ack signal"
6) reboot
7) same procedure (without load the FPGA again)
8) now I can read the registers!If I repeat the procedure again it doesn't work anymore. I think it's a problem with pci-express controller. Have you got any suggestions?
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Thanks.
Where are you loading the FPGA microcode (linux, u-boot)? Also, is the FPGA the only device connected over PCIe?
- kI load the FPGA with JTAG and with a Xilinx program without a specific linux driver or u-boot. Yes, it is the only device connected over PCIe.
Quoted 7 lines
The issue may be related to the PCIe link training. Are you able to access the FPGA in u-boot? Can you try reseting the PCIe controller after you've loaded up the FPGA (see u-boot code in
drivers/pci/fsl_pci_init.cand look forCONFIG_FSL_PCIE_RESET)- k
Ok I can try but I'm using the U-Boot 1.3.0 provided by Freescale with the board, so I have to change the firmware, updating the U-Boot to the version 1.3.2 to use CONFIG_FSL_PCIE_RESET. However, I've had the same idea, but I check (with a warning) this case in the kernel function fsl_check_pcie_link() (where the kernel check the value of LTSSM) but I've never seen the warning during the start-up.