summaryrefslogtreecommitdiffstats
path: root/include/linux/nvhost_ioctl.h
Commit message (Collapse)AuthorAge
* include: uapi: move nvhost user-interface headersAnuj Gangwar2019-05-03
| | | | | | | | | | | | | | | | | | Move the linux user-interface headers from include/linux/ to include/uapi/linux/. Change the path for above headers in the dependent files Bug 2062672 Change-Id: I2e116dc8f6c33f53c03fb56b923931b6e600b534 Signed-off-by: Anuj Gangwar <anujg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1953709 (cherry picked from commit 965ceca35c92eba011163f4c637b3b9e0f073f1a) Signed-off-by: Anuj Gangwar <anujg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2110116 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* eventlib: unify NVDLA/PVA fence types and add fence recordingDmitry Antipov2018-08-28
| | | | | | | | | | | | | | Bug 2170736 Change-Id: If4fdeda140bf2474a08beb2a0d7c3fc1737a1a66 Signed-off-by: Dmitry Antipov <dantipov@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1750906 Reviewed-by: Saleh Dindar <sdindar@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Colin Tracey <ctracey@nvidia.com> Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* video: tegra: host: vhost: support camera enginesDamian Halas2018-08-15
| | | | | | | | | | | | | | | | | | | | | | Add support for virtual isp, vi, nvcsi engines on t194. The guest driver will not access those engines directly. They will be powered up by rmserver upon guest connecting. Access to engines' functionality will depend on RCE. Also, merge nvhost_ioctl_t194.h to nvhost_ioctl.h to avoid inconsecutive list of ids. JIRA EVLR-2589 JIRA EVLR-2479 JIRA EVLR-2591 Change-Id: Ib78b1d43f69b37606f5c2c378cb0547bb05f282f Signed-off-by: Damian Halas <dhalas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1761945 GVS: Gerrit_Virtual_Submit Reviewed-by: Nirav Patel <nipatel@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* video: tegra: host: add User API to trigger event on poll'able FDDeepak Nibade2018-03-06
| | | | | | | | | | | | | | | | | | | | Add User IOCTL API NVHOST_IOCTL_CTRL_POLL_FD_TRIGGER_EVENT which will accept a syncpoint_id, a threshold and a file descriptor This API will register a fast notifier with syncpoint_id and threshold, and the notifier will post the event to poll'able fd received Bug 200326065 Jira HOSTX-332 Change-Id: I2eb452aea9beb2edb395f11b75f35511e108d42d Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1665695 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* video: tegra: host: add User API to get poll'able FDDeepak Nibade2018-03-06
| | | | | | | | | | | | | | | | | | | | | | | | Add IOCTL API NVHOST_IOCTL_CTRL_POLL_FD_CREATE to get a poll'able file descriptor This API will allocate a file descriptor and set struct nvhost_event_poll_fd_rec as private data for file Also define poll and release operations for the file descriptor poll() API will return success if event is posted on private data It will also clear the event before returning Bug 200326065 Jira HOSTX-332 Change-Id: I5bca2f8e26cbac848d3fd714aa4d7198b5895fe5 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1665694 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* video: tegra: host: return clock type in waitmexDamian Halas2017-09-12
| | | | | | | | | | JIRA VFND-4441 Change-Id: I569504c7bc5f6e126697839144c0b6fb41c61d8e Signed-off-by: Damian Halas <dhalas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1547298 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* video: tegra: host: Add TSECB module IDMikko Perttunen2017-08-29
| | | | | | | | | | | | | | This allows clientmod testing to be done on TSECB. Jira HOSTX-201 Change-Id: I7197997085c50f82699ee82f6c40924732d9d09c Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1546821 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
* video: tegra: host: Add limit for syncpt incrs in one submitMikko Perttunen2017-05-04
| | | | | | | | | | | | | | Set max number of syncpt incrs in a submit to 10. Using this we can remove a VLA. Bug 200299572 Change-Id: I7524e77591ac784819636ecfe7f1b35a10fda2ef Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-on: http://git-master/r/1473583 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
* video: tegra: host: add NVHOST_IOCTL_CTRL_CHECK_MODULE_SUPPORTDamian Halas2016-09-21
| | | | | | | | | | | | | | Provides information if a given module is present and supported by a driver. Useful in virtualization where certain modules might be absent from some guest OSes. VFND-1892 Change-Id: I91a4fce80d4afdfda3af0bf240e81d36d5605ecb Signed-off-by: Damian Halas <dhalas@nvidia.com> Reviewed-on: http://git-master/r/1213053 Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
* include: nvhost: add checksum arguements to submitDeepak Nibade2016-07-12
| | | | | | | | | | | Keep nvhost_ioctl.h in sync with UMD version Change-Id: I92e1494200af5e8f90462cae4ee8d3eedd3263c1 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1178389 GVS: Gerrit_Virtual_Submit Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
* video: tegra: host: support setting reloc typesDeepak Nibade2016-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support to set reloc types for each relocation Add a structure nvhost_reloc_type to pass reloc type data from user space Support below types for now : NVHOST_RELOC_TYPE_DEFAULT NVHOST_RELOC_TYPE_PITCH_LINEAR NVHOST_RELOC_TYPE_BLOCK_LINEAR Support passing address of array of nvhost_reloc_type in submit arguments nvhost_submit_args In job submit path, copy this array into job structure. In do_relocs() call platform specific get_reloc_phys_addr() which will accept relocation address and reloc type, and then return appropriate relocation address Use this new address to patch the relocations Jira HOSTX-36 Change-Id: I02b610a5578c39f22d6ab30f12a0743675c5c631 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1176978 Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
* video: tegra: host: Interface for SetSyncPointNameGagan Grover2015-12-30
| | | | | | | | | | | | | | Added kernel interface for NvRmChannelSetSyncPointName. Bug 1695116 Change-Id: I3aa5fc8905c88de2706a6cd32ffbdae358aabe40 Signed-off-by: Gagan Grover <ggrover@nvidia.com> Reviewed-on: http://git-master/r/921909 (cherry-picked from commit 2d5188490f55b19c25ee8b23716d6a721ee04b56) Reviewed-on: http://git-master/r/927638 Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Tested-by: Arto Merilainen <amerilainen@nvidia.com>
* video: tegra: host: add IOCTL to provide host infoShridhar Rasal2015-05-18
| | | | | | | | | | | | | | - Adds kernel side ioctl definition to provide host information. - Provides callback to update host characteristics. - considers channel policy as map-at-submit globally if any of the device supports it. Bug 1580726 Change-Id: I5f935670aa937a132beb485d7658978746958457 Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/719280 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* video: tegra: host: Support KBps in BW requestsArto Merilainen2015-04-04
| | | | | | | | | | | | | Currently the bandwidth request is delivered as Bps, however, this causes an issue as the field width is only 32bits. This patch adds support to pass requests as KBps to avoid this issue. Bug 1619428 Change-Id: If16a0604134070d93c40be064b2517cf4ba4eb69 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/710273
* video: tegra: host: remove unused IOCTLShridhar Rasal2015-04-04
| | | | | | | | | | | | Remove temp added IOCTL NVHOST_IOCTL_CHANNEL_GET_CLK_RATE_LEGACY Bug 200067948 Change-Id: Id6af559d1b8ed9a9a82e06bb3945f1cf04edc4be Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/681421 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* video: tegra: host: add NVHOST_IOCTL_CHANNEL_GET_CLK_RATE_LEGACYShridhar Rasal2015-04-04
| | | | | | | | | | | | | | | | | With module branching updating user space and kernel space IOCTL definition at the same time is impossible. This patch adds temp IOCTL NVHOST_IOCTL_CHANNEL_CLK_RATE_LEGACY. This temp IOCTL getting added to update NVHOST_IOCTL_CHANNEL_GET_CLK_RATE _IO macro parameter. Bug 200067948 Change-Id: I540d097683e84729863218e9ee5ae3cd56b971cd Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/672017 Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Tested-by: Arto Merilainen <amerilainen@nvidia.com>
* video: tegra: host: Support explicit buffer mapArto Merilainen2015-03-18
| | | | | | | | | | | | | | | | | | | | | Currently nvhost supports only implicit mapping; Data and command buffers are mapped at submit time and command buffers are patches with data buffer addresses. However, this operation is expensive because the command buffers need to be mapped into kernel address space for patching. This patch adds support to explicit buffer mapping. This allows using the memory addresses direrctly inside command buffers making relocations themselves unnecessary. Bug 1573309 Change-Id: I64c0f237d3f37268d2fb9d1b0e4574e4c870742f Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/592375 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
* gpu: nvgpu: create new nvgpu ioctl headerKonsta Holtta2015-03-18
| | | | | | | | | | | | | | | Move nvgpu ioctls from the many user space interface headers to a new single nvgpu.h header under include/uapi. No new code or replaced names are introduced; this change only moves the definitions and changes include directives accordingly. Bug 1434573 Change-Id: I4d02415148e437a4e3edad221e08785fac377e91 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/542651 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* gpu: nvgpu: rename gpu ioctls and structs to nvgpuKonsta Holtta2015-03-18
| | | | | | | | | | | | | | To help remove the nvhost dependency from nvgpu, rename ioctl defines and structures used by nvgpu such that nvhost is replaced by nvgpu. Duplicate some structures as needed. Update header guards and such accordingly. Change-Id: Ifc3a867713072bae70256502735583ab38381877 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/542620 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* gpu: nvgpu: implement poll() for semaphoresKonsta Holtta2015-03-18
| | | | | | | | | | | | | | | | | | Add poll interface and control ioctls for waiting for GPU job completion via semaphores. Poll on a gk20a channel file waits for events from pending semaphore interrupts (stalling) of that channel. New ioctls enable and disable the events, and clear a single interrupt event so that next poll doesn't wake up for it again. Bug 1528781 Change-Id: I5c6238966b5d0900c8ab263c6a7f8f2611901f33 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/497750 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* video: tegra: host: support of vi-i2cCharlie Huang2015-03-18
| | | | | | | | | | | | | add support of vi-i2c which interfaced with nvhost bug 1506409 bug 200036553 Change-Id: Iac79149401c3a8221b292cc4f2a26469efc3df93 Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/499461 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
* Revert "drivers: i2c: support of vi-i2c"Arto Merilainen2015-03-18
| | | | | | | | | | | | This reverts commit 1636956809b82fe6ad5f4860fc60996f487a77de. Change-Id: I0e46e1b064510aa84dbc2cf18a060cc451d225d9 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/494750 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com> Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
* drivers: i2c: support of vi-i2cCharlie Huang2015-03-18
| | | | | | | | | | | | | add support of vi-i2c which interfaced with nvhost bug 1506409 Change-Id: I1dbb503bcc3e91acdf3bf576be29d3d08d908c1c Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/487928 Reviewed-by: Chien-Yu Chen <chichen@nvidia.com> Reviewed-by: Rakesh Sharma <rasharma@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
* gpu: nvgpu: add ioctl to force reset channelDeepak Nibade2015-03-18
| | | | | | | | | | | | | | | | | | | Add below ioctl to force channel reset/recovery. NVHOST_IOCTL_CHANNEL_FORCE_RESET This recovery/reset is initiated by triggering mmu fault on channel so as to force the channel out (as oppose to waiting until channel is preempted) Bug 200027958 Change-Id: Idd3c10ef5fa691d746e34a8b890bd79aca815a20 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/456084 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
* gpu: nvgpu: add channel enable/disable ioctlsDeepak Nibade2015-03-18
| | | | | | | | | | | | | | | | | | | | | | Add below ioctls for channels 1. NVHOST_IOCTL_CHANNEL_ENABLE To enable the channel 2. NVHOST_IOCTL_CHANNEL_DISABLE To disable the channel 3. NVHOST_IOCTL_CHANNEL_PREEMPT To preempt the channel (Not supported for a channel in TSG) Bug 1514064 Change-Id: Ie9315f9742bb27efb22f993799c51a1ecda91756 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/449229 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* video: tegra: host: Rework frequency aggregationArto Merilainen2015-03-18
| | | | | | | | | | | | | | | | | | | | | | This patch reworks frequency aggregation for camera use cases. Earlier we took the maximum of all requests and used that value. This patch modifies the code to: 1) Sum all bandwidth requests 2) Sum all pixelrate requests 3) Take maximum between all floor requests 4) If defined, these constraints are delivered for a device specific .aggregate_constraints() callback. If not, we convert bw request into a frequency and take maximum between floor request and bw frequency. 5) If devfreq rate is higher than the aggregated frequency, we use it 6) Finally, if no frequency is available at this point, we fall-back to the module specific default rate. Bug 1514352 Change-Id: If89f5e509748e58c2c59c8322f2eefce5a198fda Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/436718
* gpu: nvgpu: Support sync framework with semaphoresLauri Peltonen2015-03-18
| | | | | | | | | | | | | Add sync_gk20a.c/h that support creating Android sync fence fd's from gk20a semaphores. Bug 1445450 Change-Id: I42272996721ceec38ba5510eae6770720bc9dd10 Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com> Reviewed-on: http://git-master/r/374843 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* video: tegra: host: improve nvhost_fence docAntoine Chauveau2015-03-18
| | | | | | | | | | | | | Fix typos and better document how the interface can be used with either raw syncpoints or sync fence fds. Bug 1356557 Change-Id: Id69053d77c7b10cfd7fc90f4fec3e635765354c4 Signed-off-by: Antoine Chauveau <achauveau@nvidia.com> Reviewed-on: http://git-master/r/413148 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* gpu: nvgpu: Allow suppressing WFI on submitTerje Bergstrom2015-03-18
| | | | | | | | | | | Allow suppressing WFI when submitting work and requesting a fence back. Bug 1491545 Change-Id: Ic3d061bb4f116cf7ea68dbd6a1b2ace9f11d0ab5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/390457
* video: tegra: host: Support NVJPGTerje Bergstrom2015-03-18
| | | | | | | | | | Add support for NVJPG. Bug 1331524 Change-Id: I6caa3b2811df769fe84764d94b35e54d283452a0 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/277773
* video: tegra: host: Implement NVDEC driverTerje Bergstrom2015-03-18
| | | | | | | | | Bug 1331516 Change-Id: Ifa9604439d0924928afa032059c0efe7f703725e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/264878 Reviewed-by: Automatic_Commit_Validation_User
* video: tegra: host: add syncpt get/free ioctlsDeepak Nibade2015-03-18
| | | | | | | | | | | | | | | | | | | Add below two new ioctls for client managed syncpts: 1) NVHOST_IOCTL_CHANNEL_GET_CLIENT_MANAGED_SYNCPOINT To provide a client managed syncpt to user space 2) NVHOST_IOCTL_CHANNEL_FREE_CLIENT_MANAGED_SYNCPOINT To free a client managed syncpt from user space Bug 1482249 Bug 1305024 Change-Id: Ie9376c761024f2ad6e8a35633017153ca5cc8fe7 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/394158 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* video: tegra: host: ioctl to set fence nameDeepak Nibade2015-03-18
| | | | | | | | | | | | | Add ioctl NVHOST_IOCTL_CTRL_SYNC_FENCE_SET_NAME to set name for a sync fence Bug 1473041 Change-Id: Iabc1c472f6fddc87dac75d3a37b75a83a834dc1e Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/391271 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* video: tegra: host: Remove 3D register readTerje Bergstrom2015-03-18
| | | | | | | | Change-Id: Ic176da5d95657f8b6f36922824449b8e189221e4 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/375977 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com> Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
* video: tegra: host: Fix submit ioctl signatureTerje Bergstrom2015-03-18
| | | | | | | | | | | | | | | | Submit has one pointer with field type __u32. Change that to __u64 and arrange the fields to preserve padding. This will cause user space to fall back to legacy ioctl until user space header is fixed. Bug 1469081 Change-Id: I7a289007e9609947cf2b953197041a7e788143cd Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/374868 Reviewed-by: Tuomas Kulve <tkulve@nvidia.com> Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
* video: tegra: host: use signed type for channel fdYogish Kulkarni2015-03-18
| | | | | | | | | | | | Change argument of channel open ioctl to return signed type. Bug 1441062 Change-Id: I6d5d6bd3afabda08a22ae28e6cc9f187ef4afa86 Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com> Reviewed-on: http://git-master/r/364156 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* video: tegra: host: add ioctl to open a channelYogish Kulkarni2015-03-18
| | | | | | | | | | | | | | | | | Channel can be opened from user-space with open() system call on specific device node, this is additional mechanism to open new channel using ioctl() on already opened channel. This ioctl will return fd, all operations supported on channel opened with open() are supported on channel opened using this mechanism. To close the channel call close(fd). Bug 1441062 Change-Id: Iac4a2ea66c9ac09ccaa7959a0653af346eeeda0e Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com> Reviewed-on: http://git-master/r/361550 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* video: tegra: host: Implement gk20a sync objectTerje Bergstrom2015-03-18
| | | | | | | | | | | Implement support for sync fd fences in gk20a submit interface. Bug 1356557 Change-Id: I1e7231959d76559cb2d721c14adcabd30385fd6d Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/288798 Reviewed-by: Automatic_Commit_Validation_User
* video: tegra: host: Return a sync fd as fenceTerje Bergstrom2015-03-18
| | | | | | | | | | | | Add a flag to submit interface to get the fence as sync fd instead of a pair of sync point id and value. Bug 1356557 Change-Id: Id0ac9d6fe40fcc8768edcaedee0832a45cacc50d Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/288797 Reviewed-by: Automatic_Commit_Validation_User
* video: tegra: host: Add sync wait to submitTerje Bergstrom2015-03-18
| | | | | | | | | | | | Add sync fd wait to submit interface. This allows adding a wait in form of sync fd. Bug 1356557 Change-Id: Ieee60c5321a50bb4805eced415fe126283783104 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/288796 Reviewed-by: Automatic_Commit_Validation_User
* video: tegra: host: Make ioctls 64bit compatibleArto Merilainen2015-03-18
| | | | | | | | | | | | | | | | | | This patch updates ioctls so that they are 64-bit compatible. In cases where the only issue is with padding, this patch adds __packed to ensure that the compiler does not do any tricks. In cases where there are more fundamental issues in the structure, this patch adds a new 64bit compatible ioctl. 32-bit systems should work correctly with all these changes. Bug 1426482 Change-Id: Ice8752b08bc390e11f57e979641b386346ee29d8 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/347423 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
* video: tegra: host: Implement error notificationKirill Artamonov2015-03-18
| | | | | | | | | | | | | | Implement interface to pass gk20a error notification to userspace. bug 1297417 bug 1232244 Change-Id: If271a6f9c464e7b558de119d9746a7382d09fd62 Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-on: http://git-master/r/299476 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
* video: tegra: host: Userspace deliver class idsArto Merilainen2015-03-18
| | | | | | | | | | | | | | | This patch adds support to deliver class id information for each command buffer. Bug 1259826 Change-Id: I18807511db3f9eb2041f2f31b13df655ae7cdd93 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/277196 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> (cherry picked from commit 5a204198a4c0120f78cfb713c412ea7a40759411) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
* video: tegra: host: Remove legacy IOCTLsTerje Bergstrom2015-03-18
| | | | | | | | | Remove legacy calls. The old submit interface was deprecated a year ago and the old GPU ioctl's were not used in main codeline. Change-Id: I36b9815feed32efccac5c8c6f9bc0a27690cf3ee Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/267182
* video: tegra: host: Fix zcull ioctl argsTerje Bergstrom2015-03-18
| | | | | | | | | | | | | Zcull argument structs were reversed between old and new structs. Fix this inconsistency. Change-Id: Ie2eaa4ed0de95f6faccfd39dc1b95c141e722334 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/233649 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-by: Ken Adams <kadams@nvidia.com>
* video: tegra: host: Fix 64-bit compatible submitTerje Bergstrom2015-03-18
| | | | | | | | | | | | The new submit IOCTL is not 64-bit padding safe. Reorder to regain 64-bit safety. Also copy the fence argument in IOCTL. Change-Id: If7899b0f4152637168e0e1d0a63d951099edb6ec Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/232657 Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
* video: tegra: host: Add padding to nvhost_wait_argsTerje Bergstrom2015-03-18
| | | | | | | | | nvhost_wait_args gets compiled differently with 64-bit and 32-bit compilers. Fix it by adding padding. Change-Id: If7b1ff294814629bca19fa78b32eb8e467481a3b Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/225227
* video: tegra: host: Prepare for 64-bit compatTerje Bergstrom2015-03-18
| | | | | | | | Prepare nvhost new IOCTLs for 64-bit compatibility. Change-Id: I1c8bd37186d504d9ca217b3ca682eeaf2edff5e7 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/221443
* video: tegra: host: Fix regrdwr IOCTL signatureTerje Bergstrom2015-03-18
| | | | | | | | | | | | | | IOCTL signature for register read/write is incorrect. Fix it to match user space. Change-Id: I05555a26b35de17ddd23cd427ad557ed98da1186 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/222827 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
* drivers : video: host: gpu cycle state supportXue Dong2015-03-18
| | | | | | | | | bug 1154464 Change-Id: Ie35f8ecc2236e4abdbd86c14a646a12b00b6144e Signed-off-by: Xue Dong <xdong@nvidia.com> Reviewed-on: http://git-master/r/201518 Reviewed-by: Chao Xu <cxu@nvidia.com>