linux/drivers/gpu/drm/amd/amdgpu
Arunpravin Paneer Selvam 34e5a54327 Revert "drm/amdgpu: remove TOPDOWN flags when allocating VRAM in large bar system"
This reverts commit c105518679.

This patch disables the TOPDOWN flag for APU and few dGPU cards
which has the VRAM size equal to the BAR size.

When we enable the TOPDOWN flag, we get the free blocks at
the highest available memory region and we don't split the
lower order blocks. This change is required to keep off
the fragmentation related issues particularly in ASIC
which has VRAM space <= 500MiB

Hence, we are reverting this patch.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2270
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2023-06-13 17:12:41 -04:00
..
aldebaran.c
aldebaran.h
aldebaran_reg_init.c
amdgpu.h drm/amdgpu: add some basic elements for multiple XCD case 2023-04-14 13:47:49 -04:00
amdgpu_acp.c
amdgpu_acp.h
amdgpu_acpi.c drm/amd: Make lack of ACPI_FADT_LOW_POWER_S0 or CONFIG_AMD_PMC louder during suspend path 2023-06-07 16:54:34 -04:00
amdgpu_afmt.c
amdgpu_amdkfd.c drm/amdgpu: rename num_doorbells 2023-04-13 00:19:42 -04:00
amdgpu_amdkfd.h
amdgpu_amdkfd_aldebaran.c
amdgpu_amdkfd_arcturus.c
amdgpu_amdkfd_arcturus.h
amdgpu_amdkfd_fence.c
amdgpu_amdkfd_gfx_v7.c
amdgpu_amdkfd_gfx_v8.c
amdgpu_amdkfd_gfx_v9.c
amdgpu_amdkfd_gfx_v9.h
amdgpu_amdkfd_gfx_v10.c
amdgpu_amdkfd_gfx_v10_3.c
amdgpu_amdkfd_gfx_v11.c
amdgpu_amdkfd_gpuvm.c drm/amdgpu: DROP redundant drm_prime_sg_to_dma_addr_array 2023-04-11 18:03:44 -04:00
amdgpu_atombios.c
amdgpu_atombios.h
amdgpu_atomfirmware.c
amdgpu_atomfirmware.h
amdgpu_atpx_handler.c
amdgpu_benchmark.c
amdgpu_bios.c
amdgpu_bo_list.c
amdgpu_bo_list.h
amdgpu_cgs.c
amdgpu_connectors.c
amdgpu_connectors.h
amdgpu_cs.c drm/amdgpu: drop redundant sched job cleanup when cs is aborted 2023-05-03 23:10:02 -04:00
amdgpu_cs.h
amdgpu_csa.c
amdgpu_csa.h
amdgpu_ctx.c
amdgpu_ctx.h
amdgpu_debugfs.c
amdgpu_debugfs.h
amdgpu_device.c drm/amdgpu: Fix vram recover doesn't work after whole GPU reset (v2) 2023-05-11 01:11:11 -04:00
amdgpu_df.h
amdgpu_discovery.c drm/amdgpu: add common ip block for GC 9.4.3 2023-04-14 13:47:49 -04:00
amdgpu_discovery.h
amdgpu_display.c
amdgpu_display.h
amdgpu_dma_buf.c
amdgpu_dma_buf.h
amdgpu_doorbell.h drm/amdgpu: include protection for doorbell.h 2023-04-13 00:19:42 -04:00
amdgpu_drv.c drm/amdgpu: add missing radeon secondary PCI ID 2023-06-13 17:02:51 -04:00
amdgpu_drv.h
amdgpu_eeprom.c
amdgpu_eeprom.h
amdgpu_encoders.c
amdgpu_fdinfo.c
amdgpu_fdinfo.h
amdgpu_fence.c drm/amdgpu: skip disabling fence driver src_irqs when device is unplugged 2023-05-18 09:57:09 -04:00
amdgpu_fru_eeprom.c
amdgpu_fru_eeprom.h
amdgpu_fw_attestation.c
amdgpu_fw_attestation.h
amdgpu_gart.c
amdgpu_gart.h
amdgpu_gds.h
amdgpu_gem.c
amdgpu_gem.h
amdgpu_gfx.c drm/amdgpu: drop gfx_v11_0_cp_ecc_error_irq_funcs 2023-05-11 01:10:19 -04:00
amdgpu_gfx.h drm/amdgpu: add some basic elements for multiple XCD case 2023-04-14 13:47:49 -04:00
amdgpu_gfxhub.h
amdgpu_gmc.c drm/amdgpu: enable tmz by default for GC 11.0.1 2023-05-31 22:28:43 -04:00
amdgpu_gmc.h drm/amdgpu: Rework retry fault removal 2023-04-13 00:14:24 -04:00
amdgpu_gtt_mgr.c
amdgpu_hdp.c
amdgpu_hdp.h
amdgpu_hmm.c
amdgpu_hmm.h
amdgpu_i2c.c
amdgpu_i2c.h
amdgpu_ib.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
amdgpu_ids.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
amdgpu_ids.h
amdgpu_ih.c
amdgpu_ih.h
amdgpu_imu.h
amdgpu_ioc32.c
amdgpu_irq.c drm/amdgpu: Fix desktop freezed after gpu-reset 2023-04-18 17:14:13 -04:00
amdgpu_irq.h drm/amdgpu: Enable IH retry CAM on GFX9 2023-04-13 00:14:08 -04:00
amdgpu_job.c
amdgpu_job.h
amdgpu_jpeg.c drm/amdgpu: separate ras irq from jpeg instance irq for UVD_POISON 2023-05-31 17:33:56 -04:00
amdgpu_jpeg.h drm/amdgpu: separate ras irq from jpeg instance irq for UVD_POISON 2023-05-31 17:33:56 -04:00
amdgpu_kms.c
amdgpu_lsdma.c
amdgpu_lsdma.h
amdgpu_mca.c
amdgpu_mca.h
amdgpu_mes.c drm/amd/amdgpu: introduce gc_*_mes_2.bin v2 2023-04-11 18:03:21 -04:00
amdgpu_mes.h
amdgpu_mes_ctx.h
amdgpu_mmhub.c
amdgpu_mmhub.h
amdgpu_mode.h
amdgpu_nbio.c
amdgpu_nbio.h
amdgpu_object.c Revert "drm/amdgpu: remove TOPDOWN flags when allocating VRAM in large bar system" 2023-06-13 17:12:41 -04:00
amdgpu_object.h
amdgpu_pll.c
amdgpu_pll.h
amdgpu_pmu.c
amdgpu_pmu.h
amdgpu_preempt_mgr.c
amdgpu_psp.c drm/amd: Tighten permissions on VBIOS flashing attributes 2023-06-13 17:04:51 -04:00
amdgpu_psp.h
amdgpu_psp_ta.c
amdgpu_psp_ta.h
amdgpu_rap.c
amdgpu_rap.h
amdgpu_ras.c Revert "drm/amdgpu: enable ras for mp0 v13_0_10 on SRIOV" 2023-04-14 13:47:49 -04:00
amdgpu_ras.h drm/amdgpu: fix unexpected block id 2023-04-11 18:03:45 -04:00
amdgpu_ras_eeprom.c drm/amdgpu: simplify amdgpu_ras_eeprom.c 2023-04-13 00:13:23 -04:00
amdgpu_ras_eeprom.h
amdgpu_res_cursor.h
amdgpu_reset.c
amdgpu_reset.h
amdgpu_ring.c drm/amdgpu: Modify indirect buffer packages for resubmission 2023-06-13 16:57:44 -04:00
amdgpu_ring.h drm/amdgpu: Modify indirect buffer packages for resubmission 2023-06-13 16:57:44 -04:00
amdgpu_ring_mux.c drm/amdgpu: Modify indirect buffer packages for resubmission 2023-06-13 16:57:44 -04:00
amdgpu_ring_mux.h drm/amdgpu: Modify indirect buffer packages for resubmission 2023-06-13 16:57:44 -04:00
amdgpu_rlc.c
amdgpu_rlc.h
amdgpu_sa.c
amdgpu_sched.c drm/amdgpu: add a missing lock for AMDGPU_SCHED 2023-05-03 23:10:02 -04:00
amdgpu_sched.h
amdgpu_sdma.c
amdgpu_sdma.h
amdgpu_securedisplay.c
amdgpu_securedisplay.h
amdgpu_smuio.h
amdgpu_socbb.h
amdgpu_sync.c
amdgpu_sync.h
amdgpu_trace.h drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
amdgpu_trace_points.c
amdgpu_ttm.c
amdgpu_ttm.h
amdgpu_ucode.c
amdgpu_ucode.h
amdgpu_umc.c drm/amdgpu: optimize redundant code in umc_v8_10 2023-04-11 18:03:44 -04:00
amdgpu_umc.h drm/amdgpu: optimize redundant code in umc_v8_10 2023-04-11 18:03:44 -04:00
amdgpu_umr.h
amdgpu_uvd.c
amdgpu_uvd.h
amdgpu_vce.c
amdgpu_vce.h
amdgpu_vcn.c drm/amdgpu: separate ras irq from vcn instance irq for UVD_POISON 2023-05-31 17:33:38 -04:00
amdgpu_vcn.h drm/amdgpu: separate ras irq from vcn instance irq for UVD_POISON 2023-05-31 17:33:38 -04:00
amdgpu_vf_error.c
amdgpu_vf_error.h
amdgpu_virt.c
amdgpu_virt.h
amdgpu_vkms.c
amdgpu_vkms.h
amdgpu_vm.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
amdgpu_vm.h
amdgpu_vm_cpu.c
amdgpu_vm_pt.c drm/amdgpu: fix Null pointer dereference error in amdgpu_device_recover_vram 2023-06-07 16:53:03 -04:00
amdgpu_vm_sdma.c
amdgpu_vram_mgr.c drm/amdgpu: change reserved vram info print 2023-06-07 17:01:17 -04:00
amdgpu_vram_mgr.h
amdgpu_xgmi.c
amdgpu_xgmi.h
amdgv_sriovmsg.h
arct_reg_init.c
athub_v1_0.c
athub_v1_0.h
athub_v2_0.c
athub_v2_0.h
athub_v2_1.c
athub_v2_1.h
athub_v3_0.c
athub_v3_0.h
atom.c
atom.h
atombios_crtc.c
atombios_crtc.h
atombios_dp.c
atombios_dp.h
atombios_encoders.c
atombios_encoders.h
atombios_i2c.c
atombios_i2c.h
cik.c
cik.h
cik_ih.c
cik_ih.h
cik_sdma.c
cik_sdma.h
cikd.h
clearstate_ci.h
clearstate_defs.h
clearstate_gfx9.h
clearstate_gfx10.h
clearstate_gfx11.h
clearstate_si.h
clearstate_vi.h
cz_ih.c
cz_ih.h
dce_v6_0.c
dce_v6_0.h
dce_v8_0.c
dce_v8_0.h
dce_v10_0.c
dce_v10_0.h
dce_v11_0.c
dce_v11_0.h
df_v1_7.c
df_v1_7.h
df_v3_6.c
df_v3_6.h
df_v4_3.c
df_v4_3.h
dimgrey_cavefish_reg_init.c
emu_soc.c
gfx_v6_0.c
gfx_v6_0.h
gfx_v7_0.c
gfx_v7_0.h
gfx_v8_0.c
gfx_v8_0.h
gfx_v9_0.c drm/amdgpu: Implement gfx9 patch functions for resubmission 2023-06-13 16:58:23 -04:00
gfx_v9_0.h
gfx_v9_4.c
gfx_v9_4.h
gfx_v9_4_2.c
gfx_v9_4_2.h
gfx_v9_4_3.c drm/amdgpu: switch to v9_4_3 gfx_funcs callbacks for GC 9.4.3 2023-04-14 13:47:49 -04:00
gfx_v9_4_3.h drm/amdgpu: switch to v9_4_3 gfx_funcs callbacks for GC 9.4.3 2023-04-14 13:47:49 -04:00
gfx_v10_0.c drm:amd:amdgpu: Fix missing buffer object unlock in failure path 2023-05-24 15:08:44 -04:00
gfx_v10_0.h
gfx_v11_0.c drm/amdgpu/gfx11: Adjust gfxoff before powergating on gfx11 as well 2023-05-18 09:54:49 -04:00
gfx_v11_0.h
gfx_v11_0_3.c drm/amdgpu: add gfx v11_0_3 fed irq handling for sriov 2023-04-13 00:14:33 -04:00
gfx_v11_0_3.h
gfxhub_v1_0.c
gfxhub_v1_0.h
gfxhub_v1_1.c
gfxhub_v1_1.h
gfxhub_v1_2.c
gfxhub_v1_2.h
gfxhub_v2_0.c
gfxhub_v2_0.h
gfxhub_v2_1.c
gfxhub_v2_1.h
gfxhub_v3_0.c drm/amdgpu: drop temp programming for pagefault handling 2023-04-13 00:19:42 -04:00
gfxhub_v3_0.h
gfxhub_v3_0_3.c
gfxhub_v3_0_3.h
gmc_v6_0.c
gmc_v6_0.h
gmc_v7_0.c
gmc_v7_0.h
gmc_v8_0.c
gmc_v8_0.h
gmc_v9_0.c drm/amdgpu: fix an amdgpu_irq_put() issue in gmc_v9_0_hw_fini() 2023-05-03 23:08:52 -04:00
gmc_v9_0.h
gmc_v10_0.c drm/amdgpu: fix amdgpu_irq_put call trace in gmc_v10_0_hw_fini 2023-05-03 23:08:42 -04:00
gmc_v10_0.h
gmc_v11_0.c drm/amdgpu/gmc11: implement get_vbios_fb_size() 2023-05-18 09:56:10 -04:00
gmc_v11_0.h
hdp_v4_0.c
hdp_v4_0.h
hdp_v5_0.c
hdp_v5_0.h
hdp_v5_2.c
hdp_v5_2.h
hdp_v6_0.c
hdp_v6_0.h
iceland_ih.c
iceland_ih.h
iceland_sdma_pkt_open.h
ih_v6_0.c
ih_v6_0.h
imu_v11_0.c
imu_v11_0.h
imu_v11_0_3.c
imu_v11_0_3.h
jpeg_v1_0.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
jpeg_v1_0.h
jpeg_v2_0.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
jpeg_v2_0.h
jpeg_v2_5.c drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v2_6 2023-05-31 17:34:03 -04:00
jpeg_v2_5.h
jpeg_v3_0.c drm/amdgpu/jpeg: Remove harvest checking for JPEG3 2023-05-11 08:41:48 -04:00
jpeg_v3_0.h
jpeg_v4_0.c drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v4_0 2023-05-31 17:34:09 -04:00
jpeg_v4_0.h
Kconfig
lsdma_v6_0.c
lsdma_v6_0.h
Makefile drm/amdgpu: add gc v9_4_3 rlc_funcs implementation 2023-04-14 13:33:59 -04:00
mca_v3_0.c
mca_v3_0.h
mes_v10_1.c
mes_v10_1.h
mes_v11_0.c drm/amdgpu: reserve the old gc_11_0_*_mes.bin 2023-04-14 13:47:48 -04:00
mes_v11_0.h
mmhub_v1_0.c
mmhub_v1_0.h
mmhub_v1_7.c
mmhub_v1_7.h
mmhub_v1_8.c
mmhub_v1_8.h
mmhub_v2_0.c
mmhub_v2_0.h
mmhub_v2_3.c
mmhub_v2_3.h
mmhub_v3_0.c
mmhub_v3_0.h
mmhub_v3_0_1.c
mmhub_v3_0_1.h
mmhub_v3_0_2.c
mmhub_v3_0_2.h
mmhub_v9_4.c
mmhub_v9_4.h
mmsch_v1_0.h
mmsch_v2_0.h
mmsch_v3_0.h
mmsch_v4_0.h
mxgpu_ai.c
mxgpu_ai.h
mxgpu_nv.c
mxgpu_nv.h
mxgpu_vi.c
mxgpu_vi.h
navi10_ih.c
navi10_ih.h
navi10_sdma_pkt_open.h
nbio_v2_3.c
nbio_v2_3.h
nbio_v4_3.c
nbio_v4_3.h
nbio_v6_1.c
nbio_v6_1.h
nbio_v7_0.c
nbio_v7_0.h
nbio_v7_2.c
nbio_v7_2.h
nbio_v7_4.c drm/amdgpu: Enable IH retry CAM on GFX9 2023-04-13 00:14:08 -04:00
nbio_v7_4.h
nbio_v7_7.c
nbio_v7_7.h
nbio_v7_9.c
nbio_v7_9.h
nv.c drm/amdgpu/nv: update VCN 3 max HEVC encoding resolution 2023-05-11 01:04:04 -04:00
nv.h
nvd.h
ObjectID.h
psp_gfx_if.h
psp_v3_1.c
psp_v3_1.h
psp_v10_0.c drm/amdgpu: don't enable secure display on incompatible platforms 2023-05-24 15:09:06 -04:00
psp_v10_0.h
psp_v11_0.c
psp_v11_0.h
psp_v11_0_8.c
psp_v11_0_8.h
psp_v12_0.c
psp_v12_0.h
psp_v13_0.c
psp_v13_0.h
psp_v13_0_4.c
psp_v13_0_4.h
sdma_common.h
sdma_v2_4.c
sdma_v2_4.h
sdma_v3_0.c
sdma_v3_0.h
sdma_v4_0.c drm/amdgpu: disable sdma ecc irq only when sdma RAS is enabled in suspend 2023-05-11 01:11:51 -04:00
sdma_v4_0.h
sdma_v4_4.c
sdma_v4_4.h
sdma_v4_4_2.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
sdma_v4_4_2.h
sdma_v5_0.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
sdma_v5_0.h
sdma_v5_2.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
sdma_v5_2.h
sdma_v6_0.c drm/amdgpu: disable SDMA WPTR_POLL_ENABLE for SR-IOV 2023-05-03 23:10:02 -04:00
sdma_v6_0.h
sdma_v6_0_0_pkt_open.h
si.c
si.h
si_dma.c
si_dma.h
si_enums.h
si_ih.c
si_ih.h
sid.h
sienna_cichlid.c drm/amdgpu: Fix mode2 reset for sienna cichlid 2023-05-03 22:43:12 -04:00
sienna_cichlid.h
smu_v11_0_i2c.c
smu_v11_0_i2c.h
smu_v13_0_10.c
smu_v13_0_10.h
smuio_v9_0.c
smuio_v9_0.h
smuio_v11_0.c
smuio_v11_0.h
smuio_v11_0_6.c
smuio_v11_0_6.h
smuio_v13_0.c
smuio_v13_0.h
smuio_v13_0_6.c
smuio_v13_0_6.h
soc15.c Revert "drm/amdgpu: change the reference clock for raven/raven2" 2023-06-07 16:59:41 -04:00
soc15.h
soc15_common.h
soc15d.h
soc21.c drm/amdgpu: change gfx 11.0.4 external_id range 2023-05-11 09:11:14 -04:00
soc21.h
ta_rap_if.h
ta_ras_if.h drm/amdgpu: fix unexpected block id 2023-04-11 18:03:45 -04:00
ta_secureDisplay_if.h
ta_xgmi_if.h
tonga_ih.c
tonga_ih.h
tonga_sdma_pkt_open.h
umc_v6_0.c
umc_v6_0.h
umc_v6_1.c
umc_v6_1.h
umc_v6_7.c drm/amdgpu: optimize redundant code in umc_v6_7 2023-04-11 18:03:44 -04:00
umc_v6_7.h
umc_v8_7.c
umc_v8_7.h
umc_v8_10.c drm/amdgpu: optimize redundant code in umc_v8_10 2023-04-11 18:03:44 -04:00
umc_v8_10.h
uvd_v3_1.c
uvd_v3_1.h
uvd_v4_2.c
uvd_v4_2.h
uvd_v5_0.c
uvd_v5_0.h
uvd_v6_0.c
uvd_v6_0.h
uvd_v7_0.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
uvd_v7_0.h
vce_v2_0.c
vce_v2_0.h
vce_v3_0.c
vce_v3_0.h
vce_v4_0.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
vce_v4_0.h
vcn_sw_ring.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
vcn_sw_ring.h
vcn_v1_0.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
vcn_v1_0.h
vcn_v2_0.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
vcn_v2_0.h
vcn_v2_5.c drm/amdgpu: add RAS POISON interrupt funcs for vcn_v2_6 2023-05-31 17:33:44 -04:00
vcn_v2_5.h
vcn_v3_0.c drm/amdgpu: move vmhub out of amdgpu_ring_funcs (v4) 2023-04-14 13:47:49 -04:00
vcn_v3_0.h
vcn_v4_0.c drm/amdgpu: vcn_4_0 set instance 0 init sched score to 1 2023-06-13 17:08:42 -04:00
vcn_v4_0.h
vega10_ih.c
vega10_ih.h
vega10_reg_init.c
vega10_sdma_pkt_open.h
vega20_ih.c drm/amdgpu: Enable IH retry CAM on GFX9 2023-04-13 00:14:08 -04:00
vega20_ih.h
vega20_reg_init.c
vi.c drm/amdgpu: fix xclk freq on CHIP_STONEY 2023-06-07 17:00:35 -04:00
vi.h
vid.h