Why is CQE enabled on MT8188/8390 but on no MT8195 design, and is there a known CQ recovery issue on MT8188

In mt8370-genio-510-evk.dts and mt8188-evb.dts “mmc” node has set “supports-cqe” but on genio-1200 it has not.

Is there some important reason why mt8395 based SoC’s doesn’t have that property set?

On genio-510-evk we have catched several times unrecoverable problem in mtk-sd driver. After that failure mmc memory is not accesible and prints on console all the time:

[ 2742.922485] mtk-msdc 11230000.mmc: msdc_cmdq_irq: DATA TIMEOUT ERR
[ 2742.923285] mtk-msdc 11230000.mmc: cmd_err = 0, dat_err =-110, intsts = 0x10004100
[ 2742.924239] mtk-msdc 11230000.mmc: src_clk freq = 384000077
[ 2742.924946] mtk-msdc 11230000.mmc: src_clk_mux  = Enabled
[ 2742.925630] mtk-msdc 11230000.mmc: src_clk_cg  = Enabled
[ 2742.926302] mtk-msdc 11230000.mmc: hclk_mux = Enabled
[ 2742.926938] mtk-msdc 11230000.mmc: hclk freq = 273000000
[ 2742.927609] mtk-msdc 11230000.mmc: hclk_cg = Enabled
[ 2742.928235] mtk-msdc 11230000.mmc: [Reg MSDC 0x0] = 0x2700093;
[ 2742.928969] mtk-msdc 11230000.mmc: [Reg MSDC 0x4] = 0x0;
[ 2742.929639] mtk-msdc 11230000.mmc: [Reg MSDC 0x8] = 0x81ff0002;
[ 2742.930386] mtk-msdc 11230000.mmc: [Reg MSDC 0xc] = 0x10004100;
[ 2742.931132] mtk-msdc 11230000.mmc: [Reg MSDC 0x10] = 0x10000000;
[ 2742.931888] mtk-msdc 11230000.mmc: [Reg MSDC 0x14] = 0x0;
[ 2742.932569] mtk-msdc 11230000.mmc: [Reg MSDC 0x18] = 0x0;
[ 2742.933249] mtk-msdc 11230000.mmc: [Reg MSDC 0x1c] = 0x0;
[ 2742.933930] mtk-msdc 11230000.mmc: [Reg MSDC 0x20] = 0x0;
[ 2742.934610] mtk-msdc 11230000.mmc: [Reg MSDC 0x24] = 0x0;
[ 2742.935291] mtk-msdc 11230000.mmc: [Reg MSDC 0x28] = 0x0;
[ 2742.935972] mtk-msdc 11230000.mmc: [Reg MSDC 0x2c] = 0x0;
[ 2742.936653] mtk-msdc 11230000.mmc: [Reg MSDC 0x30] = 0xff027734;
[ 2742.937410] mtk-msdc 11230000.mmc: [Reg MSDC 0x34] = 0x20010ae;
[ 2742.938157] mtk-msdc 11230000.mmc: [Reg MSDC 0x38] = 0xb0000;
[ 2742.938880] mtk-msdc 11230000.mmc: [Reg MSDC 0x3c] = 0x100000;
[ 2742.939614] mtk-msdc 11230000.mmc: [Reg MSDC 0x40] = 0x900;
[ 2742.940316] mtk-msdc 11230000.mmc: [Reg MSDC 0x44] = 0x800;
[ 2742.941019] mtk-msdc 11230000.mmc: [Reg MSDC 0x48] = 0x0;
[ 2742.941699] mtk-msdc 11230000.mmc: [Reg MSDC 0x4c] = 0x0;
[ 2742.942380] mtk-msdc 11230000.mmc: [Reg MSDC 0x50] = 0x78;
[ 2742.943071] mtk-msdc 11230000.mmc: [Reg MSDC 0x54] = 0x145;
[ 2742.943774] mtk-msdc 11230000.mmc: [Reg MSDC 0x58] = 0x900;
[ 2742.944476] mtk-msdc 11230000.mmc: [Reg MSDC 0x5c] = 0x0;
[ 2742.945157] mtk-msdc 11230000.mmc: [Reg MSDC 0x60] = 0x0;
[ 2742.945838] mtk-msdc 11230000.mmc: [Reg MSDC 0x64] = 0x3800f760;
[ 2742.946594] mtk-msdc 11230000.mmc: [Reg MSDC 0x68] = 0x0;
[ 2742.947275] mtk-msdc 11230000.mmc: [Reg MSDC 0x6c] = 0x0;
[ 2742.947956] mtk-msdc 11230000.mmc: [Reg MSDC 0x70] = 0x1004;
[ 2742.948669] mtk-msdc 11230000.mmc: [Reg MSDC 0x74] = 0xa000c8;
[ 2742.949404] mtk-msdc 11230000.mmc: [Reg MSDC 0x78] = 0x0;
[ 2742.950085] mtk-msdc 11230000.mmc: [Reg MSDC 0x7c] = 0x0;
[ 2742.950766] mtk-msdc 11230000.mmc: [Reg MSDC 0x80] = 0x900;
[ 2742.951468] mtk-msdc 11230000.mmc: [Reg MSDC 0x84] = 0x0;
[ 2742.952149] mtk-msdc 11230000.mmc: [Reg MSDC 0x88] = 0x0;
[ 2742.952830] mtk-msdc 11230000.mmc: [Reg MSDC 0x8c] = 0x0;
[ 2742.953510] mtk-msdc 11230000.mmc: [Reg MSDC 0x90] = 0xd4c94000;
[ 2742.954267] mtk-msdc 11230000.mmc: [Reg MSDC 0x94] = 0xd4c94000;
[ 2742.955024] mtk-msdc 11230000.mmc: [Reg MSDC 0x98] = 0x6008;
[ 2742.955737] mtk-msdc 11230000.mmc: [Reg MSDC 0x9c] = 0x7;
[ 2742.956418] mtk-msdc 11230000.mmc: [Reg MSDC 0xa0] = 0x0;
[ 2742.957098] mtk-msdc 11230000.mmc: [Reg MSDC 0xa4] = 0x0;
[ 2742.957779] mtk-msdc 11230000.mmc: [Reg MSDC 0xa8] = 0x200;
[ 2742.958481] mtk-msdc 11230000.mmc: [Reg MSDC 0xac] = 0x0;
[ 2742.959162] mtk-msdc 11230000.mmc: [Reg MSDC 0xb0] = 0x403c0446;
[ 2742.959918] mtk-msdc 11230000.mmc: [Reg MSDC 0xb4] = 0xfffe4389;
[ 2742.960674] mtk-msdc 11230000.mmc: [Reg MSDC 0xb8] = 0x488180f;
[ 2742.961419] mtk-msdc 11230000.mmc: [Reg MSDC 0xbc] = 0x0;
[ 2742.962100] mtk-msdc 11230000.mmc: [Reg MSDC 0xc0] = 0x0;
[ 2742.962780] mtk-msdc 11230000.mmc: [Reg MSDC 0xc4] = 0x0;
[ 2742.963461] mtk-msdc 11230000.mmc: [Reg MSDC 0xc8] = 0x0;
[ 2742.964142] mtk-msdc 11230000.mmc: [Reg MSDC 0xcc] = 0x0;
[ 2742.964822] mtk-msdc 11230000.mmc: [Reg MSDC 0xd0] = 0x0;
[ 2742.965503] mtk-msdc 11230000.mmc: [Reg MSDC 0xd4] = 0x0;
[ 2742.966184] mtk-msdc 11230000.mmc: [Reg MSDC 0xd8] = 0x0;
[ 2742.966865] mtk-msdc 11230000.mmc: [Reg MSDC 0xdc] = 0x0;
[ 2742.967545] mtk-msdc 11230000.mmc: [Reg MSDC 0xe0] = 0x0;
[ 2742.968226] mtk-msdc 11230000.mmc: [Reg MSDC 0xe4] = 0x0;
[ 2742.968907] mtk-msdc 11230000.mmc: [Reg MSDC 0xe8] = 0x0;
[ 2742.969587] mtk-msdc 11230000.mmc: [Reg MSDC 0xec] = 0x0;
[ 2742.970268] mtk-msdc 11230000.mmc: [Reg MSDC 0xf0] = 0x0;
[ 2742.970949] mtk-msdc 11230000.mmc: [Reg MSDC 0xf4] = 0x0;
[ 2742.971628] mtk-msdc 11230000.mmc: [Reg MSDC 0xf8] = 0x0;
[ 2742.972309] mtk-msdc 11230000.mmc: [Reg MSDC 0xfc] = 0x0;
[ 2742.972990] mtk-msdc 11230000.mmc: [Reg MSDC 0x100] = 0x0;
[ 2742.973681] mtk-msdc 11230000.mmc: [Reg MSDC 0x188] = 0x14014;
[ 2742.974415] mtk-msdc 11230000.mmc: [Reg MSDC 0x18c] = 0x0;
[ 2742.975106] mtk-msdc 11230000.mmc: [Reg MSDC 0x190] = 0x0;
[ 2742.975797] mtk-msdc 11230000.mmc: [Reg MSDC 0x194] = 0x0;
[ 2742.976489] mtk-msdc 11230000.mmc: [Reg MSDC 0x198] = 0x0;
[ 2742.977180] mtk-msdc 11230000.mmc: [Reg MSDC 0x19c] = 0x0;
[ 2742.977871] mtk-msdc 11230000.mmc: [Reg MSDC 0x1a0] = 0x0;
[ 2742.978563] mtk-msdc 11230000.mmc: [Reg MSDC 0x1a4] = 0x0;
[ 2742.979254] mtk-msdc 11230000.mmc: [Reg MSDC 0x1a8] = 0x0;
[ 2742.979945] mtk-msdc 11230000.mmc: [Reg MSDC 0x1ac] = 0x0;
[ 2742.980637] mtk-msdc 11230000.mmc: [Reg MSDC 0x1b0] = 0x0;
[ 2742.981329] mtk-msdc 11230000.mmc: [Reg MSDC 0x1b4] = 0x0;
[ 2742.982020] mtk-msdc 11230000.mmc: [Reg MSDC 0x1b8] = 0x0;
[ 2742.982712] mtk-msdc 11230000.mmc: [Reg MSDC 0x1bc] = 0x0;
[ 2742.983404] mtk-msdc 11230000.mmc: [Reg MSDC 0x1c0] = 0x0;
[ 2742.984095] mtk-msdc 11230000.mmc: [Reg MSDC 0x1c4] = 0x0;
[ 2742.984786] mtk-msdc 11230000.mmc: [Reg MSDC 0x1c8] = 0x0;
[ 2742.985478] mtk-msdc 11230000.mmc: [Reg MSDC 0x1cc] = 0x0;
[ 2742.986169] mtk-msdc 11230000.mmc: [Reg MSDC 0x1d0] = 0x0;
[ 2742.986861] mtk-msdc 11230000.mmc: [Reg MSDC 0x1d4] = 0x0;
[ 2742.987552] mtk-msdc 11230000.mmc: [Reg MSDC 0x1d8] = 0x0;
[ 2742.988243] mtk-msdc 11230000.mmc: [Reg MSDC 0x1dc] = 0x0;
[ 2742.988934] mtk-msdc 11230000.mmc: [Reg MSDC 0x1e0] = 0x0;
[ 2742.989625] mtk-msdc 11230000.mmc: [Reg MSDC 0x1e4] = 0x0;
[ 2742.990317] mtk-msdc 11230000.mmc: [Reg MSDC 0x1e8] = 0x0;
[ 2742.991008] mtk-msdc 11230000.mmc: [Reg MSDC 0x1ec] = 0x0;
[ 2742.991699] mtk-msdc 11230000.mmc: [Reg MSDC 0x1f0] = 0x0;
[ 2742.992391] mtk-msdc 11230000.mmc: [Reg MSDC 0x1f4] = 0x0;
[ 2742.993082] mtk-msdc 11230000.mmc: [Reg MSDC 0x1f8] = 0x0;
[ 2742.993773] mtk-msdc 11230000.mmc: [Reg MSDC 0x1fc] = 0x0;
[ 2742.994465] mtk-msdc 11230000.mmc: [Reg MSDC 0x200] = 0x0;
[ 2742.995156] mtk-msdc 11230000.mmc: [Reg MSDC 0x204] = 0x2d000000;
[ 2742.995923] mtk-msdc 11230000.mmc: [Reg MSDC 0x208] = 0xe88a33;
[ 2742.996668] mtk-msdc 11230000.mmc: [Reg MSDC 0x20c] = 0x11000300;
[ 2742.997436] mtk-msdc 11230000.mmc: [Reg MSDC 0x210] = 0x0;
[ 2742.998127] mtk-msdc 11230000.mmc: [Reg MSDC 0x214] = 0x0;
[ 2742.998818] mtk-msdc 11230000.mmc: [Reg MSDC 0x218] = 0x0;
[ 2742.999510] mtk-msdc 11230000.mmc: [Reg MSDC 0x21c] = 0xf0c0000;
[ 2743.000267] mtk-msdc 11230000.mmc: [Reg MSDC 0x220] = 0xf28a3c2;
[ 2743.001023] mtk-msdc 11230000.mmc: [Reg MSDC 0x224] = 0x1281e;
[ 2743.001758] mtk-msdc 11230000.mmc: [Reg MSDC 0x228] = 0x40c0080;
[ 2743.002514] mtk-msdc 11230000.mmc: [Reg MSDC 0x7fc] = 10200;
[ 2743.003228] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x0] = 0xa000;
[ 2743.003973] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x4] = 0x800;
[ 2743.004708] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x8] = 0x0;
[ 2743.005421] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0xc] = 0x1481b;
[ 2743.006178] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x10] = 0x0;
[ 2743.006903] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x14] = 0x0;
[ 2743.007627] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x18] = 0x0;
[ 2743.008351] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x1c] = 0x0;
[ 2743.009075] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x20] = 0x0;
[ 2743.009799] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x24] = 0x0;
[ 2743.010523] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x28] = 0x0;
[ 2743.011247] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x2c] = 0x0;
[ 2743.011971] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x30] = 0x0;
[ 2743.012694] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x34] = 0x0;
[ 2743.013418] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x38] = 0x10;
[ 2743.014153] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x3c] = 0x0;
[ 2743.014877] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x40] = 0x20210205;
[ 2743.015676] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x44] = 0x0;
[ 2743.016400] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x48] = 0x0;
[ 2743.017124] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x4c] = 0x0;
[ 2743.017848] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x50] = 0x3ff;
[ 2743.018593] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x54] = 0x0;
[ 2743.019317] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x58] = 0x0;
[ 2743.020041] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x5c] = 0x0;
[ 2743.020765] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x60] = 0x0;
[ 2743.021489] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x64] = 0x0;
[ 2743.022213] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x68] = 0x0;
[ 2743.022937] mtk-msdc 11230000.mmc: [Reg MSDC_TOP 0x6c] = 0x0;
[ 2743.023661] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x0] = 0x0;
[ 2743.024374] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x1] = 0x1000;
[ 2743.025121] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x2] = 0x1000;
[ 2743.025866] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x3] = 0x0;
[ 2743.026579] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x4] = 0x0;
[ 2743.027293] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x5] = 0x2000200;
[ 2743.028071] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x6] = 0x0;
[ 2743.028784] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x7] = 0x1;
[ 2743.029497] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x8] = 0x0;
[ 2743.030211] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x9] = 0x0;
[ 2743.030924] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0xa] = 0x0;
[ 2743.031637] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0xb] = 0x0;
[ 2743.032350] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0xc] = 0x0;
[ 2743.033063] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0xd] = 0x0;
[ 2743.033777] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0xe] = 0x0;
[ 2743.034491] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0xf] = 0x0;
[ 2743.035204] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x10] = 0x4;
[ 2743.035928] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x11] = 0x7e180010;
[ 2743.036728] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x12] = 0xd281da00;
[ 2743.037527] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x13] = 0x200;
[ 2743.038273] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x14] = 0x0;
[ 2743.038997] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x15] = 0x0;
[ 2743.039721] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x16] = 0x0;
[ 2743.040444] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x17] = 0x0;
[ 2743.041168] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x18] = 0x0;
[ 2743.041892] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x19] = 0x1;
[ 2743.042616] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x1a] = 0x80000000;
[ 2743.043416] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x1b] = 0xc33c10c6;
[ 2743.044216] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x1c] = 0xc9fb2000;
[ 2743.045015] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x1d] = 0x0;
[ 2743.045740] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x1e] = 0x80;
[ 2743.046474] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x1f] = 0xc9fb2008;
[ 2743.047274] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x20] = 0x1000000;
[ 2743.048062] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x21] = 0x7e195810;
[ 2743.048863] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x22] = 0x0;
[ 2743.049586] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x23] = 0x0;
[ 2743.050311] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x24] = 0x0;
[ 2743.051035] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x25] = 0x11000011;
[ 2743.051834] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x26] = 0x402911;
[ 2743.052613] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x27] = 0x0;
[ 2743.053337] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x28] = 0x0;
[ 2743.054061] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x29] = 0x0;
[ 2743.054785] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x2a] = 0x0;
[ 2743.055509] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x2b] = 0x0;
[ 2743.056233] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x2c] = 0x0;
[ 2743.056957] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x2d] = 0x0;
[ 2743.057681] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x2e] = 0x900;
[ 2743.058427] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x2f] = 0x0;
[ 2743.059150] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x30] = 0x0;
[ 2743.059874] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x31] = 0x0;
[ 2743.060598] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x32] = 0x0;
[ 2743.061322] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x33] = 0x0;
[ 2743.062046] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x34] = 0x0;
[ 2743.062770] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x35] = 0x0;
[ 2743.063494] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x36] = 0x300e00;
[ 2743.064272] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x37] = 0x2000100;
[ 2743.065061] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x38] = 0x240001;
[ 2743.065839] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x39] = 0x30052d60;
[ 2743.066639] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x3a] = 0x3fcd;
[ 2743.067396] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x3b] = 0x0;
[ 2743.068121] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x3c] = 0x0;
[ 2743.068846] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x3d] = 0x30c2a50;
[ 2743.069635] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x3e] = 0x8002f;
[ 2743.070403] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x3f] = 0x0;
[ 2743.071126] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x40] = 0x0;
[ 2743.071850] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x41] = 0xd4c94000;
[ 2743.072651] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x42] = 0x10000021;
[ 2743.073451] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x43] = 0x0;
[ 2743.074175] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x44] = 0x1e3;
[ 2743.074920] mtk-msdc 11230000.mmc: [Reg MSDC_DBG 0x45] = 0x0;
[ 2743.075818] mmc0: running CQE recovery
[ 2743.084140] mtk-msdc 11230000.mmc: msdc_cqe_disable: DMA still active, resetting anyway
[ 2743.091092] mtk-msdc 11230000.mmc: msdc_cmdq_irq: CMD TIMEOUT ERR
[ 2743.091879] mtk-msdc 11230000.mmc: cmd_err = -110, dat_err =0, intsts = 0x10000200
[ 2743.092835] mtk-msdc 11230000.mmc: src_clk freq = 384000077
[ 2743.093545] mtk-msdc 11230000.mmc: src_clk_mux  = Enabled
[ 2743.094231] mtk-msdc 11230000.mmc: src_clk_cg  = Enabled
[ 2743.094905] mtk-msdc 11230000.mmc: hclk_mux = Enabled
[ 2743.095544] mtk-msdc 11230000.mmc: hclk freq = 273000000
[ 2743.096216] mtk-msdc 11230000.mmc: hclk_cg = Enabled

