patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Vijaya Mohan Guvva <vijay1054@gmail.com>
To: vguvva@paloaltonetworks.com
Cc: Vijaya Mohan Guvva <vijay1054@gmail.com>, stable@dpdk.org
Subject: [dpdk-stable] [PATCH] bus/pci: pcidev access from secondary process
Date: Fri, 24 Apr 2020 13:07:21 -0400	[thread overview]
Message-ID: <1587748041-56840-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.

Fixes: c752998b (pci: introduce library and driver)
Cc: stable@dpdk.org

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


             reply	other threads:[~2020-04-24 17:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-24 17:07 Vijaya Mohan Guvva [this message]
2020-04-24 17:08 Vijaya Mohan Guvva

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=1587748041-56840-1-git-send-email-vijay1054@gmail.com \
    --to=vijay1054@gmail.com \
    --cc=stable@dpdk.org \
    --cc=vguvva@paloaltonetworks.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).