File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1683,7 +1683,7 @@ static int psp_hdcp_initialize(struct psp_context *psp)
1683
1683
psp -> hdcp_context .context .mem_context .shared_mem_size = PSP_HDCP_SHARED_MEM_SIZE ;
1684
1684
psp -> hdcp_context .context .ta_load_type = GFX_CMD_ID_LOAD_TA ;
1685
1685
1686
- if (!psp -> hdcp_context .context .initialized ) {
1686
+ if (!psp -> hdcp_context .context .mem_context . shared_buf ) {
1687
1687
ret = psp_ta_init_shared_buf (psp , & psp -> hdcp_context .context .mem_context );
1688
1688
if (ret )
1689
1689
return ret ;
@@ -1750,7 +1750,7 @@ static int psp_dtm_initialize(struct psp_context *psp)
1750
1750
psp -> dtm_context .context .mem_context .shared_mem_size = PSP_DTM_SHARED_MEM_SIZE ;
1751
1751
psp -> dtm_context .context .ta_load_type = GFX_CMD_ID_LOAD_TA ;
1752
1752
1753
- if (!psp -> dtm_context .context .initialized ) {
1753
+ if (!psp -> dtm_context .context .mem_context . shared_buf ) {
1754
1754
ret = psp_ta_init_shared_buf (psp , & psp -> dtm_context .context .mem_context );
1755
1755
if (ret )
1756
1756
return ret ;
@@ -1818,7 +1818,7 @@ static int psp_rap_initialize(struct psp_context *psp)
1818
1818
psp -> rap_context .context .mem_context .shared_mem_size = PSP_RAP_SHARED_MEM_SIZE ;
1819
1819
psp -> rap_context .context .ta_load_type = GFX_CMD_ID_LOAD_TA ;
1820
1820
1821
- if (!psp -> rap_context .context .initialized ) {
1821
+ if (!psp -> rap_context .context .mem_context . shared_buf ) {
1822
1822
ret = psp_ta_init_shared_buf (psp , & psp -> rap_context .context .mem_context );
1823
1823
if (ret )
1824
1824
return ret ;
You can’t perform that action at this time.
0 commit comments