[Skiboot] [PATCH] capi: Mask Psl Credit timeout error for P9

Andrew Donnellan andrew.donnellan at au1.ibm.com
Wed Sep 6 19:22:19 AEST 2017

On 05/09/17 21:45, Stewart Smith wrote:
> This looks like a prime candidate for xscom_write_mask() that Alistair
> introduced in:
> commit e3f7d42c77bfc3b899d3d636b372e1292b790656
> Author: Alistair Popple <alistair at popple.id.au>
> Date:   Fri Aug 4 14:15:19 2017 +1000
>      xscom: Add xscom_write_mask() function
>      It is common for xscom registers to only contain specific bit fields that
>      need to be modified without altering the rest of the register. This adds a
>      convenience function to perform xscom read-modify-write operations under a
>      mask.

Hmm, I wonder if Coccinelle could help here...

Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com  IBM Australia Limited

More information about the Skiboot mailing list