[radeon-alex:amd-staging-drm-next-vangogh 35/47] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:89:2: warning: initializer overrides prior initialization of this subobject

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

 



Hi Huang,

First bad commit (maybe != root cause):

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next-vangogh
head:   6067a749d66ef3815908c86ee0b08733e391955f
commit: a7479b81da768e2a9022f62c03b51020d59eae6e [35/47] drm/amd/powerplay: add vangogh ppt into swSMU
config: arm-randconfig-r021-20200925 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c32e69b2ce7abfb151a87ba363ac9e25abf7d417)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
        git fetch --no-tags radeon-alex amd-staging-drm-next-vangogh
        git checkout a7479b81da768e2a9022f62c03b51020d59eae6e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:89:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           MSG_MAP(AllowGfxOff,                    PPSMC_MSG_AllowGfxOff,                  1),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: expanded from macro 'MSG_MAP'
           [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:64:2: note: previous initialization is here
           MSG_MAP(AllowGfxOff,                    PPSMC_MSG_EnableGfxOff,                 1),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: expanded from macro 'MSG_MAP'
           [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:90:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           MSG_MAP(DisallowGfxOff,                 PPSMC_MSG_DisallowGfxOff,               1),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: expanded from macro 'MSG_MAP'
           [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:65:2: note: previous initialization is here
           MSG_MAP(DisallowGfxOff,                 PPSMC_MSG_DisableGfxOff,                1),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: expanded from macro 'MSG_MAP'
           [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings generated.

vim +89 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c

7bbe7263c3598a3 Xiaojian Du 2020-08-27   44  
7bbe7263c3598a3 Xiaojian Du 2020-08-27   45  #define FEATURE_MASK(feature) (1ULL << feature)
7bbe7263c3598a3 Xiaojian Du 2020-08-27   46  #define SMC_DPM_FEATURE ( \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   47  	FEATURE_MASK(FEATURE_CCLK_DPM_BIT) | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   48  	FEATURE_MASK(FEATURE_VCN_DPM_BIT)	 | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   49  	FEATURE_MASK(FEATURE_FCLK_DPM_BIT)	 | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   50  	FEATURE_MASK(FEATURE_SOCCLK_DPM_BIT)	 | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   51  	FEATURE_MASK(FEATURE_MP0CLK_DPM_BIT)	 | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   52  	FEATURE_MASK(FEATURE_LCLK_DPM_BIT)	 | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   53  	FEATURE_MASK(FEATURE_SHUBCLK_DPM_BIT)	 | \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   54  	FEATURE_MASK(FEATURE_DCFCLK_DPM_BIT)| \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   55  	FEATURE_MASK(FEATURE_GFX_DPM_BIT)| \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   56  	FEATURE_MASK(FEATURE_ISP_DPM_BIT)| \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   57  	FEATURE_MASK(FEATURE_A55_DPM_BIT)| \
7bbe7263c3598a3 Xiaojian Du 2020-08-27   58  	FEATURE_MASK(FEATURE_CVIP_DSP_DPM_BIT))
7bbe7263c3598a3 Xiaojian Du 2020-08-27   59  
7bbe7263c3598a3 Xiaojian Du 2020-08-27   60  static struct cmn2asic_msg_mapping vangogh_message_map[SMU_MSG_MAX_COUNT] = {
7bbe7263c3598a3 Xiaojian Du 2020-08-27   61  	MSG_MAP(TestMessage,                    PPSMC_MSG_TestMessage,			1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   62  	MSG_MAP(GetSmuVersion,                  PPSMC_MSG_GetSmuVersion,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   63  	MSG_MAP(GetDriverIfVersion,             PPSMC_MSG_GetDriverIfVersion,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   64  	MSG_MAP(AllowGfxOff,                    PPSMC_MSG_EnableGfxOff,			1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   65  	MSG_MAP(DisallowGfxOff,                 PPSMC_MSG_DisableGfxOff,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   66  	MSG_MAP(PowerDownIspByTile,             PPSMC_MSG_PowerDownIspByTile,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   67  	MSG_MAP(PowerUpIspByTile,               PPSMC_MSG_PowerUpIspByTile,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   68  	MSG_MAP(PowerDownVcn,                   PPSMC_MSG_PowerDownVcn,			1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   69  	MSG_MAP(PowerUpVcn,                     PPSMC_MSG_PowerUpVcn,			1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   70  	MSG_MAP(Spare,                          PPSMC_MSG_spare,			1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   71  	MSG_MAP(SetHardMinVcn,                  PPSMC_MSG_SetHardMinVcn,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   72  	MSG_MAP(SetMinVideoGfxclkFreq,          PPSMC_MSG_SetMinVideoGfxclkFreq,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   73  	MSG_MAP(ActiveProcessNotify,            PPSMC_MSG_ActiveProcessNotify,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   74  	MSG_MAP(SetHardMinIspiclkByFreq,        PPSMC_MSG_SetHardMinIspiclkByFreq,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   75  	MSG_MAP(SetHardMinIspxclkByFreq,        PPSMC_MSG_SetHardMinIspxclkByFreq,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   76  	MSG_MAP(SetDriverDramAddrHigh,          PPSMC_MSG_SetDriverDramAddrHigh,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   77  	MSG_MAP(SetDriverDramAddrLow,           PPSMC_MSG_SetDriverDramAddrLow,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   78  	MSG_MAP(TransferTableSmu2Dram,          PPSMC_MSG_TransferTableSmu2Dram,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   79  	MSG_MAP(TransferTableDram2Smu,          PPSMC_MSG_TransferTableDram2Smu,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   80  	MSG_MAP(GfxDeviceDriverReset,           PPSMC_MSG_GfxDeviceDriverReset,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   81  	MSG_MAP(GetEnabledSmuFeatures,          PPSMC_MSG_GetEnabledSmuFeatures,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   82  	MSG_MAP(Spare1,                         PPSMC_MSG_spare1,			1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   83  	MSG_MAP(SetHardMinSocclkByFreq,         PPSMC_MSG_SetHardMinSocclkByFreq,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   84  	MSG_MAP(SetMinVideoFclkFreq,            PPSMC_MSG_SetMinVideoFclkFreq,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   85  	MSG_MAP(SetSoftMinVcn,                  PPSMC_MSG_SetSoftMinVcn,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   86  	MSG_MAP(EnablePostCode,                 PPSMC_MSG_EnablePostCode,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   87  	MSG_MAP(GetGfxclkFrequency,             PPSMC_MSG_GetGfxclkFrequency,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   88  	MSG_MAP(GetFclkFrequency,               PPSMC_MSG_GetFclkFrequency,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27  @89  	MSG_MAP(AllowGfxOff,                    PPSMC_MSG_AllowGfxOff,			1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   90  	MSG_MAP(DisallowGfxOff,                 PPSMC_MSG_DisallowGfxOff,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   91  	MSG_MAP(SetSoftMaxGfxClk,               PPSMC_MSG_SetSoftMaxGfxClk,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   92  	MSG_MAP(SetHardMinGfxClk,               PPSMC_MSG_SetHardMinGfxClk,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   93  	MSG_MAP(SetSoftMaxSocclkByFreq,         PPSMC_MSG_SetSoftMaxSocclkByFreq,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   94  	MSG_MAP(SetSoftMaxFclkByFreq,           PPSMC_MSG_SetSoftMaxFclkByFreq,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   95  	MSG_MAP(SetSoftMaxVcn,                  PPSMC_MSG_SetSoftMaxVcn,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   96  	MSG_MAP(GpuChangeState,                 PPSMC_MSG_GpuChangeState,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   97  	MSG_MAP(SetPowerLimitPercentage,        PPSMC_MSG_SetPowerLimitPercentage,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   98  	MSG_MAP(PowerDownJpeg,                  PPSMC_MSG_PowerDownJpeg,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27   99  	MSG_MAP(PowerUpJpeg,                    PPSMC_MSG_PowerUpJpeg,			1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27  100  	MSG_MAP(SetHardMinFclkByFreq,           PPSMC_MSG_SetHardMinFclkByFreq,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27  101  	MSG_MAP(SetSoftMinSocclkByFreq,         PPSMC_MSG_SetSoftMinSocclkByFreq,	1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27  102  	MSG_MAP(PowerUpCvip,                    PPSMC_MSG_PowerUpCvip,			1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27  103  	MSG_MAP(PowerDownCvip,                  PPSMC_MSG_PowerDownCvip,		1),
7bbe7263c3598a3 Xiaojian Du 2020-08-27  104  };
7bbe7263c3598a3 Xiaojian Du 2020-08-27  105  

:::::: The code at line 89 was first introduced by commit
:::::: 7bbe7263c3598a3b2d4c2bfc4a5af71212bfe4fd drm/amdgpu/powerplay: add smu initialize funcitons for vangogh (v2)

:::::: TO: Xiaojian Du <xiaojian.du@xxxxxxx>
:::::: CC: Alex Deucher <alexander.deucher@xxxxxxx>

---
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

[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