public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [bug report] IOMMU reports data translation fault for fio testing
@ 2022-05-13 12:01 John Garry
  2022-05-14  2:28 ` Bart Van Assche
  0 siblings, 1 reply; 4+ messages in thread
From: John Garry @ 2022-05-13 12:01 UTC (permalink / raw)
  To: linux-block, linux-scsi
  Cc: chenxiang66@hisilicon.com >> Xiang Chen, liyihang (E)

Hi guys,

My colleague Yihang Li noticed this issue when testing throughput for 
hisi SAS arm64 controller on v5.18-rc6:

estuary:/$ bash ./create_fio_task.sh 4k read 128 1
test2  4k
my_runtime 1500
Creat 4k_read_depth128_fiotest file successfully
job1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
job1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
job1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
job1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
job1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
job1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
job1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
job1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
job1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
job1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
fio-2.2.10
Starting 10 processes
N[  304.798377] arm-smmu-v3 arm-smmu-v3.3.auto: event 0x10 
received:iops] [eta 23m:39s]
O[  304.804431] arm-smmu-v3 arm-smmu-v3.3.auto:         0x0000741000000010
T[  304.810404] arm-smmu-v3 arm-smmu-v3.3.auto:         0x000012000000007a
I[  304.816379] arm-smmu-v3 arm-smmu-v3.3.auto:         0x00000000abff6000
C[  304.822354] arm-smmu-v3 arm-smmu-v3.3.auto:         0x00000000abff6000
E[  304.828330] arm-smmu-v3 arm-smmu-v3.3.auto: event 0x10 received:
:[  304.834392] arm-smmu-v3 arm-smmu-v3.3.auto:         0x0000741000000010
[  304.840368] arm-smmu-v3 arm-smmu-v3.3.auto:         0x0000120000000058
[  304.846344] arm-smmu-v3 arm-smmu-v3.3.auto:         0x00000000abff6100
R[  304.852320] arm-smmu-v3 arm-smmu-v3.3.auto:         0x00000000abff6000
a[  304.858297] arm-smmu-v3 arm-smmu-v3.3.auto: event 0x10 received:
s[  304.864361] arm-smmu-v3 arm-smmu-v3.3.auto:         0x0000741000000010
I[  304.870337] arm-smmu-v3 arm-smmu-v3.3.auto:         0x000012000000004a
n[  304.876313] arm-smmu-v3 arm-smmu-v3.3.auto:         0x00000000abff62c0
t[  304.882289] arm-smmu-v3 arm-smmu-v3.3.auto:         0x00000000abff6000

Event 0x10 is a translation fault, meaning the DMA mapping is prob 
misconfigured.

I don't think it's an IOMMU issue as I tested that separately with a DMA 
mapping benchmark driver.

I'm told v5.17-rc7 does not have the issue. Any idea on the possible 
cause or if there is a fix in waiting? It could be an issue with the 
SCSI hba driver.

I'll bisect in the meantime.

thanks,
John

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-16 10:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-13 12:01 [bug report] IOMMU reports data translation fault for fio testing John Garry
2022-05-14  2:28 ` Bart Van Assche
2022-05-14  9:49   ` John Garry
2022-05-16 10:51     ` John Garry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox