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

Commit 4755b610 authored by Hareesh Gundu's avatar Hareesh Gundu Committed by Gerrit - the friendly Code Review server
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 efef7b7a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2423,6 +2423,9 @@ static int adreno_prop_u32(struct kgsl_device *device,
	else if (type == KGSL_PROP_DEVICE_BITNESS)
		val = adreno_support_64bit(adreno_dev) ? 48 : 32;

	else if (type == KGSL_PROP_SPEED_BIN)
		val = adreno_dev->speed_bin;

	return copy_prop(value, count, &val, sizeof(val));
}

@@ -2444,6 +2447,7 @@ static struct {
	[KGSL_PROP_MIN_ACCESS_LENGTH] = { .func = adreno_prop_u32 },
	[KGSL_PROP_UBWC_MODE] = { .func = adreno_prop_u32 },
	[KGSL_PROP_DEVICE_BITNESS] = { .func = adreno_prop_u32 },
	[KGSL_PROP_SPEED_BIN] = { .func = adreno_prop_u32 },
};

static int adreno_getproperty(struct kgsl_device *device,
+1 −0
Original line number Diff line number Diff line
@@ -334,6 +334,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;