Re: [PATCH] drm/amdgpu: Use uncached ioremap() for LoongArch

2023-03-06 Thread WANG Xuerui
On 2023/3/6 10:49, Huacai Chen wrote: Hi, Christian, On Mon, Mar 6, 2023 at 12:40 AM Christian König wrote: Am 05.03.23 um 06:21 schrieb Huacai Chen: LoongArch maintains cache coherency in hardware, but its WUC attribute (Weak-ordered UnCached, which is similar to WC) is out of the scope of

Re: [PATCH] drm/amdgpu: Use uncached ioremap() for LoongArch

2023-03-05 Thread Christian König
Am 06.03.23 um 04:01 schrieb WANG Xuerui: On 2023/3/6 10:49, Huacai Chen wrote: Hi, Christian, On Mon, Mar 6, 2023 at 12:40 AM Christian König wrote: Am 05.03.23 um 06:21 schrieb Huacai Chen: LoongArch maintains cache coherency in hardware, but its WUC attribute (Weak-ordered UnCached, whic

Re: [PATCH] drm/amdgpu: Use uncached ioremap() for LoongArch

2023-03-05 Thread Huacai Chen
Hi, Christian, On Mon, Mar 6, 2023 at 12:40 AM Christian König wrote: > > Am 05.03.23 um 06:21 schrieb Huacai Chen: > > 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.

Re: [PATCH] drm/amdgpu: Use uncached ioremap() for LoongArch

2023-03-05 Thread Christian König
Am 05.03.23 um 06:21 schrieb Huacai Chen: 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. So use uncached ioremap()

[PATCH] drm/amdgpu: Use uncached ioremap() for LoongArch

2023-03-04 Thread Huacai Chen
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. So use uncached ioremap() for LoongArch in the amdgpu driver. Signed-