2003-02-22 13:20:50

by Oleg Drokin

[permalink] [raw]
Subject: Box freezes if I enable "AMD 76x native power management"

Hello!

Starting from 2.4.20 until now (including 2.4.21-pre4 and 2.4.21-pre4-ac5",
whenever I enable "AMD 76x native power management" in my kernel config, I get
kernel that hangs at boot after reporting elevator stuff about my IDE drives.
Is anybody interested?

I have dual-cpu Athlon-1700+ on some Tyan MB:
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: Advanced Micro Devices [AMD] AMD-760 MP [IGD4-2P] System Controller (rev 17).
Master Capable. Latency=64.
Prefetchable 32 bit memory at 0xf4000000 [0xf7ffffff].
Prefetchable 32 bit memory at 0xf0101000 [0xf0101fff].
I/O at 0x1430 [0x1433].
Bus 0, device 1, function 0:
PCI bridge: Advanced Micro Devices [AMD] AMD-760 MP [IGD4-2P] AGP Bridge (rev 0).
Master Capable. Latency=99. Min Gnt=12.
Bus 0, device 7, function 0:
ISA bridge: Advanced Micro Devices [AMD] AMD-766 [ViperPlus] ISA (rev 2).
Bus 0, device 7, function 1:
IDE interface: Advanced Micro Devices [AMD] AMD-766 [ViperPlus] IDE (rev 1).
Master Capable. Latency=64.
I/O at 0xf000 [0xf00f].
Bus 0, device 7, function 3:
Bridge: Advanced Micro Devices [AMD] AMD-766 [ViperPlus] ACPI (rev 1).
Master Capable. Latency=64.
Bus 0, device 7, function 4:
USB Controller: Advanced Micro Devices [AMD] AMD-766 [ViperPlus] USB (rev 7).
IRQ 11.
Master Capable. Latency=16. Max Lat=80.
Non-prefetchable 32 bit memory at 0xdc000 [0xdcfff].

Bye,
Oleg


2003-02-22 16:32:59

by Alan

[permalink] [raw]
Subject: Re: Box freezes if I enable "AMD 76x native power management"

On Sat, 2003-02-22 at 13:30, Oleg Drokin wrote:
> Hello!
>
> Starting from 2.4.20 until now (including 2.4.21-pre4 and 2.4.21-pre4-ac5",
> whenever I enable "AMD 76x native power management" in my kernel config, I get
> kernel that hangs at boot after reporting elevator stuff about my IDE drives.
> Is anybody interested?
>

It doesnt work with some tyan boards. I've never found out why. Most of them you
load the module, it stops, you poke the button and it wakes up again and then works


2003-02-22 17:08:42

by Oleg Drokin

[permalink] [raw]
Subject: Re: Box freezes if I enable "AMD 76x native power management"

Hello!

On Sat, Feb 22, 2003 at 05:44:27PM +0000, Alan Cox wrote:
> > Starting from 2.4.20 until now (including 2.4.21-pre4 and 2.4.21-pre4-ac5",
> > whenever I enable "AMD 76x native power management" in my kernel config, I get
> > kernel that hangs at boot after reporting elevator stuff about my IDE drives.
> > Is anybody interested?
> It doesnt work with some tyan boards. I've never found out why. Most of them you
> load the module, it stops, you poke the button and it wakes up again and then works

This is not my case it seems. No matter what I press, it is dead.
But I compile it statically into kernel, though. Have not tried with a
module yet, though.

Bye,
Oleg

2003-02-22 18:43:29

by John W. M. Stevens

[permalink] [raw]
Subject: Re: Box freezes if I enable "AMD 76x native power management"

On Sat, Feb 22, 2003 at 04:30:57PM +0300, Oleg Drokin wrote:
> Hello!
>
> Starting from 2.4.20 until now (including 2.4.21-pre4 and 2.4.21-pre4-ac5",
> whenever I enable "AMD 76x native power management" in my kernel config, I get
> kernel that hangs at boot after reporting elevator stuff about my IDE drives.
> Is anybody interested?

I am. This sounds suspiciously like the bug I reported.

But you haven't given quite enough information for me to compare. Can
you send:

1) Exact Mother board (Tyan what? Tiger MPX 2466N . . . ?)
2) Do you have DMA turned on for your IDE drives?
3) Are you enabling the AMD chip support for IDE?

. . . and anything else you can find out about the box?

Most importantly . . . does the problem go away if you turn off DMA
support for IDE?

Thanks,
John S.

2003-02-22 22:14:05

by Thomas Hofer

[permalink] [raw]
Subject: Re: Box freezes if I enable "AMD 76x native power management"

On Saturday 22 February 2003 19:53, John W. M. Stevens wrote:
> On Sat, Feb 22, 2003 at 04:30:57PM +0300, Oleg Drokin wrote:
> > Starting from 2.4.20 until now (including 2.4.21-pre4 and
> > 2.4.21-pre4-ac5", whenever I enable "AMD 76x native power
> > management" in my kernel config, I get kernel that hangs at boot
> > after reporting elevator stuff about my IDE drives. Is anybody
> > interested?
> [..]
> 1) Exact Mother board (Tyan what? Tiger MPX 2466N . . . ?)
> 2) Do you have DMA turned on for your IDE drives?
> 3) Are you enabling the AMD chip support for IDE?
>
> . . . and anything else you can find out about the box?
>
> Most importantly . . . does the problem go away if you turn off DMA
> support for IDE?

