summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/occ/occ_procedures/p8_pm_pmc_firinit.C
blob: 6da77caafdce1406b62a1b65be5b340805cfb903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/usr/hwpf/hwp/occ/occ_procedures/p8_pm_pmc_firinit.C $     */
/*                                                                        */
/* OpenPOWER HostBoot Project                                             */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 2013,2014              */
/*                                                                        */
/* Licensed under the Apache License, Version 2.0 (the "License");        */
/* you may not use this file except in compliance with the License.       */
/* You may obtain a copy of the License at                                */
/*                                                                        */
/*     http://www.apache.org/licenses/LICENSE-2.0                         */
/*                                                                        */
/* Unless required by applicable law or agreed to in writing, software    */
/* distributed under the License is distributed on an "AS IS" BASIS,      */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or        */
/* implied. See the License for the specific language governing           */
/* permissions and limitations under the License.                         */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
// $Id: p8_pm_pmc_firinit.C,v 1.20 2014/04/07 02:55:10 stillgs Exp $
// $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/chips/p8/working/procedures/ipl/fapi/p8_pm_pmc_firinit.C,v $
//------------------------------------------------------------------------------
// *! (C) Copyright International Business Machines Corp. 2011
// *! All Rights Reserved -- Property of IBM
// *! *** IBM Confidential ***
//------------------------------------------------------------------------------
// *! OWNER NAME: Pradeep CN         Email: pradeepcn@in.ibm.com
// *!
// *! General Description: Configures the FIR errors
// *!
// *!   The purpose of this procedure is to ......
// *!
// *!   High-level procedure flow:
// *!     o Set the particluar bits of databuffers action0 , action 1 and mask for the correspoding actions via MACROS
// *!     o Write the action1 , actionn0 and mask registers of FIRs
// *!     o Check if all went well
// *!     o   If so celebrate
// *!     o   Else write logs, set bad return code
// *!
// *! Procedure Prereq:
// *!   o System clocks are running
// *!
// *!  buildfapiprcd p8_pm_pmc_firinit.C 
//------------------------------------------------------------------------------



// ----------------------------------------------------------------------
// Includes
// ----------------------------------------------------------------------
#include <fapi.H>
#include "p8_scom_addresses.H"
#include "p8_pm_pmc_firinit.H"

