ACPI w/ Radeon Mobility 9600 (was: Re: APM/ACPI on ThinkPads [ SOLVED ])

Matthias Saou thias at spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
Wed Oct 13 17:21:30 UTC 2004


Satish Balay wrote :

> On Tue, 12 Oct 2004, Philip Balister wrote:
> 
> > I built the kernel (from the 521 rpm) adding the radeonfb-4g patch
> > from: http://www.loria.fr/~thome/d600/ and changing the config so
> > radeonfb was bult in (not a module). I added the patch to the specfile
> > and used rpmbuild -bp to configure the source (also edited the i686
> > config file)
> 
> I tried the 607 kernel on both the 600E & T40 - and both APM & ACPI
> issues are solved now.
> 
> With my brief testing - APM works as before. With ACPI the biggest
> issues was me being a 'clueless user'.  The key-binding for
> 'Recover-from-suspend' from 'power switch' to 'Fn'-key - and I assumed
> ACPI breakage.
> 
> However ACPI-sleep still consumes lot more power than APM sleep - this
> would be an upsteam issue.
> 
> I gess the radeonfb-4g patch isn't required for T40 with ATI-9000

It is required for my 9600 Mobility :
- Resuming with the default 607 kernel gives a nasty "melting display"
effect, although blindly rebooting with "Crtl+Alt+F1" then Ctrl+Alt+Del"
works.
- Adding the radeonfb module to the initrd (and video=radeonfb to my
kernel's grub line) gets me the neat fb using full resolution, but same
problem when resuming.
- Rebuilding the kernel rpm with that patch applied and the same settings
as above gets resume working, with this, though :

Stopping tasks:
==========================================================================
==============|
usbhid 2-1:1.0: resume is unsafe!
radeonfb: suspending to state: 3...
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 0x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 0x mode
Back to C!
zapping low mappings.
Debug: sleeping function called from invalid context at mm/slab.c:2063
in_atomic():0[expected: 0], irqs_disabled():1
 [<0211d869>] __might_sleep+0x7d/0x88
 [<0214b7ea>] __kmalloc+0x42/0x7d
 [<02205585>] acpi_os_allocate+0xa/0xb
 [<022192db>] acpi_ut_allocate+0x2e/0x52
 [<02219272>] acpi_ut_initialize_buffer+0x41/0x7c
 [<022160c0>] acpi_rs_create_byte_stream+0x23/0x3b
 [<022174ea>] acpi_rs_set_srs_method_data+0x1b/0x9d
 [<0211be1d>] recalc_task_prio+0x128/0x133
 [<0221ed10>] acpi_pci_link_set+0xfe/0x176
 [<0221f094>] irqrouter_resume+0x1c/0x24
 [<0225453a>] sysdev_resume+0x3e/0xa5
 [<022574b0>] device_power_up+0x5/0xa
 [<0213d3b6>] suspend_enter+0x25/0x2d
 [<0213d424>] enter_state+0x3f/0x5e
 [<0221b8ab>] acpi_suspend+0x3b/0x48
 [<0221c310>] acpi_system_write_sleep+0x5c/0x6d
 [<021653ae>] vfs_write+0xb6/0xe2
 [<02165478>] sys_write+0x3c/0x62
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
ACPI: PCI interrupt 0000:00:1d.7[D] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 7 (level, low) -> IRQ 7
PCI: Setting latency timer of device 0000:00:1f.5 to 64
ACPI: PCI interrupt 0000:00:1f.6[B] -> GSI 7 (level, low) -> IRQ 7
PCI: Setting latency timer of device 0000:00:1f.6 to 64
zapping low mappings.
radeonfb: resumed !
PCI: Enabling device 0000:02:01.1 (0000 -> 0002)
ACPI: PCI interrupt 0000:02:01.1[A] -> GSI 11 (level, low) -> IRQ 11
Restarting tasks...<6>usb 2-1: USB disconnect, address 3
 done
usb 2-1: new low speed USB device using address 4
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on
usb-0000:00:1d.0-1
ip_tables: (C) 2000-2002 Netfilter core team
Disabled Privacy Extensions on device 0237d4c0(lo)
ip_tables: (C) 2000-2002 Netfilter core team
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is on for TX and on for RX.

I'm not sure how nasty that "sleeping function called from invalid context"
error is... everything seems fine after a resume, minus the IrDA it seems,
I'll need to unload more modules and stop the irda service from my suspend
script it seems.

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 2.91 (FC3 Test 2) - Linux kernel 2.6.8-1.607.radeon
Load : 3.25 1.94 0.77




More information about the devel mailing list