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 261F2A00C2 for ; Fri, 24 Apr 2020 19:24:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BACCD1D505; Fri, 24 Apr 2020 19:24:27 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id D6C0A1C2AB; Fri, 24 Apr 2020 19:24:25 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id i10so11826820wrv.10; Fri, 24 Apr 2020 10:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=PP/1KimfjZ3tOjw12Wgpnx3e8Rlovhidc4Z2yu0SJZE=; b=vIeuODbfyp0e29SsH2f85Dzo3rYJw8Y6U87Dw3yP4fXYBlgSzfLQmv3kDlogsw/lUL aPNZpf2foMz5jDJAUPRqrpiQ3QAoOG9js8qtQhWeiBAOYQG3MxATk2/id9a9gBfzqbQE QiiUFer9X6j7fqzOCpDidyOX5NgAMqg2nRB/dxkP9exmr/Z17j1UYKF9euFA8njeu05Z YIkGhECxQeut85iU6adwoJ4ewRdrsahUaS+WICZ8jDGfpV90F7mPm1opvQiiLc7Z2C3o D2LsaMQaaf0Sj9KpbtyRhNFICOwNgQYLWGljn/jbruX4UWztFrJ0pJFxh4+RF9ws/K4A T6gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PP/1KimfjZ3tOjw12Wgpnx3e8Rlovhidc4Z2yu0SJZE=; b=FyikDUGDK1zc+TKCEpCK6I94Da6eXVShmdQzX71lnykPRmzPUtlHSJrWtqYQKoMOdj f8KZCWyMqkGt5G5yL9+Ri63D/O9KECYQ6vx74GHWFHlUjunzPZErPO8smftNfavw6HpL d78I4Z75twQN6XYtH0///fGYE2doruhyRVPjagDjz+kv/FSD/yVgn8+sQ7uRnWHj2bl+ U0kyK0RfMOBlgiQnhb0oHIKOYh6JOk2yIXKs8SApHtHDEib8oslee6WZjJbn+Cf751yl p6oshsh75YfFmaRkOT/XniYZvMTXU0Y0v4n8Y15zVYaVmb57AANRAGUEoK7aHcufYAa3 OB6w== X-Gm-Message-State: AGi0PuZk54rrWocJaPaALXyn/jvvI4rH3aM15KozsRj4Tkfd+90CwtL3 TzC1NmVL+gLC1YHB/eTrcj4uEGWZ X-Google-Smtp-Source: APiQypKBkC2rbzMrGq2mRtnDiCmzzIz6TURxb0onV30Qyb2mWg9WwT6GqL2uwUJPi2nvTFchrOuveg== X-Received: by 2002:adf:ce0d:: with SMTP id p13mr13106149wrn.66.1587749065390; Fri, 24 Apr 2020 10:24:25 -0700 (PDT) Received: from localhost.localdomain ([8.47.64.2]) by smtp.gmail.com with ESMTPSA id 185sm4306164wmc.32.2020.04.24.10.24.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Apr 2020 10:24:24 -0700 (PDT) From: Vijaya Mohan Guvva To: dev@dpdk.org Cc: Vijaya Mohan Guvva , stable@dpdk.org Date: Fri, 24 Apr 2020 13:08:28 -0400 Message-Id: <1587748108-56948-1-git-send-email-vijay1054@gmail.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-stable] [PATCH] bus/pci: pcidev access from secondary process X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" For pci devices presented through igb_uio, pcidev->mem_resource[] is not populated when the device is initialized for secondary process. Initialize pcidev->mem_resource[] with pci-bar mapped addresses. Fixes: c752998b (pci: introduce library and driver) Cc: stable@dpdk.org Signed-off-by: Vijaya Mohan Guvva --- drivers/bus/pci/pci_common_uio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/pci/pci_common_uio.c b/drivers/bus/pci/pci_common_uio.c index 7ea73db..f4dca9d 100644 --- a/drivers/bus/pci/pci_common_uio.c +++ b/drivers/bus/pci/pci_common_uio.c @@ -70,6 +70,7 @@ } return -1; } + dev->mem_resource[i].addr = mapaddr; } return 0; } -- 1.8.3.1