[Skiboot] [PATCH 1/7] npu2-opencapi: Rework ODL register access

Frederic Barrat fbarrat at linux.ibm.com
Tue Mar 12 22:12:19 AEDT 2019



Le 12/03/2019 à 10:21, christophe lombard a écrit :
> On 01/03/2019 14:52, Frederic Barrat wrote:
>> ODL registers used to control the opencapi link state have an address
>> built on a base address and an offset for each brick which can be
>> computed instead of hard-coded individually for each brick.
>> Rework how we access the ODL registers, to avoid repeating switch
>> statements all over the place.
>>
>> Signed-off-by: Frederic Barrat <fbarrat at linux.ibm.com>
>> ---
>>   hw/npu2-hw-procedures.c |  17 +------
>>   hw/npu2-opencapi.c      | 109 ++++------------------------------------
>>   include/npu2-regs.h     |  30 ++++-------
>>   3 files changed, 21 insertions(+), 135 deletions(-)
>>
> 
> why do not move the definition of these scom registers
> to xscom-p9-regs.h ?
> May be with the development of opencapi4.

We discussed it with Christophe. It would make sense for the FBC 
registers and avoid duplication for future hardware. Christophe will fix 
it later.

   Fred



More information about the Skiboot mailing list