Part Number: J784S4XEVM
Hi experts,
I am continuing this post : J784S4XEVM: PCIe RC enable BAR 0 crash - Processors forum - Processors - TI E2E support forums
Last answer was "it is not expected for BAR registers to change at runtime for RC "
But even if I config the BAR 0 from the device tree, it still crash.
pcie0_rc: pcie@2900000 {
compatible = "ti,j784s4-pcie-host";
reg = <0x00 0x02900000 0x00 0x1000>,
<0x00 0x02907000 0x00 0x400>,
<0x00 0x0d000000 0x00 0x00800000>,
<0x00 0x10000000 0x00 0x00001000>,
<0x40 0x00000000 0x01 0x00000000>;
reg-names = "intd_cfg", "user_cfg", "reg", "cfg";
interrupt-names = "link_state";
interrupts = <GIC_SPI 318 IRQ_TYPE_EDGE_RISING>;
device_type = "pci";
ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x0>;
max-link-speed = <3>;
num-lanes = <4>;
power-domains = <&k3_pds 332 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 332 0>;
clock-names = "fck";
#address-cells = <3>;
#size-cells = <2>;
bus-range = <0x0 0xff>;
vendor-id = <0x104c>;
device-id = <0xb012>;
msi-map = <0x0 &gic_its 0x0 0x10000>;
dma-coherent;
ranges = <0x02000000 0x0 0x10001000 0x0 0x10001000 0x0 0x7fff000>,
<0x42000000 0x40 0x0 0x40 0x0 0x1 0x0>;
dma-ranges = <0x02000000 0x0 0xa8000000 0x0 0xa8000000 0x0 0x10000>,
<0x02000000 0x0 0xA9000000 0x0 0xa9000000 0x0 0x10000>; /* doesn't crash if I remove this line */
status = "disabled";
};
If I remove the second dma-range entry, (which config the BAR0) it doesn't crash.
I have patch the driver to use the BAR 0 when dma-range have only 1 entry. It still crashes
Every following cases crash :
- BAR 0 32b pref
- BAR 0 32b non-pref
- BAR 0 64b pref
- BAR 1 + BAR 0
Am I missing something ?
Have you successed on your side to enable BAR 0 + BAR 1 ?
Thanks for your help
Charles