tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/fpu
head: e476cca1496d0f7f15ff57cceee4c33dea18677d
commit: e476cca1496d0f7f15ff57cceee4c33dea18677d [4/4] amdgpu/dc: Annotate __fpu
config: powerpc64-randconfig-r003-20200716 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
ed6b578040a85977026c93bf4188f996148f3218)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
git checkout e476cca1496d0f7f15ff57cceee4c33dea18677d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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 >>):
> drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:438:8:
error: unknown type name '__fpu'
static __fpu void
dcn_bw_calc_rq_dlg_ttu(
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:626:2: error: implicit
declaration of function 'cpu_has_feature'
[-Werror,-Wimplicit-function-declaration]
DC_FP_START();
^
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:62:6: note: expanded from macro
'DC_FP_START'
if (cpu_has_feature(CPU_FTR_VSX_COMP)) { \
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:626:2: note: did you mean
'mmu_has_feature'?
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:62:6: note: expanded from macro
'DC_FP_START'
if (cpu_has_feature(CPU_FTR_VSX_COMP)) { \
^
arch/powerpc/include/asm/mmu.h:197:29: note: 'mmu_has_feature' declared here
static __always_inline bool mmu_has_feature(unsigned long feature)
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:626:2: error: implicit
declaration of function 'enable_kernel_vsx'
[-Werror,-Wimplicit-function-declaration]
DC_FP_START();
^
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:64:3: note: expanded from macro
'DC_FP_START'
enable_kernel_vsx(); \
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:626:2: note: did you mean
'enable_kernel_fp'?
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:64:3: note: expanded from macro
'DC_FP_START'
enable_kernel_vsx(); \
^
arch/powerpc/include/asm/switch_to.h:40:13: note: 'enable_kernel_fp' declared
here
extern void enable_kernel_fp(void);
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:626:2: error: implicit
declaration of function 'enable_kernel_altivec'
[-Werror,-Wimplicit-function-declaration]
DC_FP_START();
^
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:67:3: note: expanded from macro
'DC_FP_START'
enable_kernel_altivec(); \
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:626:2: note: did you mean
'enable_kernel_fp'?
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:67:3: note: expanded from macro
'DC_FP_START'
enable_kernel_altivec(); \
^
arch/powerpc/include/asm/switch_to.h:40:13: note: 'enable_kernel_fp' declared
here
extern void enable_kernel_fp(void);
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:662:2: error: implicit
declaration of function 'cpu_has_feature'
[-Werror,-Wimplicit-function-declaration]
DC_FP_END();
^
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:74:6: note: expanded from macro
'DC_FP_END'
if (cpu_has_feature(CPU_FTR_VSX_COMP)) { \
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:662:2: error: implicit
declaration of function 'disable_kernel_vsx'
[-Werror,-Wimplicit-function-declaration]
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:75:3: note: expanded from macro
'DC_FP_END'
disable_kernel_vsx(); \
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:662:2: note: did you mean
'disable_kernel_fp'?
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:75:3: note: expanded from macro
'DC_FP_END'
disable_kernel_vsx(); \
^
arch/powerpc/include/asm/switch_to.h:44:20: note: 'disable_kernel_fp' declared
here
static inline void disable_kernel_fp(void)
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:662:2: error: implicit
declaration of function 'disable_kernel_altivec'
[-Werror,-Wimplicit-function-declaration]
DC_FP_END();
^
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:78:3: note: expanded from macro
'DC_FP_END'
disable_kernel_altivec(); \
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:662:2: note: did you mean
'disable_kernel_fp'?
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:78:3: note: expanded from macro
'DC_FP_END'
disable_kernel_altivec(); \
^
arch/powerpc/include/asm/switch_to.h:44:20: note: 'disable_kernel_fp' declared
here
static inline void disable_kernel_fp(void)
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:676:8: error: unknown type
name '__fpu'
static __fpu void hack_force_pipe_split(struct dcn_bw_internal_vars *v,
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:725:14: warning: no previous
prototype for function 'get_highest_allowed_voltage_level' [-Wmissing-prototypes]
unsigned int get_highest_allowed_voltage_level(uint32_t hw_internal_rev, uint32_t
pci_revision_id)
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:725:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
unsigned int get_highest_allowed_voltage_level(uint32_t hw_internal_rev, uint32_t
pci_revision_id)
^
static
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:774:2: error: implicit
declaration of function 'cpu_has_feature'
[-Werror,-Wimplicit-function-declaration]
DC_FP_START();
^
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:62:6: note: expanded from macro
'DC_FP_START'
if (cpu_has_feature(CPU_FTR_VSX_COMP)) { \
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:774:2: error: implicit
declaration of function 'enable_kernel_vsx'
[-Werror,-Wimplicit-function-declaration]
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:64:3: note: expanded from macro
'DC_FP_START'
enable_kernel_vsx(); \
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:774:2: error: implicit
declaration of function 'enable_kernel_altivec'
[-Werror,-Wimplicit-function-declaration]
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:67:3: note: expanded from macro
'DC_FP_START'
enable_kernel_altivec(); \
^
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1307:2: error: implicit
declaration of function 'cpu_has_feature'
[-Werror,-Wimplicit-function-declaration]
DC_FP_END();
^
drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:74:6: note: expanded from macro
'DC_FP_END'
if (cpu_has_feature(CPU_FTR_VSX_COMP)) { \
vim +/__fpu +438 drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c
437
438 static __fpu void dcn_bw_calc_rq_dlg_ttu(
439 const
struct dc *dc,
440 const struct dcn_bw_internal_vars *v,
441 struct pipe_ctx *pipe,
442 int in_idx)
443 {
444 struct display_mode_lib *dml = (struct display_mode_lib *)(&dc->dml);
445 struct _vcs_dpi_display_dlg_regs_st *dlg_regs = &pipe->dlg_regs;
446 struct _vcs_dpi_display_ttu_regs_st *ttu_regs = &pipe->ttu_regs;
447 struct _vcs_dpi_display_rq_regs_st *rq_regs = &pipe->rq_regs;
448 struct _vcs_dpi_display_rq_params_st rq_param = {0};
449 struct _vcs_dpi_display_dlg_sys_params_st dlg_sys_param = {0};
450 struct _vcs_dpi_display_e2e_pipe_params_st input = { { { 0 } } };
451 float total_active_bw = 0;
452 float total_prefetch_bw = 0;
453 int total_flip_bytes = 0;
454 int i;
455
456 memset(dlg_regs, 0, sizeof(*dlg_regs));
457 memset(ttu_regs, 0, sizeof(*ttu_regs));
458 memset(rq_regs, 0, sizeof(*rq_regs));
459
460 for (i = 0; i < number_of_planes; i++) {
461 total_active_bw += v->read_bandwidth[i];
462 total_prefetch_bw += v->prefetch_bandwidth[i];
463 total_flip_bytes += v->total_immediate_flip_bytes[i];
464 }
465 dlg_sys_param.total_flip_bw = v->return_bw - dcn_bw_max2(total_active_bw,
total_prefetch_bw);
466 if (dlg_sys_param.total_flip_bw < 0.0)
467 dlg_sys_param.total_flip_bw = 0;
468
469 dlg_sys_param.t_mclk_wm_us = v->dram_clock_change_watermark;
470 dlg_sys_param.t_sr_wm_us = v->stutter_enter_plus_exit_watermark;
471 dlg_sys_param.t_urg_wm_us = v->urgent_watermark;
472 dlg_sys_param.t_extra_us = v->urgent_extra_latency;
473 dlg_sys_param.deepsleep_dcfclk_mhz = v->dcf_clk_deep_sleep;
474 dlg_sys_param.total_flip_bytes = total_flip_bytes;
475
476 pipe_ctx_to_e2e_pipe_params(pipe, &input.pipe);
477 input.clks_cfg.dcfclk_mhz = v->dcfclk;
478 input.clks_cfg.dispclk_mhz = v->dispclk;
479 input.clks_cfg.dppclk_mhz = v->dppclk;
480 input.clks_cfg.refclk_mhz = dc->res_pool->ref_clocks.dchub_ref_clock_inKhz /
1000.0;
481 input.clks_cfg.socclk_mhz = v->socclk;
482 input.clks_cfg.voltage = v->voltage_level;
483 // dc->dml.logger = pool->base.logger;
484 input.dout.output_format = (v->output_format[in_idx] == dcn_bw_420) ? dm_420 :
dm_444;
485 input.dout.output_type = (v->output[in_idx] == dcn_bw_hdmi) ? dm_hdmi :
dm_dp;
486 //input[in_idx].dout.output_standard;
487
488 /*todo: soc->sr_enter_plus_exit_time??*/
489 dlg_sys_param.t_srx_delay_us = dc->dcn_ip->dcfclk_cstate_latency /
v->dcf_clk_deep_sleep;
490
491 dml1_rq_dlg_get_rq_params(dml, &rq_param, input.pipe.src);
492 dml1_extract_rq_regs(dml, rq_regs, rq_param);
493 dml1_rq_dlg_get_dlg_params(
494 dml,
495 dlg_regs,
496 ttu_regs,
497 rq_param.dlg,
498 dlg_sys_param,
499 input,
500 true,
501 true,
502 v->pte_enable == dcn_bw_yes,
503 pipe->plane_state->flip_immediate);
504 }
505
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org