I have some problems with this hardware, too. Maybe I can provide some
useful bugreports - I'd gladly do some tests with the 2.4.x kernels if
someone is interested (I only tried 2.4.19 and 2.4.20 with this
hardware so far).

I have a Tyan S2466N-4M (Tiger MPX, Chipset AMD 760MPX, 762, 768),
2x Athlon MP 2000+,
512MB Reg. ECC SDRAM
2-3 IDE drives and a DVD-ROM on the onboard channels
DMA support enabled (I don't like to disable this, because when I copy
over 100MB from the DVD to a harddrive with DMA disabled the cpu-usage
wents well above 50% and then the machine _freezes_.)

With 2.4.19, the power-switch didn't work after shutdown (It works now
with 2.4.20). Automatic power-off (halt -p) doesn't work with neighter
2.4.19 nor 2.4.20.

With "AMD 76x native power management" I experienced freezes under X11
when the system was idle for about 30 min that usually went away when I
typed on the keyboard. Using the (USB) mouse had no effect. But I had
no problems at boot-time.

Thomas.


2003-02-22 22:49:46

by Benjamin LaHaise

[permalink] [raw]
Subject: Re: Box freezes if I enable "AMD 76x native power management"

On Sat, Feb 22, 2003 at 11:21:27PM +0100, Thomas Hofer wrote:
> With "AMD 76x native power management" I experienced freezes under X11
> when the system was idle for about 30 min that usually went away when I
> typed on the keyboard. Using the (USB) mouse had no effect. But I had
> no problems at boot-time.

I've seen this too, but only in certain kernels. Someone needs to take
the time to binary search the pre patches to track down which one
introduced the problem...

-ben
--
Don't email: <a href=mailto:"[email protected]">[email protected]</a>

2003-02-24 08:32:09

by Oleg Drokin

[permalink] [raw]
Subject: Re: Box freezes if I enable "AMD 76x native power management"

Hello!

On Sat, Feb 22, 2003 at 11:53:29AM -0700, John W. M. Stevens wrote:
> > Starting from 2.4.20 until now (including 2.4.21-pre4 and 2.4.21-pre4-ac5",
> > whenever I enable "AMD 76x native power management" in my kernel config, I get
> > kernel that hangs at boot after reporting elevator stuff about my IDE drives.
> > Is anybody interested?
> I am. This sounds suspiciously like the bug I reported.

Hm.

> But you haven't given quite enough information for me to compare. Can
> you send:
> 1) Exact Mother board (Tyan what? Tiger MPX 2466N . . . ?)

Tyan Tiger MP (bios v1.03)

> 2) Do you have DMA turned on for your IDE drives?

Yes. Tried to boot with "ide=nodma". It hung too, but
first emitted about set_drive_speed_blah: ... error messages.

> 3) Are you enabling the AMD chip support for IDE?

Yes. I tried to disable "AMD Viper" IDE support in kernel,
but that did not help.

> . . . and anything else you can find out about the box?

Well, dual cpu athlon 1700+, 1G RAM. 2 IDE disks on primary channel.
Geforce3 video card. Some cheap cmpci sound board.
That's it.

> Most importantly . . . does the problem go away if you turn off DMA
> support for IDE?

No.

Bye,
Oleg

2003-02-25 03:03:16

by Paul Giordano

[permalink] [raw]
Subject: Re: Box freezes if I enable "AMD 76x native power management"

Just another voice in the crowd...

TYAN 2462 dual 1200MP, and another w/ dual 1900MP
Dual WD100 IDE, seperate channels
Current BIOS 2.13
1GB RAM

I noticed this behavior when I started playing with 2.4.20 and could
never figger it out - went so far as to bring up KGDB and was way down
in the IDE DMA code, scary stuff... Kept scanning LKML and finally found
this gem of a thread...

Ran up a clean, fresh kernel from pre4-ac5, four combos
1) CONFIG_AMD_PM768=Y CONFIG_BLK_DEV_IDEDMA_PCI=y
2) CONFIG_AMD_PM768=m CONFIG_BLK_DEV_IDEDMA_PCI=y
3) CONFIG_AMD_PM768=Y CONFIG_BLK_DEV_IDEDMA_PCI is not set
4) CONFIG_AMD_PM768=m CONFIG_BLK_DEV_IDEDMA_PCI is not set

In cases 1 and 3, hang at boot, pressing the power button frees it up.
In cases 2 and 4, no boot hang, and, at lease for me, no hang when
amd76x_pm module's loaded

So, back to playing - if you need some testing on this board, let me
know - I use one at work and one at home, takes no time at all to gen up
and try things out, and they'll get pretty good exercise.

Regards,
Gio

Please cc: - not subscribed to LKML