Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6653ebd4 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/gfx6: properly cache mc_arb_ramcfg



This was missing for gfx6.

Acked-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent a7049de1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1475,7 +1475,8 @@ static void gfx_v6_0_gpu_init(struct amdgpu_device *adev)
	WREG32(mmBIF_FB_EN, BIF_FB_EN__FB_READ_EN_MASK | BIF_FB_EN__FB_WRITE_EN_MASK);

	mc_shared_chmap = RREG32(mmMC_SHARED_CHMAP);
	mc_arb_ramcfg = RREG32(mmMC_ARB_RAMCFG);
	adev->gfx.config.mc_arb_ramcfg = RREG32(mmMC_ARB_RAMCFG);
	mc_arb_ramcfg = adev->gfx.config.mc_arb_ramcfg;

	adev->gfx.config.num_tile_pipes = adev->gfx.config.max_tile_pipes;
	adev->gfx.config.mem_max_burst_length_bytes = 256;