From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C256C4332B; Tue, 14 Nov 2023 15:36:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BCB1A4027B; Tue, 14 Nov 2023 15:36:41 +0100 (CET) Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47]) by mails.dpdk.org (Postfix) with ESMTP id 3BA2240279 for ; Tue, 14 Nov 2023 15:36:40 +0100 (CET) Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-58a42c3cbb8so1178116eaf.3 for ; Tue, 14 Nov 2023 06:36:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1699972599; x=1700577399; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=++LBkJsThQkwEdx0OmfjoZKjDwCkAT2zGedPWMAA95M=; b=dMDkTkqqZColmQ1A4NzSBl6XYaVRv2cXQM2NPI3z/Gdb0/go+oArmAeI1pEZpdEtk6 DzOZ6uT5m8T3BqeoZk8NxNzqfgF/zJ549WVpensNxlVQUMwDGJcymfZ1XO6JYkK1nx7q tjREQdrWfx0WcB1v1sAu7QoWdeuTfLdn1FmOc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699972599; x=1700577399; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=++LBkJsThQkwEdx0OmfjoZKjDwCkAT2zGedPWMAA95M=; b=MNcI3NaRvL8kt2hv9zFdYpsqt31d7xT4iQ0YFgtl0W2m/vouQorHcj/My0JvfRUtlW HwbkIhPugrNxzPtcnRhzVnKIhJz5suB9jXVEUpg11hXfxZkOBghdsMbogqaAPhq66MRO 5N4l39Eb2VdFe+URY3c7AMD4wUhxnbTZCXxkqE9FeA6TutiG+8GdvTjET/rexmAUjFFp K7mabmAWq6gFsWNCwdOza7PX0kWZDwfVrE0XhMs3VxalHjB8NRNKIGK6r/Yy/gz5pPKx jg1nX1brX6G4XVW4e2cgbKRAPjgeUQJoCm9lqgeju6rA6vicAmvN32hVnLrwM4xbhObi G4xQ== X-Gm-Message-State: AOJu0YwQ0yPFUjd9hFm/hRV8JQY9XMtmSCIuHpaN/1bMTG848jcVbuUJ qxOv88Pb0ywIAy7LuqrVBwEuviFx69xG9QMDy9rSJA== X-Google-Smtp-Source: AGHT+IH7+5bWSse5I+BuECL7VzKoj0duNGyzLK8ON3/xnwE1VnVNhs4ANdU9w9+Duk1QdBpo7w4QtU+LvQLfaulKbIA= X-Received: by 2002:a4a:9205:0:b0:589:df75:2d83 with SMTP id f5-20020a4a9205000000b00589df752d83mr9192608ooh.1.1699972599417; Tue, 14 Nov 2023 06:36:39 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Patrick Robb Date: Tue, 14 Nov 2023 09:36:28 -0500 Message-ID: Subject: Re: Intel QAT 8970 accel card on ARM Ampere Server To: Ruifeng Wang Cc: =?UTF-8?Q?Juraj_Linke=C5=A1?= , Dharmik Jayesh Thakkar , David Marchand , Honnappa Nagarahalli , "ci@dpdk.org" , nd , Aaron Conole Content-Type: multipart/alternative; boundary="000000000000eaa2a7060a1db6d3" X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org --000000000000eaa2a7060a1db6d3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ruifeng, Okay, thanks for the update. I'll build a new kernel just like before, but with this patch added too. And, I know it shouldn't matter, but I'll avoid statically building in the qat modules this go around. Thanks, Patrick On Tue, Nov 14, 2023 at 2:35=E2=80=AFAM Ruifeng Wang = wrote: > 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=3D40da865381ad061ab75a7a9da469ed4e623bdfeb > > > > Thanks, > > Ruifeng > > > > *From: *Patrick Robb > *Date: *Friday, November 3, 2023 at 6:01=E2=80=AFAM > *To: *Juraj Linke=C5=A1 > *Cc: *Dharmik Jayesh Thakkar , David > Marchand , Ruifeng Wang = , > Honnappa Nagarahalli , ci@dpdk.org < > ci@dpdk.org>, nd > *Subject: *Re: Intel QAT 8970 accel card on ARM Ampere Server > > On Wed, Oct 11, 2023 at 4:13=E2=80=AFPM Patrick Robb = 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. > --=20 Patrick Robb Technical Service Manager UNH InterOperability Laboratory 21 Madbury Rd, Suite 100, Durham, NH 03824 www.iol.unh.edu --000000000000eaa2a7060a1db6d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ruifeng,=C2=A0

Okay, thanks for the = update. I'll build a new kernel just like before, but with this patch a= dded too. And, I know it shouldn't matter, but I'll avoid staticall= y building in the qat modules this go around.=C2=A0

Thanks,
Patrick

On Tue, Nov 14, 2023 at 2:35=E2=80=AFAM Ru= ifeng Wang <Ruifeng.Wang@arm.com= > wrote:
=

Hi Pat= rick,

=C2=A0

It see= ms kernel v5.15 has a defect on this. A similar issue was fixed by commit:<= u>

40da86= 5381ad ("crypto: qat - remove unneeded packed attribute")<= u>

=C2=A0

Could = you patch the kernel and try again?

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

=C2=A0

Thanks= ,

Ruifen= g

=C2=A0<= /span>

From: Patrick Robb <probb@iol.unh.edu>= ;
Date: Friday, November 3, 2023 at 6:01=E2=80=AFAM
To: Juraj Linke=C5=A1 <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=E2=80=AFPM Patrick Robb <probb@iol.unh.edu> wrote:

=C2=A0<= /span>

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

=C2=A0<= /span>

Hi Aaron,

=C2=A0<= /span>

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



--

Patrick Robb

Technic= al Service Manager

UNH InterOperability Laboratory

21 Madbury Rd, Suite 100, Durham, NH 03824

www.iol.unh.edu


<= p dir=3D"ltr" style=3D"color:rgb(34,34,34);line-height:1.2;margin-top:0pt;m= argin-bottom:0pt">

--000000000000eaa2a7060a1db6d3--