inteldrm changes cause high temperature / fan speeds (was: Downgrade 6.6 to 6.5)

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

inteldrm changes cause high temperature / fan speeds (was: Downgrade 6.6 to 6.5)

Tero Koskinen
Hi,

Sorry if someone gets this twice. My first version didn't go to the list.

[hidden email] wrote on 6.11.2019 19.52:
> Theo de Raadt writes:
>> I have some sort of X1rev6 and I don't see the problem.
>>
>> The situation is you have the hardware, and you also have the sourcecode,
>> and the repository to traverse investigate the problem.
>>
>> That sounds hard, until you give it a try.
>
> To be fair, it *is* hard.

I have same problem on my Dell Optiplex 990 (running in "headless" mode,
no monitor attached!).

After upgrade from 6.5-stable to 6.6-current, CPU temperature
increased from 50C to 70C..80C and the fans are running at full speed.

So, I went and cloned OpenBSD src tree from https://github.com/openbsd/src/

Then I started bisecting kernel commits from 6.5-release to 6.6-current:
 > ls -1 kernels
bsd.apr10.a72c25aac8e43fe
bsd.apr14.505701c75b30a46033a8
bsd.apr23.53d03815630664
bsd.apr27.c1f77a6b17d5a799d322
bsd.apr29.47170b90f4a74
bsd.apr5.b2516e1f98d4a5f7757
bsd.jul31.ddc1a6c2c17
bsd.jun.b2a28ec4ea
bsd.jun1.535cf6c2b
bsd.may1.4a0e86bfb04cce9
bsd.may19.01b2b04ad452620a32
 >

(Note the list isn't complete. I noticed that kernel became backwards
incompatible at some point in April and I had to create a temporary
6.5 installation on another disk.)

Eventually I pinned the problem down to April 14/15:

FAULTY 091f8f6587f dlg  Mon Apr 15 02:59:41 2019 +0000  the myx_cmd
FAULTY 1bbcb699ab8 dlg  Mon Apr 15 00:28:29 2019 +0000  there's a bunch
PROBLEM! 7f4dd37977d jsg  Sun Apr 14 10:14:50 2019 +0000  Update shared
drm code
OK     505701c75b3 visa Sun Apr 14 08:51:31 2019 +0000  Add lock

I must admit that I don't have yet any idea how to fix
the problematic commit (or what is actually wrong there).

Reverting 7f4dd37977d didn't work for latest 6.6-current as there
have been too many changes after that.

I also tried to check the latest changes from linux-4.19.y,
but didn't spot anything useful.

Yours,
  Tero


dmesg:
OpenBSD 6.6-current (GENERIC.MP) #452: Mon Nov 11 19:08:23 MST 2019
     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4153880576 (3961MB)
