Skip to content

Commit

Permalink
NPU target addr translation fixes
Browse files Browse the repository at this point in the history
Change-Id: Ic78e81ac8cadff392eb2f78d335c1e3523862236
RTC: 202524
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78913
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
  • Loading branch information
cnpalmer authored and marthabroyles committed Jun 13, 2019
1 parent fb4b3eb commit e5a2afd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/occ_gpe0/firdata/scom_util.c
Expand Up @@ -303,6 +303,7 @@ int32_t translate_addr( SCOM_Trgt_t i_trgt, uint64_t i_addr, uint64_t * o_addr )
uint8_t l_chiplet_id = ( 2 == l_chip_unit_num ) ? N1_CHIPLET_ID : N3_CHIPLET_ID ;
set_chiplet_id( l_chiplet_id, o_addr );
uint8_t l_sat_id = get_sat_id( i_addr );
uint8_t l_ring = get_ring(i_addr) & 0xF;

// Covers the following addresses:
// NPU0: 05011000 to 050113FF
Expand Down
8 changes: 8 additions & 0 deletions src/occ_gpe0/firdata/scom_util.h
Expand Up @@ -89,6 +89,14 @@ typedef enum
P9A_MC_USTL_CHAN3_SAT_ID = 0xB, ///< USTL registers channel 3
} p9a_mc_sat_id_t;

typedef enum
{
N3_NPU_0_RING_ID = 0x5,
P9A_NPU_2_RING_ID = 0x7,
P9A_NPU_2_FIR_RING_ID = 0x8,
P9A_NPU_0_FIR_RING_ID = 0xF,
} p9a_npu_ring_id_t;

/** @brief Performs a hardware scom on a regular register.
* @param i_trgt The SCOM target.
* @param i_addr 32-bit SCOM address.
Expand Down

0 comments on commit e5a2afd

Please sign in to comment.