nvidia-oot: add support for hv-vse driver

Using this patch we are adding support for
hv-vse driver in oot kernel.

List of commit ids still which we are using file from
nvidia repo.
4eb5988cde vse-safety: align gpcdma buffer to 64 bytes
4852794a4a crypto: fix array out-of-bound access defect
56e33f53c8 crypto: extend features in multi-IVC development
0b7c238968 (multi_ivc) crypto: check crypto ctx before handling
7e35a5739b crypto: check crypto request before handling
446c88152f Revert "crypto: vse: add multi-ivc support-10"
c33753cbd6 crypto: disable Power management for GPCDMA cfg

JIRA ESLC-6885

Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Change-Id: I77c5abcff045e444ff320fbf2709b07f0ab383aa
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2794878
Reviewed-by: Leo Chiu <lchiu@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Manish Bhardwaj
2022-10-19 13:01:07 +00:00
committed by mobile promotions
parent 6da4ac36e6
commit ddd988fbf6
3 changed files with 4581 additions and 1 deletions

View File

@@ -7,3 +7,4 @@ ccflags-y += -I$(srctree)/include
obj-m += tegra-se-nvhost.o
obj-m += tegra-se-nvrng.o
obj-m += tegra-nvvse-cryptodev.o
obj-m += tegra-hv-vse-safety.o

View File

File diff suppressed because it is too large Load Diff

View File

@@ -244,7 +244,7 @@ static int tnvvse_crypto_sha_init(struct tnvvse_crypto_ctx *ctx,
/* Shake128/Shake256 have variable digest size */
if ((init_ctl->sha_type == TEGRA_NVVSE_SHA_TYPE_SHAKE128) ||
(init_ctl->sha_type == TEGRA_NVVSE_SHA_TYPE_SHAKE256)) {
// req->dst_size = init_ctl->digest_size;
sha_ctx->digest_size = init_ctl->digest_size;
if (init_ctl->digest_size > NVVSE_MAX_ALLOCATED_SHA_RESULT_BUFF_SIZE) {
result_buff = kzalloc(init_ctl->digest_size, GFP_KERNEL);
if (!result_buff) {