OSDN Git Service

drm/amdgpu: add nbio support for cyan_skillfish
authorTao Zhou <tao.zhou1@amd.com>
Tue, 1 Jun 2021 09:06:44 +0000 (17:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jul 2021 14:08:01 +0000 (10:08 -0400)
nbio version is 2.3.

v2: Make it more explicit (Alex)

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 045a26b..5e4f763 100644 (file)
@@ -685,7 +685,10 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)
 {
        int r;
 
-       if (adev->flags & AMD_IS_APU) {
+       if (adev->asic_type == CHIP_CYAN_SKILLFISH) {
+               adev->nbio.funcs = &nbio_v2_3_funcs;
+               adev->nbio.hdp_flush_reg = &nbio_v2_3_hdp_flush_reg;
+       } else if (adev->flags & AMD_IS_APU) {
                adev->nbio.funcs = &nbio_v7_2_funcs;
                adev->nbio.hdp_flush_reg = &nbio_v7_2_hdp_flush_reg;
        } else {