mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
drm/amdkfd: Switch to using GC VERSION to decide LDS/Scratch base
Next generation GC IP with 4-level page table needs to use the same LDS/Scratch base with 5-level page table, use GC VERSION to decide is more appropriate. Signed-off-by: Lang Yu <lang.yu@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e3a03d0ae1
commit
bcd600ab7f
1 changed files with 2 additions and 2 deletions
|
|
@ -342,7 +342,7 @@ static void kfd_init_apertures_vi(struct kfd_process_device *pdd, uint8_t id)
|
|||
|
||||
static void kfd_init_apertures_v9(struct kfd_process_device *pdd, uint8_t id)
|
||||
{
|
||||
if (pdd->dev->adev->vm_manager.root_level == AMDGPU_VM_PDB3)
|
||||
if (KFD_GC_VERSION(pdd->dev) >= IP_VERSION(12, 1, 0))
|
||||
pdd->lds_base = pdd->dev->adev->gmc.shared_aperture_start;
|
||||
else
|
||||
pdd->lds_base = MAKE_LDS_APP_BASE_V9();
|
||||
|
|
@ -352,7 +352,7 @@ static void kfd_init_apertures_v9(struct kfd_process_device *pdd, uint8_t id)
|
|||
pdd->gpuvm_limit =
|
||||
pdd->dev->kfd->shared_resources.gpuvm_size - 1;
|
||||
|
||||
if (pdd->dev->adev->vm_manager.root_level == AMDGPU_VM_PDB3)
|
||||
if (KFD_GC_VERSION(pdd->dev) >= IP_VERSION(12, 1, 0))
|
||||
pdd->scratch_base = pdd->dev->adev->gmc.private_aperture_start;
|
||||
else
|
||||
pdd->scratch_base = MAKE_SCRATCH_APP_BASE_V9();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue