2001-11-15 17:03:43

by Josh Litherland

[permalink] [raw]
Subject: Maestro 2E vs. Power mgmt

I have a Toshiba laptop system (dynabook 3380v) with integrated
Maestro 2E sound. This works fine and dandy when on AC power, but
when on battery, the sound doesn't play properly... xmms and
mpg123 show very slow (1/10 or so) progress through the file and
the sound that results is a staticky approximation of the correct
output.

The device shares irq 11 with the i82365 cardbus bridge, the
NeoMagic 256va AGP chipset and the uhci usb controller. Driver output
is thus:

maestro: Configuring ESS Maestro 2E fount at IO 0xEE00 IRQ 11
maestro: subvendor id: 0x00011179
maestro: PCI power management capability: 0x7622
maestro: AC97 Codec detected: v: 0x83847609 caps: 0x6940 pwr: 0xf
maestro: 1 channels configured.
maestro: version 0.15 time 14:51:38 Nov 15 2001

I've tried with the power management both off and on, and with
apm off in the kernel altogether. Tried kernels 2.4.{13,14,15-pre{2,3}}

--
Josh Litherland ([email protected])


2001-11-15 17:18:56

by Alan

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

> Maestro 2E sound. This works fine and dandy when on AC power, but
> when on battery, the sound doesn't play properly... xmms and
> mpg123 show very slow (1/10 or so) progress through the file and
> the sound that results is a staticky approximation of the correct
> output.
>
> I've tried with the power management both off and on, and with
> apm off in the kernel altogether. Tried kernels 2.4.{13,14,15-pre{2,3}}

Nothing immediately strikes me - could be its not got CLKRUN wired up
properly. What pci bridges does it have ?

2001-11-15 17:22:56

by Josh Litherland

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

On Thu, Nov 15, 2001 at 05:26:01PM +0000, Alan Cox wrote:
> Nothing immediately strikes me - could be its not got CLKRUN wired up
> properly. What pci bridges does it have ?

frabjous:~# lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (AGP disabled) (rev 03)
00:04.0 VGA compatible controller: Neomagic Corporation [MagicMedia 256AV] (rev 12)
00:05.0 Bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
00:05.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
00:05.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)
00:05.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 03)
00:07.0 Communication controller: Lucent Microelectronics 56k WinModem (rev 01)
00:09.0 Communication controller: Toshiba America Info Systems FIR Port (rev 23)
00:0b.0 CardBus bridge: Toshiba America Info Systems ToPIC97 (rev 05)
00:0b.1 CardBus bridge: Toshiba America Info Systems ToPIC97 (rev 05)
00:0c.0 Multimedia audio controller: ESS Technology ES1978 Maestro 2E (rev 10)
frabjous:~#

--
Josh Litherland ([email protected])

2001-11-15 17:26:06

by Alan

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

> > Nothing immediately strikes me - could be its not got CLKRUN wired up
> > properly. What pci bridges does it have ?
>
> frabjous:~# lspci
> 00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (AGP disabled) (rev 03)
> 00:04.0 VGA compatible controller: Neomagic Corporation [MagicMedia 256AV] (rev 12)
> 00:05.0 Bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)

Ok. Well if it is the CLKRUN stuff then I can give you a diff to try if you
are happy rebuilding kernels

Alan

2001-11-15 17:28:36

by Patrick Mochel

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt


On Thu, 15 Nov 2001, Faux Pas III wrote:

> I have a Toshiba laptop system (dynabook 3380v) with integrated
> Maestro 2E sound. This works fine and dandy when on AC power, but
> when on battery, the sound doesn't play properly... xmms and
> mpg123 show very slow (1/10 or so) progress through the file and
> the sound that results is a staticky approximation of the correct
> output.
>
> The device shares irq 11 with the i82365 cardbus bridge, the
> NeoMagic 256va AGP chipset and the uhci usb controller. Driver output
> is thus:
>
> maestro: Configuring ESS Maestro 2E fount at IO 0xEE00 IRQ 11
> maestro: subvendor id: 0x00011179
> maestro: PCI power management capability: 0x7622
> maestro: AC97 Codec detected: v: 0x83847609 caps: 0x6940 pwr: 0xf
> maestro: 1 channels configured.
> maestro: version 0.15 time 14:51:38 Nov 15 2001
>
> I've tried with the power management both off and on, and with
> apm off in the kernel altogether. Tried kernels 2.4.{13,14,15-pre{2,3}}

Could you do a lspci -vv as root on that device both with AC and without?
(to see the dump of of the PM capabilities?).

Thanks,

-pat

2001-11-15 17:43:36

by Josh Litherland

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

On Thu, Nov 15, 2001 at 09:29:27AM -0800, Patrick Mochel wrote:

> Could you do a lspci -vv as root on that device both with AC and without?

