Tool/software:
Hi,
I am testing GC320 Vivante support on SDK 9.x and I am running into the following issue:
root@am57xx-evm:~# cd /usr/bin/GC320/tests/unit_test root@am57xx-evm:/usr/bin/GC320/tests/unit_test# modprobe galcore baseAddress=0x80000000 physSize=0x60000000 [ 52.299377] GC320 IRQ: 183 [ 52.302093] Galcore version 5.0.11.33433 [ 52.337646] GPU[0](ChipModel=0x320 ChipRevision=0x5301): [ 52.343017] ************************** [ 52.347167] *** MMU ERROR DUMP *** [ 52.350952] ************************** root@am57xx-evm:/usr/bin/GC320/tests/unit_test# [ 52.358520] MMU status = 0x00000000 [ 52.366363] GPU[0](ChipModel=0x320 ChipRevision=0x5301): [ 52.372283] ************************** [ 52.376312] *** GPU STATE DUMP *** [ 52.380065] ************************** [ 52.384094] axi = 0x00000051 [ 52.387603] idle = 0x7FFFFFFE [ 52.391113] FE not idle [ 52.394836] DMA appears to be stuck at this address: [ 52.400024] 0x7B0EB010 [ 52.402740] dmaLow = 0x00000000 [ 52.406585] dmaHigh = 0x00000000 [ 52.410095] dmaState = 0x00000000 [ 52.413848] command state = 0 (PAR_IDLE_ST) [ 52.419006] command DMA state = 0 (CMD_IDLE_ST) [ 52.424438] command fetch state = 0 (FET_IDLE_ST) [ 52.429534] DMA request state = 0 (REQ_IDLE_ST) [ 52.434875] cal state = 0 (CAL_IDLE_ST) [ 52.439941] VE request state = 0 (VER_IDLE_ST) [ 52.445312] Debug registers of pipe[0]: [ 52.449340] RA debug registers: [ 52.452850] [0x00] 0x00000000 [ 52.456390] [0x01] 0x00000000 [ 52.459899] [0x02] 0x00000000 [ 52.463409] [0x03] 0x00000000 [ 52.466949] [0x04] 0x00000000 [ 52.470458] [0x05] 0x00000000 [ 52.473968] [0x06] 0x00000000 [ 52.477478] [0x07] 0x00000000 [ 52.480987] [0x08] 0x00000000 [ 52.484497] [0x09] 0x00000000 [ 52.488006] [0x0A] 0x00000000 [ 52.491516] [0x0B] 0x00000000 [ 52.495025] [0x0C] 0x00000000 [ 52.498535] [0x0D] 0x00000000 [ 52.502044] [0x0E] 0x00000000 [ 52.505584] [0x0F] 0x00000000 [ 52.509094] [0x10] 0x00000000 [ 52.512603] [0x11] 0x00000000 [ 52.516143] [0x12] 0x00000000 [ 52.519653] [0x13] 0x00000000 [ 52.523132] [0x14] 0x00000000 [ 52.526672] [0x15] 0x00000000 [ 52.530181] [0x16] 0x00000000 [ 52.533691] [0x17] 0x00000000 [ 52.537200] [0x18] 0x00000000 [ 52.540710] [0x19] 0x00000000 [ 52.544219] [0x1A] 0x00000000 [ 52.547729] [0x1B] 0x00000000 [ 52.551239] [0x1C] 0x00000000 [ 52.554748] [0x1D] 0x00000000 [ 52.558258] [0x1E] 0x00000000 [ 52.561737] [0x1F] 0x00000000 [ 52.565826] failed to obtain the signature (read 0x00000000). [ 52.572143] TX debug registers: [ 52.575653] [0x00] 0x00000000 [ 52.579162] [0x01] 0x00000000 [ 52.582672] [0x02] 0x00000000 [ 52.586212] [0x03] 0x00000000 [ 52.589721] [0x04] 0x00000000 [ 52.593200] [0x05] 0x00000000 [ 52.596740] [0x06] 0x00000000 [ 52.600250] [0x07] 0x00000000 [ 52.603759] [0x08] 0x00000000 [ 52.607269] [0x09] 0x00000000 [ 52.610778] [0x0A] 0x00000000 [ 52.614288] [0x0B] 0x00000000 [ 52.617797] [0x0C] 0x00000000 [ 52.621307] [0x0D] 0x00000000 [ 52.624847] [0x0E] 0x00000000 [ 52.628326] [0x0F] 0x00000000 [ 52.631835] [0x10] 0x00000000 [ 52.635375] [0x11] 0x00000000 [ 52.638885] [0x12] 0x00000000 [ 52.642395] [0x13] 0x00000000 [ 52.645904] [0x14] 0x00000000 [ 52.649414] [0x15] 0x00000000 [ 52.652923] [0x16] 0x00000000 [ 52.656463] [0x17] 0x00000000 [ 52.659973] [0x18] 0x00000000 [ 52.663482] [0x19] 0x00000000 [ 52.666992] [0x1A] 0x00000000 [ 52.670501] [0x1B] 0x00000000 [ 52.674011] [0x1C] 0x00000000 [ 52.677520] [0x1D] 0x00000000 [ 52.681030] [0x1E] 0x00000000 [ 52.684570] [0x1F] 0x00000000 [ 52.688568] failed to obtain the signature (read 0x00000000). [ 52.694885] FE debug registers: [ 52.698394] [0x00] 0x00000000 [ 52.701904] [0x01] 0x00000000 [ 52.705444] [0x02] 0x00000000 [ 52.708923] [0x03] 0x00000000 [ 52.712432] [0x04] 0x00000000 [ 52.715972] [0x05] 0x00000000 [ 52.719482] [0x06] 0x00000000 [ 52.722961] [0x07] 0x00000000 [ 52.726531] [0x08] 0x00000000 [ 52.730041] [0x09] 0x00000000 [ 52.733581] [0x0A] 0x00000000 [ 52.737060] [0x0B] 0x00000000 [ 52.740570] [0x0C] 0x00000000 [ 52.744110] [0x0D] 0x00000000 [ 52.747619] [0x0E] 0x00000000 [ 52.751129] [0x0F] 0x00000000 [ 52.754638] [0x10] 0x00000000 [ 52.758148] [0x11] 0x00000000 [ 52.761657] [0x12] 0x00000000 [ 52.765167] [0x13] 0x00000000 [ 52.768676] [0x14] 0x00000000 [ 52.772186] [0x15] 0x00000000 [ 52.775695] [0x16] 0x00000000 [ 52.779205] [0x17] 0x00000000 [ 52.782714] [0x18] 0x00000000 [ 52.786224] [0x19] 0x00000000 [ 52.789733] [0x1A] 0x00000000 [ 52.793243] [0x1B] 0x00000000 [ 52.796783] [0x1C] 0x00000000 [ 52.800262] [0x1D] 0x00000000 [ 52.803802] [0x1E] 0x00000000 [ 52.807312] [0x1F] 0x00000000 [ 52.811309] failed to obtain the signature (read 0x00000000). [ 52.817657] PE debug registers: [ 52.821197] [0x00] 0x00000000 [ 52.824707] [0x01] 0x00000000 [ 52.828216] [0x02] 0x00000000 [ 52.831726] [0x03] 0x00000000 [ 52.835266] [0x04] 0xA40004F1 [ 52.838775] [0x05] 0xABC54001 [ 52.842285] [0x06] 0xBC000086 [ 52.845794] [0x07] 0xCDE80040 [ 52.849304] [0x08] 0xD0000000 [ 52.852813] [0x09] 0x00000000 [ 52.856323] [0x0A] 0x00000000 [ 52.859832] [0x0B] 0x00000000 [ 52.863342] [0x0C] 0xBABEF00D [ 52.866882] [0x0D] 0xBABEF00D [ 52.870391] [0x0E] 0xBABEF00D [ 52.873901] [0x0F] 0xBABEF00D [ 52.877410] [0x10] 0x00000000 [ 52.880920] [0x11] 0x00000000 [ 52.884429] [0x12] 0x00000000 [ 52.887939] [0x13] 0x00000000 [ 52.891448] [0x14] 0xA40004F1 [ 52.894989] [0x15] 0xABC54001 [ 52.898529] [0x16] 0xBC000086 [ 52.902069] [0x17] 0xCDE80040 [ 52.905609] [0x18] 0xD0000000 [ 52.909149] [0x19] 0x00000000 [ 52.912658] [0x1A] 0x00000000 [ 52.916229] [0x1B] 0x00000000 [ 52.919708] [0x1C] 0xBABEF00D [ 52.923217] [0x1D] 0xBABEF00D [ 52.926788] [0x1E] 0xBABEF00D [ 52.930267] [0x1F] 0xBABEF00D [ 52.933807] [0x20] 0x00000000 [ 52.937316] [0x21] 0x00000000 [ 52.940795] [0x22] 0x00000000 [ 52.944335] [0x23] 0x00000000 [ 52.947845] [0x24] 0xA40004F1 [ 52.951324] [0x25] 0xABC54001 [ 52.954864] [0x26] 0xBC000086 [ 52.958343] [0x27] 0xCDE80040 [ 52.961853] [0x28] 0xD0000000 [ 52.965393] [0x29] 0x00000000 [ 52.968872] [0x2A] 0x00000000 [ 52.972381] [0x2B] 0x00000000 [ 52.975952] [0x2C] 0xBABEF00D [ 52.979461] [0x2D] 0xBABEF00D [ 52.982940] [0x2E] 0xBABEF00D [ 52.986480] [0x2F] 0xBABEF00D [ 52.989990] signature = 0xBABEF00D (1 read attempt(s)) [ 52.995697] DE debug registers: [ 52.999206] [0x00] 0x00000000 [ 53.002716] [0x01] 0x00000000 [ 53.006225] [0x02] 0x00000000 [ 53.009735] [0x03] 0x00000000 [ 53.013244] [0x04] 0x00000000 [ 53.016784] [0x05] 0x00000000 [ 53.020263] [0x06] 0x00000000 [ 53.023864] [0x07] 0x00000000 [ 53.027374] [0x08] 0x00000000 [ 53.030853] [0x09] 0x00000000 [ 53.034393] [0x0A] 0x00000000 [ 53.037902] [0x0B] 0x00000000 [ 53.041412] [0x0C] 0x00000000 [ 53.044952] [0x0D] 0x00000000 [ 53.048431] [0x0E] 0x00000000 [ 53.051940] [0x0F] 0x00000000 [ 53.055480] [0x10] 0x00000000 [ 53.058990] [0x11] 0x00000000 [ 53.062499] [0x12] 0x00000000 [ 53.066009] [0x13] 0x00000000 [ 53.069519] [0x14] 0x00000000 [ 53.073028] [0x15] 0x00000000 [ 53.076538] [0x16] 0x00000000 [ 53.080047] [0x17] 0x00000000 [ 53.083587] [0x18] 0x00000000 [ 53.087097] [0x19] 0x00000000 [ 53.090606] [0x1A] 0x00000000 [ 53.094116] [0x1B] 0x00000000 [ 53.097625] [0x1C] 0x00000000 [ 53.101135] [0x1D] 0x00000000 [ 53.104675] [0x1E] 0x00000000 [ 53.108184] [0x1F] 0x00000000 [ 53.112182] failed to obtain the signature (read 0x00000000). [ 53.118499] SH debug registers: [ 53.122009] [0x00] 0x00000000 [ 53.125549] [0x01] 0x00000000 [ 53.129028] [0x02] 0x00000000 [ 53.132537] [0x03] 0x00000000 [ 53.136077] [0x04] 0x00000000 [ 53.139556] [0x05] 0x00000000 [ 53.143066] [0x06] 0x00000000 [ 53.146606] [0x07] 0x00000000 [ 53.150115] [0x08] 0x00000000 [ 53.153656] [0x09] 0x00000000 [ 53.157135] [0x0A] 0x00000000 [ 53.160644] [0x0B] 0x00000000 [ 53.164184] [0x0C] 0x00000000 [ 53.167694] [0x0D] 0x00000000 [ 53.171203] [0x0E] 0x00000000 [ 53.174713] [0x0F] 0x00000000 [ 53.178222] [0x10] 0x00000000 [ 53.181732] [0x11] 0x00000000 [ 53.185241] [0x12] 0x00000000 [ 53.188751] [0x13] 0x00000000 [ 53.192260] [0x14] 0x00000000 [ 53.195800] [0x15] 0x00000000 [ 53.199279] [0x16] 0x00000000 [ 53.202789] [0x17] 0x00000000 [ 53.206329] [0x18] 0x00000000 [ 53.209838] [0x19] 0x00000000 [ 53.213317] [0x1A] 0x00000000 [ 53.216857] [0x1B] 0x00000000 [ 53.220367] [0x1C] 0x00000000 [ 53.223907] [0x1D] 0x00000000 [ 53.227416] [0x1E] 0x00000000 [ 53.230926] [0x1F] 0x00000000 [ 53.235015] failed to obtain the signature (read 0x00000000). [ 53.241302] PA debug registers: [ 53.244812] [0x00] 0x00000000 [ 53.248321] [0x01] 0x00000000 [ 53.251831] [0x02] 0x00000000 [ 53.255340] [0x03] 0x00000000 [ 53.258850] [0x04] 0x00000000 [ 53.262359] [0x05] 0x00000000 [ 53.265899] [0x06] 0x00000000 [ 53.269409] [0x07] 0x00000000 [ 53.272888] [0x08] 0x00000000 [ 53.276428] [0x09] 0x00000000 [ 53.279937] [0x0A] 0x00000000 [ 53.283477] [0x0B] 0x00000000 [ 53.286987] [0x0C] 0x00000000 [ 53.290466] [0x0D] 0x00000000 [ 53.294006] [0x0E] 0x00000000 [ 53.297515] [0x0F] 0x00000000 [ 53.301025] [0x10] 0x00000000 [ 53.304534] [0x11] 0x00000000 [ 53.308044] [0x12] 0x00000000 [ 53.311553] [0x13] 0x00000000 [ 53.315063] [0x14] 0x00000000 [ 53.318572] [0x15] 0x00000000 [ 53.322082] [0x16] 0x00000000 [ 53.325592] [0x17] 0x00000000 [ 53.329101] [0x18] 0x00000000 [ 53.332611] [0x19] 0x00000000 [ 53.336151] [0x1A] 0x00000000 [ 53.339660] [0x1B] 0x00000000 [ 53.343170] [0x1C] 0x00000000 [ 53.346710] [0x1D] 0x00000000 [ 53.350219] [0x1E] 0x00000000 [ 53.353759] [0x1F] 0x00000000 [ 53.357757] failed to obtain the signature (read 0x00000000). [ 53.364074] SE debug registers: [ 53.367584] [0x00] 0x00000000 [ 53.371063] [0x01] 0x00000000 [ 53.374603] [0x02] 0x00000000 [ 53.378112] [0x03] 0x00000000 [ 53.381591] [0x04] 0x00000000 [ 53.385131] [0x05] 0x00000000 [ 53.388641] [0x06] 0x00000000 [ 53.392150] [0x07] 0x00000000 [ 53.395660] [0x08] 0x00000000 [ 53.399169] [0x09] 0x00000000 [ 53.402679] [0x0A] 0x00000000 [ 53.406219] [0x0B] 0x00000000 [ 53.409729] [0x0C] 0x00000000 [ 53.413238] [0x0D] 0x00000000 [ 53.416748] [0x0E] 0x00000000 [ 53.420440] [0x0F] 0x00000000 [ 53.423950] [0x10] 0x00000000 [ 53.427459] [0x11] 0x00000000 [ 53.431030] [0x12] 0x00000000 [ 53.434539] [0x13] 0x00000000 [ 53.438049] [0x14] 0x00000000 [ 53.441558] [0x15] 0x00000000 [ 53.445068] [0x16] 0x00000000 [ 53.448577] [0x17] 0x00000000 [ 53.452087] [0x18] 0x00000000 [ 53.455596] [0x19] 0x00000000 [ 53.459106] [0x1A] 0x00000000 [ 53.462615] [0x1B] 0x00000000 [ 53.466156] [0x1C] 0x00000000 [ 53.469665] [0x1D] 0x00000000 [ 53.473144] [0x1E] 0x00000000 [ 53.476684] [0x1F] 0x00000000 [ 53.480682] failed to obtain the signature (read 0x00000000). [ 53.486999] MC debug registers: [ 53.490509] [0x00] 0x00000000 [ 53.494049] [0x01] 0x00000000 [ 53.497558] [0x02] 0x00000017 [ 53.501037] [0x03] 0x00000000 [ 53.504577] [0x04] 0x12345678 [ 53.508087] [0x05] 0x12345678 [ 53.511566] [0x06] 0x12345678 [ 53.515106] [0x07] 0x12345678 [ 53.518615] [0x08] 0x12345678 [ 53.522125] [0x09] 0x12345678 [ 53.525665] [0x0A] 0x12345678 [ 53.529174] [0x0B] 0x12345678 [ 53.532684] [0x0C] 0x12345678 [ 53.536224] [0x0D] 0x12345678 [ 53.539703] [0x0E] 0x12345678 [ 53.543212] [0x0F] 0x12345678 [ 53.546752] [0x10] 0x00000000 [ 53.550231] [0x11] 0x00000000 [ 53.553771] [0x12] 0x00000000 [ 53.557281] [0x13] 0x00000000 [ 53.560760] [0x14] 0x12345678 [ 53.564300] [0x15] 0x12345678 [ 53.567810] [0x16] 0x12345678 [ 53.571289] [0x17] 0x12345678 [ 53.574829] [0x18] 0x12345678 [ 53.578338] [0x19] 0x12345678 [ 53.581817] [0x1A] 0x12345678 [ 53.585357] [0x1B] 0x12345678 [ 53.588867] [0x1C] 0x12345678 [ 53.592376] [0x1D] 0x12345678 [ 53.595886] [0x1E] 0x12345678 [ 53.599395] [0x1F] 0x12345678 [ 53.602905] signature = 0x12345678 (1 read attempt(s)) [ 53.608612] HI debug registers: [ 53.612121] [0x00] 0x00000000 [ 53.616699] [0x01] 0x00000000 [ 53.620208] [0x02] 0x00000000 [ 53.623748] [0x03] 0xAAAAAAAA [ 53.627258] [0x04] 0xAAAAAAAA [ 53.630767] [0x05] 0xAAAAAAAA [ 53.634277] [0x06] 0xAAAAAAAA [ 53.637786] [0x07] 0xAAAAAAAA [ 53.641296] [0x08] 0xAAAAAAAA [ 53.644836] [0x09] 0xAAAAAAAA [ 53.648345] [0x0A] 0xAAAAAAAA [ 53.651855] [0x0B] 0xAAAAAAAA [ 53.655364] [0x0C] 0xAAAAAAAA [ 53.658874] [0x0D] 0xAAAAAAAA [ 53.662384] [0x0E] 0xAAAAAAAA [ 53.665985] [0x0F] 0xAAAAAAAA [ 53.669494] [0x10] 0x00000000 [ 53.672973] [0x11] 0x00000000 [ 53.676513] [0x12] 0x00000000 [ 53.679992] [0x13] 0xAAAAAAAA [ 53.683532] [0x14] 0xAAAAAAAA [ 53.687042] [0x15] 0xAAAAAAAA [ 53.690521] [0x16] 0xAAAAAAAA [ 53.694061] [0x17] 0xAAAAAAAA [ 53.697570] [0x18] 0xAAAAAAAA [ 53.701049] [0x19] 0xAAAAAAAA [ 53.704589] [0x1A] 0xAAAAAAAA [ 53.708099] [0x1B] 0xAAAAAAAA [ 53.711608] [0x1C] 0xAAAAAAAA [ 53.715148] [0x1D] 0xAAAAAAAA [ 53.718627] [0x1E] 0xAAAAAAAA [ 53.722351] [0x1F] 0xAAAAAAAA [ 53.725891] signature = 0xAAAAAAAA (1 read attempt(s)) [ 53.731567] Other Registers: [ 53.734863] [0x0040] 0x00000013 [ 53.738525] [0x0044] 0x00000000 [ 53.742218] [0x004C] 0x00000000 [ 53.745941] [0x0050] 0x00000000 [ 53.749633] [0x0054] 0x00000000 [ 53.753295] [0x0058] 0x0000000C [ 53.757019] [0x005C] 0x00000005 [ 53.760681] [0x0060] 0x00000005 [ 53.764404] [0x043C] 0x00000000 [ 53.768096] [0x0440] 0x00000000 [ 53.771759] [0x0444] 0x00000000 [ 53.775451] [0x0414] 0x3C000000 [ 53.779144] MMU status from MC[0]: [ 53.782897] GPU[0](ChipModel=0x320 ChipRevision=0x5301): [ 53.788238] ************************** [ 53.792022] *** MMU ERROR DUMP *** [ 53.795806] ************************** [ 53.799560] MMU status = 0x00000000 [ 53.803222] ************************** [ 53.807006] ***** SW COUNTERS ***** [ 53.810791] ************************** [ 53.814575] Execute Count = 0x00000002 [ 53.818664] Execute Addr = 0xFB0EB000 [ 53.822784] End Addr = 0xFB2F1020 [ 53.826934] CPU: 1 PID: 1276 Comm: galcore daemon Tainted: G W O 6.1.80-ti-g2e423244f8c0 #1 [ 53.836639] Hardware name: Generic DRA74X (Flattened Device Tree) [ 53.842773] unwind_backtrace from show_stack+0x10/0x14 [ 53.848022] show_stack from dump_stack_lvl+0x40/0x4c [ 53.853118] dump_stack_lvl from gckOS_DumpCallStack+0x8/0x10 [galcore] [ 53.859832] gckOS_DumpCallStack [galcore] from gckHARDWARE_DumpGPUState+0x8cc/0x938 [galcore] [ 53.868560] gckHARDWARE_DumpGPUState [galcore] from gckEVENT_Notify+0x448/0x518 [galcore] [ 53.876922] gckEVENT_Notify [galcore] from gckHARDWARE_Interrupt+0x84/0xa8 [galcore] [ 53.884826] gckHARDWARE_Interrupt [galcore] from threadRoutine+0x18/0x64 [galcore] [ 53.892578] threadRoutine [galcore] from kthread+0xec/0x11c [ 53.898315] kthread from ret_from_fork+0x14/0x38 [ 53.903045] Exception stack(0xf32edfb0 to 0xf32edff8) [ 53.908111] dfa0: 00000000 00000000 00000000 00000000 [ 53.916320] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 53.924560] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
Is this expected?
I saw upstream is moving to supporting GC320 with etnaviv driver, however 9.x SDK still includes gc320 libs + driver.
What is the status of Vivante GC320 support for AM57x in SDK 9.x?
BR,
Primoz