linux/drivers/gpu/drm/ast
Thomas Zimmermann 244d012801 drm/ast: Initialize DRAM type before posting GPU
Posting the GPU requires the correct DRAM type to be stored in
struct ast_private. Therefore first initialize the DRAM info and
then post the GPU. This restores the original order of instructions
in this function.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Fixes: bad09da6de ("drm/ast: Fixed vram size incorrect issue on POWER")
Cc: Joel Stanley <joel@jms.id.au>
Cc: Y.C. Chen <yc_chen@aspeedtech.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Cc: "Y.C. Chen" <yc_chen@aspeedtech.com>
Cc: <stable@vger.kernel.org> # v4.11+
Link: https://patchwork.freedesktop.org/patch/msgid/20200716125353.31512-6-tzimmermann@suse.de
2020-07-20 09:16:15 +02:00
..
ast_cursor.c drm/ast: Managed cursor release 2020-07-07 11:11:51 +02:00
ast_dp501.c drm/ast: Upcast from DRM device to ast structure via to_ast_private() 2020-06-22 13:40:33 +02:00
ast_dram_tables.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ast_drv.c drm/ast: Remove test for device from ast_pm_freeze() 2020-06-22 13:39:23 +02:00
ast_drv.h drm/ast: Move VRAM size detection to ast_mm.c 2020-07-20 09:16:11 +02:00
ast_main.c drm/ast: Initialize DRAM type before posting GPU 2020-07-20 09:16:15 +02:00
ast_mm.c drm/ast: Move VRAM size detection to ast_mm.c 2020-07-20 09:16:11 +02:00
ast_mode.c drm/ast: Initialize mode setting in ast_mode_config_init() 2020-07-07 11:12:06 +02:00
ast_post.c drm/ast: Use per-device logging macros 2020-06-22 13:40:33 +02:00
ast_tables.h drm/ast: Fixed 1280x800 Display Issue 2018-03-23 09:50:54 +10:00
Kconfig drm/vram: fix Kconfig 2019-09-10 08:53:08 +02:00
Makefile drm/ast: Rename ast_ttm.c to ast_mm.c 2020-07-20 09:16:05 +02:00