mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 16:20:53 +07:00
drm/radeon/atom: initialize more atom interpretor elements to 0
The ProcessAuxChannel table on some rv635 boards assumes the divmul members are initialized to 0 otherwise we get an invalid fb offset since it has a bad mask set when setting the fb base. While here initialize all the atom interpretor elements to 0. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=60639 Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
63f22d0e98
commit
42a21826dc
@ -1222,12 +1222,17 @@ int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params)
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
mutex_lock(&ctx->mutex);
|
mutex_lock(&ctx->mutex);
|
||||||
|
/* reset data block */
|
||||||
|
ctx->data_block = 0;
|
||||||
/* reset reg block */
|
/* reset reg block */
|
||||||
ctx->reg_block = 0;
|
ctx->reg_block = 0;
|
||||||
/* reset fb window */
|
/* reset fb window */
|
||||||
ctx->fb_base = 0;
|
ctx->fb_base = 0;
|
||||||
/* reset io mode */
|
/* reset io mode */
|
||||||
ctx->io_mode = ATOM_IO_MM;
|
ctx->io_mode = ATOM_IO_MM;
|
||||||
|
/* reset divmul */
|
||||||
|
ctx->divmul[0] = 0;
|
||||||
|
ctx->divmul[1] = 0;
|
||||||
r = atom_execute_table_locked(ctx, index, params);
|
r = atom_execute_table_locked(ctx, index, params);
|
||||||
mutex_unlock(&ctx->mutex);
|
mutex_unlock(&ctx->mutex);
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
Reference in New Issue
Block a user