Skip to content

Commit

Permalink
Need to clear OCB3 errors before a PBA operation
Browse files Browse the repository at this point in the history
Change-Id: Iaa7246b82bc490222162ef74011db78bc8631e23
CQ:SW405593
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48647
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Reviewed-by: Benjamin Gass <bgass@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48649
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
  • Loading branch information
ibmthi authored and sgupta2m committed Oct 26, 2017
1 parent 204fab9 commit e15c80a
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -199,11 +199,14 @@ extern "C"

//Write the OCB3 Status Control Register
//Configure linear stream mode (auto-increment +8 with each data register read/write)
//set bit 4 and unset bit 5 of OCB3 Status Control Register
ocb_status_ctl_data.flush<0>().setBit<5>();
// Set bits 0:1 to clear PULL_READ_UNDERFLOW and PUSH_WRITE_OVERFLOW
// Set bit 5 to clear stream type (enables linear mode)
// Set bits 6:15 to clear other errors
ocb_status_ctl_data.flush<0>().setBit<0, 2>().setBit<5, 11>();
FAPI_TRY(fapi2::putScom(i_target, PU_OCB_PIB_OCBCSR3_CLEAR,
ocb_status_ctl_data),
"Error writing to the OCB3 Status Control Register with and mask");
// Set bit 4 to enable stream mode
ocb_status_ctl_data.flush<0>().setBit<4>();
FAPI_TRY(fapi2::putScom(i_target, PU_OCB_PIB_OCBCSR3_OR,
ocb_status_ctl_data),
Expand Down

0 comments on commit e15c80a

Please sign in to comment.