drm/amdgpu/gfx8: update PA_SC_RASTER_CONFIG:PKR_MAP only
authorFlora Cui <Flora.Cui@amd.com>
Tue, 8 Dec 2015 03:23:29 +0000 (11:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Dec 2015 16:13:41 +0000 (11:13 -0500)
Use default value as a base.

Signed-off-by: Flora Cui <Flora.Cui@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c

index 6816a1a60a9796ed65d6cc50dbdc35bfac506d91..b20369e4ea74c1a3300e466754b2b1f657a9976c 100644 (file)
@@ -2630,7 +2630,7 @@ static void gfx_v8_0_setup_rb(struct amdgpu_device *adev,
        mutex_lock(&adev->grbm_idx_mutex);
        for (i = 0; i < se_num; i++) {
                gfx_v8_0_select_se_sh(adev, i, 0xffffffff);
-               data = 0;
+               data = RREG32(mmPA_SC_RASTER_CONFIG);
                for (j = 0; j < sh_per_se; j++) {
                        switch (enabled_rbs & 3) {
                        case 0: