|
@@ -4811,7 +4811,7 @@ static int gfx_v8_0_kiq_init_queue(struct amdgpu_ring *ring)
|
|
|
|
|
|
gfx_v8_0_kiq_setting(ring);
|
|
|
|
|
|
- if (adev->gfx.in_reset) { /* for GPU_RESET case */
|
|
|
+ if (adev->in_sriov_reset) { /* for GPU_RESET case */
|
|
|
/* reset MQD to a clean status */
|
|
|
if (adev->gfx.mec.mqd_backup[mqd_idx])
|
|
|
memcpy(mqd, adev->gfx.mec.mqd_backup[mqd_idx], sizeof(struct vi_mqd_allocation));
|
|
@@ -4848,7 +4848,7 @@ static int gfx_v8_0_kcq_init_queue(struct amdgpu_ring *ring)
|
|
|
struct vi_mqd *mqd = ring->mqd_ptr;
|
|
|
int mqd_idx = ring - &adev->gfx.compute_ring[0];
|
|
|
|
|
|
- if (!adev->gfx.in_reset && !adev->gfx.in_suspend) {
|
|
|
+ if (!adev->in_sriov_reset && !adev->gfx.in_suspend) {
|
|
|
memset((void *)mqd, 0, sizeof(struct vi_mqd_allocation));
|
|
|
((struct vi_mqd_allocation *)mqd)->dynamic_cu_mask = 0xFFFFFFFF;
|
|
|
((struct vi_mqd_allocation *)mqd)->dynamic_rb_mask = 0xFFFFFFFF;
|
|
@@ -4860,7 +4860,7 @@ static int gfx_v8_0_kcq_init_queue(struct amdgpu_ring *ring)
|
|
|
|
|
|
if (adev->gfx.mec.mqd_backup[mqd_idx])
|
|
|
memcpy(adev->gfx.mec.mqd_backup[mqd_idx], mqd, sizeof(struct vi_mqd_allocation));
|
|
|
- } else if (adev->gfx.in_reset) { /* for GPU_RESET case */
|
|
|
+ } else if (adev->in_sriov_reset) { /* for GPU_RESET case */
|
|
|
/* reset MQD to a clean status */
|
|
|
if (adev->gfx.mec.mqd_backup[mqd_idx])
|
|
|
memcpy(mqd, adev->gfx.mec.mqd_backup[mqd_idx], sizeof(struct vi_mqd_allocation));
|