]>
Commit | Line | Data |
---|---|---|
7e0c3565 GKH |
1 | From 42a21826dc54583cdb79cc8477732e911ac9c376 Mon Sep 17 00:00:00 2001 |
2 | From: Alex Deucher <alexander.deucher@amd.com> | |
3 | Date: Tue, 30 Jul 2013 00:22:53 -0400 | |
4 | Subject: drm/radeon/atom: initialize more atom interpretor elements to 0 | |
5 | ||
6 | From: Alex Deucher <alexander.deucher@amd.com> | |
7 | ||
8 | commit 42a21826dc54583cdb79cc8477732e911ac9c376 upstream. | |
9 | ||
10 | The ProcessAuxChannel table on some rv635 boards assumes | |
11 | the divmul members are initialized to 0 otherwise we get | |
12 | an invalid fb offset since it has a bad mask set when | |
13 | setting the fb base. While here initialize all the | |
14 | atom interpretor elements to 0. | |
15 | ||
16 | Fixes: | |
17 | https://bugzilla.kernel.org/show_bug.cgi?id=60639 | |
18 | ||
19 | Signed-off-by: Alex Deucher <alexander.deucher@amd.com> | |
20 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
21 | ||
22 | --- | |
23 | drivers/gpu/drm/radeon/atom.c | 5 +++++ | |
24 | 1 file changed, 5 insertions(+) | |
25 | ||
26 | --- a/drivers/gpu/drm/radeon/atom.c | |
27 | +++ b/drivers/gpu/drm/radeon/atom.c | |
28 | @@ -1222,12 +1222,17 @@ int atom_execute_table(struct atom_conte | |
29 | int r; | |
30 | ||
31 | mutex_lock(&ctx->mutex); | |
32 | + /* reset data block */ | |
33 | + ctx->data_block = 0; | |
34 | /* reset reg block */ | |
35 | ctx->reg_block = 0; | |
36 | /* reset fb window */ | |
37 | ctx->fb_base = 0; | |
38 | /* reset io mode */ | |
39 | ctx->io_mode = ATOM_IO_MM; | |
40 | + /* reset divmul */ | |
41 | + ctx->divmul[0] = 0; | |
42 | + ctx->divmul[1] = 0; | |
43 | r = atom_execute_table_locked(ctx, index, params); | |
44 | mutex_unlock(&ctx->mutex); | |
45 | return r; |