All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
To: <amd-gfx@lists.freedesktop.org>, <alexander.deucher@amd.com>,
	<hawking.zhang@amd.com>
Cc: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Subject: [PATCH] drm/amdgpu: log TA versions on init
Date: Mon, 24 Feb 2020 14:45:27 -0500	[thread overview]
Message-ID: <20200224194527.15599-1-Bhawanpreet.Lakha@amd.com> (raw)

It is helpful to know what version the TA's are for debugging

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index a16c8101e250..09d1433677a6 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -358,6 +358,7 @@ static int psp_asd_load(struct psp_context *psp)
 	if (!ret) {
 		psp->asd_context.asd_initialized = true;
 		psp->asd_context.session_id = cmd->resp.session_id;
+		DRM_INFO("ASD: Initialized (version: 0x%X)", psp->asd_fw_version);
 	}
 
 	kfree(cmd);
@@ -518,6 +519,7 @@ static int psp_xgmi_load(struct psp_context *psp)
 	if (!ret) {
 		psp->xgmi_context.initialized = 1;
 		psp->xgmi_context.session_id = cmd->resp.session_id;
+		DRM_INFO("XGMI: Initialized (version: 0x%X)", psp->ta_xgmi_ucode_version);
 	}
 
 	kfree(cmd);
@@ -658,6 +660,7 @@ static int psp_ras_load(struct psp_context *psp)
 	if (!ret) {
 		psp->ras.ras_initialized = true;
 		psp->ras.session_id = cmd->resp.session_id;
+		DRM_INFO("RAS: Initialized (version: 0x%X)", psp->ta_ras_ucode_version);
 	}
 
 	kfree(cmd);
@@ -832,6 +835,7 @@ static int psp_hdcp_load(struct psp_context *psp)
 	if (!ret) {
 		psp->hdcp_context.hdcp_initialized = true;
 		psp->hdcp_context.session_id = cmd->resp.session_id;
+		DRM_INFO("HDCP: Initialized (version: 0x%X)", psp->ta_hdcp_ucode_version);
 	}
 
 	kfree(cmd);
@@ -977,6 +981,7 @@ static int psp_dtm_load(struct psp_context *psp)
 	if (!ret) {
 		psp->dtm_context.dtm_initialized = true;
 		psp->dtm_context.session_id = cmd->resp.session_id;
+		DRM_INFO("DTM: Initialized (version: 0x%X)", psp->ta_dtm_ucode_version);
 	}
 
 	kfree(cmd);
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

             reply	other threads:[~2020-02-24 19:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24 19:45 Bhawanpreet Lakha [this message]
2020-02-24 20:54 ` [PATCH] drm/amdgpu: log TA versions on init Liu, Zhan
2020-02-25  6:27   ` Zhang, Hawking
2020-02-25  6:29     ` Zhang, Hawking
2020-02-25 15:33       ` Bhawanpreet Lakha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200224194527.15599-1-Bhawanpreet.Lakha@amd.com \
    --to=bhawanpreet.lakha@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=hawking.zhang@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.