<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[请教A133 G2D调用出现G2D irq pending flag timeout，G2D BITBLT Failed!]]></title><description><![CDATA[<p dir="auto">如题，我把G2D的调试打开，看输入输出参数都没问题，但没有接收到完成中断，请教是什么问题。下面是我的调试LOG</p>
<p dir="auto">[  754.288879] [G2D-g2d_bsp_bitblt] line:1970: BITBLT_flag:  0x0<br />
[  754.288886] [G2D-g2d_bsp_bitblt] line:1972: Input info:---------------------------------<br />
[  754.288890] [G2D-g2d_bsp_bitblt] line:1973: Src_fd:  6<br />
[  754.288895] [G2D-g2d_bsp_bitblt] line:1974: Format:  0x29<br />
[  754.288899] [G2D-g2d_bsp_bitblt] line:1975: BITBLT_alpha_mode:  0x0<br />
[  754.288904] [G2D-g2d_bsp_bitblt] line:1976: BITBLT_alpha_val:  0x0<br />
[  754.288908] [G2D-g2d_bsp_bitblt] line:1977: inClipRectX:  0<br />
[  754.288912] [G2D-g2d_bsp_bitblt] line:1978: inClipRectY: 0<br />
[  754.288917] [G2D-g2d_bsp_bitblt] line:1979: inClipRectW:  1920<br />
[  754.288921] [G2D-g2d_bsp_bitblt] line:1980: inClipRectH: 1080<br />
[  754.288925] [G2D-g2d_bsp_bitblt] line:1982: Output info:--------------------------------<br />
[  754.288930] [G2D-g2d_bsp_bitblt] line:1983: Dst_fd:  23<br />
[  754.288934] [G2D-g2d_bsp_bitblt] line:1984: Format:  0x3<br />
[  754.288938] [G2D-g2d_bsp_bitblt] line:1985: outClipRectX:  0<br />
[  754.288943] [G2D-g2d_bsp_bitblt] line:1986: outClipRectY: 0<br />
[  754.288947] [G2D-g2d_bsp_bitblt] line:1987: outClipRectW:  1920<br />
[  754.288951] [G2D-g2d_bsp_bitblt] line:1988: outClipRectH: 1080<br />
[  754.288958] [G2D-g2d_vlayer_set] line:627: VInPITCH: 1920, 1920, 0<br />
[  754.288964] [G2D-g2d_vlayer_set] line:629: VInAddrB: 0xf7400000, 0xf75fa400, 0xf76f7600<br />
[  754.288969] [G2D-g2d_vlayer_set] line:646: VInAddrA: 0xf7400000, 0xf75fa400, 0xf76f7600<br />
[  754.288983] [G2D-g2d_bldin_set] line:1359: BLD_CH_ISIZE W:  0x780<br />
[  754.288987] [G2D-g2d_bldin_set] line:1360: BLD_CH_ISIZE H:  0x438<br />
[  754.288991] [G2D-g2d_bldin_set] line:1367: BLD_CH_ISIZE X:  0x0<br />
[  754.288996] [G2D-g2d_bldin_set] line:1368: BLD_CH_ISIZE Y:  0x0<br />
[  754.289002] [G2D-g2d_wb_set] line:717: BLD_CH_OSIZE W:  0x780<br />
[  754.289006] [G2D-g2d_wb_set] line:718: BLD_CH_OSIZE H:  0x438<br />
[  754.289012] [G2D-g2d_wb_set] line:765: OutputPitch: 7680, 0, 0<br />
[  754.289017] [G2D-g2d_wb_set] line:782: WbAddr: 0xf6800000, 0xf69fa400, 0xf6bf4800<br />
[  754.289022] [G2D-g2d_bsp_bitblt] line:2297: INIT_MODULE: 0x80000000<br />
[  754.390950] G2D irq pending flag timeout<br />
[  754.390956] G2D BITBLT Failed!</p>
]]></description><link>https://bbs.aw-ol.com/topic/5898/请教a133-g2d调用出现g2d-irq-pending-flag-timeout-g2d-bitblt-failed</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 12:01:30 GMT</lastBuildDate><atom:link href="https://bbs.aw-ol.com/topic/5898.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Nov 2024 08:57:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 请教A133 G2D调用出现G2D irq pending flag timeout，G2D BITBLT Failed! on Sat, 26 Apr 2025 09:59:52 GMT]]></title><description><![CDATA[<p dir="auto">哥们，你拯救了我<img src="https://bbs.aw-ol.com/plugins/nodebb-plugin-emoji/emoji/android/1f62d.png?v=phfsr98k5bg" class="not-responsive emoji emoji-android emoji--sob" title=":sob:" alt="😭" /> ，调了两个小时了，旋转可以，缩放不行，然后搜到了你的贴子，再翻了手册，大坑。</p>
]]></description><link>https://bbs.aw-ol.com/post/26017</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/26017</guid><dc:creator><![CDATA[benlypan]]></dc:creator><pubDate>Sat, 26 Apr 2025 09:59:52 GMT</pubDate></item><item><title><![CDATA[Reply to 请教A133 G2D调用出现G2D irq pending flag timeout，G2D BITBLT Failed! on Thu, 14 Nov 2024 07:04:18 GMT]]></title><description><![CDATA[<p dir="auto">终于找到问题了，A133的G2D被精准刀法砍掉，G2D只有旋转功能，WriteBack功能也被砍掉，导致不能做RGB转YUV![9448fcc0-d8a4-4cc6-9623-79b305845553-FSLUSEV8BB~XYA$68<a href="/assets/uploads/files/1731567850689-9448fcc0-d8a4-4cc6-9623-79b305845553-fslusev8bb-xya-68-0-96-eru.png">0`ERU.png</a></p>
]]></description><link>https://bbs.aw-ol.com/post/24495</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/24495</guid><dc:creator><![CDATA[wupaul2001]]></dc:creator><pubDate>Thu, 14 Nov 2024 07:04:18 GMT</pubDate></item><item><title><![CDATA[Reply to 请教A133 G2D调用出现G2D irq pending flag timeout，G2D BITBLT Failed! on Fri, 08 Nov 2024 09:48:28 GMT]]></title><description><![CDATA[<p dir="auto">改为了使用物理地址，也还是一样<br />
[ 4408.395590] [G2D-g2d_bsp_bitblt] line:1970: BITBLT_flag:  0x0<br />
[ 4408.395597] [G2D-g2d_bsp_bitblt] line:1972: Input info:---------------------------------<br />
[ 4408.395601] [G2D-g2d_bsp_bitblt] line:1973: Src_fd:  0<br />
[ 4408.395605] [G2D-g2d_bsp_bitblt] line:1974: Format:  0x29<br />
[ 4408.395609] [G2D-g2d_bsp_bitblt] line:1975: BITBLT_alpha_mode:  0x0<br />
[ 4408.395614] [G2D-g2d_bsp_bitblt] line:1976: BITBLT_alpha_val:  0x0<br />
[ 4408.395618] [G2D-g2d_bsp_bitblt] line:1977: inClipRectX:  0<br />
[ 4408.395623] [G2D-g2d_bsp_bitblt] line:1978: inClipRectY: 0<br />
[ 4408.395627] [G2D-g2d_bsp_bitblt] line:1979: inClipRectW:  1920<br />
[ 4408.395631] [G2D-g2d_bsp_bitblt] line:1980: inClipRectH: 1080<br />
[ 4408.395636] [G2D-g2d_bsp_bitblt] line:1982: Output info:--------------------------------<br />
[ 4408.395640] [G2D-g2d_bsp_bitblt] line:1983: Dst_fd:  0<br />
[ 4408.395644] [G2D-g2d_bsp_bitblt] line:1984: Format:  0x3<br />
[ 4408.395649] [G2D-g2d_bsp_bitblt] line:1985: outClipRectX:  0<br />
[ 4408.395653] [G2D-g2d_bsp_bitblt] line:1986: outClipRectY: 0<br />
[ 4408.395657] [G2D-g2d_bsp_bitblt] line:1987: outClipRectW:  1920<br />
[ 4408.395662] [G2D-g2d_bsp_bitblt] line:1988: outClipRectH: 1080<br />
[ 4408.395669] [G2D-g2d_vlayer_set] line:627: VInPITCH: 1920, 1920, 0<br />
[ 4408.395674] [G2D-g2d_vlayer_set] line:629: VInAddrB: 0xff400000, 0xff5fa400, 0x0<br />
[ 4408.395679] [G2D-g2d_vlayer_set] line:646: VInAddrA: 0xff400000, 0xff5fa400, 0x0<br />
[ 4408.395693] [G2D-g2d_bldin_set] line:1359: BLD_CH_ISIZE W:  0x780<br />
[ 4408.395697] [G2D-g2d_bldin_set] line:1360: BLD_CH_ISIZE H:  0x438<br />
[ 4408.395702] [G2D-g2d_bldin_set] line:1367: BLD_CH_ISIZE X:  0x0<br />
[ 4408.395706] [G2D-g2d_bldin_set] line:1368: BLD_CH_ISIZE Y:  0x0<br />
[ 4408.395712] [G2D-g2d_wb_set] line:717: BLD_CH_OSIZE W:  0x780<br />
[ 4408.395717] [G2D-g2d_wb_set] line:718: BLD_CH_OSIZE H:  0x438<br />
[ 4408.395722] [G2D-g2d_wb_set] line:765: OutputPitch: 7680, 0, 0<br />
[ 4408.395727] [G2D-g2d_wb_set] line:782: WbAddr: 0xf9000000, 0x0, 0x0<br />
[ 4408.395732] [G2D-g2d_bsp_bitblt] line:2297: INIT_MODULE: 0x80000000<br />
[ 4408.496871] G2D irq pending flag timeout<br />
[ 4408.496876] G2D BITBLT Failed!</p>
<p dir="auto">下面是我调用的代码<br />
int g2d::NV21ToRGB(ion_mem* in, ion_mem* out)<br />
{<br />
int ret = 0;<br />
g2d_blt_h blit;</p>
<pre><code>memset(&amp;blit, 0, sizeof(blit));

if(g2d_fd &lt; 0)
{
    printf("G2D not open! \n");
    return -1;
}

blit.flag_h = G2D_BLT_NONE_H;       						//纯转换
blit.src_image_h.format = G2D_FORMAT_YUV420UVC_U1V1U0V0;	//NV21
blit.src_image_h.width = IMAGEWIDTH;
blit.src_image_h.height = IMAGEHEIGHT;
blit.src_image_h.align[0] = 0;
blit.src_image_h.align[1] = 0;
blit.src_image_h.clip_rect.x = 0;
blit.src_image_h.clip_rect.y = 0;
blit.src_image_h.clip_rect.w = IMAGEWIDTH;
blit.src_image_h.clip_rect.h = IMAGEHEIGHT;
blit.src_image_h.gamut = G2D_BT601;
blit.src_image_h.bpremul = 0;
blit.src_image_h.mode = G2D_PIXEL_ALPHA;
blit.src_image_h.use_phy_addr = 1;
blit.src_image_h.laddr[0] = in-&gt;phy;
blit.src_image_h.laddr[1] = in-&gt;phy + IMAGEWIDTH * IMAGEHEIGHT;
blit.dst_image_h.format = G2D_FORMAT_BGRA8888;
blit.dst_image_h.width = IMAGEWIDTH;
blit.dst_image_h.height = IMAGEHEIGHT;
blit.dst_image_h.align[0] = 0;
blit.dst_image_h.clip_rect.x = 0;
blit.dst_image_h.clip_rect.y = 0;
blit.dst_image_h.clip_rect.w = IMAGEWIDTH;
blit.dst_image_h.clip_rect.h = IMAGEHEIGHT;
blit.dst_image_h.gamut = G2D_BT601;
blit.dst_image_h.bpremul = 0;
blit.dst_image_h.mode = G2D_PIXEL_ALPHA;
blit.dst_image_h.use_phy_addr = 1;
blit.dst_image_h.laddr[0] = out-&gt;phy;
if(ioctl(g2d_fd, G2D_CMD_BITBLT_H, (unsigned long)&amp;blit) &lt; 0)
{
    printf("G2D convert failed! \n");
    return -1;
}

return 0;
</code></pre>
<p dir="auto">}</p>
]]></description><link>https://bbs.aw-ol.com/post/24446</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/24446</guid><dc:creator><![CDATA[wupaul2001]]></dc:creator><pubDate>Fri, 08 Nov 2024 09:48:28 GMT</pubDate></item></channel></rss>