patch: Enable dock audio on Thinkpad dock (Thinkpad L460)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

patch: Enable dock audio on Thinkpad dock (Thinkpad L460)

Abel Abraham Camarillo Ojeda-2
The following enables audio via the dock station port in my thinkpad L460.
But, anyone knows if its possible to automatically disable the laptop
speaker
when I plug in the audio port in the dock? it doesn't appear to have a
*_sense,
ideas?

this also enables the annoying beep (echo -e "\a"; in console)

patch inline and attached:

Index: azalia_codec.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
retrieving revision 1.178
diff -u -p -r1.178 azalia_codec.c
--- azalia_codec.c      14 Oct 2019 02:04:35 -0000      1.178
+++ azalia_codec.c      30 Dec 2019 19:06:16 -0000
@@ -159,6 +159,17 @@ azalia_codec_init_vtbl(codec_t *this)
                    this->subid == 0x503c17aa)
                        this->qrks |= AZ_QRK_WID_TPDOCK2;
                break;
+       case 0x10ec0293:
+               this->name = "Realtek ALC293";
+               this->qrks |= AZ_QRK_WID_CDIN_1C | AZ_QRK_WID_BEEP_1D;
+
+               /*
+                * Enable dock audio on Thinkpad docks
+                * 0x17aa : 0x5051 = Thinkpad L460
+                */
+               if (this->subid == 0x505117aa)
+                       this->qrks |= AZ_QRK_WID_TPDOCK2;
+               break;
        case 0x10ec0298:
                this->name = "Realtek ALC298";
                if (this->subid == 0x320019e5 ||

mixerctl diff:

--- tmp/mixerctl_orig Mon Dec 30 12:08:15 2019
+++ tmp/mixerctl_patch Mon Dec 30 12:06:22 2019
@@ -1,35 +1,41 @@
-inputs.dac-0:1=126,126
-inputs.dac-2:3=126,126
+inputs.dac-0:1=174,174
+inputs.dac-2:3=174,174
 inputs.mic2=85,85
 inputs.mic=85,85
 inputs.mix2_source=dac-2:3,mix
 inputs.mix3_source=dac-0:1,mix
 inputs.mix_mic2=120,120
-inputs.mix_source=mic2
+inputs.mix_source=spkr3,mic2
+inputs.mix_spkr3=120,120
+inputs.spkr3=85,85
 outputs.hp_boost=off
 outputs.hp_eapd=on
 outputs.hp_mute=off
 outputs.hp_sense=unplugged
 outputs.hp_source=mix3
 outputs.master.mute=off
-outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp
-outputs.master=126,126
+outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp,spkr2
+outputs.master=190,190
 outputs.mic2_dir=input-vr80
 outputs.mic2_sense=unplugged
+outputs.spkr2_boost=off
+outputs.spkr2_eapd=on
+outputs.spkr2_mute=off
+outputs.spkr2_source=mix2
 outputs.spkr_eapd=on
 outputs.spkr_mute=off
 outputs.spkr_muters=hp
 outputs.spkr_source=mix2
 record.adc-0:1=124,124
 record.adc-0:1_mute=off
 record.adc-0:1_source=mic
 record.adc-2:3=124,124
 record.adc-2:3_mute=off
-record.adc-2:3_source=mic2
+record.adc-2:3_source=spkr3
 record.adc-4:5=124,124
 record.adc-4:5_mute=off
-record.adc-4:5_source=mic2
+record.adc-4:5_source=spkr3
 record.enable=sysctl
 record.volume.mute=off
 record.volume.slaves=adc-0:1,adc-2:3,adc-4:5
 record.volume=124,124

dmesg:

OpenBSD 6.6-current (GENERIC.MP) #9: Mon Dec 30 13:01:52 CST 2019
    [hidden email]:/usr/obj/sys/arch/amd64/compile/GENERIC.MP
real mem = 17028538368 (16239MB)
avail mem = 16491659264 (15727MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd705d000 (63 entries)
bios0: vendor LENOVO version "R08ET64W (1.38 )" date 05/02/2019
bios0: LENOVO 20FVA09400
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI SSDT ECDT HPET APIC MCFG SSDT DBGP DBG2 BOOT
BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 23999999 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2195.54 MHz, 06-4e-03
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2194.90 MHz, 06-4e-03
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2194.89 MHz, 06-4e-03
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2194.89 MHz, 06-4e-03
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (EXP1)
acpiprt5 at acpi0: bus -1 (EXP2)
acpiprt6 at acpi0: bus 3 (EXP3)
acpiprt7 at acpi0: bus -1 (RP05)
acpiprt8 at acpi0: bus -1 (RP09)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI
acpipwrres1 at acpi0: PG00, resource for PEG0
acpipwrres2 at acpi0: PG01, resource for PEG1
acpipwrres3 at acpi0: PG02, resource for PEG2
acpipwrres4 at acpi0: WRST
acpitz0 at acpi0: critical temperature is 127 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
acpicmos0 at acpi0
acpibat0 at acpi0: BAT0 model "LNV-45N1" serial  6952 type LION oem "LGC"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0: version 1.0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout at acpivideo0 not configured
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2301, 2300, 2200, 2000, 1900,
1800, 1600, 1500, 1300, 1200, 1100, 900, 800, 700, 500, 400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x08
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 520" rev 0x07
drm0 at inteldrm0
inteldrm0: msi
xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi, xHCI
1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21
"Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured
ahci0 at pci0 dev 23 function 0 "Intel 100 Series AHCI" rev 0x21: msi, AHCI
1.3.1
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, SanDisk SD8TB8U2, X413>
naa.5001b448b4b79ec4
sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin
ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
pci1 at ppb0 bus 2
rtsx0 at pci1 dev 0 function 0 "Realtek RTS522A Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
ppb1 at pci0 dev 28 function 2 "Intel 100 Series PCIE" rev 0xf1: msi
pci2 at ppb1 bus 3
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 8260" rev 0x3a,
msi
pcib0 at pci0 dev 31 function 0 "Intel 100 Series LPC" rev 0x21
"Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21: msi
azalia0: codecs: Realtek ALC293, Intel/0x2809, using Realtek ALC293
audio0 at azalia0
ichiic0 at pci0 dev 31 function 4 "Intel 100 Series SMBus" rev 0x21: apic 2
int 16
iic0 at ichiic0
em0 at pci0 dev 31 function 6 "Intel I219-V" rev 0x21: msi, address
c8:5b:76:2a:24:c4
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics clickpad, firmware 8.2, 0x1e2b1 0x943300
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
uhub1 at uhub0 port 3 configuration 1 interface 0 "LENOVO Lenovo ThinkPad
Dock" rev 2.10/50.40 addr 2
uhub2 at uhub1 port 4 configuration 1 interface 0 "Lenovo Lenovo ThinkPad
Dock" rev 2.00/0.01 addr 3
ugen0 at uhub0 port 7 "Intel Bluetooth" rev 2.00/0.01 addr 4
uvideo0 at uhub0 port 8 configuration 1 interface 0 "Chicony Electronics
Co.,Ltd. Integrated Camera" rev 2.00/0.09 addr 5
video0 at uvideo0
uhub3 at uhub0 port 15 configuration 1 interface 0 "LENOVO Lenovo ThinkPad
Dock" rev 3.00/50.41 addr 6
sdmmc0: can't enable card
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (ab6e707a12be0c8d.a) swap on sd0b dump on sd0b
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
iwm0: hw rev 0x200, fw ver 34.0.1, address e4:b3:18:a4:88:b9

pcidump -v:

Domain /dev/pci0:
 0:0:0: Intel Core 6G Host
0x0000: Vendor ID: 8086, Product ID: 1904
0x0004: Command: 0006, Status: 2090
0x0008: Class: 06 Bridge, Subclass: 00 Host,
Interface: 00, Revision: 08
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR empty (00000000)
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
0x00e0: Capability 0x09: Vendor Specific
 0:2:0: Intel HD Graphics 520
0x0000: Vendor ID: 8086, Product ID: 1916
0x0004: Command: 0007, Status: 0010
0x0008: Class: 03 Display, Subclass: 00 VGA,
Interface: 00, Revision: 07
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0x00000000f0000000/0x01000000
0x0018: BAR mem prefetchable 64bit addr: 0x00000000e0000000/0x10000000
0x0020: BAR io addr: 0x0000e000/0x0040
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
0x0040: Capability 0x09: Vendor Specific
0x0070: Capability 0x10: PCI Express
0x0100: Enhanced Capability 0x1b: Process Address Space ID
0x0200: Enhanced Capability 0x0f: Address Translation Services
0x0300: Enhanced Capability 0x13: Page Request Interface
0x00ac: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
0x00d0: Capability 0x01: Power Management
State: D0
 0:20:0: Intel 100 Series xHCI
0x0000: Vendor ID: 8086, Product ID: 9d2f
0x0004: Command: 0006, Status: 0290
0x0008: Class: 0c Serial Bus, Subclass: 03 USB,
Interface: 30, Revision: 21
0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0x00000000f1220000/0x00010000
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
0x0070: Capability 0x01: Power Management
State: D0
0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
 0:20:2: Intel 100 Series Thermal
0x0000: Vendor ID: 8086, Product ID: 9d31
0x0004: Command: 0006, Status: 0010
0x0008: Class: 11 DASP, Subclass: 80 Miscellaneous,
Interface: 00, Revision: 21
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0x00000000f124a000/0x00001000
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 03 Line: ff Min Gnt: 00 Max Lat: 00
0x0050: Capability 0x01: Power Management
State: D0
0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: no
 0:22:0: Intel 100 Series MEI
0x0000: Vendor ID: 8086, Product ID: 9d3a
0x0004: Command: 0000, Status: 0010
0x0008: Class: 07 Communications, Subclass: 80 Miscellaneous,
Interface: 00, Revision: 21
0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0x00000000f124b000/0x00001000
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
0x0050: Capability 0x01: Power Management
State: D0
0x008c: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: no
 0:23:0: Intel 100 Series AHCI
0x0000: Vendor ID: 8086, Product ID: 9d03
0x0004: Command: 0007, Status: 02b0
0x0008: Class: 01 Mass Storage, Subclass: 06 SATA,
Interface: 01, Revision: 21
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 32bit addr: 0xf1248000/0x00002000
0x0014: BAR mem 32bit addr: 0xf124e000/0x00000100
0x0018: BAR io addr: 0x0000e080/0x0008
0x001c: BAR io addr: 0x0000e088/0x0004
0x0020: BAR io addr: 0x0000e060/0x0020
0x0024: BAR mem 32bit addr: 0xf124c000/0x00000800
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
0x0070: Capability 0x01: Power Management
State: D0
0x00a8: Capability 0x12: SATA
 0:28:0: Intel 100 Series PCIE
0x0000: Vendor ID: 8086, Product ID: 9d10
0x0004: Command: 0007, Status: 0010
0x0008: Class: 06 Bridge, Subclass: 04 PCI,
Interface: 00, Revision: f1
0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR empty (00000000)
0x0014: BAR empty (00000000)
0x0018: Primary Bus: 0, Secondary Bus: 2, Subordinate Bus: 2,
Secondary Latency Timer: 00
0x001c: I/O Base: f0, I/O Limit: 00, Secondary Status: 2000
0x0020: Memory Base: f110, Memory Limit: f110
0x0024: Prefetch Memory Base: fff1, Prefetch Memory Limit: 0001
0x0028: Prefetch Memory Base Upper 32 Bits: ffffffff
0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
0x0038: Expansion ROM Base Address: 00000000
0x003c: Interrupt Pin: 01, Line: ff, Bridge Control: 0000
0x0040: Capability 0x10: PCI Express
Link Speed: 2.5 / 8.0 GT/s, Link Width: x1 / x1
0x0100: Enhanced Capability 0x01: Advanced Error Reporting
0x0140: Enhanced Capability 0x0d: Access Control Services
0x0220: Enhanced Capability 0x19: Secondary PCIe Capability
0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
0x0090: Capability 0x0d: PCI-PCI
0x00a0: Capability 0x01: Power Management
State: D0
 0:28:2: Intel 100 Series PCIE
0x0000: Vendor ID: 8086, Product ID: 9d12
0x0004: Command: 0007, Status: 0010
0x0008: Class: 06 Bridge, Subclass: 04 PCI,
Interface: 00, Revision: f1
0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR empty (00000000)
0x0014: BAR empty (00000000)
0x0018: Primary Bus: 0, Secondary Bus: 3, Subordinate Bus: 3,
Secondary Latency Timer: 00
0x001c: I/O Base: f0, I/O Limit: 00, Secondary Status: 2000
0x0020: Memory Base: f100, Memory Limit: f100
0x0024: Prefetch Memory Base: fff1, Prefetch Memory Limit: 0001
0x0028: Prefetch Memory Base Upper 32 Bits: ffffffff
0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
0x0038: Expansion ROM Base Address: 00000000
0x003c: Interrupt Pin: 03, Line: ff, Bridge Control: 0000
0x0040: Capability 0x10: PCI Express
Link Speed: 2.5 / 8.0 GT/s, Link Width: x1 / x1
0x0100: Enhanced Capability 0x01: Advanced Error Reporting
0x0140: Enhanced Capability 0x0d: Access Control Services
0x0200: Enhanced Capability 0x1e: L1 PM
0x0220: Enhanced Capability 0x19: Secondary PCIe Capability
0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
0x0090: Capability 0x0d: PCI-PCI
0x00a0: Capability 0x01: Power Management
State: D0
 0:31:0: Intel 100 Series LPC
0x0000: Vendor ID: 8086, Product ID: 9d48
0x0004: Command: 0007, Status: 0200
0x0008: Class: 06 Bridge, Subclass: 01 ISA,
Interface: 00, Revision: 21
0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR empty (00000000)
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
 0:31:2: Intel 100 Series PMC
0x0000: Vendor ID: 8086, Product ID: 9d21
0x0004: Command: 0000, Status: 0000
0x0008: Class: 05 Memory, Subclass: 80 Miscellaneous,
Interface: 00, Revision: 21
0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 32bit addr: 0xf1244000/0x00004000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
 0:31:3: Intel 100 Series HD Audio
0x0000: Vendor ID: 8086, Product ID: 9d70
0x0004: Command: 0006, Status: 0010
0x0008: Class: 04 (unknown), Subclass: 03 (unknown),
Interface: 00, Revision: 21
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0x00000000f1240000/0x00004000
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR mem 64bit addr: 0x00000000f1230000/0x00010000
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
0x0050: Capability 0x01: Power Management
State: D0
0x0060: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
 0:31:4: Intel 100 Series SMBus
0x0000: Vendor ID: 8086, Product ID: 9d23
0x0004: Command: 0001, Status: 0280
0x0008: Class: 0c Serial Bus, Subclass: 05 SMBus,
Interface: 00, Revision: 21
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0x00000000f124d000/0x00000100
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR io addr: 0x0000efa0/0x0020
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
 0:31:6: Intel I219-V
0x0000: Vendor ID: 8086, Product ID: 1570
0x0004: Command: 0006, Status: 0010
0x0008: Class: 02 Network, Subclass: 00 Ethernet,
Interface: 00, Revision: 21
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 32bit addr: 0xf1200000/0x00020000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
0x00c8: Capability 0x01: Power Management
State: D0
0x00d0: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
0x00e0: Capability 0x13: PCI Advanced Features
 2:0:0: Realtek RTS522A Card Reader
0x0000: Vendor ID: 10ec, Product ID: 522a
0x0004: Command: 0006, Status: 0010
0x0008: Class: ff (unknown), Subclass: 00 (unknown),
Interface: 00, Revision: 01
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 32bit addr: 0xf1100000/0x00001000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
0x0040: Capability 0x01: Power Management
State: D0
0x0050: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
0x0070: Capability 0x10: PCI Express
Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
0x0100: Enhanced Capability 0x01: Advanced Error Reporting
0x0140: Enhanced Capability 0x03: Device Serial Number
Serial Number: 00000001004ce000
0x0150: Enhanced Capability 0x18: Latency Tolerance Reporting
0x0158: Enhanced Capability 0x1e: L1 PM
 3:0:0: Intel Dual Band Wireless AC 8260
0x0000: Vendor ID: 8086, Product ID: 24f3
0x0004: Command: 0006, Status: 0010
0x0008: Class: 02 Network, Subclass: 80 Miscellaneous,
Interface: 00, Revision: 3a
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0x00000000f1000000/0x00002000
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 8086 Product ID: 1130
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
0x00c8: Capability 0x01: Power Management
State: D0
0x00d0: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
0x0040: Capability 0x10: PCI Express
Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
0x0100: Enhanced Capability 0x01: Advanced Error Reporting
0x0140: Enhanced Capability 0x03: Device Serial Number
Serial Number: e4b318ffffa488b9
0x014c: Enhanced Capability 0x18: Latency Tolerance Reporting
0x0154: Enhanced Capability 0x1e: L1 PM

azalia_codec-patch.txt (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: patch: Enable dock audio on Thinkpad dock (Thinkpad L460)

Abel Abraham Camarillo Ojeda-2
On Mon, Dec 30, 2019 at 1:24 PM Abel Abraham Camarillo Ojeda <
[hidden email]> wrote:

> The following enables audio via the dock station port in my thinkpad L460.
> But, anyone knows if its possible to automatically disable the laptop
> speaker
> when I plug in the audio port in the dock? it doesn't appear to have a
> *_sense,
> ideas?
>
> this also enables the annoying beep (echo -e "\a"; in console)
>
> patch inline and attached:
>

Hi, comments, oks?

Thanks


> Index: azalia_codec.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
> retrieving revision 1.178
> diff -u -p -r1.178 azalia_codec.c
> --- azalia_codec.c      14 Oct 2019 02:04:35 -0000      1.178
> +++ azalia_codec.c      30 Dec 2019 19:06:16 -0000
> @@ -159,6 +159,17 @@ azalia_codec_init_vtbl(codec_t *this)
>                     this->subid == 0x503c17aa)
>                         this->qrks |= AZ_QRK_WID_TPDOCK2;
>                 break;
> +       case 0x10ec0293:
> +               this->name = "Realtek ALC293";
> +               this->qrks |= AZ_QRK_WID_CDIN_1C | AZ_QRK_WID_BEEP_1D;
> +
> +               /*
> +                * Enable dock audio on Thinkpad docks
> +                * 0x17aa : 0x5051 = Thinkpad L460
> +                */
> +               if (this->subid == 0x505117aa)
> +                       this->qrks |= AZ_QRK_WID_TPDOCK2;
> +               break;
>         case 0x10ec0298:
>                 this->name = "Realtek ALC298";
>                 if (this->subid == 0x320019e5 ||
>
> mixerctl diff:
>
> --- tmp/mixerctl_orig Mon Dec 30 12:08:15 2019
> +++ tmp/mixerctl_patch Mon Dec 30 12:06:22 2019
> @@ -1,35 +1,41 @@
> -inputs.dac-0:1=126,126
> -inputs.dac-2:3=126,126
> +inputs.dac-0:1=174,174
> +inputs.dac-2:3=174,174
>  inputs.mic2=85,85
>  inputs.mic=85,85
>  inputs.mix2_source=dac-2:3,mix
>  inputs.mix3_source=dac-0:1,mix
>  inputs.mix_mic2=120,120
> -inputs.mix_source=mic2
> +inputs.mix_source=spkr3,mic2
> +inputs.mix_spkr3=120,120
> +inputs.spkr3=85,85
>  outputs.hp_boost=off
>  outputs.hp_eapd=on
>  outputs.hp_mute=off
>  outputs.hp_sense=unplugged
>  outputs.hp_source=mix3
>  outputs.master.mute=off
> -outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp
> -outputs.master=126,126
> +outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp,spkr2
> +outputs.master=190,190
>  outputs.mic2_dir=input-vr80
>  outputs.mic2_sense=unplugged
> +outputs.spkr2_boost=off
> +outputs.spkr2_eapd=on
> +outputs.spkr2_mute=off
> +outputs.spkr2_source=mix2
>  outputs.spkr_eapd=on
>  outputs.spkr_mute=off
>  outputs.spkr_muters=hp
>  outputs.spkr_source=mix2
>  record.adc-0:1=124,124
>  record.adc-0:1_mute=off
>  record.adc-0:1_source=mic
>  record.adc-2:3=124,124
>  record.adc-2:3_mute=off
> -record.adc-2:3_source=mic2
> +record.adc-2:3_source=spkr3
>  record.adc-4:5=124,124
>  record.adc-4:5_mute=off
> -record.adc-4:5_source=mic2
> +record.adc-4:5_source=spkr3
>  record.enable=sysctl
>  record.volume.mute=off
>  record.volume.slaves=adc-0:1,adc-2:3,adc-4:5
>  record.volume=124,124
>
> dmesg:
>
> OpenBSD 6.6-current (GENERIC.MP) #9: Mon Dec 30 13:01:52 CST 2019
>     [hidden email]:/usr/obj/sys/arch/amd64/compile/GENERIC.MP
> real mem = 17028538368 (16239MB)
> avail mem = 16491659264 (15727MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd705d000 (63 entries)
> bios0: vendor LENOVO version "R08ET64W (1.38 )" date 05/02/2019
> bios0: LENOVO 20FVA09400
> acpi0 at bios0: ACPI 5.0
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP UEFI SSDT ECDT HPET APIC MCFG SSDT DBGP DBG2 BOOT
> BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI
> acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) XHCI(S3)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpiec0 at acpi0
> acpihpet0 at acpi0: 23999999 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2195.54 MHz, 06-4e-03
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> cpu0: apic clock running at 24MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2194.90 MHz, 06-4e-03
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0: apid 1 (application processor)
> cpu2: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2194.89 MHz, 06-4e-03
> cpu2:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 1, core 0, package 0
> cpu3 at mainbus0: apid 3 (application processor)
> cpu3: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2194.89 MHz, 06-4e-03
> cpu3:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 1, core 1, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
> acpimcfg0 at acpi0
> acpimcfg0: addr 0xf8000000, bus 0-63
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PEG0)
> acpiprt2 at acpi0: bus -1 (PEG1)
> acpiprt3 at acpi0: bus -1 (PEG2)
> acpiprt4 at acpi0: bus 2 (EXP1)
> acpiprt5 at acpi0: bus -1 (EXP2)
> acpiprt6 at acpi0: bus 3 (EXP3)
> acpiprt7 at acpi0: bus -1 (RP05)
> acpiprt8 at acpi0: bus -1 (RP09)
> acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
> C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
> C1(1000@1 mwait.1), PSS
> acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
> C1(1000@1 mwait.1), PSS
> acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
> C1(1000@1 mwait.1), PSS
> acpipwrres0 at acpi0: PUBS, resource for XHCI
> acpipwrres1 at acpi0: PG00, resource for PEG0
> acpipwrres2 at acpi0: PG01, resource for PEG1
> acpipwrres3 at acpi0: PG02, resource for PEG2
> acpipwrres4 at acpi0: WRST
> acpitz0 at acpi0: critical temperature is 127 degC
> acpibtn0 at acpi0: LID_
> acpibtn1 at acpi0: SLPB
> acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
> acpicmos0 at acpi0
> acpibat0 at acpi0: BAT0 model "LNV-45N1" serial  6952 type LION oem "LGC"
> acpiac0 at acpi0: AC unit online
> acpithinkpad0 at acpi0: version 1.0
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> acpivideo0 at acpi0: GFX0
> acpivout at acpivideo0 not configured
> cpu0: using VERW MDS workaround (except on vmm entry)
> cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2301, 2300, 2200, 2000, 1900,
> 1800, 1600, 1500, 1300, 1200, 1100, 900, 800, 700, 500, 400 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x08
> inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 520" rev 0x07
> drm0 at inteldrm0
> inteldrm0: msi
> xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi,
> xHCI 1.0
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
> 3.00/1.00 addr 1
> pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21
> "Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured
> ahci0 at pci0 dev 23 function 0 "Intel 100 Series AHCI" rev 0x21: msi,
> AHCI 1.3.1
> ahci0: port 0: 6.0Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, SanDisk SD8TB8U2, X413>
> naa.5001b448b4b79ec4
> sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin
> ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
> pci1 at ppb0 bus 2
> rtsx0 at pci1 dev 0 function 0 "Realtek RTS522A Card Reader" rev 0x01: msi
> sdmmc0 at rtsx0: 4-bit, dma
> ppb1 at pci0 dev 28 function 2 "Intel 100 Series PCIE" rev 0xf1: msi
> pci2 at ppb1 bus 3
> iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 8260" rev 0x3a,
> msi
> pcib0 at pci0 dev 31 function 0 "Intel 100 Series LPC" rev 0x21
> "Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
> azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21: msi
> azalia0: codecs: Realtek ALC293, Intel/0x2809, using Realtek ALC293
> audio0 at azalia0
> ichiic0 at pci0 dev 31 function 4 "Intel 100 Series SMBus" rev 0x21: apic
> 2 int 16
> iic0 at ichiic0
> em0 at pci0 dev 31 function 6 "Intel I219-V" rev 0x21: msi, address
> c8:5b:76:2a:24:c4
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pms0 at pckbc0 (aux slot)
> wsmouse0 at pms0 mux 0
> wsmouse1 at pms0 mux 0
> pms0: Synaptics clickpad, firmware 8.2, 0x1e2b1 0x943300
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> vmm0 at mainbus0: VMX/EPT
> efifb at mainbus0 not configured
> uhub1 at uhub0 port 3 configuration 1 interface 0 "LENOVO Lenovo ThinkPad
> Dock" rev 2.10/50.40 addr 2
> uhub2 at uhub1 port 4 configuration 1 interface 0 "Lenovo Lenovo ThinkPad
> Dock" rev 2.00/0.01 addr 3
> ugen0 at uhub0 port 7 "Intel Bluetooth" rev 2.00/0.01 addr 4
> uvideo0 at uhub0 port 8 configuration 1 interface 0 "Chicony Electronics
> Co.,Ltd. Integrated Camera" rev 2.00/0.09 addr 5
> video0 at uvideo0
> uhub3 at uhub0 port 15 configuration 1 interface 0 "LENOVO Lenovo ThinkPad
> Dock" rev 3.00/50.41 addr 6
> sdmmc0: can't enable card
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on sd0a (ab6e707a12be0c8d.a) swap on sd0b dump on sd0b
> inteldrm0: 1366x768, 32bpp
> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> iwm0: hw rev 0x200, fw ver 34.0.1, address e4:b3:18:a4:88:b9
>
> pcidump -v:
>
> Domain /dev/pci0:
>  0:0:0: Intel Core 6G Host
> 0x0000: Vendor ID: 8086, Product ID: 1904
> 0x0004: Command: 0006, Status: 2090
> 0x0008: Class: 06 Bridge, Subclass: 00 Host,
> Interface: 00, Revision: 08
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR empty (00000000)
> 0x0014: BAR empty (00000000)
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
> 0x00e0: Capability 0x09: Vendor Specific
>  0:2:0: Intel HD Graphics 520
> 0x0000: Vendor ID: 8086, Product ID: 1916
> 0x0004: Command: 0007, Status: 0010
> 0x0008: Class: 03 Display, Subclass: 00 VGA,
> Interface: 00, Revision: 07
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 64bit addr: 0x00000000f0000000/0x01000000
> 0x0018: BAR mem prefetchable 64bit addr: 0x00000000e0000000/0x10000000
> 0x0020: BAR io addr: 0x0000e000/0x0040
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
> 0x0040: Capability 0x09: Vendor Specific
> 0x0070: Capability 0x10: PCI Express
> 0x0100: Enhanced Capability 0x1b: Process Address Space ID
> 0x0200: Enhanced Capability 0x0f: Address Translation Services
> 0x0300: Enhanced Capability 0x13: Page Request Interface
> 0x00ac: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: yes
> 0x00d0: Capability 0x01: Power Management
> State: D0
>  0:20:0: Intel 100 Series xHCI
> 0x0000: Vendor ID: 8086, Product ID: 9d2f
> 0x0004: Command: 0006, Status: 0290
> 0x0008: Class: 0c Serial Bus, Subclass: 03 USB,
> Interface: 30, Revision: 21
> 0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 64bit addr: 0x00000000f1220000/0x00010000
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
> 0x0070: Capability 0x01: Power Management
> State: D0
> 0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: yes
>  0:20:2: Intel 100 Series Thermal
> 0x0000: Vendor ID: 8086, Product ID: 9d31
> 0x0004: Command: 0006, Status: 0010
> 0x0008: Class: 11 DASP, Subclass: 80 Miscellaneous,
> Interface: 00, Revision: 21
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 64bit addr: 0x00000000f124a000/0x00001000
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 03 Line: ff Min Gnt: 00 Max Lat: 00
> 0x0050: Capability 0x01: Power Management
> State: D0
> 0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: no
>  0:22:0: Intel 100 Series MEI
> 0x0000: Vendor ID: 8086, Product ID: 9d3a
> 0x0004: Command: 0000, Status: 0010
> 0x0008: Class: 07 Communications, Subclass: 80 Miscellaneous,
> Interface: 00, Revision: 21
> 0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 64bit addr: 0x00000000f124b000/0x00001000
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
> 0x0050: Capability 0x01: Power Management
> State: D0
> 0x008c: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: no
>  0:23:0: Intel 100 Series AHCI
> 0x0000: Vendor ID: 8086, Product ID: 9d03
> 0x0004: Command: 0007, Status: 02b0
> 0x0008: Class: 01 Mass Storage, Subclass: 06 SATA,
> Interface: 01, Revision: 21
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 32bit addr: 0xf1248000/0x00002000
> 0x0014: BAR mem 32bit addr: 0xf124e000/0x00000100
> 0x0018: BAR io addr: 0x0000e080/0x0008
> 0x001c: BAR io addr: 0x0000e088/0x0004
> 0x0020: BAR io addr: 0x0000e060/0x0020
> 0x0024: BAR mem 32bit addr: 0xf124c000/0x00000800
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
> 0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: yes
> 0x0070: Capability 0x01: Power Management
> State: D0
> 0x00a8: Capability 0x12: SATA
>  0:28:0: Intel 100 Series PCIE
> 0x0000: Vendor ID: 8086, Product ID: 9d10
> 0x0004: Command: 0007, Status: 0010
> 0x0008: Class: 06 Bridge, Subclass: 04 PCI,
> Interface: 00, Revision: f1
> 0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR empty (00000000)
> 0x0014: BAR empty (00000000)
> 0x0018: Primary Bus: 0, Secondary Bus: 2, Subordinate Bus: 2,
> Secondary Latency Timer: 00
> 0x001c: I/O Base: f0, I/O Limit: 00, Secondary Status: 2000
> 0x0020: Memory Base: f110, Memory Limit: f110
> 0x0024: Prefetch Memory Base: fff1, Prefetch Memory Limit: 0001
> 0x0028: Prefetch Memory Base Upper 32 Bits: ffffffff
> 0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
> 0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
> 0x0038: Expansion ROM Base Address: 00000000
> 0x003c: Interrupt Pin: 01, Line: ff, Bridge Control: 0000
> 0x0040: Capability 0x10: PCI Express
> Link Speed: 2.5 / 8.0 GT/s, Link Width: x1 / x1
> 0x0100: Enhanced Capability 0x01: Advanced Error Reporting
> 0x0140: Enhanced Capability 0x0d: Access Control Services
> 0x0220: Enhanced Capability 0x19: Secondary PCIe Capability
> 0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: yes
> 0x0090: Capability 0x0d: PCI-PCI
> 0x00a0: Capability 0x01: Power Management
> State: D0
>  0:28:2: Intel 100 Series PCIE
> 0x0000: Vendor ID: 8086, Product ID: 9d12
> 0x0004: Command: 0007, Status: 0010
> 0x0008: Class: 06 Bridge, Subclass: 04 PCI,
> Interface: 00, Revision: f1
> 0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR empty (00000000)
> 0x0014: BAR empty (00000000)
> 0x0018: Primary Bus: 0, Secondary Bus: 3, Subordinate Bus: 3,
> Secondary Latency Timer: 00
> 0x001c: I/O Base: f0, I/O Limit: 00, Secondary Status: 2000
> 0x0020: Memory Base: f100, Memory Limit: f100
> 0x0024: Prefetch Memory Base: fff1, Prefetch Memory Limit: 0001
> 0x0028: Prefetch Memory Base Upper 32 Bits: ffffffff
> 0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
> 0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
> 0x0038: Expansion ROM Base Address: 00000000
> 0x003c: Interrupt Pin: 03, Line: ff, Bridge Control: 0000
> 0x0040: Capability 0x10: PCI Express
> Link Speed: 2.5 / 8.0 GT/s, Link Width: x1 / x1
> 0x0100: Enhanced Capability 0x01: Advanced Error Reporting
> 0x0140: Enhanced Capability 0x0d: Access Control Services
> 0x0200: Enhanced Capability 0x1e: L1 PM
> 0x0220: Enhanced Capability 0x19: Secondary PCIe Capability
> 0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: yes
> 0x0090: Capability 0x0d: PCI-PCI
> 0x00a0: Capability 0x01: Power Management
> State: D0
>  0:31:0: Intel 100 Series LPC
> 0x0000: Vendor ID: 8086, Product ID: 9d48
> 0x0004: Command: 0007, Status: 0200
> 0x0008: Class: 06 Bridge, Subclass: 01 ISA,
> Interface: 00, Revision: 21
> 0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR empty (00000000)
> 0x0014: BAR empty (00000000)
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
>  0:31:2: Intel 100 Series PMC
> 0x0000: Vendor ID: 8086, Product ID: 9d21
> 0x0004: Command: 0000, Status: 0000
> 0x0008: Class: 05 Memory, Subclass: 80 Miscellaneous,
> Interface: 00, Revision: 21
> 0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 32bit addr: 0xf1244000/0x00004000
> 0x0014: BAR empty (00000000)
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
>  0:31:3: Intel 100 Series HD Audio
> 0x0000: Vendor ID: 8086, Product ID: 9d70
> 0x0004: Command: 0006, Status: 0010
> 0x0008: Class: 04 (unknown), Subclass: 03 (unknown),
> Interface: 00, Revision: 21
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 64bit addr: 0x00000000f1240000/0x00004000
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR mem 64bit addr: 0x00000000f1230000/0x00010000
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
> 0x0050: Capability 0x01: Power Management
> State: D0
> 0x0060: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: yes
>  0:31:4: Intel 100 Series SMBus
> 0x0000: Vendor ID: 8086, Product ID: 9d23
> 0x0004: Command: 0001, Status: 0280
> 0x0008: Class: 0c Serial Bus, Subclass: 05 SMBus,
> Interface: 00, Revision: 21
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 64bit addr: 0x00000000f124d000/0x00000100
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR io addr: 0x0000efa0/0x0020
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
>  0:31:6: Intel I219-V
> 0x0000: Vendor ID: 8086, Product ID: 1570
> 0x0004: Command: 0006, Status: 0010
> 0x0008: Class: 02 Network, Subclass: 00 Ethernet,
> Interface: 00, Revision: 21
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 32bit addr: 0xf1200000/0x00020000
> 0x0014: BAR empty (00000000)
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
> 0x00c8: Capability 0x01: Power Management
> State: D0
> 0x00d0: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: yes
> 0x00e0: Capability 0x13: PCI Advanced Features
>  2:0:0: Realtek RTS522A Card Reader
> 0x0000: Vendor ID: 10ec, Product ID: 522a
> 0x0004: Command: 0006, Status: 0010
> 0x0008: Class: ff (unknown), Subclass: 00 (unknown),
> Interface: 00, Revision: 01
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 32bit addr: 0xf1100000/0x00001000
> 0x0014: BAR empty (00000000)
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
> 0x0040: Capability 0x01: Power Management
> State: D0
> 0x0050: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: yes
> 0x0070: Capability 0x10: PCI Express
> Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
> 0x0100: Enhanced Capability 0x01: Advanced Error Reporting
> 0x0140: Enhanced Capability 0x03: Device Serial Number
> Serial Number: 00000001004ce000
> 0x0150: Enhanced Capability 0x18: Latency Tolerance Reporting
> 0x0158: Enhanced Capability 0x1e: L1 PM
>  3:0:0: Intel Dual Band Wireless AC 8260
> 0x0000: Vendor ID: 8086, Product ID: 24f3
> 0x0004: Command: 0006, Status: 0010
> 0x0008: Class: 02 Network, Subclass: 80 Miscellaneous,
> Interface: 00, Revision: 3a
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR mem 64bit addr: 0x00000000f1000000/0x00002000
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 8086 Product ID: 1130
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
> 0x00c8: Capability 0x01: Power Management
> State: D0
> 0x00d0: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: yes
> 0x0040: Capability 0x10: PCI Express
> Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
> 0x0100: Enhanced Capability 0x01: Advanced Error Reporting
> 0x0140: Enhanced Capability 0x03: Device Serial Number
> Serial Number: e4b318ffffa488b9
> 0x014c: Enhanced Capability 0x18: Latency Tolerance Reporting
> 0x0154: Enhanced Capability 0x1e: L1 PM
>
>
Reply | Threaded
Open this post in threaded view
|

Re: patch: Enable dock audio on Thinkpad dock (Thinkpad L460)

Abel Abraham Camarillo Ojeda-2
On Wednesday, January 8, 2020, Abel Abraham Camarillo Ojeda <
[hidden email]> wrote:

>
>
> On Mon, Dec 30, 2019 at 1:24 PM Abel Abraham Camarillo Ojeda <
> [hidden email]> wrote:
>
>> The following enables audio via the dock station port in my thinkpad L460.
>> But, anyone knows if its possible to automatically disable the laptop
>> speaker
>> when I plug in the audio port in the dock? it doesn't appear to have a
>> *_sense,
>> ideas?
>>
>> this also enables the annoying beep (echo -e "\a"; in console)
>>
>> patch inline and attached:
>>
>
> Hi, comments, oks?
>

Anyone?

regards


>
> Thanks
>
>
>> Index: azalia_codec.c
>> ===================================================================
>> RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
>> retrieving revision 1.178
>> diff -u -p -r1.178 azalia_codec.c
>> --- azalia_codec.c      14 Oct 2019 02:04:35 -0000      1.178
>> +++ azalia_codec.c      30 Dec 2019 19:06:16 -0000
>> @@ -159,6 +159,17 @@ azalia_codec_init_vtbl(codec_t *this)
>>                     this->subid == 0x503c17aa)
>>                         this->qrks |= AZ_QRK_WID_TPDOCK2;
>>                 break;
>> +       case 0x10ec0293:
>> +               this->name = "Realtek ALC293";
>> +               this->qrks |= AZ_QRK_WID_CDIN_1C | AZ_QRK_WID_BEEP_1D;
>> +
>> +               /*
>> +                * Enable dock audio on Thinkpad docks
>> +                * 0x17aa : 0x5051 = Thinkpad L460
>> +                */
>> +               if (this->subid == 0x505117aa)
>> +                       this->qrks |= AZ_QRK_WID_TPDOCK2;
>> +               break;
>>         case 0x10ec0298:
>>                 this->name = "Realtek ALC298";
>>                 if (this->subid == 0x320019e5 ||
>>
>> mixerctl diff:
>>
>> --- tmp/mixerctl_orig Mon Dec 30 12:08:15 2019
>> +++ tmp/mixerctl_patch Mon Dec 30 12:06:22 2019
>> @@ -1,35 +1,41 @@
>> -inputs.dac-0:1=126,126
>> -inputs.dac-2:3=126,126
>> +inputs.dac-0:1=174,174
>> +inputs.dac-2:3=174,174
>>  inputs.mic2=85,85
>>  inputs.mic=85,85
>>  inputs.mix2_source=dac-2:3,mix
>>  inputs.mix3_source=dac-0:1,mix
>>  inputs.mix_mic2=120,120
>> -inputs.mix_source=mic2
>> +inputs.mix_source=spkr3,mic2
>> +inputs.mix_spkr3=120,120
>> +inputs.spkr3=85,85
>>  outputs.hp_boost=off
>>  outputs.hp_eapd=on
>>  outputs.hp_mute=off
>>  outputs.hp_sense=unplugged
>>  outputs.hp_source=mix3
>>  outputs.master.mute=off
>> -outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp
>> -outputs.master=126,126
>> +outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp,spkr2
>> +outputs.master=190,190
>>  outputs.mic2_dir=input-vr80
>>  outputs.mic2_sense=unplugged
>> +outputs.spkr2_boost=off
>> +outputs.spkr2_eapd=on
>> +outputs.spkr2_mute=off
>> +outputs.spkr2_source=mix2
>>  outputs.spkr_eapd=on
>>  outputs.spkr_mute=off
>>  outputs.spkr_muters=hp
>>  outputs.spkr_source=mix2
>>  record.adc-0:1=124,124
>>  record.adc-0:1_mute=off
>>  record.adc-0:1_source=mic
>>  record.adc-2:3=124,124
>>  record.adc-2:3_mute=off
>> -record.adc-2:3_source=mic2
>> +record.adc-2:3_source=spkr3
>>  record.adc-4:5=124,124
>>  record.adc-4:5_mute=off
>> -record.adc-4:5_source=mic2
>> +record.adc-4:5_source=spkr3
>>  record.enable=sysctl
>>  record.volume.mute=off
>>  record.volume.slaves=adc-0:1,adc-2:3,adc-4:5
>>  record.volume=124,124
>>
>> dmesg:
>>
>> OpenBSD 6.6-current (GENERIC.MP) #9: Mon Dec 30 13:01:52 CST 2019
>>     [hidden email]:/usr/obj/sys/arch/amd64/compile/GENERIC.MP
>> real mem = 17028538368 (16239MB)
>> avail mem = 16491659264 (15727MB)
>> mpath0 at root
>> scsibus0 at mpath0: 256 targets
>> mainbus0 at root
>> bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd705d000 (63 entries)
>> bios0: vendor LENOVO version "R08ET64W (1.38 )" date 05/02/2019
>> bios0: LENOVO 20FVA09400
>> acpi0 at bios0: ACPI 5.0
>> acpi0: sleep states S0 S3 S4 S5
>> acpi0: tables DSDT FACP UEFI SSDT ECDT HPET APIC MCFG SSDT DBGP DBG2 BOOT
>> BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI
>> acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) XHCI(S3)
>> acpitimer0 at acpi0: 3579545 Hz, 24 bits
>> acpiec0 at acpi0
>> acpihpet0 at acpi0: 23999999 Hz
>> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
>> cpu0 at mainbus0: apid 0 (boot processor)
>> cpu0: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2195.54 MHz, 06-4e-03
>> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
>> CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,
>> PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,
>> FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,
>> DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,
>> LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,
>> BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,
>> SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,
>> SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
>> cpu0: 256KB 64b/line 8-way L2 cache
>> cpu0: smt 0, core 0, package 0
>> mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
>> cpu0: apic clock running at 24MHz
>> cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
>> cpu1 at mainbus0: apid 2 (application processor)
>> cpu1: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2194.90 MHz, 06-4e-03
>> cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
>> CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,
>> PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,
>> FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,
>> DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,
>> LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,
>> BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,
>> SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,
>> SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
>> cpu1: 256KB 64b/line 8-way L2 cache
>> cpu1: smt 0, core 1, package 0
>> cpu2 at mainbus0: apid 1 (application processor)
>> cpu2: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2194.89 MHz, 06-4e-03
>> cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
>> CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,
>> PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,
>> FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,
>> DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,
>> LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,
>> BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,
>> SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,
>> SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
>> cpu2: 256KB 64b/line 8-way L2 cache
>> cpu2: smt 1, core 0, package 0
>> cpu3 at mainbus0: apid 3 (application processor)
>> cpu3: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz, 2194.89 MHz, 06-4e-03
>> cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
>> CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,
>> PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,
>> FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,
>> DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,
>> LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,
>> BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,
>> SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,
>> SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
>> cpu3: 256KB 64b/line 8-way L2 cache
>> cpu3: smt 1, core 1, package 0
>> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
>> acpimcfg0 at acpi0
>> acpimcfg0: addr 0xf8000000, bus 0-63
>> acpiprt0 at acpi0: bus 0 (PCI0)
>> acpiprt1 at acpi0: bus -1 (PEG0)
>> acpiprt2 at acpi0: bus -1 (PEG1)
>> acpiprt3 at acpi0: bus -1 (PEG2)
>> acpiprt4 at acpi0: bus 2 (EXP1)
>> acpiprt5 at acpi0: bus -1 (EXP2)
>> acpiprt6 at acpi0: bus 3 (EXP3)
>> acpiprt7 at acpi0: bus -1 (RP05)
>> acpiprt8 at acpi0: bus -1 (RP09)
>> acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
>> C1(1000@1 mwait.1), PSS
>> acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
>> C1(1000@1 mwait.1), PSS
>> acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
>> C1(1000@1 mwait.1), PSS
>> acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
>> C1(1000@1 mwait.1), PSS
>> acpipwrres0 at acpi0: PUBS, resource for XHCI
>> acpipwrres1 at acpi0: PG00, resource for PEG0
>> acpipwrres2 at acpi0: PG01, resource for PEG1
>> acpipwrres3 at acpi0: PG02, resource for PEG2
>> acpipwrres4 at acpi0: WRST
>> acpitz0 at acpi0: critical temperature is 127 degC
>> acpibtn0 at acpi0: LID_
>> acpibtn1 at acpi0: SLPB
>> acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
>> acpicmos0 at acpi0
>> acpibat0 at acpi0: BAT0 model "LNV-45N1" serial  6952 type LION oem "LGC"
>> acpiac0 at acpi0: AC unit online
>> acpithinkpad0 at acpi0: version 1.0
>> "PNP0C14" at acpi0 not configured
>> "PNP0C14" at acpi0 not configured
>> "PNP0C14" at acpi0 not configured
>> acpivideo0 at acpi0: GFX0
>> acpivout at acpivideo0 not configured
>> cpu0: using VERW MDS workaround (except on vmm entry)
>> cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2301, 2300, 2200, 2000, 1900,
>> 1800, 1600, 1500, 1300, 1200, 1100, 900, 800, 700, 500, 400 MHz
>> pci0 at mainbus0 bus 0
>> pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x08
>> inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 520" rev 0x07
>> drm0 at inteldrm0
>> inteldrm0: msi
>> xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi,
>> xHCI 1.0
>> usb0 at xhci0: USB revision 3.0
>> uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
>> 3.00/1.00 addr 1
>> pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21
>> "Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured
>> ahci0 at pci0 dev 23 function 0 "Intel 100 Series AHCI" rev 0x21: msi,
>> AHCI 1.3.1
>> ahci0: port 0: 6.0Gb/s
>> scsibus1 at ahci0: 32 targets
>> sd0 at scsibus1 targ 0 lun 0: <ATA, SanDisk SD8TB8U2, X413>
>> naa.5001b448b4b79ec4
>> sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin
>> ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
>> pci1 at ppb0 bus 2
>> rtsx0 at pci1 dev 0 function 0 "Realtek RTS522A Card Reader" rev 0x01: msi
>> sdmmc0 at rtsx0: 4-bit, dma
>> ppb1 at pci0 dev 28 function 2 "Intel 100 Series PCIE" rev 0xf1: msi
>> pci2 at ppb1 bus 3
>> iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 8260" rev
>> 0x3a, msi
>> pcib0 at pci0 dev 31 function 0 "Intel 100 Series LPC" rev 0x21
>> "Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
>> azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21:
>> msi
>> azalia0: codecs: Realtek ALC293, Intel/0x2809, using Realtek ALC293
>> audio0 at azalia0
>> ichiic0 at pci0 dev 31 function 4 "Intel 100 Series SMBus" rev 0x21: apic
>> 2 int 16
>> iic0 at ichiic0
>> em0 at pci0 dev 31 function 6 "Intel I219-V" rev 0x21: msi, address
>> c8:5b:76:2a:24:c4
>> isa0 at pcib0
>> isadma0 at isa0
>> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
>> pckbd0 at pckbc0 (kbd slot)
>> wskbd0 at pckbd0: console keyboard
>> pms0 at pckbc0 (aux slot)
>> wsmouse0 at pms0 mux 0
>> wsmouse1 at pms0 mux 0
>> pms0: Synaptics clickpad, firmware 8.2, 0x1e2b1 0x943300
>> pcppi0 at isa0 port 0x61
>> spkr0 at pcppi0
>> vmm0 at mainbus0: VMX/EPT
>> efifb at mainbus0 not configured
>> uhub1 at uhub0 port 3 configuration 1 interface 0 "LENOVO Lenovo ThinkPad
>> Dock" rev 2.10/50.40 addr 2
>> uhub2 at uhub1 port 4 configuration 1 interface 0 "Lenovo Lenovo ThinkPad
>> Dock" rev 2.00/0.01 addr 3
>> ugen0 at uhub0 port 7 "Intel Bluetooth" rev 2.00/0.01 addr 4
>> uvideo0 at uhub0 port 8 configuration 1 interface 0 "Chicony Electronics
>> Co.,Ltd. Integrated Camera" rev 2.00/0.09 addr 5
>> video0 at uvideo0
>> uhub3 at uhub0 port 15 configuration 1 interface 0 "LENOVO Lenovo
>> ThinkPad Dock" rev 3.00/50.41 addr 6
>> sdmmc0: can't enable card
>> vscsi0 at root
>> scsibus2 at vscsi0: 256 targets
>> softraid0 at root
>> scsibus3 at softraid0: 256 targets
>> root on sd0a (ab6e707a12be0c8d.a) swap on sd0b dump on sd0b
>> inteldrm0: 1366x768, 32bpp
>> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using
>> wskbd0
>> wsdisplay0: screen 1-5 added (std, vt100 emulation)
>> iwm0: hw rev 0x200, fw ver 34.0.1, address e4:b3:18:a4:88:b9
>>
>> pcidump -v:
>>
>> Domain /dev/pci0:
>>  0:0:0: Intel Core 6G Host
>> 0x0000: Vendor ID: 8086, Product ID: 1904
>> 0x0004: Command: 0006, Status: 2090
>> 0x0008: Class: 06 Bridge, Subclass: 00 Host,
>> Interface: 00, Revision: 08
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR empty (00000000)
>> 0x0014: BAR empty (00000000)
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
>> 0x00e0: Capability 0x09: Vendor Specific
>>  0:2:0: Intel HD Graphics 520
>> 0x0000: Vendor ID: 8086, Product ID: 1916
>> 0x0004: Command: 0007, Status: 0010
>> 0x0008: Class: 03 Display, Subclass: 00 VGA,
>> Interface: 00, Revision: 07
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 64bit addr: 0x00000000f0000000/0x01000000
>> 0x0018: BAR mem prefetchable 64bit addr: 0x00000000e0000000/0x10000000
>> 0x0020: BAR io addr: 0x0000e000/0x0040
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
>> 0x0040: Capability 0x09: Vendor Specific
>> 0x0070: Capability 0x10: PCI Express
>> 0x0100: Enhanced Capability 0x1b: Process Address Space ID
>> 0x0200: Enhanced Capability 0x0f: Address Translation Services
>> 0x0300: Enhanced Capability 0x13: Page Request Interface
>> 0x00ac: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: yes
>> 0x00d0: Capability 0x01: Power Management
>> State: D0
>>  0:20:0: Intel 100 Series xHCI
>> 0x0000: Vendor ID: 8086, Product ID: 9d2f
>> 0x0004: Command: 0006, Status: 0290
>> 0x0008: Class: 0c Serial Bus, Subclass: 03 USB,
>> Interface: 30, Revision: 21
>> 0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 64bit addr: 0x00000000f1220000/0x00010000
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
>> 0x0070: Capability 0x01: Power Management
>> State: D0
>> 0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: yes
>>  0:20:2: Intel 100 Series Thermal
>> 0x0000: Vendor ID: 8086, Product ID: 9d31
>> 0x0004: Command: 0006, Status: 0010
>> 0x0008: Class: 11 DASP, Subclass: 80 Miscellaneous,
>> Interface: 00, Revision: 21
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 64bit addr: 0x00000000f124a000/0x00001000
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 03 Line: ff Min Gnt: 00 Max Lat: 00
>> 0x0050: Capability 0x01: Power Management
>> State: D0
>> 0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: no
>>  0:22:0: Intel 100 Series MEI
>> 0x0000: Vendor ID: 8086, Product ID: 9d3a
>> 0x0004: Command: 0000, Status: 0010
>> 0x0008: Class: 07 Communications, Subclass: 80 Miscellaneous,
>> Interface: 00, Revision: 21
>> 0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 64bit addr: 0x00000000f124b000/0x00001000
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
>> 0x0050: Capability 0x01: Power Management
>> State: D0
>> 0x008c: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: no
>>  0:23:0: Intel 100 Series AHCI
>> 0x0000: Vendor ID: 8086, Product ID: 9d03
>> 0x0004: Command: 0007, Status: 02b0
>> 0x0008: Class: 01 Mass Storage, Subclass: 06 SATA,
>> Interface: 01, Revision: 21
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 32bit addr: 0xf1248000/0x00002000
>> 0x0014: BAR mem 32bit addr: 0xf124e000/0x00000100
>> 0x0018: BAR io addr: 0x0000e080/0x0008
>> 0x001c: BAR io addr: 0x0000e088/0x0004
>> 0x0020: BAR io addr: 0x0000e060/0x0020
>> 0x0024: BAR mem 32bit addr: 0xf124c000/0x00000800
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
>> 0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: yes
>> 0x0070: Capability 0x01: Power Management
>> State: D0
>> 0x00a8: Capability 0x12: SATA
>>  0:28:0: Intel 100 Series PCIE
>> 0x0000: Vendor ID: 8086, Product ID: 9d10
>> 0x0004: Command: 0007, Status: 0010
>> 0x0008: Class: 06 Bridge, Subclass: 04 PCI,
>> Interface: 00, Revision: f1
>> 0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR empty (00000000)
>> 0x0014: BAR empty (00000000)
>> 0x0018: Primary Bus: 0, Secondary Bus: 2, Subordinate Bus: 2,
>> Secondary Latency Timer: 00
>> 0x001c: I/O Base: f0, I/O Limit: 00, Secondary Status: 2000
>> 0x0020: Memory Base: f110, Memory Limit: f110
>> 0x0024: Prefetch Memory Base: fff1, Prefetch Memory Limit: 0001
>> 0x0028: Prefetch Memory Base Upper 32 Bits: ffffffff
>> 0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
>> 0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
>> 0x0038: Expansion ROM Base Address: 00000000
>> 0x003c: Interrupt Pin: 01, Line: ff, Bridge Control: 0000
>> 0x0040: Capability 0x10: PCI Express
>> Link Speed: 2.5 / 8.0 GT/s, Link Width: x1 / x1
>> 0x0100: Enhanced Capability 0x01: Advanced Error Reporting
>> 0x0140: Enhanced Capability 0x0d: Access Control Services
>> 0x0220: Enhanced Capability 0x19: Secondary PCIe Capability
>> 0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: yes
>> 0x0090: Capability 0x0d: PCI-PCI
>> 0x00a0: Capability 0x01: Power Management
>> State: D0
>>  0:28:2: Intel 100 Series PCIE
>> 0x0000: Vendor ID: 8086, Product ID: 9d12
>> 0x0004: Command: 0007, Status: 0010
>> 0x0008: Class: 06 Bridge, Subclass: 04 PCI,
>> Interface: 00, Revision: f1
>> 0x000c: BIST: 00, Header Type: 81, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR empty (00000000)
>> 0x0014: BAR empty (00000000)
>> 0x0018: Primary Bus: 0, Secondary Bus: 3, Subordinate Bus: 3,
>> Secondary Latency Timer: 00
>> 0x001c: I/O Base: f0, I/O Limit: 00, Secondary Status: 2000
>> 0x0020: Memory Base: f100, Memory Limit: f100
>> 0x0024: Prefetch Memory Base: fff1, Prefetch Memory Limit: 0001
>> 0x0028: Prefetch Memory Base Upper 32 Bits: ffffffff
>> 0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000
>> 0x0030: I/O Base Upper 16 Bits: 0000, I/O Limit Upper 16 Bits: 0000
>> 0x0038: Expansion ROM Base Address: 00000000
>> 0x003c: Interrupt Pin: 03, Line: ff, Bridge Control: 0000
>> 0x0040: Capability 0x10: PCI Express
>> Link Speed: 2.5 / 8.0 GT/s, Link Width: x1 / x1
>> 0x0100: Enhanced Capability 0x01: Advanced Error Reporting
>> 0x0140: Enhanced Capability 0x0d: Access Control Services
>> 0x0200: Enhanced Capability 0x1e: L1 PM
>> 0x0220: Enhanced Capability 0x19: Secondary PCIe Capability
>> 0x0080: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: yes
>> 0x0090: Capability 0x0d: PCI-PCI
>> 0x00a0: Capability 0x01: Power Management
>> State: D0
>>  0:31:0: Intel 100 Series LPC
>> 0x0000: Vendor ID: 8086, Product ID: 9d48
>> 0x0004: Command: 0007, Status: 0200
>> 0x0008: Class: 06 Bridge, Subclass: 01 ISA,
>> Interface: 00, Revision: 21
>> 0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR empty (00000000)
>> 0x0014: BAR empty (00000000)
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
>>  0:31:2: Intel 100 Series PMC
>> 0x0000: Vendor ID: 8086, Product ID: 9d21
>> 0x0004: Command: 0000, Status: 0000
>> 0x0008: Class: 05 Memory, Subclass: 80 Miscellaneous,
>> Interface: 00, Revision: 21
>> 0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 32bit addr: 0xf1244000/0x00004000
>> 0x0014: BAR empty (00000000)
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
>>  0:31:3: Intel 100 Series HD Audio
>> 0x0000: Vendor ID: 8086, Product ID: 9d70
>> 0x0004: Command: 0006, Status: 0010
>> 0x0008: Class: 04 (unknown), Subclass: 03 (unknown),
>> Interface: 00, Revision: 21
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 64bit addr: 0x00000000f1240000/0x00004000
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR mem 64bit addr: 0x00000000f1230000/0x00010000
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
>> 0x0050: Capability 0x01: Power Management
>> State: D0
>> 0x0060: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: yes
>>  0:31:4: Intel 100 Series SMBus
>> 0x0000: Vendor ID: 8086, Product ID: 9d23
>> 0x0004: Command: 0001, Status: 0280
>> 0x0008: Class: 0c Serial Bus, Subclass: 05 SMBus,
>> Interface: 00, Revision: 21
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 64bit addr: 0x00000000f124d000/0x00000100
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR io addr: 0x0000efa0/0x0020
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
>>  0:31:6: Intel I219-V
>> 0x0000: Vendor ID: 8086, Product ID: 1570
>> 0x0004: Command: 0006, Status: 0010
>> 0x0008: Class: 02 Network, Subclass: 00 Ethernet,
>> Interface: 00, Revision: 21
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 32bit addr: 0xf1200000/0x00020000
>> 0x0014: BAR empty (00000000)
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
>> 0x00c8: Capability 0x01: Power Management
>> State: D0
>> 0x00d0: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: yes
>> 0x00e0: Capability 0x13: PCI Advanced Features
>>  2:0:0: Realtek RTS522A Card Reader
>> 0x0000: Vendor ID: 10ec, Product ID: 522a
>> 0x0004: Command: 0006, Status: 0010
>> 0x0008: Class: ff (unknown), Subclass: 00 (unknown),
>> Interface: 00, Revision: 01
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 32bit addr: 0xf1100000/0x00001000
>> 0x0014: BAR empty (00000000)
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 17aa Product ID: 5051
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
>> 0x0040: Capability 0x01: Power Management
>> State: D0
>> 0x0050: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: yes
>> 0x0070: Capability 0x10: PCI Express
>> Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
>> 0x0100: Enhanced Capability 0x01: Advanced Error Reporting
>> 0x0140: Enhanced Capability 0x03: Device Serial Number
>> Serial Number: 00000001004ce000
>> 0x0150: Enhanced Capability 0x18: Latency Tolerance Reporting
>> 0x0158: Enhanced Capability 0x1e: L1 PM
>>  3:0:0: Intel Dual Band Wireless AC 8260
>> 0x0000: Vendor ID: 8086, Product ID: 24f3
>> 0x0004: Command: 0006, Status: 0010
>> 0x0008: Class: 02 Network, Subclass: 80 Miscellaneous,
>> Interface: 00, Revision: 3a
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR mem 64bit addr: 0x00000000f1000000/0x00002000
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 8086 Product ID: 1130
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
>> 0x00c8: Capability 0x01: Power Management
>> State: D0
>> 0x00d0: Capability 0x05: Message Signalled Interrupts (MSI)
>> Enabled: yes
>> 0x0040: Capability 0x10: PCI Express
>> Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
>> 0x0100: Enhanced Capability 0x01: Advanced Error Reporting
>> 0x0140: Enhanced Capability 0x03: Device Serial Number
>> Serial Number: e4b318ffffa488b9
>> 0x014c: Enhanced Capability 0x18: Latency Tolerance Reporting
>> 0x0154: Enhanced Capability 0x1e: L1 PM
>>
>>