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 2BDC3A056A; Fri, 6 Mar 2020 01:15:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3167B2BB8; Fri, 6 Mar 2020 01:15:42 +0100 (CET) Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by dpdk.org (Postfix) with ESMTP id 264CC3B5 for ; Fri, 6 Mar 2020 01:15:40 +0100 (CET) Received: by mail-pj1-f68.google.com with SMTP id cx7so290687pjb.3 for ; Thu, 05 Mar 2020 16:15:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=3JwhN3zZ5u8+fA3ltIymxCyAxvsovOccLTOyYaJ4984=; b=ri4szIW8RRMve93+y3mFzh6w0Nd3rsFWvYDmweaxb0LyfnPM3iLCSiJIQVOZQVksdB /+IMPBQcyBGWlYitHMeuFXTWsBgqmpdKgYoKKSt4EykZbxlcTXjYUwavQ/LhhpaMs57J rN8T0WirIpcUcCX9G//c9gSfcFjJf3yHUKEPl3hbWGrTEkUVIBmqF5RcZrmDTZmH59db jaCjcwM6LYPqXRZt3zTNGH6wRZkIU4fT1tqr3Emf/lrBTgs2JICjJV8X7gQqc4+XlGuO TW6lH9TJ17kggazCLRjFGuIoiPkNwTX0x5GOQv30ChCZ/2U4xRE70BEhcNUs3mqWxUxD OlJg== 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=3JwhN3zZ5u8+fA3ltIymxCyAxvsovOccLTOyYaJ4984=; b=rb+QyuD9sp9FS0VenDwUIJ1fjr35iUdZlCI3AugBw+AXjX1CBzijgnyPzadM960M1v DUqlkF0UeDQEX87jmEBkq1LAuYQL15sm8nsM1jtUs340MzIhZAs2g9YLQytn43WXN807 H0dn1KpdjvUOhkO+84fTT0/JZQbBJkvUx+PXTzJiBSOwhevzvnXreG9HKvMSkjeJXCKM 7bB7iReaWTQPCNOJI1Hi8YZ7z4KzJJOsBJGxb/TJirefyP2Ql+QGVVfKt2zvayRS4FMs Pm2wkgjN8dAZGJsKeAWIFlQKVgd/qZ0mTVtE1kApMcCOqsisC2MNLc+H5sHCRQqFfojr 8CrQ== X-Gm-Message-State: ANhLgQ1mQrQGTh5uKp/sxvuLfMqtOP40b58pM5HNSdPt7wW7L46vttoV YUF5x3KHu8XXyQNyLHmFYk5BBQx8x+k= X-Google-Smtp-Source: ADFU+vt2/zdWF1d/oze4SRRLaLOeJsfmttvmPU4NaPkBKT5Lr3stN/1QYt10H53yzl2NompM9/gnFg== X-Received: by 2002:a17:902:bd95:: with SMTP id q21mr367375pls.148.1583453739123; Thu, 05 Mar 2020 16:15:39 -0800 (PST) Received: from localhost.localdomain ([8.47.64.2]) by smtp.gmail.com with ESMTPSA id a88sm7260772pje.36.2020.03.05.16.15.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Mar 2020 16:15:38 -0800 (PST) From: Vijaya Mohan Guvva To: ferruh.yigit@intel.com Cc: dev@dpdk.org, fiona.trahe@intel.com, Vijaya Mohan Guvva Date: Thu, 5 Mar 2020 19:02:20 -0500 Message-Id: <1583452940-346826-1-git-send-email-vijay1054@gmail.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] bus/pci: pcidev access from 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" 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. 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