]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: correct doorbell range/size value for CSDMA_DOORBELL_RANGE
authorYifan Zhang <yifan1.zhang@amd.com>
Tue, 6 Sep 2022 05:09:20 +0000 (13:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Sep 2022 02:52:32 +0000 (22:52 -0400)
current function mixes CSDMA_DOORBELL_RANGE and SDMA0_DOORBELL_RANGE
range/size manipulation, while these 2 registers have difference size
field mask. Remove range/size manipulation for SDMA0_DOORBELL_RANGE.

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Xiaojian Du <Xiaojian.Du@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c

index 1dc95ef21da6afbd38c966f6e221cc6d5ced551d..f30bc826a87819b3670f868c188436ce4f467f1d 100644 (file)
@@ -68,12 +68,6 @@ static void nbio_v7_7_sdma_doorbell_range(struct amdgpu_device *adev, int instan
                doorbell_range = REG_SET_FIELD(doorbell_range,
                                               GDC0_BIF_CSDMA_DOORBELL_RANGE,
                                               SIZE, doorbell_size);
-               doorbell_range = REG_SET_FIELD(doorbell_range,
-                                              GDC0_BIF_SDMA0_DOORBELL_RANGE,
-                                              OFFSET, doorbell_index);
-               doorbell_range = REG_SET_FIELD(doorbell_range,
-                                              GDC0_BIF_SDMA0_DOORBELL_RANGE,
-                                              SIZE, doorbell_size);
        } else {
                doorbell_range = REG_SET_FIELD(doorbell_range,
                                               GDC0_BIF_SDMA0_DOORBELL_RANGE,