[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#262751: kernel-image-2.6.7-powerpc: radeonfb fails to wake chip from D2



Package: kernel-image-2.6.7-powerpc
Version: 2.6.7-4
Severity: normal

Hi,

The radeonfb driver on my iBook does not bring the display back properly
after sleeping.  After sleep the backlight turns back on but the display
remains completely dark.  I have had this problem with the old and the
new radeonfb driver and various 2.4 and 2.6 kernel versions.  This
problem started after I sent the iBook back to Apple about 10 months
ago.  I think the motherboard was replaced at that time.  If I disable
suspend to state D2 [1] then resume works as expected.  Other notes of
interest:

- I tried to find the culprit in
  drivers/video/aty/radeon_pm.c:radeon_set_suspend() by selectively
  removing parts of that function.  I did not find a combination that
  improves the situation.

- I tried twiddling with the backlight keys after sleep.  I can turn
  the backlight off, and back on, but the display remains black.

- I tried switching between console and X, to different consoles, and back,
  etc.  The switching works, apparently, but still a black display.

- OSX successfully brings the display back after sleep.  I don't know
  how to tell if OSX is putting the chip in state D2.

Any clues for other things to try?

Thanks,

David

[1] : This patch allows my laptop to sleep and resume as expected.

Index: drivers/video/aty/radeon_pm.c
===================================================================
RCS file: /home/dwhedon/linux-cvs/linux-2.5/drivers/video/aty/radeon_pm.c,v
retrieving revision 1.7
diff -u -p -r1.7 radeon_pm.c
--- drivers/video/aty/radeon_pm.c	30 Jul 2004 05:48:53 -0000	1.7
+++ drivers/video/aty/radeon_pm.c	1 Aug 2004 19:00:39 -0000
@@ -6,7 +6,7 @@
 /*
  * Currently, only PowerMac do D2 state
  */
-#define CONFIG_RADEON_HAS_D2	CONFIG_PPC_PMAC
+/*#define CONFIG_RADEON_HAS_D2	CONFIG_PPC_PMAC*/
 
 #ifdef CONFIG_RADEON_HAS_D2
 /*


[2] : Kernel messages of kernel.org cvs with radeonfb in debug mode showing
suspend/resume cycle at the end.

Total memory = 128MB; using 256kB for hash table (at c0340000)
Linux version 2.6.8-rc2 (root@snort) (gcc version 3.3.4 (Debian 1:3.3.4-6)) #31 Sun Aug 1 21:24:43 CEST 2004
Found UniNorth memory controller & host bridge, revision: 192
Mapped at 0xfdf2a000
Found a Pangea mac-io controller, rev: 0, mapped at 0xfdeaa000
Processor NAP mode on idle enabled.
PowerMac motherboard: iBook 2 rev. 2
via-pmu: Server Mode is disabled
PMU driver 2 initialized for Core99, firmware: 0c
Found UniNorth PCI host bridge at 0xf0000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0xf2000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0xf4000000. Firmware bus number: 0->0
nvram: Checking bank 0...
nvram: gen0=422, gen1=423
nvram: Active bank is: 1
nvram: OF partition at 0x410
nvram: XP partition at 0x1020
nvram: NR partition at 0x1120
On node 0 totalpages: 32768
  DMA zone: 32768 pages, LIFO batch:8
  Normal zone: 0 pages, LIFO batch:1
  HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: root=/dev/hda13 ro hdb=ide-scsi 
ide_setup: hdb=ide-scsi
PowerMac using OpenPIC irq controller at 0x80040000
OpenPIC Version 1.2 (4 CPUs and 64 IRQ sources) at fc658000
OpenPIC timer frequency is 4.160000 MHz
PID hash table entries: 1024 (order 10: 8192 bytes)
GMT Delta read from XPRAM: 0 minutes, DST: off
time_init: decrementer frequency = 24.835245 MHz
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 126176k available (1992k kernel code, 1000k data, 144k init, 0k highmem)
AGP special page: 0xc7fff000
Calibrating delay loop... 1585.15 BogoMIPS
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
NET: Registered protocol family 16
PCI: Probing PCI hardware
Registering openpic with sysfs...
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
radeonfb_pci_register BEGIN
PCI: Enabling device 0000:00:10.0 (0086 -> 0087)
aper_base: 98000000 MC_FB_LOC to: 9bff9800, MC_AGP_LOC to: ffffa000
radeonfb: probed DDR SGRAM 32768k videoram
radeonfb: mapped 16384k videoram
radeonfb: Invalid ROM signature 0 should be 0xaa55
radeonfb: Retreived PLL infos from Open Firmware
radeonfb: Reference=27.00 MHz (RefDiv=12) Memory=180.00 Mhz, System=180.00 MHz
Starting monitor auto detection...
radeonfb: I2C (port 1) ... not found
radeonfb: I2C (port 2) ... found LVDS panel
radeonfb: I2C (port 3) ... not found
radeonfb: I2C (port 4) ... not found
radeon_probe_OF_head
head: ATY,Bee_A (letter: A, head_no: 0)
analyzing OF properties...
display-type: LCD
radeon_probe_OF_head
head: ATY,Bee_A (letter: A, head_no: 1)
radeonfb: I2C (port 3) ... not found
radeonfb: I2C (port 4) ... not found
radeonfb: Monitor 1 type LCD found
radeonfb: EDID probed
radeonfb: Monitor 2 type no found
Parsing EDID data for panel info
Setting up default mode based on panel info
radeonfb: Power Management enabled for Mobility chipsets
Registered "ati" backlight controller, level: 15/15
radeonfb: ATI Radeon LW  DDR SGRAM 32 MB
radeonfb_pci_register END
Thermal assist unit using timers, shrink_timer: 2000 jiffies
Registering PowerMac CPU frequency driver
Low: 400 Mhz, High: 800 Mhz, Boot: 800 Mhz
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
hStart = 1048, hEnd = 1184, hTotal = 1344
vStart = 771, vEnd = 777, vTotal = 806
h_total_disp = 0x7f00a7	   hsync_strt_wid = 0x910412
v_total_disp = 0x2ff0325	   vsync_strt_wid = 0x860302
pixclock = 15384
freq = 6500
lvds_gen_cntl: 000d24a1
Console: switching to colour frame buffer device 128x48
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
sungem.c:v0.98 8/24/03 David S. Miller (davem@redhat.com)
eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:03:93:dc:35:44 
PHY ID: 4061e4, addr: 0
eth0: Found BCM5221 PHY
orinoco.c 0.13e (David Gibson <hermes@gibson.dropbear.id.au> and others)
airport.c 0.13e (Benjamin Herrenschmidt <benh@kernel.crashing.org>)
netconsole: not configured, aborting
MacIO PCI driver attached to Pangea chipset
Can't request resource 0 for MacIO device 0.80000000:mac-io
Airport at physical address 80030000
eth1: Station identity 001f:0001:0008:0046
eth1: Looks like a Lucent/Agere firmware version 8.70
eth1: Ad-hoc demo mode supported
eth1: IEEE standard IBSS ad-hoc mode supported
eth1: WEP supported, 104-bit key
eth1: MAC address 00:30:65:27:15:6D
eth1: Station name "HERMES I"
eth1: ready
airport: card registered for interface eth1
input: Macintosh mouse button emulation
apm_emu: APM Emulation 0.5 initialized.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
adb: starting probe task...
adb devices: [2]: 2 c3 [3]: 3 1 [7]: 7 1f
ADB keyboard at 2, handler 1
Detected ADB keyboard, type ANSI.
input: ADB keyboard on adb2:2.c3/input
input: ADB Powerbook buttons on adb7:7.1f/input
ADB mouse at 3, handler set to 4 (trackpad)
input: ADB mouse on adb3:3.01/input
adb: finished probe task...
ide0: Found Apple KeyLargo ATA-4 controller, bus ID 2, irq 19
Probing IDE interface ide0...
hda: IBM-IC25N030ATCS04-0, ATA DISK drive
hdb: SONY CD-RW/DVD-ROM CRX820E, ATAPI CD/DVD-ROM drive
ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
hda: Enabling Ultra DMA 2
ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
hdb: Enabling Ultra DMA 2
Using anticipatory io scheduler
ide0 at 0xca2eb000-0xca2eb007,0xca2eb160 on irq 19
hda: max request size: 128KiB
hda: 58605120 sectors (30005 MB) w/1768KiB Cache, CHS=58140/16/63, UDMA(33)
 /dev/ide/host0/bus0/target0/lun0: [mac] p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15
ide-floppy driver 0.99.newide
ide-scsi is deprecated for cd burning! Use ide-cd and give dev=/dev/hdX as device
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: SONY      Model: CD-RW  CRX820E    Rev: 1.3a
  Type:   CD-ROM                             ANSI SCSI revision: 02
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 5
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
PCI: Enabling device 0001:01:18.0 (0000 -> 0002)
ohci_hcd 0001:01:18.0: OHCI Host Controller
ohci_hcd 0001:01:18.0: irq 27, pci mem ca2f4000
ohci_hcd 0001:01:18.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Enabling device 0001:01:19.0 (0000 -> 0002)
ohci_hcd 0001:01:19.0: OHCI Host Controller
ohci_hcd 0001:01:19.0: irq 28, pci mem ca2f6000
ohci_hcd 0001:01:19.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
Advanced Linux Sound Architecture Driver Version 1.0.4 (Mon May 17 14:31:44 2004 UTC).
ALSA device list:
  No soundcards found.
NET: Registered protocol family 2
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
NET: Registered protocol family 1
NET: Registered protocol family 17
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 144k init 4k chrp 32k prep
Adding 261336k swap on /dev/hda12.  Priority:-1 extents:1
EXT3 FS on hda13, internal journal
hermes: disagrees about version of symbol struct_module
orinoco: disagrees about version of symbol struct_module
airport: disagrees about version of symbol struct_module
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda10, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda15, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda14, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
PHY ID: 4061e4, addr: 0
hda: Set PIO timing for mode 0, reg: 0x1090032b
eth1: Airport entering sleep mode
eth0: suspending, WakeOnLan disabled
radeonfb: suspending to state: 2...
radeonfb: switching to D2 state...
cpufreq: resume failed to assert current frequency is what timing core thinks it is.
radeonfb: switching to D0 state...
hStart = 1048, hEnd = 1184, hTotal = 1344
vStart = 771, vEnd = 777, vTotal = 806
h_total_disp = 0x7f00a7	   hsync_strt_wid = 0x910412
v_total_disp = 0x2ff0325	   vsync_strt_wid = 0x860302
pixclock = 15384
freq = 6500
lvds_gen_cntl: 0001ff22
radeonfb: resumed !
enable_irq(27) unbalanced
enable_irq(28) unbalanced
eth0: resuming
PHY ID: 4061e4, addr: 0
eth1: Airport waking up
ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
hda: Enabling Ultra DMA 2
adb: starting probe task...
adb devices: [2]: 2 c3 [3]: 3 1 [7]: 7 1f
ADB keyboard at 2, handler 1
ADB mouse at 3, handler set to 4 (trackpad)
adb: finished probe task...

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.7-powerpc
Locale: LANG=C, LC_CTYPE=C

Versions of packages kernel-image-2.6.7-powerpc depends on:
ii  initrd-tools                  0.1.72     tools to create initrd image for p
ii  module-init-tools             3.1-pre5-3 tools for managing Linux kernel mo

-- no debconf information



Reply to: