amitabhd
2cc3c99c6e
host1x_emu: Adding API dispatch functionality
...
Adding dynamic APi dispatch functionality in host1x-fence
modue. This CL exports new host1x wrapper API, which can
be called by client kernel modules. The wrapper API dispatch
call to either Host1x module or Host1x-EMU depending if the
host1x-emu driver registered its interface during its probe.
Bug 5064819
Change-Id: I49445cdce7c3795a2c94fde9d0871da393993554
Signed-off-by: amitabhd <amitabhd@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3306857
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Leslin Varghese <lvarghese@nvidia.com >
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com >
2025-07-24 10:19:15 +00:00
amitabhd
0f04d6c204
host1x_emu: HR Timer Syncpoint Fence Polling
...
1. This change enable HR Timer Syncpoint polling and
disable the thread based fence polling.
2. Default timer interval is 200usec. The timer value
is taken from DT. If the timer interval in DT is less
then 50usec, default timer interval is taken.
Jira HOSTX-5527
Change-Id: I6644f1362f28a8901e4e384f1290be9807c30036
Signed-off-by: amitabhd <amitabhd@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3268636
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Santosh BS <santoshb@nvidia.com >
2025-07-24 10:19:13 +00:00
Jon Hunter
f01227d4ea
drivers: Drop inline from driver remove wrapper
...
The driver remove function is a function pointer and therefore, it does
not make sense to define the function as an 'inline'. Update the
coccinelle script and drivers to remove the inline statement.
Bug 4749580
Change-Id: Ia03691b75c4edffe609f27468b911a92a5ddbd68
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3233980
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:08 +00:00
Jon Hunter
33ffbe3ff2
gpu: host1x-emu: Fix build for Linux v6.11
...
In Linux v6.11, the 'platform_driver' structure 'remove' callback was
updated to return void instead of 'int'. Update the host1x-emu drivers
as necessary to fix this.
Bug 4749580
Change-Id: I9b4bddd4ae57087c34ce34cea7e8b54b14d4793c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3202780
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
2025-07-24 10:19:07 +00:00
amitabhd
872cead7b6
host1x: Emulated Syncpoint KMD Driver
...
1. Update Host1x-Syncpt
- add syncpt-list in syncpoint-pool structure.
- add exported "host1x-syncpt-*" interface and supporting private interface.
2. Update Host1x-NvHost
- add support for nvhost-syncpt and nvhost-client interface and supporting private interface.
- falcon and pm interface not supported
3. Update Host1x-Fence
- add exported "host1x-fence-*" interface and supporting private interface.
4. Add Host1x-Poll
- Per Pool polling workequeue created
- add poll supporting private interface.
5. Add new IOCTL
Jira HOSTX-5514
Change-Id: I187fa7ed89a3479e51b79f9d8d438ede75e1a36a
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3136834
Tested-by: Amitabh Dutta <amitabhd@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Amitabh Dutta <amitabhd@nvidia.com >
2025-07-24 10:18:57 +00:00