From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sn1nam01on0069.outbound.protection.outlook.com ([104.47.32.69]:25824 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751321AbdFEHiE (ORCPT ); Mon, 5 Jun 2017 03:38:04 -0400 Date: Mon, 5 Jun 2017 15:41:02 +0800 From: Huang Rui To: Alex Deucher CC: , Alex Deucher , Subject: Re: [PATCH] drm/amdgpu/gfx6: properly cache mc_arb_ramcfg Message-ID: <20170605074101.GA23929@hr-amur2> References: <1496435611-11611-1-git-send-email-alexander.deucher@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1496435611-11611-1-git-send-email-alexander.deucher@amd.com> Sender: stable-owner@vger.kernel.org List-ID: On Fri, Jun 02, 2017 at 04:33:31PM -0400, Alex Deucher wrote: > This was missing for gfx6. > > Signed-off-by: Alex Deucher > Cc: stable@vger.kernel.org Acked-by: Huang Rui > --- > drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c > index 1351f92..c2b4e9f 100644 > --- a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c > @@ -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; > -- > 2.5.5 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx