提交 b72450af 编写于 作者: C Candice Li 提交者: Jialin Zhang

drm/amdgpu: Check num_gfx_rings for gfx v9_0 rb setup.

stable inclusion
from stable-v5.10.143
commit 04102568671ee08d9de6a3e70db34cbd5eaa8228
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0U6

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=04102568671ee08d9de6a3e70db34cbd5eaa8228

--------------------------------

[ Upstream commit c3519383 ]

No need to set up rb when no gfx rings.
Signed-off-by: NCandice Li <candice.li@amd.com>
Reviewed-by: NHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 98b0333d
...@@ -2574,7 +2574,8 @@ static void gfx_v9_0_constants_init(struct amdgpu_device *adev) ...@@ -2574,7 +2574,8 @@ static void gfx_v9_0_constants_init(struct amdgpu_device *adev)
gfx_v9_0_tiling_mode_table_init(adev); gfx_v9_0_tiling_mode_table_init(adev);
gfx_v9_0_setup_rb(adev); if (adev->gfx.num_gfx_rings)
gfx_v9_0_setup_rb(adev);
gfx_v9_0_get_cu_info(adev, &adev->gfx.cu_info); gfx_v9_0_get_cu_info(adev, &adev->gfx.cu_info);
adev->gfx.config.db_debug2 = RREG32_SOC15(GC, 0, mmDB_DEBUG2); adev->gfx.config.db_debug2 = RREG32_SOC15(GC, 0, mmDB_DEBUG2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册