Re: interrupt at 50% on dell E5450

2018-03-03 Thread vincent delft
I'm back with some interesting info :-).

By disabling each acpi module, I've discovered that the problem disappeared
when I disable "acpiprt" in UKC.

Based on the manpage, this module maps the PCI ...

So, I've disabled each PCI.

interrupts are gone when I disable "ichiic" in UKC :-)  .

(When I do not disable it it link to iic and then to spdmem0 (cfr dmesg in
my previous email))


After such desabling, the rest of the machine seams to work. But I have to
check ii more deeply.
At least "Top" says that my 8GB memory are still present


note: my laptop speaker is still making small noise when not muted.


Questions:
What is this modeule "ichiic" ? What am I missing by disabling it ?
Why this module create interruputs on this Dell machine (e5450) ?
Is there a link with the speaker ?


 rgds


Re: interrupt at 50% on dell E5450

2018-03-02 Thread vincent delft
Hello,

I've remarked that the speakers of the laptop are doing a small noise when
I do not listen music.
If I mute the speaker (mixerctl outputs.master.mute) this little noise
disappear.

I thought this was an Hardware issue. So, I've re-installed the orignial
disk I've received with the machine (which runs windows 10).
But when I run Windows, then there is no strange noise at all from the
speakers. Even when they are idle.
So, I don't think this noise in the speakers is an hardware issue.

So, it seems that azalia is generating some troubles. No ?

An another element ...
This strange noise is not in the headphone when I plug them.

No idea is this is related to the interrups problem.


rgds





whitout headphone
---

outputs.spkr_source=mix2
outputs.spkr_mute=off
outputs.spkr_eapd=on
outputs.hp_source=mix3
outputs.hp_mute=off
outputs.hp_boost=off
outputs.hp_eapd=on
outputs.line_source=mix2
outputs.line_mute=off
outputs.line_boost=off
outputs.line_eapd=on
outputs.hp_sense=unplugged
outputs.line_sense=unplugged
outputs.mic2_sense=unplugged
outputs.spkr_muters=hp,line
outputs.master=204,204
outputs.master.mute=off
outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp,line


With headphone
-

e5450:~$ mixerctl | grep outputs
outputs.spkr_source=mix2
outputs.spkr_mute=on
outputs.spkr_eapd=on
outputs.hp_source=mix3
outputs.hp_mute=off
outputs.hp_boost=off
outputs.hp_eapd=on
outputs.line_source=mix2
outputs.line_mute=off
outputs.line_boost=off
outputs.line_eapd=on
outputs.hp_sense=plugged
outputs.line_sense=unplugged
outputs.mic2_sense=unplugged
outputs.spkr_muters=hp,line
outputs.master=204,204
outputs.master.mute=off
outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp,line




On Thu, Mar 1, 2018 at 6:53 PM, vincent delft 
wrote:

> Hello Philip,
>
> After few minutes up, the vmstat result are the following:
> both executed within few seconds interval.
>
>
> vmstat -i
> 
> interrupt   total rate
> irq0/clock  48183  388
> irq0/ipi  1971
> irq144/acpi0   270
> irq145/inteldrm0 7419   59
> irq96/xhci0 67761  546
> irq114/em0 900
> irq176/azalia1  10
> irq115/iwm0130
> irq101/ehci0  1070
> irq102/ahci0   240
> irq146/pckbc0 2041
> Total  124026 1000
>
>
> vmstat -s
> 
>4096 bytes per page
> 2002400 pages managed
> 1900813 pages free
>5333 pages active
>9210 pages inactive
>   0 pages being paged out
>  49 pages wired
>  237608 pages zeroed
>   4 pages reserved for pagedaemon
>   6 pages reserved for kernel
>   0 swap pages
>   0 swap pages in use
>   0 total anon's in system
>   0 free anon's
>  193397 page faults
>  191678 traps
>19272320 interrupts
>   52590 cpu context switches
> 321 fpu context switches
>   81438 software interrupts
>  399151 syscalls
>   0 pagein operations
> 407 forks
>  25 forks where vmspace is shared
>  22 kernel map entries
>  165624 zeroed page hits
>2245 zeroed page misses
>   0 number of times the pagedaemon woke up
>   0 revolutions of the clock hand
>   0 pages freed by pagedaemon
>   0 pages scanned by pagedaemon
>   0 pages reactivated by pagedaemon
>   0 busy pages found by pagedaemon
>   30862 total name lookups
> cache hits (68% pos + 2% neg) system 0% per-directory
> deletions 5%, falsehits 0%, toolong 0%
>   0 select collisions
>
>
>
>
>
> On Thu, Mar 1, 2018 at 9:46 AM, Philip Guenther 
> wrote:
>
>> On Thu, Mar 1, 2018 at 12:37 AM, vincent delft 
>> wrote:
>>
>>> If I do a “boot –c” and “disable acpimadt” the machine does no more do
>>> lot
>>> of interrupts.
>>>
>>> But I miss lot of hardwares (2 cpu instead of 4, no mouse, …)
>>>
>>>
>>>
>>> Otherwise, I’ve tried to remove lot of CPU performance parameters in the
>>> Bios settings, but this has no effects.
>>>
>>>
>>>
>>> I’ve tried to disable HW elements like wifi, bluethoot, … But this has no
>>> effect on the number of interrupts.
>>>
>>
>> After a cold boot with acpimadt *enabled*, what's the output of "vmstat
>> -i" ?
>>
>>
>> Philip Guenther
>>
>> (You don't need to quote your previous message; there are list archives
>> and it just makes it more annoying to reply.)
>>
>>
>


