[linux-next:master 7659/8311] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:892:26: warning: variable 'stream' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fa35f247b563a7893f3f68f19d00ace2ccf3dff
commit: c44a22b3128d143a66421004b728eed688c21ee6 [7659/8311] drm/amd/display: Add connector to the state if DSC debugfs is set
config: arc-randconfig-r024-20200916 (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.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 checkout c44a22b3128d143a66421004b728eed688c21ee6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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 >>):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:33:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:796:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
796 | uint64_t temp;
| ^~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_check_debugfs_connector_property_change':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:892:26: warning: variable 'stream' set but not used [-Wunused-but-set-variable]
892 | struct dc_stream_state *stream;
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'create_stream_for_sink':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4639:11: warning: variable 'link_bandwidth_kbps' set but not used [-Wunused-but-set-variable]
4639 | uint32_t link_bandwidth_kbps;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_commit_cursors':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7051:44: warning: variable 'new_plane_state' set but not used [-Wunused-but-set-variable]
7051 | struct drm_plane_state *old_plane_state, *new_plane_state;
| ^~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:39:
At top level:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:197:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
197 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:196:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
196 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
195 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:31:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:31:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:29:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout c44a22b3128d143a66421004b728eed688c21ee6
vim +/stream +892 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c
882
883 static void amdgpu_check_debugfs_connector_property_change(struct amdgpu_device *adev,
884 struct drm_atomic_state *state)
885 {
886 struct drm_connector *connector;
887 struct drm_crtc *crtc;
888 struct amdgpu_dm_connector *amdgpu_dm_connector;
889 struct drm_connector_state *conn_state;
890 struct dm_crtc_state *acrtc_state;
891 struct drm_crtc_state *crtc_state;
> 892 struct dc_stream_state *stream;
893 struct drm_device *dev = adev_to_drm(adev);
894
895 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
896
897 amdgpu_dm_connector = to_amdgpu_dm_connector(connector);
898 conn_state = connector->state;
899
900 if (!(conn_state && conn_state->crtc))
901 continue;
902
903 crtc = conn_state->crtc;
904 acrtc_state = to_dm_crtc_state(crtc->state);
905
906 if (!(acrtc_state && acrtc_state->stream))
907 continue;
908
909 stream = acrtc_state->stream;
910
911 if (amdgpu_dm_connector->dsc_settings.dsc_force_enable ||
912 amdgpu_dm_connector->dsc_settings.dsc_num_slices_v ||
913 amdgpu_dm_connector->dsc_settings.dsc_num_slices_h ||
914 amdgpu_dm_connector->dsc_settings.dsc_bits_per_pixel) {
915 conn_state = drm_atomic_get_connector_state(state, connector);
916 crtc_state = drm_atomic_get_crtc_state(state, crtc);
917 crtc_state->mode_changed = true;
918 }
919 }
920 }
921
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[sashal-linux-stable:queue-5.4 129/131] drivers/gpu/drm/msm/adreno/a6xx_gpu.c:414:6: error: implicit declaration of function 'adreno_is_a640'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 528c4d782ba8d3c55031b198cd9b9d6c780f067d
commit: ff05213f7a694bce80f498aa6f273418cea351a2 [129/131] drm/msm/a6xx: update a6xx_hw_init for A640 and A650
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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 checkout ff05213f7a694bce80f498aa6f273418cea351a2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:33:6: warning: no previous prototype for 'a6xx_idle' [-Wmissing-prototypes]
33 | bool a6xx_idle(struct msm_gpu *gpu, struct msm_ringbuffer *ring)
| ^~~~~~~~~
drivers/gpu/drm/msm/adreno/a6xx_gpu.c: In function 'a6xx_hw_init':
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:414:6: error: implicit declaration of function 'adreno_is_a640'; did you mean 'adreno_is_a540'? [-Werror=implicit-function-declaration]
414 | if (adreno_is_a640(adreno_gpu) || adreno_is_a650(adreno_gpu)) {
| ^~~~~~~~~~~~~~
| adreno_is_a540
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:414:36: error: implicit declaration of function 'adreno_is_a650'; did you mean 'adreno_is_a540'? [-Werror=implicit-function-declaration]
414 | if (adreno_is_a640(adreno_gpu) || adreno_is_a650(adreno_gpu)) {
| ^~~~~~~~~~~~~~
| adreno_is_a540
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:415:18: error: 'REG_A6XX_GBIF_QSB_SIDE0' undeclared (first use in this function)
415 | gpu_write(gpu, REG_A6XX_GBIF_QSB_SIDE0, 0x00071620);
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:415:18: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:416:18: error: 'REG_A6XX_GBIF_QSB_SIDE1' undeclared (first use in this function)
416 | gpu_write(gpu, REG_A6XX_GBIF_QSB_SIDE1, 0x00071620);
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:417:18: error: 'REG_A6XX_GBIF_QSB_SIDE2' undeclared (first use in this function)
417 | gpu_write(gpu, REG_A6XX_GBIF_QSB_SIDE2, 0x00071620);
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:418:18: error: 'REG_A6XX_GBIF_QSB_SIDE3' undeclared (first use in this function)
418 | gpu_write(gpu, REG_A6XX_GBIF_QSB_SIDE3, 0x00071620);
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout ff05213f7a694bce80f498aa6f273418cea351a2
vim +414 drivers/gpu/drm/msm/adreno/a6xx_gpu.c
362
363 #define A6XX_INT_MASK (A6XX_RBBM_INT_0_MASK_CP_AHB_ERROR | \
364 A6XX_RBBM_INT_0_MASK_RBBM_ATB_ASYNCFIFO_OVERFLOW | \
365 A6XX_RBBM_INT_0_MASK_CP_HW_ERROR | \
366 A6XX_RBBM_INT_0_MASK_CP_IB2 | \
367 A6XX_RBBM_INT_0_MASK_CP_IB1 | \
368 A6XX_RBBM_INT_0_MASK_CP_RB | \
369 A6XX_RBBM_INT_0_MASK_CP_CACHE_FLUSH_TS | \
370 A6XX_RBBM_INT_0_MASK_RBBM_ATB_BUS_OVERFLOW | \
371 A6XX_RBBM_INT_0_MASK_RBBM_HANG_DETECT | \
372 A6XX_RBBM_INT_0_MASK_UCHE_OOB_ACCESS | \
373 A6XX_RBBM_INT_0_MASK_UCHE_TRAP_INTR)
374
375 static int a6xx_hw_init(struct msm_gpu *gpu)
376 {
377 struct adreno_gpu *adreno_gpu = to_adreno_gpu(gpu);
378 struct a6xx_gpu *a6xx_gpu = to_a6xx_gpu(adreno_gpu);
379 int ret;
380
381 /* Make sure the GMU keeps the GPU on while we set it up */
382 a6xx_gmu_set_oob(&a6xx_gpu->gmu, GMU_OOB_GPU_SET);
383
384 gpu_write(gpu, REG_A6XX_RBBM_SECVID_TSB_CNTL, 0);
385
386 /*
387 * Disable the trusted memory range - we don't actually supported secure
388 * memory rendering at this point in time and we don't want to block off
389 * part of the virtual memory space.
390 */
391 gpu_write64(gpu, REG_A6XX_RBBM_SECVID_TSB_TRUSTED_BASE_LO,
392 REG_A6XX_RBBM_SECVID_TSB_TRUSTED_BASE_HI, 0x00000000);
393 gpu_write(gpu, REG_A6XX_RBBM_SECVID_TSB_TRUSTED_SIZE, 0x00000000);
394
395 /* Turn on 64 bit addressing for all blocks */
396 gpu_write(gpu, REG_A6XX_CP_ADDR_MODE_CNTL, 0x1);
397 gpu_write(gpu, REG_A6XX_VSC_ADDR_MODE_CNTL, 0x1);
398 gpu_write(gpu, REG_A6XX_GRAS_ADDR_MODE_CNTL, 0x1);
399 gpu_write(gpu, REG_A6XX_RB_ADDR_MODE_CNTL, 0x1);
400 gpu_write(gpu, REG_A6XX_PC_ADDR_MODE_CNTL, 0x1);
401 gpu_write(gpu, REG_A6XX_HLSQ_ADDR_MODE_CNTL, 0x1);
402 gpu_write(gpu, REG_A6XX_VFD_ADDR_MODE_CNTL, 0x1);
403 gpu_write(gpu, REG_A6XX_VPC_ADDR_MODE_CNTL, 0x1);
404 gpu_write(gpu, REG_A6XX_UCHE_ADDR_MODE_CNTL, 0x1);
405 gpu_write(gpu, REG_A6XX_SP_ADDR_MODE_CNTL, 0x1);
406 gpu_write(gpu, REG_A6XX_TPL1_ADDR_MODE_CNTL, 0x1);
407 gpu_write(gpu, REG_A6XX_RBBM_SECVID_TSB_ADDR_MODE_CNTL, 0x1);
408
409 /* enable hardware clockgating */
410 a6xx_set_hwcg(gpu, true);
411
412 /* VBIF start */
413 gpu_write(gpu, REG_A6XX_VBIF_GATE_OFF_WRREQ_EN, 0x00000009);
> 414 if (adreno_is_a640(adreno_gpu) || adreno_is_a650(adreno_gpu)) {
> 415 gpu_write(gpu, REG_A6XX_GBIF_QSB_SIDE0, 0x00071620);
> 416 gpu_write(gpu, REG_A6XX_GBIF_QSB_SIDE1, 0x00071620);
> 417 gpu_write(gpu, REG_A6XX_GBIF_QSB_SIDE2, 0x00071620);
> 418 gpu_write(gpu, REG_A6XX_GBIF_QSB_SIDE3, 0x00071620);
419 gpu_write(gpu, REG_A6XX_GBIF_QSB_SIDE3, 0x00071620);
420 gpu_write(gpu, REG_A6XX_RBBM_GBIF_CLIENT_QOS_CNTL, 0x3);
421 } else {
422 gpu_write(gpu, REG_A6XX_RBBM_VBIF_CLIENT_QOS_CNTL, 0x3);
423 }
424
425 /* Make all blocks contribute to the GPU BUSY perf counter */
426 gpu_write(gpu, REG_A6XX_RBBM_PERFCTR_GPU_BUSY_MASKED, 0xffffffff);
427
428 /* Disable L2 bypass in the UCHE */
429 gpu_write(gpu, REG_A6XX_UCHE_WRITE_RANGE_MAX_LO, 0xffffffc0);
430 gpu_write(gpu, REG_A6XX_UCHE_WRITE_RANGE_MAX_HI, 0x0001ffff);
431 gpu_write(gpu, REG_A6XX_UCHE_TRAP_BASE_LO, 0xfffff000);
432 gpu_write(gpu, REG_A6XX_UCHE_TRAP_BASE_HI, 0x0001ffff);
433 gpu_write(gpu, REG_A6XX_UCHE_WRITE_THRU_BASE_LO, 0xfffff000);
434 gpu_write(gpu, REG_A6XX_UCHE_WRITE_THRU_BASE_HI, 0x0001ffff);
435
436 if (!adreno_is_a650(adreno_gpu)) {
437 /* Set the GMEM VA range [0x100000:0x100000 + gpu->gmem - 1] */
438 gpu_write64(gpu, REG_A6XX_UCHE_GMEM_RANGE_MIN_LO,
439 REG_A6XX_UCHE_GMEM_RANGE_MIN_HI, 0x00100000);
440
441 gpu_write64(gpu, REG_A6XX_UCHE_GMEM_RANGE_MAX_LO,
442 REG_A6XX_UCHE_GMEM_RANGE_MAX_HI,
443 0x00100000 + adreno_gpu->gmem - 1);
444 }
445
446 gpu_write(gpu, REG_A6XX_UCHE_FILTER_CNTL, 0x804);
447 gpu_write(gpu, REG_A6XX_UCHE_CACHE_WAYS, 0x4);
448
449 if (adreno_is_a640(adreno_gpu) || adreno_is_a650(adreno_gpu))
450 gpu_write(gpu, REG_A6XX_CP_ROQ_THRESHOLDS_2, 0x02000140);
451 else
452 gpu_write(gpu, REG_A6XX_CP_ROQ_THRESHOLDS_2, 0x010000c0);
453 gpu_write(gpu, REG_A6XX_CP_ROQ_THRESHOLDS_1, 0x8040362c);
454
455 /* Setting the mem pool size */
456 gpu_write(gpu, REG_A6XX_CP_MEM_POOL_SIZE, 128);
457
458 /* Setting the primFifo thresholds default values */
459 if (adreno_is_a650(adreno_gpu))
460 gpu_write(gpu, REG_A6XX_PC_DBG_ECO_CNTL, 0x00300000);
461 else if (adreno_is_a640(adreno_gpu))
462 gpu_write(gpu, REG_A6XX_PC_DBG_ECO_CNTL, 0x00200000);
463 else
464 gpu_write(gpu, REG_A6XX_PC_DBG_ECO_CNTL, (0x300 << 11));
465
466 /* Set the AHB default slave response to "ERROR" */
467 gpu_write(gpu, REG_A6XX_CP_AHB_CNTL, 0x1);
468
469 /* Turn on performance counters */
470 gpu_write(gpu, REG_A6XX_RBBM_PERFCTR_CNTL, 0x1);
471
472 /* Select CP0 to always count cycles */
473 gpu_write(gpu, REG_A6XX_CP_PERFCTR_CP_SEL_0, PERF_CP_ALWAYS_COUNT);
474
475 gpu_write(gpu, REG_A6XX_RB_NC_MODE_CNTL, 2 << 1);
476 gpu_write(gpu, REG_A6XX_TPL1_NC_MODE_CNTL, 2 << 1);
477 gpu_write(gpu, REG_A6XX_SP_NC_MODE_CNTL, 2 << 1);
478 gpu_write(gpu, REG_A6XX_UCHE_MODE_CNTL, 2 << 21);
479
480 /* Enable fault detection */
481 gpu_write(gpu, REG_A6XX_RBBM_INTERFACE_HANG_INT_CNTL,
482 (1 << 30) | 0x1fffff);
483
484 gpu_write(gpu, REG_A6XX_UCHE_CLIENT_PF, 1);
485
486 /* Set weights for bicubic filtering */
487 if (adreno_is_a650(adreno_gpu)) {
488 gpu_write(gpu, REG_A6XX_TPL1_BICUBIC_WEIGHTS_TABLE_0, 0);
489 gpu_write(gpu, REG_A6XX_TPL1_BICUBIC_WEIGHTS_TABLE_1,
490 0x3fe05ff4);
491 gpu_write(gpu, REG_A6XX_TPL1_BICUBIC_WEIGHTS_TABLE_2,
492 0x3fa0ebee);
493 gpu_write(gpu, REG_A6XX_TPL1_BICUBIC_WEIGHTS_TABLE_3,
494 0x3f5193ed);
495 gpu_write(gpu, REG_A6XX_TPL1_BICUBIC_WEIGHTS_TABLE_4,
496 0x3f0243f0);
497 }
498
499 /* Protect registers from the CP */
500 gpu_write(gpu, REG_A6XX_CP_PROTECT_CNTL, 0x00000003);
501
502 gpu_write(gpu, REG_A6XX_CP_PROTECT(0),
503 A6XX_PROTECT_RDONLY(0x600, 0x51));
504 gpu_write(gpu, REG_A6XX_CP_PROTECT(1), A6XX_PROTECT_RW(0xae50, 0x2));
505 gpu_write(gpu, REG_A6XX_CP_PROTECT(2), A6XX_PROTECT_RW(0x9624, 0x13));
506 gpu_write(gpu, REG_A6XX_CP_PROTECT(3), A6XX_PROTECT_RW(0x8630, 0x8));
507 gpu_write(gpu, REG_A6XX_CP_PROTECT(4), A6XX_PROTECT_RW(0x9e70, 0x1));
508 gpu_write(gpu, REG_A6XX_CP_PROTECT(5), A6XX_PROTECT_RW(0x9e78, 0x187));
509 gpu_write(gpu, REG_A6XX_CP_PROTECT(6), A6XX_PROTECT_RW(0xf000, 0x810));
510 gpu_write(gpu, REG_A6XX_CP_PROTECT(7),
511 A6XX_PROTECT_RDONLY(0xfc00, 0x3));
512 gpu_write(gpu, REG_A6XX_CP_PROTECT(8), A6XX_PROTECT_RW(0x50e, 0x0));
513 gpu_write(gpu, REG_A6XX_CP_PROTECT(9), A6XX_PROTECT_RDONLY(0x50f, 0x0));
514 gpu_write(gpu, REG_A6XX_CP_PROTECT(10), A6XX_PROTECT_RW(0x510, 0x0));
515 gpu_write(gpu, REG_A6XX_CP_PROTECT(11),
516 A6XX_PROTECT_RDONLY(0x0, 0x4f9));
517 gpu_write(gpu, REG_A6XX_CP_PROTECT(12),
518 A6XX_PROTECT_RDONLY(0x501, 0xa));
519 gpu_write(gpu, REG_A6XX_CP_PROTECT(13),
520 A6XX_PROTECT_RDONLY(0x511, 0x44));
521 gpu_write(gpu, REG_A6XX_CP_PROTECT(14), A6XX_PROTECT_RW(0xe00, 0xe));
522 gpu_write(gpu, REG_A6XX_CP_PROTECT(15), A6XX_PROTECT_RW(0x8e00, 0x0));
523 gpu_write(gpu, REG_A6XX_CP_PROTECT(16), A6XX_PROTECT_RW(0x8e50, 0xf));
524 gpu_write(gpu, REG_A6XX_CP_PROTECT(17), A6XX_PROTECT_RW(0xbe02, 0x0));
525 gpu_write(gpu, REG_A6XX_CP_PROTECT(18),
526 A6XX_PROTECT_RW(0xbe20, 0x11f3));
527 gpu_write(gpu, REG_A6XX_CP_PROTECT(19), A6XX_PROTECT_RW(0x800, 0x82));
528 gpu_write(gpu, REG_A6XX_CP_PROTECT(20), A6XX_PROTECT_RW(0x8a0, 0x8));
529 gpu_write(gpu, REG_A6XX_CP_PROTECT(21), A6XX_PROTECT_RW(0x8ab, 0x19));
530 gpu_write(gpu, REG_A6XX_CP_PROTECT(22), A6XX_PROTECT_RW(0x900, 0x4d));
531 gpu_write(gpu, REG_A6XX_CP_PROTECT(23), A6XX_PROTECT_RW(0x98d, 0x76));
532 gpu_write(gpu, REG_A6XX_CP_PROTECT(24),
533 A6XX_PROTECT_RDONLY(0x980, 0x4));
534 gpu_write(gpu, REG_A6XX_CP_PROTECT(25), A6XX_PROTECT_RW(0xa630, 0x0));
535
536 if (adreno_is_a650(adreno_gpu)) {
537 gpu_write(gpu, REG_A6XX_CP_APRIV_CNTL,
538 (1 << 6) | (1 << 5) | (1 << 3) | (1 << 2) | (1 << 1));
539 }
540
541 /* Enable interrupts */
542 gpu_write(gpu, REG_A6XX_RBBM_INT_0_MASK, A6XX_INT_MASK);
543
544 ret = adreno_hw_init(gpu);
545 if (ret)
546 goto out;
547
548 ret = a6xx_ucode_init(gpu);
549 if (ret)
550 goto out;
551
552 /* Always come up on rb 0 */
553 a6xx_gpu->cur_ring = gpu->rb[0];
554
555 /* Enable the SQE_to start the CP engine */
556 gpu_write(gpu, REG_A6XX_CP_SQE_CNTL, 1);
557
558 ret = a6xx_cp_init(gpu);
559 if (ret)
560 goto out;
561
562 /*
563 * Try to load a zap shader into the secure world. If successful
564 * we can use the CP to switch out of secure mode. If not then we
565 * have no resource but to try to switch ourselves out manually. If we
566 * guessed wrong then access to the RBBM_SECVID_TRUST_CNTL register will
567 * be blocked and a permissions violation will soon follow.
568 */
569 ret = a6xx_zap_shader_init(gpu);
570 if (!ret) {
571 OUT_PKT7(gpu->rb[0], CP_SET_SECURE_MODE, 1);
572 OUT_RING(gpu->rb[0], 0x00000000);
573
574 a6xx_flush(gpu, gpu->rb[0]);
575 if (!a6xx_idle(gpu, gpu->rb[0]))
576 return -EINVAL;
577 } else if (ret == -ENODEV) {
578 /*
579 * This device does not use zap shader (but print a warning
580 * just in case someone got their dt wrong.. hopefully they
581 * have a debug UART to realize the error of their ways...
582 * if you mess this up you are about to crash horribly)
583 */
584 dev_warn_once(gpu->dev->dev,
585 "Zap shader not enabled - using SECVID_TRUST_CNTL instead\n");
586 gpu_write(gpu, REG_A6XX_RBBM_SECVID_TRUST_CNTL, 0x0);
587 ret = 0;
588 } else {
589 return ret;
590 }
591
592 out:
593 /*
594 * Tell the GMU that we are done touching the GPU and it can start power
595 * management
596 */
597 a6xx_gmu_clear_oob(&a6xx_gpu->gmu, GMU_OOB_GPU_SET);
598
599 /* Take the GMU out of its special boot mode */
600 a6xx_gmu_clear_oob(&a6xx_gpu->gmu, GMU_OOB_BOOT_SLUMBER);
601
602 return ret;
603 }
604
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[jirislaby:devel 38/45] drivers/video/console/vgacon.c:323:23: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: 9a16900cf327fd84fd1a0807df72dfb7c4900ba8
commit: 7ba80eb5d66879347c2a9a6b32929100aa7c0761 [38/45] make VGA_MAP_MEM return pointer
config: powerpc-randconfig-s032-20200916 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-201-g24bdaac6-dirty
git checkout 7ba80eb5d66879347c2a9a6b32929100aa7c0761
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/video/console/vgacon.c:323:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned short [usertype] *static [toplevel] vga_vram_base @@ got void [noderef] __iomem * @@
>> drivers/video/console/vgacon.c:323:23: sparse: expected unsigned short [usertype] *static [toplevel] vga_vram_base
>> drivers/video/console/vgacon.c:323:23: sparse: got void [noderef] __iomem *
>> drivers/video/console/vgacon.c:874:25: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected char *charmap @@ got void [noderef] __iomem * @@
>> drivers/video/console/vgacon.c:874:25: sparse: expected char *charmap
drivers/video/console/vgacon.c:874:25: sparse: got void [noderef] __iomem *
drivers/video/console/vgacon.c:877:25: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected char *charmap @@ got void [noderef] __iomem * @@
drivers/video/console/vgacon.c:877:25: sparse: expected char *charmap
drivers/video/console/vgacon.c:877:25: sparse: got void [noderef] __iomem *
drivers/video/console/vgacon.c: note: in included file (through include/linux/vt_buffer.h, include/linux/selection.h):
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:34:16: sparse: sparse: cast to restricted __le16
arch/powerpc/include/asm/vga.h:29:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:29:15: sparse: expected unsigned short volatile [usertype]
arch/powerpc/include/asm/vga.h:29:15: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:40:21: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] v @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:40:21: sparse: expected unsigned short [usertype] v
arch/powerpc/include/asm/vga.h:40:21: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:40:21: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] v @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:40:21: sparse: expected unsigned short [usertype] v
arch/powerpc/include/asm/vga.h:40:21: sparse: got restricted __le16 [usertype]
arch/powerpc/include/asm/vga.h:40:21: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] v @@ got restricted __le16 [usertype] @@
arch/powerpc/include/asm/vga.h:40:21: sparse: expected unsigned short [usertype] v
arch/powerpc/include/asm/vga.h:40:21: sparse: got restricted __le16 [usertype]
# https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commi...
git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout 7ba80eb5d66879347c2a9a6b32929100aa7c0761
vim +323 drivers/video/console/vgacon.c
180
181 static const char *vgacon_startup(void)
182 {
183 const char *display_desc = NULL;
184 phys_addr_t vram_phys;
185 u16 saved1, saved2;
186 volatile u16 *p;
187
188 if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB ||
189 screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) {
190 no_vga:
191 #ifdef CONFIG_DUMMY_CONSOLE
192 conswitchp = &dummy_con;
193 return conswitchp->con_startup();
194 #else
195 return NULL;
196 #endif
197 }
198
199 /* boot_params.screen_info reasonably initialized? */
200 if ((screen_info.orig_video_lines == 0) ||
201 (screen_info.orig_video_cols == 0))
202 goto no_vga;
203
204 /* VGA16 modes are not handled by VGACON */
205 if ((screen_info.orig_video_mode == 0x0D) || /* 320x200/4 */
206 (screen_info.orig_video_mode == 0x0E) || /* 640x200/4 */
207 (screen_info.orig_video_mode == 0x10) || /* 640x350/4 */
208 (screen_info.orig_video_mode == 0x12) || /* 640x480/4 */
209 (screen_info.orig_video_mode == 0x6A)) /* 800x600/4 (VESA) */
210 goto no_vga;
211
212 vga_video_num_lines = screen_info.orig_video_lines;
213 vga_video_num_columns = screen_info.orig_video_cols;
214 vgastate.vgabase = NULL;
215
216 if (screen_info.orig_video_mode == 7) {
217 /* Monochrome display */
218 vram_phys = 0xb0000;
219 vga_video_port_reg = VGA_CRT_IM;
220 vga_video_port_val = VGA_CRT_DM;
221 if ((screen_info.orig_video_ega_bx & 0xff) != 0x10) {
222 static struct resource ega_console_resource =
223 { .name = "ega",
224 .flags = IORESOURCE_IO,
225 .start = 0x3B0,
226 .end = 0x3BF };
227 vga_video_type = VIDEO_TYPE_EGAM;
228 vga_vram_size = 0x8000;
229 display_desc = "EGA+";
230 request_resource(&ioport_resource,
231 &ega_console_resource);
232 } else {
233 static struct resource mda1_console_resource =
234 { .name = "mda",
235 .flags = IORESOURCE_IO,
236 .start = 0x3B0,
237 .end = 0x3BB };
238 static struct resource mda2_console_resource =
239 { .name = "mda",
240 .flags = IORESOURCE_IO,
241 .start = 0x3BF,
242 .end = 0x3BF };
243 vga_video_type = VIDEO_TYPE_MDA;
244 vga_vram_size = 0x2000;
245 display_desc = "*MDA";
246 request_resource(&ioport_resource,
247 &mda1_console_resource);
248 request_resource(&ioport_resource,
249 &mda2_console_resource);
250 vga_video_font_height = 14;
251 }
252 } else {
253 /* If not, it is color. */
254 vga_can_do_color = true;
255 vram_phys = 0xb8000;
256 vga_video_port_reg = VGA_CRT_IC;
257 vga_video_port_val = VGA_CRT_DC;
258 if ((screen_info.orig_video_ega_bx & 0xff) != 0x10) {
259 int i;
260
261 vga_vram_size = 0x8000;
262
263 if (!screen_info.orig_video_isVGA) {
264 static struct resource ega_console_resource =
265 { .name = "ega",
266 .flags = IORESOURCE_IO,
267 .start = 0x3C0,
268 .end = 0x3DF };
269 vga_video_type = VIDEO_TYPE_EGAC;
270 display_desc = "EGA";
271 request_resource(&ioport_resource,
272 &ega_console_resource);
273 } else {
274 static struct resource vga_console_resource =
275 { .name = "vga+",
276 .flags = IORESOURCE_IO,
277 .start = 0x3C0,
278 .end = 0x3DF };
279 vga_video_type = VIDEO_TYPE_VGAC;
280 display_desc = "VGA+";
281 request_resource(&ioport_resource,
282 &vga_console_resource);
283
284 /*
285 * Normalise the palette registers, to point
286 * the 16 screen colours to the first 16
287 * DAC entries.
288 */
289
290 for (i = 0; i < 16; i++) {
291 inb_p(VGA_IS1_RC);
292 outb_p(i, VGA_ATT_W);
293 outb_p(i, VGA_ATT_W);
294 }
295 outb_p(0x20, VGA_ATT_W);
296
297 /*
298 * Now set the DAC registers back to their
299 * default values
300 */
301 for (i = 0; i < 16; i++) {
302 outb_p(color_table[i], VGA_PEL_IW);
303 outb_p(default_red[i], VGA_PEL_D);
304 outb_p(default_grn[i], VGA_PEL_D);
305 outb_p(default_blu[i], VGA_PEL_D);
306 }
307 }
308 } else {
309 static struct resource cga_console_resource =
310 { .name = "cga",
311 .flags = IORESOURCE_IO,
312 .start = 0x3D4,
313 .end = 0x3D5 };
314 vga_video_type = VIDEO_TYPE_CGA;
315 vga_vram_size = 0x2000;
316 display_desc = "*CGA";
317 request_resource(&ioport_resource,
318 &cga_console_resource);
319 vga_video_font_height = 8;
320 }
321 }
322
> 323 vga_vram_base = VGA_MAP_MEM(vram_phys, vga_vram_size);
324 vga_vram_end = (void *)vga_vram_base + vga_vram_size;
325
326 /*
327 * Find out if there is a graphics card present.
328 * Are there smarter methods around?
329 */
330 p = (volatile u16 *) vga_vram_base;
331 saved1 = scr_readw(p);
332 saved2 = scr_readw(p + 1);
333 scr_writew(0xAA55, p);
334 scr_writew(0x55AA, p + 1);
335 if (scr_readw(p) != 0xAA55 || scr_readw(p + 1) != 0x55AA) {
336 scr_writew(saved1, p);
337 scr_writew(saved2, p + 1);
338 goto no_vga;
339 }
340 scr_writew(0x55AA, p);
341 scr_writew(0xAA55, p + 1);
342 if (scr_readw(p) != 0x55AA || scr_readw(p + 1) != 0xAA55) {
343 scr_writew(saved1, p);
344 scr_writew(saved2, p + 1);
345 goto no_vga;
346 }
347 scr_writew(saved1, p);
348 scr_writew(saved2, p + 1);
349
350 if (vga_video_type == VIDEO_TYPE_EGAC
351 || vga_video_type == VIDEO_TYPE_VGAC
352 || vga_video_type == VIDEO_TYPE_EGAM) {
353 vga_hardscroll_enabled = vga_hardscroll_user_enable;
354 vga_default_font_height = screen_info.orig_video_points;
355 vga_video_font_height = screen_info.orig_video_points;
356 /* This may be suboptimal but is a safe bet - go with it */
357 vga_scan_lines =
358 vga_video_font_height * vga_video_num_lines;
359 }
360
361 vgacon_xres = screen_info.orig_video_cols * VGA_FONTWIDTH;
362 vgacon_yres = vga_scan_lines;
363
364 vga_init_done = true;
365
366 return display_desc;
367 }
368
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[arm-platforms:kvm/protected-memory 9/16] arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2745:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm/protected-memory
head: d9455e6eabef4b9be5f33c418a8046e0389edade
commit: 842821613f3ec8a3357ddb6b4b45740bccc38aeb [9/16] KVM: Protected memory extension
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.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 checkout 842821613f3ec8a3357ddb6b4b45740bccc38aeb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'protect_memory':
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2745:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
2745 | if (down_write_killable(&mm->mmap_sem))
| ^~~~~~~~
| mmap_base
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2799:16: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
2799 | up_write(&mm->mmap_sem);
| ^~~~~~~~
| mmap_base
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms kvm/protected-memory
git checkout 842821613f3ec8a3357ddb6b4b45740bccc38aeb
vim +2745 arch/powerpc/kvm/../../../virt/kvm/kvm_main.c
2738
2739 static int protect_memory(unsigned long start, unsigned long end, bool protect)
2740 {
2741 struct mm_struct *mm = current->mm;
2742 struct vm_area_struct *vma, *prev;
2743 int ret;
2744
> 2745 if (down_write_killable(&mm->mmap_sem))
2746 return -EINTR;
2747
2748 ret = -ENOMEM;
2749 vma = find_vma(current->mm, start);
2750 if (!vma)
2751 goto out;
2752
2753 ret = -EINVAL;
2754 if (vma->vm_start > start)
2755 goto out;
2756
2757 if (start > vma->vm_start)
2758 prev = vma;
2759 else
2760 prev = vma->vm_prev;
2761
2762 ret = 0;
2763 while (true) {
2764 unsigned long newflags, tmp;
2765
2766 tmp = vma->vm_end;
2767 if (tmp > end)
2768 tmp = end;
2769
2770 newflags = vma->vm_flags;
2771 if (protect)
2772 newflags |= VM_KVM_PROTECTED;
2773 else
2774 newflags &= ~VM_KVM_PROTECTED;
2775
2776 /* The VMA has been handled as part of other memslot */
2777 if (newflags == vma->vm_flags)
2778 goto next;
2779
2780 ret = mprotect_fixup(vma, &prev, start, tmp, newflags);
2781 if (ret)
2782 goto out;
2783
2784 next:
2785 start = tmp;
2786 if (start < prev->vm_end)
2787 start = prev->vm_end;
2788
2789 if (start >= end)
2790 goto out;
2791
2792 vma = prev->vm_next;
2793 if (!vma || vma->vm_start != start) {
2794 ret = -ENOMEM;
2795 goto out;
2796 }
2797 }
2798 out:
2799 up_write(&mm->mmap_sem);
2800 return ret;
2801 }
2802
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH v15 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP
by kernel test robot
Hi Xin,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.9-rc5 next-20200916]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Xin-Ji/Add-initial-support-for-s...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fc4f28bb3daf3265d6bc5f73b497306985bb23ab
config: nds32-allyesconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/bridge/analogix/anx7625.c:1636:16: error: initialization of 'enum drm_mode_status (*)(struct drm_bridge *, const struct drm_display_info *, const struct drm_display_mode *)' from incompatible pointer type 'enum drm_mode_status (*)(struct drm_bridge *, const struct drm_display_mode *)' [-Werror=incompatible-pointer-types]
1636 | .mode_valid = anx7625_bridge_mode_valid,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/analogix/anx7625.c:1636:16: note: (near initialization for 'anx7625_bridge_funcs.mode_valid')
cc1: some warnings being treated as errors
# https://github.com/0day-ci/linux/commit/894859cbb786436c47d020d5569de7019...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xin-Ji/Add-initial-support-for-slimport-anx7625/20200916-172800
git checkout 894859cbb786436c47d020d5569de7019776174c
vim +1636 drivers/gpu/drm/bridge/analogix/anx7625.c
1631
1632 static const struct drm_bridge_funcs anx7625_bridge_funcs = {
1633 .attach = anx7625_bridge_attach,
1634 .detach = anx7625_bridge_detach,
1635 .disable = anx7625_bridge_disable,
> 1636 .mode_valid = anx7625_bridge_mode_valid,
1637 .mode_set = anx7625_bridge_mode_set,
1638 .mode_fixup = anx7625_bridge_mode_fixup,
1639 .enable = anx7625_bridge_enable,
1640 .detect = anx7625_bridge_detect,
1641 .get_edid = anx7625_bridge_get_edid,
1642 };
1643
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[linux-next:master 7650/8311] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:641:8: warning: logical not is only applied to the left hand side of this comparison
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fa35f247b563a7893f3f68f19d00ace2ccf3dff
commit: 0749ddeb7d6c87e04446c068c03b097d4aa19173 [7650/8311] drm/amd/display: Add DSC force disable to dsc_clock_en debugfs entry
config: powerpc-randconfig-r011-20200916 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e3842d60351f986d77dfe0a94f76e4fd895f188)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git checkout 0749ddeb7d6c87e04446c068c03b097d4aa19173
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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 >>):
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:641:8: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
&& !params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
^ ~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:641:8: note: add parentheses after the '!' to evaluate the comparison first
&& !params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
^
( )
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:641:8: note: add parentheses around left hand side expression to silence this warning
&& !params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
^
( )
1 warning generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 0749ddeb7d6c87e04446c068c03b097d4aa19173
vim +641 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c
624
625 static void try_disable_dsc(struct drm_atomic_state *state,
626 struct dc_link *dc_link,
627 struct dsc_mst_fairness_params *params,
628 struct dsc_mst_fairness_vars *vars,
629 int count)
630 {
631 int i;
632 bool tried[MAX_PIPES];
633 int kbps_increase[MAX_PIPES];
634 int max_kbps_increase;
635 int next_index;
636 int remaining_to_try = 0;
637
638 for (i = 0; i < count; i++) {
639 if (vars[i].dsc_enabled
640 && vars[i].bpp_x16 == params[i].bw_range.max_target_bpp_x16
> 641 && !params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
642 kbps_increase[i] = params[i].bw_range.stream_kbps - params[i].bw_range.max_kbps;
643 tried[i] = false;
644 remaining_to_try += 1;
645 } else {
646 kbps_increase[i] = 0;
647 tried[i] = true;
648 }
649 }
650
651 while (remaining_to_try) {
652 next_index = -1;
653 max_kbps_increase = -1;
654 for (i = 0; i < count; i++) {
655 if (!tried[i]) {
656 if (max_kbps_increase == -1 || max_kbps_increase < kbps_increase[i]) {
657 max_kbps_increase = kbps_increase[i];
658 next_index = i;
659 }
660 }
661 }
662
663 if (next_index == -1)
664 break;
665
666 vars[next_index].pbn = kbps_to_peak_pbn(params[next_index].bw_range.stream_kbps);
667 if (drm_dp_atomic_find_vcpi_slots(state,
668 params[next_index].port->mgr,
669 params[next_index].port,
670 vars[next_index].pbn,
671 dm_mst_get_pbn_divider(dc_link)) < 0)
672 return;
673
674 if (!drm_dp_mst_atomic_check(state)) {
675 vars[next_index].dsc_enabled = false;
676 vars[next_index].bpp_x16 = 0;
677 } else {
678 vars[next_index].pbn = kbps_to_peak_pbn(params[next_index].bw_range.max_kbps);
679 if (drm_dp_atomic_find_vcpi_slots(state,
680 params[next_index].port->mgr,
681 params[next_index].port,
682 vars[next_index].pbn,
683 dm_mst_get_pbn_divider(dc_link)) < 0)
684 return;
685 }
686
687 tried[next_index] = true;
688 remaining_to_try--;
689 }
690 }
691
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[linux-next:master 526/8311] drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:83:5: warning: no previous prototype for 'dce60_get_dp_ref_freq_khz'
by kernel test robot
Hi Mauro,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fa35f247b563a7893f3f68f19d00ace2ccf3dff
commit: 5963cdde1acf6b81c62bf6d3bdae723139bf8138 [526/8311] drm/amd/display: enable SI support in the Kconfig (v2)
config: arc-randconfig-r024-20200916 (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.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 checkout 5963cdde1acf6b81c62bf6d3bdae723139bf8138
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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 >>):
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:83:5: warning: no previous prototype for 'dce60_get_dp_ref_freq_khz' [-Wmissing-prototypes]
83 | int dce60_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:28:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:28:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dccg.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:27:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_audio.c:871:6: warning: no previous prototype for 'dce60_aud_wall_dto_setup' [-Wmissing-prototypes]
871 | void dce60_aud_wall_dto_setup(
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/reg_helper.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_audio.c:28:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1161:6: warning: no previous prototype for 'dce60_link_encoder_enable_dp_output' [-Wmissing-prototypes]
1161 | void dce60_link_encoder_enable_dp_output(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1200:6: warning: no previous prototype for 'dce60_link_encoder_enable_dp_mst_output' [-Wmissing-prototypes]
1200 | void dce60_link_encoder_enable_dp_mst_output(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1390:6: warning: no previous prototype for 'dce60_link_encoder_dp_set_phy_pattern' [-Wmissing-prototypes]
1390 | void dce60_link_encoder_dp_set_phy_pattern(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c: In function 'dce110_link_encoder_update_mst_stream_allocation_table':
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1467:11: warning: variable 'value0' set but not used [-Wunused-but-set-variable]
1467 | uint32_t value0 = 0;
| ^~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:31:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:31:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/reg_helper.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:29:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c: In function 'dce60_transform_set_scaler':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:496:7: warning: variable 'filter_updated' set but not used [-Wunused-but-set-variable]
496 | bool filter_updated = false;
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c: In function 'dce60_transform_set_pixel_storage_depth':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:1040:19: warning: variable 'expan_mode' set but not used [-Wunused-but-set-variable]
1040 | int pixel_depth, expan_mode;
| ^~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:1040:6: warning: variable 'pixel_depth' set but not used [-Wunused-but-set-variable]
1040 | int pixel_depth, expan_mode;
| ^~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/hw_shared.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/transform.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:26:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:427:6: warning: no previous prototype for 'dce60_opp_set_clamping' [-Wmissing-prototypes]
427 | void dce60_opp_set_clamping(
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:548:6: warning: no previous prototype for 'dce60_opp_program_bit_depth_reduction' [-Wmissing-prototypes]
548 | void dce60_opp_program_bit_depth_reduction(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:571:6: warning: no previous prototype for 'dce60_opp_program_clamping_and_pixel_encoding' [-Wmissing-prototypes]
571 | void dce60_opp_program_clamping_and_pixel_encoding(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:681:6: warning: no previous prototype for 'dce60_opp_program_fmt' [-Wmissing-prototypes]
681 | void dce60_opp_program_fmt(
| ^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:31:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:31:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:28:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_timing_generator.c:192:6: warning: no previous prototype for 'dce60_configure_crc' [-Wmissing-prototypes]
192 | bool dce60_configure_crc(struct timing_generator *tg,
| ^~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_timing_generator.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:28:
>> drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:568:43: warning: initialized field overwritten [-Woverride-init]
568 | #define mmCRTC0_DCFE_MEM_LIGHT_SLEEP_CNTL 0x1B7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC0_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:185:3: note: in expansion of macro 'transform_regs'
185 | transform_regs(0),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:568:43: note: (near initialization for 'xfm_regs[0].DCFE_MEM_LIGHT_SLEEP_CNTL')
568 | #define mmCRTC0_DCFE_MEM_LIGHT_SLEEP_CNTL 0x1B7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC0_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:185:3: note: in expansion of macro 'transform_regs'
185 | transform_regs(0),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:645:43: warning: initialized field overwritten [-Woverride-init]
645 | #define mmCRTC1_DCFE_MEM_LIGHT_SLEEP_CNTL 0x1E7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC1_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:186:3: note: in expansion of macro 'transform_regs'
186 | transform_regs(1),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:645:43: note: (near initialization for 'xfm_regs[1].DCFE_MEM_LIGHT_SLEEP_CNTL')
645 | #define mmCRTC1_DCFE_MEM_LIGHT_SLEEP_CNTL 0x1E7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC1_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:186:3: note: in expansion of macro 'transform_regs'
186 | transform_regs(1),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:722:43: warning: initialized field overwritten [-Woverride-init]
722 | #define mmCRTC2_DCFE_MEM_LIGHT_SLEEP_CNTL 0x417F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC2_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:187:3: note: in expansion of macro 'transform_regs'
187 | transform_regs(2),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:722:43: note: (near initialization for 'xfm_regs[2].DCFE_MEM_LIGHT_SLEEP_CNTL')
722 | #define mmCRTC2_DCFE_MEM_LIGHT_SLEEP_CNTL 0x417F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC2_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:187:3: note: in expansion of macro 'transform_regs'
187 | transform_regs(2),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:799:43: warning: initialized field overwritten [-Woverride-init]
799 | #define mmCRTC3_DCFE_MEM_LIGHT_SLEEP_CNTL 0x447F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC3_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:188:3: note: in expansion of macro 'transform_regs'
188 | transform_regs(3),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:799:43: note: (near initialization for 'xfm_regs[3].DCFE_MEM_LIGHT_SLEEP_CNTL')
799 | #define mmCRTC3_DCFE_MEM_LIGHT_SLEEP_CNTL 0x447F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC3_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:188:3: note: in expansion of macro 'transform_regs'
188 | transform_regs(3),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:877:43: warning: initialized field overwritten [-Woverride-init]
877 | #define mmCRTC4_DCFE_MEM_LIGHT_SLEEP_CNTL 0x477F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC4_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:189:3: note: in expansion of macro 'transform_regs'
189 | transform_regs(4),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:877:43: note: (near initialization for 'xfm_regs[4].DCFE_MEM_LIGHT_SLEEP_CNTL')
877 | #define mmCRTC4_DCFE_MEM_LIGHT_SLEEP_CNTL 0x477F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC4_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:189:3: note: in expansion of macro 'transform_regs'
189 | transform_regs(4),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:954:43: warning: initialized field overwritten [-Woverride-init]
954 | #define mmCRTC5_DCFE_MEM_LIGHT_SLEEP_CNTL 0x4A7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC5_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:190:3: note: in expansion of macro 'transform_regs'
190 | transform_regs(5)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:954:43: note: (near initialization for 'xfm_regs[5].DCFE_MEM_LIGHT_SLEEP_CNTL')
954 | #define mmCRTC5_DCFE_MEM_LIGHT_SLEEP_CNTL 0x4A7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in expansion of macro 'mmCRTC5_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:190:3: note: in expansion of macro 'transform_regs'
190 | transform_regs(5)
| ^~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:29:
>> drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:6942:62: warning: initialized field overwritten [-Woverride-init]
6942 | #define FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN__SHIFT 0x00000010
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:96:16: note: in expansion of macro 'FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN__SHIFT'
96 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:222:2: note: in expansion of macro 'OPP_SF'
222 | OPP_SF(FMT_BIT_DEPTH_CONTROL, FMT_TEMPORAL_DITHER_EN, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:293:2: note: in expansion of macro 'OPP_COMMON_MASK_SH_LIST_DCE_60'
293 | OPP_COMMON_MASK_SH_LIST_DCE_60(__SHIFT)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:6942:62: note: (near initialization for 'opp_shift.FMT_TEMPORAL_DITHER_EN')
6942 | #define FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN__SHIFT 0x00000010
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:96:16: note: in expansion of macro 'FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN__SHIFT'
96 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:222:2: note: in expansion of macro 'OPP_SF'
222 | OPP_SF(FMT_BIT_DEPTH_CONTROL, FMT_TEMPORAL_DITHER_EN, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:293:2: note: in expansion of macro 'OPP_COMMON_MASK_SH_LIST_DCE_60'
293 | OPP_COMMON_MASK_SH_LIST_DCE_60(__SHIFT)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:6941:60: warning: initialized field overwritten [-Woverride-init]
6941 | #define FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN_MASK 0x00010000L
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:96:16: note: in expansion of macro 'FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN_MASK'
96 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:222:2: note: in expansion of macro 'OPP_SF'
222 | OPP_SF(FMT_BIT_DEPTH_CONTROL, FMT_TEMPORAL_DITHER_EN, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:297:2: note: in expansion of macro 'OPP_COMMON_MASK_SH_LIST_DCE_60'
297 | OPP_COMMON_MASK_SH_LIST_DCE_60(_MASK)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:6941:60: note: (near initialization for 'opp_mask.FMT_TEMPORAL_DITHER_EN')
6941 | #define FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN_MASK 0x00010000L
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:96:16: note: in expansion of macro 'FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN_MASK'
96 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:222:2: note: in expansion of macro 'OPP_SF'
222 | OPP_SF(FMT_BIT_DEPTH_CONTROL, FMT_TEMPORAL_DITHER_EN, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:297:2: note: in expansion of macro 'OPP_COMMON_MASK_SH_LIST_DCE_60'
297 | OPP_COMMON_MASK_SH_LIST_DCE_60(_MASK)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:29:
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:745:58: warning: initialized field overwritten [-Woverride-init]
745 | #define AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIFT 0x0000001f
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of macro 'AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIFT'
214 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:102:2: note: in expansion of macro 'AUX_SF'
102 | AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:301:2: note: in expansion of macro 'DCE10_AUX_MASK_SH_LIST'
301 | DCE10_AUX_MASK_SH_LIST(__SHIFT)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:745:58: note: (near initialization for 'aux_shift.AUX_SW_AUTOINCREMENT_DISABLE')
745 | #define AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIFT 0x0000001f
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of macro 'AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIFT'
214 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:102:2: note: in expansion of macro 'AUX_SF'
102 | AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:301:2: note: in expansion of macro 'DCE10_AUX_MASK_SH_LIST'
301 | DCE10_AUX_MASK_SH_LIST(__SHIFT)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:744:56: warning: initialized field overwritten [-Woverride-init]
744 | #define AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK 0x80000000L
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of macro 'AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK'
214 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:102:2: note: in expansion of macro 'AUX_SF'
102 | AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:305:2: note: in expansion of macro 'DCE10_AUX_MASK_SH_LIST'
305 | DCE10_AUX_MASK_SH_LIST(_MASK)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:744:56: note: (near initialization for 'aux_mask.AUX_SW_AUTOINCREMENT_DISABLE')
744 | #define AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK 0x80000000L
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of macro 'AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK'
214 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:102:2: note: in expansion of macro 'AUX_SF'
102 | AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:305:2: note: in expansion of macro 'DCE10_AUX_MASK_SH_LIST'
305 | DCE10_AUX_MASK_SH_LIST(_MASK)
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:529:17: warning: no previous prototype for 'dce60_aux_engine_create' [-Wmissing-prototypes]
529 | struct dce_aux *dce60_aux_engine_create(
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:567:20: warning: no previous prototype for 'dce60_i2c_hw_create' [-Wmissing-prototypes]
567 | struct dce_i2c_hw *dce60_i2c_hw_create(
| ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:583:20: warning: no previous prototype for 'dce60_i2c_sw_create' [-Wmissing-prototypes]
583 | struct dce_i2c_sw *dce60_i2c_sw_create(
| ^~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:29:
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7270:45: warning: initialized field overwritten [-Woverride-init]
7270 | #define GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT 0x00000002
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion of macro 'GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT'
155 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion of macro 'SFB'
159 | SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion of macro 'MI_GFX6_TILE_MASK_SH_LIST'
265 | MI_GFX6_TILE_MASK_SH_LIST(mask_sh, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:662:3: note: in expansion of macro 'MI_DCE6_MASK_SH_LIST'
662 | MI_DCE6_MASK_SH_LIST(__SHIFT),
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7270:45: note: (near initialization for 'mi_shifts.GRPH_NUM_BANKS')
7270 | #define GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT 0x00000002
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion of macro 'GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT'
155 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion of macro 'SFB'
159 | SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion of macro 'MI_GFX6_TILE_MASK_SH_LIST'
265 | MI_GFX6_TILE_MASK_SH_LIST(mask_sh, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:662:3: note: in expansion of macro 'MI_DCE6_MASK_SH_LIST'
662 | MI_DCE6_MASK_SH_LIST(__SHIFT),
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7269:43: warning: initialized field overwritten [-Woverride-init]
7269 | #define GRPH_CONTROL__GRPH_NUM_BANKS_MASK 0x0000000cL
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion of macro 'GRPH_CONTROL__GRPH_NUM_BANKS_MASK'
155 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion of macro 'SFB'
159 | SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion of macro 'MI_GFX6_TILE_MASK_SH_LIST'
265 | MI_GFX6_TILE_MASK_SH_LIST(mask_sh, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:667:3: note: in expansion of macro 'MI_DCE6_MASK_SH_LIST'
667 | MI_DCE6_MASK_SH_LIST(_MASK),
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7269:43: note: (near initialization for 'mi_masks.GRPH_NUM_BANKS')
7269 | #define GRPH_CONTROL__GRPH_NUM_BANKS_MASK 0x0000000cL
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion of macro 'GRPH_CONTROL__GRPH_NUM_BANKS_MASK'
155 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion of macro 'SFB'
159 | SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion of macro 'MI_GFX6_TILE_MASK_SH_LIST'
265 | MI_GFX6_TILE_MASK_SH_LIST(mask_sh, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:667:3: note: in expansion of macro 'MI_DCE6_MASK_SH_LIST'
667 | MI_DCE6_MASK_SH_LIST(_MASK),
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:717:22: warning: no previous prototype for 'dce60_link_encoder_create' [-Wmissing-prototypes]
717 | struct link_encoder *dce60_link_encoder_create(
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:756:22: warning: no previous prototype for 'dce60_clock_source_create' [-Wmissing-prototypes]
756 | struct clock_source *dce60_clock_source_create(
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:780:6: warning: no previous prototype for 'dce60_clock_source_destroy' [-Wmissing-prototypes]
780 | void dce60_clock_source_destroy(struct clock_source **clk_src)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:870:6: warning: no previous prototype for 'dce60_validate_bandwidth' [-Wmissing-prototypes]
870 | bool dce60_validate_bandwidth(
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:915:16: warning: no previous prototype for 'dce60_validate_global' [-Wmissing-prototypes]
915 | enum dc_status dce60_validate_global(
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:1122:23: warning: no previous prototype for 'dce60_create_resource_pool' [-Wmissing-prototypes]
1122 | struct resource_pool *dce60_create_resource_pool(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:1319:23: warning: no previous prototype for 'dce61_create_resource_pool' [-Wmissing-prototypes]
1319 | struct resource_pool *dce61_create_resource_pool(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:1512:23: warning: no previous prototype for 'dce64_create_resource_pool' [-Wmissing-prototypes]
1512 | struct resource_pool *dce64_create_resource_pool(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:57:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: 'abm_gain_stepsize' defined but not used [-Wunused-const-variable=]
320 | static const uint32_t abm_gain_stepsize = 0x0060;
| ^~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:36:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:36:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:31:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 5963cdde1acf6b81c62bf6d3bdae723139bf8138
vim +/dce60_get_dp_ref_freq_khz +83 drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c
3ecb3b794e2c17 Mauro Rossi 2020-07-11 82
3ecb3b794e2c17 Mauro Rossi 2020-07-11 @83 int dce60_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
3ecb3b794e2c17 Mauro Rossi 2020-07-11 84 {
3ecb3b794e2c17 Mauro Rossi 2020-07-11 85 struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
3ecb3b794e2c17 Mauro Rossi 2020-07-11 86 int dprefclk_wdivider;
3ecb3b794e2c17 Mauro Rossi 2020-07-11 87 int dp_ref_clk_khz;
3ecb3b794e2c17 Mauro Rossi 2020-07-11 88 int target_div;
3ecb3b794e2c17 Mauro Rossi 2020-07-11 89
3ecb3b794e2c17 Mauro Rossi 2020-07-11 90 /* DCE6 has no DPREFCLK_CNTL to read DP Reference Clock source */
3ecb3b794e2c17 Mauro Rossi 2020-07-11 91
3ecb3b794e2c17 Mauro Rossi 2020-07-11 92 /* Read the mmDENTIST_DISPCLK_CNTL to get the currently
3ecb3b794e2c17 Mauro Rossi 2020-07-11 93 * programmed DID DENTIST_DPREFCLK_WDIVIDER*/
3ecb3b794e2c17 Mauro Rossi 2020-07-11 94 REG_GET(DENTIST_DISPCLK_CNTL, DENTIST_DPREFCLK_WDIVIDER, &dprefclk_wdivider);
3ecb3b794e2c17 Mauro Rossi 2020-07-11 95
3ecb3b794e2c17 Mauro Rossi 2020-07-11 96 /* Convert DENTIST_DPREFCLK_WDIVIDERto actual divider*/
3ecb3b794e2c17 Mauro Rossi 2020-07-11 97 target_div = dentist_get_divider_from_did(dprefclk_wdivider);
3ecb3b794e2c17 Mauro Rossi 2020-07-11 98
3ecb3b794e2c17 Mauro Rossi 2020-07-11 99 /* Calculate the current DFS clock, in kHz.*/
3ecb3b794e2c17 Mauro Rossi 2020-07-11 100 dp_ref_clk_khz = (DENTIST_DIVIDER_RANGE_SCALE_FACTOR
3ecb3b794e2c17 Mauro Rossi 2020-07-11 101 * clk_mgr->base.dentist_vco_freq_khz) / target_div;
3ecb3b794e2c17 Mauro Rossi 2020-07-11 102
3ecb3b794e2c17 Mauro Rossi 2020-07-11 103 return dce_adjust_dp_ref_freq_for_ss(clk_mgr, dp_ref_clk_khz);
3ecb3b794e2c17 Mauro Rossi 2020-07-11 104 }
3ecb3b794e2c17 Mauro Rossi 2020-07-11 105
:::::: The code at line 83 was first introduced by commit
:::::: 3ecb3b794e2c1793443b72a968cb09d829c01a10 drm/amd/display: dc/clk_mgr: add support for SI parts (v2)
:::::: TO: Mauro Rossi <issor.oruam(a)gmail.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[hch-misc:arm-dma-direct-cleanups 28/28] arch/arm/mm/dma-mapping.c:196:9: error: implicit declaration of function 'dma_to_pfn'; did you mean
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git arm-dma-direct-cleanups
head: 4b440e9e6735af2889653a5384243f2d261293cb
commit: 4b440e9e6735af2889653a5384243f2d261293cb [28/28] ARM/dma-mapping: remove the arm specific phys to dma translation helpers
config: arm-spear6xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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 checkout 4b440e9e6735af2889653a5384243f2d261293cb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/arm/mm/dma-mapping.c: In function 'arm_dma_supported':
>> arch/arm/mm/dma-mapping.c:196:9: error: implicit declaration of function 'dma_to_pfn'; did you mean 'dma_to_phys'? [-Werror=implicit-function-declaration]
196 | return dma_to_pfn(dev, mask) >= max_dma_pfn;
| ^~~~~~~~~~
| dma_to_phys
arch/arm/mm/dma-mapping.c: At top level:
arch/arm/mm/dma-mapping.c:392:13: warning: no previous prototype for 'dma_contiguous_early_fixup' [-Wmissing-prototypes]
392 | void __init dma_contiguous_early_fixup(phys_addr_t base, unsigned long size)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc arm-dma-direct-cleanups
git checkout 4b440e9e6735af2889653a5384243f2d261293cb
vim +196 arch/arm/mm/dma-mapping.c
2dc6a016bbedf18 Marek Szyprowski 2012-02-10 181
fd27a526bb381f4 Christoph Hellwig 2020-02-17 182 /*
fd27a526bb381f4 Christoph Hellwig 2020-02-17 183 * Return whether the given device DMA address mask can be supported
fd27a526bb381f4 Christoph Hellwig 2020-02-17 184 * properly. For example, if your device can only drive the low 24-bits
fd27a526bb381f4 Christoph Hellwig 2020-02-17 185 * during bus mastering, then you would pass 0x00ffffff as the mask
fd27a526bb381f4 Christoph Hellwig 2020-02-17 186 * to this function.
fd27a526bb381f4 Christoph Hellwig 2020-02-17 187 */
fd27a526bb381f4 Christoph Hellwig 2020-02-17 188 static int arm_dma_supported(struct device *dev, u64 mask)
fd27a526bb381f4 Christoph Hellwig 2020-02-17 189 {
fd27a526bb381f4 Christoph Hellwig 2020-02-17 190 unsigned long max_dma_pfn = min(max_pfn - 1, arm_dma_pfn_limit);
fd27a526bb381f4 Christoph Hellwig 2020-02-17 191
fd27a526bb381f4 Christoph Hellwig 2020-02-17 192 /*
fd27a526bb381f4 Christoph Hellwig 2020-02-17 193 * Translate the device's DMA mask to a PFN limit. This
fd27a526bb381f4 Christoph Hellwig 2020-02-17 194 * PFN number includes the page which we can DMA to.
fd27a526bb381f4 Christoph Hellwig 2020-02-17 195 */
fd27a526bb381f4 Christoph Hellwig 2020-02-17 @196 return dma_to_pfn(dev, mask) >= max_dma_pfn;
fd27a526bb381f4 Christoph Hellwig 2020-02-17 197 }
fd27a526bb381f4 Christoph Hellwig 2020-02-17 198
:::::: The code at line 196 was first introduced by commit
:::::: fd27a526bb381f43dded6db30b3b016468ab0e6c ARM/dma-mapping: merge __dma_supported into arm_dma_supported
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Christoph Hellwig <hch(a)lst.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years