Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58679a69 authored by Lynus Vaz's avatar Lynus Vaz Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Don't restrict compat tasks to 32-bit VA range



We were restricting the GPU VA on compat tasks to 32-bits. However,
in principle, there is no reason to constrain non-SVM allocations
and mappings to this range as long as userspace uses the appropriate
IOCTLs that support larger GPU VAs.

Change-Id: I2f3e52021d81957c1c848acbd5f2caa965745a86
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
parent bd110257
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2494,9 +2494,6 @@ long kgsl_ioctl_gpuobj_import(struct kgsl_device_private *dev_priv,
			| KGSL_MEMFLAGS_FORCE_32BIT
			| KGSL_MEMFLAGS_IOCOHERENT;

	if (kgsl_is_compat_task())
		param->flags |= KGSL_MEMFLAGS_FORCE_32BIT;

	kgsl_memdesc_init(dev_priv->device, &entry->memdesc, param->flags);
	if (param->type == KGSL_USER_MEM_TYPE_ADDR)
		ret = _gpuobj_map_useraddr(dev_priv->device, private->pagetable,
@@ -3266,9 +3263,6 @@ long kgsl_ioctl_gpuobj_alloc(struct kgsl_device_private *dev_priv,
	struct kgsl_gpuobj_alloc *param = data;
	struct kgsl_mem_entry *entry;

	if (kgsl_is_compat_task())
		param->flags |= KGSL_MEMFLAGS_FORCE_32BIT;

	entry = gpumem_alloc_entry(dev_priv, param->size, param->flags);

	if (IS_ERR(entry))