Thanks. It works ! Attaching the output. ________________________________ From: Jan Kiszka <[email protected]> Sent: Tuesday, January 17, 2017 12:25:48 PM To: Vaidyanath, Rajiv; [email protected] Subject: Re: Device assignment to non-root
On 2017-01-17 18:17, Vaidyanath, Rajiv wrote: > > I've attached output from the hypervisor with the changes to pci.c > OK, master is on, we need to silence invalid writes... Patches are in the next branch, please give them a try and let us know. Jan -- Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
[ 0.000000] Linux version 4.9.0-rt1+ (root@beast) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) ) #3 SMP PREEMPT RT Tue Jan 17 08:14:59 EST 2017 [ 0.000000] Command line: console=ttyS0,115200 [ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 [ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format. [ 0.000000] x86/fpu: Using 'eager' FPU context switches. [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x00000000000fffff] usable [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000000100fff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000200000-0x000000000c9fffff] usable [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] extended physical RAM map: [ 0.000000] reserve setup_data: [mem 0x0000000000000000-0x00000000000f5fff] usable [ 0.000000] reserve setup_data: [mem 0x00000000000f6000-0x00000000000f6112] usable [ 0.000000] reserve setup_data: [mem 0x00000000000f6113-0x00000000000fffff] usable [ 0.000000] reserve setup_data: [mem 0x0000000000100000-0x0000000000100fff] reserved [ 0.000000] reserve setup_data: [mem 0x0000000000200000-0x000000000c9fffff] usable [ 0.000000] DMI not present or invalid. [ 0.000000] Hypervisor detected: Jailhouse [ 0.000000] Jailhouse: PM-Timer IO Port: 0x408 [ 0.000000] PCI: Using configuration type 1 for base access [ 0.000000] e820: last_pfn = 0xca00 max_arch_pfn = 0x400000000 [ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WC UC- WT [ 0.000000] x2apic: enabled by BIOS, switching to x2apic ops [ 0.000000] Scanning 1 areas for low memory corruption [ 0.000000] Using GB pages for direct mapping [ 0.000000] RAMDISK: [mem 0x02f5f000-0x03148fff] [ 0.000000] No NUMA configuration found [ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000000c9fffff] [ 0.000000] NODE_DATA(0) allocated [mem 0x0c9fc000-0x0c9fffff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.000000] DMA32 [mem 0x0000000001000000-0x000000000c9fffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009ffff] [ 0.000000] node 0: [mem 0x0000000000200000-0x000000000c9fffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000000c9fffff] [ 0.000000] smpboot: Allowing 2 CPUs, 0 hotplug CPUs [ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000f5fff] [ 0.000000] PM: Registered nosave memory: [mem 0x000f6000-0x000fffff] [ 0.000000] PM: Registered nosave memory: [mem 0x00100000-0x00100fff] [ 0.000000] PM: Registered nosave memory: [mem 0x00101000-0x001fffff] [ 0.000000] e820: [mem 0x0ca00000-0xffffffff] available for PCI devices [ 0.000000] Booting paravirtualized kernel on bare hardware [ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns [ 0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:2 nr_node_ids:1 [ 0.000000] percpu: Embedded 35 pages/cpu @ffff88000c600000 s104896 r8192 d30272 u1048576 [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 50534 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: console=ttyS0,115200 [ 0.000000] PID hash table entries: 1024 (order: 1, 8192 bytes) [ 0.000000] Memory: 181140K/205436K available (9327K kernel code, 1285K rwdata, 2808K rodata, 1168K init, 968K bss, 24296K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 64. [ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=2 [ 0.000000] NR_IRQS:4352 nr_irqs:32 0 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [ttyS0] enabled [ 0.000000] tsc: Detected 2300.012 MHz processor [ 0.000063] Calibrating delay loop (skipped), value calculated using timer frequency.. 4600.02 BogoMIPS (lpj=2300012) [ 0.000064] pid_max: default: 32768 minimum: 301 [ 0.000080] Security Framework initialized [ 0.000081] SELinux: Initializing. [ 0.000139] Dentry cache hash table entries: 32768 (order: 7, 524288 bytes) [ 0.000211] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes) [ 0.000234] Mount-cache hash table entries: 512 (order: 0, 4096 bytes) [ 0.000235] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes) [ 0.000440] CPU: Physical Processor ID: 0 [ 0.000440] CPU: Processor Core ID: 2 [ 0.000450] mce: CPU supports 22 MCE banks [ 0.000468] CPU0: Thermal monitoring enabled (TM1) [ 0.000501] process: using mwait in idle threads [ 0.000505] Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 1024 [ 0.000505] Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 1024, 1GB 4 [ 0.001996] Freeing SMP alternatives memory: 32K (ffffffff82067000 - ffffffff8206f000) [ 0.003690] smpboot: APIC(4) Converting physical 0 to logical package 0 [ 0.110271] smpboot: Max logical packages: 1 [ 0.114546] Switched APIC routing to physical x2apic. [ 0.119603] smpboot: CPU0: Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz (family: 0x6, model: 0x3f, stepping: 0x2) [ 0.129627] Performance Events: PEBS fmt2+, Haswell events, 16-deep LBR, full-width counters, Intel PMU driver. [ 0.139878] ... version: 3 [ 0.143878] ... bit width: 48 [ 0.147968] ... generic registers: 8 [ 0.151973] ... value mask: 0000ffffffffffff [ 0.157276] ... max period: 00007fffffffffff [ 0.162581] ... fixed-purpose events: 3 [ 0.166585] ... event mask: 00000007000000ff [ 0.195801] x86: Booting SMP configuration: [ 0.199984] .... node #0, CPUs: #1CPU 3 received SIPI, vector 9a [ 0.268927] x86: Booted up 1 node, 2 CPUs [ 0.272941] smpboot: Total of 2 processors activated (9204.94 BogoMIPS) [ 0.284324] devtmpfs: initialized [ 0.287804] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 0.290213] kworker/u4:0 (26) used greatest stack depth: 14504 bytes left [ 0.304442] NET: Registered protocol family 16 [ 0.309066] kworker/u4:1 (39) used greatest stack depth: 14472 bytes left [ 0.309223] cpuidle: using governor menu [ 0.310224] core: PMU erratum BJ122, BV98, HSD29 workaround disabled, HT off [ 0.316308] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 0.319268] ACPI: Interpreter disabled. [ 0.320257] vgaarb: loaded [ 0.320311] SCSI subsystem initialized [ 0.321322] usbcore: registered new interface driver usbfs [ 0.321331] usbcore: registered new interface driver hub [ 0.321343] usbcore: registered new device driver usb [ 0.321357] pps_core: LinuxPPS API ver. 1 registered [ 0.321358] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]> [ 0.321360] PTP clock support registered [ 0.322283] dmi: Firmware registration failed. [ 0.322304] Advanced Linux Sound Architecture Driver Initialized. [ 0.322317] PCI: Probing PCI hardware [ 0.322345] PCI host bridge to bus 0000:00 [ 0.322348] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 0.322349] pci_bus 0000:00: root bus resource [mem 0x00000000-0x3fffffffffff] [ 0.322350] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 0.323557] PCI: Discovered peer bus 04 [ 0.323580] PCI host bridge to bus 0000:04 [ 0.323581] pci_bus 0000:04: root bus resource [io 0x0000-0xffff] [ 0.323582] pci_bus 0000:04: root bus resource [mem 0x00000000-0x3fffffffffff] [ 0.323583] pci_bus 0000:04: No busn resource found for root bus, will use [bus 04-ff] [ 0.388444] NetLabel: Initializing [ 0.388445] NetLabel: domain hash size = 128 [ 0.388445] NetLabel: protocols = UNLABELED CIPSOv4 [ 0.388459] NetLabel: unlabeled traffic allowed by default [ 0.388731] clocksource: Switched to clocksource refined-jiffies [ 0.398104] VFS: Disk quotas dquot_6.6.0 [ 0.398116] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.484425] kworker/u4:1 (29) used greatest stack depth: 14024 bytes left [ 0.484441] kworker/u4:0 (187) used greatest stack depth: 13992 bytes left [ 0.498156] pnp: PnP ACPI: disabled [ 0.508342] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns [ 0.517209] clocksource: Switched to clocksource acpi_pm [ 0.522549] NET: Registered protocol family 2 [ 0.527053] TCP established hash table entries: 2048 (order: 2, 16384 bytes) [ 0.534105] TCP bind hash table entries: 2048 (order: 4, 114688 bytes) [ 0.540658] TCP: Hash tables configured (established 2048 bind 2048) [ 0.547021] UDP hash table entries: 256 (order: 3, 32768 bytes) [ 0.552948] UDP-Lite hash table entries: 256 (order: 3, 32768 bytes) [ 0.559366] NET: Registered protocol family 1 [ 0.564838] RPC: Registered named UNIX socket transport module. [ 0.570752] RPC: Registered udp transport module. [ 0.575450] RPC: Registered tcp transport module. [ 0.580148] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.586632] Unpacking initramfs... [ 0.593853] Freeing initrd memory: 1960K (ffff880002f5f000 - ffff880003149000) [ 0.601086] Intel CQM monitoring enabled [ 0.605032] RAPL PMU: API unit is 2^-32 Joules, 4 fixed counters, 655360 ms ovfl timer [ 0.612943] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules [ 0.618690] RAPL PMU: hw unit of domain package 2^-14 Joules [ 0.624337] RAPL PMU: hw unit of domain dram 2^-14 Joules [ 0.629728] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules [ 0.635409] platform rtc_cmos: registered platform RTC device (no PNP device found) [ 0.643226] Scanning for low memory corruption every 60 seconds [ 0.649380] futex hash table entries: 512 (order: 4, 65536 bytes) [ 0.655488] audit: initializing netlink subsys (disabled) [ 0.660889] audit: type=2000 audit(0.532:1): initialized [ 0.666585] workingset: timestamp_bits=56 max_order=16 bucket_order=0 [ 0.675298] NFS: Registering the id_resolver key type [ 0.680349] Key type id_resolver registered [ 0.684530] Key type id_legacy registered [ 0.689845] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.697246] io scheduler noop registered [ 0.701175] io scheduler deadline registered [ 0.705476] io scheduler cfq registered (default) [ 0.710273] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 0.715984] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled [ 0.742880] serial8250: ttyS0 at I/O 0x3f8 (irq = 0, base_baud = 115200) is a 16550A [ 0.750886] Non-volatile memory driver v1.3 [ 0.755112] Linux agpgart interface v0.103 [ 0.759312] [drm] Initialized [ 0.763652] loop: module loaded [ 0.767036] tg3.c:v3.137 (May 11, 2014) [ 0.770875] tg3 0000:04:00.0: enabling device (0400 -> 0402) [ 0.785254] tg3 0000:04:00.0 eth0: Tigon3 [partno(BCM95722) rev a200] (PCI Express) MAC address 00:0a:f7:2c:95:cc [ 0.795506] tg3 0000:04:00.0 eth0: attached PHY is 5722/5756 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0]) [ 0.805671] tg3 0000:04:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1] [ 0.813488] tg3 0000:04:00.0 eth0: dma_rwctrl[76180000] dma_mask[64-bit] [ 0.820263] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI [ 0.826347] e100: Copyright(c) 1999-2006 Intel Corporation [ 0.831855] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI [ 0.838898] e1000: Copyright (c) 1999-2006 Intel Corporation. [ 0.844662] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k [ 0.850483] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 0.856422] sky2: driver version 1.30 [ 0.860256] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.866781] ehci-pci: EHCI PCI platform driver [ 0.871263] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 0.877443] ohci-pci: OHCI PCI platform driver [ 0.881912] uhci_hcd: USB Universal Host Controller Interface driver [ 0.888304] usbcore: registered new interface driver usblp [ 0.893811] usbcore: registered new interface driver usb-storage [ 0.899959] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 [ 0.906368] rtc_cmos: probe of rtc_cmos failed with error -22 [ 0.912303] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: [email protected] [ 0.920775] hidraw: raw HID events driver (C) Jiri Kosina [ 0.926581] usbcore: registered new interface driver usbhid [ 0.932152] usbhid: USB HID core driver [ 0.936680] Netfilter messages via NETLINK v0.30. [ 0.941466] nf_conntrack version 0.5.0 (1536 buckets, 6144 max) [ 0.947401] ctnetlink v0.93: registering with nfnetlink. [ 0.952833] ip_tables: (C) 2000-2006 Netfilter Core Team [ 0.958155] Initializing XFRM netlink socket [ 0.962551] NET: Registered protocol family 10 [ 0.968367] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 0.973876] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 0.979924] NET: Registered protocol family 17 [ 0.984385] Key type dns_resolver registered [ 0.988806] microcode: sig=0x306f2, pf=0x1, revision=0x36 [ 0.988842] microcode: Microcode Update Driver: v2.01 <[email protected]>, Peter Oruba [ 1.003137] registered taskstats version 1 [ 1.007302] console [netcon0] enabled [ 1.010966] netconsole: network logging started [ 1.015513] ALSA device list: [ 1.018476] No soundcards found. [ 1.022818] Freeing unused kernel memory: 1168K (ffffffff81f43000 - ffffffff82067000) [ 1.030638] Write protecting the kernel read-only data: 14336k [ 1.036946] Freeing unused kernel memory: 896K (ffff880001920000 - ffff880001a00000) [ 1.047820] Freeing unused kernel memory: 1288K (ffff880001cbe000 - ffff880001e00000) Starting logging[ 1.067435] random: dd: uninitialized urandom read (512 bytes read) : OK Initializi[ 1.077594] ip (863) used greatest stack depth: 13464 bytes left ng random number generator... done. Starting network: OK Welcome to Buildroot buildroot login: [ 1.694247] tsc: Refined TSC clocksource calibration: 2299.998 MHz [ 1.700435] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x212733415c7, max_idle_ns: 440795236380 ns [ 1.710427] NOHZ: local_softirq_pending 02 [ 2.718290] clocksource: Switched to clocksource tsc Welcome to Buildroot buildroot login: root # ifconfig eth0 10.134.30.231 netmask 255.255.255.0 broadcast 10.134.30.255 [ 36.652311] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready # [ 39.800454] tg3 0000:04:00.0 eth0: Link is up at 1000 Mbps, full duplex [ 39.807068] tg3 0000:04:00.0 eth0: Flow control is off for TX and off for RX [ 39.814127] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready # ifconfig eth0 Link encap:Ethernet HWaddr 00:0A:F7:2C:95:CC inet addr:10.134.30.231 Bcast:10.134.30.255 Mask:255.255.255.0 inet6 addr: fe80::20a:f7ff:fe2c:95cc/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:217 errors:0 dropped:1 overruns:0 frame:0 TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14419 (14.0 KiB) TX bytes:1138 (1.1 KiB) Interrupt:11 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:14 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:1280 (1.2 KiB) TX bytes:1280 (1.2 KiB) # [ 85.380523] random: fast init done # ping 10.134.30.36 PING 10.134.30.36 (10.134.30.36): 56 data bytes 64 bytes from 10.134.30.36: seq=0 ttl=64 time=3.245 ms 64 bytes from 10.134.30.36: seq=1 ttl=64 time=0.113 ms 64 bytes from 10.134.30.36: seq=2 ttl=64 time=0.112 ms ^C
