diff options
author | Thi Tran <thi@us.ibm.com> | 2011-07-14 13:49:28 -0500 |
---|---|---|
committer | Thi N. Tran <thi@us.ibm.com> | 2011-07-21 09:44:19 -0500 |
commit | f8db3532fc97a0f97d89ee97e85be4d9c81a1c54 (patch) | |
tree | 1fdb4bba6868e3fa7971abd54ae2288c0afeed8c /src/usr/hwpf/hwp | |
parent | 471f09f1a9bcc46fc385fa8aca776cb682075c0b (diff) | |
download | talos-hostboot-f8db3532fc97a0f97d89ee97e85be4d9c81a1c54.tar.gz talos-hostboot-f8db3532fc97a0f97d89ee97e85be4d9c81a1c54.zip |
Update addresses used in XSCOM/HWPF test cases to work in VBU
Disable XSCOM and HWPF test cases so automated test doesn't fail
Added XSCOM address in trace
Re-enable XSCOM and HWPF test cases to be used with new fips build
Change to backing build b0720a_1132.750 & fix test cases failure
Change-Id: Iac54bdcde54d2d8168455e1f51f6ff309f14918f
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/200
Tested-by: Jenkins Server
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp')
-rw-r--r-- | src/usr/hwpf/hwp/fapiTestHwp.C | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/usr/hwpf/hwp/fapiTestHwp.C b/src/usr/hwpf/hwp/fapiTestHwp.C index 2a7e2fae7..b37bdd49a 100644 --- a/src/usr/hwpf/hwp/fapiTestHwp.C +++ b/src/usr/hwpf/hwp/fapiTestHwp.C @@ -33,16 +33,21 @@ fapi::ReturnCode hwpIsP7EM0ChipletClockOn(const fapi::Target & i_chip, // Attempt to call the attribute get/set functions for the test attributes fapi::ReturnCode l_rc; + // ----------------------------------------------------------------------- + // NOTE: @TODO + // There's no EM0 in P8. + // Must use core 3 clock status register to work in current VBU model + // ----------------------------------------------------------------------- // Constants - const uint64_t EM_CLOCK_STATUS_MASK = 0xEEC0000000000000ULL; - const uint32_t EM0_CHIPLET_BASE_ADDR = 0x06000000; + const uint64_t EX_CLOCK_STATUS_MASK = 0xEEC0000000000000ULL; + const uint32_t EX3_CHIPLET_BASE_ADDR = 0x13000000; const uint32_t CHIPLET_CLOCK_ON_SCOM_ADDR = 0x00030008; // Set caller's result to default o_clocksOn = false; // Figure out the scom address and create a 64 bit data buffer - uint32_t l_addr = (EM0_CHIPLET_BASE_ADDR | CHIPLET_CLOCK_ON_SCOM_ADDR); + uint32_t l_addr = (EX3_CHIPLET_BASE_ADDR | CHIPLET_CLOCK_ON_SCOM_ADDR); ecmdDataBufferBase l_data(64); // Perform a GetScom operation on the chip @@ -50,18 +55,18 @@ fapi::ReturnCode hwpIsP7EM0ChipletClockOn(const fapi::Target & i_chip, if (l_rc != fapi::FAPI_RC_SUCCESS) { - FAPI_ERR("hwpIsP7EM0ChipletClockOn: Error from GetScomChip"); + FAPI_ERR("hwpIsP8EX3ChipletClockOn: Error from GetScomChip"); } else { - if (!(l_data.getDoubleWord(0) & EM_CLOCK_STATUS_MASK)) + if (!(l_data.getDoubleWord(0) & EX_CLOCK_STATUS_MASK)) { - FAPI_INF("hwpIsP7EM0ChipletClockOn: Clocks are on"); + FAPI_INF("hwpIsP8EX3ChipletClockOn: Clocks are on"); o_clocksOn = true; } else { - FAPI_INF("hwpIsP7EM0ChipletClockOn: Clocks are off"); + FAPI_INF("hwpIsP8EX3ChipletClockOn: Clocks are off"); } } |