From 7f1652ef11a275b0cec1f22791b4b5ea14b6218e Mon Sep 17 00:00:00 2001 From: yangxiangkai Date: Mon, 4 Nov 2024 08:56:43 +0800 Subject: [PATCH] virtcca feature : GPU supports maximum 1G page table mapping. virtcca inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IB1QHX -------------------------------- VirtCCA Feature: GPU supports maximum 1G page table mapping. Signed-off-by: yangxiangkai --- --- arch/arm64/include/asm/kvm_tmm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/kvm_tmm.h b/arch/arm64/include/asm/kvm_tmm.h index a26cade21586..7f865789415b 100644 --- a/arch/arm64/include/asm/kvm_tmm.h +++ b/arch/arm64/include/asm/kvm_tmm.h @@ -129,7 +129,7 @@ bool is_virtcca_iova_need_vfio_dma(struct kvm *kvm, uint64_t iova); #define CVM_L2_BLOCK_SIZE BIT(CVM_TTT_LEVEL_SHIFT(2)) #define TMM_GRANULE_SIZE2 12 -#define TMM_TTT_WIDTH 19 +#define TMM_TTT_WIDTH 9 #define TMM_GRANULE_SIZE (1UL << TMM_GRANULE_SIZE2) #define tmm_granule_size(level) (TMM_GRANULE_SIZE << ((3 - level)) * TMM_TTT_WIDTH) -- Gitee