mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: AGESA: Apply a threshold on event logging
Implement threshold as described in AMD.h, and do not add
entries below STATUS_LOG_LEVEL in the eventlog.
BUG=none
BRANCH=none
TEST=none
Change-Id: I41a257d8482bdeb568689045511547484c33e3c0
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 4f74c89592
Original-Change-Id: Ic9e45b1473b4fee46a1ad52d439e8682d961dc03
Original-Signed-off-by: Kysti Mlkki <kyosti.malkki@gmail.com>
Original-Reviewed-on: https://review.coreboot.org/18542
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Original-Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/452466
This commit is contained in:
parent
a52c64ed19
commit
3c3346b7cb
6 changed files with 18 additions and 0 deletions
|
@ -199,6 +199,9 @@ PutEventLog (
|
|||
UINT16 Index;
|
||||
AGESA_STRUCT_BUFFER *AgesaEventAlloc;
|
||||
|
||||
if (EventClass < AGESA_STATUS_LOG_LEVEL)
|
||||
return;
|
||||
|
||||
AgesaEventAlloc = NULL;
|
||||
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
|
||||
ASSERT (AgesaEventAlloc != NULL);
|
||||
|
|
|
@ -213,6 +213,9 @@ PutEventLog (
|
|||
(EventClass == AGESA_UNSUPPORTED) ? "UNSUPPORTED" :
|
||||
"SUCCESS", EventInfo, DataParam1, DataParam2, DataParam3, DataParam4);
|
||||
|
||||
if (EventClass < AGESA_STATUS_LOG_LEVEL)
|
||||
return;
|
||||
|
||||
AgesaEventAlloc = NULL;
|
||||
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
|
||||
ASSERT (AgesaEventAlloc != NULL);
|
||||
|
|
|
@ -216,6 +216,9 @@ PutEventLog (
|
|||
(EventClass == AGESA_UNSUPPORTED) ? "UNSUPPORTED" :
|
||||
"SUCCESS", EventInfo, DataParam1, DataParam2, DataParam3, DataParam4);
|
||||
|
||||
if (EventClass < AGESA_STATUS_LOG_LEVEL)
|
||||
return;
|
||||
|
||||
AgesaEventAlloc = NULL;
|
||||
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
|
||||
ASSERT (AgesaEventAlloc != NULL);
|
||||
|
|
|
@ -214,6 +214,9 @@ PutEventLog (
|
|||
(EventClass == AGESA_UNSUPPORTED) ? "UNSUPPORTED" :
|
||||
"SUCCESS", EventInfo, DataParam1, DataParam2, DataParam3, DataParam4);
|
||||
|
||||
if (EventClass < AGESA_STATUS_LOG_LEVEL)
|
||||
return;
|
||||
|
||||
AgesaEventAlloc = NULL;
|
||||
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
|
||||
ASSERT (AgesaEventAlloc != NULL);
|
||||
|
|
|
@ -213,6 +213,9 @@ PutEventLog (
|
|||
(EventClass == AGESA_UNSUPPORTED) ? "UNSUPPORTED" :
|
||||
"SUCCESS", EventInfo, DataParam1, DataParam2, DataParam3, DataParam4);
|
||||
|
||||
if (EventClass < AGESA_STATUS_LOG_LEVEL)
|
||||
return;
|
||||
|
||||
AgesaEventAlloc = NULL;
|
||||
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
|
||||
ASSERT (AgesaEventAlloc != NULL);
|
||||
|
|
|
@ -213,6 +213,9 @@ PutEventLog (
|
|||
(EventClass == AGESA_UNSUPPORTED) ? "UNSUPPORTED" :
|
||||
"SUCCESS", EventInfo, DataParam1, DataParam2, DataParam3, DataParam4);
|
||||
|
||||
if (EventClass < AGESA_STATUS_LOG_LEVEL)
|
||||
return;
|
||||
|
||||
AgesaEventAlloc = NULL;
|
||||
GetEventLogHeapPointer (&AgesaEventAlloc, StdHeader);
|
||||
ASSERT (AgesaEventAlloc != NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue