Kernel oops when initializing ethernet driver
Hi,
Quoted 8 lines
Quoted 1 line
Interestingly, the kernel only crashes when accessing that one
particular
Quoted 2 lines
register (at offset
0x0040). Every other register in that range can be written to and read from w/o problems.So that sounds like a hardware problem, doesn't it. This is one of those things where the FPGA has a hard PPC core and a bunch of VHDL peripherals?
Yes, exactly. The peripherals are connected to the PPC core via the OPB (on-chip peripheral bus) and now I must assume that the address decode / "chip" select logic within that OPB is buggy or not configured right.
Quoted 3 lines
The good thing there is that the VHDL isn't much harder to fix than C code. That would be my wild guess - the VHDL is not decoding the address correctly.
I don't even know if we have the VHDL source - the peripherals are ready-to-go logic units that are just inserted in the FPGA design.
Quoted 3 lines
However, also check that you are not accidentally writing past
0x0040. For instance, if0x0040is a byte address and you write 16 bits you'll be writing to0x0040and0x0041.
It is a 32-bit access at 0x0040.
Thanks,
Patrick
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hi Patrick,
Quoted 10 lines · Patrick Huesmann
Hi,
Quoted 7 lines
Quoted 1 line
Interestingly, the kernel only crashes when accessing that one
particular
Quoted 2 lines
register (at offset
0x0040). Every other register in that range can be written to and read from w/o problems.
Quoted 9 lines
Quoted 3 lines
So that sounds like a hardware problem, doesn't it. This is one of those things where the FPGA has a hard PPC core and a bunch of VHDL peripherals?
Yes, exactly. The peripherals are connected to the PPC core via the OPB (on-chip peripheral bus) and now I must assume that the address decode / "chip" select logic within that OPB is buggy or not configured right.
AFAIK Xilinx recommends to use PLB version of the ethernet controller. For performance reasons at least.
Quoted 9 lines
Quoted 4 lines
The good thing there is that the VHDL isn't much harder to fix than C code. That would be my wild guess - the VHDL is not decoding the address correctly.
I don't even know if we have the VHDL source - the peripherals are ready-to-go logic units that are just inserted in the FPGA design.
Do you use EDK to build your design?
Quoted 11 lines
Quoted 4 lines
However, also check that you are not accidentally writing past
0x0040. For instance, if0x0040is a byte address and you write 16 bits you'll be writing to0x0040and0x0041.It is a 32-bit access at
0x0040.Thanks,
Patrick
In your kernel boot messages do you see a line similar to:
eth0: Xilinx EMAC #0 at 0x60000000 mapped to 0xC9015000, irq=30
Is the physical address in your log the one you expect?
Best regards,
Andrei
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 52 lines
Hi Patrick,
Quoted 11 lines · Patrick Huesmann
Hi,
Quoted 8 lines
Quoted 1 line
Interestingly, the kernel only crashes when accessing that one
particular
Quoted 2 lines
register (at offset
0x0040). Every other register in that range can be written to and read from w/o problems.So that sounds like a hardware problem, doesn't it. This is one of
those
Quoted 8 lines
Quoted 2 lines
things where the FPGA has a hard PPC core and a bunch of VHDL peripherals?
Yes, exactly. The peripherals are connected to the PPC core via the OPB (on-chip peripheral bus) and now I must assume that the address decode / "chip" select logic within that OPB is buggy or not configured right.
AFAIK Xilinx recommends to use PLB version of the ethernet controller. For performance reasons at least.
Quoted 9 lines
Quoted 4 lines
The good thing there is that the VHDL isn't much harder to fix than C code. That would be my wild guess - the VHDL is not decoding the address correctly.
I don't even know if we have the VHDL source - the peripherals are ready-to-go logic units that are just inserted in the FPGA design.
Do you use EDK to build your design?
Quoted 11 lines
Quoted 4 lines
However, also check that you are not accidentally writing past
0x0040. For instance, if0x0040is a byte address and you write 16 bits you'll be writing to0x0040and0x0041.It is a 32-bit access at
0x0040.Thanks,
PatrickIn your kernel boot messages do you see a line similar to:
Quoted 8 lines
eth0: Xilinx EMAC #0 at
0x60000000mapped to0xC9015000, irq=30Is the physical address in your log the one you expect?
Best regards,
Andrei
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/