tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fa35f247b563a7893f3f68f19d00ace2ccf3dff
commit: 0749ddeb7d6c87e04446c068c03b097d4aa19173 [7650/8311] drm/amd/display: Add DSC
force disable to dsc_clock_en debugfs entry
config: powerpc-randconfig-r011-20200916 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
9e3842d60351f986d77dfe0a94f76e4fd895f188)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git checkout 0749ddeb7d6c87e04446c068c03b097d4aa19173
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:641:8: warning:
logical not is only applied to the left hand side of this comparison
[-Wlogical-not-parentheses]
&&
!params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
^ ~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:641:8: note: add
parentheses after the '!' to evaluate the comparison first
&& !params[i].clock_force_enable ==
DSC_CLK_FORCE_DEFAULT) {
^
(
)
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:641:8: note: add
parentheses around left hand side expression to silence this warning
&& !params[i].clock_force_enable ==
DSC_CLK_FORCE_DEFAULT) {
^
( )
1 warning generated.
#
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 0749ddeb7d6c87e04446c068c03b097d4aa19173
vim +641 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c
624
625 static void try_disable_dsc(struct drm_atomic_state *state,
626 struct dc_link *dc_link,
627 struct dsc_mst_fairness_params *params,
628 struct dsc_mst_fairness_vars *vars,
629 int count)
630 {
631 int i;
632 bool tried[MAX_PIPES];
633 int kbps_increase[MAX_PIPES];
634 int max_kbps_increase;
635 int next_index;
636 int remaining_to_try = 0;
637
638 for (i = 0; i < count; i++) {
639 if (vars[i].dsc_enabled
640 && vars[i].bpp_x16 == params[i].bw_range.max_target_bpp_x16
641 && !params[i].clock_force_enable ==
DSC_CLK_FORCE_DEFAULT) {
642 kbps_increase[i] = params[i].bw_range.stream_kbps
- params[i].bw_range.max_kbps;
643 tried[i] = false;
644 remaining_to_try += 1;
645 } else {
646 kbps_increase[i] = 0;
647 tried[i] = true;
648 }
649 }
650
651 while (remaining_to_try) {
652 next_index = -1;
653 max_kbps_increase = -1;
654 for (i = 0; i < count; i++) {
655 if (!tried[i]) {
656 if (max_kbps_increase == -1 || max_kbps_increase < kbps_increase[i]) {
657 max_kbps_increase = kbps_increase[i];
658 next_index = i;
659 }
660 }
661 }
662
663 if (next_index == -1)
664 break;
665
666 vars[next_index].pbn =
kbps_to_peak_pbn(params[next_index].bw_range.stream_kbps);
667 if (drm_dp_atomic_find_vcpi_slots(state,
668 params[next_index].port->mgr,
669 params[next_index].port,
670 vars[next_index].pbn,
671 dm_mst_get_pbn_divider(dc_link)) < 0)
672 return;
673
674 if (!drm_dp_mst_atomic_check(state)) {
675 vars[next_index].dsc_enabled = false;
676 vars[next_index].bpp_x16 = 0;
677 } else {
678 vars[next_index].pbn = kbps_to_peak_pbn(params[next_index].bw_range.max_kbps);
679 if (drm_dp_atomic_find_vcpi_slots(state,
680 params[next_index].port->mgr,
681 params[next_index].port,
682 vars[next_index].pbn,
683 dm_mst_get_pbn_divider(dc_link)) < 0)
684 return;
685 }
686
687 tried[next_index] = true;
688 remaining_to_try--;
689 }
690 }
691
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org