Navi14 support
Subsystems (3)
cover Navi14 support
Navi14 is a new asic from AMD. This patch set includes full support for this chip (gfx, sdma, vcn, display, powermanagment, etc.).
Alex Deucher (2):
drm/amdgpu: disable concurrent flushes on Navi14 drm/amdgpu: consolidate navi14 IP init
Bhawanpreet Lakha (4):
drm/amd/display: add nv14 cases to amdgpu_dm drm/amd/display: add NAVI14 in resource construct drm/amd/display: add dm block drm/amd/display: add ASICREV defines v2
Jack Xiao (2):
drm/amdgpu/gfx10: fix programming of SC_HIZ_TILE_FIFO_SIZE field drm/amdgpu: enable gfxoff code path for navi14
James Zhu (1):
drm/amdgpu: Enable VCN on navi14
Tao Zhou (1):
drm/amdgpu/gfx10: update gfx golden settings for navi14
Xiaojie Yuan (42):
drm/amdgpu: add navi14 asic type
drm/amdgpu: add gpu_info firmware for navi14
drm/amdgpu: set asic family and ip blocks for navi14 drm/amdgpu: add navi14 ucode loading method drm/amdgpu/soc15: initialize reg base for navi14 (v2) drm/amdgpu/discovery: init reg base offset via ip discovery for navi14 drm/amdgpu: increase max instance number for hw ip drm/amdgpu/gmc10: add navi14 support
drm/amdgpu/sdma5: add support for navi14 firmware drm/amdgpu/sdma5: add placeholder for navi14 golden settings drm/amdgpu/sdma5: add sdma5_0 golden settings for navi14 drm/amdgpu/sdma5: set clock gating for navi14 drm/amdgpu/gfx10: add support for navi14 firmware drm/amdgpu/gfx10: add placeholder for navi14 golden settings drm/amdgpu/gfx10: add gfx config for navi14 drm/amdgpu/gfx10: add clockgating support for navi14 drm/amdgpu: add me/mec configurations for navi14 drm/amdgpu: set rlc funcs for navi14
drm/amdgpu/gfx10: set tcp harvest for navi14 drm/amdgpu/gfx: add definition of mmCGTT_GS_NGG_CLK_CTRL drm/amdgpu/gfx10: add gfx v10_1_1 golden settings for navi14 drm/amdgpu/gfx: update gc_v10_1_1 golden setting drm/amdgpu/gfx10: update gfx golden settings for navi14 drm/amdgpu/soc15: add support for navi14
drm/amdgpu: add ip blocks for navi14
drm/amdgpu: enable virtual display for navi14 drm/amdgpu/psp: add psp support for navi14
drm/amdgpu: enable psp ip block for navi14
drm/amdgpu/psp: start rlc autoload after psp received rlcg for navi14 drm/amdgpu/smu11: add support for navi14
drm/amdgpu: enable sw smu ip for navi14
drm/amdgpu: skip to load ta firmware for navi14 drm/amd/display: skip to load dmcu firmware for navi14 drm/amdgpu: declare asd firmware for navi14 drm/amdgpu/mmhub2: set clock gating for navi14 drm/amdgpu/athub2: set clock gating for navi14
drm/amdgpu: enable clock gatings for navi14
drm/amdgpu: enable async gfx ring for navi14 drm/amd/display: disable display writeback for navi14 drm/amdgpu/nv: set vcn pg flag for navi14 drm/amd/powerplay: disable gfxoff for navi14 drm/amdgpu/vcn: enable indirect DPG SRAM mode for navi14
tiancyin (1):
drm/amdgpu/sdma5: update sdma5 golden settings for navi14
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 + drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 8 + drivers/gpu/drm/amd/amdgpu/athub_v2_0.c | 1 + drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 82 +- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 7 +- drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 1 + drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c | 66 + drivers/gpu/drm/amd/amdgpu/nv.c | 24 + drivers/gpu/drm/amd/amdgpu/nv.h | 1 + drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 10 +- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 26 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 + .../drm/amd/display/dc/dcn20/dcn20_resource.c | 23 +- .../gpu/drm/amd/display/include/dal_asic_id.h | 8 + .../gpu/drm/amd/include/navi14_ip_offset.h | 1119 +++++++++++++++++ drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 1 + drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 6 + include/drm/amd_asic_type.h | 1 + 25 files changed, 1398 insertions(+), 17 deletions(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c create mode 100644 drivers/gpu/drm/amd/include/navi14_ip_offset.h
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20190702202844.17001-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
PATCH 1/53 drm/amdgpu: add navi14 asic type
From: Xiaojie Yuan <[email protected]>
Add CHIP_NAVI14 to the list of asic types.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + include/drm/amd_asic_type.h | 1 + 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -98,6 +98,7 @@ static const char *amdgpu_asic_name[] = {"VEGA20" ,"RAVEN" ,"NAVI10" , +"NAVI14" , "LAST", };
include/drm/amd_asic_type.h +1 -0
@@ -50,6 +50,7 @@ enum amd_asic_type {CHIP_VEGA20 ,CHIP_RAVEN ,CHIP_NAVI10 , +CHIP_NAVI14 , CHIP_LAST, };
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/53 drm/amdgpu: add gpu_info firmware for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Add navi14 to case statement to load the GPU info firmware.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4 -0
@@ -70,6 +70,7 @@ MODULE_FIRMWARE("amdgpu/raven_gpu_info.bin");MODULE_FIRMWARE ("amdgpu/picasso_gpu_info.bin" );MODULE_FIRMWARE ("amdgpu/raven2_gpu_info.bin" );MODULE_FIRMWARE ("amdgpu/navi10_gpu_info.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_gpu_info.bin" );#define AMDGPU_RESUME_MS 2000
@@ -1387,6 +1388,9 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev)case CHIP_NAVI10 : chip_name ="navi10" ;break ; +case CHIP_NAVI14 : + chip_name ="navi14" ; +break ; }snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_gpu_info.bin" , chip_name);
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/53 drm/amdgpu: set asic family and ip blocks for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
same with navi10
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -1543,6 +1543,7 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)return r;break ;case CHIP_NAVI10 : +case CHIP_NAVI14 : adev->family =AMDGPU_FAMILY_NV ; r =nv_set_ip_blocks (adev);
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/53 drm/amdgpu: add navi14 ucode loading method
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Same as navi10.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1 -0
@@ -345,6 +345,7 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)case CHIP_VEGA12 :case CHIP_VEGA20 :case CHIP_NAVI10 : +case CHIP_NAVI14 :if (!load_type)return AMDGPU_FW_LOAD_DIRECT ;else
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 5/53 drm/amdgpu/soc15: initialize reg base for navi14 (v2)
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Initialize the IP register base offsets for navi14.
v2: squash in MP, CLK, THM updates
--- drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c | 53 + drivers/gpu/drm/amd/amdgpu/nv.c | 3 + drivers/gpu/drm/amd/amdgpu/nv.h | 1 + .../gpu/drm/amd/include/navi14_ip_offset.h | 1119 +++++++++++++++++ 5 files changed, 1177 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c create mode 100644 drivers/gpu/drm/amd/include/navi14_ip_offset.h
drivers/gpu/drm/amd/amdgpu/Makefile +1 -1
@@ -64,7 +64,7 @@ amdgpu-$(CONFIG_DRM_AMDGPU_SI)+= si.o gmc_v6_0.o gfx_v6_0.o si_ih.o si_dma.o dce amdgpu-y += \ vi.o mxgpu_vi.o nbio_v6_1.o soc15.o emu_soc.o mxgpu_ai.o nbio_v7_0.o vega10_reg_init.o \ - vega20_reg_init.o nbio_v7_4.o nbio_v2_3.o nv.o navi10_reg_init.o + vega20_reg_init.o nbio_v7_4.o nbio_v2_3.o nv.o navi10_reg_init.o navi14_reg_init.o # add DF block amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c new file +53 -0
53 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/nv.c +3 -0
@@ -329,6 +329,9 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)case CHIP_NAVI10 :navi10_reg_base_init (adev);break ; +case CHIP_NAVI14 : +navi14_reg_base_init (adev); +break ;default :return -EINVAL ; }
drivers/gpu/drm/amd/amdgpu/nv.h +1 -0
@@ -30,4 +30,5 @@ void nv_grbm_select(struct amdgpu_device *adev, u32 me, u32 pipe, u32 queue, u32 vmid);int nv_set_ip_blocks (struct amdgpu_device *adev);int navi10_reg_base_init (struct amdgpu_device *adev); +int navi14_reg_base_init (struct amdgpu_device *adev);#endif
drivers/gpu/drm/amd/include/navi14_ip_offset.h new file +1119 -0
1,119 lines not on this page · raw message
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 6/53 drm/amdgpu/discovery: init reg base offset via ip discovery for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Add IP discovery for navi14.
--- drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c +15 -2
@@ -29,8 +29,20 @@int navi14_reg_base_init (struct amdgpu_device *adev) { -/* HW has more IP blocks, only initialized the blocke needed by driver */ -uint32_t i; +int r, i; + +if (amdgpu_discovery) { + r =amdgpu_discovery_reg_base_init (adev); +if (r) { +DRM_WARN ("failed to init reg base from ip discovery table, " +"fallback to legacy init method\n" ); + goto legacy_init; + } + +return 0 ; + } + +legacy_init:for (i =0 ; i <MAX_INSTANCE ; ++i) { adev->reg_offset[GC_HWIP ][i] = (uint32_t *)(&(GC_BASE .instance[i])); adev->reg_offset[HDP_HWIP ][i] = (uint32_t *)(&(HDP_BASE .instance[i]));
@@ -49,5 +61,6 @@ int navi14_reg_base_init(struct amdgpu_device *adev) adev->reg_offset[THM_HWIP ][i] = (uint32_t *)(&(THM_BASE .instance[i])); adev->reg_offset[CLK_HWIP ][i] = (uint32_t *)(&(CLK_BASE .instance[i])); } +return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 7/53 drm/amdgpu: increase max instance number for hw ip
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
max instance number is 6 for navi10 and 7 for navi14, and we increase the reg_offset array size to avoid out-of-bound access
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -1
@@ -733,7 +733,7 @@ enum amd_hw_ip_block_type {MAX_HWIP }; -#define HWIP_MAX_INSTANCE 6 +#define HWIP_MAX_INSTANCE 7struct amd_powerplay {void *pp_handle;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 8/53 drm/amdgpu/gmc10: add navi14 support
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
same as navi10
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +4 -1
@@ -522,6 +522,7 @@ static int gmc_v10_0_mc_init(struct amdgpu_device *adev)if (amdgpu_gart_size ==-1 ) {switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 :default : adev->gmc.gart_size =512ULL <<20 ;break ;
@@ -599,9 +600,10 @@ static int gmc_v10_0_sw_init(void *handle) adev->gmc.vram_type =amdgpu_atomfirmware_get_vram_type (adev);switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 :/* * To fulfill 4-level page support, -* vm size is 256TB (48bit), maximum size of Navi10, +* vm size is 256TB (48bit), maximum size of Navi10/Navi14, * block size 512 (9bit) */ amdgpu_vm_adjust_size (adev,256 *1024 ,9 ,3 ,48 );
@@ -715,6 +717,7 @@ static void gmc_v10_0_init_golden_registers(struct amdgpu_device *adev) {switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 :break ;default :break ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 9/53 drm/amdgpu/sdma5: add support for navi14 firmware
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Add support for navi14 sdma firmware files.
--- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +6 -0
@@ -42,6 +42,9 @@MODULE_FIRMWARE ("amdgpu/navi10_sdma.bin" );MODULE_FIRMWARE ("amdgpu/navi10_sdma1.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_sdma.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_sdma1.bin" ); +#define SDMA1_REG_OFFSET 0x600#define SDMA0_HYP_DEC_REG_START 0x5880#define SDMA0_HYP_DEC_REG_END 0x5893
@@ -143,6 +146,9 @@ static int sdma_v5_0_init_microcode(struct amdgpu_device *adev)case CHIP_NAVI10 : chip_name ="navi10" ;break ; +case CHIP_NAVI14 : + chip_name ="navi14" ; +break ;default :BUG (); }
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 10/53 drm/amdgpu/sdma5: add placeholder for navi14 golden settings
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
To be filled in once they are available.
--- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +11 -0
@@ -85,6 +85,9 @@ static const struct soc15_reg_golden golden_settings_sdma_5[] = {static const struct soc15_reg_golden golden_settings_sdma_nv10[] = { }; +static const struct soc15_reg_golden golden_settings_sdma_nv14[] = { +}; +static u32 sdma_v5_0_get_reg_offset (struct amdgpu_device *adev,u32 instance,u32 internal_offset) {u32 base;
@@ -114,6 +117,14 @@ static void sdma_v5_0_init_golden_registers(struct amdgpu_device *adev) golden_settings_sdma_nv10, (const u32)ARRAY_SIZE(golden_settings_sdma_nv10));break ; +case CHIP_NAVI14 : +soc15_program_register_sequence (adev, + golden_settings_sdma_5, + (const u32 )ARRAY_SIZE (golden_settings_sdma_5)); +soc15_program_register_sequence (adev, + golden_settings_sdma_nv14, + (const u32 )ARRAY_SIZE (golden_settings_sdma_nv14)); +break ;default :break ; }
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 11/53 drm/amdgpu/sdma5: add sdma5_0 golden settings for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Add settings for navi14.
--- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +4 -2
@@ -62,7 +62,6 @@ static const struct soc15_reg_golden golden_settings_sdma_5[] = {SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC0_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC1_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC2_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC3_RB_WPTR_POLL_CNTL,0x0000fff0 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC4_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC5_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ), SOC15_REG_GOLDEN_VALUE(GC, 0, mmSDMA0_RLC6_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
@@ -74,7 +73,6 @@ static const struct soc15_reg_golden golden_settings_sdma_5[] = {SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC0_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC1_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC2_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC3_RB_WPTR_POLL_CNTL,0x0000fff0 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC4_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC5_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ), SOC15_REG_GOLDEN_VALUE(GC, 0, mmSDMA1_RLC6_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
@@ -83,9 +81,13 @@ static const struct soc15_reg_golden golden_settings_sdma_5[] = { };static const struct soc15_reg_golden golden_settings_sdma_nv10[] = { +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC3_RB_WPTR_POLL_CNTL,0x0000fff0 ,0x00403000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC3_RB_WPTR_POLL_CNTL,0x0000fff0 ,0x00403000 ), };static const struct soc15_reg_golden golden_settings_sdma_nv14[] = { +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC3_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC3_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ), };static u32 sdma_v5_0_get_reg_offset (struct amdgpu_device *adev,u32 instance,u32 internal_offset)
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 12/53 drm/amdgpu/sdma5: update sdma5 golden settings for navi14
In reply to a message not in the archiveFrom: tiancyin <[email protected]>
add new registers:
mmSDMA0_RLC3_RB_WPTR_POLL_CNTL, mmSDMA1_RLC3_RB_WPTR_POLL_CNTL
--- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +2 -0
@@ -62,6 +62,7 @@ static const struct soc15_reg_golden golden_settings_sdma_5[] = {SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC0_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC1_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC2_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC3_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC4_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA0_RLC5_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ), SOC15_REG_GOLDEN_VALUE(GC, 0, mmSDMA0_RLC6_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
@@ -73,6 +74,7 @@ static const struct soc15_reg_golden golden_settings_sdma_5[] = {SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC0_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC1_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC2_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC3_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC4_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSDMA1_RLC5_RB_WPTR_POLL_CNTL,0xfffffff7 ,0x00403000 ), SOC15_REG_GOLDEN_VALUE(GC, 0, mmSDMA1_RLC6_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 13/53 drm/amdgpu/sdma5: set clock gating for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
same as navi10.
--- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +1 -0
@@ -1493,6 +1493,7 @@ static int sdma_v5_0_set_clockgating_state(void *handle,switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 :sdma_v5_0_update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ? true : false); sdma_v5_0_update_medium_grain_light_sleep(adev,
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 14/53 drm/amdgpu/gfx10: add support for navi14 firmware
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Add support for navi14 CP firmware files.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +10 -0
@@ -63,6 +63,13 @@ MODULE_FIRMWARE("amdgpu/navi10_mec.bin");MODULE_FIRMWARE ("amdgpu/navi10_mec2.bin" );MODULE_FIRMWARE ("amdgpu/navi10_rlc.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_ce.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_pfp.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_me.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_mec.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_mec2.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_rlc.bin" ); +static const struct soc15_reg_golden golden_settings_gc_10_1[] = {SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCB_HW_CONTROL_4,0xffffffff ,0x00400014 ),
@@ -474,6 +481,9 @@ static int gfx_v10_0_init_microcode(struct amdgpu_device *adev)case CHIP_NAVI10 : chip_name ="navi10" ;break ; +case CHIP_NAVI14 : + chip_name ="navi14" ; +break ;default :BUG (); }
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 15/53 drm/amdgpu/gfx10: add placeholder for navi14 golden settings
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
To be filled in once available.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +13 -0
@@ -116,6 +116,11 @@ static const struct soc15_reg_golden golden_settings_gc_10_0_nv10[] =/* Pending on emulation bring up */ }; +static const struct soc15_reg_golden golden_settings_gc_10_1_nv14[] = +{ +/* Pending on emulation bring up */ +}; +static void gfx_v10_0_set_ring_funcs (struct amdgpu_device *adev);static void gfx_v10_0_set_irq_funcs (struct amdgpu_device *adev);static void gfx_v10_0_set_gds_init (struct amdgpu_device *adev);
@@ -250,6 +255,14 @@ static void gfx_v10_0_init_golden_registers(struct amdgpu_device *adev) golden_settings_gc_10_0_nv10, (const u32)ARRAY_SIZE(golden_settings_gc_10_0_nv10));break ; +case CHIP_NAVI14 : +soc15_program_register_sequence (adev, + golden_settings_gc_10_1, + (const u32 )ARRAY_SIZE (golden_settings_gc_10_1)); +soc15_program_register_sequence (adev, + golden_settings_gc_10_1_nv14, + (const u32 )ARRAY_SIZE (golden_settings_gc_10_1_nv14)); +break ;default :break ; }
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 16/53 drm/amdgpu/gfx10: add gfx config for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Add gfx config details for navi14.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +8 -0
@@ -1042,6 +1042,14 @@ static void gfx_v10_0_gpu_early_init(struct amdgpu_device *adev) adev->gfx.config.sc_earlyz_tile_fifo_size =0x4C0 ; gb_addr_config =RREG32_SOC15 (GC ,0 , mmGB_ADDR_CONFIG);break ; +case CHIP_NAVI14 : + adev->gfx.config.max_hw_contexts =8 ; + adev->gfx.config.sc_prim_fifo_size_frontend =0x20 ; + adev->gfx.config.sc_prim_fifo_size_backend =0x100 ; + adev->gfx.config.sc_hiz_tile_fifo_size =0x80 ; + adev->gfx.config.sc_earlyz_tile_fifo_size =0x4C0 ; + gb_addr_config =RREG32_SOC15 (GC ,0 , mmGB_ADDR_CONFIG); +break ;default :BUG ();break ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 17/53 drm/amdgpu/gfx10: add clockgating support for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Same as navi10.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -4078,6 +4078,7 @@ static int gfx_v10_0_set_clockgating_state(void *handle,switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 :gfx_v10_0_update_gfx_clock_gating (adev, state ==AMD_CG_STATE_GATE ? true : false);break ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 18/53 drm/amdgpu: add me/mec configurations for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Add navi14 to appropriate cases.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -1150,6 +1150,7 @@ static int gfx_v10_0_sw_init(void *handle)switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 : adev->gfx.me.num_me =1 ; adev->gfx.me.num_pipe_per_me =2 ; adev->gfx.me.num_queue_per_pipe =1 ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 19/53 drm/amdgpu: set rlc funcs for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Same as navi10.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -5124,6 +5124,7 @@ static void gfx_v10_0_set_rlc_funcs(struct amdgpu_device *adev) {switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 : adev->gfx.rlc.funcs = &gfx_v10_0_rlc_funcs;break ;default :
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 20/53 drm/amdgpu/gfx10: set tcp harvest for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Update settings for navi14.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +3 -1
@@ -1476,6 +1476,7 @@ static void gfx_v10_0_tcp_harvest(struct amdgpu_device *adev)/* * GCRD_TARGETS_DISABLE field contains * for Navi10: GL1C=[18:15], SQC=[14:10], TCP=[9:0] +* for Navi14: GL1C=[21:18], SQC=[17:12], TCP=[11:0] */ u32 gcrd_targets_disable_mask = amdgpu_gfx_create_bitmask( 2 * max_wgp_per_sh + /* TCP */
@@ -1484,6 +1485,7 @@ static void gfx_v10_0_tcp_harvest(struct amdgpu_device *adev)/* * UTCL1_UTCL0_INVREQ_DISABLE field contains * for Navi10: SQG=[24], RMI=[23:20], SQC=[19:10], TCP=[9:0] +* for Navi14: SQG=[28], RMI=[27:24], SQC=[23:12], TCP=[11:0] */ u32 utcl_invreq_disable_mask = amdgpu_gfx_create_bitmask( 2 * max_wgp_per_sh + /* TCP */
@@ -1491,7 +1493,7 @@ static void gfx_v10_0_tcp_harvest(struct amdgpu_device *adev)4 +/* RMI */ 1); /* SQG */ -if (adev->asic_type ==CHIP_NAVI10 ) { +if (adev->asic_type ==CHIP_NAVI10 || adev->asic_type ==CHIP_NAVI14 ) {mutex_lock (&adev->grbm_idx_mutex);for (i =0 ; i < adev->gfx.config.max_shader_engines; i++) {for (j =0 ; j < adev->gfx.config.max_sh_per_se; j++) {
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 21/53 drm/amdgpu/gfx: add definition of mmCGTT_GS_NGG_CLK_CTRL
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Needed for clockgating.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +3 -0
@@ -56,6 +56,9 @@#define F32_CE_PROGRAM_RAM_SIZE 65536#define RLCG_UCODE_LOADING_START_ADDRESS 0x00002000L +#define mmCGTT_GS_NGG_CLK_CTRL 0x5087 +#define mmCGTT_GS_NGG_CLK_CTRL_BASE_IDX 1 +MODULE_FIRMWARE ("amdgpu/navi10_ce.bin" );MODULE_FIRMWARE ("amdgpu/navi10_pfp.bin" );MODULE_FIRMWARE ("amdgpu/navi10_me.bin" );
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 22/53 drm/amdgpu/gfx10: add gfx v10_1_1 golden settings for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Add golden settings for navi14.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 42 ++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +40 -2
@@ -119,6 +119,44 @@ static const struct soc15_reg_golden golden_settings_gc_10_0_nv10[] =/* Pending on emulation bring up */ }; +static const struct soc15_reg_golden golden_settings_gc_10_1_1[] = +{ +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCB_HW_CONTROL_4,0xffffffff ,0x003c0014 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_GS_NGG_CLK_CTRL,0xffff8fff ,0xffff8100 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_IA_CLK_CTRL,0xffff0fff ,0xffff0100 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_SQ_CLK_CTRL,0xf8ff0fff ,0x60000100 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_SQG_CLK_CTRL,0x40000ff0 ,0x40000100 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_VGT_CLK_CTRL,0xffff8fff ,0xffff8100 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_WD_CLK_CTRL,0xffff8fff ,0xffff8100 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCH_PIPE_STEER,0xffffffff ,0xe4e4e4e4 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCH_VC5_ENABLE,0x00000002 ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_SD_CNTL,0x800007ff ,0x000005ff ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG,0xffffffff ,0x20000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG2,0xffffffff ,0x00000420 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG4,0xffffffff ,0x04800000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DFSM_TILES_IN_FLIGHT,0x0000ffff ,0x0000003f ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_LAST_OF_BURST_CONFIG,0xffffffff ,0x03860204 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGB_ADDR_CONFIG,0x0c1800ff ,0x00000043 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGCR_GENERAL_CNTL,0x1ff0ffff ,0x00000500 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGE_PRIV_CONTROL,0x000007ff ,0x000001fe ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL1_PIPE_STEER,0xffffffff ,0xe4e4e4e4 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2_PIPE_STEER_0,0x77777777 ,0x13203120 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2_PIPE_STEER_1,0x77777777 ,0x13203120 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2A_ADDR_MATCH_MASK,0xffffffff ,0xffffffe7 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_ADDR_MATCH_MASK,0xffffffff ,0xffffffe7 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL2,0xffffffff ,0x1402002f ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL3,0xffffbfff ,0x00000188 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_ENHANCE,0x3fffffff ,0x08000009 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_LINE_STIPPLE_STATE,0x0000ff0f ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmRMI_SPARE,0xffffffff ,0xffff3101 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_SX_EXPORT_BUFFER_SIZES,0xffffffff ,0x08000400 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_SX_SCOREBOARD_BUFFER_SIZES,0xffffffff ,0x00400040 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_ALU_CLK_CTRL,0xffffffff ,0xffffffff ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_LDS_CLK_CTRL,0xffffffff ,0xffffffff ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTA_CNTL_AUX,0xfff7ffff ,0x01030000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmUTCL1_CTRL,0xffffffff ,0x00000000 ), +}; +static const struct soc15_reg_golden golden_settings_gc_10_1_nv14[] = {/* Pending on emulation bring up */
@@ -260,8 +298,8 @@ static void gfx_v10_0_init_golden_registers(struct amdgpu_device *adev)break ;case CHIP_NAVI14 :soc15_program_register_sequence (adev, - golden_settings_gc_10_1, - (const u32 )ARRAY_SIZE (golden_settings_gc_10_1)); + golden_settings_gc_10_1_1, + (const u32 )ARRAY_SIZE (golden_settings_gc_10_1_1));soc15_program_register_sequence (adev, golden_settings_gc_10_1_nv14, (const u32 )ARRAY_SIZE (golden_settings_gc_10_1_nv14));
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 23/53 drm/amdgpu/gfx: update gc_v10_1_1 golden setting
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Updated settings for hw team.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -1
@@ -145,7 +145,7 @@ static const struct soc15_reg_golden golden_settings_gc_10_1_1[] =SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2A_ADDR_MATCH_MASK,0xffffffff ,0xffffffe7 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_ADDR_MATCH_MASK,0xffffffff ,0xffffffe7 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL2,0xffffffff ,0x1402002f ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL3,0xffffbfff ,0x00000188 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL3,0xffffbfff ,0x00002188 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_ENHANCE,0x3fffffff ,0x08000009 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_LINE_STIPPLE_STATE,0x0000ff0f ,0x00000000 ), SOC15_REG_GOLDEN_VALUE(GC, 0, mmRMI_SPARE, 0xffffffff, 0xffff3101),
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 24/53 drm/amdgpu/gfx10: update gfx golden settings for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Add updated settings from hw team.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +5 -3
@@ -124,6 +124,7 @@ static const struct soc15_reg_golden golden_settings_gc_10_1_1[] =SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCB_HW_CONTROL_4,0xffffffff ,0x003c0014 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_GS_NGG_CLK_CTRL,0xffff8fff ,0xffff8100 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_IA_CLK_CTRL,0xffff0fff ,0xffff0100 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_SPI_CLK_CTRL,0xc0000000 ,0xc0000100 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_SQ_CLK_CTRL,0xf8ff0fff ,0x60000100 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_SQG_CLK_CTRL,0x40000ff0 ,0x40000100 ), SOC15_REG_GOLDEN_VALUE(GC, 0, mmCGTT_VGT_CLK_CTRL, 0xffff8fff, 0xffff8100),
@@ -133,6 +134,7 @@ static const struct soc15_reg_golden golden_settings_gc_10_1_1[] =SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_SD_CNTL,0x800007ff ,0x000005ff ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG,0xffffffff ,0x20000000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG2,0xffffffff ,0x00000420 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG3,0x00000200 ,0x00000200 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG4,0xffffffff ,0x04800000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DFSM_TILES_IN_FLIGHT,0x0000ffff ,0x0000003f ), SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_LAST_OF_BURST_CONFIG, 0xffffffff, 0x03860204),
@@ -144,14 +146,14 @@ static const struct soc15_reg_golden golden_settings_gc_10_1_1[] =SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2_PIPE_STEER_1,0x77777777 ,0x13203120 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2A_ADDR_MATCH_MASK,0xffffffff ,0xffffffe7 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_ADDR_MATCH_MASK,0xffffffff ,0xffffffe7 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CGTT_SCLK_CTRL,0xffff0fff ,0x10000100 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL2,0xffffffff ,0x1402002f ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL3,0xffffbfff ,0x00002188 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL3,0xffffbfff ,0x00000188 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_ENHANCE,0x3fffffff ,0x08000009 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_LINE_STIPPLE_STATE,0x0000ff0f ,0x00000000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmRMI_SPARE,0xffffffff ,0xffff3101 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_SX_EXPORT_BUFFER_SIZES,0xffffffff ,0x08000400 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_SX_SCOREBOARD_BUFFER_SIZES,0xffffffff ,0x00400040 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_ALU_CLK_CTRL,0xffffffff ,0xffffffff ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_ARB_CONFIG,0x00000133 ,0x00000130 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_LDS_CLK_CTRL,0xffffffff ,0xffffffff ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTA_CNTL_AUX,0xfff7ffff ,0x01030000 ), SOC15_REG_GOLDEN_VALUE(GC, 0, mmUTCL1_CTRL, 0xffffffff, 0x00000000),
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 25/53 drm/amdgpu/gfx10: update gfx golden settings for navi14
In reply to a message not in the archiveFrom: Tao Zhou <[email protected]>
Updated settings from hw team.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +4 -4
@@ -135,28 +135,28 @@ static const struct soc15_reg_golden golden_settings_gc_10_1_1[] =SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG,0xffffffff ,0x20000000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG2,0xffffffff ,0x00000420 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG3,0x00000200 ,0x00000200 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG4,0xffffffff ,0x04800000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG4,0xffffffff ,0x04900000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DFSM_TILES_IN_FLIGHT,0x0000ffff ,0x0000003f ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_LAST_OF_BURST_CONFIG,0xffffffff ,0x03860204 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGB_ADDR_CONFIG,0x0c1800ff ,0x00000043 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGCR_GENERAL_CNTL,0x1ff0ffff ,0x00000500 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGE_PRIV_CONTROL,0x000007ff ,0x000001fe ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL1_PIPE_STEER,0xffffffff ,0xe4e4e4e4 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2_PIPE_STEER_0,0x77777777 ,0x13203120 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2_PIPE_STEER_1,0x77777777 ,0x13203120 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2A_ADDR_MATCH_MASK,0xffffffff ,0xffffffe7 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_ADDR_MATCH_MASK,0xffffffff ,0xffffffe7 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CGTT_SCLK_CTRL,0xffff0fff ,0x10000100 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL2,0xffffffff ,0x1402002f ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL3,0xffffbfff ,0x00000188 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_ENHANCE,0x3fffffff ,0x08000009 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_ENHANCE_1,0x00400000 ,0x04440000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_LINE_STIPPLE_STATE,0x0000ff0f ,0x00000000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmRMI_SPARE,0xffffffff ,0xffff3101 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_ALU_CLK_CTRL,0xffffffff ,0xffffffff ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_ARB_CONFIG,0x00000133 ,0x00000130 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_LDS_CLK_CTRL,0xffffffff ,0xffffffff ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTA_CNTL_AUX,0xfff7ffff ,0x01030000 ), - SOC15_REG_GOLDEN_VALUE(GC, 0, mmUTCL1_CTRL, 0xffffffff, 0x00000000), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTCP_CNTL,0x60000010 ,0x479c0010 ), + SOC15_REG_GOLDEN_VALUE(GC, 0, mmUTCL1_CTRL, 0x00800000, 0x00800000), }; static const struct soc15_reg_golden golden_settings_gc_10_1_nv14[] =
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 26/53 drm/amdgpu/gfx10: fix programming of SC_HIZ_TILE_FIFO_SIZE field
In reply to a message not in the archiveFrom: Jack Xiao <[email protected]>
max fifo size is 128 and PA_SC_FIFO_SIZE[20:15]=SC_HIZ_TILE_FIFO_SIZE field is programmed in units of two entries, but 6 bits is insufficient to hold value 128/2 = 64, so set this field as 0 which is interpreted by the hardware as maximum physical fifo size(128).
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -1
@@ -1089,7 +1089,7 @@ static void gfx_v10_0_gpu_early_init(struct amdgpu_device *adev) adev->gfx.config.max_hw_contexts =8 ; adev->gfx.config.sc_prim_fifo_size_frontend =0x20 ; adev->gfx.config.sc_prim_fifo_size_backend =0x100 ; - adev->gfx.config.sc_hiz_tile_fifo_size =0x80 ; + adev->gfx.config.sc_hiz_tile_fifo_size =0x0 ; adev->gfx.config.sc_earlyz_tile_fifo_size =0x4C0 ; gb_addr_config =RREG32_SOC15 (GC ,0 , mmGB_ADDR_CONFIG);break ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 27/53 drm/amdgpu/soc15: add support for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
same as navi10
--- drivers/gpu/drm/amd/amdgpu/nv.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/nv.c +6 -0
@@ -516,6 +516,11 @@ static int nv_common_early_init(void *handle)AMD_PG_SUPPORT_ATHUB ; adev->external_rev_id = adev->rev_id +0x1 ;break ; +case CHIP_NAVI14 : + adev->cg_flags =0 ; + adev->pg_flags =0 ; + adev->external_rev_id = adev->rev_id +0x1 ;/* ??? */ +break ;default :/* FIXME: not supported yet */ return -EINVAL ;
@@ -708,6 +713,7 @@ static int nv_common_set_clockgating_state(void *handle,switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 : adev->nbio_funcs->update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ? true : false); adev->nbio_funcs->update_medium_grain_light_sleep(adev,
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 28/53 drm/amdgpu: add ip blocks for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Add the initial IP blocks for navi14
--- drivers/gpu/drm/amd/amdgpu/nv.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/nv.c +7 -0
@@ -362,6 +362,13 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->enable_mes)amdgpu_device_ip_block_add (adev, &mes_v10_1_ip_block);break ; +case CHIP_NAVI14 : +amdgpu_device_ip_block_add (adev, &nv_common_ip_block); +amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block); +amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block); +amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block); +amdgpu_device_ip_block_add (adev, &sdma_v5_0_ip_block); +break ;default :return -EINVAL ; }
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 29/53 drm/amdgpu: enable virtual display for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Virtual display is a sw based kms interface for virtualization and emulation.
--- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 1 + drivers/gpu/drm/amd/amdgpu/nv.c | 2 ++ 2 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1 -0
@@ -456,6 +456,7 @@ static int dce_virtual_hw_init(void *handle)case CHIP_VEGA12 :case CHIP_VEGA20 :case CHIP_NAVI10 : +case CHIP_NAVI14 :break ;default :DRM_ERROR ("Virtual display unsupported ASIC type: 0x%X\n" , adev->asic_type);
drivers/gpu/drm/amd/amdgpu/nv.c +2 -0
@@ -366,6 +366,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &nv_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block); +if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev)) +amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &sdma_v5_0_ip_block);break ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 30/53 drm/amdgpu/psp: add psp support for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Same as navi10.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -0
@@ -57,6 +57,7 @@ static int psp_early_init(void *handle) psp->autoload_supported = false;break ;case CHIP_NAVI10 : +case CHIP_NAVI14 :psp_v11_0_set_psp_funcs (psp); psp->autoload_supported = true;break ;
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +6 -2
@@ -41,6 +41,7 @@ MODULE_FIRMWARE("amdgpu/vega20_asd.bin");MODULE_FIRMWARE ("amdgpu/vega20_ta.bin" );MODULE_FIRMWARE ("amdgpu/navi10_sos.bin" );MODULE_FIRMWARE ("amdgpu/navi10_asd.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_sos.bin" );/* address block */ #define smnMP1_FIRMWARE_FLAGS 0x3010024
@@ -70,6 +71,9 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)case CHIP_NAVI10 : chip_name ="navi10" ;break ; +case CHIP_NAVI14 : + chip_name ="navi14" ; +break ;default :BUG (); }
@@ -532,7 +536,7 @@ psp_v11_0_sram_map(struct amdgpu_device *adev,case AMDGPU_UCODE_ID_RLC_G : *sram_offset =0x2000 ; -if (adev->asic_type !=CHIP_NAVI10 ) { +if (adev->asic_type !=CHIP_NAVI10 || adev->asic_type !=CHIP_NAVI14 ) { *sram_addr_reg_offset =SOC15_REG_OFFSET (GC ,0 , mmRLC_GPM_UCODE_ADDR); *sram_data_reg_offset =SOC15_REG_OFFSET (GC ,0 , mmRLC_GPM_UCODE_DATA); }
@@ -544,7 +548,7 @@ psp_v11_0_sram_map(struct amdgpu_device *adev,case AMDGPU_UCODE_ID_SDMA0 : *sram_offset =0x0 ; -if (adev->asic_type !=CHIP_NAVI10 ) { +if (adev->asic_type !=CHIP_NAVI10 || adev->asic_type !=CHIP_NAVI14 ) { *sram_addr_reg_offset =SOC15_REG_OFFSET (SDMA0 ,0 , mmSDMA0_UCODE_ADDR); *sram_data_reg_offset =SOC15_REG_OFFSET (SDMA0 ,0 , mmSDMA0_UCODE_DATA); }
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 31/53 drm/amdgpu: enable psp ip block for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Same as navi10.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/nv.c +1 -0
@@ -366,6 +366,7 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &nv_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block); +amdgpu_device_ip_block_add (adev, &psp_v11_0_ip_block);if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 32/53 drm/amdgpu/psp: start rlc autoload after psp received rlcg for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Update for navi14.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +3 -1
@@ -983,7 +983,9 @@ static int psp_np_fw_load(struct psp_context *psp)return ret;/* Start rlc autoload after psp recieved all the gfx firmware */ -if (ucode->ucode_id ==AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM ) { +if (ucode->ucode_id ==AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM || + (adev->asic_type ==CHIP_NAVI14 && + ucode->ucode_id ==AMDGPU_UCODE_ID_RLC_G )) { ret =psp_rlc_autoload (psp);if (ret) {DRM_ERROR ("Failed to start rlc autoload\n" );
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 33/53 drm/amdgpu/smu11: add support for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Same as navi10.
--- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 1 + drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 5 +++++ 2 files changed, 6 insertions(+)
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +1 -0
@@ -515,6 +515,7 @@ static int smu_set_funcs(struct amdgpu_device *adev)switch (adev->asic_type) {case CHIP_VEGA20 :case CHIP_NAVI10 : +case CHIP_NAVI14 :if (adev->pm.pp_feature &PP_OVERDRIVE_MASK ) smu->od_enabled = true;smu_v11_0_set_smu_funcs (smu);
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +5 -0
@@ -42,6 +42,7 @@MODULE_FIRMWARE ("amdgpu/vega20_smc.bin" );MODULE_FIRMWARE ("amdgpu/navi10_smc.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_smc.bin" );#define SMU11_VOLTAGE_SCALE 4
@@ -153,6 +154,9 @@ static int smu_v11_0_init_microcode(struct smu_context *smu)case CHIP_NAVI10 : chip_name ="navi10" ;break ; +case CHIP_NAVI14 : + chip_name ="navi14" ; +break ;default :BUG (); }
@@ -1698,6 +1702,7 @@ void smu_v11_0_set_smu_funcs(struct smu_context *smu)vega20_set_ppt_funcs (smu);break ;case CHIP_NAVI10 : +case CHIP_NAVI14 :navi10_set_ppt_funcs (smu);break ;default :
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 34/53 drm/amdgpu: enable sw smu ip for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
same as navi10.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/nv.c +2 -0
@@ -367,6 +367,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block);amdgpu_device_ip_block_add (adev, &psp_v11_0_ip_block); +if (is_support_sw_smu (adev)) +amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block);if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 35/53 drm/amd/display: add nv14 cases to amdgpu_dm
In reply to a message not in the archiveFrom: Bhawanpreet Lakha <[email protected]>
Mostly shared with navi10.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +7 -0
@@ -2214,6 +2214,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)case CHIP_RAVEN :#if defined(CONFIG_DRM_AMD_DC_DCN2_0 )case CHIP_NAVI10 : +case CHIP_NAVI14 :#endif if (dcn10_register_irq_handlers (dm->adev)) {DRM_ERROR ("DM: Failed to initialize IRQ\n" );
@@ -2447,6 +2448,11 @@ static int dm_early_init(void *handle) adev->mode_info.num_hpd =6 ; adev->mode_info.num_dig =6 ;break ; +case CHIP_NAVI14 : + adev->mode_info.num_crtc =5 ; + adev->mode_info.num_hpd =5 ; + adev->mode_info.num_dig =5 ; +break ;#endif default :DRM_ERROR ("Unsupported ASIC type: 0x%X\n" , adev->asic_type);
@@ -2742,6 +2748,7 @@ fill_plane_buffer_attributes(struct amdgpu_device *adev, adev->asic_type == CHIP_VEGA20 ||#if defined(CONFIG_DRM_AMD_DC_DCN2_0 ) adev->asic_type == CHIP_NAVI10 || + adev->asic_type == CHIP_NAVI14 || #endif adev->asic_type == CHIP_RAVEN) {/* Fill GFX9 params */
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 36/53 drm/amd/display: add NAVI14 in resource construct
In reply to a message not in the archiveFrom: Bhawanpreet Lakha <[email protected]>
Change the pipes to 5 if the asic is nv14
This is a temp patch, there was some refactor in the dml part of the code. which is not in this branch. for now this is good, we can implement this properly once we have an updated branch.
--- .../drm/amd/display/dc/dcn20/dcn20_resource.c | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +19 -4
@@ -693,6 +693,16 @@ static const struct dc_plane_cap plane_cap = { .fp16 = 1 } }; +static const struct resource_caps res_cap_nv14 = { + .num_timing_generator =5 , + .num_opp =5 , + .num_video_plane =5 , + .num_audio =6 , + .num_stream_encoder =5 , + .num_pll =5 , + .num_dwb =1 , + .num_ddc =5 , +};static const struct dc_debug_options debug_defaults_drv = { .disable_dmcu = true,
@@ -2866,17 +2876,22 @@ static bool construct(struct irq_service_init_data init_data; ctx->dc_bios->regs = &bios_regs; - - pool->base.res_cap = &res_cap_nv10; pool->base.funcs = &dcn20_res_pool_funcs; +if (ASICREV_IS_NAVI14_M (ctx->asic_id.hw_internal_rev)) { + pool->base.res_cap = &res_cap_nv14; + pool->base.pipe_count =5 ; + pool->base.mpcc_count =5 ; + }else { + pool->base.res_cap = &res_cap_nv10; + pool->base.pipe_count =6 ; + pool->base.mpcc_count =6 ; + }/************************************************* * Resource + asic cap harcoding * *************************************************/ pool->base.underlay_pipe_index =NO_UNDERLAY_PIPE ; - pool->base.pipe_count =6 ; - pool->base.mpcc_count =6 ; dc->caps.max_downscale_ratio =200 ; dc->caps.i2c_speed_in_khz =100 ; dc->caps.max_cursor_size =256 ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 37/53 drm/amd/display: add dm block
In reply to a message not in the archiveFrom: Bhawanpreet Lakha <[email protected]>
enable DC for navi14.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + drivers/gpu/drm/amd/amdgpu/nv.c | 2 ++ 2 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -2431,6 +2431,7 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)#endif #if defined(CONFIG_DRM_AMD_DC_DCN2_0 )case CHIP_NAVI10 : +case CHIP_NAVI14 :#endif return amdgpu_dc !=0 ;#endif
drivers/gpu/drm/amd/amdgpu/nv.c +2 -0
@@ -371,6 +371,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block);if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block); +else if (amdgpu_device_has_dc_support (adev)) +amdgpu_device_ip_block_add (adev, &dm_ip_block);amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &sdma_v5_0_ip_block);break ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 38/53 drm/amd/display: add ASICREV defines v2
In reply to a message not in the archiveFrom: Bhawanpreet Lakha <[email protected]>
Add revs for navi10 and 14.
--- drivers/gpu/drm/amd/display/include/dal_asic_id.h | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/amd/display/include/dal_asic_id.h +8 -0
@@ -151,6 +151,14 @@#define FAMILY_NV 143/* DCN 2*/ +enum { +NV_NAVI10_P_A0 =1 , +NV_NAVI14_M_A0 =20 , +NV_UNKNOWN =0xFF +}; + +#define ASICREV_IS_NAVI10_P (eChipRev) (eChipRev < NV_NAVI14_M_A0) +#define ASICREV_IS_NAVI14_M (eChipRev) ((eChipRev >= NV_NAVI14_M_A0) && (eChipRev < NV_UNKNOWN))#endif /*
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 39/53 drm/amdgpu: skip to load ta firmware for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Not relevant on navi14.
--- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -0
@@ -157,6 +157,7 @@ static int psp_v11_0_init_microcode(struct psp_context *psp) }break ;case CHIP_NAVI10 : +case CHIP_NAVI14 :break ;default :BUG ();
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 40/53 drm/amd/display: skip to load dmcu firmware for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
not needed for navi14 at the moment.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -0
@@ -668,6 +668,7 @@ static int load_dmcu_fw(struct amdgpu_device *adev)case CHIP_VEGA12 :case CHIP_VEGA20 :case CHIP_NAVI10 : +case CHIP_NAVI14 :return 0 ;case CHIP_RAVEN :if (ASICREV_IS_PICASSO (adev->external_rev_id))
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 41/53 drm/amdgpu: Enable VCN on navi14
In reply to a message not in the archiveFrom: James Zhu <[email protected]>
Add navi14 vcn firmware, and enable VCN on navi14.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 5 +++++ drivers/gpu/drm/amd/amdgpu/nv.c | 1 + 2 files changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +5 -0
@@ -46,11 +46,13 @@#define FIRMWARE_PICASSO "amdgpu/picasso_vcn.bin"#define FIRMWARE_RAVEN2 "amdgpu/raven2_vcn.bin"#define FIRMWARE_NAVI10 "amdgpu/navi10_vcn.bin" +#define FIRMWARE_NAVI14 "amdgpu/navi14_vcn.bin"MODULE_FIRMWARE (FIRMWARE_RAVEN );MODULE_FIRMWARE (FIRMWARE_PICASSO );MODULE_FIRMWARE (FIRMWARE_RAVEN2 );MODULE_FIRMWARE (FIRMWARE_NAVI10 ); +MODULE_FIRMWARE (FIRMWARE_NAVI14 );static void amdgpu_vcn_idle_work_handler (struct work_struct *work);
@@ -79,6 +81,9 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev) (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) adev->vcn.indirect_sram = true;break ; +case CHIP_NAVI14 : + fw_name =FIRMWARE_NAVI14 ; +break ;default :return -EINVAL ; }
drivers/gpu/drm/amd/amdgpu/nv.c +1 -0
@@ -375,6 +375,7 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &dm_ip_block);amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &sdma_v5_0_ip_block); +amdgpu_device_ip_block_add (adev, &vcn_v2_0_ip_block);break ;default :return -EINVAL ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 42/53 drm/amdgpu: declare asd firmware for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
So the dependency gets properly tracked.
--- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -0
@@ -42,6 +42,7 @@ MODULE_FIRMWARE("amdgpu/vega20_ta.bin");MODULE_FIRMWARE ("amdgpu/navi10_sos.bin" );MODULE_FIRMWARE ("amdgpu/navi10_asd.bin" );MODULE_FIRMWARE ("amdgpu/navi14_sos.bin" ); +MODULE_FIRMWARE ("amdgpu/navi14_asd.bin" );/* address block */ #define smnMP1_FIRMWARE_FLAGS 0x3010024
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 43/53 drm/amdgpu/mmhub2: set clock gating for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
same as navi10.
--- drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c +1 -0
@@ -405,6 +405,7 @@ int mmhub_v2_0_set_clockgating(struct amdgpu_device *adev,switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 :mmhub_v2_0_update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ? true : false); mmhub_v2_0_update_medium_grain_light_sleep(adev,
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 44/53 drm/amdgpu/athub2: set clock gating for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
same as navi10.
--- drivers/gpu/drm/amd/amdgpu/athub_v2_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/athub_v2_0.c +1 -0
@@ -74,6 +74,7 @@ int athub_v2_0_set_clockgating(struct amdgpu_device *adev,switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 :athub_v2_0_update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ? true : false); athub_v2_0_update_medium_grain_light_sleep(adev,
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 45/53 drm/amdgpu: enable clock gatings for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Set appropriate CG flags for navi14.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +14 -1
@@ -532,7 +532,20 @@ static int nv_common_early_init(void *handle) adev->external_rev_id = adev->rev_id +0x1 ;break ;case CHIP_NAVI14 : - adev->cg_flags =0 ; + adev->cg_flags =AMD_CG_SUPPORT_GFX_MGCG | +AMD_CG_SUPPORT_GFX_CGCG | +AMD_CG_SUPPORT_IH_CG | +AMD_CG_SUPPORT_HDP_MGCG | +AMD_CG_SUPPORT_HDP_LS | +AMD_CG_SUPPORT_SDMA_MGCG | +AMD_CG_SUPPORT_SDMA_LS | +AMD_CG_SUPPORT_MC_MGCG | +AMD_CG_SUPPORT_MC_LS | +AMD_CG_SUPPORT_ATHUB_MGCG | +AMD_CG_SUPPORT_ATHUB_LS | +AMD_CG_SUPPORT_VCN_MGCG | +AMD_CG_SUPPORT_BIF_MGCG | +AMD_CG_SUPPORT_BIF_LS ; adev->pg_flags =0 ; adev->external_rev_id = adev->rev_id +0x1 ;/* ??? */ break ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 46/53 drm/amdgpu: enable async gfx ring for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Same as navi10.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +3 -3
@@ -389,7 +389,7 @@ int amdgpu_gfx_mqd_sw_init(struct amdgpu_device *adev,dev_warn (adev->dev,"no memory to create MQD backup for ring %s\n" , ring->name); } -if (adev->asic_type ==CHIP_NAVI10 && amdgpu_async_gfx_ring) { +if (adev->asic_type >=CHIP_NAVI10 && amdgpu_async_gfx_ring) {/* create MQD for each KGQ */ for (i =0 ; i < adev->gfx.num_gfx_rings; i++) { ring = &adev->gfx.gfx_ring[i];
@@ -437,7 +437,7 @@ void amdgpu_gfx_mqd_sw_fini(struct amdgpu_device *adev)struct amdgpu_ring *ring =NULL ;int i; -if (adev->asic_type ==CHIP_NAVI10 && amdgpu_async_gfx_ring) { +if (adev->asic_type >=CHIP_NAVI10 && amdgpu_async_gfx_ring) {for (i =0 ; i < adev->gfx.num_gfx_rings; i++) { ring = &adev->gfx.gfx_ring[i];kfree (adev->gfx.me.mqd_backup[i]);
@@ -456,7 +456,7 @@ void amdgpu_gfx_mqd_sw_fini(struct amdgpu_device *adev) } ring = &adev->gfx.kiq.ring; -if (adev->asic_type ==CHIP_NAVI10 && amdgpu_async_gfx_ring) +if (adev->asic_type >=CHIP_NAVI10 && amdgpu_async_gfx_ring)kfree (adev->gfx.me.mqd_backup[AMDGPU_MAX_GFX_RINGS ]);kfree (adev->gfx.mec.mqd_backup[AMDGPU_MAX_COMPUTE_RINGS ]); amdgpu_bo_free_kernel(&ring->mqd_obj,
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 47/53 drm/amd/display: disable display writeback for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
not used.
--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +1 -1
@@ -700,7 +700,7 @@ static const struct resource_caps res_cap_nv14 = { .num_audio = 6, .num_stream_encoder = 5, .num_pll = 5, - .num_dwb = 1, + .num_dwb = 0, .num_ddc = 5, };
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 48/53 drm/amdgpu/nv: set vcn pg flag for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Enable VCN power gating by default.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +1 -1
@@ -546,7 +546,7 @@ static int nv_common_early_init(void *handle)AMD_CG_SUPPORT_VCN_MGCG |AMD_CG_SUPPORT_BIF_MGCG |AMD_CG_SUPPORT_BIF_LS ; - adev->pg_flags =0 ; + adev->pg_flags =AMD_PG_SUPPORT_VCN ; adev->external_rev_id = adev->rev_id +0x1 ;/* ??? */ break ;default :
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 49/53 drm/amd/powerplay: disable gfxoff for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
gfxoff doesn't work on navi14 yet, so disable it for now
--- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +3 -0
@@ -536,6 +536,9 @@ static int smu_early_init(void *handle) smu->pm_enabled = !!amdgpu_dpm;mutex_init (&smu->mutex); +if (adev->asic_type ==CHIP_NAVI14 ) + adev->pm.pp_feature &= ~PP_GFXOFF_MASK ; +return smu_set_funcs (adev); }
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 50/53 drm/amdgpu/vcn: enable indirect DPG SRAM mode for navi14
In reply to a message not in the archiveFrom: Xiaojie Yuan <[email protected]>
Enable VCN dynamic powergating for navi14.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 3 +++ drivers/gpu/drm/amd/amdgpu/nv.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +3 -0
@@ -83,6 +83,9 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)break ;case CHIP_NAVI14 : fw_name =FIRMWARE_NAVI14 ; +if ((adev->firmware.load_type ==AMDGPU_FW_LOAD_PSP ) && + (adev->pg_flags &AMD_PG_SUPPORT_VCN_DPG )) + adev->vcn.indirect_sram = true;break ;default :return -EINVAL ;
drivers/gpu/drm/amd/amdgpu/nv.c +2 -1
@@ -546,7 +546,8 @@ static int nv_common_early_init(void *handle)AMD_CG_SUPPORT_VCN_MGCG |AMD_CG_SUPPORT_BIF_MGCG |AMD_CG_SUPPORT_BIF_LS ; - adev->pg_flags =AMD_PG_SUPPORT_VCN ; + adev->pg_flags =AMD_PG_SUPPORT_VCN | +AMD_PG_SUPPORT_VCN_DPG ; adev->external_rev_id = adev->rev_id +0x1 ;/* ??? */ break ;default :
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 51/53 drm/amdgpu: enable gfxoff code path for navi14
In reply to a message not in the archiveFrom: Jack Xiao <[email protected]>
Based on navi10 gfxoff logic, enable the related code path for navi14.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 4 +--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 + drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 +- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 3 --- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 1 + 5 files changed, 4 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -3
@@ -983,9 +983,7 @@ static int psp_np_fw_load(struct psp_context *psp)return ret;/* Start rlc autoload after psp recieved all the gfx firmware */ -if (ucode->ucode_id ==AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM || - (adev->asic_type ==CHIP_NAVI14 && - ucode->ucode_id ==AMDGPU_UCODE_ID_RLC_G )) { +if (ucode->ucode_id ==AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM ) { ret =psp_rlc_autoload (psp);if (ret) {DRM_ERROR ("Failed to start rlc autoload\n" );
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -4105,6 +4105,7 @@ static int gfx_v10_0_set_powergating_state(void *handle,bool enable = (state ==AMD_PG_STATE_GATE ) ? true : false;switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 :if (!enable) {amdgpu_gfx_off_ctrl (adev, false);cancel_delayed_work_sync (&adev->gfx.gfx_off_delay_work);
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +1 -1
@@ -245,7 +245,7 @@ static void gmc_v10_0_flush_gpu_tlb(struct amdgpu_device *adev,gmc_v10_0_flush_vm_hub (adev, vmid,AMDGPU_MMHUB ,0 );if (!adev->mman.buffer_funcs_enabled || !adev->ib_pool_ready || - adev->asic_type !=CHIP_NAVI10 ) { + adev->asic_type >CHIP_NAVI14 ) {gmc_v10_0_flush_vm_hub (adev, vmid,AMDGPU_GFXHUB ,0 );mutex_unlock (&adev->mman.gtt_window_lock);return ;
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +0 -3
@@ -536,9 +536,6 @@ static int smu_early_init(void *handle) smu->pm_enabled = !!amdgpu_dpm;mutex_init (&smu->mutex); -if (adev->asic_type ==CHIP_NAVI14 ) - adev->pm.pp_feature &= ~PP_GFXOFF_MASK ; -return smu_set_funcs (adev); }
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +1 -0
@@ -1349,6 +1349,7 @@ static int smu_v11_0_gfx_off_control(struct smu_context *smu, bool enable)case CHIP_VEGA20 :break ;case CHIP_NAVI10 : +case CHIP_NAVI14 :if (!(adev->pm.pp_feature &PP_GFXOFF_MASK ))return 0 ;mutex_lock (&smu->mutex);
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 52/53 drm/amdgpu: disable concurrent flushes on Navi14
In reply to a message not in the archiveSame thing applies to navi14 as navi10.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c +2 -1
@@ -368,7 +368,8 @@ static int amdgpu_vmid_grab_used(struct amdgpu_vm *vm,* are broken on Navi10 and Navi14. */ if (needs_flush && (adev->asic_type <CHIP_VEGA10 || - adev->asic_type ==CHIP_NAVI10 )) + adev->asic_type ==CHIP_NAVI10 || + adev->asic_type ==CHIP_NAVI14 ))continue ;/* Good, we can use this VMID. Remember this submission as
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 53/53 drm/amdgpu: consolidate navi14 IP init
In reply to a message not in the archiveIt's the same as navi10.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-)
drivers/gpu/drm/amd/amdgpu/nv.c +1 -15
@@ -342,6 +342,7 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)switch (adev->asic_type) {case CHIP_NAVI10 : +case CHIP_NAVI14 :amdgpu_device_ip_block_add (adev, &nv_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block);
@@ -362,21 +363,6 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->enable_mes)amdgpu_device_ip_block_add (adev, &mes_v10_1_ip_block);break ; -case CHIP_NAVI14 : -amdgpu_device_ip_block_add (adev, &nv_common_ip_block); -amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block); -amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block); -amdgpu_device_ip_block_add (adev, &psp_v11_0_ip_block); -if (is_support_sw_smu (adev)) -amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block); -if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev)) -amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block); -else if (amdgpu_device_has_dc_support (adev)) -amdgpu_device_ip_block_add (adev, &dm_ip_block); -amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block); -amdgpu_device_ip_block_add (adev, &sdma_v5_0_ip_block); -amdgpu_device_ip_block_add (adev, &vcn_v2_0_ip_block); -break ;default :return -EINVAL ; }
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx