Skip to content

Commit d832db1

Browse files
yifancomalexdeucher
authored andcommitted
drm/amdgpu: correct doorbell range/size value for CSDMA_DOORBELL_RANGE
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>
1 parent ae0448b commit d832db1

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ static void nbio_v7_7_sdma_doorbell_range(struct amdgpu_device *adev, int instan
6868
doorbell_range = REG_SET_FIELD(doorbell_range,
6969
GDC0_BIF_CSDMA_DOORBELL_RANGE,
7070
SIZE, doorbell_size);
71-
doorbell_range = REG_SET_FIELD(doorbell_range,
72-
GDC0_BIF_SDMA0_DOORBELL_RANGE,
73-
OFFSET, doorbell_index);
74-
doorbell_range = REG_SET_FIELD(doorbell_range,
75-
GDC0_BIF_SDMA0_DOORBELL_RANGE,
76-
SIZE, doorbell_size);
7771
} else {
7872
doorbell_range = REG_SET_FIELD(doorbell_range,
7973
GDC0_BIF_SDMA0_DOORBELL_RANGE,

0 commit comments

Comments
 (0)