Is that reasonable to remove “supports-cqe” from DT on our genio-510 device?

Right now we are able to reproduce that on BSP-26.0, but it was also seen on BSP-24.1

Hi

The “supports-cqe” property can be added for mt8395 as well(it is simply not added by default).

Does the CQE recovery issue only happen on the specific 510 EVK?

We don’t actually observe this issue against 510 EVK in hands.

It is OK to remove “supports-cqe” for mt8370 and check if there is any unexpected emmc error appeared.

Thanks.

When I removed “supports-cqe” on genio-510 then I was not able to see this error any more. I think I will use this as a fix for now.
The method I was able to reproduce (simulate the real usage) was :

  1. First process is reading/writing some files on big data partition ext4 mounted on /dev/mmcblk0p13
  2. Second process is reading in the loop different partition like this: cat /dev/mmcblk0boot0 | strings | grep Version

I think such reading of boot partition require halting of CQE by issuing emmc command. From time to time it was possible to catch it. As result MMC memory becames unusuble until next reboot.
As I said with “supports-cqe” disabled I can’t reproduce this problem, so I’m suspecting some mtk-sd driver issue here.

Hello, we are currently also having a similar problem with our genio510 device as well.

Observed symptom is a DATA TIMEOUT ERROR on boot, when the system is trying to mount the overlay partition with mount -t ext4 /dev/mmcblk0p10 /overlayfs

This is a large partition at the end of the eMMC, eveytime we see the problem so far is directly after the system called the mount command above on boot. We haven’t yet seen any problem after boot. On our boot test where we observed the error, it failed about 1-2 times every 5000 reboot cycles.

We tried to modified the code to extend the debug message (dumping all the register and the current queue) whenever the error showed up, and there’s always a READ command on the first block of the partition found in the queue when the error happened.

I tried to simulate this behavior but failed to replicate it:

  • Doing a heavy read/write stress with large queue with fio in the background
  • Constantly mount and unmount that large partition using the command above, with drop_cache inbetween

After 30.000+ cycles, no error showed up.

Our software is currently based on the v25 BSP.

It seems that for @Lukasz_Plewa disabling CQE solve the issue. Would there be any performance impact by disabling it?

Hi Nam,

The main impact will be on random read/write performance per different emmc devices if CQE is disabled.