tee: generic TEE subsystem

Initial patch for generic TEE subsystem.
This subsystem provides:
* Registration/un-registration of TEE drivers.
* Shared memory between normal world and secure world.
* Ioctl interface for interaction with user space.
* Sysfs implementation_id of TEE driver

A TEE (Trusted Execution Environment) driver is a driver that interfaces
with a trusted OS running in some secure environment, for example,
TrustZone on ARM cpus, or a separate secure co-processor etc.

The TEE subsystem can serve a TEE driver for a Global Platform compliant
TEE, but it's not limited to only Global Platform TEEs.

This patch builds on other similar implementations trying to solve
the same problem:
* "optee_linuxdriver" by among others
  Jean-michel DELORME<[email protected]> and
  Emmanuel MICHEL <[email protected]>
* "Generic TrustZone Driver" by Javier González <[email protected]>

Acked-by: Andreas Dannenberg <[email protected]>
Tested-by: Jerome Forissier <[email protected]> (HiKey)
Tested-by: Volodymyr Babchuk <[email protected]> (RCAR H3)
Tested-by: Scott Branden <[email protected]>
Reviewed-by: Javier González <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>
This commit is contained in:
Jens Wiklander 2015-03-11 14:39:39 +01:00
commit 967c9cca2c
12 changed files with 2182 additions and 0 deletions

View file

@ -308,6 +308,7 @@ Code Seq#(hex) Include File Comments
0xA3 80-8F Port ACL in development:
<mailto:[email protected]>
0xA3 90-9F linux/dtlk.h
0xA4 00-1F uapi/linux/tee.h Generic TEE subsystem
0xAA 00-3F linux/uapi/linux/userfaultfd.h
0xAB 00-1F linux/nbd.h
0xAC 00-1F linux/raw.h