gnutls cannot connect to openbsd.org -- TLS 1.3 issue?

2020-05-08 Thread openbsdlists
Hi,

starting a couple of days ago, applications linked against gnutls can no
longer connect to https://www.openbsd.org. Short output:

$ gnutls-cli openbsd.org
Processed 133 CA certificate(s).
Resolving 'openbsd.org:443'...
Connecting to '129.128.5.194:443'...
*** Fatal error: An illegal parameter has been received.

$ gnutls-cli -v
gnutls-cli 3.6.10

More debug output can be produced with "gnutls-cli -d 999 openbsd.org".
The interesting part is probably this:

|<4>| HSK[0x1f80fb31a000]: CERTIFICATE VERIFY (15) was received. Length 
516[516], frag offset 0, frag length: 516, sequence: 0
|<4>| HSK[0x1f80fb31a000]: Parsing certificate verify
|<4>| HSK[0x1f80fb31a000]: verifying TLS 1.3 handshake data using RSA-SHA256
|<3>| ASSERT: signature.c[_gnutls_session_sign_algo_enabled]:364
|<4>| Signature algorithm RSA-SHA256 is not enabled
|<3>| ASSERT: tls13-sig.c[_gnutls13_handshake_verify_data]:75
|<3>| ASSERT: 
tls13/certificate_verify.c[_gnutls13_recv_certificate_verify]:131
|<3>| ASSERT: handshake-tls13.c[_gnutls13_handshake_client]:144
|<13>| BUF[HSK]: Emptied buffer
*** Fatal error: An illegal parameter has been received.

Can be reproduced on OpenBSD 6.6-stable with gnutls from ports. (But it
affects my Linux boxes, too.)

It only fails with gnutls, so I first reported it there:

https://gitlab.com/gnutls/gnutls/-/issues/984

However, Daiki Ueno said it looks like an issue with LibreSSL. Quoting
in full:

> This looks like an issue in the server side (LibreSSL). In TLS 1.3,
> non-PSS RSA signature schemes have been removed, while the server
> seems to sign the Certificate Verify message with RSA-SHA256, which is
> not permitted.

I'm not really an expert on TLS or cryptography, so no idea what's going
on, which is why I'm reporting it on misc first. :-)

Should this be reported to libre...@openbsd.org?

Thanks in advance,
Peter



Re: gnutls cannot connect to openbsd.org -- TLS 1.3 issue?

2020-05-09 Thread openbsdlists
Has been fixed in LibreSSL. Thank you!



Re: Excessive fan - Thinkpad X1 (4th Gen)

2022-07-23 Thread openbsdlists

On 22-07-2022 10:13 , Mike Larkin wrote:

On Fri, Jul 22, 2022 at 01:53:25PM +0100, openbsdli...@speedymail.org wrote:

Hi all,

I have a recurring problem with OpenBSD on my Thinkpad X1 Carbon (4th Gen).

When the machine wakes from suspend, there is (approximately) a 75%
chance that the fan start and pretty much max out. Doesn't matter about
CPU usage or temperature. Suspending (zzz) or closing the lid tends not
to fix it - the fan will eventually stop but will start again on wake.
Rebooting or hibernating is required.

This has occured on this particular machine with various stable/release
versions of OpenBSD and I'm currently running the latest snapshot
(7.2-beta).

I have used various Linux distros (Debian and Arch, mostly) on this
machine in the past and this has never happened.

I also have a Thinkpad X220 running the same versions historically
without issue.

I can't find much in the archives so I'm hoping someone might be able to
offer something. Many thanks in advance.

I include sysctl hw, sysctl hw.sensors and dmesg below:
--
Best regards,
Matthew


systat vm 0.5  tell you anything perhaps an interrupt storm?

Check the columns on the right when it happens.

If not, build a kernel with acpi debug and see if you can
find if its a stuck GPE. We've seen that happen before.

Also check the lists, IIRC around this generation of X1 there was
some bios setting about thunderbolt assist that needed
to be tweaked or this would happen.

-ml

Mike - many thanks for the reply.

Checking systat, there does not appear to be anything disasterous
happening - (interrupts in the 400-600 range?).

I found a few things in the lists talking about Thunderbolt Assist but I
don't think that is relevant on my particular model - there is no reference
to Thunderbolt in the BIOS settings that I could find.

I have, however, updated the BIOS this morning and I will wait to see if
this makes a difference. If not, I will build a kernel and report back
with debug output.

