hw/phb3: fix error handling in complete reset
hw/phb3: fix error handling in complete reset

During a complete reset, when we get a timeout waiting for pending
transaction in state PHB3_STATE_CRESET_WAIT_CQ, we mark the PHB as
permanently broken.

Set the state to PHB3_STATE_FENCED so that the kernel can retry the
complete reset.

Reported-by: Pradipta Ghosh <9899d8b6567f3d9bca3026513de28746f68be44f@in.ibm.com>
Suggested-by: Gavin Shan <0398910e4f4970259b451f0f9d0686cc5e961b81@linux.vnet.ibm.com>
Signed-off-by: Andrew Donnellan <efc2d7c347a094a6ec1d918179e819039044c564@au1.ibm.com>
Acked-by: Gavin Shan <0398910e4f4970259b451f0f9d0686cc5e961b81@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

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