提交 12edb943 编写于 作者: X Xiong Aifei 提交者: guzitao

sw64: gpu: replace '_memset_c_io' by 'memset_io'

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5GDKC

--------------------------------
Signed-off-by: NXiong Aifei <xiongaifei@wxiat.com>
Signed-off-by: NGu Zitao <guzitao@wxiat.com>
上级 5384a3a3
......@@ -1355,7 +1355,7 @@ static int gfx_v8_0_mec_init(struct amdgpu_device *adev)
}
#if IS_ENABLED(CONFIG_SW64)
_memset_c_io(hpd, 0, mec_hpd_size);
memset_io(hpd, 0, mec_hpd_size);
#else
memset(hpd, 0, mec_hpd_size);
#endif
......@@ -4654,7 +4654,7 @@ static int gfx_v8_0_kiq_init_queue(struct amdgpu_ring *ring)
mutex_unlock(&adev->srbm_mutex);
} else {
#if IS_ENABLED(CONFIG_SW64)
_memset_c_io((void *)mqd, 0, sizeof(struct vi_mqd_allocation));
memset_io((void *)mqd, 0, sizeof(struct vi_mqd_allocation));
#else
memset((void *)mqd, 0, sizeof(struct vi_mqd_allocation));
#endif
......
......@@ -240,7 +240,7 @@ int radeon_vce_resume(struct radeon_device *rdev)
}
#ifdef __sw_64__
_memset_c_io(cpu_addr, 0, radeon_bo_size(rdev->vce.vcpu_bo));
memset_io(cpu_addr, 0, radeon_bo_size(rdev->vce.vcpu_bo));
#else
memset(cpu_addr, 0, radeon_bo_size(rdev->vce.vcpu_bo));
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册