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

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

Merge "ARM: dts: msm: Specify the temperature sensor name for msm8996"

parents 121731fa 63077cdb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -148,6 +148,10 @@ Optional Properties:
				baseAddr - base address of the gpu channels in the qdss stm memory region
				size     - size of the gpu stm region

- qcom,tsens-name:
				Specify the name of GPU temperature sensor. This name will be used
				to get the temperature from the thermal driver API.

GPU Quirks:
- qcom,gpu-quirk-two-pass-use-wfi:
				Signal the GPU to set Set TWOPASSUSEWFI bit in
+1 −0
Original line number Diff line number Diff line
@@ -81,6 +81,7 @@

		qcom,gpu-qdss-stm = <0x081c0000 0x40000>; // base addr, size

		qcom,tsens-name = "tsens_tz_sensor14";
		/* Trace bus */
		coresight-id = <300>;
		coresight-name = "coresight-gfx";
+13 −0
Original line number Diff line number Diff line
@@ -2792,6 +2792,18 @@ static void adreno_regulator_disable_poll(struct kgsl_device *device)
	adreno_iommu_sync(device, false);
}

static void adreno_gpu_model(struct kgsl_device *device, char *str,
				size_t bufsz)
{
	struct adreno_device *adreno_dev = ADRENO_DEVICE(device);

	snprintf(str, bufsz, "Adreno%d%d%dv%d",
			ADRENO_CHIPID_CORE(adreno_dev->chipid),
			 ADRENO_CHIPID_MAJOR(adreno_dev->chipid),
			 ADRENO_CHIPID_MINOR(adreno_dev->chipid),
			 ADRENO_CHIPID_PATCH(adreno_dev->chipid) + 1);
}

static const struct kgsl_functable adreno_functable = {
	/* Mandatory functions */
	.regread = adreno_regread,
@@ -2828,6 +2840,7 @@ static const struct kgsl_functable adreno_functable = {
	.regulator_disable = adreno_regulator_disable,
	.pwrlevel_change_settings = adreno_pwrlevel_change_settings,
	.regulator_disable_poll = adreno_regulator_disable_poll,
	.gpu_model = adreno_gpu_model,
};

static struct platform_driver adreno_platform_driver = {
+15 −0
Original line number Diff line number Diff line
@@ -542,4 +542,19 @@ static inline void __user *to_user_ptr(uint64_t address)
	return (void __user *)(uintptr_t)address;
}

static inline void kgsl_gpu_sysfs_add_link(struct kobject *dst,
			struct kobject *src, const char *src_name,
			const char *dst_name)
{
	struct kernfs_node *old;

	if (dst == NULL || src == NULL)
		return;

	old = sysfs_get_dirent(src->sd, src_name);
	if (IS_ERR_OR_NULL(old))
		return;

	kernfs_create_link(dst->sd, dst_name, old);
}
#endif /* __KGSL_H */
+3 −0
Original line number Diff line number Diff line
@@ -169,6 +169,8 @@ struct kgsl_functable {
	void (*pwrlevel_change_settings)(struct kgsl_device *device,
		unsigned int prelevel, unsigned int postlevel, bool post);
	void (*regulator_disable_poll)(struct kgsl_device *device);
	void (*gpu_model)(struct kgsl_device *device, char *str,
		size_t bufsz);
};

struct kgsl_ioctl {
@@ -284,6 +286,7 @@ struct kgsl_device {

	/* Number of active contexts seen globally for this device */
	int active_context_count;
	struct kobject *gpu_sysfs_kobj;
};

#define KGSL_MMU_DEVICE(_mmu) \
Loading