blob: 4185dc2f325295b474a063b365d8d3073dab3487 (
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
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/diag/prdf/common/plat/pegasus/prdfCenMbaCaptureData.H $ */
/* */
/* IBM CONFIDENTIAL */
/* */
/* COPYRIGHT International Business Machines Corp. 2004,2013 */
/* */
/* p1 */
/* */
/* Object Code Only (OCO) source materials */
/* Licensed Internal Code Source Materials */
/* IBM HostBoot Licensed Internal Code */
/* */
/* The source code for this program is not published or otherwise */
/* divested of its trade secrets, irrespective of what has been */
/* deposited with the U.S. Copyright Office. */
/* */
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
#ifndef PRDF_CEN_MBA_CAPTURE_DATA_H
#define PRDF_CEN_MBA_CAPTURE_DATA_H
/**
* @file prdfCenfMbaCaptureData.H
* @brief Header File for utility functions to capture MBA related data.
*/
#include <targeting/common/targetservice.H>
#include <iipCaptureData.h>
#include <errlentry.H>
namespace PRDF
{
class ExtensibleChip;
struct STEP_CODE_DATA_STRUCT;
namespace CenMbaCaptureData
{
/**
* @brief Adds all MBA FirRegs and CerrRegs to the capture data for any MBA
* reporting an active attention via the MEM_CHIPLET_FIRs.
* @note This is only intended to be called in the MCS or MEMBUF PreAnalysis()
* plugins to capture the required FIR registers for FFDC.
* @note We are required to do the active attention check because there is a
* small window during the IPL where we may get an MCS or MEMBUF
* attention and the MBAs are not SCOMable at the time.
* @param i_membChip A MEMBUF chip.
* @param io_cd Capture data struct.
*/
void addMbaFirRegs( ExtensibleChip * i_membChip, CaptureData & io_cd );
/**
* @brief Adds Memory ECC FFDC to an error log.
* @note This is intended to be used in non-normal analysis paths that do not
* have an SDC (i.e. Restore DRAM Repairs, IPL MNFG CE Isolation).
* @note The data will be limited and include things like the DRAM Repairs data
* but will not include stuff like the CE/UE tables, because that
* information is not relevant during its intented uses.
* @param i_mbaTrgt An MBA target
* @param o_errl Error log.
*/
void addMemEccData( TARGETING::TargetHandle_t i_mbaTrgt, errlHndl_t io_errl );
/**
* @brief Adds Memory ECC FFDC to an SDC.
* @param i_mbaChip An MBA chip.
* @param io_sc Step code data struct.
*/
void addMemEccData( ExtensibleChip * i_mbaChip, STEP_CODE_DATA_STRUCT & io_sc );
/**
* @brief Queries hardware for all DRAM repairs data (chip/symbol marks, DRAM
* spare, etc.) for the given MBA and added it to the capture data.
* @param i_mbaTrgt An MBA target.
* @param io_cd Capture data struct.
* @note This function will be used to capture DRAM repair data into
* capture data struct. Other functions can call this function and
* update error log.
*/
void captureDramRepairsData( TARGETING::TargetHandle_t i_mbaTrgt,
CaptureData & io_cd );
/**
* @brief Queries the Bad DQ attributes for the content of the DRAM repairs VPD
* and add it to the capture data.
* @param i_mbaTrgt An MBA target.
* @param io_cd Capture data struct.
* @note This function will be used to capture DRAM repair data into
* capture data struct. Other functions can call this function and
* update error log.
*/
void captureDramRepairsVpd( TARGETING::TargetHandle_t i_mbaTrgt,
CaptureData & io_cd );
} // end namespace MbaCaptureData
} // end namespace PRDF
#endif // PRDF_CEN_MBA_CAPTURE_DATA_H
|