aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2020-09-02 09:07:14 +0000
committerAlex Deucher <[email protected]>2020-09-03 18:48:04 +0000
commitee354ff1c7c210fb41952ebf0a820fb714eae7b1 (patch)
tree620273b700b81cfed517986412b6aa7965541d04 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
parentdrm/amdgpu: Remove superfluous NULL check (diff)
downloadkernel-ee354ff1c7c210fb41952ebf0a820fb714eae7b1.tar.gz
kernel-ee354ff1c7c210fb41952ebf0a820fb714eae7b1.zip
drm/amdgpu: fix max_entries calculation v4
Calculate the correct value for max_entries or we might run after the page_address array. v2: Xinhui pointed out we don't need the shift v3: use local copy of start and simplify some calculation v4: fix the case that we map less VA range than BO size Signed-off-by: Christian König <[email protected]> Fixes: 1e691e244487 drm/amdgpu: stop allocating dummy GTT nodes Reviewed-by: xinhui pan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
0 files changed, 0 insertions, 0 deletions