avail mem = 4015665152 (3829MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf2650 (71 entries)
bios0: vendor Dell Inc. version "A19" date 08/26/2015
bios0: Dell Inc. OptiPlex 990
acpi0 at bios0: ACPI 4.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC TCPA SSDT MCFG HPET BOOT SSDT SSDT DMAR SLIC
acpi0: wakeup devices EHC1(S3) EHC2(S3) HDEF(S4) GLAN(S4) RP01(S4)
PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4)
PXSX(S4) RP06(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.69 MHz, 06-2a-07
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,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,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 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.35 MHz, 06-2a-07
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,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.35 MHz, 06-2a-07
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,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.35 MHz, 06-2a-07
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,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus 2 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiprt5 at acpi0: bus -1 (RP05)
acpiprt6 at acpi0: bus -1 (RP06)
acpiprt7 at acpi0: bus -1 (RP07)
acpiprt8 at acpi0: bus -1 (RP08)
acpiprt9 at acpi0: bus -1 (PEG0)
acpiprt10 at acpi0: bus -1 (PEG1)
acpiprt11 at acpi0: bus -1 (PEG2)
acpiprt12 at acpi0: bus -1 (PEG3)
acpiprt13 at acpi0: bus 3 (P0P1)
acpicpu0 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpipci0 at acpi0 PCI0: 0x00000004 0x00000011 0x00000001
acpicmos0 at acpi0
"PNP0A05" at acpi0 not configured
acpibtn0 at acpi0: PWRB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 2494 MHz: speeds: 2501, 2500, 2400, 2300, 2200,
2100, 2000, 1900, 1800, 1700, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
puc0 at pci0 dev 22 function 3 "Intel 6 Series KT" rev 0x04: ports: 16 com
com4 at puc0 port 0 apic 2 int 17: ns16550a, 16 byte fifo
com4: probed fifo depth: 0 bytes
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address
18:03:73:d7:92:7f
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x04: msi
azalia0: codecs: Realtek ALC269, Intel/0x2805, using Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 "Intel 6 Series PCIE" rev 0xb4: msi
pci2 at ppb1 bus 2
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa4
pci3 at ppb2 bus 3
pcib0 at pci0 dev 31 function 0 "Intel Q67 LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi,
AHCI 1.3
ahci0: port 0: 3.0Gb/s
ahci0: port 1: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, ST9250410AS, D005> naa.5000c50044843cfd
sd0: 238475MB, 512 bytes/sector, 488397168 sectors
cd0 at scsibus1 targ 1 lun 0: <HL-DT-ST, DVD+-RW GT50N, A101> removable
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x04: apic
2 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
vmm0 at mainbus0: VMX/EPT
uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
uhidev0 at uhub3 port 7 configuration 1 interface 0 "BTC USB Multimedia
Keyboard" rev 1.10/1.00 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub3 port 7 configuration 1 interface 1 "BTC USB Multimedia
Keyboard" rev 1.10/1.00 addr 3
uhidev1: iclass 3/0, 3 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=3, output=0, feature=0
uhid2 at uhidev1 reportid 3: input=3, output=0, feature=8
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (4d0cb73d095c6615.a) swap on sd0b dump on sd0b
inteldrm0: 1920x1080, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

$ sysctl hw
hw.machine=amd64
hw.model=Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz
hw.ncpu=4
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:4d0cb73d095c6615,cd0:
hw.diskcount=2
hw.sensors.cpu0.temp0=69.00 degC
hw.cpuspeed=2494
hw.setperf=99
hw.vendor=Dell Inc.
hw.product=OptiPlex 990
hw.version=01
hw.serialno=33QV65J
hw.uuid=44454c4c-3300-1051-8056-b3c04f36354a
hw.physmem=4153880576
hw.usermem=4153851904
hw.ncpufound=4
hw.allowpowerdown=1
hw.perfpolicy=manual
hw.smt=0
hw.ncpuonline=4
$

Reply | Threaded
Open this post in threaded view
|

Re: inteldrm changes cause high temperature / fan speeds (was: Downgrade 6.6 to 6.5)

Otto Moerbeek
On Wed, Nov 13, 2019 at 08:19:15AM +0200, Tero Koskinen wrote:

> Hi,
>
> Sorry if someone gets this twice. My first version didn't go to the list.
>
> [hidden email] wrote on 6.11.2019 19.52:
> > Theo de Raadt writes:
> >> I have some sort of X1rev6 and I don't see the problem.
> >>
> >> The situation is you have the hardware, and you also have the sourcecode,
> >> and the repository to traverse investigate the problem.
> >>
> >> That sounds hard, until you give it a try.
> >
> > To be fair, it *is* hard.
>
> I have same problem on my Dell Optiplex 990 (running in "headless" mode,
> no monitor attached!).
>
> After upgrade from 6.5-stable to 6.6-current, CPU temperature
> increased from 50C to 70C..80C and the fans are running at full speed.
>
> So, I went and cloned OpenBSD src tree from https://github.com/openbsd/src/
>
> Then I started bisecting kernel commits from 6.5-release to 6.6-current:
>  > ls -1 kernels
> bsd.apr10.a72c25aac8e43fe
> bsd.apr14.505701c75b30a46033a8
> bsd.apr23.53d03815630664
> bsd.apr27.c1f77a6b17d5a799d322
> bsd.apr29.47170b90f4a74
> bsd.apr5.b2516e1f98d4a5f7757
> bsd.jul31.ddc1a6c2c17
> bsd.jun.b2a28ec4ea
> bsd.jun1.535cf6c2b
> bsd.may1.4a0e86bfb04cce9
> bsd.may19.01b2b04ad452620a32
>  >
>
> (Note the list isn't complete. I noticed that kernel became backwards
> incompatible at some point in April and I had to create a temporary
> 6.5 installation on another disk.)
>
> Eventually I pinned the problem down to April 14/15:
>
> FAULTY 091f8f6587f dlg  Mon Apr 15 02:59:41 2019 +0000  the myx_cmd
> FAULTY 1bbcb699ab8 dlg  Mon Apr 15 00:28:29 2019 +0000  there's a bunch
> PROBLEM! 7f4dd37977d jsg  Sun Apr 14 10:14:50 2019 +0000  Update shared
> drm code
> OK     505701c75b3 visa Sun Apr 14 08:51:31 2019 +0000  Add lock
>
> I must admit that I don't have yet any idea how to fix
> the problematic commit (or what is actually wrong there).
>
> Reverting 7f4dd37977d didn't work for latest 6.6-current as there
> have been too many changes after that.
>
> I also tried to check the latest changes from linux-4.19.y,
> but didn't spot anything useful.
>
> Yours,
>   Tero

If you run top -S, do you see any process taking lots of CPU?

        -Otto

>
>
> dmesg:
> OpenBSD 6.6-current (GENERIC.MP) #452: Mon Nov 11 19:08:23 MST 2019
>      [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 4153880576 (3961MB)
> avail mem = 4015665152 (3829MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf2650 (71 entries)
> bios0: vendor Dell Inc. version "A19" date 08/26/2015
> bios0: Dell Inc. OptiPlex 990
> acpi0 at bios0: ACPI 4.0
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC TCPA SSDT MCFG HPET BOOT SSDT SSDT DMAR SLIC
> acpi0: wakeup devices EHC1(S3) EHC2(S3) HDEF(S4) GLAN(S4) RP01(S4)
> PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4)
> PXSX(S4) RP06(S4) PXSX(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.69 MHz, 06-2a-07
> 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,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,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 99MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.35 MHz, 06-2a-07
> 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,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0: apid 4 (application processor)
> cpu2: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.35 MHz, 06-2a-07
> 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,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0: apid 6 (application processor)
> cpu3: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.35 MHz, 06-2a-07
> 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,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 0, core 3, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
> acpimcfg0 at acpi0
> acpimcfg0: addr 0xf8000000, bus 0-63
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (RP01)
> acpiprt2 at acpi0: bus -1 (RP02)
> acpiprt3 at acpi0: bus 2 (RP03)
> acpiprt4 at acpi0: bus -1 (RP04)
> acpiprt5 at acpi0: bus -1 (RP05)
> acpiprt6 at acpi0: bus -1 (RP06)
> acpiprt7 at acpi0: bus -1 (RP07)
> acpiprt8 at acpi0: bus -1 (RP08)
> acpiprt9 at acpi0: bus -1 (PEG0)
> acpiprt10 at acpi0: bus -1 (PEG1)
> acpiprt11 at acpi0: bus -1 (PEG2)
> acpiprt12 at acpi0: bus -1 (PEG3)
> acpiprt13 at acpi0: bus 3 (P0P1)
> acpicpu0 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10),
> C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10),
> C1(1000@1 mwait.1), PSS
> acpicpu2 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10),
> C1(1000@1 mwait.1), PSS
> acpicpu3 at acpi0: C3(350@104 mwait.1@0x20), C2(500@80 mwait.1@0x10),
> C1(1000@1 mwait.1), PSS
> acpipci0 at acpi0 PCI0: 0x00000004 0x00000011 0x00000001
> acpicmos0 at acpi0
> "PNP0A05" at acpi0 not configured
> acpibtn0 at acpi0: PWRB
> acpivideo0 at acpi0: GFX0
> acpivout0 at acpivideo0: DD02
> cpu0: using VERW MDS workaround (except on vmm entry)
> cpu0: Enhanced SpeedStep 2494 MHz: speeds: 2501, 2500, 2400, 2300, 2200,
> 2100, 2000, 1900, 1800, 1700, 1600 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
> inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09
> drm0 at inteldrm0
> inteldrm0: msi
> "Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
> puc0 at pci0 dev 22 function 3 "Intel 6 Series KT" rev 0x04: ports: 16 com
> com4 at puc0 port 0 apic 2 int 17: ns16550a, 16 byte fifo
> com4: probed fifo depth: 0 bytes
> em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address
> 18:03:73:d7:92:7f
> ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 16
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
> 2.00/1.00 addr 1
> azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x04: msi
> azalia0: codecs: Realtek ALC269, Intel/0x2805, using Realtek ALC269
> audio0 at azalia0
> ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi
> pci1 at ppb0 bus 1
> ppb1 at pci0 dev 28 function 2 "Intel 6 Series PCIE" rev 0xb4: msi
> pci2 at ppb1 bus 2
> ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 17
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
> 2.00/1.00 addr 1
> ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa4
> pci3 at ppb2 bus 3
> pcib0 at pci0 dev 31 function 0 "Intel Q67 LPC" rev 0x04
> ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi,
> AHCI 1.3
> ahci0: port 0: 3.0Gb/s
> ahci0: port 1: 1.5Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, ST9250410AS, D005> naa.5000c50044843cfd
> sd0: 238475MB, 512 bytes/sector, 488397168 sectors
> cd0 at scsibus1 targ 1 lun 0: <HL-DT-ST, DVD+-RW GT50N, A101> removable
> ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x04: apic
> 2 int 18
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600
> spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> vmm0 at mainbus0: VMX/EPT
> uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching
> Hub" rev 2.00/0.00 addr 2
> uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
> Hub" rev 2.00/0.00 addr 2
> uhidev0 at uhub3 port 7 configuration 1 interface 0 "BTC USB Multimedia
> Keyboard" rev 1.10/1.00 addr 3
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> uhidev1 at uhub3 port 7 configuration 1 interface 1 "BTC USB Multimedia
> Keyboard" rev 1.10/1.00 addr 3
> uhidev1: iclass 3/0, 3 report ids
> uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
> uhid1 at uhidev1 reportid 2: input=3, output=0, feature=0
> uhid2 at uhidev1 reportid 3: input=3, output=0, feature=8
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on sd0a (4d0cb73d095c6615.a) swap on sd0b dump on sd0b
> inteldrm0: 1920x1080, 32bpp
> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
> wskbd1: connecting to wsdisplay0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
>
> $ sysctl hw
> hw.machine=amd64
> hw.model=Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz
> hw.ncpu=4
> hw.byteorder=1234
> hw.pagesize=4096
> hw.disknames=sd0:4d0cb73d095c6615,cd0:
> hw.diskcount=2
> hw.sensors.cpu0.temp0=69.00 degC
> hw.cpuspeed=2494
> hw.setperf=99
> hw.vendor=Dell Inc.
> hw.product=OptiPlex 990
> hw.version=01
> hw.serialno=33QV65J
> hw.uuid=44454c4c-3300-1051-8056-b3c04f36354a
> hw.physmem=4153880576
> hw.usermem=4153851904
> hw.ncpufound=4
> hw.allowpowerdown=1
> hw.perfpolicy=manual
> hw.smt=0
> hw.ncpuonline=4
> $
>

