Mikko Perttunen
0898aa355a
gpu: host1x-fence: Multiple triggers for pollfd
...
Allow multiple simultaneous triggers for pollfd, as is
required by CUDA.
Bug 3960834
Bug 4011607
Jira HOSTX-4670
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com >
Change-Id: I69479551f5f56cfb565699123ced35d844423703
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2872368
Reviewed-by: Santosh BS <santoshb@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-22 18:53:57 -07:00
Jon Hunter
ee4413e974
gpu: host1x-fence: Fix build for Linux v6.2
...
Upstream Linux kernel commit ff62b8e6588f ("driver core: make struct
class.devnode() take a const *") updated the 'devnode' function pointer
under the class structure to take a const device struct. This breaks
building the Tegra host1x-fence driver with Linux v6.2. Make the
necessary changes to the host1x-fence driver to fix the build breakage.
Bug 3936429
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Change-Id: Ia7abb62424c9532342a16ca7b5e8470e96b91d25
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2841034
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-01-11 11:26:51 -08:00
Mikko Perttunen
e2b55e1a2c
gpu: host1x-fence: Add Tegra234 compatible string
...
To allow detection of host1x instances on Tegra234, add the
corresponding compatible string.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com >
Change-Id: Idf3259403793faeedd467e3b3fd012acb468e608
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2823261
Reviewed-by: Deepak Kumar Badgaiyan <dbadgaiyan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Deepak Kumar Badgaiyan <dbadgaiyan@nvidia.com >
2022-12-12 15:06:29 -08:00
Mikko Perttunen
f4a3e6b49a
gpu: host1x-fence: Add pollfd support
...
Add support for pollfds, which are essentially file descriptors
with SYNC_FILE polling characteristics but that can have new
fences assigned to after the previous expires.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com >
Change-Id: I6471720089041d3cc72dfaf2d1de221d80d28c27
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2806032
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-11-24 18:08:56 -08:00
Mikko Perttunen
6da4ac36e6
gpu: host1x-fence: Adapt for change in host1x_fence_create
...
Add 'true' parameter to enable internal timeout since there is no
external cancellation mechanism.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com >
Change-Id: I6ff40e7a38a6273cfa4ee07c2a347636f5f0ecc5
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2786639
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-10-27 11:55:13 -07:00
Mikko Perttunen
5b33382ce2
gpu: Add host1x-fence driver
...
Add driver for implementing an UAPI for conversion between
SYNC_FILE FDs and raw syncpoint ID / value pairs.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com >
Change-Id: I54e30877f782e3e67ca91e09589d0c4862a257cd
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2729238
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit
2022-07-05 14:30:11 -07:00