tree: git://people.freedesktop.org/~agd5f/linux.git drm-next head: f59073f6df9b07d94917221486cf5929efa6b315 commit: 00e86cf4bb21d5904053da0c2327dbcfa21f22ca [317/414] drm/amd/powerplay: move powerplay table operation out of smu_v11_0.c config: i386-randconfig-s001-20200617 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.2-rc1-6-g78f577f8-dirty git checkout 00e86cf4bb21d5904053da0c2327dbcfa21f22ca # save the attached .config to linux build tree make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c:2480:28: sparse: sparse: cast to restricted __le32 -- drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1495:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MinClock @@ got restricted __le16 [usertype] @@ drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1495:52: sparse: expected unsigned short [usertype] MinClock drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1495:52: sparse: got restricted __le16 [usertype] drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1499:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MaxClock @@ got restricted __le16 [usertype] @@ drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1499:52: sparse: expected unsigned short [usertype] MaxClock drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1499:52: sparse: got restricted __le16 [usertype] drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1503:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MinUclk @@ got restricted __le16 [usertype] @@ drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1503:51: sparse: expected unsigned short [usertype] MinUclk drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1503:51: sparse: got restricted __le16 [usertype] drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1507:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MaxUclk @@ got restricted __le16 [usertype] @@ drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1507:51: sparse: expected unsigned short [usertype] MaxUclk drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1507:51: sparse: got restricted __le16 [usertype] drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1516:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MinClock @@ got restricted __le16 [usertype] @@ drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1516:52: sparse: expected unsigned short [usertype] MinClock drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1516:52: sparse: got restricted __le16 [usertype] drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1520:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MaxClock @@ got restricted __le16 [usertype] @@ drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1520:52: sparse: expected unsigned short [usertype] MaxClock drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1520:52: sparse: got restricted __le16 [usertype] drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1524:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MinUclk @@ got restricted __le16 [usertype] @@ drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1524:51: sparse: expected unsigned short [usertype] MinUclk drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1524:51: sparse: got restricted __le16 [usertype] drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1528:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MaxUclk @@ got restricted __le16 [usertype] @@ drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1528:51: sparse: expected unsigned short [usertype] MaxUclk drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1528:51: sparse: got restricted __le16 [usertype] >> drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:2323:28: sparse: sparse: cast to restricted __le32 vim +2480 drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c 2463 2464 static uint32_t atcturus_get_max_power_limit(struct smu_context *smu) { 2465 uint32_t od_limit, max_power_limit; 2466 struct smu_11_0_powerplay_table *powerplay_table = NULL; 2467 struct smu_table_context *table_context = &smu->smu_table; 2468 powerplay_table = table_context->power_play_table; 2469 2470 max_power_limit = smu_get_pptable_power_limit(smu); 2471 2472 if (!max_power_limit) { 2473 // If we couldn't get the table limit, fall back on first-read value 2474 if (!smu->default_power_limit) 2475 smu->default_power_limit = smu->power_limit; 2476 max_power_limit = smu->default_power_limit; 2477 } 2478 2479 if (smu->od_enabled) { > 2480 od_limit = le32_to_cpu(powerplay_table->overdrive_table.max[SMU_11_0_ODSETTING_POWERPERCENTAGE]); 2481 2482 pr_debug("ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_limit, smu->default_power_limit); 2483 2484 max_power_limit *= (100 + od_limit); 2485 max_power_limit /= 100; 2486 } 2487 2488 return max_power_limit; 2489 } 2490 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel