msm: kgsl: Fix compilation failure for 32-bit platform

Changes to fix compilation failures for implicit
declaration of readq and writeq_relaxed for 32 bit
platform, warning for unused result and undefined
symbol for __aeabi_uldivmod.

Change-Id: I1382d3faae6e67945d37509046e60e9061bac871
Signed-off-by: Amit Kushwaha <kushwaha@codeaurora.org>
This commit is contained in:
Amit Kushwaha 2021-04-22 21:49:21 +05:30
commit f8a617fa1f
5 changed files with 11 additions and 8 deletions

View file

@ -3537,8 +3537,8 @@ static void adreno_power_stats(struct kgsl_device *device,
} else {
/* clock sourced from GFX3D */
s64 freq = kgsl_pwrctrl_active_freq(pwr) / 1000000;
stats->busy_time = gpu_busy / freq;
do_div(gpu_busy, freq);
stats->busy_time = gpu_busy;
}
if (device->pwrctrl.bus_control) {

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2021, The Linux Foundation. All rights reserved.
*/
#include <linux/slab.h>
@ -2977,7 +2977,7 @@ int adreno_dispatcher_init(struct adreno_device *adreno_dev)
if (ret)
return ret;
sysfs_create_files(&device->dev->kobj, _preempt_attr_list);
WARN_ON(sysfs_create_files(&device->dev->kobj, _preempt_attr_list));
mutex_init(&dispatcher->mutex);

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
*/
#include "adreno.h"
@ -1371,7 +1371,7 @@ void adreno_hwsched_init(struct adreno_device *adreno_dev)
init_llist_head(&hwsched->requeue[i]);
}
sysfs_create_files(&device->dev->kobj, _hwsched_attr_list);
WARN_ON(sysfs_create_files(&device->dev->kobj, _hwsched_attr_list));
}
void adreno_hwsched_mark_drawobj(struct adreno_device *adreno_dev,

View file

@ -3212,6 +3212,7 @@ static inline bool check_full_flush(size_t size, int op)
return false;
}
#else
#include <asm/cacheflush.h>
/* Support full flush if the size is bigger than the threshold */
static inline bool check_full_flush(size_t size, int op)
{
@ -4288,8 +4289,9 @@ static int _register_device(struct kgsl_device *device)
set_dma_ops(device->dev, NULL);
kobject_init_and_add(&device->gpu_sysfs_kobj, &kgsl_gpu_sysfs_ktype,
kernel_kobj, "gpu");
if (kobject_init_and_add(&device->gpu_sysfs_kobj, &kgsl_gpu_sysfs_ktype,
kernel_kobj, "gpu"))
dev_err(device->dev, "Unable to add sysfs for gpu\n");
return 0;
}

View file

@ -15,6 +15,7 @@
#include <linux/random.h>
#include <linux/regulator/consumer.h>
#include <soc/qcom/secure_buffer.h>
#include <linux/io-64-nonatomic-hi-lo.h>
#include "adreno.h"
#include "kgsl_device.h"