diff options
| author | Y.C. Chen <yc_chen@aspeedtech.com> | 2018-04-11 09:27:39 +0800 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2019-08-15 13:04:57 +1000 |
| commit | 05b439711f6ff8700e8660f97a1179650778b9cb (patch) | |
| tree | 5becd511f360d29e872f03f33a360834e48a1f33 /drivers/gpu/drm/ast/ast_mode.c | |
| parent | Linux 5.3-rc4 (diff) | |
| download | linux-05b439711f6ff8700e8660f97a1179650778b9cb.tar.gz linux-05b439711f6ff8700e8660f97a1179650778b9cb.zip | |
drm/ast: Fixed reboot test may cause system hanged
There is another thread still access standard VGA I/O while loading drm driver.
Disable standard VGA I/O decode to avoid this issue.
Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
Reviewed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1523410059-18415-1-git-send-email-yc_chen@aspeedtech.com
Diffstat (limited to 'drivers/gpu/drm/ast/ast_mode.c')
| -rw-r--r-- | drivers/gpu/drm/ast/ast_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index ffccbef962a4..a1cb020e07e5 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -604,7 +604,7 @@ static int ast_crtc_mode_set(struct drm_crtc *crtc, return -EINVAL; ast_open_key(ast); - ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xa1, 0xff, 0x04); + ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa1, 0x06); ast_set_std_reg(crtc, adjusted_mode, &vbios_mode); ast_set_crtc_reg(crtc, adjusted_mode, &vbios_mode); |
