From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by dpdk.org (Postfix) with ESMTP id C29083772 for ; Sat, 10 Dec 2016 05:30:42 +0100 (CET) Received: by mail-oi0-f53.google.com with SMTP id w63so39299413oiw.0 for ; Fri, 09 Dec 2016 20:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Gdd77jKaG5NOEeU+W1eBY84M0lAb78i3iNde0QVtqEU=; b=YLSVwb55cN9VHUKijkrWXSYc/n0tYgqlpHePpgYnysV/4ZQa31ffk1/F4MgRMo0CGC lvxEfPcfSao7zxQiDC9/G+iSYl8ZL4mJ2sucVDTbsTn/UP3crGk6lGT2k9cjBzyEt4aX z9QcBL8K6U8MCthQ+hOeNqhxSTuNBrffPiuXM698bgARFerjdhaSnCao3m4OZe/RaJGh gayKDdMSWNYRtl+eRcGYpttvAkGic2iblxtkTF5Fk3q4A1e8MV5leqZpi6K+Gngc+qrY DOOVJQyRU1JY6yEBxyyir070/FZ04hf2hR42AhAL4aSlJQwoHDBg0GUmzJScVFhQTpNr 4V+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Gdd77jKaG5NOEeU+W1eBY84M0lAb78i3iNde0QVtqEU=; b=jlfhKAUaM3GK0J7IcYh4J4O25GMgJ0RWqhQW05lnscAPXvMmFD2BTVdCTGxexMKGce EIX688LSmZl2eEYTWUdDfm4mJTez5aZyDlUaqHjlgmzTh1aIbLjR5/GztQDNIpSrMNyo 0Y29Xz2N0u9tti7UuWHrLBPLzZep+b5jDBb81VoYcB3Cbq1xBVsn4vFlSFN+tj+X4d/b 2aL6yEj7JWxJ4woP6grjkh366T3sphwvvWAKT1rMYsiqt52FcQy6LskVqM/RU4fwcXkU zxy0kq4ZzhsPKPxeBoctm9zLYIBU9cYLO04+6Pemk9/fWfEyHM5w7Z1VSmK22YZhUfWK H8Kw== X-Gm-Message-State: AKaTC01v9W1+L0+Ee4h25dnE1wtkUa2KiKmAuYQP+zFJtImSzB5MLNT5cIhXFe0Nl8MuAVaiiTVQ/132oMwy5A== X-Received: by 10.202.220.139 with SMTP id t133mr40335853oig.176.1481344242196; Fri, 09 Dec 2016 20:30:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.72.166 with HTTP; Fri, 9 Dec 2016 20:30:41 -0800 (PST) From: Gopakumar Choorakkot Edakkunni Date: Fri, 9 Dec 2016 20:30:41 -0800 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] dpdk16.07 and virtio "Cannot mmap IO port resource" 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: , X-List-Received-Date: Sat, 10 Dec 2016 04:30:44 -0000 I tried to load up dpdk (bound to uio_pci_generic, tried igb_uio also!) on a virtio interface. Dpdk exits with the "Cannot mmap IO port resource" complaint - the call chain is legacy_virtio_resource_init()-->pci_uio_ioport_map(). If anyone can give any clues/pointers as to what might be wrong, that can greatly help in getting me on the right track fast ! --- EAL: probe driver: 1af4:1000 rte_virtio_pmd EAL: PCI device 0000:00:05.0 on NUMA socket 0 EAL: probe driver: 1af4:1000 r[ 330.753458] ------------[ cut here ]------------ rte_virtio_pmd [ 330.754430] WARNING: CPU: 0 PID: 8063 at drivers/pci/pci-sysfs.c:984 pci_mmap_resource.isra.14+0x113/0x1b0() [ 330.756083] process "dpdk_master" tried to map 0x0000d000 bytes at page 0x00000000 on 0000:00:05.0 BAR 0 (start 0x c080, size 0x 20) [ 330.758272] Modules linked in: rte_kni igb_uio pppoe ppp_async iptable_nat cdc_mbim sierra_net rndis_host qmi_wwan qcserial pppox ppp_generic option nf_nat_pptp nf_nat_ipv4 nf_nat_amanda nf_conntrack_pptp nf_conntrack_ipv4 nf_conntrack_amanda ipt_MASQUERADE huawei_cdc_ncm cdc_subset cdc_ncm cdc_ether cdc_eem ax88179_178a asix xt_u32 xt_time xt_tcpmss xt_string xt_statistic xt_state xt_socket xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_iprange xt_id xt_hl xt_helper xt_hashlimit xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_addrtype xt_TPROXY xt_TEE xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_LED xt_HL xt_DSCP xt_CT xt_CLASSIFY usbnet usb_wwan ts_kmp ts_fsm ts_bm slhc sierra pl2303 nfnetlink_queue nfnetlink_log nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast lib80211_crypt_wep lib80211_crypt_tkip lib80211_crypt_ccmp lib80211 iptable_raw iptable_mangle iptable_filter ipt_ah ipt_ULOG ipt_REJECT ipt_ECN hso ftdi_sio crc8 crc7 crc_itu_t crc_ccitt cp210x cordic compat_xtables cdc_wdm cdc_acm arptable_filter arpt_mangle arp_tables sch_teql sch_tbf sch_sfq sch_red sch_prio sch_netem sch_htb sch_gred sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp cls_basic act_police act_ipt act_connmark act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress evdev xt_NFQUEUE xt_set ip_set_list_set ip_set_hash_netport ip_set_hash_netiface ip_set_hash_net ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink sr_mod cdrom ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 ifb ipip ip6_tunnel tunnel6 tunnel4 ip_tunnel tun mdio loop vfat fat isofs nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp850 nls_cp437 rfkill virtio_rng sha512_generic sha256_generic sha1_generic md5 arc4 ath10k_pci ath10k_core ath9k ath9k_common ath9k_hw ath mac80211 cfg80211 compat pcnet32 e1000 virtio_net ohci_hcd ixgbevf ixgbe hwmon igbvf igb dsa_core mii [last unloaded: igb_uio] [ 330.805110] CPU: 0 PID: 8063 Comm: dpdk_master Tainted: G W 3.14.67 #1 [ 330.806104] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 330.806104] 0000000000000286 0000000000000000 ffffffff814e167c 0000000000000006 [ 330.806104] ffff88008b573cd8 ffffffff81259d73 ffffffff81061b72 ffff88013b24fae0 [ 330.806104] ffff88013b24f800 0000000000000000 ffff88013a498000 ffff88013b24f8a8 [ 330.806104] Call Trace: [ 330.806104] [] ? dump_stack+0x5e/0x7a [ 330.806104] [] ? pci_mmap_resource.isra.14+0x113/0x1b0 [ 330.806104] [] ? warn_slowpath_common+0x82/0xb0 [ 330.806104] [] ? warn_slowpath_fmt+0x45/0x50 [ 330.806104] [] ? do_last.isra.58+0xac1/0xc00 [ 330.806104] [] ? pci_mmap_resource.isra.14+0x113/0x1b0 [ 330.806104] [] ? kernfs_fop_mmap+0x69/0x100 [ 330.806104] [] ? mmap_region+0x2e8/0x560 [ 330.806104] [] ? do_mmap_pgoff+0x318/0x3b0 [ 330.806104] [] ? vm_mmap_pgoff+0x74/0xc0 [ 330.806104] [] ? SyS_mmap_pgoff+0x18a/0x1e0 [ 330.806104] [] ? system_call_fastpath+0x16/0x1b [ 330.823897] ---[ end trace c6106b67c768d501 ]--- EAL: Cannot mmap IO port resource: Invalid argument EAL: Error - exiting with code: 1 Cause: Requested device 0000:00:05.0 cannot be used