tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head: afcd0189c8b20e4125e0b60089c6ce401080f794
commit: 47053c9ca1fca9a873ad8981b4e7115d40ed9d03 [6/21] CHROMIUM: Mali: Build Mali
Bifrost
config: arm64-allyesconfig
(
https://download.01.org/0day-ci/archive/20211214/202112141618.8kcM2vnl-lk...)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.15
git checkout 47053c9ca1fca9a873ad8981b4e7115d40ed9d03
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=arm64 SHELL=/bin/bash drivers/gpu/arm/bifrost/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
cc1: warning: kbuild/src/consumer/drivers/gpu/arm/bifrost: No such file or directory
[-Wmissing-include-dirs]
drivers/gpu/arm/bifrost/mali_kbase_mem.c: In function 'kbase_gpu_munmap':
> drivers/gpu/arm/bifrost/mali_kbase_mem.c:1610:48: warning: this
statement may fall through [-Wimplicit-fallthrough=]
1610 | case
KBASE_MEM_TYPE_IMPORTED_USER_BUF: {
| ^
drivers/gpu/arm/bifrost/mali_kbase_mem.c:1626:9: note: here
1626 | default:
| ^~~~~~~
In file included from drivers/gpu/arm/bifrost/mali_kbase_defs.h:31,
from drivers/gpu/arm/bifrost/mali_kbase.h:55,
from drivers/gpu/arm/bifrost/mali_kbase_mem.c:36:
At top level:
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:416:35: warning:
'base_hw_features_tVAx' defined but not used [-Wunused-const-variable=]
416 | static const enum base_hw_feature base_hw_features_tVAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:389:35: warning:
'base_hw_features_tGRx' defined but not used [-Wunused-const-variable=]
389 | static const enum base_hw_feature base_hw_features_tGRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:362:35: warning:
'base_hw_features_tODx' defined but not used [-Wunused-const-variable=]
362 | static const enum base_hw_feature base_hw_features_tODx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:334:35: warning:
'base_hw_features_tDUx' defined but not used [-Wunused-const-variable=]
334 | static const enum base_hw_feature base_hw_features_tDUx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:306:35: warning:
'base_hw_features_tBAx' defined but not used [-Wunused-const-variable=]
306 | static const enum base_hw_feature base_hw_features_tBAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:278:35: warning:
'base_hw_features_tBEx' defined but not used [-Wunused-const-variable=]
278 | static const enum base_hw_feature base_hw_features_tBEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:251:35: warning:
'base_hw_features_tNAx' defined but not used [-Wunused-const-variable=]
251 | static const enum base_hw_feature base_hw_features_tNAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:224:35: warning:
'base_hw_features_tTRx' defined but not used [-Wunused-const-variable=]
224 | static const enum base_hw_feature base_hw_features_tTRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:196:35: warning:
'base_hw_features_tGOx' defined but not used [-Wunused-const-variable=]
196 | static const enum base_hw_feature base_hw_features_tGOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:168:35: warning:
'base_hw_features_tNOx' defined but not used [-Wunused-const-variable=]
168 | static const enum base_hw_feature base_hw_features_tNOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:142:35: warning:
'base_hw_features_tDVx' defined but not used [-Wunused-const-variable=]
142 | static const enum base_hw_feature base_hw_features_tDVx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:116:35: warning:
'base_hw_features_tSIx' defined but not used [-Wunused-const-variable=]
116 | static const enum base_hw_feature base_hw_features_tSIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:90:35: warning:
'base_hw_features_tHEx' defined but not used [-Wunused-const-variable=]
90 | static const enum base_hw_feature base_hw_features_tHEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:65:35: warning:
'base_hw_features_tMIx' defined but not used [-Wunused-const-variable=]
65 | static const enum base_hw_feature base_hw_features_tMIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:61:35: warning:
'base_hw_features_generic' defined but not used [-Wunused-const-variable=]
61 | static const enum base_hw_feature base_hw_features_generic[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
cc1: warning: kbuild/src/consumer/drivers/gpu/arm/bifrost: No such file or directory
[-Wmissing-include-dirs]
drivers/gpu/arm/bifrost/mali_kbase_pm.c: In function
'kbase_pm_context_active_handle_suspend':
> drivers/gpu/arm/bifrost/mali_kbase_pm.c:77:28: warning: this
statement may fall through [-Wimplicit-fallthrough=]
77 |
if (kbdev->pm.active_count != 0)
| ^
drivers/gpu/arm/bifrost/mali_kbase_pm.c:80:17: note: here
80 | case KBASE_PM_SUSPEND_HANDLER_DONT_INCREASE:
| ^~~~
In file included from drivers/gpu/arm/bifrost/mali_kbase_defs.h:31,
from drivers/gpu/arm/bifrost/mali_kbase.h:55,
from drivers/gpu/arm/bifrost/mali_kbase_pm.c:26:
At top level:
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:416:35: warning:
'base_hw_features_tVAx' defined but not used [-Wunused-const-variable=]
416 | static const enum base_hw_feature base_hw_features_tVAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:389:35: warning:
'base_hw_features_tGRx' defined but not used [-Wunused-const-variable=]
389 | static const enum base_hw_feature base_hw_features_tGRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:362:35: warning:
'base_hw_features_tODx' defined but not used [-Wunused-const-variable=]
362 | static const enum base_hw_feature base_hw_features_tODx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:334:35: warning:
'base_hw_features_tDUx' defined but not used [-Wunused-const-variable=]
334 | static const enum base_hw_feature base_hw_features_tDUx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:306:35: warning:
'base_hw_features_tBAx' defined but not used [-Wunused-const-variable=]
306 | static const enum base_hw_feature base_hw_features_tBAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:278:35: warning:
'base_hw_features_tBEx' defined but not used [-Wunused-const-variable=]
278 | static const enum base_hw_feature base_hw_features_tBEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:251:35: warning:
'base_hw_features_tNAx' defined but not used [-Wunused-const-variable=]
251 | static const enum base_hw_feature base_hw_features_tNAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:224:35: warning:
'base_hw_features_tTRx' defined but not used [-Wunused-const-variable=]
224 | static const enum base_hw_feature base_hw_features_tTRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:196:35: warning:
'base_hw_features_tGOx' defined but not used [-Wunused-const-variable=]
196 | static const enum base_hw_feature base_hw_features_tGOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:168:35: warning:
'base_hw_features_tNOx' defined but not used [-Wunused-const-variable=]
168 | static const enum base_hw_feature base_hw_features_tNOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:142:35: warning:
'base_hw_features_tDVx' defined but not used [-Wunused-const-variable=]
142 | static const enum base_hw_feature base_hw_features_tDVx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:116:35: warning:
'base_hw_features_tSIx' defined but not used [-Wunused-const-variable=]
116 | static const enum base_hw_feature base_hw_features_tSIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:90:35: warning:
'base_hw_features_tHEx' defined but not used [-Wunused-const-variable=]
90 | static const enum base_hw_feature base_hw_features_tHEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:65:35: warning:
'base_hw_features_tMIx' defined but not used [-Wunused-const-variable=]
65 | static const enum base_hw_feature base_hw_features_tMIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:61:35: warning:
'base_hw_features_generic' defined but not used [-Wunused-const-variable=]
61 | static const enum base_hw_feature base_hw_features_generic[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
cc1: warning: kbuild/src/consumer/drivers/gpu/arm/bifrost: No such file or directory
[-Wmissing-include-dirs]
drivers/gpu/arm/bifrost/mali_kbase_mem_linux.c: In function
'kbase_mem_do_sync_imported':
> drivers/gpu/arm/bifrost/mali_kbase_mem_linux.c:1025:25: warning:
variable 'dma_buf' set but not used [-Wunused-but-set-variable]
1025 |
struct dma_buf *dma_buf;
| ^~~~~~~
In file included from drivers/gpu/arm/bifrost/mali_kbase_defs.h:31,
from drivers/gpu/arm/bifrost/mali_kbase.h:55,
from drivers/gpu/arm/bifrost/mali_kbase_mem_linux.c:42:
At top level:
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:416:35: warning:
'base_hw_features_tVAx' defined but not used [-Wunused-const-variable=]
416 | static const enum base_hw_feature base_hw_features_tVAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:389:35: warning:
'base_hw_features_tGRx' defined but not used [-Wunused-const-variable=]
389 | static const enum base_hw_feature base_hw_features_tGRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:362:35: warning:
'base_hw_features_tODx' defined but not used [-Wunused-const-variable=]
362 | static const enum base_hw_feature base_hw_features_tODx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:334:35: warning:
'base_hw_features_tDUx' defined but not used [-Wunused-const-variable=]
334 | static const enum base_hw_feature base_hw_features_tDUx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:306:35: warning:
'base_hw_features_tBAx' defined but not used [-Wunused-const-variable=]
306 | static const enum base_hw_feature base_hw_features_tBAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:278:35: warning:
'base_hw_features_tBEx' defined but not used [-Wunused-const-variable=]
278 | static const enum base_hw_feature base_hw_features_tBEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:251:35: warning:
'base_hw_features_tNAx' defined but not used [-Wunused-const-variable=]
251 | static const enum base_hw_feature base_hw_features_tNAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:224:35: warning:
'base_hw_features_tTRx' defined but not used [-Wunused-const-variable=]
224 | static const enum base_hw_feature base_hw_features_tTRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:196:35: warning:
'base_hw_features_tGOx' defined but not used [-Wunused-const-variable=]
196 | static const enum base_hw_feature base_hw_features_tGOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:168:35: warning:
'base_hw_features_tNOx' defined but not used [-Wunused-const-variable=]
168 | static const enum base_hw_feature base_hw_features_tNOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:142:35: warning:
'base_hw_features_tDVx' defined but not used [-Wunused-const-variable=]
142 | static const enum base_hw_feature base_hw_features_tDVx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:116:35: warning:
'base_hw_features_tSIx' defined but not used [-Wunused-const-variable=]
116 | static const enum base_hw_feature base_hw_features_tSIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:90:35: warning:
'base_hw_features_tHEx' defined but not used [-Wunused-const-variable=]
90 | static const enum base_hw_feature base_hw_features_tHEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:65:35: warning:
'base_hw_features_tMIx' defined but not used [-Wunused-const-variable=]
65 | static const enum base_hw_feature base_hw_features_tMIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:61:35: warning:
'base_hw_features_generic' defined but not used [-Wunused-const-variable=]
61 | static const enum base_hw_feature base_hw_features_generic[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
cc1: warning: kbuild/src/consumer/drivers/gpu/arm/bifrost: No such file or directory
[-Wmissing-include-dirs]
drivers/gpu/arm/bifrost/mali_kbase_jd_debugfs.c: In function
'kbase_jd_debugfs_fence_info':
> drivers/gpu/arm/bifrost/mali_kbase_jd_debugfs.c:78:46: warning:
format '%u' expects argument of type 'unsigned int', but argument 4 has
type 'u64' {aka 'long long unsigned int'} [-Wformat=]
78 |
"Sd(%llu#%u: %s) ",
| ~^
| |
| unsigned int
| %llu
79 | #endif
80 | fence->context, fence->seqno,
| ~~~~~~~~~~~~
| |
| u64 {aka long long
unsigned int}
drivers/gpu/arm/bifrost/mali_kbase_jd_debugfs.c:97:46: warning: format '%u'
expects argument of type 'unsigned int', but argument 4 has type 'u64'
{aka 'long long unsigned int'} [-Wformat=]
97 | "Wd(%llu#%u: %s) ",
| ~^
| |
| unsigned int
| %llu
98 | #endif
99 | fence->context, fence->seqno,
| ~~~~~~~~~~~~
| |
| u64 {aka long long
unsigned int}
In file included from drivers/gpu/arm/bifrost/mali_kbase_defs.h:31,
from drivers/gpu/arm/bifrost/mali_kbase.h:55,
from drivers/gpu/arm/bifrost/mali_kbase_jd_debugfs.c:25:
At top level:
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:416:35: warning:
'base_hw_features_tVAx' defined but not used [-Wunused-const-variable=]
416 | static const enum base_hw_feature base_hw_features_tVAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:389:35: warning:
'base_hw_features_tGRx' defined but not used [-Wunused-const-variable=]
389 | static const enum base_hw_feature base_hw_features_tGRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:362:35: warning:
'base_hw_features_tODx' defined but not used [-Wunused-const-variable=]
362 | static const enum base_hw_feature base_hw_features_tODx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:334:35: warning:
'base_hw_features_tDUx' defined but not used [-Wunused-const-variable=]
334 | static const enum base_hw_feature base_hw_features_tDUx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:306:35: warning:
'base_hw_features_tBAx' defined but not used [-Wunused-const-variable=]
306 | static const enum base_hw_feature base_hw_features_tBAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:278:35: warning:
'base_hw_features_tBEx' defined but not used [-Wunused-const-variable=]
278 | static const enum base_hw_feature base_hw_features_tBEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:251:35: warning:
'base_hw_features_tNAx' defined but not used [-Wunused-const-variable=]
251 | static const enum base_hw_feature base_hw_features_tNAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:224:35: warning:
'base_hw_features_tTRx' defined but not used [-Wunused-const-variable=]
224 | static const enum base_hw_feature base_hw_features_tTRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:196:35: warning:
'base_hw_features_tGOx' defined but not used [-Wunused-const-variable=]
196 | static const enum base_hw_feature base_hw_features_tGOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:168:35: warning:
'base_hw_features_tNOx' defined but not used [-Wunused-const-variable=]
168 | static const enum base_hw_feature base_hw_features_tNOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:142:35: warning:
'base_hw_features_tDVx' defined but not used [-Wunused-const-variable=]
142 | static const enum base_hw_feature base_hw_features_tDVx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:116:35: warning:
'base_hw_features_tSIx' defined but not used [-Wunused-const-variable=]
116 | static const enum base_hw_feature base_hw_features_tSIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:90:35: warning:
'base_hw_features_tHEx' defined but not used [-Wunused-const-variable=]
90 | static const enum base_hw_feature base_hw_features_tHEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:65:35: warning:
'base_hw_features_tMIx' defined but not used [-Wunused-const-variable=]
65 | static const enum base_hw_feature base_hw_features_tMIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:61:35: warning:
'base_hw_features_generic' defined but not used [-Wunused-const-variable=]
61 | static const enum base_hw_feature base_hw_features_generic[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
> drivers/gpu/arm/bifrost/mali_kbase_mem_profile_debugfs.c:27:
warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer
Documentation/doc-guide/kernel-doc.rst
* Show callback for the @c mem_profile
debugfs file.
--
> drivers/gpu/arm/bifrost/mali_kbase_vinstr.c:942: warning:
expecting prototype for The hwcnt reader's ioctl command(). Prototype was for
kbasep_vinstr_hwcnt_reader_ioctl_get_api_version() instead
--
cc1: warning: kbuild/src/consumer/drivers/gpu/arm/bifrost: No such file or directory
[-Wmissing-include-dirs]
>
drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_irq_linux.c:182:13: warning: no previous
prototype for 'kbase_gpu_irq_test_handler' [-Wmissing-prototypes]
182 |
irqreturn_t kbase_gpu_irq_test_handler(int irq, void *data, u32 val)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_irq_linux.c:210:5:
warning: no previous prototype for 'kbase_set_custom_irq_handler'
[-Wmissing-prototypes]
210 | int kbase_set_custom_irq_handler(struct
kbase_device *kbdev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/arm/bifrost/mali_kbase_defs.h:31,
from drivers/gpu/arm/bifrost/mali_kbase.h:55,
from drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_irq_linux.c:22:
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:416:35: warning:
'base_hw_features_tVAx' defined but not used [-Wunused-const-variable=]
416 | static const enum base_hw_feature base_hw_features_tVAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:389:35: warning:
'base_hw_features_tGRx' defined but not used [-Wunused-const-variable=]
389 | static const enum base_hw_feature base_hw_features_tGRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:362:35: warning:
'base_hw_features_tODx' defined but not used [-Wunused-const-variable=]
362 | static const enum base_hw_feature base_hw_features_tODx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:334:35: warning:
'base_hw_features_tDUx' defined but not used [-Wunused-const-variable=]
334 | static const enum base_hw_feature base_hw_features_tDUx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:306:35: warning:
'base_hw_features_tBAx' defined but not used [-Wunused-const-variable=]
306 | static const enum base_hw_feature base_hw_features_tBAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:278:35: warning:
'base_hw_features_tBEx' defined but not used [-Wunused-const-variable=]
278 | static const enum base_hw_feature base_hw_features_tBEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:251:35: warning:
'base_hw_features_tNAx' defined but not used [-Wunused-const-variable=]
251 | static const enum base_hw_feature base_hw_features_tNAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:224:35: warning:
'base_hw_features_tTRx' defined but not used [-Wunused-const-variable=]
224 | static const enum base_hw_feature base_hw_features_tTRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:196:35: warning:
'base_hw_features_tGOx' defined but not used [-Wunused-const-variable=]
196 | static const enum base_hw_feature base_hw_features_tGOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:168:35: warning:
'base_hw_features_tNOx' defined but not used [-Wunused-const-variable=]
168 | static const enum base_hw_feature base_hw_features_tNOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:142:35: warning:
'base_hw_features_tDVx' defined but not used [-Wunused-const-variable=]
142 | static const enum base_hw_feature base_hw_features_tDVx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:116:35: warning:
'base_hw_features_tSIx' defined but not used [-Wunused-const-variable=]
116 | static const enum base_hw_feature base_hw_features_tSIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:90:35: warning:
'base_hw_features_tHEx' defined but not used [-Wunused-const-variable=]
90 | static const enum base_hw_feature base_hw_features_tHEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:65:35: warning:
'base_hw_features_tMIx' defined but not used [-Wunused-const-variable=]
65 | static const enum base_hw_feature base_hw_features_tMIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/bifrost/mali_base_hwconfig_features.h:61:35: warning:
'base_hw_features_generic' defined but not used [-Wunused-const-variable=]
61 | static const enum base_hw_feature base_hw_features_generic[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
..
vim +1610 drivers/gpu/arm/bifrost/mali_kbase_mem.c
97b1271a1316e9 Fei Shao 2021-12-06 1575
97b1271a1316e9 Fei Shao 2021-12-06 1576 static void kbase_jd_user_buf_unmap(struct
kbase_context *kctx,
97b1271a1316e9 Fei Shao 2021-12-06 1577 struct kbase_mem_phy_alloc *alloc, bool
writeable);
97b1271a1316e9 Fei Shao 2021-12-06 1578
97b1271a1316e9 Fei Shao 2021-12-06 1579 int kbase_gpu_munmap(struct kbase_context *kctx,
struct kbase_va_region *reg)
97b1271a1316e9 Fei Shao 2021-12-06 1580 {
97b1271a1316e9 Fei Shao 2021-12-06 1581 int err = 0;
97b1271a1316e9 Fei Shao 2021-12-06 1582
97b1271a1316e9 Fei Shao 2021-12-06 1583 if (reg->start_pfn == 0)
97b1271a1316e9 Fei Shao 2021-12-06 1584 return 0;
97b1271a1316e9 Fei Shao 2021-12-06 1585
97b1271a1316e9 Fei Shao 2021-12-06 1586 if (!reg->gpu_alloc)
97b1271a1316e9 Fei Shao 2021-12-06 1587 return -EINVAL;
97b1271a1316e9 Fei Shao 2021-12-06 1588
97b1271a1316e9 Fei Shao 2021-12-06 1589 /* Tear down down GPU page tables, depending on
memory type. */
97b1271a1316e9 Fei Shao 2021-12-06 1590 switch (reg->gpu_alloc->type) {
97b1271a1316e9 Fei Shao 2021-12-06 1591 case KBASE_MEM_TYPE_ALIAS: /* Fall-through */
97b1271a1316e9 Fei Shao 2021-12-06 1592 case KBASE_MEM_TYPE_IMPORTED_UMM:
97b1271a1316e9 Fei Shao 2021-12-06 1593 err = kbase_mmu_teardown_pages(kctx->kbdev,
&kctx->mmu,
97b1271a1316e9 Fei Shao 2021-12-06 1594 reg->start_pfn, reg->nr_pages,
kctx->as_nr);
97b1271a1316e9 Fei Shao 2021-12-06 1595 break;
97b1271a1316e9 Fei Shao 2021-12-06 1596 default:
97b1271a1316e9 Fei Shao 2021-12-06 1597 err = kbase_mmu_teardown_pages(kctx->kbdev,
&kctx->mmu,
97b1271a1316e9 Fei Shao 2021-12-06 1598 reg->start_pfn,
kbase_reg_current_backed_size(reg),
97b1271a1316e9 Fei Shao 2021-12-06 1599 kctx->as_nr);
97b1271a1316e9 Fei Shao 2021-12-06 1600 break;
97b1271a1316e9 Fei Shao 2021-12-06 1601 }
97b1271a1316e9 Fei Shao 2021-12-06 1602
97b1271a1316e9 Fei Shao 2021-12-06 1603 /* Update tracking, and other cleanup,
depending on memory type. */
97b1271a1316e9 Fei Shao 2021-12-06 1604 switch (reg->gpu_alloc->type) {
97b1271a1316e9 Fei Shao 2021-12-06 1605 case KBASE_MEM_TYPE_ALIAS:
97b1271a1316e9 Fei Shao 2021-12-06 1606 /* We mark the source allocs as unmapped from
the GPU when
97b1271a1316e9 Fei Shao 2021-12-06 1607 * putting reg's allocs
97b1271a1316e9 Fei Shao 2021-12-06 1608 */
97b1271a1316e9 Fei Shao 2021-12-06 1609 break;
97b1271a1316e9 Fei Shao 2021-12-06 @1610 case KBASE_MEM_TYPE_IMPORTED_USER_BUF: {
97b1271a1316e9 Fei Shao 2021-12-06 1611 struct kbase_alloc_import_user_buf *user_buf
=
97b1271a1316e9 Fei Shao 2021-12-06 1612
®->gpu_alloc->imported.user_buf;
97b1271a1316e9 Fei Shao 2021-12-06 1613
97b1271a1316e9 Fei Shao 2021-12-06 1614 if (user_buf->current_mapping_usage_count
& PINNED_ON_IMPORT) {
97b1271a1316e9 Fei Shao 2021-12-06 1615 user_buf->current_mapping_usage_count
&=
97b1271a1316e9 Fei Shao 2021-12-06 1616 ~PINNED_ON_IMPORT;
97b1271a1316e9 Fei Shao 2021-12-06 1617
97b1271a1316e9 Fei Shao 2021-12-06 1618 /* The allocation could still have active
mappings. */
97b1271a1316e9 Fei Shao 2021-12-06 1619 if (user_buf->current_mapping_usage_count
== 0) {
97b1271a1316e9 Fei Shao 2021-12-06 1620 kbase_jd_user_buf_unmap(kctx,
reg->gpu_alloc,
97b1271a1316e9 Fei Shao 2021-12-06 1621 (reg->flags & KBASE_REG_GPU_WR));
97b1271a1316e9 Fei Shao 2021-12-06 1622 }
97b1271a1316e9 Fei Shao 2021-12-06 1623 }
97b1271a1316e9 Fei Shao 2021-12-06 1624 }
97b1271a1316e9 Fei Shao 2021-12-06 1625 /* Fall-through */
97b1271a1316e9 Fei Shao 2021-12-06 1626 default:
97b1271a1316e9 Fei Shao 2021-12-06 1627
kbase_mem_phy_alloc_gpu_unmapped(reg->gpu_alloc);
97b1271a1316e9 Fei Shao 2021-12-06 1628 break;
97b1271a1316e9 Fei Shao 2021-12-06 1629 }
97b1271a1316e9 Fei Shao 2021-12-06 1630
97b1271a1316e9 Fei Shao 2021-12-06 1631 return err;
97b1271a1316e9 Fei Shao 2021-12-06 1632 }
97b1271a1316e9 Fei Shao 2021-12-06 1633
:::::: The code at line 1610 was first introduced by commit
:::::: 97b1271a1316e9353e0192e8883921e859e08446 CHROMIUM: Mali: Apply Bifrost r32p0 EAC
release
:::::: TO: Fei Shao <fshao(a)chromium.org>
:::::: CC: Commit Bot <commit-bot(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org