Skip to content

Commit 20fb56d

Browse files
Oxalinalexdeucher
authored andcommitted
drm/amdgpu: prepare DCE6 uniformisation with DCE8 and DCE10
Let's begin the cleanup in sid.h to prevent warnings and errors when wiring sid.h into dce_v6_0.c. This is a bigger cleanup. Many defines found under sid.h have already been properly moved into the different "_d.h" and "_sh_mask.h", so they should have been already removed from sid.h and properly linked in where needed. Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 5b1fa87 commit 20fb56d

File tree

3 files changed

+43
-371
lines changed

3 files changed

+43
-371
lines changed

drivers/gpu/drm/amd/amdgpu/dce_v6_0.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,24 @@
4040
#include "amdgpu_connectors.h"
4141
#include "amdgpu_display.h"
4242

43+
#include "dce_v6_0.h"
44+
4345
#include "bif/bif_3_0_d.h"
4446
#include "bif/bif_3_0_sh_mask.h"
47+
4548
#include "oss/oss_1_0_d.h"
4649
#include "oss/oss_1_0_sh_mask.h"
50+
4751
#include "gca/gfx_6_0_d.h"
4852
#include "gca/gfx_6_0_sh_mask.h"
53+
#include "gca/gfx_7_2_enum.h"
54+
4955
#include "gmc/gmc_6_0_d.h"
5056
#include "gmc/gmc_6_0_sh_mask.h"
57+
5158
#include "dce/dce_6_0_d.h"
5259
#include "dce/dce_6_0_sh_mask.h"
53-
#include "gca/gfx_7_2_enum.h"
54-
#include "dce_v6_0.h"
60+
5561
#include "si_enums.h"
5662

5763
static void dce_v6_0_set_display_funcs(struct amdgpu_device *adev);

drivers/gpu/drm/amd/amdgpu/si.c

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,41 +1124,41 @@ static struct amdgpu_allowed_register_entry si_allowed_read_registers[] = {
11241124
{mmCP_STALLED_STAT3},
11251125
{GB_ADDR_CONFIG},
11261126
{MC_ARB_RAMCFG},
1127-
{GB_TILE_MODE0},
1128-
{GB_TILE_MODE1},
1129-
{GB_TILE_MODE2},
1130-
{GB_TILE_MODE3},
1131-
{GB_TILE_MODE4},
1132-
{GB_TILE_MODE5},
1133-
{GB_TILE_MODE6},
1134-
{GB_TILE_MODE7},
1135-
{GB_TILE_MODE8},
1136-
{GB_TILE_MODE9},
1137-
{GB_TILE_MODE10},
1138-
{GB_TILE_MODE11},
1139-
{GB_TILE_MODE12},
1140-
{GB_TILE_MODE13},
1141-
{GB_TILE_MODE14},
1142-
{GB_TILE_MODE15},
1143-
{GB_TILE_MODE16},
1144-
{GB_TILE_MODE17},
1145-
{GB_TILE_MODE18},
1146-
{GB_TILE_MODE19},
1147-
{GB_TILE_MODE20},
1148-
{GB_TILE_MODE21},
1149-
{GB_TILE_MODE22},
1150-
{GB_TILE_MODE23},
1151-
{GB_TILE_MODE24},
1152-
{GB_TILE_MODE25},
1153-
{GB_TILE_MODE26},
1154-
{GB_TILE_MODE27},
1155-
{GB_TILE_MODE28},
1156-
{GB_TILE_MODE29},
1157-
{GB_TILE_MODE30},
1158-
{GB_TILE_MODE31},
1127+
{mmGB_TILE_MODE0},
1128+
{mmGB_TILE_MODE1},
1129+
{mmGB_TILE_MODE2},
1130+
{mmGB_TILE_MODE3},
1131+
{mmGB_TILE_MODE4},
1132+
{mmGB_TILE_MODE5},
1133+
{mmGB_TILE_MODE6},
1134+
{mmGB_TILE_MODE7},
1135+
{mmGB_TILE_MODE8},
1136+
{mmGB_TILE_MODE9},
1137+
{mmGB_TILE_MODE10},
1138+
{mmGB_TILE_MODE11},
1139+
{mmGB_TILE_MODE12},
1140+
{mmGB_TILE_MODE13},
1141+
{mmGB_TILE_MODE14},
1142+
{mmGB_TILE_MODE15},
1143+
{mmGB_TILE_MODE16},
1144+
{mmGB_TILE_MODE17},
1145+
{mmGB_TILE_MODE18},
1146+
{mmGB_TILE_MODE19},
1147+
{mmGB_TILE_MODE20},
1148+
{mmGB_TILE_MODE21},
1149+
{mmGB_TILE_MODE22},
1150+
{mmGB_TILE_MODE23},
1151+
{mmGB_TILE_MODE24},
1152+
{mmGB_TILE_MODE25},
1153+
{mmGB_TILE_MODE26},
1154+
{mmGB_TILE_MODE27},
1155+
{mmGB_TILE_MODE28},
1156+
{mmGB_TILE_MODE29},
1157+
{mmGB_TILE_MODE30},
1158+
{mmGB_TILE_MODE31},
11591159
{CC_RB_BACKEND_DISABLE, true},
1160-
{GC_USER_RB_BACKEND_DISABLE, true},
1161-
{PA_SC_RASTER_CONFIG, true},
1160+
{mmGC_USER_RB_BACKEND_DISABLE, true},
1161+
{mmPA_SC_RASTER_CONFIG, true},
11621162
};
11631163

11641164
static uint32_t si_get_register_value(struct amdgpu_device *adev,

0 commit comments

Comments
 (0)