DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal: map uio resources after hugepages when --base_virtaddr is  configured
@ 2014-11-05  9:49 XU Liang
  2014-11-05  9:58 ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 3+ messages in thread
From: XU Liang @ 2014-11-05  9:49 UTC (permalink / raw)
  To: dev

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 15128 bytes --]


When start a secondary process, we got error message "EAL: pci_map_resource(): cannot mmap(11, 0x7ffff7fba000, 0x20000, 0x0): Bad file descriptor (0x7ffff7fb9000)"

The secondary process link difference shared libraries, so the 0x7ffff7fba000 is used. 

We know the --base_virtaddr is designed for this situation for hugepages.

This patch map the device resouce into address that is after hugepages when --base_virtaddr is  configured.

From manoj.viswanath@gmail.com  Wed Nov  5 10:48:52 2014
Return-Path: <manoj.viswanath@gmail.com>
Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com
 [209.85.214.170]) by dpdk.org (Postfix) with ESMTP id 36B862E89
 for <dev@dpdk.org>; Wed,  5 Nov 2014 10:48:52 +0100 (CET)
Received: by mail-ob0-f170.google.com with SMTP id nt9so315052obb.1
 for <dev@dpdk.org>; Wed, 05 Nov 2014 01:58:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s 120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bhDAPZ6qQDhsdW8LRX4pKdlFFOcb/zov1yz2YyOy+Vg=;
 b=lwPfCfnMSmurZHOxWkvWnOvhNv7mYJVuIHS+eZgUkt4zFsTcQUeDf8raqnQhP8WCUo
 AG9soPcPi/tyNGNbXKcum/rUZzjiIm98Uu0TfQgH+zVK7y2kTW1H1ajWGvrNlOJSxR2r
 FqApkql22smaBHBLWvfzbt+lOM6Jcz1sAFYXATPWaiClASSNkM10OKJSml/TxYPBXoFt
 tFartJiyVeeeExRXkmQpJsB7/QyCOBzzZd4nRDQ3enc5IrZtDkYvBq58Xk/CcQz7ckz1
 /db84KgIxyzrICFdCzqyZDeUxuuON807ok3GmtPpYmnjIp1HGumRDm+ciukJ/lWs9wCb
 U0cQ=MIME-Version: 1.0
X-Received: by 10.60.177.41 with SMTP id cn9mr1040644oec.63.1415181493591;
 Wed, 05 Nov 2014 01:58:13 -0800 (PST)
Received: by 10.202.232.66 with HTTP; Wed, 5 Nov 2014 01:58:13 -0800 (PST)
Date: Wed, 5 Nov 2014 15:28:13 +0530
Message-ID: <CAC1b25pX3R2y_Cjp5UAdL6Bozrf01OkG6U6LGQvJ2aUTDXGvSA@mail.gmail.com>
From: Manoj Viswanath <manoj.viswanath@gmail.com>
To: dev@dpdk.org
Content-Type: multipart/mixed; boundary\x047d7bd75f263805d80507199e76
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: [dpdk-dev] Ports not detected by IGB_UIO in DPDK 1.7.1 in QEMU_KVM
	environment
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Nov 2014 09:48:52 -0000

--047d7bd75f263805d80507199e76
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,

I have a DPDK application running on QEMU-KVM environment using DPDK 1.6.0.
I am trying to port the same to DPDK version 1.7.1.

I am using Virt-manager GUI to assign e1000 emulated port to the VM. This
works fine in DPDK 1.6.0. The device is identified by IGB_UIO and
initialized by my application as expected.

However in case of DPDK 1.7.1, the emulated e1000 devices do not seem to be
recognized.
Following is my analysis:

1. The API pci_get_uio_dev() is returning ERROR. This is called from
pci_uio_map_resource() in the flow of PCI PROBE [rte_eal_pci_probe()].

2. Due to this, the PCI device is not getting mapped to the correct driver
(EM
​ Driver​
).

3. The reason for the error in [1] appears to be that "uio" sub-directory
doesn't seem to be correctly created for interfaces assigned to this VM.

4. Upon further analysis i found that IGB_UIO probe function
["igbuio_pci_probe()"] is not getting triggered indicating the port has *not
been assigned* to the IGB_UIO.

Kindly refer to the attachments:-
- "Output of sys-bus-pci-devices" - indicating "uio" subdirectory not
created for PCI devices in case of DPDK 1.7.1
- "Output of lspci -v" - indicating device not bound to driver in case of
DPDK 1.7.1
- IGB_UIO init log snippet - indicating PCI devices not detected and
initialized by IGB_UIO in case of DPDK 1.7.1
- CONFIG file used for DPDK compilation

Not sure what has changed between 1.6.0 and 1.7.1 which is impacting this.

Could someone throw light in this regard as to what i may be missing ?

Thanks in advance.

Regards,
Manoj

--047d7bd75f263805d80507199e76
Content-Type: text/plain; charset=US-ASCII; name="IGB_UIO INIT Logs.txt"
Content-Disposition: attachment; filename="IGB_UIO INIT Logs.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_i24idzgt1

LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KW0FdIElHQiBV
SU8gSU5JVCBMT0dTIC0gVk0gcnVubmluZyBEUERLIDEuNi4wDQotLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQoNCk9jdCAyMCAwNToxNDozMSBsb2NhbGhvc3Qg
a2VybmVsOiBVc2UgTVNJWCBpbnRlcnJ1cHQgYnkgZGVmYXVsdA0KT2N0IDIwIDA1OjE0OjMxIGxv
Y2FsaG9zdCBrZXJuZWw6IFVzZSBNU0lYIGludGVycnVwdCBieSBkZWZhdWx0DQoNCk9jdCAyMCAw
NToxNDozMSBsb2NhbGhvc3Qga2VybmVsOiBpZ2JfdWlvIDAwMDA6MDA6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0tLS0tLS0+IFBDSSBkZXZpY2UgYm91bmQgdG8gZHJp
dmVyDQpPY3QgMjAgMDU6MTQ6MzEgbG9jYWxob3N0IGtlcm5lbDogdWlvIGRldmljZSByZWdpc3Rl
cmVkIHdpdGggaXJxIGINCg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLQ0KW0JdIElHQiBVSU8gSU5JVCBMT0dTIC0gVk0gcnVubmluZyBEUERLIDEuNy4xDQot
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQoNCk9jdCAyMCAw
NToxMDo0MCBsb2NhbGhvc3Qga2VybmVsOiBpZ2JfdWlvOiBVc2UgTVNJWCBpbnRlcnJ1cHQgYnkg
ZGVmYXVsdA0KT2N0IDIwIDA1OjEwOjQwIGxvY2FsaG9zdCBrZXJuZWw6IGlnYl91aW86IFVzZSBN
U0lYIGludGVycnVwdCBieSBkZWZhdWx0DQo9PT09PT4gTm8gb3V0cHV0IGZvciBQQ0kgaW5pdGlh
bGl6YXRpb24gYnkgSUdCX1VJTyA--047d7bd75f263805d80507199e76
Content-Type: text/plain; charset=US-ASCII; name="Output of lspci -v.txt"
Content-Disposition: attachment; filename="Output of lspci -v.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_i24idzh62

LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KW1ZNLTIgcnVubmluZyBEUERLIDEuNi4wXQ0KLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KMDA6MDguMCBFdGhlcm5ldCBjb250cm9sbGVyOiBJbnRl
bCBDb3Jwb3JhdGlvbiA4MjU0MEVNIEdpZ2FiaXQgRXRoZXJuZXQgQ29udHJvbGwNCmVyIChyZXYg
MDMpDQogICAgU3Vic3lzdGVtOiBSZWQgSGF0LCBJbmMgRGV2aWNlIDExMDANCiAgICBGbGFnczog
YnVzIG1hc3RlciwgZm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name="Output of sys-bus-pci-devices.txt"
Content-Disposition: attachment;
	filename="Output of sys-bus-pci-devices.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_i24idzh93

DQpAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEANCkAgT24gVk0tMSBydW5uaW5nIERQREsg
MS43LjEgQA0KQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBADQoNCmJhc2gtNC4yIyBsc3Bj
aSB8IGdyZXAgODI1NDBFTQ0KMDA6MDQuMCBFdGhlcm5ldCBjb250cm9sbGVyOiBJbnRlbCBDb3Jw
b3JhdGlvbiA4MjU0MEVNIEdpZ2FiaXQgRXRoZXJuZXQgQ29udHJvbGxlciAocmV2IDAzKQ0KMDA6
MDUuMCBFdGhlcm5ldCBjb250cm9sbGVyOiBJbnRlbCBDb3Jwb3JhdGlvbiA4MjU0MEVNIEdpZ2Fi
aXQgRXRoZXJuZXQgQ29udHJvbGxlciAocmV2IDAzKQ0KDQojI1NZUy1CVVMNCmJhc2gtNC4yIyBs
cyAvc3lzL2J1cy9wY2kvZGV2aWNlcy8gICAgICAgICAgICAgICANCjAwMDA6MDA6MDAuMCAgMDAw
MDowMDowMS4yICAwMDAwOjAwOjAzLjAgIDAwMDA6MDA6MDYuMA0KMDAwMDowMDowMS4wICAwMDAw
OjAwOjAxLjMgIDAwMDA6MDA6MDQuMCAgMDAwMDowMDowNy4wDQowMDAwOjAwOjAxLjEgIDAwMDA6
MDA6MDIuMCAgMDAwMDowMDowNS4wICAwMDAwOjAwOjA4LjANCg0KYmFzaC00LjIjIGxzIC9zeXMv
YnVzL3BjaS9kZXZpY2VzLzAwMDBcOjAwXDowNC4wLw0KYnJva2VuX3Bhcml0eV9zdGF0dXMgICAg
ICBsb2NhbF9jcHVsaXN0ICAgICAgICAgICAgIHJlc291cmNlMA0KY2xhc3MgICAgICAgICAgICAg
ICAgICAgICBsb2NhbF9jcHVzICAgICAgICAgICAgICAgIHJlc291cmNlMQ0KY29uZmlnICAgICAg
ICAgICAgICAgICAgICBtb2RhbGlhcyAgICAgICAgICAgICAgICAgIHJvbQ0KY29uc2lzdGVudF9k
bWFfbWFza19iaXRzICBtc2lfYnVzICAgICAgICAgICAgICAgICAgIHN1YnN5c3RlbS8NCmRldmlj
ZSAgICAgICAgICAgICAgICAgICAgbnVtYV9ub2RlICAgICAgICAgICAgICAgICBzdWJzeXN0ZW1f
ZGV2aWNlDQpkbWFfbWFza19iaXRzICAgICAgICAgICAgIHBvd2VyLyAgICAgICAgICAgICAgICAg
ICAgc3Vic3lzdGVtX3ZlbmRvcg0KZW5hYmxlICAgICAgICAgICAgICAgICAgICByZW1vdmUgICAg
ICAgICAgICAgICAgICAgIHVldmVudA0KZmlybXdhcmVfbm9kZS8gICAgICAgICAgICByZXNjYW4g
ICAgICAgICAgICAgICAgICAgIHZlbmRvcg0KaXJxICAgICAgICAgICAgICAgICAgICAgICByZXNv
dXJjZSAgICAgICAgICAgICAgICAgIA0KYmFzaC00LjIjIGxzIC9zeXMvYnVzL3BjaS9kZXZpY2Vz
LzAwMDBcOjAwXDowNC4wL3VpbyAgICANCmxzOiBjYW5ub3QgYWNjZXNzIC9zeXMvYnVzL3BjaS9k
ZXZpY2VzLzAwMDA6MDA6MDQuMC91aW86IE5vIHN1Y2ggZmlsZSBvciBkaXJlY3RvcnkJPT09PT09
PT09PT09PT09PT09PT09PT09PT09PT4gTm8gZGlyZWN0b3J5DQoNCmJhc2gtNC4yIyBscyAvc3lz
L2J1cy9wY2kvZGV2aWNlcy8wMDAwXDowMFw6MDUuMC8NCmJyb2tlbl9wYXJpdHlfc3RhdHVzICAg
ICAgbG9jYWxfY3B1bGlzdCAgICAgICAgICAgICByZXNvdXJjZTANCmNsYXNzICAgICAgICAgICAg
ICAgICAgICAgbG9jYWxfY3B1cyAgICAgICAgICAgICAgICByZXNvdXJjZTENCmNvbmZpZyAgICAg
ICAgICAgICAgICAgICAgbW9kYWxpYXMgICAgICAgICAgICAgICAgICByb20NCmNvbnNpc3RlbnRf
ZG1hX21hc2tfYml0cyAgbXNpX2J1cyAgICAgICAgICAgICAgICAgICBzdWJzeXN0ZW0vDQpkZXZp
Y2UgICAgICAgICAgICAgICAgICAgIG51bWFfbm9kZSAgICAgICAgICAgICAgICAgc3Vic3lzdGVt
X2RldmljZQ0KZG1hX21hc2tfYml0cyAgICAgICAgICAgICBwb3dlci8gICAgICAgICAgICAgICAg
ICAgIHN1YnN5c3RlbV92ZW5kb3INCmVuYWJsZSAgICAgICAgICAgICAgICAgICAgcmVtb3ZlICAg
ICAgICAgICAgICAgICAgICB1ZXZlbnQNCmZpcm13YXJlX25vZGUvICAgICAgICAgICAgcmVzY2Fu
ICAgICAgICAgICAgICAgICAgICB2ZW5kb3INCmlycSAgICAgICAgICAgICAgICAgICAgICAgcmVz
b3VyY2UgICAgICAgICAgICAgICAgICANCmJhc2gtNC4yIyBscyAvc3lzL2J1cy9wY2kvZGV2aWNl
cy8wMDAwXDowMFw6MDUuMC91aW8gICAgDQpsczogY2Fubm90IGFjY2VzcyAvc3lzL2J1cy9wY2kv
ZGV2aWNlcy8wMDAwOjAwOjA1LjAvdWlvOiBObyBzdWNoIGZpbGUgb3IgZGlyZWN0b3J5CT09PT09
PT09PT09PT09PT09PT09PT09PT09PT0+IE5vIGRpcmVjdG9yeQ0KYmFzaC00LjIjDQoNCiMjU1lT
LURFVklDRVMNCmJhc2gtNC4yIyBscyAvc3lzL2RldmljZXMvcGNpMDAwMFw6MDAvDQowMDAwOjAw
OjAwLjAvICAwMDAwOjAwOjAxLjMvICAwMDAwOjAwOjA1LjAvICBmaXJtd2FyZV9ub2RlLyANCjAw
MDA6MDA6MDEuMC8gIDAwMDA6MDA6MDIuMC8gIDAwMDA6MDA6MDYuMC8gIHBjaV9idXMvICAgICAg
IA0KMDAwMDowMDowMS4xLyAgMDAwMDowMDowMy4wLyAgMDAwMDowMDowNy4wLyAgcG93ZXIvICAg
ICAgICAgDQowMDAwOjAwOjAxLjIvICAw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] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] eal: map uio resources after hugepages when --base_virtaddr is configured
  2014-11-05  9:49 [dpdk-dev] [PATCH] eal: map uio resources after hugepages when --base_virtaddr is configured XU Liang
