aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2017-03-28 20:31:20 -0400
committerAlex Deucher <[email protected]>2017-03-29 23:55:52 -0400
commit9ceaeeafbd1177e53395946a772a2a9c4c234887 (patch)
treea0480c7ae158e1b800f25cc3de79d2d286712f25 /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
parent22770e5a750e905a1aaa66e20b88d080e42ddd15 (diff)
drm/amdgpu: Fix Vega10 VM initialization
adev->family is not initialized yet when amdgpu_get_block_size is called. Use adev->asic_type instead. Minimum VM size is 512GB, not 256GB, for a single page table entry in the root page table. gmc_v9_0_vm_init is called after adev->vm_manager.max_pfn is initialized. Move the minimum VM-size enforcement ahead of max_pfn initializtion. Cast to 64-bit before the left-shift. Signed-off-by: Felix Kuehling <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions