linaro-swg / linux

Linux kernel source tree
Other
41 stars 79 forks source link

Secure Data Path test setup (SWG-208) #33

Closed etienne-lms closed 7 years ago

etienne-lms commented 7 years ago

Adding a ION heap type dedicated to "secure data path buffer pools".

This is currently a patch in the ION staging directory. ION implementation does not allow registering heap types from external (non ION) drivers.

This driver allows allows one the define from platform device data or from device tree the SDP heaps to be created.

Patch tested on K4.6 and k4.9 (ION integration changes)

etienne-lms commented 7 years ago

Actually, this is ugly. i rebased from 4.6 to 4.9 and saw few changes among DT. And looking back, this does not fit the initial aim: easy registration/creation of ion "sdp" heaps. I did not want to patch inside ion_heap.c, keeping the "custom" part of "sdp" heaps. At least one thing to re-implement: support the the ion 'of_dt' to create "sdp" heaps from ion native dt parser, and simplify current code.

The code almost aimed at allowing creation of a SDP heap from a statically defined location (base/size). This part should rather go in the ion_dummy_driver. This is handy for testing on setups based on uefi (i.e vexpress-qemu_armv8a).

etienne-lms commented 7 years ago

will push a cleaner proposal