[Skiboot] [PATCH v4 1/2] phb4: set PHB CMPM registers for tunneled operations
christophe lombard
clombard at linux.vnet.ibm.com
Mon Jan 22 21:11:16 AEDT 2018
Le 10/01/2018 à 15:47, Philippe Bergheaud a écrit :
> P9 supports PCI tunneled operations (atomics and as_notify) that require
> setting the PHB ASN Compare/Mask register with a 16-bit indication.
>
> This register is currently initialized by enable_capi_mode(). But, as
> tunneled operations may also work in PCI mode, the ASN Compare/Mask
> register should rather be initialized in phb4_init_ioda3().
>
> This patch also adds "ibm,phb-indications" to the device tree, to tell
> Linux the values of CAPI, ASN, and NBW indications, when supported.
>
> Signed-off-by: Philippe Bergheaud <felix at linux.vnet.ibm.com>
> Reviewed-by: Frederic Barrat <fbarrat at linux.vnet.ibm.com>
> ---
> Changelog:
>
> v2: Do not let Linux choose indication values.
> Let skiboot tell Linux via the device tree.
> Initialize the PHB ASN indication in PCI mode.
>
> v3: No functional change.
> Drop cosmetic fixes in comments.
>
> v4: No change.
> ---
> hw/phb4.c | 28 +++++++++++++++++++++-------
> include/phb4-regs.h | 4 ++--
> 2 files changed, 23 insertions(+), 9 deletions(-)
>
Reviewed-by: Christophe Lombard clombard at linux.vnet.ibm.com
More information about the Skiboot
mailing list