diff options
| author | Alex Deucher <[email protected]> | 2020-06-22 17:40:19 -0400 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-07-01 01:59:26 -0400 |
| commit | 6a8987a8667e5b7216fdc386e362c8f99756fa38 (patch) | |
| tree | 8631f5f3275f64446f710035cfa4cbf99d87b511 | |
| parent | 8ef51b428e6d935736d5fa7427cc063b6bb5b08a (diff) | |
drm/amdgpu: make sure to reserve tmr region on all asics which support it
This includes older APUs like renoir.
Acked-by: Nirmoy Das <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 2801ea8954b4..a196971a24c2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -1973,7 +1973,7 @@ int amdgpu_ttm_init(struct amdgpu_device *adev) * If IP discovery enabled, a block of memory should be * reserved for IP discovey. */ - if (adev->asic_type >= CHIP_NAVI10 && amdgpu_discovery) { + if (adev->discovery_bin) { r = amdgpu_ttm_reserve_tmr(adev); if (r) return r; |