summaryrefslogtreecommitdiff
path: root/drivers/gpu/msm/adreno_a5xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/msm/adreno_a5xx.c')
-rw-r--r--drivers/gpu/msm/adreno_a5xx.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/gpu/msm/adreno_a5xx.c b/drivers/gpu/msm/adreno_a5xx.c
index c206bdac7d39..e3381bca2586 100644
--- a/drivers/gpu/msm/adreno_a5xx.c
+++ b/drivers/gpu/msm/adreno_a5xx.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2018,2020 The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -2177,15 +2177,12 @@ static int a5xx_post_start(struct adreno_device *adreno_dev)
*cmds++ = 0xF;
}
- if (adreno_is_preemption_enabled(adreno_dev)) {
+ if (adreno_is_preemption_enabled(adreno_dev))
cmds += _preemption_init(adreno_dev, rb, cmds, NULL);
- rb->_wptr = rb->_wptr - (42 - (cmds - start));
- ret = adreno_ringbuffer_submit_spin_nosync(rb, NULL, 2000);
- } else {
- rb->_wptr = rb->_wptr - (42 - (cmds - start));
- ret = adreno_ringbuffer_submit_spin(rb, NULL, 2000);
- }
+ rb->_wptr = rb->_wptr - (42 - (cmds - start));
+
+ ret = adreno_ringbuffer_submit_spin(rb, NULL, 2000);
if (ret)
spin_idle_debug(KGSL_DEVICE(adreno_dev),
"hw initialization failed to idle\n");
@@ -2269,7 +2266,7 @@ static int a5xx_microcode_load(struct adreno_device *adreno_dev)
desc.args[1] = 13;
desc.arginfo = SCM_ARGS(2);
- ret = scm_call2_atomic(SCM_SIP_FNID(SCM_SVC_BOOT, 0xA), &desc);
+ ret = scm_call2(SCM_SIP_FNID(SCM_SVC_BOOT, 0xA), &desc);
if (ret) {
pr_err("SCM resume call failed with error %d\n", ret);
return ret;
@@ -2557,7 +2554,7 @@ static int _load_firmware(struct kgsl_device *device, const char *fwfile,
memcpy(ucode->hostptr, &fw->data[4], fw->size - 4);
*ucode_size = (fw->size - 4) / sizeof(uint32_t);
- *ucode_version = adreno_get_ucode_version((u32 *)fw->data);
+ *ucode_version = *(unsigned int *)&fw->data[4];
done:
release_firmware(fw);