linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PROBLEM: cpuidle: Quickly notice prediction failure for repeat mode
@ 2013-12-19 19:51 Mark Oteiza
  2013-12-19 19:58 ` Mark Oteiza
  2013-12-19 20:11 ` Daniel Lezcano
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Oteiza @ 2013-12-19 19:51 UTC (permalink / raw)
  To: linux-pm

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

Hi,

Commit 1485191 causes a regression on my hardware (laptop) manifesting
itself as increased power consumption when playing music on mpd using
pulseaudio.

I bisected to find 1485191.  I tested the commit it reverts (69a37bea),
and the commit prior 69a37bea, e34a00d6.  Here's a summary:

  status      sha   power  coretemp
  ---------------------------------
  BAD    14851912     14W       54C
  GOOD   228b3023      9W       47C
  GOOD   69a37bea   ~8.8W       47C
  GOOD   e45a00d6   ~9.3W       47C

I thought it was strange that it happens only with that combination of
audio software, so I was happy to patch out that changeset which was bad
for me.  Past 3.12 (now on 3.12.5), the issue persists and I'm not sure
I can easily merge anymore.

I attached some info I hope will be helpful.

Thanks,

-- 
Mark Oteiza

[-- Attachment #2: cpuidle.log --]
[-- Type: text/plain, Size: 216 bytes --]

??\x1f?\x06?{k\x1c?*m????X??\x1d???\x1c??n?w????u?(u?e??"?Mi?[\x1ej?b??lkm??[\x1ej?b?\b??O??o???y?????t??u????g???]???zjm?????.??.j\??f????jz%v???*'
??j????^r??z{f?x?jZ????zg????\x0e?.???j?????jx\x1e???.)??\x1a%?????@D!?H??DA\f=4??7??mu?M\x02\x11=??||??

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PROBLEM: cpuidle: Quickly notice prediction failure for repeat mode
  2013-12-19 19:51 PROBLEM: cpuidle: Quickly notice prediction failure for repeat mode Mark Oteiza
@ 2013-12-19 19:58 ` Mark Oteiza
  2013-12-19 20:11 ` Daniel Lezcano
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Oteiza @ 2013-12-19 19:58 UTC (permalink / raw)
  To: linux-pm

[-- Attachment #1: Type: text/plain, Size: 141 bytes --]

On 19/12/13 at 02:51pm, Mark Oteiza wrote:
> I attached some info I hope will be helpful.

and it seems to have been corrupt
-- 
Mark Oteiza

[-- Attachment #2: cpuidle.log --]
[-- Type: text/plain, Size: 20925 bytes --]

# 1. software
# 2. scripts/ver_linux
# 3. /proc/cpuinfo
# 4. dmidecode
# 5. lspci -vk

# 1.
pulseaudio-alsa 2-2
pulseaudio-git 4.0+332+g6f954c7-1
mpd 0.18.5-1

# 2.
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
 
Linux holos 3.12.4-1-ARCH #1 SMP PREEMPT Sun Dec 8 21:18:00 CET 2013 x86_64 GNU/Linux
 
Gnu C                  4.8.2
Gnu make               4.0
binutils               2.23.2
util-linux             2.24
mount                  assert
module-init-tools      15
e2fsprogs              1.42.8
jfsutils               1.1.15
xfsprogs               3.1.11
PPP                    2.4.5
Linux C Library        2.18
Dynamic linker (ldd)   2.18
Linux C++ Library      6.0.18
Procps                 3.3.9
Kbd                    2.0.1
Sh-utils               8.21
wireless-tools         29
Modules Loaded         nls_cp437 vfat fat usb_storage uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media btusb bluetooth ipt_REJECT xt_LOG xt_tcpudp xt_multiport xt_recent xt_conntrack iptable_filter ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables dm_crypt blowfish_generic blowfish_x86_64 blowfish_common ecb des_generic cast5_avx_x86_64 cast5_generic cast_common cbc twofish_generic twofish_avx_x86_64 twofish_x86_64_3way twofish_x86_64 twofish_common serpent_avx_x86_64 serpent_sse2_x86_64 serpent_generic xts algif_skcipher af_alg x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crct10dif_common crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd arc4 tpm_infineon rtsx_pci_sdmmc dm_mod iwldvm mmc_core rtsx_pci_ms memstick mac80211 fuse iTCO_wdt iTCO_vendor_support microcode psmouse serio_raw iwlwifi sr_mod cdrom pcspkr snd_hda_codec_realtek radeon cfg80211 r8169 xhci_hcd rtsx_pci mii ttm thermal snd_hda_intel sony_laptop battery rfkill snd_hda_codec tpm_tis tpm tpm_bios snd_hwdep evdev ehci_pci snd_pcm ac ehci_hcd snd_page_alloc snd_timer usbcore i2c_i801 snd soundcore mei_me usb_common mei shpchp lpc_ich processor loop ext4 crc16 mbcache jbd2 ahci libahci libata sd_mod scsi_mod i915 video button i2c_algo_bit intel_agp intel_gtt drm_kms_helper drm i2c_core

# 3.
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 42
model name	: Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz
stepping	: 7
microcode	: 0x14
cpu MHz		: 1232.421
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4990.58
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

# 4.
# dmidecode 2.12
SMBIOS 2.6 present.
21 structures occupying 864 bytes.
Table at 0x000E6020.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
	Vendor: INSYDE
	Version: R2087H4
	Release Date: 06/15/2012
	ROM Size: 2560 kB
	Characteristics:
		PNP is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		Boot from CD is supported
		Selectable boot is supported
		EDD is supported
		8042 keyboard services are supported (int 9h)
		CGA/mono video services are supported (int 10h)
		ACPI is supported
		USB legacy is supported
		Smart battery is supported
		BIOS boot specification is supported
		Function key-initiated network boot is supported
		Targeted content distribution is supported
	BIOS Revision: 20.87
	Firmware Revision: 20.87

Handle 0x0001, DMI type 1, 27 bytes
System Information
	Manufacturer: Sony Corporation
	Product Name: VPCSA490X
	Version: C60A9X59
	Serial Number: 54249525-0000468
	UUID: 658D7E60-7C15-11E1-863F-1DD8385A413C
	Wake-up Type: Power Switch
	SKU Number: N/A
	Family: VAIO

Handle 0x0002, DMI type 2, 10 bytes
Base Board Information
	Manufacturer: Sony Corporation
	Product Name: VAIO
	Version: N/A
	Serial Number: N/A
	Asset Tag: N/A
	Features:
		Board is a hosting board

Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
	Manufacturer: Sony Corporation
	Type: Notebook
	Lock: Not Present
	Version: N/A
	Serial Number: N/A
	Asset Tag: N/A
	Boot-up State: Safe
	Power Supply State: Safe
	Thermal State: Safe
	Security Status: None
	OEM Information: 0x00000000

Handle 0x0004, DMI type 11, 5 bytes
OEM Strings
	String 1: 1057772965A
	String 2: FNC-EXTB
	String 3: ARWB3Ea_4JQZQRrA2S7Yqj89mU7YqWd1mUBI2Wd1ujBI2S7Xv_
	String 4: Reserved
	String 5: 7.1.13.1088

Handle 0x0005, DMI type 13, 22 bytes
BIOS Language Information
	Language Description Format: Long
	Installable Languages: 1
		en|US|iso8859-1
	Currently Installed Language: en|US|iso8859-1

Handle 0x0006, DMI type 32, 20 bytes
System Boot Information
	Status: No errors detected

Handle 0x0007, DMI type 136, 11 bytes
OEM-specific Type
	Header and Data:
		88 0B 07 00 01 44 49 52 53 09 05
	Strings:
		SRID

Handle 0x0008, DMI type 129, 8 bytes
OEM-specific Type
	Header and Data:
		81 08 08 00 01 01 02 01
	Strings:
		Intel_ASF
		Intel_ASF_001

Handle 0x0009, DMI type 130, 20 bytes
OEM-specific Type
	Header and Data:
		82 14 09 00 24 41 4D 54 01 01 01 01 01 A5 1F 02
		00 00 00 00

Handle 0x000A, DMI type 131, 64 bytes
OEM-specific Type
	Header and Data:
		83 40 0A 00 31 00 00 00 07 00 00 00 00 00 35 00
		F8 00 4B 1C FF FF FF FF 19 00 00 00 01 00 07 00
		40 04 0D 00 80 00 C2 9A C8 00 FF FF 00 00 00 05
		91 00 00 00 76 00 00 00 76 50 72 6F 00 00 00 00

Handle 0x000B, DMI type 16, 15 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: Unknown
	Error Information Handle: Not Provided
	Number Of Devices: 2

Handle 0x000C, DMI type 17, 21 bytes
Memory Device
	Array Handle: 0x000B
	Error Information Handle: Not Provided
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 4096 MB
	Form Factor: SODIMM
	Set: None
	Locator: SODIMM1
	Bank Locator: Bank 0
	Type: DDR3
	Type Detail: Unknown

Handle 0x000D, DMI type 20, 19 bytes
Memory Device Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x000FFFFFFFF
	Range Size: 4 GB
	Physical Device Handle: 0x000C
	Memory Array Mapped Address Handle: 0x000F
	Partition Row Position: Unknown
	Interleave Position: Unknown
	Interleaved Data Depth: Unknown

Handle 0x000E, DMI type 17, 21 bytes
Memory Device
	Array Handle: 0x000B
	Error Information Handle: Not Provided
	Total Width: Unknown
	Data Width: Unknown
	Size: No Module Installed
	Form Factor: SODIMM
	Set: None
	Locator: SODIMM2
	Bank Locator: Bank 1
	Type: Unknown
	Type Detail: Unknown

Handle 0x000F, DMI type 19, 15 bytes
Memory Array Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x000FFFFFFFF
	Range Size: 4 GB
	Physical Array Handle: 0x000B
	Partition Width: 2

Handle 0x0010, DMI type 4, 40 bytes
Processor Information
	Socket Designation: N/A
	Type: Central Processor
	Family: Core i5
	Manufacturer: GenuineIntel
	ID: A7 06 02 00 FF FB EB BF
	Signature: Type 0, Family 6, Model 42, Stepping 7
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		DS (Debug store)
		ACPI (ACPI supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		SS (Self-snoop)
		HTT (Multi-threading)
		TM (Thermal monitor supported)
		PBE (Pending break enabled)
	Version: Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz
	Voltage: 1.4 V
	External Clock: 100 MHz
	Max Speed: 2500 MHz
	Current Speed: 2500 MHz
	Status: Populated, Enabled
	Upgrade: None
	L1 Cache Handle: 0x0011
	L2 Cache Handle: 0x0012
	L3 Cache Handle: 0x0013
	Serial Number: N/A
	Asset Tag: N/A
	Part Number: N/A
	Core Count: 2
	Core Enabled: 2
	Thread Count: 4
	Characteristics:
		64-bit capable

Handle 0x0011, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L1 Cache
	Configuration: Enabled, Not Socketed, Level 1
	Operational Mode: Write Through
	Location: Internal
	Installed Size: 128 kB
	Maximum Size: 128 kB
	Supported SRAM Types:
		Unknown
	Installed SRAM Type: Unknown
	Speed: Unknown
	Error Correction Type: Parity
	System Type: Unknown
	Associativity: Unknown

Handle 0x0012, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L2 Cache
	Configuration: Enabled, Not Socketed, Level 2
	Operational Mode: Write Through
	Location: Internal
	Installed Size: 512 kB
	Maximum Size: 512 kB
	Supported SRAM Types:
		Unknown
	Installed SRAM Type: Unknown
	Speed: Unknown
	Error Correction Type: Single-bit ECC
	System Type: Unified
	Associativity: 8-way Set-associative

Handle 0x0013, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L3 Cache
	Configuration: Enabled, Not Socketed, Level 3
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 3072 kB
	Maximum Size: 3072 kB
	Supported SRAM Types:
		Unknown
	Installed SRAM Type: Unknown
	Speed: Unknown
	Error Correction Type: Single-bit ECC
	System Type: Unified
	Associativity: 12-way Set-associative

Handle 0x0014, DMI type 127, 4 bytes
End Of Table

# 5. lspci -vk
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
	Subsystem: Sony Corporation Device 907b
	Flags: bus master, fast devsel, latency 0
	Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 00007000-00007fff
	Memory behind bridge: c8400000-c93fffff
	Prefetchable memory behind bridge: 00000000a0000000-00000000afffffff
	Capabilities: [88] Subsystem: Sony Corporation Device 907b
	Capabilities: [80] Power Management version 3
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [a0] Express Root Port (Slot+), MSI 00
	Capabilities: [100] Virtual Channel
	Capabilities: [140] Root Complex Link
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Sony Corporation Device 907b
	Flags: bus master, fast devsel, latency 0, IRQ 41
	Memory at c0000000 (64-bit, non-prefetchable) [size=4M]
	Memory at b0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 8000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 2
	Capabilities: [a4] PCI Advanced Features
	Kernel driver in use: i915
	Kernel modules: i915

00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
	Subsystem: Sony Corporation Device 907b
	Flags: bus master, fast devsel, latency 0, IRQ 44
	Memory at c9404000 (64-bit, non-prefetchable) [size=16]
	Capabilities: [50] Power Management version 3
	Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Kernel driver in use: mei
	Kernel modules: mei

00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) (prog-if 20 [EHCI])
	Subsystem: Sony Corporation Device 907b
	Flags: medium devsel, IRQ 23
	Memory at c9409000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [50] Power Management version 2
	Capabilities: [58] Debug port: BAR=1 offset=00a0
	Capabilities: [98] PCI Advanced Features
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci_hcd

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
	Subsystem: Sony Corporation Device 907b
	Flags: bus master, fast devsel, latency 0, IRQ 45
	Memory at c9400000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
	Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
	Capabilities: [100] Virtual Channel
	Capabilities: [130] Root Complex Link
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 00006000-00006fff
	Memory behind bridge: c7400000-c83fffff
	Prefetchable memory behind bridge: 00000000c0400000-00000000c13fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: Sony Corporation Device 907b
	Capabilities: [a0] Power Management version 2
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	I/O behind bridge: 00005000-00005fff
	Memory behind bridge: c6400000-c73fffff
	Prefetchable memory behind bridge: 00000000c1400000-00000000c23fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: Sony Corporation Device 907b
	Capabilities: [a0] Power Management version 2
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b4) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
	I/O behind bridge: 00004000-00004fff
	Memory behind bridge: c5400000-c63fffff
	Prefetchable memory behind bridge: 00000000c2400000-00000000c33fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: Sony Corporation Device 907b
	Capabilities: [a0] Power Management version 2
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
	I/O behind bridge: 00003000-00003fff
	Memory behind bridge: c4400000-c53fffff
	Prefetchable memory behind bridge: 00000000c3400000-00000000c43fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: Sony Corporation Device 907b
	Capabilities: [a0] Power Management version 2
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) (prog-if 20 [EHCI])
	Subsystem: Sony Corporation Device 907b
	Flags: medium devsel, IRQ 20
	Memory at c9408000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [50] Power Management version 2
	Capabilities: [58] Debug port: BAR=1 offset=00a0
	Capabilities: [98] PCI Advanced Features
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci_hcd

00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 04)
	Subsystem: Sony Corporation Device 907b
	Flags: bus master, medium devsel, latency 0
	Capabilities: [e0] Vendor Specific Information: Len=0c <?>
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich

00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
	Subsystem: Sony Corporation Device 907b
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 42
	I/O ports at 8088 [size=8]
	I/O ports at 8094 [size=4]
	I/O ports at 8080 [size=8]
	I/O ports at 8090 [size=4]
	I/O ports at 8060 [size=32]
	Memory at c9407000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [70] Power Management version 3
	Capabilities: [a8] SATA HBA v1.0
	Capabilities: [b0] PCI Advanced Features
	Kernel driver in use: ahci
	Kernel modules: ahci

00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
	Subsystem: Sony Corporation Device 907b
	Flags: medium devsel, IRQ 22
	Memory at c9405000 (64-bit, non-prefetchable) [size=256]
	I/O ports at 8040 [size=32]
	Kernel modules: i2c_i801

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] (rev ff) (prog-if ff)
	!!! Unknown header type 7f
	Kernel driver in use: radeon
	Kernel modules: radeon

02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6230 [Rainbow Peak] (rev 34)
	Subsystem: Intel Corporation Centrino Advanced-N 6230 AGN
	Flags: bus master, fast devsel, latency 0, IRQ 52
	Memory at c7400000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: [c8] Power Management version 3
	Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [e0] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number 88-53-2e-ff-ff-d8-f7-43
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
	Subsystem: Sony Corporation Device 907b
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at c6400000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00
	Kernel driver in use: rts_pstor
	Kernel modules: rts_pstor

04:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04) (prog-if 30 [XHCI])
	Subsystem: Sony Corporation Device 907b
	Flags: fast devsel, IRQ 18
	Memory at c5400000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: [50] Power Management version 3
	Capabilities: [70] MSI: Enable- Count=1/8 Maskable- 64bit+
	Capabilities: [90] MSI-X: Enable+ Count=8 Masked-
	Capabilities: [a0] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number ff-ff-ff-ff-ff-ff-ff-ff
	Capabilities: [150] Latency Tolerance Reporting
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_hcd

