open-power / pdbg

PowerPC FSI Debugger
Apache License 2.0
17 stars 39 forks source link

cater for moving ocmb out of proc in device tree - WILL WORK ON THIS IN P11 TIME FRAME - NOW PARKING #85

Closed devenrao closed 7 months ago

devenrao commented 8 months ago

1) As present ocmb is added under proc chip even though ocmb is a chip itself.

2) Moved ocmb out of proc chip as it needs to use its own pib and iic bus

3) cater for moving ocmb out of proc chip in device tree

4) Ensured that ddr4 ocmb targets still use proc pib, fsi bus

Tested: i------------kernel pib read----------- PDBG:Translating target addr 0x50001 -> 0x50001 on /proc0/ocmb2 PDBG:pib_read_helper[158]: rc = 0, addr = 0x0000000000050001, data = 0x80c0000200000000, target = /proc0/ocmb2 ody kernel pib read address 0x50001 orig value 0x80c0000200000000 rc =0

-----ocmb ddr5 getscom -------------- get_backend_target FOUND classs sbefifo-ody index = 0x2 ocmb index = 0x2 odyssesy chip ocmb_getscom ocmb index=2 addr= c0002040 orig value 0x4001000a000640 ret 0

-------------cfam------------------------------- PDBG:Translating target addr 0x2804 -> 0x2804 on /hmfsi-ody@810 PDBG:Failed to read from 0x00002810 (0000000000002804) PDBG:fsi_read_helper[314]: rc = 6, addr = 0x02804, data = 0x10000010, target = /hmfsi-ody@810

--------------dump & ffdc----------------------- sucessfully collected dump data len is 20184 sbefifo_op_ody_ffdc_get calling fsi_ody_read PDBG:Translating target addr 0x2809 -> 0x2809 on /hmfsi-ody@110 PDBG:fsi_read_helper[312]: rc = 0, addr = 0x02809, data = 0x9133603f, target = /hmfsi-ody@110

Change-Id: Icf9bbee5f5f47659ae005777d21bd8c8bc60ea39