Reply | Threaded
Open this post in threaded view
|

Re: inteldrm changes cause high temperature / fan speeds (was: Downgrade 6.6 to 6.5)

Ted Unangst-6
In reply to this post by Tero Koskinen
Tero Koskinen wrote:

> Eventually I pinned the problem down to April 14/15:
>
> FAULTY 091f8f6587f dlg  Mon Apr 15 02:59:41 2019 +0000  the myx_cmd
> FAULTY 1bbcb699ab8 dlg  Mon Apr 15 00:28:29 2019 +0000  there's a bunch
> PROBLEM! 7f4dd37977d jsg  Sun Apr 14 10:14:50 2019 +0000  Update shared
> drm code
> OK     505701c75b3 visa Sun Apr 14 08:51:31 2019 +0000  Add lock
>
> I must admit that I don't have yet any idea how to fix
> the problematic commit (or what is actually wrong there).

This is not too surprising. It's still a bit of a mystery what's different
between machines that behave fine and those that don't.

I have the same machine, and it's never been problematic.

I note I'm at the same old bios I had when I first purchased it.
bios0: vendor LENOVO version "N23ET61W (1.36 )" date 01/17/2019

And there are some other bios options, regarding bios/efi and thunderbolt and
suspend that can be set one way or the other. I have everything turned down to
whatever the "oldest" settings are. CMS boot, etc.