extern "C" {

using namespace fapi;

// ----------------------------------------------------------------------
// Constant definitions
// ----------------------------------------------------------------------


 // ----------------------------------------------------------------------
// Macro definitions
// ----------------------------------------------------------------------
// ALL the below Macros are calling other macros SET_FIR_ACTION / SET_FIR_MASK .
// Whcih are present in p8_pm_firinit.H
// #define SET_CHECK_STOP(b){SET_FIR_ACTION(b, 0, 0);}
// #define SET_RECOV_ATTN(b){SET_FIR_ACTION(b, 0, 1);}
// #define SET_RECOV_INTR(b){SET_FIR_ACTION(b, 1, 0);}
// #define SET_MALF_ALERT(b){SET_FIR_ACTION(b, 1, 1);}
// #define SET_FIR_MASKED(b){SET_FIR_MASK(b,1);}

// ----------------------------------------------------------------------
// Global variables
// ----------------------------------------------------------------------

//------------------------------------------------------------------------------
// Function prototypes
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
// function: FAPI p8_pm_pmc_firinit  HWP entry point
//           operates on chips passed in i_target argument to perform
//           desired settings of FIRS of PMC macro
// parameters: i_target        => chip target

// returns: FAPI_RC_SUCCESS if all specified operations complete successfully,
//          else return code for failing operation
//------------------------------------------------------------------------------

fapi::ReturnCode
p8_pm_pmc_firinit(const fapi::Target& i_target , uint32_t mode  )
{
    fapi::ReturnCode    rc;
    ecmdDataBufferBase  fir(64);
    ecmdDataBufferBase  action_0(64);
    ecmdDataBufferBase  action_1(64);
    ecmdDataBufferBase  mask(64);
    ecmdDataBufferBase  pmc_ocb_mask_hi(64);
    ecmdDataBufferBase  pmc_ocb_mask_lo(64);
    uint32_t            e_rc = 0;

   
    FAPI_DBG("Executing p8_pm_pmc_firinit  ...");
    do
    {
        if (mode == PM_RESET)
        {
            FAPI_INF("Hard reset detected.  Full PMC LFIR is masked");
            e_rc  = mask.flushTo0();
            e_rc |= mask.setBit(0,PMC_FIR_REGISTER_LENGTH);
            if (e_rc)
            {
                rc.setEcmdError(e_rc);
                break;
            }

            //--******************************************************************************
            //-- PMC_FIR_MASK (W0_OR_45) (WR_43) (WO_AND_44)
            //--******************************************************************************
            rc = fapiPutScom(i_target, PMC_LFIR_MASK_0x01010843, mask );
            if (rc)
            {
	            FAPI_ERR("fapiPutScom(PMC_LFIR_MASK_0x01010843) failed.");
                break;
            }
            
            
            // Clear pmc_ocb_mask_[hi/lo] as these are really enables, not masks.
            e_rc |= pmc_ocb_mask_hi.flushTo0();
            e_rc |= pmc_ocb_mask_lo.flushTo0();
            if (e_rc)
            {
                rc.setEcmdError(e_rc);
                break;
            }
            
            //#--******************************************************************************
            //#-- PMC OCB Mask Hi
            //#--******************************************************************************

            rc = fapiPutScom(i_target, PMC_ERROR_INT_MASK_HI_0x00062067, pmc_ocb_mask_hi );
            if (rc)
            {
                  FAPI_ERR("fapiPutScom(PMC_ERROR_INT_MASK_HI_0x00062067) failed.");
                  break;
            }

            //#--******************************************************************************
            //#-- PMC OCB Mask Lo
            //#--******************************************************************************

            rc = fapiPutScom(i_target, PMC_ERROR_INT_MASK_LO_0x00062068, pmc_ocb_mask_lo );
            if (rc)
            {
                FAPI_ERR("fapiPutScom(PMC_ERROR_INT_MASK_LO_0x00062068) failed.");
                break;
            }
            
        }
        else if (mode == PM_RESET_SOFT)
        {
            FAPI_INF("Soft reset detected.  Only non-idle PMC LFIR bits are masked");
            // Only mask the bits that that do not deal with SLW
            rc = fapiGetScom(i_target, PMC_LFIR_MASK_0x01010843, mask );
            if (rc)
            {
	            FAPI_ERR("fapiGetScom(PMC_LFIR_MASK_0x01010843) failed.");
                break;
            }
                                           
            // The following is done to keep SIMICS model from complaining about
            // setting non-implemented bits.

            e_rc |= mask.setBit(0,IDLE_PORESW_FATAL_ERR);
            e_rc |= mask.setBit(IDLE_INTERNAL_ERR+1,
                                PMC_FIR_REGISTER_LENGTH-IDLE_INTERNAL_ERR);
            if (e_rc)
            {
                rc.setEcmdError(e_rc);
                break;
            }

            //--******************************************************************************
            //-- PMC_FIR_MASK (W0_OR_45) (WR_43) (WO_AND_44)
            //--******************************************************************************
            rc = fapiPutScom(i_target, PMC_LFIR_MASK_0x01010843, mask );
            if (rc)
            {
	            FAPI_ERR("fapiPutScom(PMC_LFIR_MASK_0x01010843) failed.");
                break;
            }
            
            //--******************************************************************************
            //-- PMC_FIR_MASK (W0_OR_45) (WR_43) (WO_AND_44)
            //--******************************************************************************
            rc = fapiPutScom(i_target, PMC_LFIR_MASK_0x01010843, mask );
            if (rc)
            {
	            FAPI_ERR("fapiPutScom(PMC_LFIR_MASK_0x01010843) failed.");
                break;
            }
                        
            // Clear pmc_ocb_mask_[hi/lo] as these are really enables, not masks.
            e_rc |= pmc_ocb_mask_hi.flushTo0();
            e_rc |= pmc_ocb_mask_lo.flushTo0();
            if (e_rc)
            {
                rc.setEcmdError(e_rc);
                break;
            }
            
            //#--******************************************************************************
            //#-- PMC OCB Mask Hi
            //#--******************************************************************************

            rc = fapiPutScom(i_target, PMC_ERROR_INT_MASK_HI_0x00062067, pmc_ocb_mask_hi );
            if (rc)
            {
                  FAPI_ERR("fapiPutScom(PMC_ERROR_INT_MASK_HI_0x00062067) failed.");
                  break;
            }

            //#--******************************************************************************
            //#-- PMC OCB Mask Lo
            //#--******************************************************************************

            rc = fapiPutScom(i_target, PMC_ERROR_INT_MASK_LO_0x00062068, pmc_ocb_mask_lo );
            if (rc)
            {
                FAPI_ERR("fapiPutScom(PMC_ERROR_INT_MASK_LO_0x00062068) failed.");
                break;
            }
            
        }
        else
        {            
            e_rc |= fir.flushTo0();
            e_rc |= action_0.flushTo0();
            e_rc |= action_1.flushTo0();
            e_rc |= mask.flushTo0()    ;
            if (e_rc)
            {
                rc.setEcmdError(e_rc);
                break;
            }

            SET_RECOV_INTR(PSTATE_OCI_MASTER_RDERR              ); //  0  pstate_oci_master_rderr
            SET_RECOV_INTR(PSTATE_OCI_MASTER_RDDATA_PARITY_ERR  ); //  1  pstate_oci_master_rddata_parity_err
            SET_RECOV_INTR(PSTATE_GPST_CHECKBYTE_ERR            ); //  2  pstate_gpst_checkbyte_err
            SET_RECOV_INTR(PSTATE_GACK_TO_ERR                   ); //  3  pstate_gack_to_err
            SET_RECOV_INTR(PSTATE_PIB_MASTER_NONOFFLINE_ERR     ); //  4  pstate_pib_master_nonoffline_err
            SET_RECOV_INTR(PSTATE_PIB_MASTER_OFFLINE_ERR        ); //  5  pstate_pib_master_offline_err
            SET_RECOV_INTR(PSTATE_OCI_MASTER_TO_ERR             ); //  6  pstate_oci_master_to_err
            SET_RECOV_INTR(PSTATE_INTERCHIP_UE_ERR              ); //  7  pstate_interchip_ue_err
            SET_RECOV_INTR(PSTATE_INTERCHIP_ERRORFRAME_ERR      ); //  8  pstate_interchip_errorframe_err
            SET_RECOV_INTR(PSTATE_MS_FSM_ERR                    ); //  9  pstate_ms_fsm_err
            SET_MALF_ALERT(MS_COMP_PARITY_ERR                   ); // 10  ms_comp_parity_err
            SET_MALF_ALERT(IDLE_PORESW_FATAL_ERR                ); // 11  idle_poresw_fatal_err
            SET_MALF_ALERT(IDLE_PORESW_STATUS_RC_ERR            ); // 12  idle_poresw_status_rc_err
            SET_MALF_ALERT(IDLE_PORESW_STATUS_VALUE_ERR         ); // 13  idle_poresw_status_value_err
            SET_MALF_ALERT(IDLE_PORESW_WRITE_WHILE_INACTIVE_ERR ); // 14  idle_poresw_write_while_inactive_err
            SET_MALF_ALERT(IDLE_PORESW_TIMEOUT_ERR              ); // 15  idle_poresw_timeout_err
            SET_FIR_MASKED(IDLE_OCI_MASTER_WRITE_TIMEOUT_ERR    ); // 16  idle_oci_master_write_timeout_err
            SET_MALF_ALERT(IDLE_INTERNAL_ERR                    ); // 17  idle_internal_err
            SET_MALF_ALERT(INT_COMP_PARITY_ERR                  ); // 18  int_comp_parity_err
            SET_FIR_MASKED(PMC_OCC_HEARTBEAT_TIMEOUT            ); // 19  pmc_occ_heartbeat_timeout
            SET_FIR_MASKED(SPIVID_CRC_ERROR0                    ); // 20  spivid_crc_error0
            SET_FIR_MASKED(SPIVID_CRC_ERROR1                    ); // 21  spivid_crc_error1
            SET_FIR_MASKED(SPIVID_CRC_ERROR2                    ); // 22  spivid_crc_error2
            SET_RECOV_ATTN(SPIVID_RETRY_TIMEOUT                 ); // 23  spivid_retry_timeout
            SET_RECOV_ATTN(SPIVID_FSM_ERR                       ); // 24  spivid_fsm_err
            SET_FIR_MASKED(SPIVID_MAJORITY_DETECTED_A_MINORITY  ); // 25  spivid_majority_detected_a_minority
            SET_FIR_MASKED(O2S_CRC_ERROR0                       ); // 26  o2s_crc_error0
            SET_FIR_MASKED(O2S_CRC_ERROR1                       ); // 27  o2s_crc_error1
            SET_FIR_MASKED(O2S_CRC_ERROR2                       ); // 28  o2s_crc_error2
            SET_FIR_MASKED(O2S_RETRY_TIMEOUT                    ); // 29  o2s_retry_timeout
            SET_FIR_MASKED(O2S_WRITE_WHILE_BRIDGE_BUSY_ERR      ); // 30  o2s_write_while_bridge_busy_err
            SET_FIR_MASKED(O2S_FSM_ERR                          ); // 31  o2s_fsm_err
            SET_FIR_MASKED(O2S_MAJORITY_DETECTED_A_MINORITY     ); // 32  o2s_majority_detected_a_minority
            SET_FIR_MASKED(O2P_WRITE_WHILE_BRIDGE_BUSY_ERR      ); // 33  o2p_write_while_bridge_busy_err
            SET_FIR_MASKED(O2P_FSM_ERR                          ); // 34  o2p_fsm_err
            SET_FIR_MASKED(OCI_SLAVE_ERR                        ); // 35  oci_slave_err
            SET_MALF_ALERT(IF_COMP_PARITY_ERR                   ); // 36  if_comp_parity_err
            SET_RECOV_ATTN(IDLE_RECOVERY_NOTIFY_PRD             ); // 37  idle_recovery_notify_prd
            SET_FIR_MASKED(FIR_PARITY_ERR_DUP                   ); // 47  fir_parity_err_dup
            SET_FIR_MASKED(FIR_PARITY_ERR                       ); // 48  fir_parity_err

            if (e_rc)
            {
                rc.setEcmdError(e_rc);
                break;
            }

            FAPI_DBG(" action_0  => 0x%016llx ",  action_0.getDoubleWord(0));
            FAPI_DBG(" action_1  => 0x%016llx ",  action_1.getDoubleWord(0));
            FAPI_DBG(" mask      => 0x%016llx ",  mask.getDoubleWord(0));

            //#--******************************************************************************
            //#-- PMC_FIR - clear
            //#--******************************************************************************

            rc = fapiPutScom(i_target, PMC_LFIR_0x01010840, fir);
            if (rc)
            {
                  FAPI_ERR("fapiPutScom(PMC_LFIR_0x01010840) failed.");
                  break;
            }

            //#--******************************************************************************
            //#-- PMC_FIR_ACTION0
            //#--******************************************************************************

            rc = fapiPutScom(i_target, PMC_LFIR_ACT0_0x01010846, action_0 );
            if (rc)
            {
                  FAPI_ERR("fapiPutScom(PMC_LFIR_ACT0_0x01010846) failed.");
                  break;
            }

            //#--******************************************************************************
            //#-- PMC_FIR_ACTION1
            //#--******************************************************************************

            rc = fapiPutScom(i_target, PMC_LFIR_ACT1_0x01010847, action_1 );
            if (rc)
            {
                FAPI_ERR("fapiPutScom(PMC_LFIR_ACT1_0x01010847) failed.");
                break;
            }

            //--******************************************************************************
            //-- PMC_FIR_MASK (W0_OR_45) (WR_43) (WO_AND_44)
            //--******************************************************************************
            rc = fapiPutScom(i_target, PMC_LFIR_MASK_0x01010843, mask );
            if (rc)
            {
                FAPI_ERR("fapiPutScom(PMC_LFIR_MASK_0x01010843) failed.");
                break;
            }
            
            // Set the PMC OCB Masks to enable OCC interrupts on FIR bits
            // Note: the descrption of the bit says "mask" but it takes a 1
            // to enable them.
            
            e_rc |= pmc_ocb_mask_hi.flushTo0();
            e_rc |= pmc_ocb_mask_lo.flushTo0();

            // PMC OCB Mask Hi
            e_rc |= pmc_ocb_mask_hi.setBit(PSTATE_OCI_MASTER_RDERR              ); //  0  pstate_oci_master_rderr
            e_rc |= pmc_ocb_mask_hi.setBit(PSTATE_OCI_MASTER_RDDATA_PARITY_ERR  ); //  1  pstate_oci_master_rddata_parity_err
            e_rc |= pmc_ocb_mask_hi.setBit(PSTATE_GPST_CHECKBYTE_ERR            ); //  2  pstate_gpst_checkbyte_err
            e_rc |= pmc_ocb_mask_hi.setBit(PSTATE_GACK_TO_ERR                   ); //  3  pstate_gack_to_err
            e_rc |= pmc_ocb_mask_hi.setBit(PSTATE_PIB_MASTER_NONOFFLINE_ERR     ); //  4  pstate_pib_master_nonoffline_err
            e_rc |= pmc_ocb_mask_hi.setBit(PSTATE_PIB_MASTER_OFFLINE_ERR        ); //  5  pstate_pib_master_offline_err
            e_rc |= pmc_ocb_mask_hi.setBit(PSTATE_OCI_MASTER_TO_ERR             ); //  6  pstate_oci_master_to_err
            e_rc |= pmc_ocb_mask_hi.setBit(PSTATE_INTERCHIP_UE_ERR              ); //  7  pstate_interchip_ue_err
            e_rc |= pmc_ocb_mask_hi.setBit(PSTATE_INTERCHIP_ERRORFRAME_ERR      ); //  8  pstate_interchip_errorframe_err
            e_rc |= pmc_ocb_mask_hi.setBit(PSTATE_MS_FSM_ERR                    ); //  9  pstate_ms_fsm_err
            e_rc |= pmc_ocb_mask_hi.setBit(MS_COMP_PARITY_ERR                   ); // 10  ms_comp_parity_err
//          Left 0                        (IDLE_PORESW_FATAL_ERR                ); // 11  idle_poresw_fatal_err
//          Left 0                        (IDLE_PORESW_STATUS_RC_ERR            ); // 12  idle_poresw_status_rc_err
//          Left 0                        (IDLE_PORESW_STATUS_VALUE_ERR         ); // 13  idle_poresw_status_value_err
//          Left 0                        (IDLE_PORESW_WRITE_WHILE_INACTIVE_ERR ); // 14  idle_poresw_write_while_inactive_err
//          Left 0                        (IDLE_PORESW_TIMEOUT_ERR              ); // 15  idle_poresw_timeout_err
//          Left 0                        (IDLE_OCI_MASTER_WRITE_TIMEOUT_ERR    ); // 16  idle_oci_master_write_timeout_err
            e_rc |= pmc_ocb_mask_hi.setBit(IDLE_INTERNAL_ERR                    ); // 17  idle_internal_err
            e_rc |= pmc_ocb_mask_hi.setBit(INT_COMP_PARITY_ERR                  ); // 18  int_comp_parity_err
//          Left 0                        (PMC_OCC_HEARTBEAT_TIMEOUT            ); // 19  pmc_occ_heartbeat_timeout
//          Left 0                        (SPIVID_CRC_ERROR0                    ); // 20  spivid_crc_error0
//          Left 0                        (SPIVID_CRC_ERROR1                    ); // 21  spivid_crc_error1
//          Left 0                        (SPIVID_CRC_ERROR2                    ); // 22  spivid_crc_error2
            e_rc |= pmc_ocb_mask_hi.setBit(SPIVID_RETRY_TIMEOUT                 ); // 23  spivid_retry_timeout
            e_rc |= pmc_ocb_mask_hi.setBit(SPIVID_FSM_ERR                       ); // 24  spivid_fsm_err
//          Left 0                        (SPIVID_MAJORITY_DETECTED_A_MINORITY  ); // 25  spivid_majority_detected_a_minority
//          Left 0                        (O2S_CRC_ERROR0                       ); // 26  o2s_crc_error0
//          Left 0                        (O2S_CRC_ERROR1                       ); // 27  o2s_crc_error1
//          Left 0                        (O2S_CRC_ERROR2                       ); // 28  o2s_crc_error2
//          Left 0                        (O2S_RETRY_TIMEOUT                    ); // 29  o2s_retry_timeout
//          Left 0                        (O2S_WRITE_WHILE_BRIDGE_BUSY_ERR      ); // 30  o2s_write_while_bridge_busy_err
//          Left 0                        (O2S_FSM_ERR                          ); // 31  o2s_fsm_err

            // PMC OCB Mask Lo
//          Left 0                        (O2S_MAJORITY_DETECTED_A_MINORITY     ); // 32  o2s_majority_detected_a_minority
//          Left 0                        (O2P_WRITE_WHILE_BRIDGE_BUSY_ERR      ); // 33  o2p_write_while_bridge_busy_err
            e_rc |= pmc_ocb_mask_lo.setBit(O2P_FSM_ERR - 32                     ); // 34  o2p_fsm_err
            e_rc |= pmc_ocb_mask_lo.setBit(OCI_SLAVE_ERR - 32                   ); // 35  oci_slave_err
//                                        (IF_COMP_PARITY_ERR                   ); // 36  if_comp_parity_err
//                                        IDLE_RECOVERY_NOTIFY_PRD              ); // 37  idle_recovery_notify_prd
//          Left 0                        (FIR_PARITY_ERR_DUP                   ); // 47  fir_parity_err_dup
//          Left 0                        (FIR_PARITY_ERR                       ); // 48  fir_parity_err
            
            
            if (e_rc)
            {
                rc.setEcmdError(e_rc);
                break;
            }
            
            FAPI_DBG(" pmc_ocb_mask_hi  => 0x%016llx ",  pmc_ocb_mask_hi.getDoubleWord(0));
            FAPI_DBG(" pmc_ocb_mask_lo  => 0x%016llx ",  pmc_ocb_mask_lo.getDoubleWord(0));
            
            //#--******************************************************************************
            //#-- PMC OCB Mask Hi
            //#--******************************************************************************

            rc = fapiPutScom(i_target, PMC_ERROR_INT_MASK_HI_0x00062067, pmc_ocb_mask_hi );
            if (rc)
            {
                  FAPI_ERR("fapiPutScom(PMC_ERROR_INT_MASK_HI_0x00062067) failed.");
                  break;
            }

            //#--******************************************************************************
            //#-- PMC OCB Mask Lo
            //#--******************************************************************************

            rc = fapiPutScom(i_target, PMC_ERROR_INT_MASK_LO_0x00062068, pmc_ocb_mask_lo );
            if (rc)
            {
                FAPI_ERR("fapiPutScom(PMC_ERROR_INT_MASK_LO_0x00062068) failed.");
                break;
            }

        }
    } while(0);

    return rc ;

} // Procedure


} //end extern C
OpenPOWER on IntegriCloud