“96050bca22f4fe6c8db175e02c8530a9720e5e9b”上不存在“drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c”
提交 c6ea2f56 编写于 作者: Z Zheng Chongzhen 提交者: guzitao

sw64: iommu: fix the mask of physical address when flushing pcache

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6ILC2

--------------------------------

PCACHE_FLUSHPADDR reg specifies addr[47:7] of the physical address
of the pte to be flushed, and other bits reserved, so we can write
the physical address directly into the reg.
Signed-off-by: NZheng Chongzhen <zhengchongzhen@wxiat.com>
Reviewed-by: NHe Sheng <hesheng@wxiat.com>
Signed-off-by: NGu Zitao <guzitao@wxiat.com>
上级 d703008e
......@@ -167,7 +167,7 @@ flush_device_tlb(struct sunway_iommu_domain *sdomain,
switch (hflush_addr) {
case PCACHE_FLUSHPADDR:
flush_addr = __pa(flush_addr) & 0xffffffff80;
flush_addr = __pa(flush_addr);
/* Set memory bar here */
mb();
write_piu_ior0(hose->node, hose->index,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册