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

Commit f9e6238f authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents db13bbea d115ea88
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;