media: mediatek: vcodec: support stateless AV1 decoder
Subsystems (3)
PATCH v10 1/1 media: mediatek: vcodec: support stateless AV1 decoder
Add mediatek av1 decoder linux driver which use the stateless API in MT8195.
---
Changes from v9:
- match av1 uapi version from v4 to v7.
- test by av1 fluster, results are 173/239(10bit/film grain are not support),11/13(film grain is not support),0(10bit is not support).
Changes from v8:
- remove RFC tag in subject.
- test by av1 fluster, results are 173/239(10bit/film grain are not support),11/13(film grain is not support),0(10bit is not support).
Changes from v7:
- change V4L2_CID_STATELESS_AV1_PROFILE to V4L2_CID_MPEG_VIDEO_AV1_PROFILE,V4L2_CID_STATELESS_AV1_LEVEL to V4L2_CID_MPEG_VIDEO_AV1_LEVEL to match av1 uAPI V4.
- remove vsi and ctx null check in vdec_av1_slice_init_cdf_table, vdec_av1_slice_init_iq_table for the never true condition.
- add inline in function vdec_av1_slice_clear_fb, vdec_av1_slice_vsi_from_remote, vdec_av1_slice_vsi_to_remote, vdec_av1_slice_setup_state, vdec_av1_slice_setup_operating_mode and vdec_av1_slice_get_dpb_size.
- remove fb_idx check in vdec_av1_slice_decrease_ref_count.
- add define AV1_CDF_TABLE_BUFFER_SIZE for magic number 16384.
- remove intermediate variable "size" at the end of vdec_av1_slice_alloc_working_buffer.
- use define V4L2_AV1_WARP_MODEL_AFFINE to replace magic number 3 in vdec_av1_slice_setup_gm.
- change api name vdec_av1_slice_get_relative_dist to vdec_av1_slice_get_sign_bias and return 0 or 1 for the caller directly use.
- add define AV1_PRIMARY_REF_NONE for magic number 7.
- remove TODO comment in vdec_av1_slice_update_core.
- change name irq to irq_enabled in struct vdec_av1_slice_instance.
- Add newline before return statememt in vdec_av1_slice_init and vdec_av1_slice_flush.
- remove work_buffer assignment and merge 3 loops with one in vdec_av1_slice_alloc_working_buffer.
- remove va null check in vdec_av1_slice_free_working_buffer.
- swap order between vdec_av1_slice_clear_fb and vdec_msg_queue_wait_lat_buf_full in vdec_av1_slice_flush.
- test by av1 fluster, result is 173/239
Changes from v6:
- change slot_id type from u8 to s8
- test by av1 fluster, result is 173/239
Changes from v5:
- change av1 PROFILE and LEVEL cfg
- test by av1 fluster, result is 173/239
Changes from v4:
- convert vb2_find_timestamp to vb2_find_buffer
- test by av1 fluster, result is 173/239
Changes from v3:
- modify comment for struct vdec_av1_slice_slot
- add define SEG_LVL_ALT_Q
- change use_lr/use_chroma_lr parse from av1 spec
- use ARRAY_SIZE to replace size for loop_filter_level and loop_filter_mode_deltas
- change array size of loop_filter_mode_deltas from 4 to 2
- add define SECONDARY_FILTER_STRENGTH_NUM_BITS
- change some hex values from upper case to lower case
- change *dpb_sz equal to V4L2_AV1_TOTAL_REFS_PER_FRAME + 1
- test by av1 fluster, result is 173/239
Changes from v2:
- Match with av1 uapi v3 modify
- test by av1 fluster, result is 173/239
---
Reference series:
[1]: v7 of this series is presend by Daniel Almeida.
message-id: [email protected]
.../media/platform/mediatek/vcodec/Makefile | 1 + .../vcodec/mtk_vcodec_dec_stateless.c | 47 +- .../platform/mediatek/vcodec/mtk_vcodec_drv.h | 1 + .../vcodec/vdec/vdec_av1_req_lat_if.c | 2207 +++++++++++++++++ .../platform/mediatek/vcodec/vdec_drv_if.c | 4 + .../platform/mediatek/vcodec/vdec_drv_if.h | 1 + .../platform/mediatek/vcodec/vdec_msg_queue.c | 27 + .../platform/mediatek/vcodec/vdec_msg_queue.h | 4 + 8 files changed, 2291 insertions(+), 1 deletion(-) create mode 100644 drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c
drivers/media/platform/mediatek/vcodec/Makefile +1 -0
@@ -10,6 +10,7 @@ mtk-vcodec-dec-y := vdec/vdec_h264_if.o \ vdec/vdec_vp8_req_if.o \ vdec/vdec_vp9_if.o \ vdec/vdec_vp9_req_lat_if.o \ + vdec/vdec_av1_req_lat_if.o \ vdec/vdec_h264_req_if.o \ vdec/vdec_h264_req_common.o \ vdec/vdec_h264_req_multi_if.o \
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c +46 -1
69 lines not on this page · raw message
drivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h +1 -0
@@ -344,6 +344,7 @@ enum mtk_vdec_format_types {MTK_VDEC_FORMAT_H264_SLICE =0x100 ,MTK_VDEC_FORMAT_VP8_FRAME =0x200 ,MTK_VDEC_FORMAT_VP9_FRAME =0x400 , +MTK_VDEC_FORMAT_AV1_FRAME =0x800 , MTK_VCODEC_INNER_RACING = 0x20000, };
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c new file +2207 -0
2,207 lines not on this page · raw message
drivers/media/platform/mediatek/vcodec/vdec_drv_if.c +4 -0
@@ -49,6 +49,10 @@ int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) ctx->dec_if = &vdec_vp9_slice_lat_if; ctx->hw_id =IS_VDEC_LAT_ARCH (hw_arch) ?MTK_VDEC_LAT0 :MTK_VDEC_CORE ;break ; +case V4L2_PIX_FMT_AV1_FRAME : + ctx->dec_if = &vdec_av1_slice_lat_if; + ctx->hw_id =MTK_VDEC_LAT0 ; +break ;default :return -EINVAL ; }
drivers/media/platform/mediatek/vcodec/vdec_drv_if.h +1 -0
@@ -61,6 +61,7 @@ extern const struct vdec_common_if vdec_vp8_if;extern const struct vdec_common_if vdec_vp8_slice_if;extern const struct vdec_common_if vdec_vp9_if;extern const struct vdec_common_if vdec_vp9_slice_lat_if; +extern const struct vdec_common_if vdec_av1_slice_lat_if;/** * vdec_if_init() - initialize decode driver
drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c +27 -0
@@ -20,6 +20,9 @@/* the size used to store avc error information */ #define VDEC_ERR_MAP_SZ_AVC (17 * SZ_1K) +#define VDEC_RD_MV_BUFFER_SZ (((SZ_4K * 2304 >> 4) + SZ_1K) << 1) +#define VDEC_LAT_TILE_SZ (64 * V4L2_AV1_MAX_TILE_COUNT) +/* core will read the trans buffer which decoded by lat to decode again. * The trans buffer size of FHD and 4K bitstreams are different. */
@@ -255,6 +258,14 @@ void vdec_msg_queue_deinit(struct vdec_msg_queue *msg_queue,if (mem->va)mtk_vcodec_mem_free (ctx, mem); + mem = &lat_buf->rd_mv_addr; +if (mem->va) +mtk_vcodec_mem_free (ctx, mem); + + mem = &lat_buf->tile_addr; +if (mem->va) +mtk_vcodec_mem_free (ctx, mem); +kfree (lat_buf->private_data); } }
@@ -347,6 +358,22 @@ int vdec_msg_queue_init(struct vdec_msg_queue *msg_queue, goto mem_alloc_err; } +if (ctx->current_codec ==V4L2_PIX_FMT_AV1_FRAME ) { + lat_buf->rd_mv_addr.size =VDEC_RD_MV_BUFFER_SZ ; + err =mtk_vcodec_mem_alloc (ctx, &lat_buf->rd_mv_addr); +if (err) { +mtk_v4l2_err ("failed to allocate rd_mv_addr buf[%d]" , i); +return -ENOMEM ; + } + + lat_buf->tile_addr.size =VDEC_LAT_TILE_SZ ; + err =mtk_vcodec_mem_alloc (ctx, &lat_buf->tile_addr); +if (err) { +mtk_v4l2_err ("failed to allocate tile_addr buf[%d]" , i); +return -ENOMEM ; + } + } + lat_buf->private_data =kzalloc (private_size,GFP_KERNEL );if (!lat_buf->private_data) { err = -ENOMEM ;
drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h +4 -0
@@ -42,6 +42,8 @@ struct vdec_msg_queue_ctx {* struct vdec_lat_buf - lat buffer message used to store lat info for core decode * @wdma_err_addr: wdma error address used for lat hardware * @slice_bc_addr: slice bc address used for lat hardware +* @rd_mv_addr: mv addr for av1 lat hardware output, core hardware input +* @tile_addr: tile buffer for av1 core input * @ts_info: need to set timestamp from output to capture * @src_buf_req: output buffer media request object *
@@ -54,6 +56,8 @@ struct vdec_msg_queue_ctx {struct vdec_lat_buf {struct mtk_vcodec_mem wdma_err_addr;struct mtk_vcodec_mem slice_bc_addr; +struct mtk_vcodec_mem rd_mv_addr; +struct mtk_vcodec_mem tile_addr;struct vb2_v4l2_buffer ts_info;struct media_request *src_buf_req;
Signature · 1 line
2.18.0
kernel test robot
build botkernel test robot noticed the following build warnings:
Hi Xiaoyong,
kernel test robot noticed the following build warnings:
[auto build test WARNING on media-tree/master]
[also build test WARNING on linus/master v6.3-rc6 next-20230413] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Xiaoyong-Lu/media-mediatek-vcodec-support-stateless-AV1-decoder/20230414-163725 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/20230414083020.22219-1-xiaoyong.lu%40mediatek.com patch subject: [v10] media: mediatek: vcodec: support stateless AV1 decoder config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230414/[email protected]/config) compiler: sparc64-linux-gcc (GCC) 12.1.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
# https://github.com/intel-lab-lkp/linux/commit/a2f78eab626ee9b1c17fbe7399d007277463ed80
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Xiaoyong-Lu/media-mediatek-vcodec-support-stateless-AV1-decoder/20230414-163725 git checkout a2f78eab626ee9b1c17fbe7399d007277463ed80
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/media/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:188:23: error: 'V4L2_AV1_MAX_TILE_COUNT' undeclared here (not in a function)
188 | u32 tile_size[V4L2_AV1_MAX_TILE_COUNT];
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:268:26: error: 'V4L2_AV1_MAX_SEGMENTS' undeclared here (not in a function)
268 | int feature_data[V4L2_AV1_MAX_SEGMENTS][V4L2_AV1_SEG_LVL_MAX];
| ^~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:268:49: error: 'V4L2_AV1_SEG_LVL_MAX' undeclared here (not in a function); did you mean 'V4L2_VP9_SEG_LVL_MAX'?
268 | int feature_data[V4L2_AV1_MAX_SEGMENTS][V4L2_AV1_SEG_LVL_MAX];
| ^~~~~~~~~~~~~~~~~~~~
| V4L2_VP9_SEG_LVL_MAX
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:336:35: error: 'V4L2_AV1_NUM_PLANES_MAX' undeclared here (not in a function)
336 | u8 frame_restoration_type[V4L2_AV1_NUM_PLANES_MAX];
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:356:36: error: 'V4L2_AV1_TOTAL_REFS_PER_FRAME' undeclared here (not in a function)
356 | int loop_filter_ref_deltas[V4L2_AV1_TOTAL_REFS_PER_FRAME];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:406:27: error: 'V4L2_AV1_MAX_TILE_COLS' undeclared here (not in a function)
406 | int mi_col_starts[V4L2_AV1_MAX_TILE_COLS + 1];
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:407:27: error: 'V4L2_AV1_MAX_TILE_ROWS' undeclared here (not in a function)
407 | int mi_row_starts[V4L2_AV1_MAX_TILE_ROWS + 1];
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:559:25: error: 'V4L2_AV1_REFS_PER_FRAME' undeclared here (not in a function)
559 | u32 order_hints[V4L2_AV1_REFS_PER_FRAME];
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:874:49: warning: 'struct v4l2_ctrl_av1_frame' declared inside parameter list will not be visible outside of this definition or declaration
874 | struct v4l2_ctrl_av1_frame *ctrl_fh)
| ^~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_cleanup_slots':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:890:36: error: invalid use of undefined type 'struct v4l2_ctrl_av1_frame'
890 | if (ctrl_fh->reference_frame_ts[ref_id] == timestamp) {
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:903:46: warning: 'struct v4l2_ctrl_av1_frame' declared inside parameter list will not be visible outside of this definition or declaration
903 | struct v4l2_ctrl_av1_frame *ctrl_fh)
| ^~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_slot':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:910:64: error: passing argument 3 of 'vdec_av1_slice_cleanup_slots' from incompatible pointer type [-Werror=incompatible-pointer-types]
910 | vdec_av1_slice_cleanup_slots(&vsi->slots, &vsi->frame, ctrl_fh);
| ^~~~~~~
| |
| struct v4l2_ctrl_av1_frame *
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:874:70: note: expected 'struct v4l2_ctrl_av1_frame *' but argument is of type 'struct v4l2_ctrl_av1_frame *'
874 | struct v4l2_ctrl_av1_frame *ctrl_fh)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:933:28: error: invalid use of undefined type 'struct v4l2_ctrl_av1_frame'
933 | if (ctrl_fh->reference_frame_ts[ref_id] == timestamp)
| ^~
In file included from include/linux/container_of.h:5,
from include/linux/list.h:5,
from include/linux/module.h:12,
from drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:7:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_free_working_buffer':
include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/compiler.h:232:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
232 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:55:59: note: in expansion of macro '__must_be_array'
55 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1027:25: note: in expansion of macro 'ARRAY_SIZE'
1027 | for (i = 0; i < ARRAY_SIZE(instance->mv); i++)
| ^~~~~~~~~~
include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/compiler.h:232:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
232 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:55:59: note: in expansion of macro '__must_be_array'
55 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1030:25: note: in expansion of macro 'ARRAY_SIZE'
1030 | for (i = 0; i < ARRAY_SIZE(instance->seg); i++)
| ^~~~~~~~~~
include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/compiler.h:232:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
232 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:55:59: note: in expansion of macro '__must_be_array'
55 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1033:25: note: in expansion of macro 'ARRAY_SIZE'
1033 | for (i = 0; i < ARRAY_SIZE(instance->cdf); i++)
| ^~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1130:44: warning: 'struct v4l2_av1_global_motion' declared inside parameter list will not be visible outside of this definition or declaration
1130 | struct v4l2_av1_global_motion *ctrl_gm)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_gm':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1135:39: error: invalid use of undefined type 'struct v4l2_av1_global_motion'
1135 | gm[i].wmtype = ctrl_gm->type[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1137:49: error: invalid use of undefined type 'struct v4l2_av1_global_motion'
1137 | gm[i].wmmat[j] = ctrl_gm->params[i][j];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1139:43: error: invalid use of undefined type 'struct v4l2_av1_global_motion'
1139 | gm[i].invalid = !!(ctrl_gm->invalid & BIT(i));
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1144:37: error: 'V4L2_AV1_WARP_MODEL_AFFINE' undeclared (first use in this function)
1144 | if (gm[i].wmtype <= V4L2_AV1_WARP_MODEL_AFFINE)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1144:37: note: each undeclared identifier is reported only once for each function it appears in
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1150:45: warning: 'struct v4l2_av1_segmentation' declared inside parameter list will not be visible outside of this definition or declaration
1150 | struct v4l2_av1_segmentation *ctrl_seg)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_seg':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1154:37: note: in expansion of macro 'SEGMENTATION_FLAG'
1154 | seg->segmentation_enabled = SEGMENTATION_FLAG(ctrl_seg, ENABLED);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_ENABLED' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_ENABLED'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1154:37: note: in expansion of macro 'SEGMENTATION_FLAG'
1154 | seg->segmentation_enabled = SEGMENTATION_FLAG(ctrl_seg, ENABLED);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1155:40: note: in expansion of macro 'SEGMENTATION_FLAG'
1155 | seg->segmentation_update_map = SEGMENTATION_FLAG(ctrl_seg, UPDATE_MAP);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_UPDATE_MAP' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_UPDATE_MAP'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1155:40: note: in expansion of macro 'SEGMENTATION_FLAG'
1155 | seg->segmentation_update_map = SEGMENTATION_FLAG(ctrl_seg, UPDATE_MAP);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1156:45: note: in expansion of macro 'SEGMENTATION_FLAG'
1156 | seg->segmentation_temporal_update = SEGMENTATION_FLAG(ctrl_seg, TEMPORAL_UPDATE);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_TEMPORAL_UPDATE' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_TEMPORAL_UPDATE'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1156:45: note: in expansion of macro 'SEGMENTATION_FLAG'
1156 | seg->segmentation_temporal_update = SEGMENTATION_FLAG(ctrl_seg, TEMPORAL_UPDATE);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1157:41: note: in expansion of macro 'SEGMENTATION_FLAG'
1157 | seg->segmentation_update_data = SEGMENTATION_FLAG(ctrl_seg, UPDATE_DATA);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_UPDATE_DATA' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_UPDATE_DATA'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1157:41: note: in expansion of macro 'SEGMENTATION_FLAG'
1157 | seg->segmentation_update_data = SEGMENTATION_FLAG(ctrl_seg, UPDATE_DATA);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1158:30: note: in expansion of macro 'SEGMENTATION_FLAG'
1158 | seg->segid_preskip = SEGMENTATION_FLAG(ctrl_seg, SEG_ID_PRE_SKIP);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_SEG_ID_PRE_SKIP' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_UPDATE_MAP'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1158:30: note: in expansion of macro 'SEGMENTATION_FLAG'
1158 | seg->segid_preskip = SEGMENTATION_FLAG(ctrl_seg, SEG_ID_PRE_SKIP);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1159:42: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
1159 | seg->last_active_segid = ctrl_seg->last_active_seg_id;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1162:56: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
1162 | seg->feature_enabled_mask[i] = ctrl_seg->feature_enabled[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1164:59: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
1164 | seg->feature_data[i][j] = ctrl_seg->feature_data[i][j];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1169:47: warning: 'struct v4l2_av1_quantization' declared inside parameter list will not be visible outside of this definition or declaration
1169 | struct v4l2_av1_quantization *ctrl_quant)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_quant':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1171:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1171 | quant->base_q_idx = ctrl_quant->base_q_idx;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1172:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1172 | quant->delta_qydc = ctrl_quant->delta_q_y_dc;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1173:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1173 | quant->delta_qudc = ctrl_quant->delta_q_u_dc;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1174:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1174 | quant->delta_quac = ctrl_quant->delta_q_u_ac;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1175:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1175 | quant->delta_qvdc = ctrl_quant->delta_q_v_dc;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1176:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1176 | quant->delta_qvac = ctrl_quant->delta_q_v_ac;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1177:33: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1177 | quant->qm_y = ctrl_quant->qm_y;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1178:33: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1178 | quant->qm_u = ctrl_quant->qm_u;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1179:33: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1179 | quant->qm_v = ctrl_quant->qm_v;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:46:48: error: invalid use of undefined type 'struct v4l2_av1_quantization'
46 | #define QUANT_FLAG(x, name) (!!((x)->flags & V4L2_AV1_QUANTIZATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1180:32: note: in expansion of macro 'QUANT_FLAG'
1180 | quant->using_qmatrix = QUANT_FLAG(ctrl_quant, USING_QMATRIX);
| ^~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:46:58: error: 'V4L2_AV1_QUANTIZATION_FLAG_USING_QMATRIX' undeclared (first use in this function)
46 | #define QUANT_FLAG(x, name) (!!((x)->flags & V4L2_AV1_QUANTIZATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1180:32: note: in expansion of macro 'QUANT_FLAG'
1180 | quant->using_qmatrix = QUANT_FLAG(ctrl_quant, USING_QMATRIX);
| ^~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_get_qindex':
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1184:42: warning: parameter 'segmentation_id' set but not used [-Wunused-but-set-parameter]
1184 | int segmentation_id)
| ~~~~^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1201:44: warning: 'struct v4l2_av1_loop_restoration' declared inside parameter list will not be visible outside of this definition or declaration
1201 | struct v4l2_av1_loop_restoration *ctrl_lr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_lr':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1208:56: error: invalid use of undefined type 'struct v4l2_av1_loop_restoration'
1208 | lr->frame_restoration_type[i] = ctrl_lr->frame_restoration_type[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1209:55: error: invalid use of undefined type 'struct v4l2_av1_loop_restoration'
1209 | lr->loop_restoration_size[i] = ctrl_lr->loop_restoration_size[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1219:44: warning: 'struct v4l2_av1_loop_filter' declared inside parameter list will not be visible outside of this definition or declaration
1219 | struct v4l2_av1_loop_filter *ctrl_lf)
| ^~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_lf':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1224:51: error: invalid use of undefined type 'struct v4l2_av1_loop_filter'
1224 | lf->loop_filter_level[i] = ctrl_lf->level[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1227:56: error: invalid use of undefined type 'struct v4l2_av1_loop_filter'
1227 | lf->loop_filter_ref_deltas[i] = ctrl_lf->ref_deltas[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1230:57: error: invalid use of undefined type 'struct v4l2_av1_loop_filter'
1230 | lf->loop_filter_mode_deltas[i] = ctrl_lf->mode_deltas[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1232:44: error: invalid use of undefined type 'struct v4l2_av1_loop_filter'
1232 | lf->loop_filter_sharpness = ctrl_lf->sharpness;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:44:48: error: invalid use of undefined type 'struct v4l2_av1_loop_filter'
44 | #define BIT_FLAG(x, bit) (!!((x)->flags & (bit)))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1234:20: note: in expansion of macro 'BIT_FLAG'
1234 | BIT_FLAG(ctrl_lf, V4L2_AV1_LOOP_FILTER_FLAG_DELTA_ENABLED);
| ^~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1234:38: error: 'V4L2_AV1_LOOP_FILTER_FLAG_DELTA_ENABLED' undeclared (first use in this function); did you mean 'V4L2_VP9_LOOP_FILTER_FLAG_DELTA_ENABLED'?
1234 | BIT_FLAG(ctrl_lf, V4L2_AV1_LOOP_FILTER_FLAG_DELTA_ENABLED);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:44:59: note: in definition of macro 'BIT_FLAG'
44 | #define BIT_FLAG(x, bit) (!!((x)->flags & (bit)))
| ^~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1238:46: warning: 'struct v4l2_av1_cdef' declared inside parameter list will not be visible outside of this definition or declaration
1238 | struct v4l2_av1_cdef *ctrl_cdef)
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_cdef':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1242:39: error: invalid use of undefined type 'struct v4l2_av1_cdef'
1242 | cdef->cdef_damping = ctrl_cdef->damping_minus_3 + 3;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1243:36: error: invalid use of undefined type 'struct v4l2_av1_cdef'
1243 | cdef->cdef_bits = ctrl_cdef->bits;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1245:25: error: 'V4L2_AV1_CDEF_MAX' undeclared (first use in this function)
1245 | for (i = 0; i < V4L2_AV1_CDEF_MAX; i++) {
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1246:30: error: invalid use of undefined type 'struct v4l2_av1_cdef'
1246 | if (ctrl_cdef->y_sec_strength[i] == 4)
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1247:34: error: invalid use of undefined type 'struct v4l2_av1_cdef'
1247 | ctrl_cdef->y_sec_strength[i] -= 1;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1249:30: error: invalid use of undefined type 'struct v4l2_av1_cdef'
1249 | if (ctrl_cdef->uv_sec_strength[i] == 4)
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1250:34: error: invalid use of undefined type 'struct v4l2_av1_cdef'
1250 | ctrl_cdef->uv_sec_strength[i] -= 1;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1253:34: error: invalid use of undefined type 'struct v4l2_av1_cdef'
1253 | ctrl_cdef->y_pri_strength[i] << SECONDARY_FILTER_STRENGTH_NUM_BITS |
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1254:34: error: invalid use of undefined type 'struct v4l2_av1_cdef'
1254 | ctrl_cdef->y_sec_strength[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1256:34: error: invalid use of undefined type 'struct v4l2_av1_cdef'
1256 | ctrl_cdef->uv_pri_strength[i] << SECONDARY_FILTER_STRENGTH_NUM_BITS |
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1257:34: error: invalid use of undefined type 'struct v4l2_av1_cdef'
1257 | ctrl_cdef->uv_sec_strength[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1262:45: warning: 'struct v4l2_ctrl_av1_sequence' declared inside parameter list will not be visible outside of this definition or declaration
1262 | struct v4l2_ctrl_av1_sequence *ctrl_seq)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_seq':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1264:33: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
1264 | seq->bitdepth = ctrl_seq->bit_depth;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1265:40: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
1265 | seq->max_frame_width = ctrl_seq->max_frame_width_minus_1 + 1;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1266:41: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
1266 | seq->max_frame_height = ctrl_seq->max_frame_height_minus_1 + 1;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1267:32: note: in expansion of macro 'SEQUENCE_FLAG'
1267 | seq->enable_superres = SEQUENCE_FLAG(ctrl_seq, ENABLE_SUPERRES);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_ENABLE_SUPERRES' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1267:32: note: in expansion of macro 'SEQUENCE_FLAG'
1267 | seq->enable_superres = SEQUENCE_FLAG(ctrl_seq, ENABLE_SUPERRES);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1268:36: note: in expansion of macro 'SEQUENCE_FLAG'
1268 | seq->enable_filter_intra = SEQUENCE_FLAG(ctrl_seq, ENABLE_FILTER_INTRA);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_ENABLE_FILTER_INTRA' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1268:36: note: in expansion of macro 'SEQUENCE_FLAG'
1268 | seq->enable_filter_intra = SEQUENCE_FLAG(ctrl_seq, ENABLE_FILTER_INTRA);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1269:41: note: in expansion of macro 'SEQUENCE_FLAG'
1269 | seq->enable_intra_edge_filter = SEQUENCE_FLAG(ctrl_seq, ENABLE_INTRA_EDGE_FILTER);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_ENABLE_INTRA_EDGE_FILTER' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1269:41: note: in expansion of macro 'SEQUENCE_FLAG'
1269 | seq->enable_intra_edge_filter = SEQUENCE_FLAG(ctrl_seq, ENABLE_INTRA_EDGE_FILTER);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1270:43: note: in expansion of macro 'SEQUENCE_FLAG'
1270 | seq->enable_interintra_compound = SEQUENCE_FLAG(ctrl_seq, ENABLE_INTERINTRA_COMPOUND);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_ENABLE_INTERINTRA_COMPOUND' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1270:43: note: in expansion of macro 'SEQUENCE_FLAG'
1270 | seq->enable_interintra_compound = SEQUENCE_FLAG(ctrl_seq, ENABLE_INTERINTRA_COMPOUND);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1271:39: note: in expansion of macro 'SEQUENCE_FLAG'
1271 | seq->enable_masked_compound = SEQUENCE_FLAG(ctrl_seq, ENABLE_MASKED_COMPOUND);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_ENABLE_MASKED_COMPOUND' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1271:39: note: in expansion of macro 'SEQUENCE_FLAG'
1271 | seq->enable_masked_compound = SEQUENCE_FLAG(ctrl_seq, ENABLE_MASKED_COMPOUND);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1272:35: note: in expansion of macro 'SEQUENCE_FLAG'
1272 | seq->enable_dual_filter = SEQUENCE_FLAG(ctrl_seq, ENABLE_DUAL_FILTER);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_ENABLE_DUAL_FILTER' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1272:35: note: in expansion of macro 'SEQUENCE_FLAG'
1272 | seq->enable_dual_filter = SEQUENCE_FLAG(ctrl_seq, ENABLE_DUAL_FILTER);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1273:32: note: in expansion of macro 'SEQUENCE_FLAG'
1273 | seq->enable_jnt_comp = SEQUENCE_FLAG(ctrl_seq, ENABLE_JNT_COMP);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_ENABLE_JNT_COMP' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1273:32: note: in expansion of macro 'SEQUENCE_FLAG'
1273 | seq->enable_jnt_comp = SEQUENCE_FLAG(ctrl_seq, ENABLE_JNT_COMP);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1274:28: note: in expansion of macro 'SEQUENCE_FLAG'
1274 | seq->mono_chrome = SEQUENCE_FLAG(ctrl_seq, MONO_CHROME);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_MONO_CHROME' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1274:28: note: in expansion of macro 'SEQUENCE_FLAG'
1274 | seq->mono_chrome = SEQUENCE_FLAG(ctrl_seq, MONO_CHROME);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1275:34: note: in expansion of macro 'SEQUENCE_FLAG'
1275 | seq->enable_order_hint = SEQUENCE_FLAG(ctrl_seq, ENABLE_ORDER_HINT);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_ENABLE_ORDER_HINT' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1275:34: note: in expansion of macro 'SEQUENCE_FLAG'
1275 | seq->enable_order_hint = SEQUENCE_FLAG(ctrl_seq, ENABLE_ORDER_HINT);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1276:40: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
1276 | seq->order_hint_bits = ctrl_seq->order_hint_bits;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1277:39: note: in expansion of macro 'SEQUENCE_FLAG'
1277 | seq->use_128x128_superblock = SEQUENCE_FLAG(ctrl_seq, USE_128X128_SUPERBLOCK);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_USE_128X128_SUPERBLOCK' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1277:39: note: in expansion of macro 'SEQUENCE_FLAG'
1277 | seq->use_128x128_superblock = SEQUENCE_FLAG(ctrl_seq, USE_128X128_SUPERBLOCK);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1278:30: note: in expansion of macro 'SEQUENCE_FLAG'
1278 | seq->subsampling_x = SEQUENCE_FLAG(ctrl_seq, SUBSAMPLING_X);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_SUBSAMPLING_X' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1278:30: note: in expansion of macro 'SEQUENCE_FLAG'
1278 | seq->subsampling_x = SEQUENCE_FLAG(ctrl_seq, SUBSAMPLING_X);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:48: error: invalid use of undefined type 'struct v4l2_ctrl_av1_sequence'
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1279:30: note: in expansion of macro 'SEQUENCE_FLAG'
1279 | seq->subsampling_y = SEQUENCE_FLAG(ctrl_seq, SUBSAMPLING_Y);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:47:58: error: 'V4L2_AV1_SEQUENCE_FLAG_SUBSAMPLING_Y' undeclared (first use in this function)
47 | #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1279:30: note: in expansion of macro 'SEQUENCE_FLAG'
1279 | seq->subsampling_y = SEQUENCE_FLAG(ctrl_seq, SUBSAMPLING_Y);
| ^~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1283:46: warning: 'struct v4l2_av1_tile_info' declared inside parameter list will not be visible outside of this definition or declaration
1283 | struct v4l2_av1_tile_info *ctrl_tile)
| ^~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_tile':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1290:36: error: invalid use of undefined type 'struct v4l2_av1_tile_info'
1290 | tile->tile_cols = ctrl_tile->tile_cols;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1291:36: error: invalid use of undefined type 'struct v4l2_av1_tile_info'
1291 | tile->tile_rows = ctrl_tile->tile_rows;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1292:49: error: invalid use of undefined type 'struct v4l2_av1_tile_info'
1292 | tile->context_update_tile_id = ctrl_tile->context_update_tile_id;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:44:48: error: invalid use of undefined type 'struct v4l2_av1_tile_info'
44 | #define BIT_FLAG(x, bit) (!!((x)->flags & (bit)))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1294:17: note: in expansion of macro 'BIT_FLAG'
1294 | BIT_FLAG(ctrl_tile, V4L2_AV1_TILE_INFO_FLAG_UNIFORM_TILE_SPACING);
| ^~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1294:37: error: 'V4L2_AV1_TILE_INFO_FLAG_UNIFORM_TILE_SPACING' undeclared (first use in this function)
1294 | BIT_FLAG(ctrl_tile, V4L2_AV1_TILE_INFO_FLAG_UNIFORM_TILE_SPACING);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:44:59: note: in definition of macro 'BIT_FLAG'
44 | #define BIT_FLAG(x, bit) (!!((x)->flags & (bit)))
| ^~~
In file included from include/vdso/const.h:5,
from include/linux/const.h:4,
from include/linux/list.h:9:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1298:40: error: invalid use of undefined type 'struct v4l2_av1_tile_info'
1298 | ALIGN(ctrl_tile->mi_col_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~
include/uapi/linux/const.h:32:44: note: in definition of macro '__ALIGN_KERNEL_MASK'
32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
| ^
include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL'
8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a))
| ^~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1298:25: note: in expansion of macro 'ALIGN'
1298 | ALIGN(ctrl_tile->mi_col_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1298:40: error: invalid use of undefined type 'struct v4l2_av1_tile_info'
1298 | ALIGN(ctrl_tile->mi_col_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~
include/uapi/linux/const.h:32:50: note: in definition of macro '__ALIGN_KERNEL_MASK'
32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
| ^~~~
include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL'
8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a))
| ^~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1298:25: note: in expansion of macro 'ALIGN'
1298 | ALIGN(ctrl_tile->mi_col_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1298:40: error: invalid use of undefined type 'struct v4l2_av1_tile_info'
1298 | ALIGN(ctrl_tile->mi_col_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~
include/uapi/linux/const.h:32:61: note: in definition of macro '__ALIGN_KERNEL_MASK'
32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
| ^~~~
include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL'
8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a))
| ^~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1298:25: note: in expansion of macro 'ALIGN'
1298 | ALIGN(ctrl_tile->mi_col_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1302:40: error: invalid use of undefined type 'struct v4l2_av1_tile_info'
1302 | ALIGN(ctrl_tile->mi_row_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~
include/uapi/linux/const.h:32:44: note: in definition of macro '__ALIGN_KERNEL_MASK'
32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
| ^
include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL'
8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a))
| ^~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1302:25: note: in expansion of macro 'ALIGN'
1302 | ALIGN(ctrl_tile->mi_row_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1302:40: error: invalid use of undefined type 'struct v4l2_av1_tile_info'
1302 | ALIGN(ctrl_tile->mi_row_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~
include/uapi/linux/const.h:32:50: note: in definition of macro '__ALIGN_KERNEL_MASK'
32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
| ^~~~
include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL'
8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a))
| ^~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1302:25: note: in expansion of macro 'ALIGN'
1302 | ALIGN(ctrl_tile->mi_row_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1302:40: error: invalid use of undefined type 'struct v4l2_av1_tile_info'
1302 | ALIGN(ctrl_tile->mi_row_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~
include/uapi/linux/const.h:32:61: note: in definition of macro '__ALIGN_KERNEL_MASK'
32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
| ^~~~
include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL'
8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a))
| ^~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1302:25: note: in expansion of macro 'ALIGN'
1302 | ALIGN(ctrl_tile->mi_row_starts[i], BIT(mib_size_log2)) >> mib_size_log2;
| ^~~~~ drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
..
vim +874 drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c
871
872 static void vdec_av1_slice_cleanup_slots(struct vdec_av1_slice_slot *slots,
873 struct vdec_av1_slice_frame *frame,
> 874 struct v4l2_ctrl_av1_frame *ctrl_fh)
875 {
876 int slot_id, ref_id;
877
878 for (ref_id = 0; ref_id < V4L2_AV1_TOTAL_REFS_PER_FRAME; ref_id++)
879 frame->ref_frame_map[ref_id] = AV1_INVALID_IDX;
880
881 for (slot_id = 0; slot_id < AV1_MAX_FRAME_BUF_COUNT; slot_id++) {
882 u64 timestamp = slots->timestamp[slot_id];
883 bool ref_used = false;
884
885 /* ignored unused slots */
886 if (slots->frame_info[slot_id].ref_count == 0)
887 continue;
888
889 for (ref_id = 0; ref_id < V4L2_AV1_TOTAL_REFS_PER_FRAME; ref_id++) {
890 if (ctrl_fh->reference_frame_ts[ref_id] == timestamp) {
891 frame->ref_frame_map[ref_id] = slot_id;
892 ref_used = true;
893 }
894 }
895
896 if (!ref_used)
897 vdec_av1_slice_decrease_ref_count(slots, slot_id);
898 }
899 }
900
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Xiaoyong,
kernel test robot noticed the following build errors:
[auto build test ERROR on media-tree/master]
[also build test ERROR on linus/master v6.3-rc6 next-20230413] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Xiaoyong-Lu/media-mediatek-vcodec-support-stateless-AV1-decoder/20230414-163725 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/20230414083020.22219-1-xiaoyong.lu%40mediatek.com patch subject: [v10] media: mediatek: vcodec: support stateless AV1 decoder config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230414/[email protected]/config) compiler: sh4-linux-gcc (GCC) 12.1.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
# https://github.com/intel-lab-lkp/linux/commit/a2f78eab626ee9b1c17fbe7399d007277463ed80
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Xiaoyong-Lu/media-mediatek-vcodec-support-stateless-AV1-decoder/20230414-163725 git checkout a2f78eab626ee9b1c17fbe7399d007277463ed80
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/media/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:188:23: error: 'V4L2_AV1_MAX_TILE_COUNT' undeclared here (not in a function)
188 | u32 tile_size[V4L2_AV1_MAX_TILE_COUNT];
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:268:26: error: 'V4L2_AV1_MAX_SEGMENTS' undeclared here (not in a function)
268 | int feature_data[V4L2_AV1_MAX_SEGMENTS][V4L2_AV1_SEG_LVL_MAX];
| ^~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:268:49: error: 'V4L2_AV1_SEG_LVL_MAX' undeclared here (not in a function); did you mean 'V4L2_VP9_SEG_LVL_MAX'?
268 | int feature_data[V4L2_AV1_MAX_SEGMENTS][V4L2_AV1_SEG_LVL_MAX];
| ^~~~~~~~~~~~~~~~~~~~
| V4L2_VP9_SEG_LVL_MAX
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:336:35: error: 'V4L2_AV1_NUM_PLANES_MAX' undeclared here (not in a function)
336 | u8 frame_restoration_type[V4L2_AV1_NUM_PLANES_MAX];
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:356:36: error: 'V4L2_AV1_TOTAL_REFS_PER_FRAME' undeclared here (not in a function)
356 | int loop_filter_ref_deltas[V4L2_AV1_TOTAL_REFS_PER_FRAME];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:406:27: error: 'V4L2_AV1_MAX_TILE_COLS' undeclared here (not in a function)
406 | int mi_col_starts[V4L2_AV1_MAX_TILE_COLS + 1];
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:407:27: error: 'V4L2_AV1_MAX_TILE_ROWS' undeclared here (not in a function)
407 | int mi_row_starts[V4L2_AV1_MAX_TILE_ROWS + 1];
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:559:25: error: 'V4L2_AV1_REFS_PER_FRAME' undeclared here (not in a function)
559 | u32 order_hints[V4L2_AV1_REFS_PER_FRAME];
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:874:49: warning: 'struct v4l2_ctrl_av1_frame' declared inside parameter list will not be visible outside of this definition or declaration
874 | struct v4l2_ctrl_av1_frame *ctrl_fh)
| ^~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_cleanup_slots':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:890:36: error: invalid use of undefined type 'struct v4l2_ctrl_av1_frame'
890 | if (ctrl_fh->reference_frame_ts[ref_id] == timestamp) {
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:903:46: warning: 'struct v4l2_ctrl_av1_frame' declared inside parameter list will not be visible outside of this definition or declaration
903 | struct v4l2_ctrl_av1_frame *ctrl_fh)
| ^~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_slot':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:910:64: error: passing argument 3 of 'vdec_av1_slice_cleanup_slots' from incompatible pointer type [-Werror=incompatible-pointer-types]
910 | vdec_av1_slice_cleanup_slots(&vsi->slots, &vsi->frame, ctrl_fh);
| ^~~~~~~
| |
| struct v4l2_ctrl_av1_frame *
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:874:70: note: expected 'struct v4l2_ctrl_av1_frame *' but argument is of type 'struct v4l2_ctrl_av1_frame *'
874 | struct v4l2_ctrl_av1_frame *ctrl_fh)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:933:28: error: invalid use of undefined type 'struct v4l2_ctrl_av1_frame'
933 | if (ctrl_fh->reference_frame_ts[ref_id] == timestamp)
| ^~
In file included from include/linux/container_of.h:5,
from include/linux/list.h:5,
from include/linux/module.h:12,
from drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:7:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_free_working_buffer':
>> include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/compiler.h:232:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
232 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:55:59: note: in expansion of macro '__must_be_array'
55 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1027:25: note: in expansion of macro 'ARRAY_SIZE'
1027 | for (i = 0; i < ARRAY_SIZE(instance->mv); i++)
| ^~~~~~~~~~
>> include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/compiler.h:232:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
232 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:55:59: note: in expansion of macro '__must_be_array'
55 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1030:25: note: in expansion of macro 'ARRAY_SIZE'
1030 | for (i = 0; i < ARRAY_SIZE(instance->seg); i++)
| ^~~~~~~~~~
>> include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/compiler.h:232:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
232 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:55:59: note: in expansion of macro '__must_be_array'
55 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1033:25: note: in expansion of macro 'ARRAY_SIZE'
1033 | for (i = 0; i < ARRAY_SIZE(instance->cdf); i++)
| ^~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1130:44: warning: 'struct v4l2_av1_global_motion' declared inside parameter list will not be visible outside of this definition or declaration
1130 | struct v4l2_av1_global_motion *ctrl_gm)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_gm':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1135:39: error: invalid use of undefined type 'struct v4l2_av1_global_motion'
1135 | gm[i].wmtype = ctrl_gm->type[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1137:49: error: invalid use of undefined type 'struct v4l2_av1_global_motion'
1137 | gm[i].wmmat[j] = ctrl_gm->params[i][j];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1139:43: error: invalid use of undefined type 'struct v4l2_av1_global_motion'
1139 | gm[i].invalid = !!(ctrl_gm->invalid & BIT(i));
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1144:37: error: 'V4L2_AV1_WARP_MODEL_AFFINE' undeclared (first use in this function)
1144 | if (gm[i].wmtype <= V4L2_AV1_WARP_MODEL_AFFINE)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1144:37: note: each undeclared identifier is reported only once for each function it appears in
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1150:45: warning: 'struct v4l2_av1_segmentation' declared inside parameter list will not be visible outside of this definition or declaration
1150 | struct v4l2_av1_segmentation *ctrl_seg)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_seg':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1154:37: note: in expansion of macro 'SEGMENTATION_FLAG'
1154 | seg->segmentation_enabled = SEGMENTATION_FLAG(ctrl_seg, ENABLED);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_ENABLED' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_ENABLED'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1154:37: note: in expansion of macro 'SEGMENTATION_FLAG'
1154 | seg->segmentation_enabled = SEGMENTATION_FLAG(ctrl_seg, ENABLED);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1155:40: note: in expansion of macro 'SEGMENTATION_FLAG'
1155 | seg->segmentation_update_map = SEGMENTATION_FLAG(ctrl_seg, UPDATE_MAP);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_UPDATE_MAP' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_UPDATE_MAP'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1155:40: note: in expansion of macro 'SEGMENTATION_FLAG'
1155 | seg->segmentation_update_map = SEGMENTATION_FLAG(ctrl_seg, UPDATE_MAP);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1156:45: note: in expansion of macro 'SEGMENTATION_FLAG'
1156 | seg->segmentation_temporal_update = SEGMENTATION_FLAG(ctrl_seg, TEMPORAL_UPDATE);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_TEMPORAL_UPDATE' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_TEMPORAL_UPDATE'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1156:45: note: in expansion of macro 'SEGMENTATION_FLAG'
1156 | seg->segmentation_temporal_update = SEGMENTATION_FLAG(ctrl_seg, TEMPORAL_UPDATE);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1157:41: note: in expansion of macro 'SEGMENTATION_FLAG'
1157 | seg->segmentation_update_data = SEGMENTATION_FLAG(ctrl_seg, UPDATE_DATA);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_UPDATE_DATA' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_UPDATE_DATA'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1157:41: note: in expansion of macro 'SEGMENTATION_FLAG'
1157 | seg->segmentation_update_data = SEGMENTATION_FLAG(ctrl_seg, UPDATE_DATA);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1158:30: note: in expansion of macro 'SEGMENTATION_FLAG'
1158 | seg->segid_preskip = SEGMENTATION_FLAG(ctrl_seg, SEG_ID_PRE_SKIP);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_SEG_ID_PRE_SKIP' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_UPDATE_MAP'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1158:30: note: in expansion of macro 'SEGMENTATION_FLAG'
1158 | seg->segid_preskip = SEGMENTATION_FLAG(ctrl_seg, SEG_ID_PRE_SKIP);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1159:42: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
1159 | seg->last_active_segid = ctrl_seg->last_active_seg_id;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1162:56: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
1162 | seg->feature_enabled_mask[i] = ctrl_seg->feature_enabled[i];
| ^~vim +16 include/linux/build_bug.h
bc6245e5efd70c Ian Abbott 2017-07-10 6
bc6245e5efd70c Ian Abbott 2017-07-10 7 #ifdef __CHECKER__
bc6245e5efd70c Ian Abbott 2017-07-10 8 #define BUILD_BUG_ON_ZERO(e) (0)
bc6245e5efd70c Ian Abbott 2017-07-10 9 #else /* __CHECKER__ */
bc6245e5efd70c Ian Abbott 2017-07-10 10 /*
bc6245e5efd70c Ian Abbott 2017-07-10 11 * Force a compilation error if condition is true, but also produce a
8788994376d84d Rikard Falkeborn 2019-12-04 12 * result (of value 0 and type int), so the expression can be used
bc6245e5efd70c Ian Abbott 2017-07-10 13 * e.g. in a structure initializer (or where-ever else comma expressions
bc6245e5efd70c Ian Abbott 2017-07-10 14 * aren't permitted).
bc6245e5efd70c Ian Abbott 2017-07-10 15 */
8788994376d84d Rikard Falkeborn 2019-12-04 @16 #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
527edbc18a70e7 Masahiro Yamada 2019-01-03 17 #endif /* __CHECKER__ */
527edbc18a70e7 Masahiro Yamada 2019-01-03 18 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Xiaoyong,
kernel test robot noticed the following build errors:
[auto build test ERROR on media-tree/master]
[also build test ERROR on linus/master v6.3 next-20230421] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Xiaoyong-Lu/media-mediatek-vcodec-support-stateless-AV1-decoder/20230414-163725 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/20230414083020.22219-1-xiaoyong.lu%40mediatek.com patch subject: [v10] media: mediatek: vcodec: support stateless AV1 decoder config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20230424/[email protected]/config) compiler: arceb-elf-gcc (GCC) 12.1.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
# https://github.com/intel-lab-lkp/linux/commit/a2f78eab626ee9b1c17fbe7399d007277463ed80
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Xiaoyong-Lu/media-mediatek-vcodec-support-stateless-AV1-decoder/20230414-163725 git checkout a2f78eab626ee9b1c17fbe7399d007277463ed80
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:188:23: error: 'V4L2_AV1_MAX_TILE_COUNT' undeclared here (not in a function)
188 | u32 tile_size[V4L2_AV1_MAX_TILE_COUNT];
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:268:26: error: 'V4L2_AV1_MAX_SEGMENTS' undeclared here (not in a function)
268 | int feature_data[V4L2_AV1_MAX_SEGMENTS][V4L2_AV1_SEG_LVL_MAX];
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:268:49: error: 'V4L2_AV1_SEG_LVL_MAX' undeclared here (not in a function); did you mean 'V4L2_VP9_SEG_LVL_MAX'?
268 | int feature_data[V4L2_AV1_MAX_SEGMENTS][V4L2_AV1_SEG_LVL_MAX];
| ^~~~~~~~~~~~~~~~~~~~
| V4L2_VP9_SEG_LVL_MAX
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:336:35: error: 'V4L2_AV1_NUM_PLANES_MAX' undeclared here (not in a function)
336 | u8 frame_restoration_type[V4L2_AV1_NUM_PLANES_MAX];
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:356:36: error: 'V4L2_AV1_TOTAL_REFS_PER_FRAME' undeclared here (not in a function)
356 | int loop_filter_ref_deltas[V4L2_AV1_TOTAL_REFS_PER_FRAME];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:406:27: error: 'V4L2_AV1_MAX_TILE_COLS' undeclared here (not in a function)
406 | int mi_col_starts[V4L2_AV1_MAX_TILE_COLS + 1];
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:407:27: error: 'V4L2_AV1_MAX_TILE_ROWS' undeclared here (not in a function)
407 | int mi_row_starts[V4L2_AV1_MAX_TILE_ROWS + 1];
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:559:25: error: 'V4L2_AV1_REFS_PER_FRAME' undeclared here (not in a function)
559 | u32 order_hints[V4L2_AV1_REFS_PER_FRAME];
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:874:49: warning: 'struct v4l2_ctrl_av1_frame' declared inside parameter list will not be visible outside of this definition or declaration
874 | struct v4l2_ctrl_av1_frame *ctrl_fh)
| ^~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_cleanup_slots':
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:890:36: error: invalid use of undefined type 'struct v4l2_ctrl_av1_frame'
890 | if (ctrl_fh->reference_frame_ts[ref_id] == timestamp) {
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:903:46: warning: 'struct v4l2_ctrl_av1_frame' declared inside parameter list will not be visible outside of this definition or declaration
903 | struct v4l2_ctrl_av1_frame *ctrl_fh)
| ^~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_slot':
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:910:64: error: passing argument 3 of 'vdec_av1_slice_cleanup_slots' from incompatible pointer type [-Werror=incompatible-pointer-types]
910 | vdec_av1_slice_cleanup_slots(&vsi->slots, &vsi->frame, ctrl_fh);
| ^~~~~~~
| |
| struct v4l2_ctrl_av1_frame *
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:874:70: note: expected 'struct v4l2_ctrl_av1_frame *' but argument is of type 'struct v4l2_ctrl_av1_frame *'
874 | struct v4l2_ctrl_av1_frame *ctrl_fh)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:933:28: error: invalid use of undefined type 'struct v4l2_ctrl_av1_frame'
933 | if (ctrl_fh->reference_frame_ts[ref_id] == timestamp)
| ^~
In file included from include/linux/container_of.h:5,
from include/linux/list.h:5,
from include/linux/module.h:12,
from drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:7:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_free_working_buffer':
>> include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/compiler.h:232:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
232 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:55:59: note: in expansion of macro '__must_be_array'
55 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1027:25: note: in expansion of macro 'ARRAY_SIZE'
1027 | for (i = 0; i < ARRAY_SIZE(instance->mv); i++)
| ^~~~~~~~~~
>> include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/compiler.h:232:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
232 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:55:59: note: in expansion of macro '__must_be_array'
55 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1030:25: note: in expansion of macro 'ARRAY_SIZE'
1030 | for (i = 0; i < ARRAY_SIZE(instance->seg); i++)
| ^~~~~~~~~~
>> include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/compiler.h:232:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
232 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:55:59: note: in expansion of macro '__must_be_array'
55 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1033:25: note: in expansion of macro 'ARRAY_SIZE'
1033 | for (i = 0; i < ARRAY_SIZE(instance->cdf); i++)
| ^~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1130:44: warning: 'struct v4l2_av1_global_motion' declared inside parameter list will not be visible outside of this definition or declaration
1130 | struct v4l2_av1_global_motion *ctrl_gm)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_gm':
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1135:39: error: invalid use of undefined type 'struct v4l2_av1_global_motion'
1135 | gm[i].wmtype = ctrl_gm->type[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1137:49: error: invalid use of undefined type 'struct v4l2_av1_global_motion'
1137 | gm[i].wmmat[j] = ctrl_gm->params[i][j];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1139:43: error: invalid use of undefined type 'struct v4l2_av1_global_motion'
1139 | gm[i].invalid = !!(ctrl_gm->invalid & BIT(i));
| ^~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1144:37: error: 'V4L2_AV1_WARP_MODEL_AFFINE' undeclared (first use in this function)
1144 | if (gm[i].wmtype <= V4L2_AV1_WARP_MODEL_AFFINE)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1144:37: note: each undeclared identifier is reported only once for each function it appears in
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1150:45: warning: 'struct v4l2_av1_segmentation' declared inside parameter list will not be visible outside of this definition or declaration
1150 | struct v4l2_av1_segmentation *ctrl_seg)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_seg':
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1154:37: note: in expansion of macro 'SEGMENTATION_FLAG'
1154 | seg->segmentation_enabled = SEGMENTATION_FLAG(ctrl_seg, ENABLED);
| ^~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_ENABLED' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_ENABLED'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1154:37: note: in expansion of macro 'SEGMENTATION_FLAG'
1154 | seg->segmentation_enabled = SEGMENTATION_FLAG(ctrl_seg, ENABLED);
| ^~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1155:40: note: in expansion of macro 'SEGMENTATION_FLAG'
1155 | seg->segmentation_update_map = SEGMENTATION_FLAG(ctrl_seg, UPDATE_MAP);
| ^~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_UPDATE_MAP' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_UPDATE_MAP'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1155:40: note: in expansion of macro 'SEGMENTATION_FLAG'
1155 | seg->segmentation_update_map = SEGMENTATION_FLAG(ctrl_seg, UPDATE_MAP);
| ^~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1156:45: note: in expansion of macro 'SEGMENTATION_FLAG'
1156 | seg->segmentation_temporal_update = SEGMENTATION_FLAG(ctrl_seg, TEMPORAL_UPDATE);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_TEMPORAL_UPDATE' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_TEMPORAL_UPDATE'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1156:45: note: in expansion of macro 'SEGMENTATION_FLAG'
1156 | seg->segmentation_temporal_update = SEGMENTATION_FLAG(ctrl_seg, TEMPORAL_UPDATE);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1157:41: note: in expansion of macro 'SEGMENTATION_FLAG'
1157 | seg->segmentation_update_data = SEGMENTATION_FLAG(ctrl_seg, UPDATE_DATA);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_UPDATE_DATA' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_UPDATE_DATA'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1157:41: note: in expansion of macro 'SEGMENTATION_FLAG'
1157 | seg->segmentation_update_data = SEGMENTATION_FLAG(ctrl_seg, UPDATE_DATA);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:48: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1158:30: note: in expansion of macro 'SEGMENTATION_FLAG'
1158 | seg->segid_preskip = SEGMENTATION_FLAG(ctrl_seg, SEG_ID_PRE_SKIP);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:45:58: error: 'V4L2_AV1_SEGMENTATION_FLAG_SEG_ID_PRE_SKIP' undeclared (first use in this function); did you mean 'V4L2_VP9_SEGMENTATION_FLAG_UPDATE_MAP'?
45 | #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1158:30: note: in expansion of macro 'SEGMENTATION_FLAG'
1158 | seg->segid_preskip = SEGMENTATION_FLAG(ctrl_seg, SEG_ID_PRE_SKIP);
| ^~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1159:42: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
1159 | seg->last_active_segid = ctrl_seg->last_active_seg_id;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1162:56: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
1162 | seg->feature_enabled_mask[i] = ctrl_seg->feature_enabled[i];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1164:59: error: invalid use of undefined type 'struct v4l2_av1_segmentation'
1164 | seg->feature_data[i][j] = ctrl_seg->feature_data[i][j];
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1169:47: warning: 'struct v4l2_av1_quantization' declared inside parameter list will not be visible outside of this definition or declaration
1169 | struct v4l2_av1_quantization *ctrl_quant)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_quant':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1171:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1171 | quant->base_q_idx = ctrl_quant->base_q_idx;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1172:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1172 | quant->delta_qydc = ctrl_quant->delta_q_y_dc;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1173:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1173 | quant->delta_qudc = ctrl_quant->delta_q_u_dc;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1174:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1174 | quant->delta_quac = ctrl_quant->delta_q_u_ac;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1175:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1175 | quant->delta_qvdc = ctrl_quant->delta_q_v_dc;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1176:39: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1176 | quant->delta_qvac = ctrl_quant->delta_q_v_ac;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1177:33: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1177 | quant->qm_y = ctrl_quant->qm_y;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1178:33: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1178 | quant->qm_u = ctrl_quant->qm_u;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1179:33: error: invalid use of undefined type 'struct v4l2_av1_quantization'
1179 | quant->qm_v = ctrl_quant->qm_v;
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:46:48: error: invalid use of undefined type 'struct v4l2_av1_quantization'
46 | #define QUANT_FLAG(x, name) (!!((x)->flags & V4L2_AV1_QUANTIZATION_FLAG_##name))
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1180:32: note: in expansion of macro 'QUANT_FLAG'
1180 | quant->using_qmatrix = QUANT_FLAG(ctrl_quant, USING_QMATRIX);
| ^~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:46:58: error: 'V4L2_AV1_QUANTIZATION_FLAG_USING_QMATRIX' undeclared (first use in this function)
46 | #define QUANT_FLAG(x, name) (!!((x)->flags & V4L2_AV1_QUANTIZATION_FLAG_##name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1180:32: note: in expansion of macro 'QUANT_FLAG'
1180 | quant->using_qmatrix = QUANT_FLAG(ctrl_quant, USING_QMATRIX);
| ^~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_get_qindex':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1184:42: warning: parameter 'segmentation_id' set but not used [-Wunused-but-set-parameter]
1184 | int segmentation_id)
| ~~~~^~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: At top level:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1201:44: warning: 'struct v4l2_av1_loop_restoration' declared inside parameter list will not be visible outside of this definition or declaration
1201 | struct v4l2_av1_loop_restoration *ctrl_lr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_lr':
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1208:56: error: invalid use of undefined type 'struct v4l2_av1_loop_restoration'
1208 | lr->frame_restoration_type[i] = ctrl_lr->frame_restoration_type[i];
| ^~
--
drivers/media/platform/mediatek/vcodec/vdec_drv_if.c: In function 'vdec_if_init':
>> drivers/media/platform/mediatek/vcodec/vdec_drv_if.c:52:14: error: 'V4L2_PIX_FMT_AV1_FRAME' undeclared (first use in this function); did you mean 'V4L2_PIX_FMT_VP9_FRAME'?
52 | case V4L2_PIX_FMT_AV1_FRAME:
| ^~~~~~~~~~~~~~~~~~~~~~
| V4L2_PIX_FMT_VP9_FRAME
drivers/media/platform/mediatek/vcodec/vdec_drv_if.c:52:14: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c: In function 'vdec_msg_queue_init':
>> drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c:284:43: error: 'V4L2_PIX_FMT_AV1_FRAME' undeclared (first use in this function); did you mean 'V4L2_PIX_FMT_VP9_FRAME'?
284 | if (ctx->current_codec == V4L2_PIX_FMT_AV1_FRAME) {
| ^~~~~~~~~~~~~~~~~~~~~~
| V4L2_PIX_FMT_VP9_FRAME
drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c:284:43: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c:24:43: error: 'V4L2_AV1_MAX_TILE_COUNT' undeclared (first use in this function)
24 | #define VDEC_LAT_TILE_SZ (64 * V4L2_AV1_MAX_TILE_COUNT)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c:292:51: note: in expansion of macro 'VDEC_LAT_TILE_SZ'
292 | lat_buf->tile_addr.size = VDEC_LAT_TILE_SZ;
| ^~~~~~~~~~~~~~~~
--
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:112:31: error: 'V4L2_CID_STATELESS_AV1_SEQUENCE' undeclared here (not in a function); did you mean 'V4L2_CID_STATELESS_MPEG2_SEQUENCE'?
112 | .id = V4L2_CID_STATELESS_AV1_SEQUENCE,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| V4L2_CID_STATELESS_MPEG2_SEQUENCE
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:115:31: error: 'V4L2_PIX_FMT_AV1_FRAME' undeclared here (not in a function); did you mean 'V4L2_PIX_FMT_VP9_FRAME'?
115 | .codec_type = V4L2_PIX_FMT_AV1_FRAME,
| ^~~~~~~~~~~~~~~~~~~~~~
| V4L2_PIX_FMT_VP9_FRAME
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:119:31: error: 'V4L2_CID_STATELESS_AV1_FRAME' undeclared here (not in a function); did you mean 'V4L2_CID_STATELESS_VP9_FRAME'?
119 | .id = V4L2_CID_STATELESS_AV1_FRAME,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| V4L2_CID_STATELESS_VP9_FRAME
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:126:31: error: 'V4L2_CID_STATELESS_AV1_TILE_GROUP_ENTRY' undeclared here (not in a function)
126 | .id = V4L2_CID_STATELESS_AV1_TILE_GROUP_ENTRY,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:127:35: error: 'V4L2_AV1_MAX_TILE_COUNT' undeclared here (not in a function)
127 | .dims = { V4L2_AV1_MAX_TILE_COUNT },
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:134:31: error: 'V4L2_CID_MPEG_VIDEO_AV1_PROFILE' undeclared here (not in a function); did you mean 'V4L2_CID_MPEG_VIDEO_VP8_PROFILE'?
134 | .id = V4L2_CID_MPEG_VIDEO_AV1_PROFILE,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| V4L2_CID_MPEG_VIDEO_VP8_PROFILE
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:135:32: error: 'V4L2_MPEG_VIDEO_AV1_PROFILE_MAIN' undeclared here (not in a function); did you mean 'V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN'?
135 | .min = V4L2_MPEG_VIDEO_AV1_PROFILE_MAIN,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:143:31: error: 'V4L2_CID_MPEG_VIDEO_AV1_LEVEL' undeclared here (not in a function); did you mean 'V4L2_CID_MPEG_VIDEO_VP9_LEVEL'?
143 | .id = V4L2_CID_MPEG_VIDEO_AV1_LEVEL,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| V4L2_CID_MPEG_VIDEO_VP9_LEVEL
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:144:32: error: 'V4L2_MPEG_VIDEO_AV1_LEVEL_2_0' undeclared here (not in a function); did you mean 'V4L2_MPEG_VIDEO_VP9_LEVEL_2_0'?
144 | .min = V4L2_MPEG_VIDEO_AV1_LEVEL_2_0,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| V4L2_MPEG_VIDEO_VP9_LEVEL_2_0
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:145:32: error: 'V4L2_MPEG_VIDEO_AV1_LEVEL_4_0' undeclared here (not in a function); did you mean 'V4L2_MPEG_VIDEO_VP9_LEVEL_4_0'?
145 | .def = V4L2_MPEG_VIDEO_AV1_LEVEL_4_0,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| V4L2_MPEG_VIDEO_VP9_LEVEL_4_0
>> drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c:146:32: error: 'V4L2_MPEG_VIDEO_AV1_LEVEL_5_1' undeclared here (not in a function); did you mean 'V4L2_MPEG_VIDEO_HEVC_LEVEL_5_1'?
146 | .max = V4L2_MPEG_VIDEO_AV1_LEVEL_5_1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| V4L2_MPEG_VIDEO_HEVC_LEVEL_5_1vim +/V4L2_AV1_MAX_TILE_COUNT +188 drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c
43
44 #define BIT_FLAG(x, bit) (!!((x)->flags & (bit)))
> 45 #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
> 46 #define QUANT_FLAG(x, name) (!!((x)->flags & V4L2_AV1_QUANTIZATION_FLAG_##name))
> 47 #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
> 48 #define FH_FLAG(x, name) (!!((x)->flags & V4L2_AV1_FRAME_FLAG_##name))
49
50 #define MINQ 0
51 #define MAXQ 255
52
53 #define DIV_LUT_PREC_BITS 14
54 #define DIV_LUT_BITS 8
55 #define DIV_LUT_NUM BIT(DIV_LUT_BITS)
56 #define WARP_PARAM_REDUCE_BITS 6
57 #define WARPEDMODEL_PREC_BITS 16
58
59 #define SEG_LVL_ALT_Q 0
60 #define SECONDARY_FILTER_STRENGTH_NUM_BITS 2
61
62 static const short div_lut[DIV_LUT_NUM + 1] = {
63 16384, 16320, 16257, 16194, 16132, 16070, 16009, 15948, 15888, 15828, 15768,
64 15709, 15650, 15592, 15534, 15477, 15420, 15364, 15308, 15252, 15197, 15142,
65 15087, 15033, 14980, 14926, 14873, 14821, 14769, 14717, 14665, 14614, 14564,
66 14513, 14463, 14413, 14364, 14315, 14266, 14218, 14170, 14122, 14075, 14028,
67 13981, 13935, 13888, 13843, 13797, 13752, 13707, 13662, 13618, 13574, 13530,
68 13487, 13443, 13400, 13358, 13315, 13273, 13231, 13190, 13148, 13107, 13066,
69 13026, 12985, 12945, 12906, 12866, 12827, 12788, 12749, 12710, 12672, 12633,
70 12596, 12558, 12520, 12483, 12446, 12409, 12373, 12336, 12300, 12264, 12228,
71 12193, 12157, 12122, 12087, 12053, 12018, 11984, 11950, 11916, 11882, 11848,
72 11815, 11782, 11749, 11716, 11683, 11651, 11619, 11586, 11555, 11523, 11491,
73 11460, 11429, 11398, 11367, 11336, 11305, 11275, 11245, 11215, 11185, 11155,
74 11125, 11096, 11067, 11038, 11009, 10980, 10951, 10923, 10894, 10866, 10838,
75 10810, 10782, 10755, 10727, 10700, 10673, 10645, 10618, 10592, 10565, 10538,
76 10512, 10486, 10460, 10434, 10408, 10382, 10356, 10331, 10305, 10280, 10255,
77 10230, 10205, 10180, 10156, 10131, 10107, 10082, 10058, 10034, 10010, 9986,
78 9963, 9939, 9916, 9892, 9869, 9846, 9823, 9800, 9777, 9754, 9732,
79 9709, 9687, 9664, 9642, 9620, 9598, 9576, 9554, 9533, 9511, 9489,
80 9468, 9447, 9425, 9404, 9383, 9362, 9341, 9321, 9300, 9279, 9259,
81 9239, 9218, 9198, 9178, 9158, 9138, 9118, 9098, 9079, 9059, 9039,
82 9020, 9001, 8981, 8962, 8943, 8924, 8905, 8886, 8867, 8849, 8830,
83 8812, 8793, 8775, 8756, 8738, 8720, 8702, 8684, 8666, 8648, 8630,
84 8613, 8595, 8577, 8560, 8542, 8525, 8508, 8490, 8473, 8456, 8439,
85 8422, 8405, 8389, 8372, 8355, 8339, 8322, 8306, 8289, 8273, 8257,
86 8240, 8224, 8208, 8192,
87 };
88
89 /**
90 * struct vdec_av1_slice_init_vsi - VSI used to initialize instance
91 * @architecture: architecture type
92 * @reserved: reserved
93 * @core_vsi: for core vsi
94 * @cdf_table_addr: cdf table addr
95 * @cdf_table_size: cdf table size
96 * @iq_table_addr: iq table addr
97 * @iq_table_size: iq table size
98 * @vsi_size: share vsi structure size
99 */
100 struct vdec_av1_slice_init_vsi {
101 u32 architecture;
102 u32 reserved;
103 u64 core_vsi;
104 u64 cdf_table_addr;
105 u32 cdf_table_size;
106 u64 iq_table_addr;
107 u32 iq_table_size;
108 u32 vsi_size;
109 };
110
111 /**
112 * struct vdec_av1_slice_mem - memory address and size
113 * @buf: dma_addr padding
114 * @dma_addr: buffer address
115 * @size: buffer size
116 * @dma_addr_end: buffer end address
117 * @padding: for padding
118 */
119 struct vdec_av1_slice_mem {
120 union {
121 u64 buf;
122 dma_addr_t dma_addr;
123 };
124 union {
125 size_t size;
126 dma_addr_t dma_addr_end;
127 u64 padding;
128 };
129 };
130
131 /**
132 * struct vdec_av1_slice_state - decoding state
133 * @err : err type for decode
134 * @full : transcoded buffer is full or not
135 * @timeout : decode timeout or not
136 * @perf : performance enable
137 * @crc : hw checksum
138 * @out_size : hw output size
139 */
140 struct vdec_av1_slice_state {
141 int err;
142 u32 full;
143 u32 timeout;
144 u32 perf;
145 u32 crc[16];
146 u32 out_size;
147 };
148
149 /*
150 * enum vdec_av1_slice_resolution_level - resolution level
151 */
152 enum vdec_av1_slice_resolution_level {
153 AV1_RES_NONE,
154 AV1_RES_FHD,
155 AV1_RES_4K,
156 AV1_RES_8K,
157 };
158
159 /*
160 * enum vdec_av1_slice_frame_type - av1 frame type
161 */
162 enum vdec_av1_slice_frame_type {
163 AV1_KEY_FRAME = 0,
164 AV1_INTER_FRAME,
165 AV1_INTRA_ONLY_FRAME,
166 AV1_SWITCH_FRAME,
167 AV1_FRAME_TYPES,
168 };
169
170 /*
171 * enum vdec_av1_slice_reference_mode - reference mode type
172 */
173 enum vdec_av1_slice_reference_mode {
174 AV1_SINGLE_REFERENCE = 0,
175 AV1_COMPOUND_REFERENCE,
176 AV1_REFERENCE_MODE_SELECT,
177 AV1_REFERENCE_MODES,
178 };
179
180 /**
181 * struct vdec_av1_slice_tile_group - info for each tile
182 * @num_tiles: tile number
183 * @tile_size: input size for each tile
184 * @tile_start_offset: tile offset to input buffer
185 */
186 struct vdec_av1_slice_tile_group {
187 u32 num_tiles;
> 188 u32 tile_size[V4L2_AV1_MAX_TILE_COUNT];
189 u32 tile_start_offset[V4L2_AV1_MAX_TILE_COUNT];
190 };
191
192 /**
193 * struct vdec_av1_slice_scale_factors - scale info for each ref frame
194 * @is_scaled: frame is scaled or not
195 * @x_scale: frame width scale coefficient
196 * @y_scale: frame height scale coefficient
197 * @x_step: width step for x_scale
198 * @y_step: height step for y_scale
199 */
200 struct vdec_av1_slice_scale_factors {
201 u8 is_scaled;
202 int x_scale;
203 int y_scale;
204 int x_step;
205 int y_step;
206 };
207
208 /**
209 * struct vdec_av1_slice_frame_refs - ref frame info
210 * @ref_fb_idx: ref slot index
211 * @ref_map_idx: ref frame index
212 * @scale_factors: scale factors for each ref frame
213 */
214 struct vdec_av1_slice_frame_refs {
215 int ref_fb_idx;
216 int ref_map_idx;
217 struct vdec_av1_slice_scale_factors scale_factors;
218 };
219
220 /**
221 * struct vdec_av1_slice_gm - AV1 Global Motion parameters
222 * @wmtype: The type of global motion transform used
223 * @wmmat: gm_params
224 * @alpha: alpha info
225 * @beta: beta info
226 * @gamma: gamma info
227 * @delta: delta info
228 * @invalid: is invalid or not
229 */
230 struct vdec_av1_slice_gm {
231 int wmtype;
232 int wmmat[8];
233 short alpha;
234 short beta;
235 short gamma;
236 short delta;
237 char invalid;
238 };
239
240 /**
241 * struct vdec_av1_slice_sm - AV1 Skip Mode parameters
242 * @skip_mode_allowed: Skip Mode is allowed or not
243 * @skip_mode_present: specified that the skip_mode will be present or not
244 * @skip_mode_frame: specifies the frames to use for compound prediction
245 */
246 struct vdec_av1_slice_sm {
247 u8 skip_mode_allowed;
248 u8 skip_mode_present;
249 int skip_mode_frame[2];
250 };
251
252 /**
253 * struct vdec_av1_slice_seg - AV1 Segmentation params
254 * @segmentation_enabled: this frame makes use of the segmentation tool or not
255 * @segmentation_update_map: segmentation map are updated during the decoding frame
256 * @segmentation_temporal_update:segmentation map are coded relative the existing segmentaion map
257 * @segmentation_update_data: new parameters are about to be specified for each segment
258 * @feature_data: specifies the feature data for a segment feature
259 * @feature_enabled_mask: the corresponding feature value is coded or not.
260 * @segid_preskip: segment id will be read before the skip syntax element.
261 * @last_active_segid: the highest numbered segment id that has some enabled feature
262 */
263 struct vdec_av1_slice_seg {
264 u8 segmentation_enabled;
265 u8 segmentation_update_map;
266 u8 segmentation_temporal_update;
267 u8 segmentation_update_data;
> 268 int feature_data[V4L2_AV1_MAX_SEGMENTS][V4L2_AV1_SEG_LVL_MAX];
269 u16 feature_enabled_mask[V4L2_AV1_MAX_SEGMENTS];
270 int segid_preskip;
271 int last_active_segid;
272 };
273
274 /**
275 * struct vdec_av1_slice_delta_q_lf - AV1 Loop Filter delta parameters
276 * @delta_q_present: specified whether quantizer index delta values are present
277 * @delta_q_res: specifies the left shift which should be applied to decoded quantizer index
278 * @delta_lf_present: specifies whether loop filter delta values are present
279 * @delta_lf_res: specifies the left shift which should be applied to decoded
280 * loop filter delta values
281 * @delta_lf_multi: specifies that separate loop filter deltas are sent for horizontal
282 * luma edges,vertical luma edges,the u edges, and the v edges.
283 */
284 struct vdec_av1_slice_delta_q_lf {
285 u8 delta_q_present;
286 u8 delta_q_res;
287 u8 delta_lf_present;
288 u8 delta_lf_res;
289 u8 delta_lf_multi;
290 };
291
292 /**
293 * struct vdec_av1_slice_quantization - AV1 Quantization params
294 * @base_q_idx: indicates the base frame qindex. This is used for Y AC
295 * coefficients and as the base value for the other quantizers.
296 * @qindex: qindex
297 * @delta_qydc: indicates the Y DC quantizer relative to base_q_idx
298 * @delta_qudc: indicates the U DC quantizer relative to base_q_idx.
299 * @delta_quac: indicates the U AC quantizer relative to base_q_idx
300 * @delta_qvdc: indicates the V DC quantizer relative to base_q_idx
301 * @delta_qvac: indicates the V AC quantizer relative to base_q_idx
302 * @using_qmatrix: specifies that the quantizer matrix will be used to
303 * compute quantizers
304 * @qm_y: specifies the level in the quantizer matrix that should
305 * be used for luma plane decoding
306 * @qm_u: specifies the level in the quantizer matrix that should
307 * be used for chroma U plane decoding.
308 * @qm_v: specifies the level in the quantizer matrix that should be
309 * used for chroma V plane decoding
310 */
311 struct vdec_av1_slice_quantization {
312 int base_q_idx;
313 int qindex[V4L2_AV1_MAX_SEGMENTS];
314 int delta_qydc;
315 int delta_qudc;
316 int delta_quac;
317 int delta_qvdc;
318 int delta_qvac;
319 u8 using_qmatrix;
320 u8 qm_y;
321 u8 qm_u;
322 u8 qm_v;
323 };
324
325 /**
326 * struct vdec_av1_slice_lr - AV1 Loop Restauration parameters
327 * @use_lr: whether to use loop restoration
328 * @use_chroma_lr: whether to use chroma loop restoration
329 * @frame_restoration_type: specifies the type of restoration used for each plane
330 * @loop_restoration_size: pecifies the size of loop restoration units in units
331 * of samples in the current plane
332 */
333 struct vdec_av1_slice_lr {
334 u8 use_lr;
335 u8 use_chroma_lr;
> 336 u8 frame_restoration_type[V4L2_AV1_NUM_PLANES_MAX];
337 u32 loop_restoration_size[V4L2_AV1_NUM_PLANES_MAX];
338 };
339
340 /**
341 * struct vdec_av1_slice_loop_filter - AV1 Loop filter parameters
342 * @loop_filter_level: an array containing loop filter strength values.
343 * @loop_filter_ref_deltas: contains the adjustment needed for the filter
344 * level based on the chosen reference frame
345 * @loop_filter_mode_deltas: contains the adjustment needed for the filter
346 * level based on the chosen mode
347 * @loop_filter_sharpness: indicates the sharpness level. The loop_filter_level
348 * and loop_filter_sharpness together determine when
349 * a block edge is filtered, and by how much the
350 * filtering can change the sample values
351 * @loop_filter_delta_enabled: filetr level depends on the mode and reference
352 * frame used to predict a block
353 */
354 struct vdec_av1_slice_loop_filter {
355 u8 loop_filter_level[4];
> 356 int loop_filter_ref_deltas[V4L2_AV1_TOTAL_REFS_PER_FRAME]; 357 int loop_filter_mode_deltas[2];
358 u8 loop_filter_sharpness;
359 u8 loop_filter_delta_enabled;
360 };
361
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
Quoted 8 lines · Xiaoyong Lu
Add mediatek av1 decoder linux driver which use the stateless API in MT8195.
Signed-off-by Xiaoyong Lu<[email protected]>Tested-by Nicolas Dufresne <[email protected]>Reviewed-by Nicolas Dufresne <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>
After rebasing on top of our media staging tree I get these compile errors:
CC [M] drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.odrivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function ‘vdec_av1_slice_lat_decode’:drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:2075:46: error: ‘struct mtk_vcodec_dev’ has no member named ‘msg_queue_core_ctx’
2075 | vdec_msg_queue_qbuf(&ctx->dev->msg_queue_core_ctx, lat_buf);
| ^~drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:2114:46: error: ‘struct mtk_vcodec_dev’ has no member named ‘msg_queue_core_ctx’
2114 | vdec_msg_queue_qbuf(&ctx->dev->msg_queue_core_ctx, lat_buf);
| ^~
That's due to the patch "media: mediatek: vcodec: move core context from device to each instance" that has now been merged and that drops that queue.
Can you rebase v10? This is now the only remaining blocked for the av1 series to be merged.
Regards,
Hans
Hi Hans, I have updated v11 patch to fix this. Thanks! best regards xiaoyong Lu On Fri, 2023-05-26 at 14:04 +0200, Hans Verkuil wrote:
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 8 lines · Xiaoyong Lu
Add mediatek av1 decoder linux driver which use the stateless API in
MT8195.
Signed-off-by Xiaoyong Lu<[email protected]>
Quoted 7 lines
Tested-by Nicolas Dufresne <[email protected]>Reviewed-by Nicolas Dufresne <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>
After rebasing on top of our media staging tree I get these compile errors:
CC [M] drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.o
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function ‘vdec_av1_slice_lat_decode’:
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:2075:46: error: ‘struct mtk_vcodec_dev’ has no member named ‘msg_queue_core_ctx’
2075 | vdec_msg_queue_qbuf(&ctx->dev->msg_queue_core_ctx, lat_buf);
| ^~
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:2114:46: error: ‘struct mtk_vcodec_dev’ has no member named ‘msg_queue_core_ctx’
2114 | vdec_msg_queue_qbuf(&ctx->dev->msg_queue_core_ctx, lat_buf);
| ^~
That's due to the patch "media: mediatek: vcodec: move core context from device
to each instance" that has now been merged and that drops that queue.
Can you rebase v10? This is now the only remaining blocked for the av1 series
to be merged.
Regards,
Hans