Le 03/11/2021 à 07:44, Anton Lindqvist a écrit :
Hi,
In an attempt to fix a bug related to upd(4) I discovered that the
pseudo report id UHIDEV_CLAIM_MULTIPLE_REPORTID is conflicting with an
actual report id. The previous fix, reverted by now, avoided the
conflict by incrementing the pseudo report id was not a good idea
since a report id is expected to be represented using a single unsigned
byte elsewhere in the usb stack.
Here's a second attempt. Report id zero is according to the USB HID
specification reserved and should not be used. We can define
UHIDEV_CLAIM_MULTIPLE_REPORTID as zero removing the need to use a larger
integer type than the existing uint8_t for the report id. Another
correction is also needed. Some descriptors only supports a single
report and the report id is in this case optional. Internally, uhidev
uses report id zero for such devices. It's therefore of importance to
not perform a claim multiple report ids attachment on such devices as
there's only one report id to claim.
Testing would be much appreciated.
Comments? OK?
diff --git sys/dev/usb/uhidev.c sys/dev/usb/uhidev.c
index 5fe2f702e21..f5cc5984b59 100644
--- sys/dev/usb/uhidev.c
+++ sys/dev/usb/uhidev.c
@@ -247,29 +247,36 @@ uhidev_attach(struct device *parent, struct device *self,
void *aux)
sc->sc_isize += (nrepid != 1); /* one byte for the report ID */
DPRINTF(("uhidev_attach: isize=%d\n", sc->sc_isize));
+ memset(&uha, 0, sizeof(uha));
uha.uaa = uaa;
uha.parent = sc;
- uha.reportid = UHIDEV_CLAIM_MULTIPLE_REPORTID;
- uha.nreports = nrepid;
- uha.claimed = malloc(nrepid, M_TEMP, M_WAITOK|M_ZERO);
/* Look for a driver claiming multiple report IDs first. */
- dev = config_found_sm(self, &uha, NULL, uhidevsubmatch);
- if (dev != NULL) {
- for (repid = 0; repid < nrepid; repid++) {
- /*
- * Could already be assigned by uhidev_set_report_dev().
- */
- if (sc->sc_subdevs[repid] != NULL)
- continue;
-
- if (uha.claimed[repid])
+ if (nrepid > 1) {
+ uha.reportid = UHIDEV_CLAIM_MULTIPLE_REPORTID;
+ uha.nreports = nrepid;
+ uha.claimed = malloc(nrepid, M_TEMP, M_WAITOK|M_ZERO);
+
+ dev = config_found_sm(self, &uha, NULL, uhidevsubmatch);
+ if (dev != NULL) {
+ for (repid = 0; repid < nrepid; repid++) {
+ /*
+ * Could already be assigned by
+ * uhidev_set_report_dev().
+ */
+ if (sc->sc_subdevs[repid] != NULL)
+ continue;
+
+ if (!uha.claimed[repid])
+ continue;
sc->sc_subdevs[repid] = (struct uhidev *)dev;
+ }
}
- }
- free(uha.claimed, M_TEMP, nrepid);
- uha.claimed = NULL;
+ free(uha.claimed, M_TEMP, nrepid);
+ uha.nreports = 0;
+ uha.claimed = NULL;
+ }
for (repid = 0; repid < nrepid; repid++) {
DPRINTF(("%s: try repid=%d\n", __func__, repid));
diff --git sys/dev/usb/uhidev.h sys/dev/usb/uhidev.h
index 6ce75b1f49d..9ae85e1ab9f 100644
--- sys/dev/usb/uhidev.h
+++ sys/dev/usb/uhidev.h
@@ -81,8 +81,8 @@ struct uhidev_attach_arg {
struct usb_attach_arg *uaa;
struct uhidev_softc *parent;
uint8_t reportid;
-#define UHIDEV_CLAIM_MULTIPLE_REPORTID 255
- uint8_t nreports;
+#define UHIDEV_CLAIM_MULTIPLE_REPORTID 0
+ u_int nreports;
uint8_t *claimed;
};
Hi,
It works flawlessly for me and unplugging is fine too.
OpenBSD 7.0-stable (UPD.MP) #0: Wed Nov 3 08:37:45 CET 2021
[email protected]:/usr/src/sys/arch/amd64/compile/UPD.MP
real mem = 6283997184 (5992MB)
avail mem = 6077505536 (5795MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.2 @ 0xc8889000 (57 entries)
bios0: vendor LENOVO version "R19ET36W (1.20 )" date 07/12/2021
bios0: LENOVO 20U70003FR
acpi0 at bios0: ACPI 6.3
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT SSDT IVRS SSDT MSDM BATB HPET APIC MCFG SBST WSMT
SSDT SSDT CRAT CDIT FPDT SSDT SSDT SSDT UEFI SSDT SSDT
acpi0: wakeup devices GPP0(S4) GPP3(S4) GPP4(S4) GPP5(S4) GP17(S4) XHC0(S3)
XHC1(S3) GP19(S4) LID_(S4) SLPB(S3)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 5 4500U with Radeon Graphics, 2370.85 MHz, 17-60-01
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 32KB 64b/line 8-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line
8-way L2 cache
cpu0: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Ryzen 5 4500U with Radeon Graphics, 2370.55 MHz, 17-60-01
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu1: 32KB 64b/line 8-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line
8-way L2 cache
cpu1: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Ryzen 5 4500U with Radeon Graphics, 2370.55 MHz, 17-60-01
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu2: 32KB 64b/line 8-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line
8-way L2 cache
cpu2: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 4 (application processor)
cpu3: AMD Ryzen 5 4500U with Radeon Graphics, 2370.55 MHz, 17-60-01
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu3: 32KB 64b/line 8-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line
8-way L2 cache
cpu3: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu3: disabling user TSC (skew=237)
cpu3: smt 0, core 4, package 0
cpu4 at mainbus0: apid 5 (application processor)
cpu4: AMD Ryzen 5 4500U with Radeon Graphics, 2370.55 MHz, 17-60-01
cpu4:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu4: 32KB 64b/line 8-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line
8-way L2 cache
cpu4: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu4: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu4: disabling user TSC (skew=119)
cpu4: smt 0, core 5, package 0
cpu5 at mainbus0: apid 6 (application processor)
cpu5: AMD Ryzen 5 4500U with Radeon Graphics, 2370.55 MHz, 17-60-01
cpu5:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu5: 32KB 64b/line 8-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line
8-way L2 cache
cpu5: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu5: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu5: disabling user TSC (skew=226)
cpu5: smt 0, core 6, package 0
ioapic0 at mainbus0: apid 32 pa 0xfec00000, version 21, 24 pins, can't remap
ioapic1 at mainbus0: apid 33 pa 0xfec01000, version 21, 32 pins, can't remap
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (GPP0)
acpiprt2 at acpi0: bus 1 (GPP3)
acpiprt3 at acpi0: bus 2 (GPP4)
acpiprt4 at acpi0: bus 3 (GPP5)
acpiprt5 at acpi0: bus 4 (GPP6)
acpiprt6 at acpi0: bus -1 (GPP7)
acpiprt7 at acpi0: bus 6 (GP17)
acpiprt8 at acpi0: bus -1 (GP18)
acpiprt9 at acpi0: bus -1 (GP19)
acpiec0 at acpi0
"ACPI0010" at acpi0 not configured
acpicpu0 at acpi0: C3(0@350 io@0x415), C2(0@400 io@0x414), C1(0@1 mwait), PSS
acpicpu1 at acpi0: C3(0@350 io@0x415), C2(0@400 io@0x414), C1(0@1 mwait), PSS
acpicpu2 at acpi0: C3(0@350 io@0x415), C2(0@400 io@0x414), C1(0@1 mwait), PSS
acpicpu3 at acpi0: C3(0@350 io@0x415), C2(0@400 io@0x414), C1(0@1 mwait), PSS
acpicpu4 at acpi0: C3(0@350 io@0x415), C2(0@400 io@0x414), C1(0@1 mwait), PSS
acpicpu5 at acpi0: C3(0@350 io@0x415), C2(0@400 io@0x414), C1(0@1 mwait), PSS
acpicpu6 at acpi0: no cpu matching ACPI ID 6
acpicpu7 at acpi0: no cpu matching ACPI ID 7
acpicpu8 at acpi0: no cpu matching ACPI ID 8
acpicpu9 at acpi0: no cpu matching ACPI ID 9
acpicpu10 at acpi0: no cpu matching ACPI ID 10
acpicpu11 at acpi0: no cpu matching ACPI ID 11
acpicpu12 at acpi0: no cpu matching ACPI ID 12
acpicpu13 at acpi0: no cpu matching ACPI ID 13
acpicpu14 at acpi0: no cpu matching ACPI ID 14
acpicpu15 at acpi0: no cpu matching ACPI ID 15
acpibtn0 at acpi0: PWRB
acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
acpicmos0 at acpi0
acpithinkpad0 at acpi0: version 2.0
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT0 model "LNV-5B10W13897" serial 5375 type LiP oem
"Celxpert"
"LEN0100" at acpi0 not configured
"LEN0130" at acpi0 not configured
"SMB0001" at acpi0 not configured
acpibtn1 at acpi0: LID_
acpibtn2 at acpi0: SLPB
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 5, 184 pins
"USBC000" at acpi0 not configured
acpipwrres0 at acpi0: WRST
acpipwrres1 at acpi0: P0S0, resource for SATA
acpipwrres2 at acpi0: P3S0, resource for SATA
acpipwrres3 at acpi0: P0S1, resource for SAT1
acpipwrres4 at acpi0: P3S1, resource for SAT1
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: LCD_
cpu0: 2370 MHz: speeds: 2375 1700 1400 MHz
pci0 at mainbus0 bus 0
ksmn0 at pci0 dev 0 function 0 "AMD 17h/6xh Root Complex" rev 0x00
"AMD 17h/6xh IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
pchb0 at pci0 dev 1 function 0 "AMD 17h/6xh Host" rev 0x00
pchb1 at pci0 dev 2 function 0 "AMD 17h/6xh Host" rev 0x00
ppb0 at pci0 dev 2 function 1 "AMD 17h/6xh PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
nvme0 at pci1 dev 0 function 0 unknown vendor 0xc0a9 product 0x540a rev 0x01:
msix, NVMe 1.3
nvme0: CT500P2SSD8, firmware P2CR010, serial 2029E2B7CD18
scsibus1 at nvme0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <NVMe, CT500P2SSD8, P2CR>
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
ppb1 at pci0 dev 2 function 2 "AMD 17h/6xh PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x15: RTL8168H/8111H (0x5400),
msi, address 00:2b:67:b7:3a:08
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
ppb2 at pci0 dev 2 function 3 "AMD 17h/6xh PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
iwx0 at pci3 dev 0 function 0 "Intel Wi-Fi 6 AX200" rev 0x1a, msix
ppb3 at pci0 dev 2 function 4 "AMD 17h/6xh PCIE" rev 0x00: msi
pci4 at ppb3 bus 4
rtsx0 at pci4 dev 0 function 0 "Realtek RTS522A Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
pchb2 at pci0 dev 8 function 0 "AMD 17h/6xh Host" rev 0x00
ppb4 at pci0 dev 8 function 1 "AMD 17h/6xh PCIE" rev 0x00
pci5 at ppb4 bus 6
amdgpu0 at pci5 dev 0 function 0 "ATI Renoir" rev 0xc3
drm0 at amdgpu0
amdgpu0: msi
azalia0 at pci5 dev 0 function 1 "ATI Renoir HD Audio" rev 0x00: msi
azalia0: no supported codecs
ccp0 at pci5 dev 0 function 2 "AMD 17h/1xh Crypto" rev 0x00
xhci0 at pci5 dev 0 function 3 "AMD 17h/6xh xHCI" rev 0x00: msi, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00
addr 1
xhci1 at pci5 dev 0 function 4 "AMD 17h/6xh xHCI" rev 0x00: msi, xHCI 1.10
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00
addr 1
"AMD 17h/1xh I2S Audio" rev 0x01 at pci5 dev 0 function 5 not configured
azalia1 at pci5 dev 0 function 6 "AMD 17h/1xh HD Audio" rev 0x00: apic 33 int 12
azalia1: codecs: Realtek ALC257
audio0 at azalia1
piixpm0 at pci0 dev 20 function 0 "AMD FCH SMBus" rev 0x51: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x52: 8GB DDR4 SDRAM PC4-25600 SO-DIMM
iic1 at piixpm0
pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51
pchb3 at pci0 dev 24 function 0 "AMD 17h/6xh Data Fabric" rev 0x00
pchb4 at pci0 dev 24 function 1 "AMD 17h/6xh Data Fabric" rev 0x00
pchb5 at pci0 dev 24 function 2 "AMD 17h/6xh Data Fabric" rev 0x00
pchb6 at pci0 dev 24 function 3 "AMD 17h/6xh Data Fabric" rev 0x00
pchb7 at pci0 dev 24 function 4 "AMD 17h/6xh Data Fabric" rev 0x00
pchb8 at pci0 dev 24 function 5 "AMD 17h/6xh Data Fabric" rev 0x00
pchb9 at pci0 dev 24 function 6 "AMD 17h/6xh Data Fabric" rev 0x00
pchb10 at pci0 dev 24 function 7 "AMD 17h/6xh Data Fabric" rev 0x00
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 10.32, 0x1e2a1 0x940300 0x378f40 0xf014a3
0x12e800
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: SVM/RVI
efifb at mainbus0 not configured
dt: 445 probes
uhidev0 at uhub0 port 2 configuration 1 interface 0 "EATON Ellipse PRO" rev
1.10/1.00 addr 2
uhidev0: iclass 3/0, 255 report ids
upd: vendor=0x0463, product=0xffff
upd0 at uhidev0
upd: devname=upd0 sc_max_repid=256
upd0: found RemainingCapacity on repid=6
upd0: found FullChargeCapacity on repid=12
upd0: found Charging on repid=1
upd0: found Discharging on repid=1
upd0: found RunTimeToEmpty on repid=6
upd0: found NeedReplacement on repid=1
upd0: found ShutdownImminent on repid=1
upd0: found ACPresent on repid=1
upd0: found Overload on repid=1
upd: sc_num_sensors=9
upd_attach: complete
uhid0 at uhidev0 reportid 2: input=4, output=0, feature=4
uhid1 at uhidev0 reportid 3: input=5, output=0, feature=5
uhid2 at uhidev0 reportid 4: input=5, output=0, feature=5
uhid3 at uhidev0 reportid 6: input=4, output=0, feature=4
uhid4 at uhidev0 reportid 7: input=0, output=0, feature=2
uhid5 at uhidev0 reportid 8: input=0, output=0, feature=1
uhid6 at uhidev0 reportid 9: input=0, output=0, feature=4
uhid7 at uhidev0 reportid 10: input=0, output=0, feature=4
uhid8 at uhidev0 reportid 11: input=0, output=0, feature=14
uhid9 at uhidev0 reportid 12: input=0, output=0, feature=6
uhid10 at uhidev0 reportid 13: input=0, output=0, feature=3
uhid11 at uhidev0 reportid 14: input=0, output=0, feature=1
uhid12 at uhidev0 reportid 15: input=0, output=0, feature=2
uhid13 at uhidev0 reportid 16: input=0, output=0, feature=6
uhid14 at uhidev0 reportid 17: input=0, output=0, feature=1
uhid15 at uhidev0 reportid 18: input=0, output=0, feature=1
uhid16 at uhidev0 reportid 19: input=0, output=0, feature=2
uhid17 at uhidev0 reportid 20: input=0, output=0, feature=1
uhid18 at uhidev0 reportid 21: input=0, output=0, feature=1
uhid19 at uhidev0 reportid 22: input=0, output=0, feature=1
uhid20 at uhidev0 reportid 23: input=0, output=0, feature=5
uhid21 at uhidev0 reportid 24: input=0, output=0, feature=10
uhid22 at uhidev0 reportid 25: input=0, output=0, feature=1
uhid23 at uhidev0 reportid 26: input=0, output=0, feature=1
uhid24 at uhidev0 reportid 31: input=0, output=0, feature=1
uhid25 at uhidev0 reportid 32: input=0, output=0, feature=1
uhid26 at uhidev0 reportid 34: input=0, output=0, feature=1
uhid27 at uhidev0 reportid 254: input=0, output=0, feature=10
uhid28 at uhidev0 reportid 255: input=0, output=0, feature=63
ugen0 at uhub0 port 3 "Generic EMV Smartcard Reader" rev 2.01/1.20 addr 3
uvideo0 at uhub1 port 3 configuration 1 interface 0 "Azurewave Integrated
Camera" rev 2.01/60.01 addr 2
video0 at uvideo0
uvideo1 at uhub1 port 3 configuration 1 interface 2 "Azurewave Integrated
Camera" rev 2.01/60.01 addr 2
video1 at uvideo1
ugen1 at uhub1 port 3 configuration 1 "Azurewave Integrated Camera" rev
2.01/60.01 addr 2
ugen2 at uhub1 port 4 "Intel Bluetooth" rev 2.01/0.01 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (92eecfc8efc58d02.a) swap on sd0b dump on sd0b
iwx0: hw rev 0x340, fw ver 63.c04f3485.0, address 34:cf:f6:69:53:c5
[drm] DP Alt mode state on HPD: 0
[drm] Alt mode has timed out after 202 ms
amdgpu0: RENOIR 26 CU rev 0x00
amdgpu0: 1920x1080, 32bpp
wsdisplay0 at amdgpu0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
upd0 detached
uhid0 detached
uhid1 detached
uhid2 detached
uhid3 detached
uhid4 detached
uhid5 detached
uhid6 detached
uhid7 detached
uhid8 detached
uhid9 detached
uhid10 detached
uhid11 detached
uhid12 detached
uhid13 detached
uhid14 detached
uhid15 detached
uhid16 detached
uhid17 detached
uhid18 detached
uhid19 detached
uhid20 detached
uhid21 detached
uhid22 detached
uhid23 detached
uhid24 detached
uhid25 detached
uhid26 detached
uhid27 detached
uhid28 detached
uhidev0 detached
[drm] DP Alt mode state on HPD: 1
uhub1: device problem, disabling port 1
uhub2 at uhub1 port 5 configuration 1 interface 0 "VIA Labs, Inc. USB3.1 Hub"
rev 3.10/d.24 addr 4
ure0 at uhub2 port 1 configuration 1 interface 0 "Realtek USB-C Dock Ethernet"
rev 3.00/31.03 addr 5
ure0: RTL8153B (0x6010), address 48:2a:e3:55:59:2c
rgephy1 at ure0 phy 0: RTL8251 PHY, rev. 0
uhub3 at uhub2 port 3 configuration 1 interface 0 "VIA Labs, Inc. USB3.1 Hub"
rev 3.10/d.23 addr 6
uhub4 at uhub1 port 1 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub"
rev 2.10/d.24 addr 7
uhub5 at uhub4 port 3 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub"
rev 2.10/d.23 addr 8
uhub6 at uhub5 port 3 configuration 1 interface 0 "Lenovo USB2.0 Hub" rev
2.00/60.70 addr 9
uhidev0 at uhub6 port 1 configuration 1 interface 1 "Cypress Semiconductor
40AS" rev 2.01/0.00 addr 10
uhidev0: iclass 3/0, 237 report ids
upd: vendor=0x17ef, product=0xa38f
uhid0 at uhidev0 reportid 237: input=0, output=0, feature=88
ugen3 at uhub6 port 1 configuration 1 "Cypress Semiconductor 40AS" rev
2.01/0.00 addr 10
uaudio0 at uhub6 port 2 configuration 1 interface 1 "Lenovo ThinkPad USB-C Dock Gen2
USB Audio" rev 2.00/0.14 addr 11
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 4 ctls
audio1 at uaudio0
uhidev1 at uhub6 port 2 configuration 1 interface 3 "Lenovo ThinkPad USB-C Dock Gen2
USB Audio" rev 2.00/0.14 addr 11
uhidev1: iclass 3/0, 16 report ids
upd: vendor=0x17ef, product=0xa396
ucc0 at uhidev1 reportid 1: 6 usages, 3 keys, enum
wskbd1 at ucc0 mux 1
wskbd1: connecting to wsdisplay0
uhid1 at uhidev1 reportid 2: input=2, output=0, feature=0
uhid2 at uhidev1 reportid 3: input=0, output=2, feature=0
uhid3 at uhidev1 reportid 4: input=0, output=38, feature=0
uhid4 at uhidev1 reportid 5: input=34, output=0, feature=0
uhid5 at uhidev1 reportid 6: input=0, output=36, feature=0
uhid6 at uhidev1 reportid 7: input=32, output=0, feature=0
uhid7 at uhidev1 reportid 16: input=2, output=0, feature=0