On AC:

frabjous:~# lspci -vv
00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (AGP disabled) (rev 03)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR+
Latency: 64
Region 0: Memory at e0000000 (32-bit, prefetchable) [size=256M]

00:04.0 VGA compatible controller: Neomagic Corporation [MagicMedia 256AV] (rev 12) (prog-if 00 [VGA])
Subsystem: Toshiba America Info Systems: Unknown device 0001
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (4000ns min, 63750ns max)
Interrupt: pin A routed to IRQ 11
Region 0: Memory at df000000 (32-bit, prefetchable) [size=16M]
Region 1: Memory at ff800000 (32-bit, non-prefetchable) [size=4M]
Region 2: Memory at ff700000 (32-bit, non-prefetchable) [size=1M]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:05.0 Bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0

00:05.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Region 4: I/O ports at 1000 [size=16]

00:05.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin D routed to IRQ 11
Region 4: I/O ports at ffe0 [size=32]

00:05.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 03)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin ? routed to IRQ 9

00:07.0 Communication controller: Lucent Microelectronics 56k WinModem (rev 01)
Subsystem: Toshiba America Info Systems Internal V.90 Modem
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0 (63000ns min, 3500ns max)
Interrupt: pin A routed to IRQ 3
Region 0: Memory at ffefff00 (32-bit, non-prefetchable) [size=256]
Region 1: I/O ports at 02f8 [size=8]
Region 2: I/O ports at 1c00 [size=256]
Capabilities: [f8] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA PME(D0-,D1-,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:09.0 Communication controller: Toshiba America Info Systems FIR Port (rev 23)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at ff80 [size=32]

00:0b.0 CardBus bridge: Toshiba America Info Systems ToPIC97 (rev 05)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 10000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=14, subordinate=14, sec-latency=0
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
16-bit legacy interface ports at 0001

00:0b.1 CardBus bridge: Toshiba America Info Systems ToPIC97 (rev 05)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin B routed to IRQ 11
Region 0: Memory at 10001000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=15, subordinate=15, sec-latency=0
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
16-bit legacy interface ports at 0001

00:0c.0 Multimedia audio controller: ESS Technology ES1978 Maestro 2E (rev 10)
Subsystem: Toshiba America Info Systems ES1978 Maestro-2E Audiodrive
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (500ns min, 6000ns max)
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at ee00 [size=256]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D2 PME-Enable- DSel=0 DScale=0 PME-

frabjous:~#

And on battery:

frabjous:~# lspci -vv
00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (AGP disabled) (rev 03)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR+
Latency: 64
Region 0: Memory at e0000000 (32-bit, prefetchable) [size=256M]

00:04.0 VGA compatible controller: Neomagic Corporation [MagicMedia 256AV] (rev 12) (prog-if 00 [VGA])
Subsystem: Toshiba America Info Systems: Unknown device 0001
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (4000ns min, 63750ns max)
Interrupt: pin A routed to IRQ 11
Region 0: Memory at df000000 (32-bit, prefetchable) [size=16M]
Region 1: Memory at ff800000 (32-bit, non-prefetchable) [size=4M]
Region 2: Memory at ff700000 (32-bit, non-prefetchable) [size=1M]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:05.0 Bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0

00:05.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Region 4: I/O ports at 1000 [size=16]

00:05.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin D routed to IRQ 11
Region 4: I/O ports at ffe0 [size=32]

00:05.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 03)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin ? routed to IRQ 9

00:07.0 Communication controller: Lucent Microelectronics 56k WinModem (rev 01)
Subsystem: Toshiba America Info Systems Internal V.90 Modem
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0 (63000ns min, 3500ns max)
Interrupt: pin A routed to IRQ 3
Region 0: Memory at ffefff00 (32-bit, non-prefetchable) [size=256]
Region 1: I/O ports at 02f8 [size=8]
Region 2: I/O ports at 1c00 [size=256]
Capabilities: [f8] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA PME(D0-,D1-,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:09.0 Communication controller: Toshiba America Info Systems FIR Port (rev 23)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at ff80 [size=32]

00:0b.0 CardBus bridge: Toshiba America Info Systems ToPIC97 (rev 05)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 10000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=14, subordinate=14, sec-latency=0
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
16-bit legacy interface ports at 0001

00:0b.1 CardBus bridge: Toshiba America Info Systems ToPIC97 (rev 05)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin B routed to IRQ 11
Region 0: Memory at 10001000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=15, subordinate=15, sec-latency=0
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
16-bit legacy interface ports at 0001

00:0c.0 Multimedia audio controller: ESS Technology ES1978 Maestro 2E (rev 10)
Subsystem: Toshiba America Info Systems ES1978 Maestro-2E Audiodrive
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (500ns min, 6000ns max)
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at ee00 [size=256]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D2 PME-Enable- DSel=0 DScale=0 PME-

frabjous:~#



--
Josh Litherland ([email protected])

2001-11-15 18:14:27

by Patrick Mochel

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt


On Thu, 15 Nov 2001, Faux Pas III wrote:

> On Thu, Nov 15, 2001 at 09:29:27AM -0800, Patrick Mochel wrote:
>
> > Could you do a lspci -vv as root on that device both with AC and without?

Sorry, I meant something like 'lspci -vv -s 00:0c.0' :)

