Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: wire up defines, shifts and masks through SI code

To be able to remove as much duplicated defines, the different files
containing definitions, shifts and masks must be properly included.

Once done, the code will be migrated where needed to shifts and masks and
proper defines, before removing useless defines in the end.

Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Alexandre Demers and committed by
Alex Deucher
de81b86e 8e46cabf

+44 -5
+16 -2
drivers/gpu/drm/amd/amdgpu/si.c
··· 35 35 #include "amdgpu_vce.h" 36 36 #include "atom.h" 37 37 #include "amd_pcie.h" 38 + 38 39 #include "si_dpm.h" 39 40 #include "sid.h" 40 41 #include "si_ih.h" ··· 45 44 #include "dce_v6_0.h" 46 45 #include "si.h" 47 46 #include "uvd_v3_1.h" 48 - #include "amdgpu_vkms.h" 47 + 48 + #include "uvd/uvd_4_0_d.h" 49 + 50 + #include "smu/smu_6_0_d.h" 51 + #include "smu/smu_6_0_sh_mask.h" 52 + 49 53 #include "gca/gfx_6_0_d.h" 54 + #include "gca/gfx_6_0_sh_mask.h" 55 + 50 56 #include "oss/oss_1_0_d.h" 51 57 #include "oss/oss_1_0_sh_mask.h" 58 + 52 59 #include "gmc/gmc_6_0_d.h" 60 + #include"gmc/gmc_6_0_sh_mask.h" 61 + 53 62 #include "dce/dce_6_0_d.h" 54 - #include "uvd/uvd_4_0_d.h" 63 + #include "dce/dce_6_0_sh_mask.h" 64 + 55 65 #include "bif/bif_3_0_d.h" 56 66 #include "bif/bif_3_0_sh_mask.h" 67 + #include "si_enums.h" 57 68 58 69 #include "amdgpu_dm.h" 70 + #include "amdgpu_vkms.h" 59 71 60 72 static const u32 tahiti_golden_registers[] = 61 73 {
+2
drivers/gpu/drm/amd/amdgpu/si_dma.c
··· 27 27 #include "si.h" 28 28 #include "sid.h" 29 29 30 + #include "oss/oss_1_0_d.h" 31 + #include "oss/oss_1_0_sh_mask.h" 30 32 const u32 sdma_offsets[SDMA_MAX_INSTANCE] = 31 33 { 32 34 DMA0_REGISTER_OFFSET,
+1
drivers/gpu/drm/amd/amdgpu/si_ih.c
··· 27 27 #include "amdgpu_ih.h" 28 28 #include "sid.h" 29 29 #include "si_ih.h" 30 + 30 31 #include "oss/oss_1_0_d.h" 31 32 #include "oss/oss_1_0_sh_mask.h" 32 33
+19 -3
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
··· 30 30 #include "amdgpu_atombios.h" 31 31 #include "amdgpu_dpm_internal.h" 32 32 #include "amd_pcie.h" 33 - #include "sid.h" 34 - #include "r600_dpm.h" 35 - #include "si_dpm.h" 36 33 #include "atom.h" 34 + #include "gfx_v6_0.h" 35 + #include "r600_dpm.h" 36 + #include "sid.h" 37 + #include "si_dpm.h" 37 38 #include "../include/pptable.h" 38 39 #include <linux/math64.h> 39 40 #include <linux/seq_file.h> 40 41 #include <linux/firmware.h> 41 42 #include <legacy_dpm.h> 43 + 44 + #include "bif/bif_3_0_d.h" 45 + #include "bif/bif_3_0_sh_mask.h" 46 + 47 + #include "dce/dce_6_0_d.h" 48 + #include "dce/dce_6_0_sh_mask.h" 49 + 50 + #include "gca/gfx_6_0_d.h" 51 + #include "gca/gfx_6_0_sh_mask.h" 52 + 53 + #include"gmc/gmc_6_0_d.h" 54 + #include"gmc/gmc_6_0_sh_mask.h" 55 + 56 + #include "smu/smu_6_0_d.h" 57 + #include "smu/smu_6_0_sh_mask.h" 42 58 43 59 #define MC_CG_ARB_FREQ_F0 0x0a 44 60 #define MC_CG_ARB_FREQ_F1 0x0b
+6
drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
··· 30 30 #include "amdgpu_ucode.h" 31 31 #include "sislands_smc.h" 32 32 33 + #include "smu/smu_6_0_d.h" 34 + #include "smu/smu_6_0_sh_mask.h" 35 + 36 + #include "gca/gfx_6_0_d.h" 37 + #include "gca/gfx_6_0_sh_mask.h" 38 + 33 39 static int si_set_smc_sram_address(struct amdgpu_device *adev, 34 40 u32 smc_address, u32 limit) 35 41 {