diff options
| author | Likun Gao <[email protected]> | 2022-04-04 20:55:18 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-05-04 13:52:53 +0000 |
| commit | 2c0e7ddd1f3c20ee9dcc2d1f6df2e401698cf1c1 (patch) | |
| tree | dcc0d664f27f2f000a2da50d673b58da32b4b278 /drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | |
| parent | drm/amdgpu: add nbio v4_3_0 ip block v2 (diff) | |
| download | kernel-2c0e7ddd1f3c20ee9dcc2d1f6df2e401698cf1c1.tar.gz kernel-2c0e7ddd1f3c20ee9dcc2d1f6df2e401698cf1c1.zip | |
drm/amdgpu/discovery: add NBIO 4.3 Support
Enable NBIO 4.3 on asics where it is present.
Signed-off-by: Likun Gao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index 8a2cc1c36f0d..f11c01982cd4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c @@ -50,6 +50,7 @@ #include "gfxhub_v2_0.h" #include "mmhub_v2_0.h" #include "nbio_v2_3.h" +#include "nbio_v4_3.h" #include "nbio_v7_2.h" #include "hdp_v5_0.h" #include "nv.h" @@ -2144,6 +2145,10 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev) adev->nbio.funcs = &nbio_v2_3_funcs; adev->nbio.hdp_flush_reg = &nbio_v2_3_hdp_flush_reg_sc; break; + case IP_VERSION(4, 3, 0): + adev->nbio.funcs = &nbio_v4_3_funcs; + adev->nbio.hdp_flush_reg = &nbio_v4_3_hdp_flush_reg; + break; default: break; } |
