public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c:88:14: warning: variable 'is_in_uma' set but not used
@ 2022-04-22  8:56 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-04-22  8:56 UTC (permalink / raw)
  To: Alex Deucher; +Cc: kbuild-all, linux-kernel, Zhan Liu

Hi Alex,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d569e86915b7f2f9795588591c8d5ea0b66481cb
commit: 519607a2f7798decb9c891a4f706aaf780f5a677 drm/amdgpu/display: fold DRM_AMD_DC_DCN201 into DRM_AMD_DC_DCN
date:   7 months ago
config: powerpc64-randconfig-r033-20220420 (https://download.01.org/0day-ci/archive/20220422/202204221604.l3cM1i38-lkp@intel.com/config)
compiler: powerpc64le-linux-gcc (GCC) 11.2.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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=519607a2f7798decb9c891a4f706aaf780f5a677
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 519607a2f7798decb9c891a4f706aaf780f5a677
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/gpu/drm/

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c: In function 'gpu_addr_to_uma':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c:88:14: warning: variable 'is_in_uma' set but not used [-Wunused-but-set-variable]
      88 |         bool is_in_uma;
         |              ^~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c: In function 'dcn201_pipe_control_lock':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c:544:22: warning: variable 'hubp' set but not used [-Wunused-but-set-variable]
     544 |         struct hubp *hubp = NULL;
         |                      ^~~~
--
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_dpp.c: In function 'dpp201_get_optimal_number_of_taps':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_dpp.c:185:18: warning: variable 'pixel_width' set but not used [-Wunused-but-set-variable]
     185 |         uint32_t pixel_width;
         |                  ^~~~~~~~~~~


vim +/is_in_uma +88 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c

3f68c01be9a222 Zhan Liu 2021-09-25   84  
3f68c01be9a222 Zhan Liu 2021-09-25   85  static void gpu_addr_to_uma(struct dce_hwseq *hwseq,
3f68c01be9a222 Zhan Liu 2021-09-25   86  		PHYSICAL_ADDRESS_LOC *addr)
3f68c01be9a222 Zhan Liu 2021-09-25   87  {
3f68c01be9a222 Zhan Liu 2021-09-25  @88  	bool is_in_uma;
3f68c01be9a222 Zhan Liu 2021-09-25   89  
3f68c01be9a222 Zhan Liu 2021-09-25   90  	if (hwseq->fb_base.quad_part <= addr->quad_part &&
3f68c01be9a222 Zhan Liu 2021-09-25   91  			addr->quad_part < hwseq->fb_top.quad_part) {
3f68c01be9a222 Zhan Liu 2021-09-25   92  		addr->quad_part -= hwseq->fb_base.quad_part;
3f68c01be9a222 Zhan Liu 2021-09-25   93  		addr->quad_part += hwseq->fb_offset.quad_part;
3f68c01be9a222 Zhan Liu 2021-09-25   94  		is_in_uma = true;
3f68c01be9a222 Zhan Liu 2021-09-25   95  	} else if (hwseq->fb_offset.quad_part <= addr->quad_part &&
3f68c01be9a222 Zhan Liu 2021-09-25   96  			addr->quad_part <= hwseq->uma_top.quad_part) {
3f68c01be9a222 Zhan Liu 2021-09-25   97  		is_in_uma = true;
3f68c01be9a222 Zhan Liu 2021-09-25   98  	} else if (addr->quad_part == 0) {
3f68c01be9a222 Zhan Liu 2021-09-25   99  		is_in_uma = false;
3f68c01be9a222 Zhan Liu 2021-09-25  100  	} else {
3f68c01be9a222 Zhan Liu 2021-09-25  101  		is_in_uma = false;
3f68c01be9a222 Zhan Liu 2021-09-25  102  	}
3f68c01be9a222 Zhan Liu 2021-09-25  103  }
3f68c01be9a222 Zhan Liu 2021-09-25  104  

:::::: The code at line 88 was first introduced by commit
:::::: 3f68c01be9a2227de1e190317fe34a6fb835a094 drm/amd/display: add cyan_skillfish display support

:::::: TO: Zhan Liu <zhan.liu@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c:88:14: warning: variable 'is_in_uma' set but not used
@ 2022-09-05 23:06 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-09-05 23:06 UTC (permalink / raw)
  To: Zhan Liu; +Cc: kbuild-all, linux-kernel, Alex Deucher, Charlene Liu

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   53e99dcff61e1523ec1c3628b2d564ba15d32eb7
commit: 3f68c01be9a2227de1e190317fe34a6fb835a094 drm/amd/display: add cyan_skillfish display support
date:   11 months ago
config: i386-buildonly-randconfig-r004-20220905 (https://download.01.org/0day-ci/archive/20220906/202209060730.VeXAC3Z7-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3f68c01be9a2227de1e190317fe34a6fb835a094
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 3f68c01be9a2227de1e190317fe34a6fb835a094
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c: In function 'gpu_addr_to_uma':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c:88:14: warning: variable 'is_in_uma' set but not used [-Wunused-but-set-variable]
      88 |         bool is_in_uma;
         |              ^~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c: In function 'dcn201_pipe_control_lock':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c:544:22: warning: variable 'hubp' set but not used [-Wunused-but-set-variable]
     544 |         struct hubp *hubp = NULL;
         |                      ^~~~
--
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_dpp.c: In function 'dpp201_get_optimal_number_of_taps':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_dpp.c:185:18: warning: variable 'pixel_width' set but not used [-Wunused-but-set-variable]
     185 |         uint32_t pixel_width;
         |                  ^~~~~~~~~~~


vim +/is_in_uma +88 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c

    84	
    85	static void gpu_addr_to_uma(struct dce_hwseq *hwseq,
    86			PHYSICAL_ADDRESS_LOC *addr)
    87	{
  > 88		bool is_in_uma;
    89	
    90		if (hwseq->fb_base.quad_part <= addr->quad_part &&
    91				addr->quad_part < hwseq->fb_top.quad_part) {
    92			addr->quad_part -= hwseq->fb_base.quad_part;
    93			addr->quad_part += hwseq->fb_offset.quad_part;
    94			is_in_uma = true;
    95		} else if (hwseq->fb_offset.quad_part <= addr->quad_part &&
    96				addr->quad_part <= hwseq->uma_top.quad_part) {
    97			is_in_uma = true;
    98		} else if (addr->quad_part == 0) {
    99			is_in_uma = false;
   100		} else {
   101			is_in_uma = false;
   102		}
   103	}
   104	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-05 23:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-05 23:06 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c:88:14: warning: variable 'is_in_uma' set but not used kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-04-22  8:56 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox