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

Commit 9848d907 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: Fix 32 bit kernel compilation errors"

parents 03bb8ede fa2608e8
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -1111,8 +1111,12 @@ static int adreno_probe(struct platform_device *pdev)
		return status;
		return status;
	}
	}


	/* Bro, do you even 64 bit? */
	/*
	if (ADRENO_FEATURE(adreno_dev, ADRENO_64BIT))
	* The SMMU APIs use unsigned long for virtual addresses which means
	* that we cannot use 64 bit virtual addresses on a 32 bit kernel even
	* though the hardware and the rest of the KGSL driver supports it.
	*/
	if ((BITS_PER_LONG == 64) && ADRENO_FEATURE(adreno_dev, ADRENO_64BIT))
		device->mmu.features |= KGSL_MMU_64BIT;
		device->mmu.features |= KGSL_MMU_64BIT;


	status = kgsl_device_platform_probe(device);
	status = kgsl_device_platform_probe(device);
+2 −1
Original line number Original line Diff line number Diff line
@@ -22,6 +22,7 @@
#include <soc/qcom/scm.h>
#include <soc/qcom/scm.h>
#include <soc/qcom/secure_buffer.h>
#include <soc/qcom/secure_buffer.h>
#include <stddef.h>
#include <stddef.h>
#include <linux/compat.h>


#include "kgsl.h"
#include "kgsl.h"
#include "kgsl_device.h"
#include "kgsl_device.h"
@@ -523,7 +524,7 @@ static void setup_64bit_pagetable(struct kgsl_mmu *mmu,


	if (pagetable->name != KGSL_MMU_GLOBAL_PT &&
	if (pagetable->name != KGSL_MMU_GLOBAL_PT &&
		pagetable->name != KGSL_MMU_SECURE_PT) {
		pagetable->name != KGSL_MMU_SECURE_PT) {
		if (is_compat_task()) {
		if ((BITS_PER_LONG == 32) || is_compat_task()) {
			pt->svm_start = KGSL_IOMMU_SVM_BASE32;
			pt->svm_start = KGSL_IOMMU_SVM_BASE32;
			pt->svm_end = KGSL_IOMMU_SVM_END32;
			pt->svm_end = KGSL_IOMMU_SVM_END32;
		} else {
		} else {