Thanks again.





syctl hw:

hw.machine=amd64
hw.model=Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
hw.ncpu=4
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:74bfeea5a5883a85,sd1:7da04eb499cd98e3
hw.diskcount=2
hw.sensors.cpu0.temp0=36.00 degC
hw.sensors.cpu0.frequency0=32.00 Hz
hw.sensors.cpu1.frequency0=33.00 Hz
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpibat0.volt0=15.20 VDC (voltage)
hw.sensors.acpibat0.volt1=16.26 VDC (current voltage)
hw.sensors.acpibat0.power0=0.00 W (rate)
hw.sensors.acpibat0.watthour0=38.50 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=1.93 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=36.78 Wh (remaining capacity), OK
hw.sensors.acpibat0.watthour4=52.06 Wh (design capacity)
hw.sensors.acpibat0.raw0=0 (battery idle), OK
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.fan0=6940 RPM
hw.sensors.acpithinkpad0.indicator0=Off (port replicator), UNKNOWN
hw.sensors.acpitz0.temp0=48.00 degC (zone temperature)
hw.sensors.pchtemp0.temp0=35.50 degC
hw.sensors.softraid0.drive0=online (sd1), OK
hw.cpuspeed=2701
hw.setperf=100
hw.vendor=LENOVO
hw.product=20FB002LUS
hw.version=ThinkPad X1 Carbon 4th
hw.physmem=17011974144
hw.usermem=15295393792
hw.ncpufound=4
hw.allowpowerdown=1
hw.perfpolicy=auto
hw.smt=0
hw.ncpuonline=2
hw.power=1

sysctl hw.sensors:

hw.sensors.cpu0.temp0=34.00 degC
hw.sensors.cpu0.frequency0=325000.00 Hz
hw.sensors.cpu1.frequency0=32.00 Hz
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpibat0.volt0=15.20 VDC (voltage)
hw.sensors.acpibat0.volt1=16.26 VDC (current voltage)
hw.sensors.acpibat0.power0=0.00 W (rate)
hw.sensors.acpibat0.watthour0=38.50 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=1.93 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=36.78 Wh (remaining capacity), OK
hw.sensors.acpibat0.watthour4=52.06 Wh (design capacity)
hw.sensors.acpibat0.raw0=0 (battery idle), OK
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.fan0=6932 RPM
hw.sensors.acpithinkpad0.indicator0=Off (port replicator), UNKNOWN
hw.sensors.acpitz0.temp0=48.00 degC (zone temperature)
hw.sensors.pchtemp0.temp0=35.00 degC
hw.sensors.softraid0.drive0=online (sd1), OK

dmesg:

