new 6.2-beta error: intel_uncore_check_errors Unclaimed register before interrupt

2017-08-22 Thread Derek Sivers
Hardware : Lenovo Thinkpad T440S

This error used to happen only once each time I'd boot up:
"error: [drm:pid46210:intel_uncore_check_errors] *ERROR* Unclaimed register 
before interrupt"

It's never been a problem from OpenBSD 5.9 through 6.1.
But now in 6.2-beta it's a problem. It goes on for hundreds of lines,
and takes about a minute to finish all of its warnings.

Happy to take any suggestions, test again, and report again.

The dmesg:

OpenBSD 6.2-beta (GENERIC.MP) #29: Mon Aug 21 10:03:48 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8246124544 (7864MB)
avail mem = 7989186560 (7619MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdcd3d000 (61 entries)
bios0: vendor LENOVO version "GJET67WW (2.17 )" date 12/10/2013
bios0: LENOVO 20AQCTO1WW
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC DBGP ECDT HPET APIC MCFG SSDT SSDT SSDT SSDT SSDT 
SSDT SSDT SSDT PCCT SSDT UEFI POAT ASF! BATB FPDT UEFI SSDT DMAR
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 2694.23 MHz
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,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2694228920 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 2693.77 MHz
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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 2693.77 MHz
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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 2693.77 MHz
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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpicpu0 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1
acpipwrres1 at acpi0: NVP3, resource for PEG_
acpipwrres2 at acpi0: NVP2, resource for PEG_
acpitz0 at acpi0: critical temperature is 200 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"LEN0071" at acpi0 not configured
"LEN0036" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "45N1773" serial 32828 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 model "45N1775" serial  7444 type LION oem "SANYO"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"INT340F" at acpi0 not configured
"INT33A0"

6.7-BETA on Thinkpad P1 with two drives : (won't boot)

2020-04-09 Thread Derek Sivers
6.7-BETA (today's snapshot).

Lenovo ThinkPad P1 2nd gen with two NVMe inside.

Windows on /dev/sd1
Installed OpenBSD on /dev/sd0 (a 1TB Samsung 970 pro)
/dev/sd0 has had FreeBSD and Arch Linux on it successfully.

Installed via USB just fine. Fresh [W]hole disk install.
Just default install, no encryption or RAID.

BIOS has sd0 as the preferred startup device. But after reboot, Windows comes 
up. Hmm…

I reboot with manual boot override to select sd0/OpenBSD.  Nope.  Won't.  Just 
instantly goes back to menu.

So I installed same 6.7-BETA on an external SSD via USB-eSATA.
Same thing. Installed fine. But laptop won't let it boot from that drive.

In BIOS: "secure boot" and "memory protection" all off. And FWIW, settings 
haven't changed since FreeBSD was running successfully on this laptop yesterday.

Any suggestions on what else I could try to make it boot?

Thank you.


Re: 6.7-BETA on Thinkpad P1 with two drives : (FIXED)

2020-04-09 Thread Derek Sivers
On Thu, Apr 09, 2020 at 02:25:49PM +0200, Otto Moerbeek wrote:
> You did not tell if you were using EFI or MBR boot. You couldn try the
> other one. I never got my X1 6th gen booting with EFI boot.

Thank you Otto, and sorry everyone else.  I thought I had tried all of
the BIOS settings.  You're right, when set to "Legacy Only", it works.



> > 6.7-BETA (today's snapshot).
> > 
> > Lenovo ThinkPad P1 2nd gen with two NVMe inside.
> > 
> > Windows on /dev/sd1
> > Installed OpenBSD on /dev/sd0 (a 1TB Samsung 970 pro)
> > /dev/sd0 has had FreeBSD and Arch Linux on it successfully.
> > 
> > Installed via USB just fine. Fresh [W]hole disk install.
> > Just default install, no encryption or RAID.
> > 
> > BIOS has sd0 as the preferred startup device. But after reboot, Windows 
> > comes up. Hmm…
> > 
> > I reboot with manual boot override to select sd0/OpenBSD.  Nope.  Won't.  
> > Just instantly goes back to menu.
> > 
> > So I installed same 6.7-BETA on an external SSD via USB-eSATA.
> > Same thing. Installed fine. But laptop won't let it boot from that drive.
> > 
> > In BIOS: "secure boot" and "memory protection" all off. And FWIW, settings 
> > haven't changed since FreeBSD was running successfully on this laptop 
> > yesterday.
> > 
> > Any suggestions on what else I could try to make it boot?



how to find reason for computer pausing often?

2018-08-07 Thread Derek Sivers
This past month or so, my Lenovo T440s laptop has started doing strange 
2-second pauses at random intervals, sometimes a few times per minute.

How would you look for the source of this trouble?  There's nothing in /var/log 
showing when it happens.  No log entries added there.  Where else would you 
look?

The easiest way to spot it in action is with a simple ls :

cd /tmp
mkdir a b c
time ls a
0m00.00s real 0m00.00s user 0m00.01s system
time ls b
0m03.22s real 0m00.00s user 0m00.01s system  # there is the random 
pause
time ls c
0m00.00s real 0m00.00s user 0m00.00s system
time ls b
0m00.00s real 0m00.00s user 0m00.00s system

I've tried it running OpenBSD 6.3 RELEASE, STABLE, and CURRENT.  Happens with 
all.

I wiped the entire drive (dd if=/dev/zero) then re-installed from scratch, and 
it still happens.

It happens whether running X or just in the initial raw console without startx.

I know it isn't an OpenBSD problem, but any suggestions where you'd look if it 
was you?

Thank you.

- Derek



Re: how to find reason for computer pausing often?

2018-08-08 Thread Derek Sivers
On Wed, Aug 08, 2018 at 08:59:40AM +0200, Solene Rapenne wrote:
> Derek Sivers  wrote:
> > This past month or so, my Lenovo T440s laptop has started doing strange 
> > 2-second pauses at random intervals, sometimes a few times per minute.
> > 
> > How would you look for the source of this trouble?  There's nothing in 
> > /var/log showing when it happens.  No log entries added there.  Where else 
> > would you look?
> > 
> > The easiest way to spot it in action is with a simple ls :
> > 
> > cd /tmp
> > mkdir a b c
> > time ls a
> > 0m00.00s real 0m00.00s user 0m00.01s system
> > time ls b
> > 0m03.22s real 0m00.00s user 0m00.01s system  # there is the 
> > random pause
> > time ls c
> > 0m00.00s real 0m00.00s user 0m00.00s system
> > time ls b
> > 0m00.00s real 0m00.00s user 0m00.00s system
> > 
> > I've tried it running OpenBSD 6.3 RELEASE, STABLE, and CURRENT.  Happens 
> > with all.
> > 
> > I wiped the entire drive (dd if=/dev/zero) then re-installed from scratch, 
> > and it still happens.
> > 
> > It happens whether running X or just in the initial raw console without 
> > startx.
> > 
> > I know it isn't an OpenBSD problem, but any suggestions where you'd look if 
> > it was you?
> > 
> > Thank you.
> > 
> > - Derek
> 
> Hi Derek
> 
> I think that your hard drive is failing. Is it a SSD? If no, it's
> typical of an old failing hard disk.
> 
> Could you try to mount a mfs filesystem and see if your example makes a
> pause? That should not trigger any disk read as it's an in-memory
> filesystem, if it doesn't block that mean that the hard disk is failing.

Thanks for the reply and suggestion. It's an SSD - 
https://www.cnet.com/products/adata-premier-sp600ns34-solid-state-drive-128-gb-sata-6gb-s/specs/
 - but I'll try the MFS thing, too.