[radeon-alex:polaris-test 19/19] drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/polaris10_hwmgr.c:1798:4: warning: this decimal constant is unsigned only in ISO C90

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git polaris-test
head:   0812a945fbb814e7946fbe6ddcc81d054c8b6c91
commit: 0812a945fbb814e7946fbe6ddcc81d054c8b6c91 [19/19] drm/amd/powerplay: Update CKS on/ CKS off voltage offset calculation
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 0812a945fbb814e7946fbe6ddcc81d054c8b6c91
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/polaris10_hwmgr.c: In function 'polaris10_populate_clock_stretcher_data_table':
>> drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/polaris10_hwmgr.c:1798:4: warning: this decimal constant is unsigned only in ISO C90
       volt_without_cks = (uint32_t)((2753594000 + (sclk_table->entries[i].clk/100) * 136418 -(ro - 70) * 1000000) / \
       ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/polaris10_hwmgr.c:1803:4: warning: this decimal constant is unsigned only in ISO C90
       volt_without_cks = (uint32_t)((2416794800 + (sclk_table->entries[i].clk/100) * 1476925/10 -(ro - 50) * 1000000) / \
       ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/polaris10_hwmgr.c:1805:4: warning: this decimal constant is unsigned only in ISO C90
       volt_with_cks = (uint32_t)((2999656000 + sclk_table->entries[i].clk * 392803/100 - (ro - 44) * 1000000) / \
       ^~~~~~~~~~~~~

vim +1798 drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/polaris10_hwmgr.c

  1782			min = 1000;
  1783			max = 2300;
  1784		} else {
  1785			min = 1100;
  1786			max = 2100;
  1787		}
  1788	
  1789		ro = efuse * (max -min)/255 + min;
  1790	
  1791		/* Populate Sclk_CKS_masterEn0_7 and Sclk_voltageOffset
  1792		 * there is a little difference in calculating
  1793		 * volt_with_cks with windows */
  1794		for (i = 0; i < sclk_table->count; i++) {
  1795			data->smc_state_table.Sclk_CKS_masterEn0_7 |=
  1796					sclk_table->entries[i].cks_enable << i;
  1797			if (hwmgr->chip_id == CHIP_POLARIS10) {
> 1798				volt_without_cks = (uint32_t)((2753594000 + (sclk_table->entries[i].clk/100) * 136418 -(ro - 70) * 1000000) / \
  1799							(2424180 - (sclk_table->entries[i].clk/100) * 1132925/1000));
  1800				volt_with_cks = (uint32_t)((279720200 + sclk_table->entries[i].clk * 3232 - (ro - 65) * 100000000) / \
  1801						(252248000 - sclk_table->entries[i].clk/100 * 115764));
  1802			} else {
  1803				volt_without_cks = (uint32_t)((2416794800 + (sclk_table->entries[i].clk/100) * 1476925/10 -(ro - 50) * 1000000) / \
  1804							(2625416 - (sclk_table->entries[i].clk/100) * 12586807/10000));
  1805				volt_with_cks = (uint32_t)((2999656000 + sclk_table->entries[i].clk * 392803/100 - (ro - 44) * 1000000) / \
  1806						(3422454 - sclk_table->entries[i].clk/100 * 18886376/10000));

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux