Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get & put scom, getcfam, dump and ffdc support with sbefifo and kernel backend #80

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

devenrao
Copy link
Contributor

@devenrao devenrao commented Dec 7, 2023

No description provided.

Copy link
Contributor

@Swarnendu-R-C Swarnendu-R-C left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions and few queries

bmc-kernel.dts.m4 Show resolved Hide resolved
libpdbg/dtb.c Show resolved Hide resolved
libpdbg/dtb.c Outdated Show resolved Hide resolved
libpdbg/target.c Show resolved Hide resolved
libpdbg/target.c Show resolved Hide resolved
libpdbg/target.c Show resolved Hide resolved
libpdbg/target.c Show resolved Hide resolved
libpdbg/target.c Show resolved Hide resolved
libpdbg/target.c Outdated Show resolved Hide resolved
libpdbg/target.c Outdated Show resolved Hide resolved
@devenrao devenrao changed the title getscom, putscom, getcfam support with sbefifo and kernel backend get & putscom, getcfam, dump and ffdc support with sbefifo and kernel backend Dec 12, 2023
@devenrao devenrao changed the title get & putscom, getcfam, dump and ffdc support with sbefifo and kernel backend get & put scom, getcfam, dump and ffdc support with sbefifo and kernel backend Dec 12, 2023
bmc-sbefifo.dts.m4 Show resolved Hide resolved
libpdbg/target.c Show resolved Hide resolved
libpdbg/target.c Outdated Show resolved Hide resolved
libpdbg/target.c Show resolved Hide resolved
libpdbg/target.c Outdated Show resolved Hide resolved
libpdbg/sbefifo.c Show resolved Hide resolved
libpdbg/sbe_api.c Outdated Show resolved Hide resolved
libpdbg/sbe_api.c Show resolved Hide resolved
libpdbg/sbe_api.c Show resolved Hide resolved
1) Uses the device path configured in the bmc backend device
tree to perform get and put scom on odyssey ddr5 chip

2) Checks attribute chip-id of the ocmb target  to differentiate
between ddr4 and ddr5 ocmb chips for get/put scom

3) For ddr4 ocmb targets parent proc sbefifo device path is used
for get/put scom

4) For ddr5 ocmb targets its corresponding sbefifo device path is
used for get/put scom

Tested:
root@ever6bmc:/tmp# getscom odyssey c0002040 -pall
odyssey k0:n0:s0:p02       0x0040010002000640
odyssey k0:n0:s0:p03       0x0040010002000640
odyssey k0:n0:s0:p34       0x0040010002000640
odyssey k0:n0:s0:p35       0x0040010002000640
/usr/bin/edbg getscom odyssey c0002040 -pall

Change-Id: I2a82812adf32a308dd4695d57548b39955afc31f
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
1) Uses the device path configured in the kernel backend device
tree to perform get and put scom on odyssey ddr5 chip

2) Checks attribute chip-id of the ocmb target to differentiate
between ddr4 and ddr5 ocmb chips for get/put scom

4) For ddr5 ocmb targets its corresponding scom device path is
used for get/put scom

4) For cfam i2c target path configured in the backend device tree
is used.

Tested:
test get/putscom
1) At present noticing kernel panic at kernel_pib_getscom method
   need to debug further.

test - getcfam
get_ody_fsi_target ocmb_proc 2 ocmb_index 3
kernel_fsi_probe fsi_path set is /i2cr311/slave@00:00/raw
get_ody_fsi_target ocmb_proc 2 ocmb_index 3
kernel_fsi_getcfam address 02804
kernel_fsi_getcfam value 010000010
PDBG:fsi_ody_read[383]: rc = 0, addr = 0x02804, data = 0x10000010, target =
/hmfsi-ody@311
ody kernel pib read address 0x2804 value 0x10000010

Change-Id: Ia768e375e4a190c328b6fa71ba7bff6a195c26e5
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
1) Modify backend dts file to add fsi targets as they
are used as part of getting ffdc

2) Added new chipop for odyssey target which caters for
dump and ffdc

Tested
get_backend_target class_name chipop-ody ocmb_proc 0 ocmb_index 3
get_backend_target class_name fsi-ody ocmb_proc 0 ocmb_index 3
get_backend_target class_name chipop-ody ocmb_proc 0 ocmb_index 3
**sucessfully collected dump data len is 20184
before calling sbe_ody_ffdc_get
PDBG:fsi_ody_read[382]: rc = 0, addr = 0x02809, data = 0x9133603f, target = /hmfsi-ody@111
**status of ffdc_get is 0 ffdc_len 0

Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Change-Id: Ieb21eef8c18344e9dae5e7f9c7acf0db60eced9e
@dhruvibm
Copy link
Collaborator

looks good

@aravynd aravynd merged commit 944045b into open-power:master Dec 14, 2023
1 check passed
@devenrao devenrao deleted the ody branch December 21, 2023 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants