summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2020-06-22 17:40:19 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-07-01 01:59:26 -0400
commit6a8987a8667e5b7216fdc386e362c8f99756fa38 (patch)
tree8631f5f3275f64446f710035cfa4cbf99d87b511 /drivers/gpu/drm/amd/amdgpu
parent8ef51b428e6d935736d5fa7427cc063b6bb5b08a (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 <nirmoy.das@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c2
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;