Re: interrupt at 50% on dell E5450

2018-03-01 Thread vincent delft
Hello Philip,

After few minutes up, the vmstat result are the following:
both executed within few seconds interval.


vmstat -i

interrupt   total rate
irq0/clock  48183  388
irq0/ipi  1971
irq144/acpi0   270
irq145/inteldrm0 7419   59
irq96/xhci0 67761  546
irq114/em0 900
irq176/azalia1  10
irq115/iwm0130
irq101/ehci0  1070
irq102/ahci0   240
irq146/pckbc0 2041
Total  124026 1000


vmstat -s

   4096 bytes per page
2002400 pages managed
1900813 pages free
   5333 pages active
   9210 pages inactive
  0 pages being paged out
 49 pages wired
 237608 pages zeroed
  4 pages reserved for pagedaemon
  6 pages reserved for kernel
  0 swap pages
  0 swap pages in use
  0 total anon's in system
  0 free anon's
 193397 page faults
 191678 traps
   19272320 interrupts
  52590 cpu context switches
321 fpu context switches
  81438 software interrupts
 399151 syscalls
  0 pagein operations
407 forks
 25 forks where vmspace is shared
 22 kernel map entries
 165624 zeroed page hits
   2245 zeroed page misses
  0 number of times the pagedaemon woke up
  0 revolutions of the clock hand
  0 pages freed by pagedaemon
  0 pages scanned by pagedaemon
  0 pages reactivated by pagedaemon
  0 busy pages found by pagedaemon
  30862 total name lookups
cache hits (68% pos + 2% neg) system 0% per-directory
deletions 5%, falsehits 0%, toolong 0%
  0 select collisions





On Thu, Mar 1, 2018 at 9:46 AM, Philip Guenther  wrote:

> On Thu, Mar 1, 2018 at 12:37 AM, vincent delft 
> wrote:
>
>> If I do a “boot –c” and “disable acpimadt” the machine does no more do lot
>> of interrupts.
>>
>> But I miss lot of hardwares (2 cpu instead of 4, no mouse, …)
>>
>>
>>
>> Otherwise, I’ve tried to remove lot of CPU performance parameters in the
>> Bios settings, but this has no effects.
>>
>>
>>
>> I’ve tried to disable HW elements like wifi, bluethoot, … But this has no
>> effect on the number of interrupts.
>>
>
> After a cold boot with acpimadt *enabled*, what's the output of "vmstat
> -i" ?
>
>
> Philip Guenther
>
> (You don't need to quote your previous message; there are list archives
> and it just makes it more annoying to reply.)
>
>


Re: interrupt at 50% on dell E5450

2018-03-01 Thread Philip Guenther
On Thu, Mar 1, 2018 at 12:37 AM, vincent delft 
wrote:

> If I do a “boot –c” and “disable acpimadt” the machine does no more do lot
> of interrupts.
>
> But I miss lot of hardwares (2 cpu instead of 4, no mouse, …)
>
>
>
> Otherwise, I’ve tried to remove lot of CPU performance parameters in the
> Bios settings, but this has no effects.
>
>
>
> I’ve tried to disable HW elements like wifi, bluethoot, … But this has no
> effect on the number of interrupts.
>

After a cold boot with acpimadt *enabled*, what's the output of "vmstat -i"
?


Philip Guenther

(You don't need to quote your previous message; there are list archives and
it just makes it more annoying to reply.)


Re: interrupt at 50% on dell E5450

2018-03-01 Thread vincent delft
Hello,

If I do a “boot –c” and “disable acpimadt” the machine does no more do lot
of interrupts.

But I miss lot of hardwares (2 cpu instead of 4, no mouse, …)



Otherwise, I’ve tried to remove lot of CPU performance parameters in the
Bios settings, but this has no effects.