Reply | Threaded
Open this post in threaded view
|

Re: inteldrm changes cause high temperature / fan speeds

Tero Koskinen
Ted Unangst wrote on 13.11.2019 8.52:

> Tero Koskinen wrote:
>> Eventually I pinned the problem down to April 14/15:
>>
>> FAULTY 091f8f6587f dlg  Mon Apr 15 02:59:41 2019 +0000  the myx_cmd
>> FAULTY 1bbcb699ab8 dlg  Mon Apr 15 00:28:29 2019 +0000  there's a bunch
>> PROBLEM! 7f4dd37977d jsg  Sun Apr 14 10:14:50 2019 +0000  Update shared
>> drm code
>> OK     505701c75b3 visa Sun Apr 14 08:51:31 2019 +0000  Add lock
>>
>> I must admit that I don't have yet any idea how to fix
>> the problematic commit (or what is actually wrong there).
>
> This is not too surprising. It's still a bit of a mystery what's different
> between machines that behave fine and those that don't.
>
> I have the same machine, and it's never been problematic.
>
> I note I'm at the same old bios I had when I first purchased it.
> bios0: vendor LENOVO version "N23ET61W (1.36 )" date 01/17/2019

Note that my device is a desktop computer (Dell Optiplex 990)
with ultra small form factor (USFF) case - not Thinkpad or other laptop.

