02 BASH – Le periferiche e i bus PCI visti da OpenSUSE.

18 Febbraio, 2024 (16:03) | BASH, Linux | By: sargonsei

02 BASH – Le periferiche e i bus PCI visti da OpenSUSE Tumbleweed.

Se l’ output è incompleto, impartire i comandi in modalità Super Utente.
I comandi:
lspci -k # Lista connettore PCI + Periferiche + Driver
lspci | awk '$2 == "VGA" {system("lspci -vs " $1)}' # Lista schede video PCI (VGA)
lspci | awk '$2 == "Audio" {system("lspci -vs " $1)}' # Lista schede Audio PCI
lspci | awk '$2 == "Ethernet" {system("lspci -vs " $1)}' # Lista schede Ethernet
lspci | awk '$2 == "Network" {system("lspci -vs " $1)}' # Lista schede Network
lspci | awk '$2 == "RAM" {system("lspci -vs " $1)}' # Lista schede RAM
lspci | awk '$2 == "SATA" {system("sudo lspci -vs " $1)}' # Lista schede SATA
lspci | awk '$2 == "USB" {system("lspci -vs " $1)}' # Lista schede USB
sudo lspci -vs AA:BB.C # Informazioni relative a periferica PCI AA:BB.C

Esempi di output:

:~> lspci -k # Lista connettore PCI + Periferiche + Driver
00:00.0 Host bridge: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel modules: igen6_edac
00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 03)
        DeviceName: Onboard - Video
        Subsystem: Intel Corporation Device 2212
        Kernel driver in use: i915
        Kernel modules: i915
00:08.0 System peripheral: Intel Corporation GNA Scoring Accelerator module (rev 02)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
00:0a.0 Signal processing controller: Intel Corporation Tigerlake Telemetry Aggregator Driver (rev 01)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: intel_vsec
        Kernel modules: intel_vsec
00:14.0 USB controller: Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Tiger Lake-LP Shared SRAM (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
00:15.0 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #0 (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:15.2 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #2 (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:15.3 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #3 (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Tiger Lake-LP Management Engine Interface (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Tiger Lake-LP SATA Controller (rev 30)
        DeviceName: Onboard - SATA
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: ahci
        Kernel modules: ahci
00:19.0 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #4 (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:19.1 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #5 (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:1c.0 PCI bridge: Intel Corporation Tiger Lake-LP PCI Express Root Port #5 (rev 30)
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Tiger Lake-LP PCI Express Root Port #9 (rev 30)
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: pcieport
00:1d.1 PCI bridge: Intel Corporation Tiger Lake-LP PCI Express Root Port #10 (rev 30)
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: pcieport
00:1e.0 Communication controller: Intel Corporation Tiger Lake-LP Serial IO UART Controller #0 (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:1e.3 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO SPI Controller #1 (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:1f.0 ISA bridge: Intel Corporation Tiger Lake-LP LPC Controller (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
00:1f.3 Audio device: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev 30)
        DeviceName: Onboard - Sound
        Subsystem: Realtek Semiconductor Co., Ltd. Device 3000
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
00:1f.4 SMBus: Intel Corporation Tiger Lake-LP SMBus Controller (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
00:1f.5 Serial bus controller: Intel Corporation Tiger Lake-LP SPI Controller (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: intel-spi
        Kernel modules: spi_intel_pci
01:00.0 Non-Volatile memory controller: MAXIO Technology (Hangzhou) Ltd. NVMe SSD Controller MAP1202 (DRAM-less) (rev 01)
        Subsystem: MAXIO Technology (Hangzhou) Ltd. NVMe SSD Controller MAP1202 (DRAM-less)
        Kernel driver in use: nvme
        Kernel modules: nvme
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)
        Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
        Kernel driver in use: r8169
        Kernel modules: r8169
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 802.11ax Wireless Network Controller
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 802.11ax Wireless Network Controller
        Kernel driver in use: rtw89_8852be
        Kernel modules: rtw89_8852be
:~> lspci | awk '$2 == "VGA" {system("lspci -vs " $1)}' # Lista schede video PCI (VGA)
00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 03) (prog-if 00 [VGA controller])
        DeviceName: Onboard - Video
        Subsystem: Intel Corporation Device 2212
        Flags: bus master, fast devsel, latency 0, IRQ 136
        Memory at 6000000000 (64-bit, non-prefetchable) [size=16M]
        Memory at 4000000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 5000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: 
        Kernel driver in use: i915
        Kernel modules: i915

:~> lspci | awk '$2 == "Audio" {system("lspci -vs " $1)}' # Lista schede Audio PCI
00:1f.3 Audio device: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev 30)
        DeviceName: Onboard - Sound
        Subsystem: Realtek Semiconductor Co., Ltd. Device 3000
        Flags: bus master, fast devsel, latency 32, IRQ 139
        Memory at 6001118000 (64-bit, non-prefetchable) [size=16K]
        Memory at 6001000000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: 
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

:~> lspci | awk '$2 == "USB" {system("lspci -vs " $1)}' # Lista schede USB
00:14.0 USB controller: Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller (rev 30) (prog-if 30 [XHCI])
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Flags: bus master, medium devsel, latency 0, IRQ 125
        Memory at 6001100000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: 
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

:~> lspci | awk '$2 == "Ethernet" {system("lspci -vs " $1)}' # Lista schede Ethernet
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)
        Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
        Flags: bus master, fast devsel, latency 0, IRQ 16
        I/O ports at 4000 [size=256]
        Memory at 80504000 (64-bit, non-prefetchable) [size=4K]
        Memory at 80500000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: 
        Kernel driver in use: r8169
        Kernel modules: r8169

:~> lspci | awk '$2 == "Network" {system("lspci -vs " $1)}' # Lista schede Network
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 802.11ax Wireless Network Controller
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 802.11ax Wireless Network Controller
        Flags: bus master, fast devsel, latency 0, IRQ 140
        I/O ports at 3000 [size=256]
        Memory at 80400000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: 
        Kernel driver in use: rtw89_8852be
        Kernel modules: rtw89_8852be

:~> lspci | awk '$2 == "RAM" {system("lspci -vs " $1)}' # Lista schede RAM
00:14.2 RAM memory: Intel Corporation Tiger Lake-LP Shared SRAM (rev 30)
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Device 7270
        Flags: fast devsel
        Memory at 600111c000 (64-bit, non-prefetchable) [disabled] [size=16K]
        Memory at 6001129000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: 

:~> lspci | awk '$2 == "SATA" {system("lspci -vs " $1)}' # Lista schede SATA
00:17.0 SATA controller: Intel Corporation Tiger Lake-LP SATA Controller (rev 30) (prog-if 01 [AHCI 1.0])
        DeviceName: Onboard - SATA
        Subsystem: Intel Corporation Device 7270
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 135
        Memory at 80700000 (32-bit, non-prefetchable) [size=8K]
        Memory at 80703000 (32-bit, non-prefetchable) [size=256]
        I/O ports at 5090 [size=8]
        I/O ports at 5080 [size=4]
        I/O ports at 5060 [size=32]
        Memory at 80702000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: 
        Kernel driver in use: ahci
        Kernel modules: ahci

:~>