From ae0b2678bee4e8921a20fe78967f560d04b42f76 Mon Sep 17 00:00:00 2001 From: Manorit Chawdhry Date: Wed, 13 Nov 2024 16:13:17 +0530 Subject: [PATCH] plat-k3: drivers: Add some trace message for TI-SCI calls These could be good for debugging tracing of TI-SCI messages Acked-by: Etienne Carriere Signed-off-by: Manorit Chawdhry --- core/arch/arm/plat-k3/drivers/ti_sci.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/arch/arm/plat-k3/drivers/ti_sci.c b/core/arch/arm/plat-k3/drivers/ti_sci.c index cfa4bc469ae..2d98f177e8a 100644 --- a/core/arch/arm/plat-k3/drivers/ti_sci.c +++ b/core/arch/arm/plat-k3/drivers/ti_sci.c @@ -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 */ @@ -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;