Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SKL] i965 driver will crash when HEVC encoder setting the multi slices number > 10 #162

Closed
mypopydev opened this issue May 11, 2017 · 0 comments
Assignees
Labels

Comments

@mypopydev
Copy link
Contributor

Test with 1280x720 YUV -> HECV multi-slice encode, when number of slices > 10, i965 driver crash.

gdb back trace as follow:

(gdb) bt
#0 0x00007fffee0c0979 in ?? () from /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1
#1 0x00007fffee374271 in intel_batchbuffer_emit_reloc64 (batch=batch@entry=0x555557213c20, bo=0x555500000345, read_domains=read_domains@entry=2, write_domains=write_domains@entry=2, delta=92)
at intel_batchbuffer.c:176
#2 0x00007fffee354f24 in gen8_gpe_mi_store_register_mem (ctx=ctx@entry=0x5555571e7c70, batch=batch@entry=0x555557213c20, params=params@entry=0x7fffffffc380) at i965_gpe_utils.c:1565
#3 0x00007fffee38d5e9 in gen9_hevc_store_reg_mem (ctx=ctx@entry=0x5555571e7c70, batch=batch@entry=0x555557213c20, bo=, offset=, mmio_offset=)
at gen9_hevc_encoder.c:176
#4 0x00007fffee390b37 in gen9_hevc_pak_read_status (encoder_context=0x555557212820, encoder_context=0x555557212820, ctx=0x5555571e7c70) at gen9_hevc_encoder.c:7125
#5 gen9_hevc_pak_pipeline (ctx=, profile=, encode_state=0x5555571ecaa8, encoder_context=) at gen9_hevc_encoder.c:7193
#6 0x00007fffee3453fc in intel_encoder_end_picture (ctx=0x5555571e7c70, profile=, codec_state=0x5555571ecaa8, hw_context=0x555557212820) at i965_encoder.c:1364
#7 0x00007ffff6d4325f in vaEndPicture (dpy=0x5555571e7c00, context=33554432) at va.c:1296
#8 0x0000555556119ac5 in vaapi_encode_issue (avctx=avctx@entry=0x5555571fcc80, pic=) at libavcodec/vaapi_encode.c:402
#9 0x0000555556119cb0 in vaapi_encode_step (avctx=avctx@entry=0x5555571fcc80, target=target@entry=0x0) at libavcodec/vaapi_encode.c:627
#10 0x000055555611a11a in ff_vaapi_encode2 (avctx=0x5555571fcc80, pkt=, input_image=0x5555572269e0, got_packet=0x7fffffffcb54) at libavcodec/vaapi_encode.c:914
#11 0x0000555555a14993 in avcodec_encode_video2 (avctx=avctx@entry=0x5555571fcc80, avpkt=0x555557213ba0, frame=frame@entry=0x5555572269e0, got_packet_ptr=got_packet_ptr@entry=0x7fffffffcb54)
at libavcodec/encode.c:304
#12 0x0000555555a14c45 in do_encode (avctx=0x5555571fcc80, frame=0x5555572269e0, got_packet=0x7fffffffcb54) at libavcodec/encode.c:372
#13 0x0000555555a14dc7 in avcodec_send_frame (avctx=0x5555571fcc80, frame=0x5555572269e0) at libavcodec/encode.c:421
#14 0x00005555556c55b5 in do_video_out (of=0x5555571f9a00, ost=0x5555571fca00, next_picture=0x5555572269e0, sync_ipts=) at ffmpeg.c:1289
#15 0x00005555556c96e0 in reap_filters (flush=0) at ffmpeg.c:1507
#16 0x00005555556a9eba in transcode_step () at ffmpeg.c:4549
#17 transcode () at ffmpeg.c:4593

@mypopydev mypopydev changed the title [SKL] i965 driver will crash in HEVC multi slice > 10 [SKL] i965 driver will crash when HEVC encoder setting the multi slices number > 10 May 11, 2017
@pengche1 pengche1 self-assigned this May 11, 2017
@xhaihao xhaihao added the bug label May 11, 2017
@pengche1 pengche1 added the P2 label May 18, 2017
pengche1 added a commit to pengche1/intel-vaapi-driver that referenced this issue Jun 7, 2017
The real max slice number is defined by I965_MAX_NUM_SLICE,
so also need to use this macro in hevc encoder

Fixes intel#162

Signed-off-by: peng.chen <peng.c.chen@intel.com>
xhaihao pushed a commit that referenced this issue Jun 8, 2017
The real max slice number is defined by I965_MAX_NUM_SLICE,
so also need to use this macro in hevc encoder

Fixes #162

Signed-off-by: peng.chen <peng.c.chen@intel.com>
@seanvk seanvk removed the in progress label Jun 8, 2017
xhaihao pushed a commit that referenced this issue Jun 12, 2017
The real max slice number is defined by I965_MAX_NUM_SLICE,
so also need to use this macro in hevc encoder

Fixes #162

Signed-off-by: peng.chen <peng.c.chen@intel.com>
(cherry picked from commit 81cf65d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants