Revert "drm/amdkfd: Relocate TBA/TMA to opposite side of VM hole"
authorKaibo Ma <ent3rm4n@gmail.com>
Wed, 3 Jan 2024 04:29:56 +0000 (12:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Jan 2024 21:10:44 +0000 (16:10 -0500)
commit0f35b0a7b8fa402adbffa2565047cdcc4c480153
treea3dd368f4cdbd15b2b11cb1c5da70fdfcdafaa0d
parentc966dc0e9d96dc44423c404a2628236f1200c24e
Revert "drm/amdkfd: Relocate TBA/TMA to opposite side of VM hole"

That commit causes NULL pointer dereferences in dmesgs when
running applications using ROCm, including clinfo, blender,
and PyTorch, since v6.6.1. Revert it to fix blender again.

This reverts commit 96c211f1f9ef82183493f4ceed4e347b52849149.

Closes: https://github.com/ROCm/ROCm/issues/2596
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/2991
Reviewed-by: Jay Cornwall <jay.cornwall@amd.com>
Signed-off-by: Kaibo Ma <ent3rm4n@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c