summaryrefslogtreecommitdiffstats
path: root/import
diff options
context:
space:
mode:
authorCHRISTINA L. GRAVES <clgraves@us.ibm.com>2015-10-28 17:05:54 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2015-11-25 05:58:48 -0600
commit7fa10a8349945dd219746149666cd32499911eac (patch)
tree04ba344445328fe3b51fd23f51aa46de4b1f6ac4 /import
parent39dde2d1a9cc3099090291bc73632312c3e49c36 (diff)
downloadtalos-sbe-7fa10a8349945dd219746149666cd32499911eac.tar.gz
talos-sbe-7fa10a8349945dd219746149666cd32499911eac.zip
Changing data inputs from 64 to 8-bit array and adding firstGranule
Change-Id: I583570ef970fcc03a0a6f9dfd30098a5150b3cd3 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21682 Tested-by: Jenkins Server Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Tested-by: Thi N. Tran <thi@us.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22321 Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import')
-rw-r--r--import/chips/p9/procedures/hwp/nest/p9_sbe_load_bootloader.C8
1 files changed, 6 insertions, 2 deletions
diff --git a/import/chips/p9/procedures/hwp/nest/p9_sbe_load_bootloader.C b/import/chips/p9/procedures/hwp/nest/p9_sbe_load_bootloader.C
index ba7f934f..55e5ac94 100644
--- a/import/chips/p9/procedures/hwp/nest/p9_sbe_load_bootloader.C
+++ b/import/chips/p9/procedures/hwp/nest/p9_sbe_load_bootloader.C
@@ -55,7 +55,7 @@ fapi2::ReturnCode p9_sbe_load_bootloader(
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_master_chip_target,
const fapi2::Target<fapi2::TARGET_TYPE_EX>& i_master_ex_target,
const uint64_t i_payload_size,
- uint64_t* i_payload_data)
+ uint8_t* i_payload_data)
{
const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM> FAPI_SYSTEM;
uint64_t l_bootloader_offset;
@@ -64,6 +64,7 @@ fapi2::ReturnCode p9_sbe_load_bootloader(
uint64_t l_chip_base_address_m;
uint64_t l_target_address;
uint64_t l_payload_data_offset;
+ bool firstAccess = true;
FAPI_DBG("Start");
@@ -119,6 +120,8 @@ fapi2::ReturnCode p9_sbe_load_bootloader(
PBA_HWP_FLAGS,
l_num_cachelines_to_roll), "Error from p9_pba_setup");
+ firstAccess = true;
+
// call PBA access HWP per cacheline to move payload data
while (l_num_cachelines_to_roll &&
(l_target_address < (l_chip_base_address_nm + i_payload_size)))
@@ -127,11 +130,12 @@ fapi2::ReturnCode p9_sbe_load_bootloader(
l_target_address,
PBA_HWP_WRITE_OP,
PBA_HWP_FLAGS,
+ firstAccess,
(l_num_cachelines_to_roll == 1) ||
((l_target_address + FABRIC_CACHELINE_SIZE) >
(l_chip_base_address_nm + i_payload_size)),
i_payload_data + l_payload_data_offset), "Error from p9_pba_access");
-
+ firstAccess = false;
// decrement count of cachelines remaining in current stream
l_num_cachelines_to_roll--;
OpenPOWER on IntegriCloud