mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/amdgpu: do optimization for psp command submit
In the psp command submit logic, the function msleep(1) delayed too long, Changing it to usleep_range(10, 100) to have a better performance. Signed-off-by: Peng Ju Zhou <PengJu.Zhou@amd.com> Reviewed-by: Emily.Deng <Emily.Deng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d45af863a6
commit
57995aa8ff
1 changed files with 2 additions and 2 deletions
|
@ -249,7 +249,7 @@ psp_cmd_submit_buf(struct psp_context *psp,
|
|||
{
|
||||
int ret;
|
||||
int index;
|
||||
int timeout = 2000;
|
||||
int timeout = 20000;
|
||||
bool ras_intr = false;
|
||||
bool skip_unsupport = false;
|
||||
|
||||
|
@ -282,7 +282,7 @@ psp_cmd_submit_buf(struct psp_context *psp,
|
|||
ras_intr = amdgpu_ras_intr_triggered();
|
||||
if (ras_intr)
|
||||
break;
|
||||
msleep(1);
|
||||
usleep_range(10, 100);
|
||||
amdgpu_asic_invalidate_hdp(psp->adev, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue