[Skiboot] [PATCH] capi: CAPP recovery

Vaibhav Jain vaibhav at linux.vnet.ibm.com
Mon Sep 18 16:13:05 AEST 2017


Hi Christophe,

Minor review comments:

Christophe Lombard <clombard at linux.vnet.ibm.com> writes:
> +
> +	xscom_read(p->chip_id, CAPP_ERR_STATUS_CTRL + offset, &reg);
> +	reg &= ~(PPC_BIT(0) | PPC_BIT(1));
> +	xscom_write(p->chip_id, CAPP_ERR_STATUS_CTRL + offset, reg);
Please use xscom_write_mask instead.

>  	/* Transport Control Register */
> @@ -3532,6 +3555,7 @@ static void phb4_init_capp_regs(struct phb4 *p)
>  		reg |= PPC_BIT(11); /* Set CI Store Buffer Threshold=5 */
>  		reg |= PPC_BIT(13); /* Set CI Store Buffer Threshold=5 */
>  	}
> +	reg |= PPC_BIT(15);
>  	reg &= ~PPC_BITMASK(14, 17); /* Set Max LPC CI store buffer to zeros */
And mask is resetting the BIT(15). Also should field be set to b0101 as
per workbook.

-- 
Vaibhav Jain <vaibhav at linux.vnet.ibm.com>
Linux Technology Center, IBM India Pvt. Ltd.



More information about the Skiboot mailing list