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 B319BA00E6 for ; Fri, 12 Jul 2019 23:04:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 108B31B464; Fri, 12 Jul 2019 23:04:07 +0200 (CEST) Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by dpdk.org (Postfix) with ESMTP id E3E012C6A for ; Fri, 12 Jul 2019 23:04:05 +0200 (CEST) Received: by mail-pl1-f194.google.com with SMTP id cl9so5313495plb.10 for ; Fri, 12 Jul 2019 14:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nDghoEu1ul/S7Xb+RprxTue3QaN+rrsIgC/xSRyUnxw=; b=JmGblYJZHOyJXswWopeg8TDiJcXJ7eKzt8gSWlnBylXAO0LzjAilvuxgU6hRn5c+FP ffd11l6NxBXqD3ikhj71WQSqyFwVfCC5koUYc1iKAabd+sV/+wVM7EKMn3mES7aBpYOZ /aGHnpYJx/4xdJSLmKcfK8BpMf5FpXXllX9hUgVaSYhaZJ4j3JO0Acftzb3uIL3zYVRs E+8FvGMcAOOs3AZ7Fe2Bp/kbWQN17iT1w+cmv/ZBaWF5hkMKoGWkQ0lKuDPA2BVSQD+K IUk7S6PoEi700YTfk52/ixXUxsCT+nVVFl7jV7RA+Mo0ku+vkwo6BJNht+Uy7Isafk8f JjzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nDghoEu1ul/S7Xb+RprxTue3QaN+rrsIgC/xSRyUnxw=; b=Y4m3xs5Vp2AAWKPOgre2fi1gFr0BMOrM1OX/3Ov2XjktgFkKY2GxZqXpxCoDcWzMH1 FTTUKGHwiFfX7KW2OI37NbXnfG0b0kKl+QwBdA39oBBSM1fTakmJa/oZ92+jM+RLhflf LBf9eSE7ISTj4zY08TSyF2hSjyNQYrJCYcTXChfpf1snwV9Ny0oOtpCXEm1Ae9eTd+0W emTnKhHBzmZ4MgLgOFrDKijEkO1zsPH5YB9dCTPonrvNV9jYe82DldEF4l6u2b+hJ1Y9 9jOKZhOvbS9Ge/mSySAz5fMzWGAA/1ejc5PbPuVCaaPmgnGAhtre0S+WCHzW2bPsKYNZ /uKg== X-Gm-Message-State: APjAAAXR4aYuLzVaiYf0yG+9SMqcr6QkoP1nxSukS/4SrHsnT8IkQuym HVG0VVikz/sLPEh0ilKEJlNBOYYg X-Google-Smtp-Source: APXvYqxKEEuMc1cLgbjXAGCBAAg1+IxlLmZodXAA9NcOxtNJGCYG98kpfeyC+6dpi0bFAfLkC/iBhA== X-Received: by 2002:a17:902:2ec5:: with SMTP id r63mr13870694plb.21.1562965444937; Fri, 12 Jul 2019 14:04:04 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id o11sm18071939pfh.114.2019.07.12.14.04.04 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 12 Jul 2019 14:04:04 -0700 (PDT) Date: Fri, 12 Jul 2019 14:03:58 -0700 From: Stephen Hemminger To: bugzilla@dpdk.org Cc: dev@dpdk.org Message-ID: <20190712140358.6761361a@hermes.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [Bug 320] mlx4: info get fails in secondary process 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 Fri, 12 Jul 2019 20:04:26 +0000 bugzilla@dpdk.org wrote: > https://bugs.dpdk.org/show_bug.cgi?id=320 > > Bug ID: 320 > Summary: mlx4: info get fails in secondary process > Product: DPDK > Version: 19.08 > Hardware: All > OS: All > Status: UNCONFIRMED > Severity: normal > Priority: Normal > Component: other > Assignee: dev@dpdk.org > Reporter: stephen@networkplumber.org > Target Milestone: --- > > Attempts to do dev_info_get in secondary process fail because the driver handle > to infiniband (priv->ctx) is not valid in secondary process. This leads to: > > #0 0x00007ffff5d06ab4 in _IO_vfprintf_internal (s=s@entry=0x7fffffffe3c0, > format=, format@entry=0x7ffff496a605 "%s/device/net", > ap=ap@entry=0x7fffffffe528) at vfprintf.c:1635 > #1 0x00007ffff5d32599 in _IO_vsnprintf (string=0x7fffffffe4b0 "", > maxlen=, format=0x7ffff496a605 "%s/device/net", > args=args@entry=0x7fffffffe528) at vsnprintf.c:119 > #2 0x00007ffff5d0fd32 in __snprintf (s=s@entry=0x0, maxlen=maxlen@entry=0, > format=format@entry=0x7ffff496a605 "%s/device/net") at snprintf.c:34 > #3 0x00007ffff4720b8b in mlx4_get_ifname (priv=priv@entry=0xc0137e93c0, > ifname=ifname@entry=0x7fffffffe690) at > /usr/src/redhat/BUILD/dpdk-18.11/drivers/net/mlx4/mlx4_ethdev.c:71 > #4 0x00007ffff47214e4 in mlx4_dev_infos_get (dev=, > info=0x7fffffffe6e0) at > /usr/src/redhat/BUILD/dpdk-18.11/drivers/net/mlx4/mlx4_ethdev.c:583 > #5 0x00007ffff44b896c in rte_eth_dev_info_get (port_id=port_id@entry=0, > dev_info=dev_info@entry=0x7fffffffe6e0) at > /usr/src/redhat/BUILD/dpdk-18.11/lib/librte_ethdev/rte_ethdev.c:2532 > I am testing a patch for this.