projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d154b8
)
drm/amdgpu: Fix size calculation when init onchip memory
author
xinhui pan
<xinhui.pan@amd.com>
Fri, 23 Oct 2020 05:41:12 +0000
(13:41 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 23 Oct 2020 19:40:46 +0000
(15:40 -0400)
Size is page count here.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 4a85f8cedd77c3d9dc85c6969dd1351605ff66f4..11dd3d9eac15a37497a8dc4b29094267a5a5981d 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@
-65,11
+65,11
@@
static int amdgpu_ttm_init_on_chip(struct amdgpu_device *adev,
unsigned int type,
- uint64_t size)
+ uint64_t size
_in_page
)
{
return ttm_range_man_init(&adev->mman.bdev, type,
TTM_PL_FLAG_UNCACHED, TTM_PL_FLAG_UNCACHED,
- false, size
>> PAGE_SHIFT
);
+ false, size
_in_page
);
}
/**