OpenBSD 7.2-beta (GENERIC.MP) #640: Thu Jul 21 21:03:56 MDT 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17011974144 (16223MB)
avail mem = 16479031296 (15715MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7057000 (65 entries)
bios0: vendor LENOVO version "N1FET75W (1.49 )" date 05/25/2021
bios0: LENOVO 20FB002LUS
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SSDT UEFI SSDT SSDT ECDT HPET APIC MCFG SSDT SSDT 
DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI
acpi0: wa

Re: Excessive fan - Thinkpad X1 (4th Gen)

2022-07-27 Thread openbsdlists

On 23-07-2022 16:27 , openbsdlists wrote:

On 22-07-2022 10:13 , Mike Larkin wrote:

On Fri, Jul 22, 2022 at 01:53:25PM +0100, openbsdli...@speedymail.org wrote:

Hi all,

I have a recurring problem with OpenBSD on my Thinkpad X1 Carbon (4th Gen).

When the machine wakes from suspend, there is (approximately) a 75%
chance that the fan start and pretty much max out. Doesn't matter about
CPU usage or temperature. Suspending (zzz) or closing the lid tends not
to fix it - the fan will eventually stop but will start again on wake.
Rebooting or hibernating is required.

This has occured on this particular machine with various stable/release
versions of OpenBSD and I'm currently running the latest snapshot
(7.2-beta).

I have used various Linux distros (Debian and Arch, mostly) on this
machine in the past and this has never happened.

I also have a Thinkpad X220 running the same versions historically
without issue.

I can't find much in the archives so I'm hoping someone might be able to
offer something. Many thanks in advance.

I include sysctl hw, sysctl hw.sensors and dmesg below:
--
Best regards,
Matthew


systat vm 0.5  tell you anything perhaps an interrupt storm?

Check the columns on the right when it happens.

If not, build a kernel with acpi debug and see if you can
find if its a stuck GPE. We've seen that happen before.

Also check the lists, IIRC around this generation of X1 there was
some bios setting about thunderbolt assist that needed
to be tweaked or this would happen.

-ml

Mike - many thanks for the reply.

Checking systat, there does not appear to be anything disasterous
happening - (interrupts in the 400-600 range?).

I found a few things in the lists talking about Thunderbolt Assist but I
don't think that is relevant on my particular model - there is no reference
to Thunderbolt in the BIOS settings that I could find.

I have, however, updated the BIOS this morning and I will wait to see if
this makes a difference. If not, I will build a kernel and report back
with debug output.

Thanks again.


For the record, it appears that simply updating the BIOS has fixed the
problem - at least on this machine. No recurrance within the last few
days.

Thanks.







syctl hw:

hw.machine=amd64
hw.model=Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
hw.ncpu=4
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:74bfeea5a5883a85,sd1:7da04eb499cd98e3
hw.diskcount=2
hw.sensors.cpu0.temp0=36.00 degC
hw.sensors.cpu0.frequency0=32.00 Hz
hw.sensors.cpu1.frequency0=33.00 Hz
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpibat0.volt0=15.20 VDC (voltage)
hw.sensors.acpibat0.volt1=16.26 VDC (current voltage)
hw.sensors.acpibat0.power0=0.00 W (rate)
hw.sensors.acpibat0.watthour0=38.50 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=1.93 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=36.78 Wh (remaining capacity), OK
hw.sensors.acpibat0.watthour4=52.06 Wh (design capacity)
hw.sensors.acpibat0.raw0=0 (battery idle), OK
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.fan0=6940 RPM
hw.sensors.acpithinkpad0.indicator0=Off (port replicator), UNKNOWN
hw.sensors.acpitz0.temp0=48.00 degC (zone temperature)
hw.sensors.pchtemp0.temp0=35.50 degC
hw.sensors.softraid0.drive0=online (sd1), OK
hw.cpuspeed=2701
hw.setperf=100
hw.vendor=LENOVO
hw.product=20FB002LUS
hw.version=ThinkPad X1 Carbon 4th
hw.physmem=17011974144
hw.usermem=15295393792
hw.ncpufound=4
hw.allowpowerdown=1
hw.perfpolicy=auto
hw.smt=0
hw.ncpuonline=2
hw.power=1

sysctl hw.sensors:

hw.sensors.cpu0.temp0=34.00 degC
hw.sensors.cpu0.frequency0=325000.00 Hz
hw.sensors.cpu1.frequency0=32.00 Hz
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpibat0.volt0=15.20 VDC (voltage)
hw.sensors.acpibat0.volt1=16.26 VDC (current voltage)
hw.sensors.acpibat0.power0=0.00 W (rate)
hw.sensors.acpibat0.watthour0=38.50 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=1.93 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=36.78 Wh (remaining capacity), OK
hw.sensors.acpibat0.watthour4=52.06 Wh (design capacity)
hw.sensors.acpibat0.raw0=0 (battery idle), OK
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.fan0=6932 RPM
hw.sensors.acpithinkpad0.indicator0=Off (port replicator), UNKNOWN
hw.sensors.acpitz0.temp0=48.00 degC (zone temperature)
hw.sensors.pchtemp0.temp0=35.00 degC
hw.sensors.softraid0.drive0=online (sd1), OK

dmesg:

OpenBSD 7.2-beta (GENERIC.MP) #640: Thu Jul 21 21:03:56 MDT 2022
   dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17011974144 (16223MB)
avail mem = 16479031296 (15715MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7057000 (65 entries)
bios0: vendor LENOVO version "N1FET75W (1.49 )" 

Wireless interface iwn0 becomes detached

2022-09-29 Thread openbsdlists

I am seeing a periodic and unexplained loss of wireless connection on my
Thinkpad.

According to ifconfig iwn0, after a period (roughly 30 mins) the DHCP-obtained
IP is lost (status: no network, nwid ""), requiring a sh /etc/netstart iwn0 to
get a new lease, or less frequently the interface simply disappears altogether.

I've only noticed this using the latest snapshot, but I might have occured
slightly before, I tend to update snapshots regularly. I'm sure it's happening
on multiple machines but the dmesg below is from my x201.

Any help gratefully received - happy to provide any further information.

Many thanks.

--
Matthew

OpenBSD 7.2 (GENERIC.MP) #758: Tue Sep 27 11:57:54 MDT 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8357658624 (7970MB)
avail mem = 8086974464 (7712MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
bios0: vendor LENOVO version "6QET61WW (1.31 )" date 10/26/2010
bios0: LENOVO 3680BD4
acpi0 at bios0: ACPI 4.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP1(S4) EXP2(S4) EXP3(S4) 
EXP4(S4) EXP5(S4) EHC1(S3) EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz, 1197.09 MHz, 06-25-05
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 4-way I-cache, 256KB 64b/line 
8-way L2 cache, 3MB 64b/line 12-way L3 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz, 1197.01 MHz, 06-25-05
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,MELTDOWN
cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 4-way I-cache, 256KB 64b/line 
8-way L2 cache, 3MB 64b/line 12-way L3 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz, 1197.02 MHz, 06-25-05
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,MELTDOWN
cpu2: 32KB 64b/line 8-way D-cache, 32KB 64b/line 4-way I-cache, 256KB 64b/line 
8-way L2 cache, 3MB 64b/line 12-way L3 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz, 1197.01 MHz, 06-25-05
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,MELTDOWN
cpu3: 32KB 64b/line 8-way D-cache, 32KB 64b/line 4-way I-cache, 256KB 64b/line 
8-way L2 cache, 3MB 64b/line 12-way L3 cache
cpu3: smt 1, core 2, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins, remapped
acpimcfg0 at acpi0
acpimcfg0: addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 13 (EXP1)
acpiprt3 at acpi0: bus -1 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpiprt5 at acpi0: bus 5 (EXP4)
acpiprt6 at acpi0: bus 2 (EXP5)
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpipci0 at acpi0 UNCR
acpipci1 at acpi0 PCI0: 0x 0x0011 0x0001
acpicmos0 at acpi0
tpm0 at acpi0 TPM_ 1.2 (TIS) addr 0xfed4/0x5000, device 0x104a rev 0x4e
acpibat0 at acpi0: BAT0 model "42T4647" serial  1666 type LION oem "SANYO"
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0: version 1.0
"PNP0C14" at acpi0 not configured
acpicpu0 at acpi0: C3(350@245 mwait.3@0x20), C2(500@205 mwait.3@0x10), 
C1(1000@3 mwait.1), PSS
acpicpu1 at acpi0: C3(350@245 mwait.3@0x20), C2(500@205 mwait.3@0x10), 
C1(1000@3 mwait.1), PSS
acpicpu2 at acpi0: C3(350@245 mwait.3@0x20), C2(500@205 mwait.3@0x10), 
C1(1000@3 mwait.1), PSS
acpicpu3 

Re: Wireless interface iwn0 becomes detached

2022-10-02 Thread openbsdlists

On 02-10-2022 06:11 , Muhammad Muntaza wrote:

On Fri, 30 Sep 2022 at 13.29  wrote:


I am seeing a periodic and unexplained loss of wireless connection on my
Thinkpad.

According to ifconfig iwn0, after a period (roughly 30 mins) the
DHCP-obtained
IP is lost (status: no network, nwid ""), requiring a sh /etc/netstart
iwn0 to
get a new lease, or less frequently the interface simply disappears
altogether.

Ping your gateway every minute,  add to your cron:


*  *  *  *  *  /usr/bin/ping -c 3  192.0.2.1






Thank you, I will try this.

--
Matthew



Re: Wireless interface iwn0 becomes detached

2022-10-02 Thread openbsdlists

On 02-10-2022 08:49 , openbsdlists wrote:

On 02-10-2022 06:11 , Muhammad Muntaza wrote:

On Fri, 30 Sep 2022 at 13.29  wrote:


I am seeing a periodic and unexplained loss of wireless connection on my
Thinkpad.

According to ifconfig iwn0, after a period (roughly 30 mins) the
DHCP-obtained
IP is lost (status: no network, nwid ""), requiring a sh /etc/netstart
iwn0 to
get a new lease, or less frequently the interface simply disappears
altogether.

Ping your gateway every minute,  add to your cron:


*  *  *  *  *  /usr/bin/ping -c 3  192.0.2.1






Thank you, I will try this.




Seeing:

dhcpleased[24941]: bpf_receive: read: Input/output error
dhcpleased[19058]: deconfigure_interface: cannot find interface 28
/bsd: iwn0 detached
/bsd: iwn0 at pci4 dev 0 function 0 "Intel Centrino Advanced-N 6200" rev 0x35: 
msi, MIMO 2T2R, MoW, address 58:94:6b:72:

at disconnection time. Using static IP or DHCP config in
/etc/hostname.iwn0.

Pinging the gateway makes no difference.

--
Matthew



Excessive fan - Thinkpad X1 (4th Gen)

2022-07-22 Thread openbsdlists

Hi all,

I have a recurring problem with OpenBSD on my Thinkpad X1 Carbon (4th Gen).

When the machine wakes from suspend, there is (approximately) a 75%
chance that the fan start and pretty much max out. Doesn't matter about
CPU usage or temperature. Suspending (zzz) or closing the lid tends not
to fix it - the fan will eventually stop but will start again on wake.
Rebooting or hibernating is required.

This has occured on this particular machine with various stable/release
versions of OpenBSD and I'm currently running the latest snapshot
(7.2-beta).

I have used various Linux distros (Debian and Arch, mostly) on this
machine in the past and this has never happened.

I also have a Thinkpad X220 running the same versions historically
without issue.

I can't find much in the archives so I'm hoping someone might be able to
offer something. Many thanks in advance.

I include sysctl hw, sysctl hw.sensors and dmesg below:
--
Best regards,
Matthew

syctl hw:

hw.machine=amd64
hw.model=Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
hw.ncpu=4
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:74bfeea5a5883a85,sd1:7da04eb499cd98e3
hw.diskcount=2
hw.sensors.cpu0.temp0=36.00 degC
hw.sensors.cpu0.frequency0=32.00 Hz
hw.sensors.cpu1.frequency0=33.00 Hz
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpibat0.volt0=15.20 VDC (voltage)
hw.sensors.acpibat0.volt1=16.26 VDC (current voltage)
hw.sensors.acpibat0.power0=0.00 W (rate)
hw.sensors.acpibat0.watthour0=38.50 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=1.93 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=36.78 Wh (remaining capacity), OK
hw.sensors.acpibat0.watthour4=52.06 Wh (design capacity)
hw.sensors.acpibat0.raw0=0 (battery idle), OK
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.fan0=6940 RPM
hw.sensors.acpithinkpad0.indicator0=Off (port replicator), UNKNOWN
hw.sensors.acpitz0.temp0=48.00 degC (zone temperature)
hw.sensors.pchtemp0.temp0=35.50 degC
hw.sensors.softraid0.drive0=online (sd1), OK
hw.cpuspeed=2701
hw.setperf=100
hw.vendor=LENOVO
hw.product=20FB002LUS
hw.version=ThinkPad X1 Carbon 4th
hw.physmem=17011974144
hw.usermem=15295393792
hw.ncpufound=4
hw.allowpowerdown=1
hw.perfpolicy=auto
hw.smt=0
hw.ncpuonline=2
hw.power=1

sysctl hw.sensors:

hw.sensors.cpu0.temp0=34.00 degC
hw.sensors.cpu0.frequency0=325000.00 Hz
hw.sensors.cpu1.frequency0=32.00 Hz
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpibat0.volt0=15.20 VDC (voltage)
hw.sensors.acpibat0.volt1=16.26 VDC (current voltage)
hw.sensors.acpibat0.power0=0.00 W (rate)
hw.sensors.acpibat0.watthour0=38.50 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=1.93 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=36.78 Wh (remaining capacity), OK
hw.sensors.acpibat0.watthour4=52.06 Wh (design capacity)
hw.sensors.acpibat0.raw0=0 (battery idle), OK
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.fan0=6932 RPM
hw.sensors.acpithinkpad0.indicator0=Off (port replicator), UNKNOWN
hw.sensors.acpitz0.temp0=48.00 degC (zone temperature)
hw.sensors.pchtemp0.temp0=35.00 degC
hw.sensors.softraid0.drive0=online (sd1), OK

dmesg:

OpenBSD 7.2-beta (GENERIC.MP) #640: Thu Jul 21 21:03:56 MDT 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17011974144 (16223MB)
avail mem = 16479031296 (15715MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7057000 (65 entries)
bios0: vendor LENOVO version "N1FET75W (1.49 )" date 05/25/2021
bios0: LENOVO 20FB002LUS
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SSDT UEFI SSDT SSDT ECDT HPET APIC MCFG SSDT SSDT 
DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP9(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz, 2494.19 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,SMX,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,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 
4-way L2 cache, 4MB 64b/line 16-way L3 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 f