summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorKen Chang <kenc@nvidia.com>2019-07-12 02:46:20 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2020-01-08 05:24:13 -0500
commit2342da5679501364272d6c1263d6405afc45006d (patch)
tree62ee696992cf34be7263f7e9e9bd234e6bd18736 /include/linux
parent512b6da080e8bf59d657022f6d7f119e5811060d (diff)
tegra: host: t210: use per device policy
MLOCK feature in T210 host1x is not supported so change the resource policy for each engine to 'RESOURCE_PER_DEVICE' to serialize the taks from applications through a single channel to each hardware engine. This is with an exception on tsec which is using single channel operation. Bug 2550468 Change-Id: I166b8af286461a13e543f1da7495c34abc948241 Signed-off-by: Ken Chang <kenc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2152237 (cherry picked from commit ff20edb0674dd9083395327a529e8674f3f70410) Reviewed-on: https://git-master.nvidia.com/r/2226976 GVS: Gerrit_Virtual_Submit Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvhost.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h
index 68b967888..ade9da2de 100644
--- a/include/linux/nvhost.h
+++ b/include/linux/nvhost.h
@@ -728,6 +728,9 @@ int nvhost_channel_map(struct nvhost_device_data *pdata,
728 struct nvhost_channel **ch, 728 struct nvhost_channel **ch,
729 void *identifier); 729 void *identifier);
730void nvhost_putchannel(struct nvhost_channel *ch, int cnt); 730void nvhost_putchannel(struct nvhost_channel *ch, int cnt);
731void nvhost_getchannel(struct nvhost_channel *ch);
732bool nvhost_channel_is_resource_policy_per_device(
733 struct nvhost_device_data *pdata);
731/* Allocate memory for a job. Just enough memory will be allocated to 734/* Allocate memory for a job. Just enough memory will be allocated to
732 * accomodate the submit announced in submit header. 735 * accomodate the submit announced in submit header.
733 */ 736 */