4 years ago[FOSS_TLK]security: tlk_driver: remove non-compat support
Scott Long [Fri, 5 Sep 2014 22:48:03 +0000]
[FOSS_TLK]security: tlk_driver: remove non-compat support

Now that OTE lib and TLK kernel have shifted over to 64bit
support the non-compat support in tlk_driver is no longer
needed.

This change removes the non-compat structs/routines and
removes "_compat" from the 64bit structs/routines to make
it clear they are being used.

Change-Id: I74ef915d6f1ec95ade10b075e5d0e0028ce2c9d4
Signed-off-by: Scott Long <scottl@nvidia.com>
Reviewed-on: http://git-master/r/755000
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

4 years ago[FOSS_TLK]security: tlk_driver: remove legacy ss support
Scott Long [Tue, 2 Sep 2014 20:11:10 +0000]
[FOSS_TLK]security: tlk_driver: remove legacy ss support

Remove TE_IOCTL_SS_NEW_REQ/TE_IOCTL_SS_REQ_COMPLETE
support as these ioctls are no longer used.

Change-Id: I1cc54ec94e24985ba6de28c24422a363d239cbab
Signed-off-by: Scott Long <scottl@nvidia.com>
Reviewed-on: http://git-master/r/754999
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

4 years ago[FOSS_TLK]security: tlk_driver: free tmp memrefs
Scott Long [Fri, 29 Aug 2014 23:18:18 +0000]
[FOSS_TLK]security: tlk_driver: free tmp memrefs

Release temporary memory parameter references at the conclusion
of a launch operation to ensure pages are unpinned and
other resources are properly cleaned up.

Change-Id: I584e2580be487fe281a88cb16d41aa241763561d
Signed-off-by: Scott Long <scottl@nvidia.com>
Reviewed-on: http://git-master/r/754998
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

4 years ago[FOSS_TLK]security: tlk_driver: remove legacy IRQ/SS support
Varun Wadekar [Mon, 21 Jul 2014 06:57:43 +0000]
[FOSS_TLK]security: tlk_driver: remove legacy IRQ/SS support

- Delete the legacy IRQ handler registration
- Delete the legacy SS handler registration

Change-Id: I852ed100ebe8257d922645ae53824ba885ab4436
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/754997
Reviewed-by: Automatic_Commit_Validation_User

4 years ago[FOSS_TLK]security: tlk_driver: new ss protocol support
Scott Long [Tue, 8 Jul 2014 18:43:10 +0000]
[FOSS_TLK]security: tlk_driver: new ss protocol support

The new secure storage protocol design allows the tlk daemon
to exchange data directly with the secure storage TA.

The only role the tlk_driver now plays is in the scheduling path
between the tlk daemon and the secure storage TA.

A summary of the corresponding changes:

 * add support for persistent mem buffer parameter type (the
   mapping to these buffers persist for the duration of the
   session); persistent mem buffers are kept on a separate
   shared memory descriptor list and are tracked by session id

 * modified ioctl interface between tlk daemon and tlk_driver to
   involve only a single command; the integer value passed down
   by the tlk daemon indicates whether it is ready for a new
   request or has just completed the last request

 * fixed up various warnings

Note that support for old protocol will be left intact until the
corresponding changes are applied to the TLK components.

Change-Id: Ibcaad4f0e00c8b1f107af5c1e82ea0aa4dd57398
Signed-off-by: Scott Long <scottl@nvidia.com>
Reviewed-on: http://git-master/r/754996
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

4 years ago[FOSS_TLK]security: tlk_driver: Pin user space page(s).
Sharif Inamdar [Tue, 3 Jun 2014 11:09:58 +0000]
[FOSS_TLK]security: tlk_driver: Pin user space page(s).

Pin user space pages based on the type of memory i.e.
read or write.

TE_PARAM_TYPE_MEM_RO or TE_PARAM_TYPE_MEM_RW param
indicates whether the TLK kernel will setup a RO/RW
mapping for the TA to this buffer.

Based on the type of memory we should pin the pages
using get_user_pages() as RO/RW.

Change-Id: Ib937433b64602f10cd1114f19845e9f6b4f8bf06
Signed-off-by: Sharif Inamdar <isharif@nvidia.com>
Reviewed-on: http://git-master/r/754995
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

4 years ago[FOSS_TLK]Revert "security: tlk_driver: delete te_pin_user_pages() and its usage"
Sharif Inamdar [Tue, 3 Jun 2014 04:48:11 +0000]
[FOSS_TLK]Revert "security: tlk_driver: delete te_pin_user_pages() and its usage"

We are reverting this as we want to add support of
te_pin_user_pages(). TA can have dynamic mappings
created as part of an OpenSession or LaunchOperation
command.

If either of these specify a buffer as an argument
(with virt addr and length as params), the TLK kernel
will create a mapping to it. This happens for things
that go between TAs (no pin issue there) and between
the NS and S worlds.

In the case of NS buffers being passed in, we need
phys memory to stay where it is, because the secure
world has a mapping to it that Linux is unaware of,
which is why we pin it.

This reverts commit f4a063081552617e72cbdda5596ae7bd537696f7.

Change-Id: I7676f7786cef469f6cbb39a76a05541b417dc5f7
Signed-off-by: Sharif Inamdar <isharif@nvidia.com>
Reviewed-on: http://git-master/r/754994
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

4 years ago[FOSS_TLK]security: tlk: delete TEGRA_USE_SECURE_KERNEL flag usage
Varun Wadekar [Tue, 30 Sep 2014 11:02:26 +0000]
[FOSS_TLK]security: tlk: delete TEGRA_USE_SECURE_KERNEL flag usage

We no longer use this flag in the kernel.

Change-Id: I6ef2f4eb080f39b09bd79e37739463c5446b59ce
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/754993
Reviewed-by: Automatic_Commit_Validation_User

4 years ago[FOSS_TLK]tlk_driver: Move all files to security/tlk_driver
Sharif Inamdar [Tue, 9 Jun 2015 05:41:45 +0000]
[FOSS_TLK]tlk_driver: Move all files to security/tlk_driver

Signed-off-by: Sharif Inamdar <isharif@nvidia.com>
Change-Id: Ibd778a4a5f563e187cdf32d953809748be6c256f
Reviewed-on: http://git-master/r/754992
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

5 years agotlk_driver: 5/22 update daily-2014.06.20.0_release-tlk daily-2014.07.14.1_release-tlk daily-2014.07.17.0_release-tlk
Dennis Huang [Thu, 22 May 2014 23:57:28 +0000]
tlk_driver: 5/22 update

- ensure VPR SMC occurs on CPU0
- modify secure storage glue

Change-Id: I309733af47a1fbd4fbf6bdba618f2b1de6c83eb2
Reviewed-on: http://git-master/r/413472
Reviewed-by: Dennis Huang <denhuang@nvidia.com>
Tested-by: Dennis Huang <denhuang@nvidia.com>

5 years agoFirst version
Dennis Huang [Wed, 23 Apr 2014 02:24:15 +0000]
First version

- from: 95fe1e01264bc124b5a60ca6f26261f2660a686e

Change-Id: I4723979fb4c5337ad9aaf4c970a231ab1a3e3a05
Reviewed-on: http://git-master/r/400522
Reviewed-by: Dennis Huang <denhuang@nvidia.com>
Tested-by: Dennis Huang <denhuang@nvidia.com>

5 years agoInitial empty repository
Varun Colbert [Fri, 18 Apr 2014 05:57:39 +0000]
Initial empty repository