tree: git://linuxtv.org/mchehab/media-next.git master head: 60b2c19dd09b0413fb864b5d75949125b47baa1a commit: be1fdab273a9e17d37b0258ee6e5a6a6f0689e89 [569/571] media: atomisp: change the detection of ISP2401 at runtime config: i386-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce (this is a W=1 build): git checkout be1fdab273a9e17d37b0258ee6e5a6a6f0689e89 # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): cc1: warning: drivers/staging/media/atomisp//pci/hive_isp_css_include/memory_access/: No such file or directory [-Wmissing-include-dirs] drivers/staging/media/atomisp/pci/atomisp_compat_css20.c: In function 'atomisp_css2_dbg_print': drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:159:2: warning: function 'atomisp_css2_dbg_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 159 | vprintk(fmt, args); | ^~~~~~~ drivers/staging/media/atomisp/pci/atomisp_compat_css20.c: In function 'atomisp_css2_dbg_ftrace_print': drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:165:2: warning: function 'atomisp_css2_dbg_ftrace_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 165 | ftrace_vprintk(fmt, args); | ^~~~~~~~~~~~~~ drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:165:2: warning: function 'atomisp_css2_dbg_ftrace_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] drivers/staging/media/atomisp/pci/atomisp_compat_css20.c: In function 'atomisp_css2_err_print': drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:171:2: warning: function 'atomisp_css2_err_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 171 | vprintk(fmt, args); | ^~~~~~~ drivers/staging/media/atomisp/pci/atomisp_compat_css20.c: In function 'atomisp_css_isr_thread': << from drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:28: >> drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:4196:9: error: 'atomisp_hw_is_isp2401' undeclared (first use in this function) 4196 | if (!atomisp_hw_is_isp2401) | ^~~~~~~~~~~~~~~~~~~~~ drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:4196:9: note: each undeclared identifier is reported only once for each function it appears in In file included from drivers/staging/media/atomisp//pci/system_local.h:8, from drivers/staging/media/atomisp/pci/ia_css_acc_types.h:23, from drivers/staging/media/atomisp/pci/ia_css.h:26, from drivers/staging/media/atomisp/pci/atomisp_compat_css20.h:24, from drivers/staging/media/atomisp/pci/atomisp_compat.h:22, from drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:28: At top level: drivers/staging/media/atomisp//pci/isp2401_system_local.h:213:26: warning: 'STREAM2MMIO_CTRL_BASE' defined but not used [-Wunused-const-variable=] 213 | static const hrt_address STREAM2MMIO_CTRL_BASE[N_STREAM2MMIO_ID] = { | ^~~~~~~~~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:206:26: warning: 'PIXELGEN_CTRL_BASE' defined but not used [-Wunused-const-variable=] 206 | static const hrt_address PIXELGEN_CTRL_BASE[N_PIXELGEN_ID] = { | ^~~~~~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:199:26: warning: 'CSI_RX_BE_CTRL_BASE' defined but not used [-Wunused-const-variable=] 199 | static const hrt_address CSI_RX_BE_CTRL_BASE[N_CSI_RX_BACKEND_ID] = { | ^~~~~~~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:192:26: warning: 'CSI_RX_FE_CTRL_BASE' defined but not used [-Wunused-const-variable=] 192 | static const hrt_address CSI_RX_FE_CTRL_BASE[N_CSI_RX_FRONTEND_ID] = { | ^~~~~~~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:185:26: warning: 'ISYS_IRQ_BASE' defined but not used [-Wunused-const-variable=] 185 | static const hrt_address ISYS_IRQ_BASE[N_ISYS_IRQ_ID] = { | ^~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:178:26: warning: 'IBUF_CTRL_BASE' defined but not used [-Wunused-const-variable=] 178 | static const hrt_address IBUF_CTRL_BASE[N_IBUF_CTRL_ID] = { | ^~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:173:26: warning: 'RX_BASE' defined but not used [-Wunused-const-variable=] 173 | static const hrt_address RX_BASE[N_RX_ID] = { | ^~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:158:26: warning: 'INPUT_SYSTEM_BASE' defined but not used [-Wunused-const-variable=] 158 | static const hrt_address INPUT_SYSTEM_BASE[N_INPUT_SYSTEM_ID] = { | ^~~~~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:150:26: warning: 'INPUT_FORMATTER_BASE' defined but not used [-Wunused-const-variable=] 150 | static const hrt_address INPUT_FORMATTER_BASE[N_INPUT_FORMATTER_ID] = { | ^~~~~~~~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:145:26: warning: 'TIMED_CTRL_BASE' defined but not used [-Wunused-const-variable=] 145 | static const hrt_address TIMED_CTRL_BASE[N_TIMED_CTRL_ID] = { | ^~~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:140:26: warning: 'GPIO_BASE' defined but not used [-Wunused-const-variable=] 140 | static const hrt_address GPIO_BASE[N_GPIO_ID] = { | ^~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:136:26: warning: 'GP_TIMER_BASE' defined but not used [-Wunused-const-variable=] 136 | static const hrt_address GP_TIMER_BASE = | ^~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:129:26: warning: 'GP_DEVICE_BASE' defined but not used [-Wunused-const-variable=] 129 | static const hrt_address GP_DEVICE_BASE[N_GP_DEVICE_ID] = { | ^~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:116:26: warning: 'FIFO_MONITOR_BASE' defined but not used [-Wunused-const-variable=] 116 | static const hrt_address FIFO_MONITOR_BASE[N_FIFO_MONITOR_ID] = { | ^~~~~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:110:26: warning: 'GDC_BASE' defined but not used [-Wunused-const-variable=] 110 | static const hrt_address GDC_BASE[N_GDC_ID] = { | ^~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:98:26: warning: 'IRQ_BASE' defined but not used [-Wunused-const-variable=] 98 | static const hrt_address IRQ_BASE[N_IRQ_ID] = { | ^~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:93:26: warning: 'ISYS2401_DMA_BASE' defined but not used [-Wunused-const-variable=] 93 | static const hrt_address ISYS2401_DMA_BASE[N_ISYS2401_DMA_ID] = { | ^~~~~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:89:26: warning: 'DMA_BASE' defined but not used [-Wunused-const-variable=] 89 | static const hrt_address DMA_BASE[N_DMA_ID] = { | ^~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:83:26: warning: 'MMU_BASE' defined but not used [-Wunused-const-variable=] 83 | static const hrt_address MMU_BASE[N_MMU_ID] = { | ^~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:74:26: warning: 'SP_DMEM_BASE' defined but not used [-Wunused-const-variable=] 74 | static const hrt_address SP_DMEM_BASE[N_SP_ID] = { | ^~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:70:26: warning: 'SP_CTRL_BASE' defined but not used [-Wunused-const-variable=] 70 | static const hrt_address SP_CTRL_BASE[N_SP_ID] = { | ^~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:65:26: warning: 'ISP_HMEM_BASE' defined but not used [-Wunused-const-variable=] 65 | static const hrt_address ISP_HMEM_BASE[N_HMEM_ID] = { | ^~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:59:26: warning: 'ISP_VAMEM_BASE' defined but not used [-Wunused-const-variable=] 59 | static const hrt_address ISP_VAMEM_BASE[N_VAMEM_ID] = { | ^~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:55:26: warning: 'ISP_BAMEM_BASE' defined but not used [-Wunused-const-variable=] 55 | static const hrt_address ISP_BAMEM_BASE[N_BAMEM_ID] = { | ^~~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:51:26: warning: 'ISP_DMEM_BASE' defined but not used [-Wunused-const-variable=] 51 | static const hrt_address ISP_DMEM_BASE[N_ISP_ID] = { | ^~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:47:26: warning: 'ISP_CTRL_BASE' defined but not used [-Wunused-const-variable=] 47 | static const hrt_address ISP_CTRL_BASE[N_ISP_ID] = { | ^~~~~~~~~~~~~ drivers/staging/media/atomisp//pci/isp2401_system_local.h:42:26: warning: 'DDR_BASE' defined but not used [-Wunused-const-variable=] 42 | static const hrt_address DDR_BASE[N_DDR_ID] = { | ^~~~~~~~ vim +/atomisp_hw_is_isp2401 +4196 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4136 ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4137 int atomisp_css_isr_thread(struct atomisp_device *isp, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4138 bool *frame_done_found, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4139 bool *css_pipe_done) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4140 { ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4141 enum atomisp_input_stream_id stream_id = 0; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4142 struct atomisp_css_event current_event; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4143 struct atomisp_sub_device *asd; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4144 bool reset_wdt_timer[MAX_STREAM_NUM] = {false}; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4145 int i; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4146 ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4147 while (!atomisp_css_dequeue_event(¤t_event)) { ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4148 if (current_event.event.type == ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4149 IA_CSS_EVENT_TYPE_FW_ASSERT) { ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4150 /* ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4151 * Received FW assertion signal, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4152 * trigger WDT to recover ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4153 */ eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4154 dev_err(isp->dev, eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4155 "%s: ISP reports FW_ASSERT event! fw_assert_module_id %d fw_assert_line_no %d\n", ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4156 __func__, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4157 current_event.event.fw_assert_module_id, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4158 current_event.event.fw_assert_line_no); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4159 for (i = 0; i < isp->num_of_streams; i++) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4160 atomisp_wdt_stop(&isp->asd[i], 0); 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4161 be1fdab273a9e1 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-06-01 4162 if (!IS_ISP2401) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4163 atomisp_wdt(&isp->asd[0].wdt); 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4164 else ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4165 queue_work(isp->wdt_work_queue, &isp->wdt_work); 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4166 ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4167 return -EINVAL; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4168 } else if (current_event.event.type == IA_CSS_EVENT_TYPE_FW_WARNING) { ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4169 dev_warn(isp->dev, "%s: ISP reports warning, code is %d, exp_id %d\n", ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4170 __func__, current_event.event.fw_warning, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4171 current_event.event.exp_id); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4172 continue; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4173 } ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4174 ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4175 asd = __get_atomisp_subdev(current_event.event.pipe, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4176 isp, &stream_id); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4177 if (!asd) { e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4178 if (current_event.event.type == IA_CSS_EVENT_TYPE_TIMER) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4179 dev_dbg(isp->dev, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4180 "event: Timer event."); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4181 else ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4182 dev_warn(isp->dev, "%s:no subdev.event:%d", ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4183 __func__, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4184 current_event.event.type); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4185 continue; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4186 } ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4187 ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4188 atomisp_css_temp_pipe_to_pipe_id(asd, ¤t_event); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4189 switch (current_event.event.type) { e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4190 case IA_CSS_EVENT_TYPE_OUTPUT_FRAME_DONE: f48b7fd209cac5 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-27 4191 dev_dbg(isp->dev, "event: Output frame done"); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4192 frame_done_found[asd->index] = true; e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4193 atomisp_buf_done(asd, 0, IA_CSS_BUFFER_TYPE_OUTPUT_FRAME, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4194 current_event.pipe, true, stream_id); 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4195 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 @4196 if (!atomisp_hw_is_isp2401) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4197 reset_wdt_timer[asd->index] = true; /* ISP running */ 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4198 ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4199 break; e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4200 case IA_CSS_EVENT_TYPE_SECOND_OUTPUT_FRAME_DONE: f48b7fd209cac5 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-27 4201 dev_dbg(isp->dev, "event: Second output frame done"); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4202 frame_done_found[asd->index] = true; e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4203 atomisp_buf_done(asd, 0, IA_CSS_BUFFER_TYPE_SEC_OUTPUT_FRAME, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4204 current_event.pipe, true, stream_id); 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4205 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4206 if (!atomisp_hw_is_isp2401) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4207 reset_wdt_timer[asd->index] = true; /* ISP running */ 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4208 ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4209 break; e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4210 case IA_CSS_EVENT_TYPE_3A_STATISTICS_DONE: f48b7fd209cac5 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-27 4211 dev_dbg(isp->dev, "event: 3A stats frame done"); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4212 atomisp_buf_done(asd, 0, e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4213 IA_CSS_BUFFER_TYPE_3A_STATISTICS, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4214 current_event.pipe, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4215 false, stream_id); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4216 break; e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4217 case IA_CSS_EVENT_TYPE_METADATA_DONE: f48b7fd209cac5 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-27 4218 dev_dbg(isp->dev, "event: metadata frame done"); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4219 atomisp_buf_done(asd, 0, e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4220 IA_CSS_BUFFER_TYPE_METADATA, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4221 current_event.pipe, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4222 false, stream_id); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4223 break; e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4224 case IA_CSS_EVENT_TYPE_VF_OUTPUT_FRAME_DONE: f48b7fd209cac5 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-27 4225 dev_dbg(isp->dev, "event: VF output frame done"); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4226 atomisp_buf_done(asd, 0, e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4227 IA_CSS_BUFFER_TYPE_VF_OUTPUT_FRAME, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4228 current_event.pipe, true, stream_id); 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4229 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4230 if (!atomisp_hw_is_isp2401) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4231 reset_wdt_timer[asd->index] = true; /* ISP running */ 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4232 ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4233 break; e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4234 case IA_CSS_EVENT_TYPE_SECOND_VF_OUTPUT_FRAME_DONE: f48b7fd209cac5 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-27 4235 dev_dbg(isp->dev, "event: second VF output frame done"); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4236 atomisp_buf_done(asd, 0, e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4237 IA_CSS_BUFFER_TYPE_SEC_VF_OUTPUT_FRAME, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4238 current_event.pipe, true, stream_id); 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4239 if (!atomisp_hw_is_isp2401) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4240 reset_wdt_timer[asd->index] = true; /* ISP running */ 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4241 ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4242 break; e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4243 case IA_CSS_EVENT_TYPE_DIS_STATISTICS_DONE: f48b7fd209cac5 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-27 4244 dev_dbg(isp->dev, "event: dis stats frame done"); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4245 atomisp_buf_done(asd, 0, e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4246 IA_CSS_BUFFER_TYPE_DIS_STATISTICS, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4247 current_event.pipe, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4248 false, stream_id); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4249 break; e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4250 case IA_CSS_EVENT_TYPE_PIPELINE_DONE: f48b7fd209cac5 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-27 4251 dev_dbg(isp->dev, "event: pipeline done"); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4252 css_pipe_done[asd->index] = true; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4253 break; e6292f83601e95 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-21 4254 case IA_CSS_EVENT_TYPE_ACC_STAGE_COMPLETE: f48b7fd209cac5 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-27 4255 dev_dbg(isp->dev, "event: acc stage done"); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4256 atomisp_acc_done(asd, current_event.event.fw_handle); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4257 break; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4258 default: ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4259 dev_dbg(isp->dev, "unhandled css stored event: 0x%x\n", ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4260 current_event.event.type); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4261 break; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4262 } ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4263 } 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4264 3117ddda1ecef9 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-12 4265 if (atomisp_hw_is_isp2401) 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4266 return 0; 7ef17aa55fc381 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-22 4267 3117ddda1ecef9 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-05-12 4268 /* ISP2400: If there are no buffers queued then delete wdt timer. */ ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4269 for (i = 0; i < isp->num_of_streams; i++) { ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4270 asd = &isp->asd[i]; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4271 if (!asd) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4272 continue; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4273 if (asd->streaming != ATOMISP_DEVICE_STREAMING_ENABLED) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4274 continue; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4275 if (!atomisp_buffers_queued(asd)) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4276 atomisp_wdt_stop(asd, false); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4277 else if (reset_wdt_timer[i]) ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4278 /* SOF irq should not reset wdt timer. */ ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4279 atomisp_wdt_refresh(asd, ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4280 ATOMISP_WDT_KEEP_CURRENT_DELAY); ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4281 } ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4282 ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4283 return 0; ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4284 } ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c Mauro Carvalho Chehab 2020-04-19 4285 :::::: The code at line 4196 was first introduced by commit :::::: 7ef17aa55fc381a6f3280203cd85175cb14b631f media: atomisp: atomisp_compat_css20.c: detect ISP at runtime :::::: TO: Mauro Carvalho Chehab :::::: CC: Mauro Carvalho Chehab --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org