Otherwise I don't mind if fan or cpu is running at 100%, but
I am worried about the temperature. Idle 70C and 80+ C in
use temperatures will kill the device sooner or later (small case,
not so good ventilation).

Otto Moerbeek wrote on 13.11.2019 8.25:
 >
 > If you run top -S, do you see any process taking lots of CPU?

Nothing suspicious. I have some daemons, but they are mostly idle.

load averages:  0.06,  0.03,  0.00
                                                gurb.koti 16:45:10
104 processes: 102 idle, 2 on processor
                                                          up  0:28
CPU0 states:  0.0% user,  0.0% nice,  0.0% sys,  0.0% spin,  0.0% intr,
100% idle
CPU1 states:  0.0% user,  0.0% nice,  0.0% sys,  0.0% spin,  0.0% intr,
100% idle
CPU2 states:  0.0% user,  0.0% nice,  0.0% sys,  0.0% spin,  0.0% intr,
100% idle
CPU3 states:  0.0% user,  0.0% nice,  0.0% sys,  0.0% spin,  0.0% intr,
100% idle
Memory: Real: 322M/1296M act/tot Free: 2542M Cache: 587M Swap: 0K/8189M

   PID USERNAME PRI NICE  SIZE   RES STATE     WAIT      TIME    CPU COMMAND
