drm/amdgpu: init nbio v7_9 callbacks
authorHawking Zhang <Hawking.Zhang@amd.com>
Thu, 25 Nov 2021 15:33:30 +0000 (23:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 Mar 2023 15:18:43 +0000 (11:18 -0400)
switch to the new nbio generation for NBIO 7.9.0.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Le Ma <Le.Ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

index 6edaa43..738ac5d 100644 (file)
@@ -37,6 +37,7 @@
 #include "nbio_v6_1.h"
 #include "nbio_v7_0.h"
 #include "nbio_v7_4.h"
+#include "nbio_v7_9.h"
 #include "hdp_v4_0.h"
 #include "vega10_ih.h"
 #include "vega20_ih.h"
@@ -2264,6 +2265,10 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
                adev->nbio.funcs = &nbio_v7_4_funcs;
                adev->nbio.hdp_flush_reg = &nbio_v7_4_hdp_flush_reg;
                break;
+       case IP_VERSION(7, 9, 0):
+               adev->nbio.funcs = &nbio_v7_9_funcs;
+               adev->nbio.hdp_flush_reg = &nbio_v7_9_hdp_flush_reg;
+               break;
        case IP_VERSION(7, 2, 0):
        case IP_VERSION(7, 2, 1):
        case IP_VERSION(7, 3, 0):