I’ve tried to disable HW elements like wifi, bluethoot, … But this has no
effect on the number of interrupts.


I've tried to disable  Virtualization Feature, but no effect neither.





Is there any commands I can use to better pin-point to root cause of the
problem ?




rgds





On Tue, Feb 27, 2018 at 7:24 PM, vincent delft 
wrote:

> Hello,
>
> I've just installed current on my new dell e5450, but encounter some
> troubles.
>
> 1 of the 4 display CPU in Top is heating 50% for interrupts.
>
> Concerning the installation process I did, I just followed the normal
> process by booting bsd.rd and performing a standard install by getting
> files from internet.
> So, at the reboot he installed automatically some firmwares: iwm, uvideo
> and vmm.
>
> I've removed those firmwares via pkg_delete, but the problem remains.
>
> on Bios level, I've not performed changes.
> Before booting, I've checked that "legacy" was activated, since it was,
> I've leave it as it is.
>
>
> Any ideas ?
>
> something I should de-activate ?
>
>
> Vincent
>
> ps:
> except that, I have 2 small problems:
> 1. the brightness button which does not work. xbacklight neither, but
> xrandr --brightness work well :-).
>
> 2. After a lid close (suspend), when I open it, the machine try to start,
> the screen appears very shortly but goes back in "sleeping". Pressing the
> power button make the system coming back to normal where it was.
> I see in dmesg message like: "acpivideo0: unknown event 0x00" when I close
> or open the lid.
> using the "moon" button does not create such problem. The suspend and
> resume work perfectly.
>
>
>
>
>
>
>
>
>
>
> TOP:
> --
>
> load averages:  0.03,  0.02,  0.00e5450.home.lan 18:39:24
> 28 processes: 27 idle, 1 on processor  up  0:02
> CPU0 states:  0.2% user,  0.0% nice,  0.5% system, 60.5% interrupt, 38.9%
> idle
> CPU1 states:  1.3% user,  0.0% nice,  1.2% system,  0.0% interrupt, 97.5%
> idle
> CPU2 states:  1.9% user,  0.0% nice,  0.7% system,  0.0% interrupt, 97.4%
> idle
> CPU3 states:  0.2% user,  0.0% nice,  1.4% system,  0.0% interrupt, 98.3%
> idle
> Memory: Real: 20M/391M act/tot Free: 7431M Cache: 283M Swap: 0K/4220M
>
>   PID USERNAME PRI NICE  SIZE   RES STATE WAIT  TIMECPU COMMAND
> 1 root  100  384K  428K idle  wait  0:01  0.00% init
>  8886 vi180  684K  796K sleep/2   pause 0:00  0.00% ksh
> 76946 _smtpq 20 1476K 3680K idle  kqread0:00  0.00% smtpd
> 14499 _smtpd 20 1392K 3640K idle  kqread0:00  0.00% smtpd
> 36195 root   20 1528K 2244K idle  kqread0:00  0.00% smtpd
> 33739 _smtpd 20 1472K 3704K idle  kqread0:00  0.00% smtpd
> 98349 _smtpd 20 1264K 3460K idle  kqread0:00  0.00% smtpd
> 19311 root   20  880K 1376K idle  select0:00  0.00% sshd
> 30693 _smtpd 20 1348K 3552K idle  kqread0:00  0.00% smtpd
> 30697 _smtpd 20 1264K 3512K idle  kqread0:00  0.00% smtpd
> 21077 _ntp   20  700K 2364K sleep/2   poll  0:00  0.00% ntpd
> 98937 root   30  312K 1252K idle  ttyin 0:00  0.00% getty
> 52645 root   30  312K 1256K idle  ttyin 0:00  0.00% getty
> 80044 root   30  316K 1252K idle  ttyin 0:00  0.00% getty
> 38165 _pflogd40  712K  532K sleep/2   bpf   0:00  0.00% pflogd
> 48738 _ntp   2  -20  756K 2448K sleep/2   poll  0:00  0.00% ntpd
> 23159 root   20  684K  616K idle  kqread0:00  0.00% slaacd
> 77351 _syslogd   20  932K 1616K sleep/3   kqread0:00  0.00% syslogd
>
> dmesg
> 
>
> OpenBSD 6.2-current (GENERIC.MP) #11: Mon Feb 26 19:16:54 MST 2018
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8456654848 <(845)%20665-4848> (8064MB)
> avail mem = 8193343488 <(819)%20334-3488> (7813MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xed750 (89 entries)
> bios0: vendor Dell Inc. version "A11" date 11/18/2015
> bios0: Dell Inc. Latitude E5450
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET SSDT UEFI SSDT ASF! SSDT
> SSDT SSDT SSDT PCCT SSDT SSDT SSDT SLIC MSDM DMAR
> acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4)
> PEG2(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4)
> RP04(S4) PXSX(S4) RP05(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz, 2694.16 MHz
> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,AP

interrupt at 50% on dell E5450

2018-02-27 Thread vincent delft
Hello,

I've just installed current on my new dell e5450, but encounter some
troubles.

1 of the 4 display CPU in Top is heating 50% for interrupts.

Concerning the installation process I did, I just followed the normal
process by booting bsd.rd and performing a standard install by getting
files from internet.
So, at the reboot he installed automatically some firmwares: iwm, uvideo
and vmm.

I've removed those firmwares via pkg_delete, but the problem remains.

on Bios level, I've not performed changes.
Before booting, I've checked that "legacy" was activated, since it was,
I've leave it as it is.


Any ideas ?

something I should de-activate ?


Vincent

ps:
except that, I have 2 small problems:
1. the brightness button which does not work. xbacklight neither, but
xrandr --brightness work well :-).