24353 root     -22    0    0K   11M sleep/3   -        28:19  0.00% idle3
38595 root     -22    0    0K   11M sleep/2   -        28:15  0.00% idle2
28685 root     -22    0    0K   11M sleep/1   -        28:13  0.00% idle1
29534 root     -22    0    0K   11M sleep/0   -        28:12  0.00% idle0
43437 _gitea    10    0  129M   73M onproc/3  thrslee   0:04  0.00% gitea
20526 root      10    0    0K   11M sleep/0   bored     0:01  0.00% softnet
     0 root     -18    0    0K   11M sleep/0   schedul   0:01  0.00% swapper
93389 root     -22    0    0K   11M sleep/0   bored     0:01  0.00%
softclock
66152 root      10    0    0K   11M sleep/2   bored     0:01  0.00% systqmp
     1 root      10    0  476K  444K idle      wait      0:01  0.00% init
83453 root      10    0    0K   11M idle      bored     0:01  0.00% drmwq
49657 root      10    0    0K   11M idle      bored     0:01  0.00% drmwq
61541 root      10    0    0K   11M idle      usbatsk   0:01  0.00% usbatsk
51529 root      10    0    0K   11M idle      bored     0:01  0.00% drmlwq
  9367 root      10    0    0K   11M idle      bored     0:01  0.00% drmubwq
64175 root     -18    0    0K   11M idle      bored     0:01  0.00% smr
  2195 root      10    0    0K   11M idle      bored     0:01  0.00% crynlk
72222 root      10    0    0K   11M idle      bored     0:01  0.00% drmtskl
  2429 root      10    0    0K   11M idle      bored     0:01  0.00% drmlwq
38115 root      10    0    0K   11M idle      bored     0:01  0.00% drmubwq
40710 root     -18    0    0K   11M sleep/1   reaper    0:01  0.00% reaper
58981 root      68   20    0K   11M idle      pgzero    0:01  0.00%
zerothread
18061 www        2    0   22M   27M sleep/1   select    0:01  0.00%
python2.7
29049 tkoskine  28    0 1504K 3624K onproc/0  -         0:00  0.00% top
77959 _unbound   2    0   33M   26M sleep/1   kqread    0:00  0.00% unbound
  2955 www        2    0   17M   21M sleep/0   select    0:00  0.00%
python2.7
45267 www        2    0   13M   17M sleep/0   select    0:00  0.00%
python2.7
  5164 tkoskine   2    0 2128K 3068K sleep/0   kqread    0:00  0.00% tmux
63466 root       2    0 1456K 4152K idle      poll      0:00  0.00% sshd
63357 _nsd       2    0   99M   83M idle      kqread    0:00  0.00% nsd
92852 root      18    0    0K   11M sleep/0   syncer    0:00  0.00% update
48008 root       2    0 1616K 2044K sleep/0   poll      0:00  0.00% smbd
25978 root       2    0  800K  600K idle      kqread    0:00  0.00% slaacd
95670 _nsd       2    0   32M   32M idle      poll      0:00  0.00% nsd
36212 root      10    0    0K   11M idle      bored     0:00  0.00% i915
75047 root     -22    0    0K   11M idle      schto     0:00  0.00%
i915/signal:2
53280 root     -22    0    0K   11M idle      schto     0:00  0.00%
i915/signal:1
28187 root      10    0    0K   11M idle      bored     0:00  0.00%
i915-userptr-acq
78907 root     -22    0    0K   11M idle      schto     0:00  0.00%
i915/signal:0
43975 root      10    0    0K   11M idle      bored     0:00  0.00%
i915_modeset
36920 root      10    0    0K   11M idle      bored     0:00  0.00% i915-dp
36071 root     -13    0    0K   11M idle      cleaner   0:00  0.00% cleaner
29469 root       2    0 1356K 1444K idle      select    0:00  0.00% sshd
31392 _smtpq     2    0 1736K 4296K idle      kqread    0:00  0.00% smtpd
29864 root       2    0 1704K 5052K idle      poll      0:00  0.00% smbd
  2827 root       2    0  552K 2236K idle      netio     0:00  0.00% syslogd
