nvscic2c-pcie: Add Buffer limts per endpoint

Address security ARR: DOS60-REQ-7169 in streaming mode.
Add per endpoint streaming mode buffer limits.

Bug 4883175
JIRA NVIPC-2453

Change-Id: I31edb2bacf4a8af560e7e6da7d378da874d105bd
Signed-off-by: Janardhan Reddy <jreddya@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3196300
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Janardhan Reddy
2024-08-19 11:00:14 +00:00
committed by Jon Hunter
parent 6c9bba8912
commit cfaad9cd6d
7 changed files with 188 additions and 14 deletions

View File

@@ -1,5 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
/*
* SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES.
* All rights reserved.
*/
/*
* Internal to gos-nvscic2c module. This file is not supposed to be included
@@ -21,6 +24,8 @@ struct stream_ext_params {
struct node_info_t *peer_node;
u32 ep_id;
char *ep_name;
/* Streaming mode per endpoint PCIe aperture mapping limit */
uint64_t aperture_limit;
struct platform_device *host1x_pdev;
enum drv_mode_t drv_mode;
void *pci_client_h;