mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
video: tegra: nvmap: Add NUMA support in nvmap
In NUMA system, user can request nvmap to allocate from any particular node using NvRmMem APIs. Add code to request allocation from such requested node. While allocating pages from page pool, check if those pages belong to requested NUMA node. In some cases, we may not need to use NUMA support e.g. in color pages allocation code, we don't need to use NUMA, as page coloring is needed only for t19x chips. JIRA TMM-5287 Bug 4043165 Change-Id: If8043278122068773a802d83723d287d32914e14 Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2889707 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
30e3826bc4
commit
594e39e498
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* structure declarations for nvmem and nvmap user-space ioctls
|
||||
*
|
||||
* Copyright (c) 2009-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2009-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -103,6 +103,7 @@ struct nvmap_alloc_handle {
|
||||
__u32 heap_mask; /* heaps to allocate from */
|
||||
__u32 flags; /* wb/wc/uc/iwb etc. */
|
||||
__u32 align; /* min alignment necessary */
|
||||
__s32 numa_nid; /* NUMA node id */
|
||||
};
|
||||
|
||||
struct nvmap_alloc_ivm_handle {
|
||||
|
||||
Reference in New Issue
Block a user