tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next head: 9bf083e6426b8df943f0da4a7ef8d8f407a26e9f commit: bf05726f078c37252b2052a74086e3b0eaf634de [473/607] drm/amd/powerplay: implement notify_memory_pool_location function for smu11 config: mips-allmodconfig (attached as .config) compiler: mips-linux-gnu-gcc (Debian 8.2.0-11) 8.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout bf05726f078c37252b2052a74086e3b0eaf634de # save the attached .config to linux build tree GCC_VERSION=8.2.0 make.cross ARCH=mips
All warnings (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c: In function 'smu_v11_0_notify_memory_pool_location': >> drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c:453:12: warning: cast >> from pointer to integer of different size [-Wpointer-to-int-cast] address = (uint64_t)memory_pool->cpu_addr; ^ vim +453 drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c 441 442 static int smu_v11_0_notify_memory_pool_location(struct smu_context *smu) 443 { 444 struct smu_table_context *smu_table = &smu->smu_table; 445 struct smu_table *memory_pool = &smu_table->memory_pool; 446 int ret = 0; 447 uint64_t address; 448 uint32_t address_low, address_high; 449 450 if (memory_pool->size == 0 || memory_pool->cpu_addr == NULL) 451 return ret; 452 > 453 address = (uint64_t)memory_pool->cpu_addr; 454 address_high = (uint32_t)upper_32_bits(address); 455 address_low = (uint32_t)lower_32_bits(address); 456 457 ret = smu_send_smc_msg_with_param(smu, 458 PPSMC_MSG_SetSystemVirtualDramAddrHigh, 459 address_high); 460 if (ret) 461 return ret; 462 ret = smu_send_smc_msg_with_param(smu, 463 PPSMC_MSG_SetSystemVirtualDramAddrLow, 464 address_low); 465 if (ret) 466 return ret; 467 468 address = memory_pool->mc_address; 469 address_high = (uint32_t)upper_32_bits(address); 470 address_low = (uint32_t)lower_32_bits(address); 471 472 ret = smu_send_smc_msg_with_param(smu, PPSMC_MSG_DramLogSetDramAddrHigh, 473 address_high); 474 if (ret) 475 return ret; 476 ret = smu_send_smc_msg_with_param(smu, PPSMC_MSG_DramLogSetDramAddrLow, 477 address_low); 478 if (ret) 479 return ret; 480 ret = smu_send_smc_msg_with_param(smu, PPSMC_MSG_DramLogSetDramSize, 481 (uint32_t)memory_pool->size); 482 if (ret) 483 return ret; 484 485 return ret; 486 } 487 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip
_______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel