diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2020-06-22 17:40:19 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-07-01 01:59:26 -0400 |
commit | 6a8987a8667e5b7216fdc386e362c8f99756fa38 (patch) | |
tree | 8631f5f3275f64446f710035cfa4cbf99d87b511 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
parent | 8ef51b428e6d935736d5fa7427cc063b6bb5b08a (diff) | |
download | lwn-6a8987a8667e5b7216fdc386e362c8f99756fa38.tar.gz lwn-6a8987a8667e5b7216fdc386e362c8f99756fa38.zip |
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/amdgpu_ttm.c')
-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; |