mirror of
https://github.com/torvalds/linux.git
synced 2024-09-20 06:53:04 +00:00
drm/amd/display: Add logs for debugging outbox
The DP tunnel AUX reply is received through Outbox1. Print the Outbox1 status if an issue occurs. Signed-off-by: Cruise <Cruise.Hung@amd.com> Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Reviewed-by: Wayne Lin <wayne.lin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b5126ba85b
commit
c3f1527372
|
@ -979,6 +979,9 @@ void dc_dmub_srv_log_diagnostic_data(struct dc_dmub_srv *dc_dmub_srv)
|
|||
DC_LOG_DEBUG(" inbox0_rptr : %08x", diag_data.inbox0_rptr);
|
||||
DC_LOG_DEBUG(" inbox0_wptr : %08x", diag_data.inbox0_wptr);
|
||||
DC_LOG_DEBUG(" inbox0_size : %08x", diag_data.inbox0_size);
|
||||
DC_LOG_DEBUG(" outbox1_rptr : %08x", diag_data.outbox1_rptr);
|
||||
DC_LOG_DEBUG(" outbox1_wptr : %08x", diag_data.outbox1_wptr);
|
||||
DC_LOG_DEBUG(" outbox1_size : %08x", diag_data.outbox1_size);
|
||||
DC_LOG_DEBUG(" is_enabled : %d", diag_data.is_dmcub_enabled);
|
||||
DC_LOG_DEBUG(" is_soft_reset : %d", diag_data.is_dmcub_soft_reset);
|
||||
DC_LOG_DEBUG(" is_secure_reset : %d", diag_data.is_dmcub_secure_reset);
|
||||
|
|
|
@ -330,6 +330,9 @@ struct dmub_diagnostic_data {
|
|||
uint32_t inbox0_rptr;
|
||||
uint32_t inbox0_wptr;
|
||||
uint32_t inbox0_size;
|
||||
uint32_t outbox1_rptr;
|
||||
uint32_t outbox1_wptr;
|
||||
uint32_t outbox1_size;
|
||||
uint32_t gpint_datain0;
|
||||
struct dmub_srv_debug timeout_info;
|
||||
uint8_t is_dmcub_enabled : 1;
|
||||
|
|
|
@ -449,6 +449,10 @@ void dmub_dcn31_get_diagnostic_data(struct dmub_srv *dmub, struct dmub_diagnosti
|
|||
diag_data->inbox0_wptr = REG_READ(DMCUB_INBOX0_WPTR);
|
||||
diag_data->inbox0_size = REG_READ(DMCUB_INBOX0_SIZE);
|
||||
|
||||
diag_data->outbox1_rptr = REG_READ(DMCUB_OUTBOX1_RPTR);
|
||||
diag_data->outbox1_wptr = REG_READ(DMCUB_OUTBOX1_WPTR);
|
||||
diag_data->outbox1_size = REG_READ(DMCUB_OUTBOX1_SIZE);
|
||||
|
||||
REG_GET(DMCUB_CNTL, DMCUB_ENABLE, &is_dmub_enabled);
|
||||
diag_data->is_dmcub_enabled = is_dmub_enabled;
|
||||
|
||||
|
|
|
@ -459,6 +459,10 @@ void dmub_dcn32_get_diagnostic_data(struct dmub_srv *dmub, struct dmub_diagnosti
|
|||
diag_data->inbox0_wptr = REG_READ(DMCUB_INBOX0_WPTR);
|
||||
diag_data->inbox0_size = REG_READ(DMCUB_INBOX0_SIZE);
|
||||
|
||||
diag_data->outbox1_rptr = REG_READ(DMCUB_OUTBOX1_RPTR);
|
||||
diag_data->outbox1_wptr = REG_READ(DMCUB_OUTBOX1_WPTR);
|
||||
diag_data->outbox1_size = REG_READ(DMCUB_OUTBOX1_SIZE);
|
||||
|
||||
REG_GET(DMCUB_CNTL, DMCUB_ENABLE, &is_dmub_enabled);
|
||||
diag_data->is_dmcub_enabled = is_dmub_enabled;
|
||||
|
||||
|
|
|
@ -502,6 +502,10 @@ void dmub_dcn35_get_diagnostic_data(struct dmub_srv *dmub, struct dmub_diagnosti
|
|||
diag_data->inbox0_wptr = REG_READ(DMCUB_INBOX0_WPTR);
|
||||
diag_data->inbox0_size = REG_READ(DMCUB_INBOX0_SIZE);
|
||||
|
||||
diag_data->outbox1_rptr = REG_READ(DMCUB_OUTBOX1_RPTR);
|
||||
diag_data->outbox1_wptr = REG_READ(DMCUB_OUTBOX1_WPTR);
|
||||
diag_data->outbox1_size = REG_READ(DMCUB_OUTBOX1_SIZE);
|
||||
|
||||
REG_GET(DMCUB_CNTL, DMCUB_ENABLE, &is_dmub_enabled);
|
||||
diag_data->is_dmcub_enabled = is_dmub_enabled;
|
||||
|
||||
|
|
|
@ -444,6 +444,10 @@ void dmub_dcn401_get_diagnostic_data(struct dmub_srv *dmub, struct dmub_diagnost
|
|||
diag_data->inbox0_wptr = REG_READ(DMCUB_INBOX0_WPTR);
|
||||
diag_data->inbox0_size = REG_READ(DMCUB_INBOX0_SIZE);
|
||||
|
||||
diag_data->outbox1_rptr = REG_READ(DMCUB_OUTBOX1_RPTR);
|
||||
diag_data->outbox1_wptr = REG_READ(DMCUB_OUTBOX1_WPTR);
|
||||
diag_data->outbox1_size = REG_READ(DMCUB_OUTBOX1_SIZE);
|
||||
|
||||
REG_GET(DMCUB_CNTL, DMCUB_ENABLE, &is_dmub_enabled);
|
||||
diag_data->is_dmcub_enabled = is_dmub_enabled;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user