mfc_debug
mfc_debug(2, "Shutting down clock\n");
mfc_debug(2, "mmapping source\n");
mfc_debug(2, "mmapping destination\n");
mfc_debug(2, "Cleaning up buffer: %d\n",
mfc_debug(2, "Unexpected frame type: %d\n",
mfc_debug(2, "Frame Status: %x\n", dst_frame_status);
mfc_debug(2, "No frame decode\n");
mfc_debug(2, "Running again the same buffer\n");
mfc_debug(2, "MFC needs next buffer\n");
mfc_debug(2, "Stream completed\n");
mfc_debug(1, "Int reason: %d (err: %08x)\n", reason, err);
mfc_debug(2, "Unknown int reason\n");
mfc_debug(2, "Exit via irq_cleanup_hw\n");
mfc_debug(2, "Too many open contexts\n");
mfc_debug(2, "Has to free instance\n");
mfc_debug(2, "Last instance\n");
mfc_debug(2, "Returning instance number %d\n", ctx->inst_no);
mfc_debug(2, "Getting instance number (codec: %d)\n", ctx->codec_mode);
mfc_debug(2, "Issue the command: %d\n", cmd);
mfc_debug(2, "Requested codec mode: %d\n", ctx->codec_mode);
mfc_debug(2, "Base Address : %pad\n",
mfc_debug(2, "Bank1: %pad, Bank2: %pad\n",
mfc_debug(2, "MFC reset..\n");
mfc_debug(2, "Done MFC reset..\n");
mfc_debug(2, "Will now wait for completion of firmware transfer\n");
mfc_debug(2, "Ok, now will wait for completion of hardware init\n");
mfc_debug(2, "MFC F/W version : %02xyy, %02xmm, %02xdd\n",
mfc_debug(2, "Write command to wakeup MFCV8\n");
mfc_debug(2, "MFC reset..\n");
mfc_debug(2, "Done MFC reset..\n");
mfc_debug(2, "Got instance number: %d\n", ctx->inst_no);
#define mfc_debug_enter() mfc_debug(5, "enter\n")
#define mfc_debug_leave() mfc_debug(5, "leave\n")
mfc_debug(2, "Default src_fmt is %p, dest_fmt is %p\n",
mfc_debug(2, "ctx is not ready\n");
mfc_debug(2, "%s-- with error\n", __func__);
mfc_debug(2, "Type is %d\n", f->type);
mfc_debug(2, "The codec number is: %d\n", ctx->codec_mode);
mfc_debug(2, "Freeing buffers\n");
mfc_debug(2, "Allocating %d buffers for OUTPUT queue\n",
mfc_debug(2, "Freeing buffers\n");
mfc_debug(2, "Allocating %d buffers for CAPTURE queue\n",
mfc_debug(2, "Only V4L2_MEMORY_MMAP is supported\n");
mfc_debug(2, "State: %d, buf->type: %d\n", ctx->state, buf->type);
mfc_debug(2, "Composing info [h264]: l=%d t=%d w=%d h=%d (r=%d b=%d fw=%d fh=%d\n",
mfc_debug(2, "Composing info: w=%d h=%d fw=%d fh=%d\n",
mfc_debug(2, "Buffer count=%d, plane count=%d\n",
mfc_debug(2, "src=%d, dst=%d, state=%d\n",
mfc_debug(2, "ctx is not ready\n");
mfc_debug(2, "enc src count: %d, enc ref count: %d\n",
mfc_debug(2, "Encoded slice type: %d\n", slice_type);
mfc_debug(2, "Encoded stream size: %d\n", strm_size);
mfc_debug(2, "Display order: %d\n",
mfc_debug(2, "enc src count: %d, enc ref count: %d\n",
mfc_debug(2, "f->type = %d ctx->state = %d\n", f->type, ctx->state);
mfc_debug(2, "codec number: %d\n", ctx->src_fmt->codec_mode);
mfc_debug(2, "fmt - w: %d, h: %d, ctx - w: %d, h: %d\n",
mfc_debug(2, "Freeing buffers\n");
mfc_debug(2, "Freeing buffers\n");
mfc_debug(2, "Minimum %d output buffers needed\n",
mfc_debug(2, "EOS: empty src queue, entering finishing state\n");
mfc_debug(2, "EOS: marking last buffer of stream\n");
mfc_debug(2, "index: %d, plane[%d] cookie: %pad\n",
mfc_debug(2, "plane size: %ld, dst size: %zu\n",
mfc_debug(2, "plane size: %ld, luma size: %d\n",
mfc_debug(2, "plane size: %ld, chroma size: %d\n",
mfc_debug(1, "Finished waiting (dev->int_type:%d, command: %d)\n",
mfc_debug(1, "Finished waiting (ctx->int_type:%d, command: %d)\n",
mfc_debug(3, "Allocating priv: %zu\n", b->size);
mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma);
mfc_debug(3, "Allocating generic buf: %zu\n", b->size);
mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma);
mfc_debug(2, "Decoding a usual frame\n");
mfc_debug(2, "No src buffers\n");
mfc_debug(2, "Setting ctx->state to FINISHING\n");
mfc_debug(2, "no src buffers\n");
mfc_debug(2, "no dst buffers\n");
mfc_debug(2, "encoding buffer with index=%d state=%d\n",
mfc_debug(2, "Preparing to init decoding\n");
mfc_debug(2, "Header size: %d\n",
mfc_debug(2, "Header size: %d\n",
mfc_debug(1, "Entering suspend so do not schedule any jobs\n");
mfc_debug(1, "Couldn't lock HW\n");
mfc_debug(1, "No ctx is scheduled to be run\n");
mfc_debug(1, "head parsed\n");
mfc_debug(2, "Finished remaining frames after resolution change\n");
mfc_debug(2, "Will re-init the codec\n");
mfc_debug(2,
mfc_debug(2, "Frm size: %d ch: %d mv: %d\n", frame_size_lu, frame_size_ch,
mfc_debug(2, "Luma %d: %zx\n", i,
mfc_debug(2, "\tChroma %d: %zx\n", i,
mfc_debug(2, "\tBuf2: %zx, size: %d\n",
mfc_debug(2, "Buf1: %zu, buf_size1: %d\n", buf_addr1, buf_size1);
mfc_debug(2, "Buf 1/2 size after: %d/%d (frames %d)\n",
mfc_debug(2, "Not enough memory has been allocated\n");
mfc_debug(2, "buf_size1: %zu, buf_size2: %zu\n", buf_size1, buf_size2);
mfc_debug(2, "buf_size1: %zu, buf_size2: %zu\n",
mfc_debug(2, "buf_size1: %zu, buf_size2: %zu\n",
mfc_debug(2, "buf_size1: %zu, buf_size2: %zu\n",
mfc_debug(2, "Luma size:%d Chroma size:%d MV size:%d\n",
mfc_debug(2, "Totals bufs: %d\n", ctx->total_dpb_count);
mfc_debug(2, "recon luma size: %d chroma size: %d\n",
mfc_debug(2, "Set Level 5.1 for UHD\n");
mfc_debug(2, "Set High profile for UHD\n");
mfc_debug(2, "recon luma size: %zu chroma size: %zu\n",
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "InstNo: %d/%d\n", ctx->inst_no,
mfc_debug(2, "BUFs: %08x %08x %08x\n",
mfc_debug(2, "Set loop filter to: %d\n",
mfc_debug(2, "Decoding a usual frame.\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "++\n");
mfc_debug(2, "--\n");
mfc_debug(2, "No src buffers.\n");
mfc_debug(2, "Setting ctx->state to FINISHING\n");
mfc_debug(2, "no src buffers.\n");
mfc_debug(2, "no dst buffers.\n");
mfc_debug(2, "enc src y addr: 0x%08lx\n", src_y_addr);
mfc_debug(2, "enc src c addr: 0x%08lx\n", src_c_addr);
mfc_debug(2, "Preparing to init decoding.\n");
mfc_debug(2, "Header size: %d\n", temp_vb->b->vb2_buf.planes[0].bytesused);
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Allocated Internal Encoding Buffers\n");
mfc_debug(1, "Try run dev: %p\n", dev);
mfc_debug(1, "Couldn't lock HW.\n");
mfc_debug(1, "No ctx is scheduled to be run.\n");
mfc_debug(1, "New context: %d\n", new_ctx);
mfc_debug(1, "Setting new context to %p\n", ctx);
mfc_debug(1, "ctx->dst_queue_cnt=%d ctx->dpb_count=%d ctx->src_queue_cnt=%d\n",
mfc_debug(1, "ctx->state=%d\n", ctx->state);
mfc_debug(2, "Finished remaining frames after resolution change.\n");
mfc_debug(2, "Will re-init the codec`.\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "Use min scratch buffer size\n");
mfc_debug(2, "SEQ Done: Movie dimensions %dx%d,\n"
mfc_debug(2, "inst_no: %d, buf_addr: 0x%08x,\n"
mfc_debug(2, "Buf1: %p (%d)\n", (void *)buf_addr1, buf_size1);
mfc_debug(2, "Total DPB COUNT: %d\n", ctx->total_dpb_count);
mfc_debug(2, "Setting display delay to %d\n", ctx->display_delay);
mfc_debug(2, "Frame size: %d ch: %d mv: %d\n",
mfc_debug(2, "Luma %d: %zx\n", i,
mfc_debug(2, "\tChroma %d: %zx\n", i,
mfc_debug(2, "\tChroma_1 %d: %zx\n", i, ctx
mfc_debug(2, "\tBuf1: %zx, size: %d\n",
mfc_debug(2, "Buf1: %zx, buf_size1: %d (frames %d)\n",
mfc_debug(2, "Not enough memory has been allocated.\n");
mfc_debug(2, "After setting buffers.\n");
mfc_debug(2, "stream buf addr: 0x%08lx, size: 0x%x\n",
mfc_debug(2, "Luma size:%d Chroma size:%d MV size:%d\n",
mfc_debug(2, "enc src y buf addr: 0x%08lx\n", y_addr);
mfc_debug(2, "enc src c buf addr: 0x%08lx\n", c_addr);
mfc_debug(2, "enc src cr buf addr: 0x%08lx\n", c_1_addr);
mfc_debug(2, "Totals bufs: %d\n", ctx->total_dpb_count);
mfc_debug(2, "recon y addr: 0x%08lx y_addr: 0x%08lx\n", enc_recon_y_addr, *y_addr);
mfc_debug(2, "recon c addr: 0x%08lx c_addr: 0x%08lx\n", enc_recon_c_addr, *c_addr);
mfc_debug(2, "Buf1: %p (%d)\n", (void *)buf_addr1, buf_size1);
mfc_debug(2, "Buf1: %zu, buf_size1: %d (ref frames %d)\n",
mfc_debug(2, "Not enough memory has been allocated.\n");