drm/ast: fixed cursor may disappear sometimes
authorY.C. Chen <yc_chen@aspeedtech.com>
Tue, 30 Oct 2018 03:34:46 +0000 (11:34 +0800)
committerDave Airlie <airlied@redhat.com>
Thu, 22 Nov 2018 01:16:02 +0000 (11:16 +1000)
Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_mode.c

index f06aae7701edf7eb072d77da3597af89e0acced5..7c6ac3cadb6b7fabcfe9a309d5fc201db6b75bf7 100644 (file)
@@ -1255,7 +1255,7 @@ static int ast_cursor_move(struct drm_crtc *crtc,
        ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xc7, ((y >> 8) & 0x07));
 
        /* dummy write to fire HWC */
-       ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xCB, 0xFF, 0x00);
+       ast_show_cursor(crtc);
 
        return 0;
 }