drm/ast: Fixed vram size incorrect issue on POWER
authorY.C. Chen <yc_chen@aspeedtech.com>
Fri, 17 Feb 2017 02:56:47 +0000 (10:56 +0800)
committerDave Airlie <airlied@redhat.com>
Tue, 28 Feb 2017 03:16:14 +0000 (13:16 +1000)
commitbad09da6deab157440a3f0dd5e6c03cdc60c0a91
tree432a0db6a7854c8f2d0d3a05416ae9f2ba5e0cdc
parent9f93c8b3c08f8c456aad86fd05caa6a1688320ff
drm/ast: Fixed vram size incorrect issue on POWER

The default value of VGA scratch may incorrect.
Should initial h/w before get vram info.

Acked-by: Joel Stanley <joel@jms.id.au>
Tested-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_main.c
drivers/gpu/drm/ast/ast_post.c