Description of problem: dmatest in guest VM report timeout using DSA MDEV passthrough with scalable mode vIOMMU Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Boot VM with DSA MDEV passthrough with scalable mode vIOMMU. 2. Config DSA device with dedicated mode in guest. 3. Run dmatest Actual results: [ 35.259035] dmatest: Added 1 threads using dma0chan0 [ 35.259073] dmatest: Started 1 threads using dma0chan0 [ 37.280632] dmatest: dma0chan0-copy0: result #1: 'test timed out' with src_off=0xb04 dst_off=0x994 len=0x2584 (0) [ 39.300629] dmatest: dma0chan0-copy0: result #2: 'test timed out' with src_off=0x8fe dst_off=0xa06 len=0x15a9 (0) [ 41.316630] dmatest: dma0chan0-copy0: result #3: 'test timed out' with src_off=0x20a3 dst_off=0x27f len=0x1a1e (0) [ 43.332629] dmatest: dma0chan0-copy0: result #4: 'test timed out' with src_off=0x772 dst_off=0x261b len=0x9ea (0) [ 45.348629] dmatest: dma0chan0-copy0: result #5: 'test timed out' with src_off=0x15a9 dst_off=0x43 len=0x2228 (0) [ 47.364630] dmatest: dma0chan0-copy0: result #6: 'test timed out' with src_off=0x501 dst_off=0x5a9 len=0x3961 (0) [ 49.380630] dmatest: dma0chan0-copy0: result #7: 'test timed out' with src_off=0x1e4c dst_off=0x1286 len=0xa61 (0) [ 51.392633] dmatest: dma0chan0-copy0: result #8: 'test timed out' with src_off=0x1652 dst_off=0x6e len=0x1b64 (0) Expected results: Additional info: Host dmesg: [ 345.088156] Unexpected page request in Privilege Mode [ 345.088263] idxd 0000:6a:01.0: err[0]: 0x0000110300001a6d [ 345.088266] idxd 0000:6a:01.0: err[1]: 0x0000000000000000 [ 345.088267] idxd 0000:6a:01.0: err[2]: 0x00000000fffff000 [ 345.088268] idxd 0000:6a:01.0: err[3]: 0x0000000000000000 [ 345.088270] idxd 0000:6a:01.0: err[0]: 0x0000110300001a6c [ 345.088270] idxd 0000:6a:01.0: err[1]: 0x0000000000000000 [ 345.088271] idxd 0000:6a:01.0: err[2]: 0x00000000fffff000 [ 345.088272] idxd 0000:6a:01.0: err[3]: 0x0000000000000000
merged: https://gitee.com/anolis/cloud-kernel/pulls/562