radeon_hd: Improve aux transaction tracing
This commit is contained in:
@@ -200,9 +200,10 @@ dp_aux_transaction(uint32 connectorIndex, dp_aux_msg* message)
|
|||||||
message->reply = ack;
|
message->reply = ack;
|
||||||
if ((ack & AUX_NATIVE_REPLY_MASK) == AUX_NATIVE_REPLY_ACK)
|
if ((ack & AUX_NATIVE_REPLY_MASK) == AUX_NATIVE_REPLY_ACK)
|
||||||
return B_OK;
|
return B_OK;
|
||||||
else if ((ack & AUX_NATIVE_REPLY_MASK) == AUX_NATIVE_REPLY_DEFER)
|
else if ((ack & AUX_NATIVE_REPLY_MASK) == AUX_NATIVE_REPLY_DEFER) {
|
||||||
|
TRACE("%s: aux reply defer received. Snoozing.\n", __func__);
|
||||||
snooze(400);
|
snooze(400);
|
||||||
else
|
} else
|
||||||
return B_IO_ERROR;
|
return B_IO_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -225,6 +226,7 @@ dpcd_reg_write(uint32 connectorIndex, uint16 address, uint8 value)
|
|||||||
ERROR("%s: error on DisplayPort aux write (0x%" B_PRIx32 ")\n",
|
ERROR("%s: error on DisplayPort aux write (0x%" B_PRIx32 ")\n",
|
||||||
__func__, result);
|
__func__, result);
|
||||||
}
|
}
|
||||||
|
TRACE("%s: aux message reply: 0x%" B_PRIx8 "\n", __func__, message.reply);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -245,6 +247,8 @@ dpcd_reg_read(uint32 connectorIndex, uint16 address)
|
|||||||
__func__, result);
|
__func__, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TRACE("%s: aux message reply: 0x%" B_PRIx8 "\n", __func__, message.reply);
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -739,7 +743,7 @@ dp_set_tp(uint32 connectorIndex, int trainingPattern)
|
|||||||
|
|
||||||
/* set training pattern on the source */
|
/* set training pattern on the source */
|
||||||
if (info.dceMajor >= 4 || !dp->trainingUseEncoder) {
|
if (info.dceMajor >= 4 || !dp->trainingUseEncoder) {
|
||||||
TRACE("%s: Training with encoder...", __func__);
|
TRACE("%s: Training with encoder...\n", __func__);
|
||||||
switch (trainingPattern) {
|
switch (trainingPattern) {
|
||||||
case DP_TRAIN_PATTERN_1:
|
case DP_TRAIN_PATTERN_1:
|
||||||
rawTrainingPattern = ATOM_ENCODER_CMD_DP_LINK_TRAINING_PATTERN1;
|
rawTrainingPattern = ATOM_ENCODER_CMD_DP_LINK_TRAINING_PATTERN1;
|
||||||
@@ -753,7 +757,7 @@ dp_set_tp(uint32 connectorIndex, int trainingPattern)
|
|||||||
}
|
}
|
||||||
encoder_dig_setup(connectorIndex, pll->pixelClock, rawTrainingPattern);
|
encoder_dig_setup(connectorIndex, pll->pixelClock, rawTrainingPattern);
|
||||||
} else {
|
} else {
|
||||||
TRACE("%s: Training with encoder service...", __func__);
|
TRACE("%s: Training with encoder service...\n", __func__);
|
||||||
switch (trainingPattern) {
|
switch (trainingPattern) {
|
||||||
case DP_TRAIN_PATTERN_1:
|
case DP_TRAIN_PATTERN_1:
|
||||||
rawTrainingPattern = 0;
|
rawTrainingPattern = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user