^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) # (C) COPYRIGHT 2012-2015 ARM Limited. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) # This program is free software and is provided to you under the terms of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) # GNU General Public License version 2 as published by the Free Software
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) # Foundation, and any use by you of this program is subject to the terms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) # of such GNU licence.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) # A copy of the licence is included with the program, and can also be obtained
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) # from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) # Boston, MA 02110-1301, USA.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) menuconfig MALI_MIDGARD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) tristate "Mali Midgard series support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) select GPU_TRACEPOINTS if ANDROID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Enable this option to build support for a ARM Mali Midgard GPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) To compile this driver as a module, choose M here:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) this will generate a single module, called mali_kbase.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) config MALI_GATOR_SUPPORT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) bool "Streamline support via Gator"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) depends on MALI_MIDGARD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Adds diagnostic support for use with the ARM Streamline Performance Analyzer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) You will need the Gator device driver already loaded before loading this driver when enabling
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) Streamline debug support.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) This is a legacy interface required by older versions of Streamline.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) config MALI_MIDGARD_DVFS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) bool "Enable legacy DVFS"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) depends on MALI_MIDGARD && !MALI_DEVFREQ && !MALI_PLATFORM_DEVICETREE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) Choose this option to enable legacy DVFS in the Mali Midgard DDK.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) config MALI_MIDGARD_ENABLE_TRACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) bool "Enable kbase tracing"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) depends on MALI_MIDGARD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) Enables tracing in kbase. Trace log available through
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) the "mali_trace" debugfs file, when the CONFIG_DEBUG_FS is enabled
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) config MALI_DEVFREQ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) bool "devfreq support for Mali"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) depends on MALI_MIDGARD && PM_DEVFREQ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) select DEVFREQ_GOV_SIMPLE_ONDEMAND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) Support devfreq for Mali.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) Using the devfreq framework and, by default, the simpleondemand
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) governor, the frequency of Mali will be dynamically selected from the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) available OPPs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) config MALI_DMA_FENCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) bool "DMA_BUF fence support for Mali"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) depends on MALI_MIDGARD && !KDS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) Support DMA_BUF fences for Mali.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) This option should only be enabled if KDS is not present and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) the Linux Kernel has built in support for DMA_BUF fences.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) # MALI_EXPERT configuration options
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) menuconfig MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) depends on MALI_MIDGARD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) bool "Enable Expert Settings"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) Enabling this option and modifying the default settings may produce a driver with performance or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) other limitations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) config MALI_CORESTACK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) bool "Support controlling power to the GPU core stack"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) depends on MALI_MIDGARD && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) Enabling this feature on supported GPUs will let the driver powering
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) on/off the GPU core stack independently without involving the Power
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) Domain Controller. This should only be enabled on platforms which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) integration of the PDC to the Mali GPU is known to be problematic.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) This feature is currently only supported on t-Six and t-HEx GPUs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) If unsure, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) config MALI_PRFCNT_SET_SECONDARY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) bool "Use secondary set of performance counters"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) depends on MALI_MIDGARD && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) Select this option to use secondary set of performance counters. Kernel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) features that depend on an access to the primary set of counters may
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) become unavailable. Enabling this option will prevent power management
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) from working optimally and may cause instrumentation tools to return
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) bogus results.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) If unsure, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) config MALI_PLATFORM_FAKE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) bool "Enable fake platform device support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) depends on MALI_MIDGARD && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) When you start to work with the Mali Midgard series device driver the platform-specific code of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) the Linux kernel for your platform may not be complete. In this situation the kernel device driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) supports creating the platform device outside of the Linux platform-specific code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) Enable this option if would like to use a platform device configuration from within the device driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) choice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) prompt "Platform configuration"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) depends on MALI_MIDGARD && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) default MALI_PLATFORM_DEVICETREE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) Select the SOC platform that contains a Mali Midgard GPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) config MALI_PLATFORM_DEVICETREE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) bool "Device Tree platform"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) depends on OF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) Select this option to use Device Tree with the Mali driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) When using this option the Mali driver will get the details of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) GPU hardware from the Device Tree. This means that the same driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) binary can run on multiple platforms as long as all the GPU hardware
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) details are described in the device tree.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) Device Tree is the recommended method for the Mali driver platform
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) integration.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) config MALI_PLATFORM_VEXPRESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) depends on ARCH_VEXPRESS && (ARCH_VEXPRESS_CA9X4 || ARCH_VEXPRESS_CA15X4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) bool "Versatile Express"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) config MALI_PLATFORM_VEXPRESS_VIRTEX7_40MHZ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) depends on ARCH_VEXPRESS && (ARCH_VEXPRESS_CA9X4 || ARCH_VEXPRESS_CA15X4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) bool "Versatile Express w/Virtex7 @ 40Mhz"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) config MALI_PLATFORM_GOLDFISH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) depends on ARCH_GOLDFISH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) bool "Android Goldfish virtual CPU"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) config MALI_PLATFORM_PBX
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) depends on ARCH_REALVIEW && REALVIEW_EB_A9MP && MACH_REALVIEW_PBX
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) bool "Realview PBX-A9"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) config MALI_PLATFORM_THIRDPARTY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) bool "Third Party Platform"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) endchoice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) config MALI_PLATFORM_THIRDPARTY_NAME
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) depends on MALI_MIDGARD && MALI_PLATFORM_THIRDPARTY && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) string "Third party platform name"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) Enter the name of a third party platform that is supported. The third part configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) file must be in midgard/config/tpip/mali_kbase_config_xxx.c where xxx is the name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) specified here.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) config MALI_DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) bool "Debug build"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) depends on MALI_MIDGARD && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) Select this option for increased checking and reporting of errors.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) config MALI_FENCE_DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) bool "Debug sync fence usage"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) depends on MALI_MIDGARD && MALI_EXPERT && (SYNC || SYNC_FILE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) default y if MALI_DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) Select this option to enable additional checking and reporting on the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) use of sync fences in the Mali driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) This will add a 3s timeout to all sync fence waits in the Mali
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) driver, so that when work for Mali has been waiting on a sync fence
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) for a long time a debug message will be printed, detailing what fence
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) is causing the block, and which dependent Mali atoms are blocked as a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) result of this.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) The timeout can be changed at runtime through the js_soft_timeout
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) device attribute, where the timeout is specified in milliseconds.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) config MALI_NO_MALI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) bool "No Mali"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) depends on MALI_MIDGARD && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) This can be used to test the driver in a simulated environment
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) whereby the hardware is not physically present. If the hardware is physically
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) present it will not be used. This can be used to test the majority of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) driver without needing actual hardware or for software benchmarking.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) All calls to the simulated hardware will complete immediately as if the hardware
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) completed the task.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) config MALI_ERROR_INJECT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) bool "Error injection"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) depends on MALI_MIDGARD && MALI_EXPERT && MALI_NO_MALI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) Enables insertion of errors to test module failure and recovery mechanisms.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) config MALI_TRACE_TIMELINE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) bool "Timeline tracing"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) depends on MALI_MIDGARD && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) Enables timeline tracing through the kernel tracepoint system.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) config MALI_SYSTEM_TRACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) bool "Enable system event tracing support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) depends on MALI_MIDGARD && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) Choose this option to enable system trace events for each
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) kbase event. This is typically used for debugging but has
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) minimal overhead when not in use. Enable only if you know what
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) you are doing.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) config MALI_GPU_MMU_AARCH64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) bool "Use AArch64 page tables"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) depends on MALI_MIDGARD && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) Use AArch64 format page tables for the GPU instead of LPAE-style.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) The two formats have the same functionality and performance but a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) future GPU may deprecate or remove the legacy LPAE-style format.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) The LPAE-style format is supported on all Midgard and current Bifrost
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) GPUs. Enabling AArch64 format restricts the driver to only supporting
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) Bifrost GPUs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) If in doubt, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) config MALI_PWRSOFT_765
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) bool "PWRSOFT-765 ticket"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) depends on MALI_MIDGARD && MALI_EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) PWRSOFT-765 fixes devfreq cooling devices issues. However, they are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) not merged in mainline kernel yet. So this define helps to guard those
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) parts of the code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) source "drivers/gpu/arm/midgard/platform/Kconfig"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) source "drivers/gpu/arm/midgard/tests/Kconfig"