tree:
https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: 5fedbd64e1c0eedd28f478f280c6315d18ff7762
commit: f4594cd1fa556609450e0ed5664a0adf69ab0b35 [51/84] drm/amd/display: move psr dm
interface to separate files
config: riscv-randconfig-r033-20210615 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.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
git remote add agd5f
https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout f4594cd1fa556609450e0ed5664a0adf69ab0b35
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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_psr.c: In function
'amdgpu_dm_link_setup_psr':
>
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c:70:13: warning: variable
'dc' set but not used [-Wunused-but-set-variable]
70 | struct dc *dc
= NULL;
| ^~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER ||
MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/dc +70 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c
58
59 /*
60 * amdgpu_dm_link_setup_psr() - configure psr link
61 * @stream: stream state
62 *
63 * Return: true if success
64 */
65 bool amdgpu_dm_link_setup_psr(struct dc_stream_state *stream)
66 {
67 struct dc_link *link = NULL;
68 struct psr_config psr_config = {0};
69 struct psr_context psr_context = {0};
70 struct dc *dc = NULL;
71 bool ret = false;
72
73 if (stream == NULL)
74 return false;
75
76 link = stream->link;
77 dc = link->ctx->dc;
78
79 psr_config.psr_version = link->dpcd_caps.psr_caps.psr_version;
80
81 if (psr_config.psr_version > 0) {
82 psr_config.psr_exit_link_training_required = 0x1;
83 psr_config.psr_frame_capture_indication_req = 0;
84 psr_config.psr_rfb_setup_time = 0x37;
85 psr_config.psr_sdp_transmit_line_num_deadline = 0x20;
86 psr_config.allow_smu_optimizations = 0x0;
87
88 ret = dc_link_setup_psr(link, stream, &psr_config, &psr_context);
89
90 }
91 DRM_DEBUG_DRIVER("PSR link:
%d\n", link->psr_settings.psr_feature_enabled);
92
93 return ret;
94 }
95
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org