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

Re: New sleep code for ATI M6, M7 and M9



On Fri, Mar 14, 2003 at 06:49:44PM +0100, Benjamin Herrenschmidt wrote:
> Ladies & Gentlemens .... The looooong awaited new power management
> code coming right from the ATI labs is here ! Finally :)
> 
> I posted a patch at <http://penguinppc.org/~benh/new_sleep.diff>
> 
> Please let me know how this works for you (mention your machine
> model and video chip type, that is the output of /proc/cpuinfo
> and lspci) along with your reports so I know what's up.

It (mostly) works here. I tested it by closing the lid in X. It doesn't
work when alsa is loaded (see oops below).
Note that it also did work sometimes with older kernels (ben1, ben6 and
unpatched ben8), but very unreliably

I am using the dri-trunk packages and modules

Frank

ibook:~# cat /proc/cpuinfo 
cpu             : 750FX
temperature     : 15 C (uncalibrated)
clock           : 600MHz
revision        : 1.18 (pvr 7000 0112)
bogomips        : 1189.47
machine         : PowerBook4,3
motherboard     : PowerBook4,3 MacRISC2 MacRISC Power Macintosh
detected as     : 257 (iBook 2 rev. 2)
pmac flags      : 0000000b
L2 cache        : 512K unified
memory          : 384MB
pmac-generation : NewWorld

book:~# lspci 
00:0b.0 Host bridge: Apple Computer Inc. UniNorth/Pangea AGP
00:10.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY
10:0b.0 Host bridge: Apple Computer Inc. UniNorth/Pangea PCI
10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Pangea Mac I/O
10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Pangea USB
10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Pangea USB
20:0b.0 Host bridge: Apple Computer Inc. UniNorth/Pangea Internal PCI
20:0e.0 Class ffff: Apple Computer Inc. UniNorth/Pangea FireWire (rev ff)
20:0f.0 Ethernet controller: Apple Computer Inc. UniNorth/Pangea GMAC (Sun GEM)

ksymoops 2.4.8 on ppc 2.4.20-ben8.  Options used
     -V (default)
     -k /proc/ksyms (default)
     -l /proc/modules (default)
     -o /lib/modules/2.4.20-ben8/ (default)
     -m /boot/System.map-2.4.20-ben8 (default)

Warning: You did not tell me where to find symbol information.  I will
assume that the log matches the kernel and modules that are running
right now and I'll use the default options above for symbol resolution.
If the current kernel and/or modules do not match the log, you can get
more accurate output by telling me the kernel version and where to find
map, modules, ksyms etc.  ksymoops -h explains the options.

Warning (compare_maps): mismatch on symbol xchg_u32  , ksyms_base says c000e338, System.map says c00087ec.  Ignoring ksyms_base entry
Warning (compare_maps): mismatch on symbol snd_cards_count  , snd says da379f54, /lib/modules/2.4.20-ben8/alsa/snd.o says da372010.  Ignoring /lib/modules/2.4.20-ben8/alsa/snd.o entry
Warning (compare_maps): mismatch on symbol snd_seq_root  , snd says da379f64, /lib/modules/2.4.20-ben8/alsa/snd.o says da372020.  Ignoring /lib/modules/2.4.20-ben8/alsa/snd.o entry
Warning (compare_maps): mismatch on symbol scsi_command_size  , scsi_mod says da365a8c, /lib/modules/2.4.20-ben8/kernel/drivers/scsi/scsi_mod.o says da352000.  Ignoring /lib/modules/2.4.20-ben8/kernel/drivers/scsi/scsi_mod.o entry
Warning (compare_maps): mismatch on symbol scsi_dma_free_sectors  , scsi_mod says da365a94, /lib/modules/2.4.20-ben8/kernel/drivers/scsi/scsi_mod.o says da352008.  Ignoring /lib/modules/2.4.20-ben8/kernel/drivers/scsi/scsi_mod.o entry
Warning (compare_maps): mismatch on symbol scsi_need_isa_buffer  , scsi_mod says da365a98, /lib/modules/2.4.20-ben8/kernel/drivers/scsi/scsi_mod.o says da35200c.  Ignoring /lib/modules/2.4.20-ben8/kernel/drivers/scsi/scsi_mod.o entry
Warning (compare_maps): mismatch on symbol radeon_flags  , radeon says da3501f8, /lib/modules/2.4.20-ben8/kernel/drivers/char/drm/radeon.o says da333000.  Ignoring /lib/modules/2.4.20-ben8/kernel/drivers/char/drm/radeon.o entry
Warning (compare_maps): mismatch on symbol ignore  , ide-cd says da326054, /lib/modules/2.4.20-ben8/kernel/drivers/ide/ide-cd.o says da31f000.  Ignoring /lib/modules/2.4.20-ben8/kernel/drivers/ide/ide-cd.o entry
Oops: kernel access of bad area, sig: 11
NIP: 82F60004 XER: 20000000 LR: C0007054 SP: D5415DC0 REGS: d5415d10 TRAP: 0400    Not tainted
Using defaults from ksymoops -t elf32-powerpc -a powerpc:common
MSR: 40001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = d5414000[478] 'pmud' Last syscall: 54
last math d54d4000 last altivec 00000000
GPR00: 82F60004 D5415DC0 D5414000 FFFFFFFF 00009032 00000001 C01D8C98 00000000
GPR08: 0000001C C02273EC 00000000 C0007058 84004484 101E4168 00000000 00000000
GPR16: 00000000 00000000 00000000 00000000 00009032 15415F40 00000000 C006434
GPR24: C020677C 00000004 C020677C 00000002 FFFFFFFF C0216720 FFFFFFE0 C0216700
Call backtrace:
00000001 C0007070 DA3966C0 DA39684C C0106E80 C01073B0
C004D988 C0 061FC 0FF82B0C 10003800 0FEC3E04 00000000
Warning (Oops_read): Code line not seen, dumping what data is available


>>NIP; 82f60004 Before first symbol   <=====

>>GPR1; d5415dc0 <_end+15189d84/1a08a024>
>>GPR2; d5414000 <_end+15187fc4/1a08a024>
>>GPR6; c01d8c98 <runqueue_head+0/8>
>>GPR9; c02273ec <init_idle+48/e4>
>>GPR11; c0007058 <disable_irq+0/54>
>>GPR24; c020677c <sleep_notifiers+0/8>
>>GPR26; c020677c <sleep_notifiers+0/8>
>>GPR29; c0216720 <irq_desc+0/2000>
>>GPR31; c0216700 <__stop___ksymtab+214/220>

Trace; 00000001 Before first symbol
Trace; c0007070 <disable_irq+18/54>
Trace; da3966c0 <[snd-powermac]snd_pmac_suspend+70/cc>
Trace; da39684c <[snd-powermac]snd_pmac_sleep_notify+50/54>
Trace; c0106e80 <broadcast_sleep+54/d4>
Trace; c01073b0 <pmu_ioctl+10c/2dc>
Trace; c004d988 <sys_ioctl+cc/260>


10 warnings issued.  Results may not be reliable.


> 
> If it works properly for everybody, I'll release -ben9 before
> going on vacation for a week :)
> 
> Ben.
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: