Commit bea75349 authored by Aaron Liu's avatar Aaron Liu Committed by Alex Deucher

drm/amdgpu: reserved buffer is not needed with ip discovery enabled

When IP discovery enabled, the reserved buffer has been alloacted.
Signed-off-by: default avatarAaron Liu <aaron.liu@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e15a5fb9
...@@ -790,14 +790,17 @@ void amdgpu_gmc_get_reserved_allocation(struct amdgpu_device *adev) ...@@ -790,14 +790,17 @@ void amdgpu_gmc_get_reserved_allocation(struct amdgpu_device *adev)
{ {
/* Some ASICs need to reserve a region of video memory to avoid access /* Some ASICs need to reserve a region of video memory to avoid access
* from driver */ * from driver */
adev->mman.stolen_reserved_offset = 0;
adev->mman.stolen_reserved_size = 0;
switch (adev->asic_type) { switch (adev->asic_type) {
case CHIP_YELLOW_CARP: case CHIP_YELLOW_CARP:
adev->mman.stolen_reserved_offset = 0x1ffb0000; if (amdgpu_discovery == 0) {
adev->mman.stolen_reserved_size = 64 * PAGE_SIZE; adev->mman.stolen_reserved_offset = 0x1ffb0000;
adev->mman.stolen_reserved_size = 64 * PAGE_SIZE;
}
break; break;
default: default:
adev->mman.stolen_reserved_offset = 0;
adev->mman.stolen_reserved_size = 0;
break; break;
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment