]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Add writecombine support for drm
authorHuacai Chen <chenhuacai@loongson.cn>
Tue, 31 May 2022 10:04:10 +0000 (18:04 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 3 Jun 2022 12:09:27 +0000 (20:09 +0800)
commitceaf1105f3976e5ec0bd2a6140f536e1d1f1382b
tree488f331128a8ba653855b4434dcf1825b12804bb
parentf8d2df20ccabf6e4e7d307c88fa2bb56ff3c8bfe
LoongArch: Add writecombine support for drm

LoongArch maintains cache coherency in hardware, but its WUC attribute
(Weak-ordered UnCached, which is similar to WC) is out of the scope of
cache coherency machanism. This means WUC can only used for write-only
memory regions.

Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
drivers/gpu/drm/drm_vm.c
drivers/gpu/drm/ttm/ttm_module.c
include/drm/drm_cache.h