]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: Remove existing framebuffers before loading driver
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 15 Nov 2018 10:42:16 +0000 (11:42 +0100)
committerDave Airlie <airlied@redhat.com>
Sun, 18 Nov 2018 23:50:02 +0000 (09:50 +1000)
commit87d1a84012f91495bfb3b22b235d90ce1f1efe8b
tree4f1bbc5669fb08e33ac141eda49d849b499cd28b
parentf11bd5030d4f1983e167d654e8455adaea4ba160
drm/ast: Remove existing framebuffers before loading driver

If vesafb attaches to the AST device, it configures the framebuffer memory
for uncached access by default. When ast.ko later tries to attach itself to
the device, it wants to use write-combining on the framebuffer memory, but
vesefb's existing configuration for uncached access takes precedence. This
results in reduced performance.

Removing the framebuffer's configuration before loding the AST driver fixes
the problem. Other DRM drivers already contain equivalent code.

Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1112963
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: <stable@vger.kernel.org>
Tested-by: Y.C. Chen <yc_chen@aspeedtech.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_drv.c