Project

General

Profile

Actions

Feature #14547

open

it would be nice if 'prtconf -dp' worked

Added by Rich Lowe 6 months ago. Updated 4 days ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
cmd - userland programs
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

There doesn't seem to be a way to get prtconf(1M)'s device lookup and and prom-tree printing to happen at the same time. It'd be nice if there was

Actions #1

Updated by Sachidananda Urs 2 months ago

After my changes:

$ prtconf -dp

System Configuration:  Gigabyte Technology Co., Ltd.  i86pc
Memory size: 8080 Megabytes
System Peripherals (PROM Nodes):

Node 'i86pc'
    Node 'ramdisk'
    Node 'pci'
        Node 'pci1458,5000' (pciex8086,c00) [Intel Corporation 4th Gen Core Processor DRAM Controller]
        Node 'display' (pciex8086,412) [Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller]
        Node 'pci8086,2010' (pciex8086,c0c) [Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller]
        Node 'pci1458,5007' (pciex8086,8cb1) [Intel Corporation 9 Series Chipset Family USB xHCI Controller]
        Node 'pci1458,1c3a' (pciex8086,8cba) [Intel Corporation 9 Series Chipset Family ME Interface #1]
        Node 'pci1458,e000' (pciex8086,153b) [Intel Corporation Ethernet Connection I217-V]
        Node 'pci1458,5006' (pciex8086,8cad) [Intel Corporation 9 Series Chipset Family USB EHCI Controller #2]
        Node 'pci1458,a182' (pciex8086,8ca0) [Intel Corporation 9 Series Chipset Family HD Audio Controller]
        Node 'pci8086,8c90' (pciex8086,8c90) [Intel Corporation 9 Series Chipset Family PCI Express Root Port 1]
        Node 'pci8086,8c96' (pciex8086,8c96) [Intel Corporation 9 Series Chipset Family PCI Express Root Port 4]
            Node 'pci1458,e000' (pciex1969,1091) [Qualcomm Atheros AR8161 Gigabit Ethernet]
        Node 'pci8086,8c98' (pciex8086,8c98) [Intel Corporation 9 Series Chipset Family PCI Express Root Port 5]
            Node 'pci8086,4070' (pciex8086,8b1) [Intel Corporation Wireless 7260]
        Node 'pci1458,5006' (pciex8086,8ca6) [Intel Corporation 9 Series Chipset Family USB EHCI Controller #1]
        Node 'isa' (pciex8086,8cc6) [Intel Corporation H97 Chipset LPC Controller]
            Node 'asy'
        Node 'pci1458,b005' (pciex8086,8c82) [Intel Corporation 9 Series Chipset Family SATA Controller [AHCI Mode]]
        Node 'pci1458,5001' (pciex8086,8ca2) [Intel Corporation 9 Series Chipset Family SMBus Controller]
    Node 'fw'
        Node 'cpu'
        Node 'cpu'
        Node 'cpu'
        Node 'cpu'
        Node 'sb'
    Node 'used-resources'

Before:

System Configuration:  Gigabyte Technology Co., Ltd.  i86pc
Memory size: 8080 Megabytes
System Peripherals (PROM Nodes):

Node 'i86pc'
    Node 'ramdisk'
    Node 'pci'
        Node 'pci1458,5000'
        Node 'display'
        Node 'pci8086,2010'
        Node 'pci1458,5007'
        Node 'pci1458,1c3a'
        Node 'pci1458,e000'
        Node 'pci1458,5006'
        Node 'pci1458,a182'
        Node 'pci8086,8c90'
        Node 'pci8086,8c96'
            Node 'pci1458,e000'
        Node 'pci8086,8c98'
            Node 'pci8086,4070'
        Node 'pci1458,5006'
        Node 'isa'
            Node 'asy'
        Node 'pci1458,b005'
        Node 'pci1458,5001'
    Node 'fw'
        Node 'cpu'
        Node 'cpu'
        Node 'cpu'
        Node 'cpu'
        Node 'sb'
    Node 'used-resources'

I'll do some more testing before submitting for review. Hope this was the intended behavior.

Actions #2

Updated by Electric Monk about 1 month ago

  • Gerrit CR set to 2218
Actions #3

Updated by Sachidananda Urs 4 days ago

Test results on a vm (running on linux)

./prtconf -pd 
System Configuration:  QEMU  i86pc
Memory size: 4096 Megabytes
System Peripherals (PROM Nodes):

Node 'i86pc'
    Node 'ramdisk'
    Node 'pci'
        Node 'pci1af4,1100' (pci8086,1237) [Intel Corporation 440FX - 82441FX PMC [Natoma]]
        Node 'isa' (pci8086,7000) [Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]]
            Node 'asy'
            Node 'i8042'
                Node 'keyboard'
                Node 'mouse'
            Node 'fdc'
        Node 'pci-ide' (pci8086,7010) [Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]]
            Node 'ide'
            Node 'ide'
        Node 'pci1af4,1100' (pci8086,7113) [Intel Corporation 82371AB/EB/MB PIIX4 ACPI]
        Node 'display' (pci1b36,100) [Red Hat, Inc. QXL paravirtual graphic card]
        Node 'pci1af4,1100' (pci8086,100e) [Intel Corporation 82540EM Gigabit Ethernet Controller]
        Node 'pci1af4,1100' (pci8086,2668) [Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller]
        Node 'pci1af4,1100' (pci8086,2934) [Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1]
        Node 'pci1af4,1100' (pci8086,2935) [Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2]
        Node 'pci1af4,1100' (pci8086,2936) [Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3]
        Node 'pci1af4,1100' (pci8086,293a) [Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1]
        Node 'pci1af4,3' (pci1af4,1003) [Red Hat, Inc. Virtio console]
        Node 'pci1af4,5' (pci1af4,1002) [Red Hat, Inc. Virtio memory balloon]
        Node 'pci1af4,2' (pci1af4,1001) [Red Hat, Inc. Virtio block device]
        Node 'pci1af4,2' (pci1af4,1001) [Red Hat, Inc. Virtio block device]
    Node 'fw'
        Node 'sb'
            Node 'PRES'
            Node 'GPE0'
            Node 'PHPR'
            Node 'socket'
                Node 'cpu'
                Node 'cpu'
    Node 'used-resources'
Actions #4

Updated by Sachidananda Urs 4 days ago

With the verbose option there is a slight change:

  1. prtconf -pv
    ---snip--
            Node 0x000004
                reg:  00000000.00000000.00000000.00000000.00000000
                compatible: 'pci8086,c00.1458.5000.6' + 'pci8086,c00.1458.5000' + 'pci1458,5000,s' + 'pci1458,5000' + 'pci8086,c00.6' + 'pci8086,c00,p' + 'pci8086,c00' + 'pciclass,060000' + 'pciclass,0600'
                model:  'Host bridge'
                power-consumption:  00000001.00000001
    
    
  1. ./prtconf -pdv
    --- snip ---

        Node 'pci1458,5000' (pciex8086,c00) [Intel Corporation 4th Gen Core Processor DRAM Controller]
            reg:  00000000.00000000.00000000.00000000.00000000
            compatible: 'pci8086,c00.1458.5000.6' + 'pci8086,c00.1458.5000' + 'pci1458,5000,s' + 'pci1458,5000' + 'pci8086,c00.6' + 'pci8086,c00,p' + 'pci8086,c00' + 'pciclass,060000' + 'pciclass,0600'
            model:  'Host bridge'
            power-consumption:  00000001.00000001

Instead of the Node #, di_name is printed. This behavior is only when -pdv is provided.

Actions

Also available in: Atom PDF