tree:
https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: c37eed39d0ba85a057baa9fafbf9f7cc1f888c1e
commit: a03f6c0e26b2882fe3eeb092111bdccc113d76ce [470/518] drm/amd/display: Add changes
for dsc bpp in 16ths and unify bw calculations
config: x86_64-randconfig-r015-20210318 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add agd5f
https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout a03f6c0e26b2882fe3eeb092111bdccc113d76ce
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: drivers/gpu/drm/amd/display/dc/core/dc_link.o: in function
`dc_bandwidth_in_kbps_from_timing':
> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:3510:
undefined reference to `dc_dsc_stream_bandwidth_in_kbps'
vim +3510 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c
3502
3503 uint32_t dc_bandwidth_in_kbps_from_timing(
3504 const struct dc_crtc_timing *timing)
3505 {
3506 uint32_t bits_per_channel = 0;
3507 uint32_t kbps;
3508
3509 if (timing->flags.DSC) {
3510 return
dc_dsc_stream_bandwidth_in_kbps(timing->pix_clk_100hz,
timing->dsc_cfg.bits_per_pixel);
3511 }
3512
3513 switch (timing->display_color_depth) {
3514 case COLOR_DEPTH_666:
3515 bits_per_channel = 6;
3516 break;
3517 case COLOR_DEPTH_888:
3518 bits_per_channel = 8;
3519 break;
3520 case COLOR_DEPTH_101010:
3521 bits_per_channel = 10;
3522 break;
3523 case COLOR_DEPTH_121212:
3524 bits_per_channel = 12;
3525 break;
3526 case COLOR_DEPTH_141414:
3527 bits_per_channel = 14;
3528 break;
3529 case COLOR_DEPTH_161616:
3530 bits_per_channel = 16;
3531 break;
3532 default:
3533 ASSERT(bits_per_channel != 0);
3534 bits_per_channel = 8;
3535 break;
3536 }
3537
3538 kbps = timing->pix_clk_100hz / 10;
3539 kbps *= bits_per_channel;
3540
3541 if (timing->flags.Y_ONLY != 1) {
3542 /*Only YOnly make reduce bandwidth by 1/3 compares to RGB*/
3543 kbps *= 3;
3544 if (timing->pixel_encoding == PIXEL_ENCODING_YCBCR420)
3545 kbps /= 2;
3546 else if (timing->pixel_encoding == PIXEL_ENCODING_YCBCR422)
3547 kbps = kbps * 2 / 3;
3548 }
3549
3550 return kbps;
3551
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org