baseband/acc100: fix PMon register values
Enabled the PMon for ACC100 properly.
Previous commit was missing actual implementation
and using incorrect register values.
Fixes: b4bd57b74c
("baseband/acc100: configure PMON control registers")
Signed-off-by: Hernan Vargas <hernan.vargas@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
parent
0cdecf4774
commit
31f79cb518
@ -146,8 +146,8 @@ static const struct acc100_registry_addr pf_reg_addr = {
|
||||
.depth_log1_offset = HWPfQmgrGrpDepthLog21Vf,
|
||||
.qman_group_func = HWPfQmgrGrpFunction0,
|
||||
.ddr_range = HWPfDmaVfDdrBaseRw,
|
||||
.pmon_ctrl_a = HWVfPmACntrlRegVf,
|
||||
.pmon_ctrl_b = HWVfPmBCntrlRegVf,
|
||||
.pmon_ctrl_a = HWPfPermonACntrlRegVf,
|
||||
.pmon_ctrl_b = HWPfPermonBCntrlRegVf,
|
||||
};
|
||||
|
||||
/* Structure holding registry addresses for VF */
|
||||
@ -177,6 +177,8 @@ static const struct acc100_registry_addr vf_reg_addr = {
|
||||
.depth_log1_offset = HWVfQmgrGrpDepthLog21Vf,
|
||||
.qman_group_func = HWVfQmgrGrpFunction0Vf,
|
||||
.ddr_range = HWVfDmaDdrBaseRangeRoVf,
|
||||
.pmon_ctrl_a = HWVfPmACntrlRegVf,
|
||||
.pmon_ctrl_b = HWVfPmBCntrlRegVf,
|
||||
};
|
||||
|
||||
#endif /* _RTE_ACC100_PMD_H_ */
|
||||
|
@ -479,6 +479,11 @@ acc100_setup_queues(struct rte_bbdev *dev, uint16_t num_queues, int socket_id)
|
||||
/* Read the populated cfg from ACC100 registers */
|
||||
fetch_acc100_config(dev);
|
||||
|
||||
for (value = 0; value <= 2; value++) {
|
||||
acc_reg_write(d, reg_addr->pmon_ctrl_a, value);
|
||||
acc_reg_write(d, reg_addr->pmon_ctrl_b, value);
|
||||
}
|
||||
|
||||
/* Release AXI from PF */
|
||||
if (d->pf_device)
|
||||
acc_reg_write(d, HWPfDmaAxiControl, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user