Skip to content

Commit f9e805f

Browse files
Ray6161gregkh
authored andcommitted
drm/amd/display: Fix scratch registers offsets for DCN351
commit fd62aa1 upstream. [Why] Different platforms use different NBIO header files, causing display code to use differnt offset and read wrong accelerated status. [How] - Unified NBIO offset header file across platform. - Correct scratch registers offsets to proper locations. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4667 Cc: Mario Limonciello <mario.limonciello@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Ray Wu <ray.wu@amd.com> Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 576e032) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7d5df9d commit f9e805f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,12 @@ enum dcn351_clk_src_array_id {
183183
NBIO_BASE_INNER(seg)
184184

185185
#define NBIO_SR(reg_name)\
186-
REG_STRUCT.reg_name = NBIO_BASE(regBIF_BX2_ ## reg_name ## _BASE_IDX) + \
187-
regBIF_BX2_ ## reg_name
186+
REG_STRUCT.reg_name = NBIO_BASE(regBIF_BX1_ ## reg_name ## _BASE_IDX) + \
187+
regBIF_BX1_ ## reg_name
188188

189189
#define NBIO_SR_ARR(reg_name, id)\
190-
REG_STRUCT[id].reg_name = NBIO_BASE(regBIF_BX2_ ## reg_name ## _BASE_IDX) + \
191-
regBIF_BX2_ ## reg_name
190+
REG_STRUCT[id].reg_name = NBIO_BASE(regBIF_BX1_ ## reg_name ## _BASE_IDX) + \
191+
regBIF_BX1_ ## reg_name
192192

193193
#define bios_regs_init() \
194194
( \

0 commit comments

Comments
 (0)