diff options
Diffstat (limited to 'src/occ_405/amec/amec_amester.c')
-rwxr-xr-x | src/occ_405/amec/amec_amester.c | 118 |
1 files changed, 1 insertions, 117 deletions
diff --git a/src/occ_405/amec/amec_amester.c b/src/occ_405/amec/amec_amester.c index 55a9cca..21e5265 100755 --- a/src/occ_405/amec/amec_amester.c +++ b/src/occ_405/amec/amec_amester.c @@ -5,7 +5,7 @@ /* */ /* OpenPOWER OnChipController Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2018 */ +/* Contributors Listed Below - COPYRIGHT 2011,2019 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -706,9 +706,7 @@ uint8_t amester_manual_throttle( const IPMIMsg_t * i_msg, /* Local variables */ /*------------------------------------------------------------------------*/ uint8_t l_rc,temp1,temp2; - uint16_t l_resp_length = *io_resp_length; uint16_t i,j,cc,idx,temp16; - uint16_t k; uint32_t temp32a; uint32_t *temp32; /*------------------------------------------------------------------------*/ @@ -717,38 +715,6 @@ uint8_t amester_manual_throttle( const IPMIMsg_t * i_msg, switch (i_msg->au8CmdData_ptr[0]) { - case 0x03: // CPU(s) Present Bit Mask - // The CPU Present Bit Mask is now being generated by the - // PROC component of OCC. - - // Check length - if(l_resp_length < 2) - { - l_rc = COMPCODE_PARAM_OUT_OF_RANGE; - break; - } - - o_resp[0] = CONVERT_UINT32_UINT8_UPPER_HIGH( G_present_hw_cores); - o_resp[1] = CONVERT_UINT32_UINT8_UPPER_LOW( G_present_hw_cores); - *io_resp_length = 2; - l_rc = COMPCODE_NORMAL; - break; - - case 0x04: // Get last throttle value sent to CPU 0. DEPRECATED. - *io_resp_length = 0; - l_rc = COMPCODE_PARAM_OUT_OF_RANGE; - break; - - case 0x05: // Get AME enable/disable flag (old style interface...do not use), no support - *io_resp_length = 0; - l_rc = COMPCODE_PARAM_OUT_OF_RANGE; - break; - - case 0x06: // Get new PTVR (Power Threshold Vector Request), no support - *io_resp_length = 0; - l_rc = COMPCODE_PARAM_OUT_OF_RANGE; - break; - case 0x07: // Write individual AME parameters switch (i_msg->au8CmdData_ptr[1]) { @@ -784,33 +750,6 @@ uint8_t amester_manual_throttle( const IPMIMsg_t * i_msg, break; }; - case 22: // parameter 22: Analytics parameters - { - g_amec->analytics_group=i_msg->au8CmdData_ptr[2]; // Set group - g_amec->analytics_chip=i_msg->au8CmdData_ptr[3]; // Select which chip to analyze - g_amec->analytics_option=i_msg->au8CmdData_ptr[4]; // Select which option - g_amec->analytics_total_chips=i_msg->au8CmdData_ptr[5]; // Select total number of chips - g_amec->analytics_slot=i_msg->au8CmdData_ptr[6]; // Select time slot to read data - o_resp[0]=i_msg->au8CmdData_ptr[2]; - o_resp[1]=i_msg->au8CmdData_ptr[3]; - o_resp[2]=i_msg->au8CmdData_ptr[4]; - o_resp[3]=i_msg->au8CmdData_ptr[5]; - o_resp[4]=i_msg->au8CmdData_ptr[6]; - *io_resp_length=5; - l_rc = COMPCODE_NORMAL; - break; - } - - case 23: // parameter 23: CPM calibration parameters - { - // g_amec->cpms_enabled=i_msg->au8CmdData_ptr[2]; // Enable CPMs - o_resp[0]=i_msg->au8CmdData_ptr[2]; - *io_resp_length=1; - l_rc = COMPCODE_NORMAL; - break; - } - - case 29: // parameter 29: Control vector recording modes and stream rates. { g_amec->stream_vector_rate=255; // First step is to set an invalid rate so no recording done at all @@ -820,24 +759,6 @@ uint8_t amester_manual_throttle( const IPMIMsg_t * i_msg, g_amec->stream_vector_delay=(uint32_t)CONVERT_UINT8_ARRAY_UINT16(i_msg->au8CmdData_ptr[7],i_msg->au8CmdData_ptr[8]); g_amec->stream_vector_mode=i_msg->au8CmdData_ptr[2]; // Choose mode - switch (g_amec->stream_vector_group) - { - case 45: //group 45 decimal (amec_analytics support) - g_amec->stream_vector_map[0]=0; // Leave space for 250usec time stamp - k = 1; - for (i=0; i<=(STREAM_VECTOR_SIZE_EX-2); i++) - { - g_amec->stream_vector_map[k++] = &g_amec->analytics_array[i]; - } - //gpEMP->stream_vector_map[64]=(void *) 0xffffffff; // Termination of partial vector - g_amec->analytics_group=45; - g_amec->analytics_bad_output_count=2; // drop first 2 frames of output - break; - - default: - break; - } - // Final step is to set a valid rate to begin recording at g_amec->stream_vector_rate=i_msg->au8CmdData_ptr[3]; // Choose stream rate g_amec->recordflag=1; // Recording is now valid @@ -846,15 +767,6 @@ uint8_t amester_manual_throttle( const IPMIMsg_t * i_msg, break; } - case 64: // support for THREADMODE group 44 recording - g_amec->analytics_threadmode=i_msg->au8CmdData_ptr[2]; - g_amec->analytics_threadcountmax=i_msg->au8CmdData_ptr[3]; - o_resp[0]=i_msg->au8CmdData_ptr[2]; - o_resp[1]=i_msg->au8CmdData_ptr[3]; - *io_resp_length=2; - l_rc = COMPCODE_NORMAL; - break; - default: *io_resp_length = 0; l_rc = COMPCODE_PARAM_OUT_OF_RANGE; @@ -897,27 +809,6 @@ uint8_t amester_manual_throttle( const IPMIMsg_t * i_msg, break; }; - case 22: // parameter 22: Analytics parameters - o_resp[0]=g_amec->analytics_group; - o_resp[1]=g_amec->analytics_chip; - o_resp[2]=g_amec->analytics_option; - o_resp[3]=g_amec->analytics_total_chips; - o_resp[4]=g_amec->analytics_slot; - *io_resp_length=5; - l_rc = COMPCODE_NORMAL; - break; - - case 23: // parameter 23: CPM parameters - // o_resp[0]=g_amec->cpms_enabled; - // o_resp[1]=g_amec->cpm_active_core; - // o_resp[2]=g_amec->cpm_cal_state; - // o_resp[3]=g_amec->cpm_core_state; - // o_resp[4]=g_amec->cpm_measure_state; - // o_resp[5]=g_amec->cpm_cal_count; - *io_resp_length=6; - l_rc = COMPCODE_NORMAL; - break; - case 29: // parameter 29: Stream recording control parameters o_resp[0]=(uint8_t)(g_amec->stream_vector_mode); o_resp[1]=(uint8_t)(g_amec->stream_vector_rate); @@ -995,13 +886,6 @@ uint8_t amester_manual_throttle( const IPMIMsg_t * i_msg, l_rc = COMPCODE_NORMAL; break; - case 64: // support for THREADMODE group 45 recording - o_resp[0]=(uint8_t)(g_amec->analytics_threadmode); - o_resp[1]=(uint8_t)(g_amec->analytics_threadcountmax); - *io_resp_length=2; - l_rc=COMPCODE_NORMAL; - break; - default: *io_resp_length = 0; l_rc = COMPCODE_PARAM_OUT_OF_RANGE; |