@ 2014-11-05  9:58 ` De Lara Guarch, Pablo
  2014-11-05 10:38   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: De Lara Guarch, Pablo @ 2014-11-05  9:58 UTC (permalink / raw)
  To: XU Liang; +Cc: dev

Patch is missing. 

Thanks,
Pablo

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of XU Liang
> Sent: Wednesday, November 05, 2014 9:50 AM
> To: dev
> Subject: [dpdk-dev] [PATCH] eal: map uio resources after hugepages when --
> base_virtaddr is configured
> 
> 
> When start a secondary process, we got error message "EAL:
> pci_map_resource(): cannot mmap(11, 0x7ffff7fba000, 0x20000, 0x0): Bad
> file descriptor (0x7ffff7fb9000)"
> 
> The secondary process link difference shared libraries, so the 0x7ffff7fba000
> is used.
> 
> We know the --base_virtaddr is designed for this situation for hugepages.
> 
> This patch map the device resouce into address that is after hugepages when
> --base_virtaddr is  configured.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] eal: map uio resources after hugepages when --base_virtaddr is configured
  2014-11-05  9:58 ` De Lara Guarch, Pablo
@ 2014-11-05 10:38   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2014-11-05 10:38 UTC (permalink / raw)
  To: XU Liang; +Cc: dev

The patch was attached and automatically dropped.
Please follow these guidelines:
	http://dpdk.org/dev#send

2014-11-05 09:58, De Lara Guarch, Pablo:
> Patch is missing. 
> 
> Thanks,
> Pablo
> 
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of XU Liang
> > Sent: Wednesday, November 05, 2014 9:50 AM
> > To: dev
> > Subject: [dpdk-dev] [PATCH] eal: map uio resources after hugepages when --
> > base_virtaddr is configured
> > 
> > 
> > When start a secondary process, we got error message "EAL:
> > pci_map_resource(): cannot mmap(11, 0x7ffff7fba000, 0x20000, 0x0): Bad
> > file descriptor (0x7ffff7fb9000)"
> > 
> > The secondary process link difference shared libraries, so the 0x7ffff7fba000
> > is used.
> > 
> > We know the --base_virtaddr is designed for this situation for hugepages.
> > 
> > This patch map the device resouce into address that is after hugepages when
> > --base_virtaddr is  configured.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-05 10:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-05  9:49 [dpdk-dev] [PATCH] eal: map uio resources after hugepages when --base_virtaddr is configured XU Liang
2014-11-05  9:58 ` De Lara Guarch, Pablo
2014-11-05 10:38   ` Thomas Monjalon

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git