Hi Patrick,

 

It seems kernel v5.15 has a defect on this. A similar issue was fixed by commit:

40da865381ad ("crypto: qat - remove unneeded packed attribute")

 

Could you patch the kernel and try again?

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=40da865381ad061ab75a7a9da469ed4e623bdfeb

 

Thanks,

Ruifeng

 

From: Patrick Robb <probb@iol.unh.edu>
Date: Friday, November 3, 2023 at 6:01 AM
To: Juraj Linkeš <juraj.linkes@pantheon.tech>
Cc: Dharmik Jayesh Thakkar <DharmikJayesh.Thakkar@arm.com>, David Marchand <david.marchand@redhat.com>, Ruifeng Wang <Ruifeng.Wang@arm.com>, Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>, ci@dpdk.org <ci@dpdk.org>, nd <nd@arm.com>
Subject: Re: Intel QAT 8970 accel card on ARM Ampere Server

On Wed, Oct 11, 2023 at 4:13 PM Patrick Robb <probb@iol.unh.edu> wrote:

 

root@arm-ampere-dut:~# echo 16 > /sys/bus/pci/drivers/c6xx/0000:03:00.0/sriov_numvfs
Segmentation fault (core dumped)

 

Hi Aaron,

 

Thanks for offering to take a look. I'm not sure if you've seen the rest of this conversation already from it being on the ci mailing list or not, but modinfo looks good for qat_c62x andqat_c62xvf after the custom kernel was built. From there, it should be possible to bind some VFs for each PF on the QAT card, per documentation here https://doc.dpdk.org/guides/cryptodevs/qat.html but it results in a seg fault like you see above. Let me know if you have any ideas.