You are not logged in.

#1 2017-11-01 20:47:16

thodean
Member
Registered: 2017-11-01
Posts: 3

[SOLVED] how to hijack lspci

hi,

i have problem with lspci command. It freezes when its trying to open pci-brige`s config file. [ /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/config] Simply when i cat that file, it freezes bash too. So i cant get output of lspci. At Windows, i can.

procceses goes uninterruptible sleep state

im new to linux and i started linux from arch distro because ubuntu s fancy gui installer crashes for same problem, i think

So, should i wait to learn programming, write my own lspci package that only prints string that i get from windows.

Is there any fancy trick?

ty


lspci output from windows

00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM Registers (rev 07)
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: bus master, fast devsel, latency 0
	Capabilities: [e0] Vendor Specific Information: Len=10 <?>
00: 86 80 10 19 06 00 90 20 07 00 00 06 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 e0 00 00 00 00 00 00 00 00 00 00 00

00:01.0 PCI bridge: Intel Corporation Sky Lake PCIe Controller (x16) (rev 07) (prog-if 00 [Normal decode])
	Flags: fast devsel, IRQ 255
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 0000e000-0000efff
	Memory behind bridge: de000000-df0fffff
	Prefetchable memory behind bridge: 00000000c0000000-00000000d1ffffff
	Capabilities: [88] Subsystem: ASUSTeK Computer Inc. Device 1190
	Capabilities: [80] Power Management version 3
	Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [a0] Express Root Port (Slot+), MSI 00
00: 86 80 01 19 00 04 10 00 07 00 04 06 00 00 81 00
10: 00 00 00 00 00 00 00 00 00 01 01 00 e0 e0 00 00
20: 00 de 00 df 01 c0 f1 d1 00 00 00 00 00 00 00 00
30: 00 00 00 00 88 00 00 00 00 00 00 00 ff 01 00 00

00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: bus master, fast devsel, latency 0
	Memory at dd000000 (64-bit, non-prefetchable)
	Memory at b0000000 (64-bit, prefetchable)
	I/O ports at f000
	Capabilities: [40] Vendor Specific Information: Len=0c <?>
	Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
	Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 2
00: 86 80 1b 19 07 04 10 00 06 00 00 03 00 00 00 00
10: 04 00 00 dd 00 00 00 00 0c 00 00 b0 00 00 00 00
20: 01 f0 00 00 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 40 00 00 00 00 00 00 00 00 01 00 00

00:04.0 Signal processing controller: Intel Corporation Device 1903 (rev 07)
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at df420000 (64-bit, non-prefetchable)
	Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 3
	Capabilities: [e0] Vendor Specific Information: Len=0c <?>
00: 86 80 03 19 06 00 90 00 07 00 80 11 00 00 00 00
10: 04 00 42 df 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 90 00 00 00 00 00 00 00 10 01 00 00

00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31) (prog-if 30 [XHCI])
	Subsystem: ASUSTeK Computer Inc. Device 201f
	Flags: bus master, medium devsel, latency 0
	Memory at df410000 (64-bit, non-prefetchable)
	Capabilities: [70] Power Management version 2
	Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
00: 86 80 2f a1 06 04 90 02 31 30 03 0c 00 00 80 00
10: 04 00 41 df 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 1f 20
30: 00 00 00 00 70 00 00 00 00 00 00 00 00 01 00 00

00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: bus master, fast devsel, latency 0, IRQ 255
	Memory at df438000 (64-bit, non-prefetchable)
	Capabilities: [50] Power Management version 3
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
00: 86 80 31 a1 06 00 10 00 31 00 80 11 00 00 00 00
10: 04 80 43 df 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 50 00 00 00 00 00 00 00 ff 03 00 00

00:15.0 Signal processing controller: Intel Corporation Sunrise Point-H LPSS I2C Controller #0 (rev 31)
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: fast devsel, IRQ 16
	Memory at fe40e000 (64-bit, non-prefetchable) [disabled]
	Capabilities: [80] Power Management version 3
	Capabilities: [90] Vendor Specific Information: Len=14 <?>
00: 86 80 60 a1 00 04 10 00 31 00 80 11 00 00 80 00
10: 04 e0 40 fe 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 80 00 00 00 00 00 00 00 10 01 00 00

00:15.1 Signal processing controller: Intel Corporation Sunrise Point-H LPSS I2C Controller #1 (rev 31)
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: fast devsel, IRQ 17
	Memory at fe40d000 (64-bit, non-prefetchable) [disabled]
	Capabilities: [80] Power Management version 3
	Capabilities: [90] Vendor Specific Information: Len=14 <?>
00: 86 80 61 a1 00 04 10 00 31 00 80 11 00 00 80 00
10: 04 d0 40 fe 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 80 00 00 00 00 00 00 00 11 02 00 00

00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: bus master, fast devsel, latency 0
	Memory at fe40f000 (64-bit, non-prefetchable)
	Capabilities: [50] Power Management version 3
	Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
00: 86 80 3a a1 06 04 10 00 31 00 80 07 00 00 80 00
10: 04 f0 40 fe 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 50 00 00 00 00 00 00 00 00 01 00 00

00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] (rev 31) (prog-if 01 [AHCI 1.0])
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: bus master, 66MHz, medium devsel, latency 0
	Memory at df430000 (32-bit, non-prefetchable)
	Memory at df434000 (32-bit, non-prefetchable)
	I/O ports at f090
	I/O ports at f080
	I/O ports at f060
	Memory at df433000 (32-bit, non-prefetchable)
	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [70] Power Management version 3
	Capabilities: [a8] SATA HBA v1.0
00: 86 80 03 a1 07 04 b0 02 31 01 06 01 00 00 00 00
10: 00 00 43 df 00 40 43 df 91 f0 00 00 81 f0 00 00
20: 61 f0 00 00 00 30 43 df 00 00 00 00 43 10 90 11
30: 00 00 00 00 80 00 00 00 00 00 00 00 00 01 00 00

00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #3 (rev f1) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 255
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	Memory behind bridge: df300000-df3fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 1190
	Capabilities: [a0] Power Management version 3
00: 86 80 12 a1 06 04 10 00 f1 00 04 06 00 00 81 00
10: 00 00 00 00 00 00 00 00 00 02 02 00 f0 00 00 20
20: 30 df 30 df f1 ff 01 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 40 00 00 00 00 00 00 00 ff 03 00 00

00:1c.3 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #4 (rev f1) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 255
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	I/O behind bridge: 0000d000-0000dfff
	Memory behind bridge: df200000-df2fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 1190
	Capabilities: [a0] Power Management version 3
00: 86 80 13 a1 07 04 10 00 f1 00 04 06 00 00 81 00
10: 00 00 00 00 00 00 00 00 00 03 03 00 d0 d0 00 20
20: 20 df 20 df f1 ff 01 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 40 00 00 00 00 00 00 00 ff 04 00 00

00:1d.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #9 (rev f1) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 255
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
	I/O behind bridge: 0000c000-0000cfff
	Memory behind bridge: df100000-df1fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 1190
	Capabilities: [a0] Power Management version 3
00: 86 80 18 a1 07 04 10 00 f1 00 04 06 00 00 81 00
10: 00 00 00 00 00 00 00 00 00 04 04 00 c0 c0 00 20
20: 10 df 10 df f1 ff 01 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 40 00 00 00 00 00 00 00 ff 01 00 00

00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: bus master, medium devsel, latency 0
00: 86 80 4e a1 07 00 00 02 31 00 01 06 00 00 80 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: bus master, fast devsel, latency 0
	Memory at df42c000 (32-bit, non-prefetchable)
00: 86 80 21 a1 06 00 00 00 31 00 80 05 00 00 80 00
10: 00 c0 42 df 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: bus master, fast devsel, latency 32, IRQ 16
	Memory at df428000 (64-bit, non-prefetchable)
	Memory at df400000 (64-bit, non-prefetchable)
	Capabilities: [50] Power Management version 3
	Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
00: 86 80 70 a1 06 00 10 00 31 00 03 04 00 20 00 00
10: 04 80 42 df 00 00 00 00 00 00 00 00 00 00 00 00
20: 04 00 40 df 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 50 00 00 00 00 00 00 00 10 01 00 00

00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
	Subsystem: ASUSTeK Computer Inc. Device 1190
	Flags: medium devsel, IRQ 255
	Memory at df432000 (64-bit, non-prefetchable)
	I/O ports at f040
00: 86 80 23 a1 03 00 80 02 31 00 05 0c 00 00 00 00
10: 04 20 43 df 00 00 00 00 00 00 00 00 00 00 00 00
20: 41 f0 00 00 00 00 00 00 00 00 00 00 43 10 90 11
30: 00 00 00 00 00 00 00 00 00 00 00 00 ff 01 00 00

02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)
	Subsystem: AzureWave Device 2182
	Flags: bus master, fast devsel, latency 0, IRQ 18
	Memory at df300000 (64-bit, non-prefetchable)
	Capabilities: [40] Power Management version 2
	Capabilities: [50] MSI: Enable- Count=1/4 Maskable+ 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
00: 8c 16 36 00 46 01 10 00 01 00 80 02 01 00 00 00
10: 04 00 30 df 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 3b 1a 82 21
30: 00 00 00 00 40 00 00 00 00 00 00 00 12 01 00 00

03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5287 (rev 01)
	Subsystem: Realtek Semiconductor Co., Ltd. Device 5287
	Flags: bus master, fast devsel, latency 0
	Memory at df215000 (32-bit, non-prefetchable)
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [b0] MSI-X: Enable- Count=1 Masked-
	Capabilities: [d0] Vital Product Data
00: ec 10 87 52 06 04 10 00 01 00 00 ff 00 00 80 00
10: 00 50 21 df 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 ec 10 87 52
30: 00 00 00 00 40 00 00 00 00 00 00 00 00 02 00 00

03:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
	Subsystem: ASUSTeK Computer Inc. Device 200f
	Flags: bus master, fast devsel, latency 0, IRQ 19
	I/O ports at d000
	Memory at df214000 (64-bit, non-prefetchable)
	Memory at df210000 (64-bit, non-prefetchable)
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 01
	Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
	Capabilities: [d0] Vital Product Data
00: ec 10 68 81 07 00 10 00 12 00 00 02 00 00 80 00
10: 01 d0 00 00 00 00 00 00 04 40 21 df 00 00 00 00
20: 04 00 21 df 00 00 00 00 00 00 00 00 43 10 0f 20
30: 00 00 00 00 40 00 00 00 00 00 00 00 13 01 00 00

04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a802 (rev 01) (prog-if 02 [NVM Express])
	Subsystem: Samsung Electronics Co Ltd Device a801
	Flags: bus master, fast devsel, latency 0
	Memory at df100000 (64-bit, non-prefetchable)
	I/O ports at <unassigned> [disabled]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [b0] MSI-X: Enable+ Count=9 Masked-
00: 4d 14 02 a8 06 04 10 00 01 02 08 01 00 00 00 00
10: 04 00 10 df 00 00 00 00 01 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 4d 14 01 a8
30: 00 00 00 00 40 00 00 00 00 00 00 00 00 01 00 00

dmesg | grep pci

[    0.934186] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.984557] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    0.984558] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    0.984559] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[    0.984560] pci_bus 0000:00: root bus resource [mem 0x000c0000-0x000c3fff window]
[    0.984561] pci_bus 0000:00: root bus resource [mem 0x000c4000-0x000c7fff window]
[    0.984561] pci_bus 0000:00: root bus resource [mem 0x000c8000-0x000cbfff window]
[    0.984562] pci_bus 0000:00: root bus resource [mem 0x000cc000-0x000cffff window]
[    0.984563] pci_bus 0000:00: root bus resource [mem 0x000d0000-0x000d3fff window]
[    0.984564] pci_bus 0000:00: root bus resource [mem 0x000d4000-0x000d7fff window]
[    0.984565] pci_bus 0000:00: root bus resource [mem 0x000d8000-0x000dbfff window]
[    0.984566] pci_bus 0000:00: root bus resource [mem 0x000dc000-0x000dffff window]
[    0.984566] pci_bus 0000:00: root bus resource [mem 0x000e0000-0x000e3fff window]
[    0.984567] pci_bus 0000:00: root bus resource [mem 0x000e4000-0x000e7fff window]
[    0.984568] pci_bus 0000:00: root bus resource [mem 0x000e8000-0x000ebfff window]
[    0.984569] pci_bus 0000:00: root bus resource [mem 0x000ec000-0x000effff window]
[    0.984570] pci_bus 0000:00: root bus resource [mem 0x79000000-0xdfffffff window]
[    0.984570] pci_bus 0000:00: root bus resource [mem 0xfd000000-0xfe7fffff window]
[    0.984572] pci_bus 0000:00: root bus resource [bus 00-fe]
[    0.984578] pci 0000:00:00.0: [8086:1910] type 00 class 0x060000
[    0.984677] pci 0000:00:01.0: [8086:1901] type 01 class 0x060400
[    0.984713] pci 0000:00:01.0: PME# supported from D0 D3hot D3cold
[    0.984864] pci 0000:00:02.0: [8086:191b] type 00 class 0x030000
[    0.984873] pci 0000:00:02.0: reg 0x10: [mem 0xdd000000-0xddffffff 64bit]
[    0.984878] pci 0000:00:02.0: reg 0x18: [mem 0xb0000000-0xbfffffff 64bit pref]
[    0.984882] pci 0000:00:02.0: reg 0x20: [io  0xf000-0xf03f]
[    0.984994] pci 0000:00:04.0: [8086:1903] type 00 class 0x118000
[    0.985004] pci 0000:00:04.0: reg 0x10: [mem 0xdf420000-0xdf427fff 64bit]
[    0.985184] pci 0000:00:14.0: [8086:a12f] type 00 class 0x0c0330
[    0.985203] pci 0000:00:14.0: reg 0x10: [mem 0xdf410000-0xdf41ffff 64bit]
[    0.985262] pci 0000:00:14.0: PME# supported from D3hot D3cold
[    0.985374] pci 0000:00:14.2: [8086:a131] type 00 class 0x118000
[    0.985393] pci 0000:00:14.2: reg 0x10: [mem 0xdf438000-0xdf438fff 64bit]
[    0.985594] pci 0000:00:15.0: [8086:a160] type 00 class 0x118000
[    0.985684] pci 0000:00:15.0: reg 0x10: [mem 0xdf437000-0xdf437fff 64bit]
[    0.986307] pci 0000:00:15.1: [8086:a161] type 00 class 0x118000
[    0.986409] pci 0000:00:15.1: reg 0x10: [mem 0xdf436000-0xdf436fff 64bit]
[    0.986943] pci 0000:00:16.0: [8086:a13a] type 00 class 0x078000
[    0.986967] pci 0000:00:16.0: reg 0x10: [mem 0xdf435000-0xdf435fff 64bit]
[    0.987034] pci 0000:00:16.0: PME# supported from D3hot
[    0.987162] pci 0000:00:17.0: [8086:a103] type 00 class 0x010601
[    0.987177] pci 0000:00:17.0: reg 0x10: [mem 0xdf430000-0xdf431fff]
[    0.987183] pci 0000:00:17.0: reg 0x14: [mem 0xdf434000-0xdf4340ff]
[    0.987190] pci 0000:00:17.0: reg 0x18: [io  0xf090-0xf097]
[    0.987196] pci 0000:00:17.0: reg 0x1c: [io  0xf080-0xf083]
[    0.987202] pci 0000:00:17.0: reg 0x20: [io  0xf060-0xf07f]
[    0.987208] pci 0000:00:17.0: reg 0x24: [mem 0xdf433000-0xdf4337ff]
[    0.987244] pci 0000:00:17.0: PME# supported from D3hot
[    0.987365] pci 0000:00:1c.0: [8086:a112] type 01 class 0x060400
[    0.987424] pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
[    0.987563] pci 0000:00:1c.3: [8086:a113] type 01 class 0x060400
[    0.987623] pci 0000:00:1c.3: PME# supported from D0 D3hot D3cold
[    0.987768] pci 0000:00:1d.0: [8086:a118] type 01 class 0x060400
[    0.987835] pci 0000:00:1d.0: PME# supported from D0 D3hot D3cold
[    0.987998] pci 0000:00:1f.0: [8086:a14e] type 00 class 0x060100
[    0.988204] pci 0000:00:1f.2: [8086:a121] type 00 class 0x058000
[    0.988218] pci 0000:00:1f.2: reg 0x10: [mem 0xdf42c000-0xdf42ffff]
[    0.988371] pci 0000:00:1f.3: [8086:a170] type 00 class 0x040300
[    0.988397] pci 0000:00:1f.3: reg 0x10: [mem 0xdf428000-0xdf42bfff 64bit]
[    0.988426] pci 0000:00:1f.3: reg 0x20: [mem 0xdf400000-0xdf40ffff 64bit]
[    0.988473] pci 0000:00:1f.3: PME# supported from D3hot D3cold
[    0.988648] pci 0000:00:1f.4: [8086:a123] type 00 class 0x0c0500
[    0.988709] pci 0000:00:1f.4: reg 0x10: [mem 0xdf432000-0xdf4320ff 64bit]
[    0.988779] pci 0000:00:1f.4: reg 0x20: [io  0xf040-0xf05f]
[    0.988997] pci 0000:01:00.0: [10de:1427] type 00 class 0x030200
[    0.989023] pci 0000:01:00.0: reg 0x10: [mem 0xde000000-0xdeffffff]
[    0.989039] pci 0000:01:00.0: reg 0x14: [mem 0xc0000000-0xcfffffff 64bit pref]
[    0.989055] pci 0000:01:00.0: reg 0x1c: [mem 0xd0000000-0xd1ffffff 64bit pref]
[    0.989066] pci 0000:01:00.0: reg 0x24: [io  0xe000-0xe07f]
[    0.989076] pci 0000:01:00.0: reg 0x30: [mem 0xdf000000-0xdf07ffff pref]
[    0.996703] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.996708] pci 0000:00:01.0:   bridge window [io  0xe000-0xefff]
[    0.996713] pci 0000:00:01.0:   bridge window [mem 0xde000000-0xdf0fffff]
[    0.996722] pci 0000:00:01.0:   bridge window [mem 0xc0000000-0xd1ffffff 64bit pref]
[    0.996850] pci 0000:02:00.0: [168c:0036] type 00 class 0x028000
[    0.996880] pci 0000:02:00.0: reg 0x10: [mem 0xdf300000-0xdf37ffff 64bit]
[    0.996924] pci 0000:02:00.0: reg 0x30: [mem 0xdf380000-0xdf38ffff pref]
[    0.996988] pci 0000:02:00.0: supports D1 D2
[    0.996989] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.006696] pci 0000:00:1c.0: PCI bridge to [bus 02]
[    1.006705] pci 0000:00:1c.0:   bridge window [mem 0xdf300000-0xdf3fffff]
[    1.006840] pci 0000:03:00.0: [10ec:5287] type 00 class 0xff0000
[    1.006867] pci 0000:03:00.0: reg 0x10: [mem 0xdf215000-0xdf215fff]
[    1.006922] pci 0000:03:00.0: reg 0x30: [mem 0xdf200000-0xdf20ffff pref]
[    1.007000] pci 0000:03:00.0: supports D1 D2
[    1.007001] pci 0000:03:00.0: PME# supported from D1 D2 D3hot D3cold
[    1.007116] pci 0000:03:00.1: [10ec:8168] type 00 class 0x020000
[    1.007142] pci 0000:03:00.1: reg 0x10: [io  0xd000-0xd0ff]
[    1.007166] pci 0000:03:00.1: reg 0x18: [mem 0xdf214000-0xdf214fff 64bit]
[    1.007181] pci 0000:03:00.1: reg 0x20: [mem 0xdf210000-0xdf213fff 64bit]
[    1.007263] pci 0000:03:00.1: supports D1 D2
[    1.007264] pci 0000:03:00.1: PME# supported from D0 D1 D2 D3hot D3cold
[    1.016710] pci 0000:00:1c.3: PCI bridge to [bus 03]
[    1.016715] pci 0000:00:1c.3:   bridge window [io  0xd000-0xdfff]
[    1.016723] pci 0000:00:1c.3:   bridge window [mem 0xdf200000-0xdf2fffff]
[    1.016931] pci 0000:04:00.0: [144d:a802] type 00 class 0x010802
[    1.016955] pci 0000:04:00.0: reg 0x10: [mem 0xdf100000-0xdf103fff 64bit]
[    1.016963] pci 0000:04:00.0: reg 0x18: [io  0xc000-0xc0ff]
[    1.026803] pci 0000:00:1d.0: PCI bridge to [bus 04]
[    1.026805] pci 0000:00:1d.0:   bridge window [io  0xc000-0xcfff]
[    1.026807] pci 0000:00:1d.0:   bridge window [mem 0xdf100000-0xdf1fffff]
[    1.030158] pci 0000:00:02.0: vgaarb: setting as boot VGA device
[    1.030158] pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[    1.030158] pci 0000:00:02.0: vgaarb: bridge control possible
[    1.062538] PCI: pci_cache_line_size set to 64 bytes
[    1.080960] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.080961] pci 0000:00:01.0:   bridge window [io  0xe000-0xefff]
[    1.080963] pci 0000:00:01.0:   bridge window [mem 0xde000000-0xdf0fffff]
[    1.080965] pci 0000:00:01.0:   bridge window [mem 0xc0000000-0xd1ffffff 64bit pref]
[    1.080968] pci 0000:00:1c.0: PCI bridge to [bus 02]
[    1.080971] pci 0000:00:1c.0:   bridge window [mem 0xdf300000-0xdf3fffff]
[    1.080976] pci 0000:00:1c.3: PCI bridge to [bus 03]
[    1.080978] pci 0000:00:1c.3:   bridge window [io  0xd000-0xdfff]
[    1.080980] pci 0000:00:1c.3:   bridge window [mem 0xdf200000-0xdf2fffff]
[    1.080985] pci 0000:00:1d.0: PCI bridge to [bus 04]
[    1.080988] pci 0000:00:1d.0:   bridge window [io  0xc000-0xcfff]
[    1.080991] pci 0000:00:1d.0:   bridge window [mem 0xdf100000-0xdf1fffff]
[    1.080997] pci_bus 0000:00: resource 4 [io  0x0000-0x0cf7 window]
[    1.080998] pci_bus 0000:00: resource 5 [io  0x0d00-0xffff window]
[    1.080999] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[    1.081000] pci_bus 0000:00: resource 7 [mem 0x000c0000-0x000c3fff window]
[    1.081001] pci_bus 0000:00: resource 8 [mem 0x000c4000-0x000c7fff window]
[    1.081002] pci_bus 0000:00: resource 9 [mem 0x000c8000-0x000cbfff window]
[    1.081003] pci_bus 0000:00: resource 10 [mem 0x000cc000-0x000cffff window]
[    1.081004] pci_bus 0000:00: resource 11 [mem 0x000d0000-0x000d3fff window]
[    1.081004] pci_bus 0000:00: resource 12 [mem 0x000d4000-0x000d7fff window]
[    1.081005] pci_bus 0000:00: resource 13 [mem 0x000d8000-0x000dbfff window]
[    1.081006] pci_bus 0000:00: resource 14 [mem 0x000dc000-0x000dffff window]
[    1.081007] pci_bus 0000:00: resource 15 [mem 0x000e0000-0x000e3fff window]
[    1.081008] pci_bus 0000:00: resource 16 [mem 0x000e4000-0x000e7fff window]
[    1.081009] pci_bus 0000:00: resource 17 [mem 0x000e8000-0x000ebfff window]
[    1.081009] pci_bus 0000:00: resource 18 [mem 0x000ec000-0x000effff window]
[    1.081010] pci_bus 0000:00: resource 19 [mem 0x79000000-0xdfffffff window]
[    1.081011] pci_bus 0000:00: resource 20 [mem 0xfd000000-0xfe7fffff window]
[    1.081012] pci_bus 0000:01: resource 0 [io  0xe000-0xefff]
[    1.081013] pci_bus 0000:01: resource 1 [mem 0xde000000-0xdf0fffff]
[    1.081014] pci_bus 0000:01: resource 2 [mem 0xc0000000-0xd1ffffff 64bit pref]
[    1.081015] pci_bus 0000:02: resource 1 [mem 0xdf300000-0xdf3fffff]
[    1.081016] pci_bus 0000:03: resource 0 [io  0xd000-0xdfff]
[    1.081017] pci_bus 0000:03: resource 1 [mem 0xdf200000-0xdf2fffff]
[    1.081017] pci_bus 0000:04: resource 0 [io  0xc000-0xcfff]
[    1.081018] pci_bus 0000:04: resource 1 [mem 0xdf100000-0xdf1fffff]
[    1.081730] pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[    1.274657] nvme nvme0: pci function 0000:04:00.0
[    2.014893] input: Logitech G300s Optical Gaming Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:046D:C246.0001/input/input1
[    2.015225] input: Logitech G300s Optical Gaming Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.1/0003:046D:C246.0002/input/input2
[    2.746842] input: USB2.0 UVC HD Webcam: USB2.0 UV as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/input/input8
[    2.780840] pci 0000:01:00.0: optimus capabilities: enabled, status dynamic power, hda bios codec supported
[    3.039397] input: Elan Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-ELAN1000:00/input/input12
[    3.119601] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
[    3.120468] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
[    3.120555] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
[    3.120632] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
[    3.120721] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
[    3.120803] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
[    3.120883] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[    3.120964] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20

ls -al /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/

total 0
drwxr-xr-x 23 root root         0 Nov  2 10:17 .
drwxr-xr-x  6 root root         0 Nov  2 10:17 ..
-rw-r--r--  1 root root      4096 Nov  2 10:29 broken_parity_status
-r--r--r--  1 root root      4096 Nov  2 10:29 class
-rw-r--r--  1 root root      4096 Nov  2 10:29 config
-r--r--r--  1 root root      4096 Nov  2 10:29 consistent_dma_mask_bits
-r--r--r--  1 root root      4096 Nov  2 10:29 current_link_speed
-r--r--r--  1 root root      4096 Nov  2 10:29 current_link_width
-rw-r--r--  1 root root      4096 Nov  2 10:29 d3cold_allowed
-r--r--r--  1 root root      4096 Nov  2 10:17 device
-r--r--r--  1 root root      4096 Nov  2 10:29 dma_mask_bits
lrwxrwxrwx  1 root root         0 Nov  2 10:29 driver -> ../../../../bus/pci/drivers/nouveau
-rw-r--r--  1 root root      4096 Nov  2 10:29 driver_override
drwxr-xr-x  4 root root         0 Nov  2 10:17 drm
-rw-r--r--  1 root root      4096 Nov  2 10:29 enable
lrwxrwxrwx  1 root root         0 Nov  2 10:29 firmware_node -> ../../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:12/LNXVIDEO:01
drwxr-xr-x  3 root root         0 Nov  2 10:17 hwmon
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-10
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-11
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-12
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-13
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-14
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-15
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-16
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-17
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-18
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-19
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-20
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-21
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-22
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-23
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-24
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-8
drwxr-xr-x  3 root root         0 Nov  2 10:17 i2c-9
-r--r--r--  1 root root      4096 Nov  2 10:29 irq
-r--r--r--  1 root root      4096 Nov  2 10:29 local_cpulist
-r--r--r--  1 root root      4096 Nov  2 10:29 local_cpus
-r--r--r--  1 root root      4096 Nov  2 10:29 max_link_speed
-r--r--r--  1 root root      4096 Nov  2 10:29 max_link_width
-r--r--r--  1 root root      4096 Nov  2 10:29 modalias
-rw-r--r--  1 root root      4096 Nov  2 10:29 msi_bus
drwxr-xr-x  2 root root         0 Nov  2 10:29 msi_irqs
-rw-r--r--  1 root root      4096 Nov  2 10:29 numa_node
drwxr-xr-x  2 root root         0 Nov  2 10:29 power
--w--w----  1 root root      4096 Nov  2 10:29 remove
--w--w----  1 root root      4096 Nov  2 10:29 rescan
--w-------  1 root root      4096 Nov  2 10:29 reset
-r--r--r--  1 root root      4096 Nov  2 10:29 resource
-rw-------  1 root root  16777216 Nov  2 10:29 resource0
-rw-------  1 root root 268435456 Nov  2 10:29 resource1
-rw-------  1 root root 268435456 Nov  2 10:29 resource1_wc
-rw-------  1 root root  33554432 Nov  2 10:29 resource3
-rw-------  1 root root  33554432 Nov  2 10:29 resource3_wc
-rw-------  1 root root       128 Nov  2 10:29 resource5
-r--r--r--  1 root root      4096 Nov  2 10:29 revision
-rw-------  1 root root    524288 Nov  2 10:29 rom
lrwxrwxrwx  1 root root         0 Nov  2 10:17 subsystem -> ../../../../bus/pci
-r--r--r--  1 root root      4096 Nov  2 10:17 subsystem_device
-r--r--r--  1 root root      4096 Nov  2 10:17 subsystem_vendor
-rw-r--r--  1 root root      4096 Nov  2 10:17 uevent
-r--r--r--  1 root root      4096 Nov  2 10:17 vendor

Last edited by thodean (2017-11-02 14:34:35)

Offline

#2 2017-11-01 20:55:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] how to hijack lspci

Use code tags when pasting to the boards:  https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-11-02 11:44:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,868

Re: [SOLVED] how to hijack lspci

lrwxrwxrwx  1 root root         0 Nov  2 10:29 driver -> ../../../../bus/pci/drivers/nouveau

https://wiki.archlinux.org/index.php/No … le_Invalid

Offline

#4 2017-11-02 13:54:26

thodean
Member
Registered: 2017-11-01
Posts: 3

Re: [SOLVED] how to hijack lspci

i simply installed nvidia driver and lspci is now working. thanks

i didnt used to poweroff system. it also fixed it too

Last edited by thodean (2017-11-02 13:56:51)

Offline

#5 2017-11-02 13:57:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,868

Re: [SOLVED] how to hijack lspci

Cool.
Please always remember to mark threads as [SOLVED] by editing your initial posts subject and once they are to your satisfaction - so others will know that there's no task left but maybe an answer to find. Thanks.

Offline

Board footer

Powered by FluxBB