Re: 回复: 回复: 回复: 回复: [PATCH 2/4] drm/amdgpu: UVD avoid memory allocation during IB test

2021-09-10 Thread Christian König
Yeah, that indeed sounds buggy. Probably easiest to just down write the reset sem. Christian. Am 10.09.21 um 13:48 schrieb Pan, Xinhui: [AMD Official Use Only] looks like amdgpu_debugfs_test_ib_show use direct IB submission too. It parks the ring scheduler thread, and down read the reset_sem

回复: 回复: 回复: 回复: [PATCH 2/4] drm/amdgpu: UVD avoid memory allocation during IB test

2021-09-10 Thread Pan, Xinhui
[AMD Official Use Only] looks like amdgpu_debugfs_test_ib_show use direct IB submission too. It parks the ring scheduler thread, and down read the reset_sem to avoid race with gpu reset. BUT, amdgpu_debugfs_test_ib_show itself could be called in parrel. Need fix it. _