summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_vce.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-05-11 22:01:47 +0200
committerAlex Deucher <alexander.deucher@amd.com>2015-05-26 10:31:20 -0400
commitfa0cf2f246bb1cac502ba7c36082ad7a7b6deb40 (patch)
tree8124bdd772171af1ab1e8f1e37c4b5385f65261d /drivers/gpu/drm/radeon/radeon_vce.c
parent72b9076b2887add930d3b102760f09d02ffbfbe7 (diff)
downloadop-kernel-dev-fa0cf2f246bb1cac502ba7c36082ad7a7b6deb40.zip
op-kernel-dev-fa0cf2f246bb1cac502ba7c36082ad7a7b6deb40.tar.gz
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.c3
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 0de5711..5b952bd 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);
OpenPOWER on IntegriCloud