amitabhd
d1d3b883df
host1x_emu: Fix NvHost Interface and IOCTL
...
1. The nvhost interface like syncpoint offset/aperture were
taking "pdev" of Host1x device, but emulated syncpoint driver
implementd the interface with "pdev" of clinet device. This was
done to align all other interface input parameter.
This patch revert the above alignment of intput parameter change.
2. This patch modify SyncpointWait IOCTL handler to return timestamp
of signal observed by KMD to UMD
Bug 4895937
Change-Id: I61ba02992963ba272e5c2514ffe8c24fff510c3a
Signed-off-by: amitabhd <amitabhd@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3226744
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Santosh BS <santoshb@nvidia.com >
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com >
2025-07-24 10:19:11 +00:00
amitabhd
d5573ecc31
host1x_emu: Fix fence object memory leak
...
Set release callback function for dma_fence
object to release struct host1x_syncpt_fence.
Jira HOSTX-5546
Bug 4919054
Change-Id: I0f06fc6e4b1d1b38f56c779898fb09990364cc87
Signed-off-by: amitabhd <amitabhd@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3260748
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com >
Reviewed-by: Sanif Veeras <sveeras@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:11 +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