05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 06)
	Subsystem: Sony Corporation Device 907b
	Flags: bus master, fast devsel, latency 0, IRQ 51
	I/O ports at 3000 [size=256]
	Memory at c3404000 (64-bit, prefetchable) [size=4K]
	Memory at c3400000 (64-bit, prefetchable) [size=16K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 01
	Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
	Capabilities: [d0] Vital Product Data
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Virtual Channel
	Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
	Kernel driver in use: r8169
	Kernel modules: r8169


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PROBLEM: cpuidle: Quickly notice prediction failure for repeat mode
  2013-12-19 19:51 PROBLEM: cpuidle: Quickly notice prediction failure for repeat mode Mark Oteiza
  2013-12-19 19:58 ` Mark Oteiza
@ 2013-12-19 20:11 ` Daniel Lezcano
  2013-12-20 22:54   ` Mark Oteiza
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Lezcano @ 2013-12-19 20:11 UTC (permalink / raw)
  To: Mark Oteiza, linux-pm

On 12/19/2013 08:51 PM, Mark Oteiza wrote:
> Hi,
>
> Commit 1485191 causes a regression on my hardware (laptop) manifesting
> itself as increased power consumption when playing music on mpd using
> pulseaudio.
>
> I bisected to find 1485191.  I tested the commit it reverts (69a37bea),
> and the commit prior 69a37bea, e34a00d6.  Here's a summary:
>
>    status      sha   power  coretemp
>    ---------------------------------
>    BAD    14851912     14W       54C
>    GOOD   228b3023      9W       47C
>    GOOD   69a37bea   ~8.8W       47C
>    GOOD   e45a00d6   ~9.3W       47C

Hi Mark,

thanks for the measurements.

Is it possible you do some perf benchmarking. IIRC, this patch was 
reverted because it introduced some perf regression.

   -- Daniel

>
> I thought it was strange that it happens only with that combination of
> audio software, so I was happy to patch out that changeset which was bad
> for me.  Past 3.12 (now on 3.12.5), the issue persists and I'm not sure
> I can easily merge anymore.
>
> I attached some info I hope will be helpful.
>
> Thanks,
>


-- 
  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PROBLEM: cpuidle: Quickly notice prediction failure for repeat mode
  2013-12-19 20:11 ` Daniel Lezcano
@ 2013-12-20 22:54   ` Mark Oteiza
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Oteiza @ 2013-12-20 22:54 UTC (permalink / raw)
  To: Daniel Lezcano; +Cc: linux-pm

[-- Attachment #1: Type: text/plain, Size: 908 bytes --]

On 19/12/13 at 09:11pm, Daniel Lezcano wrote:
> On 12/19/2013 08:51 PM, Mark Oteiza wrote:
> >Hi,
> >
> >Commit 1485191 causes a regression on my hardware (laptop) manifesting
> >itself as increased power consumption when playing music on mpd using
> >pulseaudio.
> >
> >I bisected to find 1485191.  I tested the commit it reverts (69a37bea),
> >and the commit prior 69a37bea, e34a00d6.  Here's a summary:
> >
> >   status      sha   power  coretemp
> >   ---------------------------------
> >   BAD    14851912     14W       54C
> >   GOOD   228b3023      9W       47C
> >   GOOD   69a37bea   ~8.8W       47C
> >   GOOD   e45a00d6   ~9.3W       47C
> 
> Hi Mark,
> 
> thanks for the measurements.
> 
> Is it possible you do some perf benchmarking. IIRC, this patch was reverted
> because it introduced some perf regression.
> 
>   -- Daniel

Hi,

I hope the attached perf stats are useful.

-- 
Mark Oteiza

[-- Attachment #2: perf.txt --]
[-- Type: text/plain, Size: 15439 bytes --]

vim: ft=asciidoc

1. Test description
   a. Common part
   b. Varying configuration
2. Result summary
3. Raw perf stat


1. Test description

   a. Common part

All tests using `perf stat -B -p PID` and playing out the track `Boom Jinx
- Too Free To Follow (Original Mix)`. Track length 9:25 (565 seconds).

  Input #0, mp3, from '129225_Too_Free_To_Follow_Original_Mix.mp3':
    Metadata:
      encoder         : LAME v3.96.1
      artist          : Boom Jinx
      title           : Too Free To Follow (Original Mix)
      album           : Come Play Perfect / Too Free To Follow
      genre           : Progressive House
      publisher       : Anjunadeep
      track           : 2/3
      date            : 2006
      TDOR            : 2006-01-01
      TBPM            : 125
    Duration: 00:09:24.82, start: 0.000000, bitrate: 323 kb/s

The following three tests are on `3.12.5-1-ARCH`

   b. Varying configuration

The tests are done with the following `mpd.conf`:

 > # ~/.config/mpd/mpd.conf
 >
 > music_directory    "/media/music"
 > playlist_directory "~/.local/share/mpd/playlists"
 > db_file            "~/.local/share/mpd/mpd.db"
 > log_file           "~/.local/share/mpd/mpd.log"
 > pid_file           "~/.local/share/mpd/mpd.pid"
 > state_file         "~/.local/share/mpd/mpdstate"
 >
 > audio_output {
 >   type    "pulse"
 >   name    "PulseAudio"
 > }

in one of three situations/configurations:

  A. alsa only, no pulse running, audio_output block commented
  B. pulse running, audio_output block commented
  C. pulse running, audio_output block NOT commented

These three configurations are tested on the latest vanilla Arch Linux kernel
3.12.5-1-ARCH, and a patched 3.11.6-1-ARCH kernel with 1485191 reverted.


2. Result summary


On vanilla kernel `3.12.5-1-ARCH`

 Test  Cpufreq             Frontend cyc. id.  Backend cyc. id.  Percent of all branches
 --------------------------------------------------------------------------------------
 A     1.399 GHz [96.81%]  43.74% [96.86%]    11.98% [13.09%]   1.50% [96.38%]
 A     1.324 GHz [96.41%]  42.61% [96.80%]    11.76% [13.08%]   1.51% [96.94%]
 B     1.858 GHz [79.91%]  47.34% [84.83%]    37.68% [80.26%]   4.15% [65.01%]
 B     1.923 GHz [71.58%]  46.24% [90.12%]    36.23% [82.24%]   4.77% [64.75%]
 C     2.479 GHz [82.12%]  52.43% [94.14%]    39.01% [88.21%]   4.75% [41.09%]
 C     2.486 GHz [93.97%]  53.46% [94.14%]    39.26% [88.01%]   5.97% [29.84%]

On kernel `3.11.6-1-ARCH` with commit 1485191 reverted.

 Test  Cpufreq             Frontend cyc. id.  Backend cyc. id.  Percent of all branches
 --------------------------------------------------------------------------------------
 A     1.207 GHz [96.77%]  44.12% [96.74%]    11.92% [13.09%]   1.48% [96.41%]
 A     1.093 GHz [45.20%]  43.97% [96.89%]    26.83% [93.31%]   1.73% [67.77%]
 B     1.569 GHz [78.11%]  40.73% [69.44%]    36.53% [80.72%]   4.52% [80.75%]
 B     1.655 GHz [53.47%]  42.10% [82.75%]    34.82% [81.95%]   4.36% [90.81%]
 C     1.863 GHz [82.98%]  51.42% [84.33%]    37.72% [80.99%]   3.81% [67.46%]
 C     1.893 GHz [88.14%]  51.51% [70.09%]    30.86% [59.34%]   3.52% [88.33%]


3. Raw perf stat


### Test A ###
$ perf stat -B -p 5779
^C
 Performance counter stats for process id '5779':

      19269.559713 task-clock                #    0.034 CPUs utilized
            29,092 context-switches          #    0.002 M/sec
               450 cpu-migrations            #    0.023 K/sec
               780 page-faults               #    0.040 K/sec
    26,953,017,361 cycles                    #    1.399 GHz                     [96.81%]
    11,788,193,213 stalled-cycles-frontend   #   43.74% frontend cycles idle    [96.86%]
     3,229,712,476 stalled-cycles-backend    #   11.98% backend  cycles idle    [13.09%]
    12,790,505,825 instructions              #    0.47  insns per cycle
                                             #    0.92  stalled cycles per insn [83.78%]
     3,789,342,481 branches                  #  196.649 M/sec                   [96.86%]
        56,708,247 branch-misses             #    1.50% of all branches         [96.38%]

     567.364674495 seconds time elapsed


### Test B ###
$ perf stat -B -p 21640 # pulse, mpd autodetect, GOOD
^C
 Performance counter stats for process id '21640':

       5461.629046 task-clock                #    0.010 CPUs utilized
           125,451 context-switches          #    0.023 M/sec
             2,953 cpu-migrations            #    0.541 K/sec
             1,224 page-faults               #    0.224 K/sec
    10,146,727,107 cycles                    #    1.858 GHz                     [79.91%]
     4,803,761,857 stalled-cycles-frontend   #   47.34% frontend cycles idle    [84.83%]
     3,822,947,306 stalled-cycles-backend    #   37.68% backend  cycles idle    [80.26%]
    14,068,598,186 instructions              #    1.39  insns per cycle
                                             #    0.34  stalled cycles per insn [90.26%]
     1,203,848,486 branches                  #  220.419 M/sec                   [90.01%]
        49,929,970 branch-misses             #    4.15% of all branches         [65.01%]

     566.998160291 seconds time elapsed

### Test C ###
$ perf stat -B -p 22293 # pulse, pulse configured audio_device, BAD
^C
 Performance counter stats for process id '22293':

       5039.684394 task-clock                #    0.009 CPUs utilized
           201,452 context-switches          #    0.040 M/sec
             3,931 cpu-migrations            #    0.780 K/sec
             1,013 page-faults               #    0.201 K/sec
    12,491,465,987 cycles                    #    2.479 GHz                     [82.12%]
     6,549,588,957 stalled-cycles-frontend   #   52.43% frontend cycles idle    [94.14%]
     4,872,604,722 stalled-cycles-backend    #   39.01% backend  cycles idle    [88.21%]
    16,043,214,477 instructions              #    1.28  insns per cycle
                                             #    0.41  stalled cycles per insn [94.27%]
     1,432,475,493 branches                  #  284.239 M/sec                   [94.45%]
        68,002,415 branch-misses             #    4.75% of all branches         [41.09%]

     567.793946819 seconds time elapsed


### Test B ###
$ perf stat -B -p 25849 # pulse, autodetect, OK?
^C
 Performance counter stats for process id '25849':

       4828.312531 task-clock                #    0.008 CPUs utilized
            52,635 context-switches          #    0.011 M/sec
             2,920 cpu-migrations            #    0.605 K/sec
             1,060 page-faults               #    0.220 K/sec
     9,283,525,030 cycles                    #    1.923 GHz                     [71.58%]
     4,292,859,154 stalled-cycles-frontend   #   46.24% frontend cycles idle    [90.12%]
     3,363,024,956 stalled-cycles-backend    #   36.23% backend  cycles idle    [82.24%]
    13,214,633,730 instructions              #    1.42  insns per cycle
                                             #    0.32  stalled cycles per insn [91.05%]
     1,039,288,777 branches                  #  215.249 M/sec                   [91.32%]
        49,566,186 branch-misses             #    4.77% of all branches         [64.75%]

     575.362641552 seconds time elapsed

### Test C ###
# 13-18W
$ perf stat -B -p 26349 # pulse, configured audio_output. BAD
^C
 Performance counter stats for process id '26349':

       4928.812937 task-clock                #    0.009 CPUs utilized
           208,121 context-switches          #    0.042 M/sec
             4,009 cpu-migrations            #    0.813 K/sec
             1,013 page-faults               #    0.206 K/sec
    12,253,718,423 cycles                    #    2.486 GHz                     [93.97%]
     6,550,856,654 stalled-cycles-frontend   #   53.46% frontend cycles idle    [94.14%]
     4,810,974,054 stalled-cycles-backend    #   39.26% backend  cycles idle    [88.01%]
    16,108,633,255 instructions              #    1.31  insns per cycle
                                             #    0.41  stalled cycles per insn [94.10%]
     1,445,452,744 branches                  #  293.266 M/sec                   [94.04%]
        86,270,136 branch-misses             #    5.97% of all branches         [29.84%]

     568.702015081 seconds time elapsed


### Test A ###
# alsa only , no config block GOOD
$ perf stat -B -p 26696
^C
 Performance counter stats for process id '26696':

      20122.934921 task-clock                #    0.035 CPUs utilized
            29,070 context-switches          #    0.001 M/sec
               281 cpu-migrations            #    0.014 K/sec
             1,020 page-faults               #    0.051 K/sec
    26,643,218,399 cycles                    #    1.324 GHz                     [96.41%]
    11,352,679,468 stalled-cycles-frontend   #   42.61% frontend cycles idle    [96.80%]
     3,132,458,091 stalled-cycles-backend    #   11.76% backend  cycles idle    [13.08%]
    46,389,485,704 instructions              #    1.74  insns per cycle
                                             #    0.24  stalled cycles per insn [96.90%]
     3,788,903,036 branches                  #  188.288 M/sec                   [96.77%]
        57,166,014 branch-misses             #    1.51% of all branches         [96.94%]

     568.255786926 seconds time elapsed


On `3.11.6-1-ARCH` with commit 1485191 reverted.

### Test A ###
# alsa only, GOOD
$ perf stat -B -p 1260
^C
 Performance counter stats for process id '1260':

      22530.387748 task-clock                #    0.039 CPUs utilized
            29,028 context-switches          #    0.001 M/sec
               260 cpu-migrations            #    0.012 K/sec
               916 page-faults               #    0.041 K/sec
    27,183,889,434 cycles                    #    1.207 GHz                     [96.77%]
    11,992,731,634 stalled-cycles-frontend   #   44.12% frontend cycles idle    [96.74%]
     3,241,176,991 stalled-cycles-backend    #   11.92% backend  cycles idle    [13.09%]
    12,894,959,266 instructions              #    0.47  insns per cycle
                                             #    0.93  stalled cycles per insn [84.24%]
     3,793,175,080 branches                  #  168.358 M/sec                   [97.00%]
        56,150,170 branch-misses             #    1.48% of all branches         [96.41%]

     574.810366198 seconds time elapsed

### Test B ###
# pulse no config block GOOD
$ perf stat -B -p 3240
^C
 Performance counter stats for process id '3240':

       5777.516582 task-clock                #    0.010 CPUs utilized
            49,661 context-switches          #    0.009 M/sec
             2,497 cpu-migrations            #    0.432 K/sec
             1,196 page-faults               #    0.207 K/sec
     9,067,410,074 cycles                    #    1.569 GHz                     [78.11%]
     3,692,796,429 stalled-cycles-frontend   #   40.73% frontend cycles idle    [69.44%]
     3,312,214,070 stalled-cycles-backend    #   36.53% backend  cycles idle    [80.72%]
    13,213,756,363 instructions              #    1.46  insns per cycle
                                             #    0.28  stalled cycles per insn [91.14%]
     1,038,835,964 branches                  #  179.807 M/sec                   [91.00%]
        46,978,484 branch-misses             #    4.52% of all branches         [80.75%]

     598.581618771 seconds time elapsed


### Test C ###
# pulse, config block GOOD
$ perf stat -B -p 3399
^C
 Performance counter stats for process id '3399':

       6621.672200 task-clock                #    0.012 CPUs utilized
           188,868 context-switches          #    0.029 M/sec
             4,560 cpu-migrations            #    0.689 K/sec
               849 page-faults               #    0.128 K/sec
    12,337,231,455 cycles                    #    1.863 GHz                     [82.98%]
     6,343,372,974 stalled-cycles-frontend   #   51.42% frontend cycles idle    [84.33%]
     4,653,020,474 stalled-cycles-backend    #   37.72% backend  cycles idle    [80.99%]
    15,991,003,014 instructions              #    1.30  insns per cycle
                                             #    0.40  stalled cycles per insn [94.02%]
     1,482,486,392 branches                  #  223.884 M/sec                   [84.26%]
        56,429,425 branch-misses             #    3.81% of all branches         [67.46%]

     566.108971634 seconds time elapsed

### Test A ###
$ perf stat -B -p 4085
^C
 Performance counter stats for process id '4085':

      23816.993016 task-clock                #    0.042 CPUs utilized
            29,306 context-switches          #    0.001 M/sec
               230 cpu-migrations            #    0.010 K/sec
               877 page-faults               #    0.037 K/sec
    26,022,945,276 cycles                    #    1.093 GHz                     [45.20%]
    11,441,586,110 stalled-cycles-frontend   #   43.97% frontend cycles idle    [96.89%]
     6,982,409,775 stalled-cycles-backend    #   26.83% backend  cycles idle    [93.31%]
    46,405,822,403 instructions              #    1.78  insns per cycle
                                             #    0.25  stalled cycles per insn [96.50%]
     3,794,249,905 branches                  #  159.309 M/sec                   [96.84%]
        65,778,344 branch-misses             #    1.73% of all branches         [67.77%]

     568.510689271 seconds time elapsed

### Test B ###
$ perf stat -B -p 4506
^C
 Performance counter stats for process id '4506':

       5850.939684 task-clock                #    0.010 CPUs utilized
            49,814 context-switches          #    0.009 M/sec
             2,713 cpu-migrations            #    0.464 K/sec
             1,193 page-faults               #    0.204 K/sec
     9,682,944,877 cycles                    #    1.655 GHz                     [53.47%]
     4,076,656,050 stalled-cycles-frontend   #   42.10% frontend cycles idle    [82.75%]
     3,372,031,105 stalled-cycles-backend    #   34.82% backend  cycles idle    [81.95%]
    13,196,912,570 instructions              #    1.36  insns per cycle
                                             #    0.31  stalled cycles per insn [91.09%]
     1,039,765,080 branches                  #  177.709 M/sec                   [91.03%]
        45,330,554 branch-misses             #    4.36% of all branches         [90.81%]

     570.162067313 seconds time elapsed

### Test C ###
$ perf stat -B -p 4884
^C
 Performance counter stats for process id '4884':

       6505.038805 task-clock                #    0.011 CPUs utilized
           188,878 context-switches          #    0.029 M/sec
             4,786 cpu-migrations            #    0.736 K/sec
             1,018 page-faults               #    0.156 K/sec
    12,315,800,288 cycles                    #    1.893 GHz                     [88.14%]
     6,344,128,023 stalled-cycles-frontend   #   51.51% frontend cycles idle    [70.09%]
     3,800,263,568 stalled-cycles-backend    #   30.86% backend  cycles idle    [59.34%]
    15,010,836,518 instructions              #    1.22  insns per cycle
                                             #    0.42  stalled cycles per insn [91.86%]
     1,415,142,508 branches                  #  217.546 M/sec                   [94.11%]
        49,838,213 branch-misses             #    3.52% of all branches         [88.33%]

     566.421286698 seconds time elapsed

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-20 22:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19 19:51 PROBLEM: cpuidle: Quickly notice prediction failure for repeat mode Mark Oteiza
2013-12-19 19:58 ` Mark Oteiza
2013-12-19 20:11 ` Daniel Lezcano
2013-12-20 22:54   ` Mark Oteiza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).