drm/amdgpu: add nbio callback for VPE
authorLang Yu <Lang.Yu@amd.com>
Tue, 18 Jul 2023 20:29:06 +0000 (16:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 31 Aug 2023 20:33:53 +0000 (16:33 -0400)
Add nbio callback to configure doorbell settings.

Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h

index 6cf7a88..65e3505 100644 (file)
@@ -69,6 +69,8 @@ struct amdgpu_nbio_funcs {
        u32 (*get_memsize)(struct amdgpu_device *adev);
        void (*sdma_doorbell_range)(struct amdgpu_device *adev, int instance,
                        bool use_doorbell, int doorbell_index, int doorbell_size);
+       void (*vpe_doorbell_range)(struct amdgpu_device *adev, int instance,
+                       bool use_doorbell, int doorbell_index, int doorbell_size);
        void (*vcn_doorbell_range)(struct amdgpu_device *adev, bool use_doorbell,
                                   int doorbell_index, int instance);
        void (*gc_doorbell_init)(struct amdgpu_device *adev);