This reverts commit d52d205780.
Reason for revert: foundamental functions been reverted
Bug: 172988823
Bug: 173092118
Signed-off-by: Lucas Wei <lucaswei@google.com>
Change-Id: I3916cd489053335099cc326850fb80e6df030bec
54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config QCOM_KGSL
|
|
tristate "Qualcomm Technologies, Inc. 3D Graphics driver"
|
|
depends on ARCH_QCOM
|
|
depends on QCOM_QFPROM
|
|
select GENERIC_ALLOCATOR
|
|
select FW_LOADER
|
|
select PM_DEVFREQ
|
|
select QCOM_SCM
|
|
select DEVFREQ_GOV_SIMPLE_ONDEMAND
|
|
select DEVFREQ_GOV_PERFORMANCE
|
|
select DEVFREQ_GOV_QCOM_ADRENO_TZ
|
|
select DEVFREQ_GOV_QCOM_GPUBW_MON
|
|
select TRACE_GPU_MEM
|
|
help
|
|
3D graphics driver for the Adreno family of GPUs from QTI.
|
|
Required to use hardware accelerated OpenGL, compute and Vulkan
|
|
on QTI targets. This includes power management, memory management,
|
|
and scheduling for the Adreno GPUs.
|
|
|
|
config QCOM_ADRENO_DEFAULT_GOVERNOR
|
|
string "devfreq governor for the adreno core"
|
|
default "msm-adreno-tz" if DEVFREQ_GOV_QCOM_ADRENO_TZ
|
|
default "simple_ondemand"
|
|
depends on QCOM_KGSL
|
|
|
|
config QCOM_KGSL_IOMMU
|
|
bool
|
|
default y if QCOM_KGSL && (MSM_IOMMU || ARM_SMMU)
|
|
|
|
config CORESIGHT_ADRENO
|
|
bool
|
|
default y if QCOM_KGSL=y && CORESIGHT=y
|
|
|
|
config QCOM_KGSL_USE_SHMEM
|
|
bool "Enable using shmem for memory allocations"
|
|
depends on QCOM_KGSL
|
|
help
|
|
Say 'Y' to enable using shmem for memory allocations. If enabled,
|
|
there will be no support for the memory pools and higher order pages.
|
|
But using shmem will help in making kgsl pages available for
|
|
reclaiming.
|
|
|
|
config QCOM_KGSL_PROCESS_RECLAIM
|
|
bool "Make driver pages available for reclaim"
|
|
depends on QCOM_KGSL && PROCESS_RECLAIM
|
|
select QCOM_KGSL_USE_SHMEM
|
|
help
|
|
Say 'Y' to make driver pages available for reclaiming. If enabled,
|
|
shmem will be used for allocation. kgsl would know the process
|
|
foreground/background activity through the sysfs entry exposed per
|
|
process. Based on this kgsl can unpin the pages of the process and
|
|
make those pages available to the Per Process Reclaim (PPR).
|