File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -602,27 +602,14 @@ psp_cmd_submit_buf(struct psp_context *psp,
602
602
struct psp_gfx_cmd_resp * cmd , uint64_t fence_mc_addr )
603
603
{
604
604
int ret ;
605
- int index , idx ;
605
+ int index ;
606
606
int timeout = 20000 ;
607
607
bool ras_intr = false;
608
608
bool skip_unsupport = false;
609
- bool dev_entered ;
610
609
611
610
if (psp -> adev -> no_hw_access )
612
611
return 0 ;
613
612
614
- dev_entered = drm_dev_enter (adev_to_drm (psp -> adev ), & idx );
615
- /*
616
- * We allow sending PSP messages LOAD_ASD and UNLOAD_TA without acquiring
617
- * a lock in drm_dev_enter during driver unload because we must call
618
- * drm_dev_unplug as the beginning of unload driver sequence . It is very
619
- * crucial that userspace can't access device instances anymore.
620
- */
621
- if (!dev_entered )
622
- WARN_ON (psp -> cmd_buf_mem -> cmd_id != GFX_CMD_ID_LOAD_ASD &&
623
- psp -> cmd_buf_mem -> cmd_id != GFX_CMD_ID_UNLOAD_TA &&
624
- psp -> cmd_buf_mem -> cmd_id != GFX_CMD_ID_INVOKE_CMD );
625
-
626
613
memset (psp -> cmd_buf_mem , 0 , PSP_CMD_BUFFER_SIZE );
627
614
628
615
memcpy (psp -> cmd_buf_mem , cmd , sizeof (struct psp_gfx_cmd_resp ));
@@ -686,8 +673,6 @@ psp_cmd_submit_buf(struct psp_context *psp,
686
673
}
687
674
688
675
exit :
689
- if (dev_entered )
690
- drm_dev_exit (idx );
691
676
return ret ;
692
677
}
693
678
You can’t perform that action at this time.
0 commit comments