mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
drm/amdgpu/mes: set correct mes ring ready flag
Set corresponding ready flag for mes ring when enable or disable mes ring. Signed-off-by: Jack Xiao <Jack.Xiao@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ac9257f0f5
commit
636774860a
|
|
@ -1124,6 +1124,7 @@ static int mes_v10_1_hw_init(void *handle)
|
|||
* with MES enabled.
|
||||
*/
|
||||
adev->gfx.kiq.ring.sched.ready = false;
|
||||
adev->mes.ring.sched.ready = true;
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
@ -1136,6 +1137,8 @@ static int mes_v10_1_hw_fini(void *handle)
|
|||
{
|
||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||
|
||||
adev->mes.ring.sched.ready = false;
|
||||
|
||||
mes_v10_1_enable(adev, false);
|
||||
|
||||
if (adev->firmware.load_type == AMDGPU_FW_LOAD_DIRECT) {
|
||||
|
|
|
|||
|
|
@ -1190,6 +1190,9 @@ static int mes_v11_0_hw_init(void *handle)
|
|||
|
||||
static int mes_v11_0_hw_fini(void *handle)
|
||||
{
|
||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||
|
||||
adev->mes.ring.sched.ready = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user