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

Commit d115ea88 authored by Hareesh Gundu's avatar Hareesh Gundu
Browse files

msm: kgsl: Add a property to query gpu speed bin



usermode driver can query speed bin value
to modify settings based on speed bin. Add
support to for new gpu speed bin property.

Change-Id: I99323e7861e5674441d8f94ce7f2be604340c5f1
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent b880de1f
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -2650,6 +2650,25 @@ static int adreno_getproperty(struct kgsl_device *device,
	}
	break;

	case KGSL_PROP_SPEED_BIN:
		{
			unsigned int speed_bin;

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

			speed_bin = adreno_dev->speed_bin;

			if (copy_to_user(value, &speed_bin,
						sizeof(unsigned int))) {
				status = -EFAULT;
				break;
			}
			status = 0;
		}
		break;
	default:
		status = -EINVAL;
	}
+1 −0
Original line number Diff line number Diff line
@@ -335,6 +335,7 @@ enum kgsl_timestamp_type {
#define KGSL_PROP_L3_PWR_CONSTRAINT     0x22
#define KGSL_PROP_SECURE_BUFFER_ALIGNMENT 0x23
#define KGSL_PROP_SECURE_CTXT_SUPPORT 0x24
#define KGSL_PROP_SPEED_BIN		0x25

struct kgsl_shadowprop {
	unsigned long gpuaddr;