Skip to contentSkip to conversation

drm/amdgpu/psp: mark securedisplay TA as optional

PATCH In review Alex Deucher 4 participants 5 messages Apr 29, 2025 – May 6, 2025

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu/psp: mark securedisplay TA as optional

This is an optional TA which is only available on certain embedded systems. Mark it as optional to avoid user confusion. This mirrors what we already do for other optional TAs.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +2 -1
index d54bb13772622..1c843b888475e 100644
@@ -2214,7 +2214,8 @@ static int psp_securedisplay_initialize(struct psp_context *psp)
 
 	if (!psp->securedisplay_context.context.bin_desc.size_bytes ||
 	    !psp->securedisplay_context.context.bin_desc.start_addr) {
-		dev_info(psp->adev->dev, "SECUREDISPLAY: securedisplay ta ucode is not available\n");
+		dev_info(psp->adev->dev,
+			 "SECUREDISPLAY: optional securedisplay ta ucode is not available\n");
 		return 0;
 	}
 
Signature · 1 line
2.49.0
#1 lore raw
Quoted 16 lines · Alex Deucher

This is an optional TA which is only available on certain embedded systems. Mark it as optional to avoid user confusion. This mirrors what we already do for other optional TAs.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +0 -0
index d54bb13772622..1c843b888475e 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_securedisplay_initialize(struct psp_context *psp) · line 2221

Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +2 -1
@@ -2214,7 +2214,8 @@ static int psp_securedisplay_initialize(struct psp_context *psp)
 
 	if (!psp->securedisplay_context.context.bin_desc.size_bytes ||
 	    !psp->securedisplay_context.context.bin_desc.start_addr) {
-		dev_info(psp->adev->dev, "SECUREDISPLAY: securedisplay ta ucode is not available\n");
+		dev_info(psp->adev->dev,
+			 "SECUREDISPLAY: optional securedisplay ta ucode is not available\n");
 		return 0;
 	}
 

Does it need to be dev_info, or could it be dev_dbg?

Signature · 2 lines
Earthling Michel Dänzer       \        GNOME / Xwayland / Mesa developer
https://redhat.com             \               Libre software enthusiast
#2 lore raw
Quoted 19 lines · Michel Dänzer
Quoted 17 lines · Alex Deucher

This is an optional TA which is only available on certain embedded systems. Mark it as optional to avoid user confusion. This mirrors what we already do for other optional TAs.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +0 -0
index d54bb13772622..1c843b888475e 100644
@@ -2214,7 +2214,8 @@ static int psp_securedisplay_initialize(struct psp_context *psp)
 
Quoted 10 lines

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_securedisplay_initialize(struct psp_context *psp) · line 2221

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +2 -1
      if (!psp->securedisplay_context.context.bin_desc.size_bytes ||
          !psp->securedisplay_context.context.bin_desc.start_addr) {
-             dev_info(psp->adev->dev, "SECUREDISPLAY: securedisplay ta ucode is not available\n");
+             dev_info(psp->adev->dev,
+                      "SECUREDISPLAY: optional securedisplay ta ucode is not available\n");
              return 0;
      }
 

Does it need to be dev_info, or could it be dev_dbg?

The customers that do use these optional TAs generally want notification of their absence.

Alex

Quoted 5 lines

--
Earthling Michel Dänzer \ GNOME / Xwayland / Mesa developer
https://redhat.com \ Libre software enthusiast

#3 lore raw
In reply to Alex Deucher

Ping?

Alex

Quoted 29 lines · Alex Deucher

This is an optional TA which is only available on certain embedded systems. Mark it as optional to avoid user confusion. This mirrors what we already do for other optional TAs.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +2 -2
index d54bb13772622..1c843b888475e 100644
@@ -2214,7 +2214,8 @@ static int psp_securedisplay_initialize(struct psp_context *psp)
 
        if (!psp->securedisplay_context.context.bin_desc.size_bytes ||
            !psp->securedisplay_context.context.bin_desc.start_addr) {
-               dev_info(psp->adev->dev, "SECUREDISPLAY: securedisplay ta ucode is not available\n");
+               dev_info(psp->adev->dev,
+                        "SECUREDISPLAY: optional securedisplay ta ucode is not available\n");
                return 0;
        }
 
--

2.49.0

Reviewed-by on v1 1/1
#4 lore raw
In reply to Alex Deucher

[AMD Official Use Only - AMD Internal Distribution Only]

Regards,
Hawking
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Tuesday, April 29, 2025 21:48
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu/psp: mark securedisplay TA as optional

This is an optional TA which is only available on certain embedded systems. Mark it as optional to avoid user confusion. This mirrors what we already do for other optional TAs.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +3 -1
index d54bb13772622..1c843b888475e 100644
@@ -2214,7 +2214,8 @@ static int psp_securedisplay_initialize(struct psp_context *psp)
 
        if (!psp->securedisplay_context.context.bin_desc.size_bytes ||
            !psp->securedisplay_context.context.bin_desc.start_addr) {
-               dev_info(psp->adev->dev, "SECUREDISPLAY: securedisplay ta ucode is not available\n");
+               dev_info(psp->adev->dev,
+                        "SECUREDISPLAY: optional securedisplay ta ucode is not
+available\n");
                return 0;
        }

--
2.49.0