From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aserp2130.oracle.com (aserp2130.oracle.com [141.146.126.79]) by dpdk.org (Postfix) with ESMTP id BC66027D for ; Fri, 8 Mar 2019 22:13:16 +0100 (CET) Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x28L40VA176507 for ; Fri, 8 Mar 2019 21:13:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type; s=corp-2018-07-02; bh=vnJ6+71Abob3JPNC7zeKuPJUqBoqZ6WXXloOK9nnF6Q=; b=fVFJM+9XWb6z47vveE7Biqo79lJziGP/wH6AZp7fQ18zqxyR3B2AeBZZP3vHAjpMS/nX wJZkhMcJaqK45oHlcIY3Okxcq5Dagx1sTrAdBKxY1IYZ1WRxFJAR3lgmC0TJNJNe8A5a mNqp8sfmmOsIlwpX5ncd1FdbrfNyNof3mjuB9GcBP0Jjvo0QfyMJ1HXRm1pf2LUiFa1b Ctnd08JI/0tj3iSAK1FeBpolgPBhrACZm4/iRptUhFvasXH8oVaGYEPKElCoqKSwH2AF uUi4Wj2qyb98joLCLKkU4ppXJdHfmf9KPk6WCOj66GbzgN7lcWLHWeiRLgnh7BdY8Dk2 Lw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2qyfbetssq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 08 Mar 2019 21:13:15 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x28LDARO006575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 8 Mar 2019 21:13:10 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x28LD9Mu032624 for ; Fri, 8 Mar 2019 21:13:10 GMT MIME-Version: 1.0 Message-ID: <6ec28615-daea-473e-9f4f-cee9b6237207@default> Date: Fri, 8 Mar 2019 13:13:08 -0800 (PST) From: Changchun Zhang Sender: Changchun Zhang To: users@dpdk.org X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 15.0.5111.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9189 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=626 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903080147 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Cannot enable VFs for QAT PF X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Mar 2019 21:13:17 -0000 Hi, =20 I cannot enable VFs for the QAT device, my steps are as follows: 1. Enable VT-d in BIOS 2. Add the "intel_iommu=3Don iommu=3Dpt" in the kernel command line 3. QAT device driver has been inserted: ~ # lsmod | grep qa qat_c62x 16384 0=20 intel_qat 114688 1 qat_c62x =20 4. Find the BDF of the PF: ~ # lspci -d:37c8 b5:00.0 Class 0b40: Device 8086:37c8 (rev 04) b7:00.0 Class 0b40: Device 8086:37c8 (rev 04) =20 5. Trying to enable VFs, but I did not find sriov_numvfs in directories= : /sys/bus/pci/drivers/c6xx /sys/bus/pci/drivers/c6xx # ls -ltr=20 --w------- 1 4096 Jan 22 21:41 uevent --w------- 1 4096 Jan 22 21:43 unbind --w------- 1 4096 Jan 22 21:43 remove_id --w------- 1 4096 Jan 22 21:43 new_id lrwxrwxrwx 1 0 Jan 22 21:43 module -> ../../../../module/qat_c62= x --w------- 1 4096 Jan 22 21:43 bind =20 But I can find sriov_numvfs in other directories: /sys # find ./ -name sriov_numvfs ./devices/pci0000:b2/0000:b2:00.0/0000:b3:00.0/0000:b4:00.0/0000:b5:00.0/sr= iov_numvfs ./devices/pci0000:b2/0000:b2:00.0/0000:b3:00.0/0000:b4:02.0/0000:b7:00.0/sr= iov_numvfs =20 Unfortunately, when trying to enable the VFs with above sriov_numvfs file, = cannot write to this file, like: /sys # echo 16 > ./devices/pci0000:b2/0000:b2:00.0/0000:b3:00.0/0000:b4:02.= 0/0000:b7:00.0/sriov_numvfs=20 sh: write error: No such file or directory =20 Can any guys know some clue about it? Thanks, =20