mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
video: tegra: nvmap: Add support for Serial Id feature
Add support for Serial Id feature which will be used by Nsight for buffer tracking purpose. This feature expects a unique serial id per buffer even if it is shared across multiple client processes. Add following code: - Create a new global counter field for serial id in nvmap device. Initialize it to 0 when nvmap device is initialized. - Introduce a new field for serial_id in nvmap_handle struct. - When nvmap_handle is created, assign it's serial_id field with global counter's value, and increment global counter. - During NvRmMemQueryHandleParameters return this serial_id associated with the handle. - Do not decrement counter for serial_id even after freeing the handle. Bug 4138373 Change-Id: Ic1fe22b082eefb352986f8fa44d4c38d186a366f Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2918510 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
5c4d5e62a0
commit
01db38f08e
@@ -227,6 +227,7 @@ struct nvmap_handle_parameters {
|
||||
__u64 coherency;
|
||||
__u64 size;
|
||||
__u64 offset;
|
||||
__u64 serial_id;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user