]> 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)
commit52d7455070883f89d079635e0b22e37568fe5a85
tree488f331128a8ba653855b4434dcf1825b12804bb
parent6e693ddf958d15d66d6b8de6b9def57a3c10eca2
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