]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: add nbio callbacks for vcn doorbell support
authorLeo Liu <leo.liu@amd.com>
Tue, 16 Oct 2018 13:54:20 +0000 (09:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 02:16:38 +0000 (21:16 -0500)
For Navi10 VCN2.0, the engine supports Doorbell

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h

index b793f58b0cda555a04aaf939f802cb1f1cfce690..79cee380c4f5bcb1bdec6ba2d1b890286f55e280 100644 (file)
@@ -659,6 +659,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 (*vcn_doorbell_range)(struct amdgpu_device *adev, bool use_doorbell,
+                       int doorbell_index);
        void (*enable_doorbell_aperture)(struct amdgpu_device *adev,
                                         bool enable);
        void (*enable_doorbell_selfring_aperture)(struct amdgpu_device *adev,