]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/ast: Use managed MM initialization
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 16 Jul 2020 12:53:53 +0000 (14:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 20 Jul 2020 07:16:23 +0000 (09:16 +0200)
commit03ba7e00f8054e19ffff4a03018f4e0b13a6f291
treeb6b6a3fe3fbc8cb52656e3c02806f00c62ed4ed6
parent244d012801dae30c91983b360457c78d481584b0
drm/ast: Use managed MM initialization

Cleaning up ast's MM code with ast_mm_fini() resets the write-combine
flags on the VRAM I/O memory. Drop ast_mm_fini() in favor of an auto-
release callback. Releasing the device also executes the callback.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200716125353.31512-7-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c
drivers/gpu/drm/ast/ast_mm.c