From fc79c535382d9ca609059d39076121dea33c28d8 Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Fri, 18 May 2018 12:37:34 -0500 Subject: Add test case for getChildTargetsForCDG Some changes are coming to the getChildTargetsForCDG interface in regards to how it returns DIMM information. Get a unit test in place for this function so the future changes can be verified. Change-Id: I731841598f35a169c6dfbbdd873c07dc37d27273 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59072 Reviewed-by: Martin Gloff Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/include/usr/fapi2/hwpf_fapi2_reasoncodes.H | 1 + src/include/usr/fapi2/plat_utils.H | 24 +++++++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) (limited to 'src/include/usr/fapi2') diff --git a/src/include/usr/fapi2/hwpf_fapi2_reasoncodes.H b/src/include/usr/fapi2/hwpf_fapi2_reasoncodes.H index 4ab4a3abb..24aa4767d 100644 --- a/src/include/usr/fapi2/hwpf_fapi2_reasoncodes.H +++ b/src/include/usr/fapi2/hwpf_fapi2_reasoncodes.H @@ -65,6 +65,7 @@ namespace fapi2 MOD_FAPI2_GET_PLL_BUCKET = 0x16, MOD_FAPI2_GET_RING = 0x17, MOD_FAPI2_SET_ATTR_FREQ_MCA_MHZ = 0x18, + MOD_FAPI2_PLAT_GET_PROC_TEST = 0x19, }; /** diff --git a/src/include/usr/fapi2/plat_utils.H b/src/include/usr/fapi2/plat_utils.H index 753d937d6..4295b119e 100644 --- a/src/include/usr/fapi2/plat_utils.H +++ b/src/include/usr/fapi2/plat_utils.H @@ -107,11 +107,33 @@ ReturnCode platSpecialWakeup( const Target& i_target, /// template ReturnCode get_ring(fapi2::Target i_target, - const RingId_t i_ringId, + const RingId_t i_ringId, unsigned char *&o_ringData, uint64_t &o_ringLength, uint64_t &o_ringAddress); +/// +/// @brief Returns child targets to Callout/Deconfigure/GARD +/// +/// @param[i] i_parentTarget FAPI2 Parent Target +/// @param[i] i_childType FAPI2 Child Type +/// @param[i] i_childPort Child Port Number +/// For DIMMs: MBA Port Number +/// Else unused +/// @param[i] i_childNum Child Number +/// For DIMMs: DIMM Socket Number +/// For Chips: Chip Position +/// For Chiplets: Chiplet Position +/// @param[o] o_childTargets List of child targets matching input +// criteria. +/// +void getChildTargetsForCDG( + const fapi2::Target& i_parentTarget, + const fapi2::TargetType i_childType, + const uint8_t i_childPort, + const uint8_t i_childNum, + TARGETING::TargetHandleList & o_childTargets); + } // End namespace fapi2 -- cgit v1.2.1