Force any command triggered context switch to the GPU - it should be on the GPU anyway, but we were already passing a flags parameter (unused) so this is a good chance to force the issue and make sure that the cpu path decision isn't in play here. CRs-Fixed: 1009124 Change-Id: Ic0dedbadb277a6498d0840b45c90e1265e2f354a Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
52 lines
1.4 KiB
C
52 lines
1.4 KiB
C
/* Copyright (c) 2015-2016, 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
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef __ADRENO_IOMMU_H
|
|
#define __ADRENO_IOMMU_H
|
|
|
|
#ifdef CONFIG_QCOM_KGSL_IOMMU
|
|
int adreno_iommu_set_pt_ctx(struct adreno_ringbuffer *rb,
|
|
struct kgsl_pagetable *new_pt,
|
|
struct adreno_context *drawctxt,
|
|
unsigned long flags);
|
|
|
|
int adreno_iommu_init(struct adreno_device *adreno_dev);
|
|
|
|
unsigned int adreno_iommu_set_pt_generate_cmds(
|
|
struct adreno_ringbuffer *rb,
|
|
unsigned int *cmds,
|
|
struct kgsl_pagetable *pt);
|
|
#else
|
|
static inline int adreno_iommu_init(struct adreno_device *adreno_dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int adreno_iommu_set_pt_ctx(struct adreno_ringbuffer *rb,
|
|
struct kgsl_pagetable *new_pt,
|
|
struct adreno_context *drawctxt,
|
|
unsigned long flags)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline unsigned int adreno_iommu_set_pt_generate_cmds(
|
|
struct adreno_ringbuffer *rb,
|
|
unsigned int *cmds,
|
|
struct kgsl_pagetable *pt)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif
|
|
#endif
|