2. After a lid close (suspend), when I open it, the machine try to start,
the screen appears very shortly but goes back in "sleeping". Pressing the
power button make the system coming back to normal where it was.
I see in dmesg message like: "acpivideo0: unknown event 0x00" when I close
or open the lid.
using the "moon" button does not create such problem. The suspend and
resume work perfectly.










TOP:
--

load averages:  0.03,  0.02,  0.00e5450.home.lan 18:39:24
28 processes: 27 idle, 1 on processor  up  0:02
CPU0 states:  0.2% user,  0.0% nice,  0.5% system, 60.5% interrupt, 38.9%
idle
CPU1 states:  1.3% user,  0.0% nice,  1.2% system,  0.0% interrupt, 97.5%
idle
CPU2 states:  1.9% user,  0.0% nice,  0.7% system,  0.0% interrupt, 97.4%
idle
CPU3 states:  0.2% user,  0.0% nice,  1.4% system,  0.0% interrupt, 98.3%
idle
Memory: Real: 20M/391M act/tot Free: 7431M Cache: 283M Swap: 0K/4220M

  PID USERNAME PRI NICE  SIZE   RES STATE WAIT  TIMECPU COMMAND
1 root  100  384K  428K idle  wait  0:01  0.00% init
 8886 vi180  684K  796K sleep/2   pause 0:00  0.00% ksh
76946 _smtpq 20 1476K 3680K idle  kqread0:00  0.00% smtpd
14499 _smtpd 20 1392K 3640K idle  kqread0:00  0.00% smtpd
36195 root   20 1528K 2244K idle  kqread0:00  0.00% smtpd
33739 _smtpd 20 1472K 3704K idle  kqread0:00  0.00% smtpd
98349 _smtpd 20 1264K 3460K idle  kqread0:00  0.00% smtpd
19311 root   20  880K 1376K idle  select0:00  0.00% sshd
30693 _smtpd 20 1348K 3552K idle  kqread0:00  0.00% smtpd
30697 _smtpd 20 1264K 3512K idle  kqread0:00  0.00% smtpd
21077 _ntp   20  700K 2364K sleep/2   poll  0:00  0.00% ntpd
98937 root   30  312K 1252K idle  ttyin 0:00  0.00% getty
52645 root   30  312K 1256K idle  ttyin 0:00  0.00% getty
80044 root   30  316K 1252K idle  ttyin 0:00  0.00% getty
38165 _pflogd40  712K  532K sleep/2   bpf   0:00  0.00% pflogd
48738 _ntp   2  -20  756K 2448K sleep/2   poll  0:00  0.00% ntpd
23159 root   20  684K  616K idle  kqread0:00  0.00% slaacd
77351 _syslogd   20  932K 1616K sleep/3   kqread0:00  0.00% syslogd

dmesg


OpenBSD 6.2-current (GENERIC.MP) #11: Mon Feb 26 19:16:54 MST 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8456654848 <(845)%20665-4848> (8064MB)
avail mem = 8193343488 <(819)%20334-3488> (7813MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xed750 (89 entries)
bios0: vendor Dell Inc. version "A11" date 11/18/2015
bios0: Dell Inc. Latitude E5450
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET SSDT UEFI SSDT ASF! SSDT
SSDT SSDT SSDT PCCT SSDT SSDT SSDT SLIC MSDM DMAR
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4)
PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4)
PXSX(S4) RP05(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz, 2694.16 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,NXE,PAGE1GB,
RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,
AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
acpitimer0: recalibrated TSC frequency 2294695314 <(229)%20469-5314> 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 2 (application processor)
cpu1: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz, 2693.77 MHz
cpu1: FPU,VME,DE,PSE,TSC,