Commit 16ede8b7 authored by Yabin Li's avatar Yabin Li Committed by yangdepei
Browse files

hct: change the maximum number of supported ccps from 16 to 48.

hygon inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I99ZNA



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

There are more than 16 ccps from Hygon-Gen4 CPU, so the driver need
update to support more ccps

Signed-off-by: default avatarYabin Li <liyabin@hygon.cn>
Signed-off-by: default avataryangdepei <yangdepei@hygon.cn>
parent dc57fb03
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -39,12 +39,13 @@
 * 0.3 -- support host-noiommu mode memory encryption function,
 *        and performance optimization in virtual machines (enable caching).
 * 0.4 -- support compiling hct.ko when mdev module is disabled.
 * 0.5 -- change the maximum number of supported ccps from 16 to 48.
 */

#undef  pr_fmt
#define pr_fmt(fmt)				"hct: " fmt

#define VERSION_STRING				"0.4"
#define VERSION_STRING				"0.5"
#define DRIVER_AUTHOR				"HYGON Corporation"
#define VERSION_SIZE				16

@@ -92,7 +93,7 @@
#define MCCP_INSTANCE_MASK			(~((1u << MCCP_INSTANCE_OFFSET) - 1))
#define MCCP_PASID_SIZE                         (1 << 8)
#define MCCP_IOVA_MAX_SLOT			1024
#define MCCP_DEV_MAX				16
#define MCCP_DEV_MAX				48
#define MCCP_DEV_QUEUE_MAX			8
#define MCCP_DEV_QUEUE                          5
#define MCCP_QUEUES_MAX				(MCCP_DEV_MAX * MCCP_DEV_QUEUE_MAX)