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

Commit 513fd626 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Add property to determine commands timeout"

parents 551738a8 a943eac9
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -1922,6 +1922,26 @@ static int adreno_getproperty(struct kgsl_device *device,
		status = 0;
	}
	break;
	case KGSL_PROP_IB_TIMEOUT:
	{
		unsigned int ib_timeout = adreno_drawobj_timeout;

		if (ib_timeout == 0)
			return -EINVAL;

		if (sizebytes != sizeof(unsigned int)) {
			status = -EINVAL;
			break;
		}

		if (copy_to_user(value, &ib_timeout,
				sizeof(unsigned int))) {
			status = -EFAULT;
			break;
		}
		status = 0;
	}
	break;

	default:
		status = -EINVAL;
+1 −0
Original line number Diff line number Diff line
@@ -321,6 +321,7 @@ enum kgsl_timestamp_type {
#define KGSL_PROP_DEVICE_BITNESS	0x18
#define KGSL_PROP_DEVICE_QDSS_STM	0x19
#define KGSL_PROP_DEVICE_QTIMER	0x20
#define KGSL_PROP_IB_TIMEOUT 0x21

struct kgsl_shadowprop {
	unsigned long gpuaddr;