phb4/capp: Update DMA read engines set in APC_FSM_READ_MASK based on link-width
phb4/capp: Update DMA read engines set in APC_FSM_READ_MASK based on link-width

Commit 47c09cdfe7a3("phb4/capp: Calculate STQ/DMA read engines based
on link-width for PEC") update the CAPP init sequence by calculating
the needed STQ/DMA-read engines based on link width and populating it
in XPEC_NEST_CAPP_CNTL register. This however needs to be synchronized
with the value set in CAPP APC FSM Read Machine Mask Register.

Hence this patch update phb4_init_capp_regs() to calculate the link
width of the stack on PEC2 and populate the same values as previously
populated in PEC CAPP_CNTL register.

Cc: stable # v5.7+
Fixes: 47c09cdfe7a3("phb4/capp: Calculate STQ/DMA read engines based on link-width for PEC")
Signed-off-by: Vaibhav Jain <e78384dfaa97bf0f3945c4da4075af8ac33ade0a@linux.ibm.com>
Reviewed-by: Andrew Donnellan <efc2d7c347a094a6ec1d918179e819039044c564@au1.ibm.com>
Reviewed-by: Frederic Barrat <c90240987c583ac0802fbeb88cb1684edc683e18@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.ibm.com>

legoater/skiboot,open-power/skiboot,open-power/skiboot,stewart-ibm/skiboot,legoater/skiboot,legoater/skiboot,legoater/skiboot,stewart-ibm/skiboot,qemu/skiboot,shenki/skiboot,shenki/skiboot,shenki/skiboot,open-power/skiboot,qemu/skiboot,legoater/skiboot,open-power/skiboot,qemu/skiboot,shenki/skiboot,stewart-ibm/skiboot,qemu/skiboot,open-power/skiboot,qemu/skiboot,shenki/skiboot