[PATCH 14/66] drm/amdgpu: Use IP discovery to drive setting IP blocks by default
Alex Deucher
alexander.deucher at amd.com
Tue Sep 21 18:06:33 UTC 2021
Drive the asic setup from the IP discovery table rather than
hardcoded settings based on asic type.
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 38d3a7e6474a..782ebd5d2239 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -2164,8 +2164,10 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
return r;
break;
default:
- /* FIXME: not supported yet */
- return -EINVAL;
+ r = amdgpu_discovery_set_ip_blocks(adev);
+ if (r)
+ return r;
+ break;
}
amdgpu_amdkfd_device_probe(adev);
--
2.31.1
More information about the amd-gfx
mailing list