mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
vse : GCSE1/2 AES Linux
Added engine id in linux vse driver for GCSE1/2 AES0/1 Jira ESSS-1413 Change-Id: Icb38941c2c17e04fe0979070c80abaac9d018e74 Signed-off-by: Rounak Agarwal <rounaka@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3168936 Tested-by: Khushi . <khushi@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Sandeep Trasi <strasi@nvidia.com> Reviewed-by: Leo Chiu <lchiu@nvidia.com>
This commit is contained in:
@@ -646,9 +646,13 @@ enum se_engine_id {
|
|||||||
VIRTUAL_SE_AES1,
|
VIRTUAL_SE_AES1,
|
||||||
VIRTUAL_SE_SHA = 2,
|
VIRTUAL_SE_SHA = 2,
|
||||||
VIRTUAL_SE_TSEC = 6,
|
VIRTUAL_SE_TSEC = 6,
|
||||||
VIRTUAL_GCSE1_SHA = 7,
|
VIRTUAL_GCSE1_AES0 = 7,
|
||||||
VIRTUAL_GCSE2_SHA = 8,
|
VIRTUAL_GCSE1_AES1 = 8,
|
||||||
VIRTUAL_MAX_SE_ENGINE_NUM = 9
|
VIRTUAL_GCSE1_SHA = 9,
|
||||||
|
VIRTUAL_GCSE2_AES0 = 10,
|
||||||
|
VIRTUAL_GCSE2_AES1 = 11,
|
||||||
|
VIRTUAL_GCSE2_SHA = 12,
|
||||||
|
VIRTUAL_MAX_SE_ENGINE_NUM = 13
|
||||||
};
|
};
|
||||||
|
|
||||||
enum tegra_virtual_se_aes_iv_type {
|
enum tegra_virtual_se_aes_iv_type {
|
||||||
@@ -5815,6 +5819,10 @@ static int tegra_hv_vse_allocate_se_dma_bufs(struct tegra_vse_node_dma *node_dma
|
|||||||
switch (ivc_map->se_engine) {
|
switch (ivc_map->se_engine) {
|
||||||
case VIRTUAL_SE_AES0:
|
case VIRTUAL_SE_AES0:
|
||||||
case VIRTUAL_SE_AES1:
|
case VIRTUAL_SE_AES1:
|
||||||
|
case VIRTUAL_GCSE1_AES0:
|
||||||
|
case VIRTUAL_GCSE1_AES1:
|
||||||
|
case VIRTUAL_GCSE2_AES0:
|
||||||
|
case VIRTUAL_GCSE2_AES1:
|
||||||
/*
|
/*
|
||||||
* For AES algs, the worst case requirement is for AES-GCM encryption:
|
* For AES algs, the worst case requirement is for AES-GCM encryption:
|
||||||
* 1. src buffer(requires up to max limit specified in DT)
|
* 1. src buffer(requires up to max limit specified in DT)
|
||||||
|
|||||||
Reference in New Issue
Block a user