From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AC652A0524; Mon, 24 Feb 2020 23:38:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 764D81BE85; Mon, 24 Feb 2020 23:38:54 +0100 (CET) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by dpdk.org (Postfix) with ESMTP id 740772C39 for ; Mon, 24 Feb 2020 23:38:52 +0100 (CET) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01OMcobf116671 for ; Mon, 24 Feb 2020 17:38:51 -0500 Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com with ESMTP id 2yax387134-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 24 Feb 2020 17:38:51 -0500 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 01OMZRbQ001068 for ; Mon, 24 Feb 2020 22:38:40 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma04wdc.us.ibm.com with ESMTP id 2yaux6q639-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 24 Feb 2020 22:38:40 +0000 Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01OMceKT40763892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 24 Feb 2020 22:38:40 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4D110124052 for ; Mon, 24 Feb 2020 22:38:40 +0000 (GMT) Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DE99E124055 for ; Mon, 24 Feb 2020 22:38:39 +0000 (GMT) Received: from Davids-MBP.randomparity.org (unknown [9.211.107.89]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP for ; Mon, 24 Feb 2020 22:38:39 +0000 (GMT) From: David Christensen To: "dev@dpdk.org" References: <1e44afa0-951c-9161-75d9-a1f679a1995e@linux.vnet.ibm.com> Message-ID: <3f84f815-61c4-a826-9850-7ca56946d3e8@linux.vnet.ibm.com> Date: Mon, 24 Feb 2020 14:38:38 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <1e44afa0-951c-9161-75d9-a1f679a1995e@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-02-24_12:2020-02-21, 2020-02-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 bulkscore=0 spamscore=0 suspectscore=0 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 clxscore=1015 phishscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002240167 Subject: Re: [dpdk-dev] Permissions Required to Run DPDK/MLX5 as Non-Root User? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2/20/20 11:24 AM, David Christensen wrote: > Running DPDK 20.02-rc3 and attempting to use the MLX5 PMD as a non-root > user.  When starting testpmd I'm receiving the following error on both > Power and x86_64 platforms (full output further down): > >   net_mlx5: probe of PCI device 0000:01:00.0 aborted after encountering > an error: Operation not supported Ended up with two answers: 1) Manually clean out /dev/hugepages. Often encountered root owned files left over from previous test runs, causing memory allocation failures when DPDK couldn't use the name it wanted (rtemap_*). 2) Needed to manually add special permissions to dpdk-testpmd (thanks Shahaf): # setcap cap_net_raw,cap_net_admin,cap_ipc_lock+eip ~/src/dpdk/build/app/dpdk-testpmd Dave