Skip to content

Commit

Permalink
Use a unique class name for ody perv target
Browse files Browse the repository at this point in the history
If the compatible property and the class name for both proc processor and
odyssey processor is same, then we need to check everywhere if that is a chiplet
under a proc or under a odyssey. Having a unique name solves the issue.

Signed-off-by: Deepa Karthikeyan <[email protected]>
  • Loading branch information
deepakala-k committed Feb 5, 2024
1 parent fae88a6 commit 3744dea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libpdbg/p10_fapi_targets.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,17 @@ static struct chiplet p10_chiplet = {
};
DECLARE_HW_UNIT(p10_chiplet);

static struct chiplet ody_chiplet = {
.target = {
.name = "POWER10 Ody Chiplet",
.compatible = "ibm,ody-chiplet",
.class = "ody_chiplet",
.translate = translate_cast(p10_chiplet_translate),
},
.getring = p10_chiplet_getring,
};
DECLARE_HW_UNIT(ody_chiplet);

static uint64_t no_translate(struct pdbg_target *target, uint64_t addr)
{
/* No translation performed */
Expand Down Expand Up @@ -658,6 +669,7 @@ static void register_p10_fapi_targets(void)
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_pauc_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_pau_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_chiplet_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &ody_chiplet_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_fc_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_smpgroup_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_mem_port_hw_unit);
Expand Down

0 comments on commit 3744dea

Please sign in to comment.