]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Revert "drm/amdgpu: remove TOPDOWN flags when allocating VRAM in large bar system"
authorArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Fri, 9 Jun 2023 13:18:41 +0000 (06:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:02:09 +0000 (16:02 +0200)
commitec1412d7de48194c0009ed91494fb55e08b8ac86
tree76076b72fe568d1faa14cd0b8dbcf7e67e282389
parent573c5ace50109518ed8a183aff93399c1c17eb73
Revert "drm/amdgpu: remove TOPDOWN flags when allocating VRAM in large bar system"

commit 34e5a54327dce5033582f3609eb54812a8c61b90 upstream.

This reverts commit c105518679b6e87232874ffc989ec403bee59664.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c