From: Vijaya Mohan Guvva <vijay1054@gmail.com>
To: ferruh.yigit@intel.com
Cc: dev@dpdk.org, fiona.trahe@intel.com,
Vijaya Mohan Guvva <vijay1054@gmail.com>
Subject: [dpdk-dev] [PATCH] bus/pci: pcidev access from secondary process
Date: Thu, 5 Mar 2020 19:02:20 -0500 [thread overview]
Message-ID: <1583452940-346826-1-git-send-email-vijay1054@gmail.com> (raw)
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 <vijay1054@gmail.com>
---
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
next reply other threads:[~2020-03-06 0:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-06 0:02 Vijaya Mohan Guvva [this message]
2020-03-06 12:28 ` Ferruh Yigit
2020-03-31 1:54 ` Thomas Monjalon
2020-03-31 2:12 ` vijay mohan
2020-03-31 9:11 ` Thomas Monjalon
2020-04-24 17:08 Vijaya Mohan Guvva
2020-04-25 20:28 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1583452940-346826-1-git-send-email-vijay1054@gmail.com \
--to=vijay1054@gmail.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=fiona.trahe@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).