All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-stable:pending-6.5 74/166] drivers/gpu/drm/amd/amdgpu/../display/dc/dsc/dc_dsc.c:55:17: warning: 'apply_128b_132b_stream_overhead' defined but not used
@ 2023-09-20  2:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-20  2:59 UTC (permalink / raw)
  To: Sasha Levin; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-6.5
head:   fd1a1970676435366dd0f58cb455292d92d7ecce
commit: 26681b7d8fc3e5ea6e65a2999e1589f59a2dad1d [74/166] drm/amd/display: Add stream overhead in BW calculations for 128b/132b
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230920/202309201033.obS01oWG-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230920/202309201033.obS01oWG-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309201033.obS01oWG-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/dsc/dc_dsc.c:55:17: warning: 'apply_128b_132b_stream_overhead' defined but not used [-Wunused-function]
      55 | static uint32_t apply_128b_132b_stream_overhead(
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/apply_128b_132b_stream_overhead +55 drivers/gpu/drm/amd/amdgpu/../display/dc/dsc/dc_dsc.c

    51	
    52	/* Need to account for padding due to pixel-to-symbol packing
    53	 * for uncompressed 128b/132b streams.
    54	 */
  > 55	static uint32_t apply_128b_132b_stream_overhead(
    56		const struct dc_crtc_timing *timing, const uint32_t kbps)
    57	{
    58		uint32_t total_kbps = kbps;
    59	
    60		if (disable_128b_132b_stream_overhead)
    61			return kbps;
    62	
    63		if (!timing->flags.DSC) {
    64			struct fixed31_32 bpp;
    65			struct fixed31_32 overhead_factor;
    66	
    67			bpp = dc_fixpt_from_int(kbps);
    68			bpp = dc_fixpt_div_int(bpp, timing->pix_clk_100hz / 10);
    69	
    70			/* Symbols_per_HActive = HActive * bpp / (4 lanes * 32-bit symbol size)
    71			 * Overhead_factor = ceil(Symbols_per_HActive) / Symbols_per_HActive
    72			 */
    73			overhead_factor = dc_fixpt_from_int(timing->h_addressable);
    74			overhead_factor = dc_fixpt_mul(overhead_factor, bpp);
    75			overhead_factor = dc_fixpt_div_int(overhead_factor, 128);
    76			overhead_factor = dc_fixpt_div(
    77				dc_fixpt_from_int(dc_fixpt_ceil(overhead_factor)),
    78				overhead_factor);
    79	
    80			total_kbps = dc_fixpt_ceil(
    81				dc_fixpt_mul_int(overhead_factor, total_kbps));
    82		}
    83	
    84		return total_kbps;
    85	}
    86	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-20  3:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-20  2:59 [sashal-stable:pending-6.5 74/166] drivers/gpu/drm/amd/amdgpu/../display/dc/dsc/dc_dsc.c:55:17: warning: 'apply_128b_132b_stream_overhead' defined but not used kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.