75797 _postgre   2    0  144M 4620K sleep/0   poll      0:00  0.00% postgres
72486 root       2    0 1788K 2100K idle      kqread    0:00  0.00% smtpd
22450 _sndio     2  -20  456K  812K idle      poll      0:00  0.00% sndiod
48589 _postgre   2    0  145M 4076K idle      poll      0:00  0.00% postgres
38159 _postgre   2    0  144M   13M idle      select    0:00  0.00% postgres
  8193 tkoskine   2    0 1380K 2912K sleep/0   select    0:00  0.00% sshd
50383 _ntp       2  -20 1024K 2872K sleep/0   poll      0:00  0.00% ntpd
  6750 root       3    0  332K 1304K idle      ttyin     0:00  0.00% getty
97446 root       2    0 1448K 4044K idle      poll      0:00  0.00% sshd
72553 _postgre   2    0  145M 4328K idle      poll      0:00  0.00% postgres
88574 root       2    0 1388K 2296K idle      kqread    0:00  0.00% httpd
33236 _smtpd     2    0 1472K 3948K idle      kqread    0:00  0.00% smtpd
58501 _pflogd    4    0  892K  580K sleep/1   bpf       0:00  0.00% pflogd
66286 root       2    0 1488K 2416K sleep/0   poll      0:00  0.00% nmbd
73168 _smtpd     2    0 1668K 4156K idle      kqread    0:00  0.00% smtpd

gurb:~:16$ systat -b uvm


    2 users Load 0.00 0.02 0.00 (1-21 of 31)                  gurb.koti
16:47:07

  ===== Page Counters        ===== Stats Counters       ===== Fault Counters
982460 npages              908312 FAULTS                     fltnoram
649976 free                536997 TRAPS                      fltnoanon
  82520 active              221075 intrs                      fltnoamap
  76039 inactive            700033 swtch                      fltpgwait
        paging              195524 softs                      fltpgrele
      5 wired                1331K SYSCALLS            121071 fltrelck
  83884 zeropages                  pageins             120874 fltrelckok
      4 reserve_pagedaemon         pgswapin            533653 FLTANGET
      6 reserve_kernel             pgswapout                  fltanretry
                               816 forks               132172 fltamcopy
  ===== Pageout Params           5 forks_ppwait         16017 fltnamap
  32748 freemin                 92 forks_sharevm       151031 FLTNOMAP
  43664 freetarg            225538 pga_zerohit         179414 FLTLGET
        inactarg             69498 pga_zeromiss        121071 fltget
327486 wiredmax                                       514974 FLT_ANON
     25 anonmin              ===== Daemon Counters      18679 flt_acow
     12 vtextmin                   pdwoke              164983 FLT_OBJ
     25 vnodemin                   pdrevs               14234 flt_prcopy
     10 anonminpct                 pdswout             195423 flt_przero
      5 vtextminpct                swpgonly
     10 vnodeminpct                pdfreed              ===== Swap Counters
                                   pdscans                  1 nswapdev
  ===== Misc Counters              pdanscan             2047K swpages
        fpswtch                    pdobscan                   swpginuse
     11 kmapent                    pdreact                    nswget
                                   pdbusy
  ===== Constants                  pdpageouts
   4096 pagesize                   pdpending
   4095 pagemask                   pddeact
     12 pageshift
gurb:~:17$ systat -b cpu


    2 users Load 0.00 0.01 0.00                               gurb.koti
16:47:20
CPU            User         Nice      System        Spin   Interrupt
    Idle
0              0.0%         0.0%        0.0%        0.0%        0.0%
    0.0%
1              0.0%         0.0%        0.0%        0.0%        0.0%
    0.0%
2              0.0%         0.0%        0.0%        0.0%        0.0%
    0.0%
3              0.0%         0.0%        0.0%        0.0%        0.0%
    0.0%
gurb:~:18$ uptime
  4:47PM  up 31 mins, 2 users, load averages: 0.00, 0.01, 0.00
gurb:~:19$


-Tero