>
> On AC:
>
> frabjous:~# lspci -vv
...
> 00:0c.0 Multimedia audio controller: ESS Technology ES1978 Maestro 2E (rev 10)
> Subsystem: Toshiba America Info Systems ES1978 Maestro-2E Audiodrive
> Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
> Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
> Latency: 64 (500ns min, 6000ns max)
> Interrupt: pin A routed to IRQ 11
> Region 0: I/O ports at ee00 [size=256]
> Capabilities: [c0] Power Management version 2
> Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
> Status: D2 PME-Enable- DSel=0 DScale=0 PME-
^^^^
>
> frabjous:~#
>
> And on battery:
>
> frabjous:~# lspci -vv
...
> 00:0c.0 Multimedia audio controller: ESS Technology ES1978 Maestro 2E (rev 10)
> Subsystem: Toshiba America Info Systems ES1978 Maestro-2E Audiodrive
> Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
> Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
> Latency: 64 (500ns min, 6000ns max)
> Interrupt: pin A routed to IRQ 11
> Region 0: I/O ports at ee00 [size=256]
> Capabilities: [c0] Power Management version 2
> Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
> Status: D2 PME-Enable- DSel=0 DScale=0 PME-
^^^^

It says in both cases that the device is in D2; ah yes, the device is not
open and the driver cuts the power on ess_release().

Are you noticing any performance degradation for any other devices?

(On a side note, it looks like the driver is manually touching a lot of
PCI config space rather than using the pci_ wrappers...)

-pat

2001-11-15 18:18:37

by Josh Litherland

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

On Thu, Nov 15, 2001 at 10:16:53AM -0800, Patrick Mochel wrote:

> Sorry, I meant something like 'lspci -vv -s 00:0c.0' :)

Hehe... I just try to comlpy when others are helping me debug
my driver issues =)

> Are you noticing any performance degradation for any other devices?

Nothing glaring, but I can try to get some numbers if there's a
particular device you'd suspect.

--
Josh Litherland ([email protected])

2001-11-15 18:25:37

by Josh Litherland

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

On Thu, Nov 15, 2001 at 10:16:53AM -0800, Patrick Mochel wrote:

> Are you noticing any performance degradation for any other devices?

Hard drive, video, and network (which is in the cardbus slot)
don't perform any differntly on AC vs. battery.

--
Josh Litherland ([email protected])

2001-11-15 18:36:57

by Alan

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

> (On a side note, it looks like the driver is manually touching a lot of
> PCI config space rather than using the pci_ wrappers...)

It does PCI power management in 2.2 as well..

2001-11-16 17:08:45

by Josh Litherland

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

Fwiw, the alsa driver for this device behaves identically to the OSS
driver in the kernel.

--
Josh Litherland ([email protected])

2001-11-18 22:56:22

by Josh Litherland

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

Another interesting finding here... whenever something else is
generating a lot of interrupts (specifically, those devices that
share IRQ 11 with the sound card), the sound actually comes out
correctly, or at least more correctly... still slow.

I noticed this at first while folding up a mozilla window in
windowmaker, I assume the X-server is interrupting on the
video card a lot there. hdparm -t /dev/hda also causes it.

--
Josh Litherland ([email protected])

2001-11-18 23:02:03

by Alan

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

> Another interesting finding here... whenever something else is
> generating a lot of interrupts (specifically, those devices that
> share IRQ 11 with the sound card), the sound actually comes out
> correctly, or at least more correctly... still slow.

Intriguing - so its as if the sound driver isnt generating interrupts
(one way to test that would be to monitor /proc/interrupts both with power
on mains and off of mains)

2001-11-18 23:19:23

by Josh Litherland

[permalink] [raw]
Subject: Re: Maestro 2E vs. Power mgmt

On Sun, Nov 18, 2001 at 11:09:12PM +0000, Alan Cox wrote:

> Intriguing - so its as if the sound driver isnt generating interrupts
> (one way to test that would be to monitor /proc/interrupts both with power
> on mains and off of mains)

When playing a particular mp3 with mpg123, the rate of increase of that
field in /proc/interrupts is ~200/sec regardless of whether on AC or
battery. Of course, doing stuff to the other devices that share that
interrupt blow it up.

--
Josh Litherland ([email protected])