Skip to content

Commit

Permalink
plat-k3: drivers: Add some trace message for TI-SCI calls
Browse files Browse the repository at this point in the history
These could be good for debugging tracing of TI-SCI messages

Acked-by: Etienne Carriere <[email protected]>
Signed-off-by: Manorit Chawdhry <[email protected]>
  • Loading branch information
manorit2001 authored and Runyang Chen committed Dec 12, 2024
1 parent 9041267 commit 7f0d864
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/arch/arm/plat-k3/drivers/ti_sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ static int ti_sci_do_xfer(struct ti_sci_xfer *xfer)
goto unlock;
}

FMSG("Sending %"PRIx16" with seq %"PRIu8" host %"PRIu8,
txhdr->type, txhdr->seq, txhdr->host);

/* Get the response */
for (; retry > 0; retry--) {
/* Receive the response */
Expand All @@ -134,8 +137,12 @@ static int ti_sci_do_xfer(struct ti_sci_xfer *xfer)
if (!(rxhdr->flags & TI_SCI_FLAG_RESP_GENERIC_ACK)) {
DMSG("Message not acknowledged");
ret = TEE_ERROR_ACCESS_DENIED;
goto unlock;
}

FMSG("Receive %"PRIx16" with seq %"PRIu8" host %"PRIu8,
rxhdr->type, rxhdr->seq, rxhdr->host);

unlock:
mutex_unlock(&ti_sci_mutex_lock);
return ret;
Expand Down

0 comments on commit 7f0d864

Please sign in to comment.