diff options
author | Christian König <christian.koenig@amd.com> | 2015-05-11 22:01:47 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-05-26 16:31:20 +0200 |
commit | fa0cf2f246bb1cac502ba7c36082ad7a7b6deb40 (patch) | |
tree | 8124bdd772171af1ab1e8f1e37c4b5385f65261d /drivers/gpu/drm/radeon/radeon_vce.c | |
parent | drm/radeon: add a GPU reset counter queryable by userspace (diff) | |
download | linux-fa0cf2f246bb1cac502ba7c36082ad7a7b6deb40.tar.xz linux-fa0cf2f246bb1cac502ba7c36082ad7a7b6deb40.zip |
drm/radeon: rework VCE FW size calculation
Previously we were completely over allocating, fix this
by actually implementing the size calculation.
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_vce.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_vce.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_vce.c b/drivers/gpu/drm/radeon/radeon_vce.c index 0de5711ac508..5b952bdfa68d 100644 --- a/drivers/gpu/drm/radeon/radeon_vce.c +++ b/drivers/gpu/drm/radeon/radeon_vce.c @@ -123,8 +123,7 @@ int radeon_vce_init(struct radeon_device *rdev) /* allocate firmware, stack and heap BO */ - size = RADEON_GPU_PAGE_ALIGN(rdev->vce_fw->size) + - RADEON_VCE_STACK_SIZE + RADEON_VCE_HEAP_SIZE; + size = vce_v2_0_bo_size(rdev); r = radeon_bo_create(rdev, size, PAGE_SIZE, true, RADEON_GEM_DOMAIN_VRAM, 0, NULL, NULL, &rdev->vce.vcpu_bo); |