Re: stranded Ibook g4 users

2005-04-18 Thread Giuseppe Lavagetto
Il giorno 19/apr/05, alle 08:14, Benjamin Herrenschmidt ha scritto:
How do you actually differenciate Rev 1.1 from Rev 1.2 ? What
information in the device-tree or /proc/cpuinfo do you use for
differenciating them ??
From my preceding email:
cpuinfo:
processor   : 0
cpu : 7447A, altivec supported
clock   : 599MHz
revision: 1.1 (pvr 8003 0101)
I think he refers to this.
Bye
Peppe
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: stranded Ibook g4 users

2005-04-18 Thread Benjamin Herrenschmidt
On Tue, 2005-04-19 at 01:50 -0400, Eric Pineault wrote:
> Hi all, sorry for the delayed reply, thanks first of all for the
> interest and time. I'm totally swamped with work this week, so will be a
> bit passive, but it seems we identified a specific type of Ibook G4,
> revision 1.1. Sleep works on revision 1.2 but not on ours. 
> I also am ready and willing to try any patched kernel that could get
> this machine to sleep. 

How do you actually differenciate Rev 1.1 from Rev 1.2 ? What
information in the device-tree or /proc/cpuinfo do you use for
differenciating them ??

Note that I'll get access to one of these tomorrow (the same one I used
to do the initial sleep work) thanks to Rob Weir, so maybe I'll be able
to figure something out.

> On the Ubutnu list here's what's been done up to now:
> 
> "hey guys,
> While I'm looking around in an attempt to build the kernel 2.6.12-rc2
> from http://kernel.org/pub/linux/kernel/v2.6/testing/
> I found a site that claims to have the same ibook that we have and
> claims he has sleep working. He says we have to build a 2.6.11 kernel
> and apply a particular patch.
> 
> http://www.aronchi.org/LinuxOnIBookG4 "
> 
> If you go to the http://forums.gentoo.org/viewtopicight=benh+patch
> that is linked from the above site, you'll realize that you'll see that
> the gentoo 2.6.11 sources probibly have the patch applied, so you start
> there if you know where to get it.
> 
> About that gentoo howTo, I posted a question as to where the gentoo
> 2.6.11 is available and what version he used. The gentoo version of
> 2.6.11 might be important since the linked gentoo forum suggested that
> the 2.6.11 was patched."
> 
> Well that's where things stand at the moment...
> 
> Any suggestions welcome,
> 
> otherwise I'll have to by a second Ibook...  ; )
> 
> Eric P
> 
> 
> ps I can't send stuff top the Debian PPC list... doesn't get their, though 
> I'm a registered user of the list...
> 
> 
-- 
Benjamin Herrenschmidt <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: stranded Ibook g4 users

2005-04-18 Thread Eric Pineault
Hi all, sorry for the delayed reply, thanks first of all for the
interest and time. I'm totally swamped with work this week, so will be a
bit passive, but it seems we identified a specific type of Ibook G4,
revision 1.1. Sleep works on revision 1.2 but not on ours. 
I also am ready and willing to try any patched kernel that could get
this machine to sleep. 

On the Ubutnu list here's what's been done up to now:

"hey guys,
While I'm looking around in an attempt to build the kernel 2.6.12-rc2
from http://kernel.org/pub/linux/kernel/v2.6/testing/
I found a site that claims to have the same ibook that we have and
claims he has sleep working. He says we have to build a 2.6.11 kernel
and apply a particular patch.

http://www.aronchi.org/LinuxOnIBookG4 "

If you go to the http://forums.gentoo.org/viewtopicight=benh+patch
that is linked from the above site, you'll realize that you'll see that
the gentoo 2.6.11 sources probibly have the patch applied, so you start
there if you know where to get it.

About that gentoo howTo, I posted a question as to where the gentoo
2.6.11 is available and what version he used. The gentoo version of
2.6.11 might be important since the linked gentoo forum suggested that
the 2.6.11 was patched."

Well that's where things stand at the moment...

Any suggestions welcome,

otherwise I'll have to by a second Ibook...  ; )

Eric P


ps I can't send stuff top the Debian PPC list... doesn't get their, though I'm 
a registered user of the list...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: making mouse event with keys

2005-04-18 Thread Tamas K Papp
On Mon, Apr 18, 2005 at 11:04:39AM +0200, Bernhard Reiter wrote:
> On Sun, Apr 17, 2005 at 01:03:46PM -0600, Mauro wrote:
> > On Sun, 2005-04-17 at 14:54 -0400, Tamas K Papp wrote:
> > > Hi,
> > > 
> > > In I11, I would like certain keys (F11, F12) to behave as if I pressed
> > > the mouse buttons 2 or 3.  Is it possible?
> 
> Yes,
> the "showkey" or "xev" commands are your friends to find out 
> what numbers those keys produce.
> Next put them into the files in
>   /proc/sys/dev/mac_hid# ls
> mouse_button2_keycode  mouse_button3_keycode  mouse_button_emulation
> echo 1 >mouse_button_emulation

Thanks for Mauro, Bernhard Reiter and Joerg Sommer for their help.
For the archives (if somebody has a similar problem), I chose to go
with the sysctl method, now my /etc/sysctl.conf has

# 3-button mouse emulation
# turn on emulation
/dev/mac_hid/mouse_button_emulation = 1
# Send middle mouse button signal with the F11 key
/dev/mac_hid/mouse_button2_keycode = 87
# Send right mouse button signal with the F12 key
/dev/mac_hid/mouse_button3_keycode = 88

which works nicely, assigning F11 and F12 to buttons 2 and 3.  The
keycodes produced by xev are different from the ones given by showkey,
and I had use the latter.  For some reason I thought this would require
gpm working, but apparently it does not because it is done by the
kernel.

Thanks,

Tamas


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: PPC64 kernel build toolchain?

2005-04-18 Thread Juergen Kreileder
Patrick Finnegan <[EMAIL PROTECTED]> writes:

> Can anyone tell me what versions of gcc, glibc, and binutils they
> used, which actually worked properly?

I've built binutils-2.15.95, gcc-3.4.3, and glibc-2.3.5 a few days ago
(on a system already running a ppc64 kernel).  I just had to make one
small change to /usr/include/sys/procfs.h to get binutils built, see
http://bugs.debian.org/304963


Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://blog.blackdown.de/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: PPC64 kernel build toolchain?

2005-04-18 Thread Patrick Finnegan
New problem (yay).  When trying to build glibc32_first, it stops with 
this error:

powerpc-linux-gcc sscanf.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -Wa,-mppc -mpowerpc -mnew-mnemonics  -I../include -I. 
-I/home/finnegpt/src/buildtools/build-glibc32/stdio-common -I.. -I../libio  
-I/home/finnegpt/src/buildtools/build-glibc32 
-I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf 
-I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32 
-I../linuxthreads/sysdeps/unix/sysv/linux/powerpc 
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread 
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv 
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc/powerpc32 
-I../linuxthreads/sysdeps/powerpc 
-I../sysdeps/unix/sysv/linux/powerpc/powerpc32 
-I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc 
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc32/fpu 
-I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32 
-I../sysdeps/powerpc/soft-fp -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc 
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 
-I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem 
/home/finnegpt/tools/biarch-3.4/usr/lib/gcc/powerpc64-linux/3.4.3/include 
-isystem /home/finnegpt/tools/biarch-3.4/usr/include -D_LIBC_REENTRANT -include 
../include/libc-symbols.h   -D_IO_MTSAFE_IO -o 
/home/finnegpt/src/buildtools/build-glibc32/stdio-common/sscanf.o
In file included from ../include/bits/string2.h:1,
 from ../string/string.h:375,
 from ../include/string.h:49,
 from ../linuxthreads_db/thread_dbP.h:5,
 from ../linuxthreads/descr.h:43,
 from ../linuxthreads/internals.h:29,
 from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
 from ../sysdeps/generic/bits/stdio-lock.h:23,
 from ../libio/libio.h:167,
 from ../include/libio.h:1,
 from ../libio/stdio.h:72,
 from ../include/stdio.h:5,
 from sscanf.c:20:
../string/bits/string2.h:80: warning: `packed' attribute ignored
../string/bits/string2.h:81: warning: `packed' attribute ignored
../string/bits/string2.h:82: warning: `packed' attribute ignored
../string/bits/string2.h:83: warning: `packed' attribute ignored
../string/bits/string2.h:84: warning: `packed' attribute ignored
../string/bits/string2.h:85: warning: `packed' attribute ignored
../string/bits/string2.h:86: warning: `packed' attribute ignored
sscanf.c:31: error: conflicting types for 'sscanf'
sscanf.c:31: error: conflicting types for 'sscanf'
sscanf.c:48: error: conflicting types for '_IO_sscanf'
../libio/iolibio.h:42: error: previous declaration of '_IO_sscanf' was here
sscanf.c:48: error: conflicting types for '_IO_sscanf'
../libio/iolibio.h:42: error: previous declaration of '_IO_sscanf' was here
sscanf.c: In function `sscanf':
sscanf.c:37: error: `va_start' used in function with fixed args
make[2]: *** 
[/home/finnegpt/src/buildtools/build-glibc32/stdio-common/sscanf.o] Error 1
make[2]: *** Waiting for unfinished jobs
make[2]: Leaving directory 
`/home/finnegpt/src/glibc-2.3.2.ds1/glibc-2.3.2/stdio-common'
make[1]: *** [stdio-common/subdir_lib] Error 2
make[1]: Leaving directory `/home/finnegpt/src/glibc-2.3.2.ds1/glibc-2.3.2'
make: *** [all] Error 2
+ fatal 'make failed'
+ msg 'make failed'
+ MSG='make failed'
++ date '+%F %k:%M:%S'
+ echo '2005-04-18 13:25:22glibc32_first: make failed'
2005-04-18 13:25:22glibc32_first: make failed
+ test 0 -eq 1
+ FATAL_ERROR=1
+ test 1 -eq 0
+ return 0

I'm using the debian/sid glibc sources (did an apt-get source libc6).

Should I be using a different version of the sources, or something?
Can anyone tell me what versions of gcc, glibc, and binutils they used,
which actually worked properly?

Thanks again,

Pat
-- 
Purdue University Research Computing ---  http://www.rcac.purdue.edu/
The Computer Refuge  ---  http://computer-refuge.org



Re: State of Java on PPC

2005-04-18 Thread Barry Hawkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul J. Lucas wrote:
> On Mon, 18 Apr 2005, Charles-Edouard Ruault wrote:
> 
>> As far as i know the latest version of the IBM Java Development Kit is
>> 1.4.2, available here :
>> http://www-106.ibm.com/developerworks/java/jdk/linux140/
> 
> 
> OK, maybe I'm blind, but I went there, signed in, and saw a
> bunch of radio-buttoned items for various flavors of the IBM
> SDK, but nothing said anything about PPC.  So which one is it?
> 
> - Paul
See the README.Debian file of java-package 8^).  It's the pSeries 32-bit
if you have anything but a G5.  If you have a G5, I will have to defer
to someone who has one.

- --
Barry Hawkins
All Things Computed
site: www.alltc.com
weblog: www.yepthatsme.com

Registered Linux User #368650
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCY/gAHuKcDICy0QoRAm8PAKC/SM1otGJTeW7UQgW8ye3LzhutvwCgtHua
i0F39AvZj3XqF9azDSidb5U=
=Rwft
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: making mouse event with keys

2005-04-18 Thread Joerg Sommer
Tamas K Papp <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In I11, I would like certain keys (F11, F12) to behave as if I pressed
> the mouse buttons 2 or 3.  Is it possible?

Yes. You need xkbset to switch on Pointer_Buttons for xmodmap.

xkbset m
xkbset exp =m

Afer this, you can do

xmodmap -e "keycode 113 = Pointer_Button2"
xmodmap -e "keycode 109 = Pointer_Button3"
xmodmap -e "keycode 117 = Pointer_Button3"

BTW: If the fn-Key would be visible in user space I could be used for
this.

Jörg.

-- 
Wer einen Traum verwirklichen will, muss erst aufwachen.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: dvd hdparm?

2005-04-18 Thread Joerg Sommer
Michael Schmitz <[EMAIL PROTECTED]> wrote:
>> > I've got a problem when I try to watch dvd's under KDE. With
>> > xine/Kaffeine sound works fine and I see the film too, only that it is
>> > not so steady. I once experienced this phenomenon when dma-mode was off
>>
>> I have the same problem. I asked on xine-user.de, but nobody knows a
>> solution.
>
> Which one isn't steady - video or audio?

video

> With alsa, I get audio sync trouble. No such problem with dmasound_pmac.

xine eats up my whole cpu and I get many dropped frames. All what is
shown is synchronous.

Joerg.
-- 
Optimisten haben gar keine Ahnung von den freudigen Überraschungen, die
Pessimisten erleben.
(Peter Bramm)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: problem with powerbook g3: black screen on boot

2005-04-18 Thread Maximilian Gerlach
Hi Rainer, hi vinai,
thanks for your responses!
It's a wallstreet, and I think it just had a loose contact - after the
fifth time I tried it the display magically started to work :)

Too bad it's an old world mac :/ New World would have been so much
easier with linux.

Thank you,
Maxi




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Reverse engeneering the SMU (iMac G5, newer single-pro G5)

2005-04-18 Thread Gabriel Paubert
On Mon, Apr 18, 2005 at 04:49:19PM +0100, Francois wrote:
> > Note that i've started doing work on the SMU driver yesterday as the
> > iMac G5 finally came back from Apple. I have the fan control pretty much
> > figured out, and I'm still working on figuring out the access to the
> > various sensors and i2c busses.
> 
> Great!
> 
> On my side I've now found how to demangle symbols in the libraries:
> 'c++filt3' (under Darwin) does it (notice the '3' at the end, c++filt
> does not work for some reason).
> 
> For instance: 
>   otool -Vt IOI2CControllerSMU | c++filt3 | less
> 
> gives a nicely demangled assembly code with C++ symbols.
> 
> > A call graph of Apple kext would still be useful tho, and if somebody
> > manage to figure out how to also get some sense into the c++ vtable
> > method calls (map them to method names), that would be awesome.
> 
> c++filt3 is able to spot vtable access:
>   otool -Vt IOI2CControllerSMU | c++filt3 | \
> grep "vtable\|^[^[:space:]]*:" > vtable-use.txt
> 
> I've attached vtable-use.txt to this mail. By doing 
>   grep -B1 "vtable" vtable-use.txt | less | grep "^[^[:space:]]*:"
> 
> you basically get the methods is which vtables are accessed
> inIOI2CControllerSMU :
> 
> IOI2CControllerSMU::IOI2CControllerSMU[not-in-charge](OSMetaClass
> const*):
> IOI2CControllerSMU::IOI2CControllerSMU[in-charge](OSMetaClass const*):
> IOI2CControllerSMU::~IOI2CControllerSMU [not-in-charge]():
> IOI2CControllerSMU::~IOI2CControllerSMU [in-charge deleting]():
> IOI2CControllerSMU::MetaClass::MetaClass[not-in-charge]():
> IOI2CControllerSMU::MetaClass::MetaClass[in-charge]():
> IOI2CControllerSMU::IOI2CControllerSMU[not-in-charge]():
> IOI2CControllerSMU::IOI2CControllerSMU[in-charge]():
> IOI2CControllerSMU::start(IOService*):
> IOI2CControllerSMU::free():
> IOI2CControllerSMU::MetaClass::~MetaClass [in-charge deleting]():
> 
> I don't know what [in-charge] and [not-in-charge mean]. Does someone
> know?

It's something that causes bloat in C++, as so many other «features»:
for every constuctor and destructor, the compiler generates actually 
two functions: one for when the constructor (resp. destructor) is called 
from the constructor (resp. destuctor) of a derived class, one for
when the object to construct (or destroy) is of the class the constructor
or destructor was written for. The first case is [not-in-charge], the
second is [in-charge]. Now I don't know the difference between
[in-charge deleting] and other versions of [in-charge] for destructors.
I remember something about up to 3 different destructors in some cases
but don't quote me on that.

The worst case is when there are virtual bases and multiple inheritance: 
the compiler generates tons of virtual tables which are only for use 
during the contruction on the object (i.e., when the virtual functions 
that might be called must only correspond to the already constructed 
part of the object).

If you want to be really disgusted by the code generated by GCC in
the case of complex inheritance, just write something using the C++
version of gtk (gtkmm), derive a class from (for example) a Gtk::SpinButton,
create your own constructor and look at the assembly generated
(but you'll need some aspirin to understand it).

Anyway for gory details, there is a documentation at:
http://www.codesourcery.com/cxx-abi/abi.html

Gabriel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Dual-boot problem with OSX 10.3.9 (OT ish)

2005-04-18 Thread Clive Menzies
On (18/04/05 17:42), James Tappin wrote:
> On Mon, 18 Apr 2005 14:28:17 +0100
> James Tappin <[EMAIL PROTECTED]> wrote:
> 
> JT> I have a G3 iBook that is supposed to dual-boot Debian/Sarge and
> JT> MacOS X.
> JT> 
> JT> I use the yaboot boot loader, but since the latest OSX release
> JT> (10.3.9) I can only boot Linux. Whenever I try to boot OSX it comes
> JT> up with the Apple logo then powers itself down again. I've tried
> JT> rerunning ybin with no joy.
> JT> 
> JT> My question therefore is: Has anyone else had a similar problem and
> JT> if so have you found a solution (e.g. a change in the yaboot config
> JT> files)?
> 
> I think I may have found something here (at least the problem's gone).
> 
> It looks as if the upgrade managed to trash the hardware clock setting,
> and in addition when I booted to Linux, the wireless base station was
> weak so that the network was effectively down when ntpdate tried to run
> -- as a result on Linux I was getting a date of 1-Jan-1904. After
> manually running ntpdate on Linux I can now boot both OSes. Wierd!!!
> (I can only assume that OSX checks and won't run before its release date).
Often, resetting the PRAM will sort out these sorts of problems. Hold
down:
Apple+Option+P +R on boot and wait for the chimes.

Regards

Clive

-- 
www.clivemenzies.co.uk ...
...strategies for business



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [PATCH] pmac: sound support for latest laptops

2005-04-18 Thread Brian C
Colin wrote:
[snip]
>> What is a safe temperature for the CPU? Could I just set the
>> cpu_limit to 55? If so, how would I do that?
>
>echo 5 > /sys/devices/temperatures/limit_adjust
>(this will add 5 to the default 50°C)
>
>I should give a look at Darwin's drivers to see whether default
>temperatures are different for your model, and adapt the driver if
>necessary.
Thanks. That makes the fan noise tolerable as the fan never goes above 
199 rpm with normal operation and the temp hovers at 61-62.

However, I discovered that I had not compiled in the userspace module 
for cpu frequency management, so the only scaling governor I had was 
"performance" which runs the processor at 1.5 GHz the whole time. By 
adding the userspace module I can also add the "powersave" scaling 
governor. I suspect this will help a lot. I'm recompiling now.

However, one thing that is clear is that when the processor runs at 
1.5Ghz (full-speed) for even a few minutes, the fan will ramp up to full 
speed and pretty much stay there forever. That's not particularly 
desirable, so perhaps investigating Darwin's approach is still a good idea.

Brian
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Dual-boot problem with OSX 10.3.9 (OT ish)

2005-04-18 Thread James Tappin
On Mon, 18 Apr 2005 14:28:17 +0100
James Tappin <[EMAIL PROTECTED]> wrote:

JT> I have a G3 iBook that is supposed to dual-boot Debian/Sarge and
JT> MacOS X.
JT> 
JT> I use the yaboot boot loader, but since the latest OSX release
JT> (10.3.9) I can only boot Linux. Whenever I try to boot OSX it comes
JT> up with the Apple logo then powers itself down again. I've tried
JT> rerunning ybin with no joy.
JT> 
JT> My question therefore is: Has anyone else had a similar problem and
JT> if so have you found a solution (e.g. a change in the yaboot config
JT> files)?

I think I may have found something here (at least the problem's gone).

It looks as if the upgrade managed to trash the hardware clock setting,
and in addition when I booted to Linux, the wireless base station was
weak so that the network was effectively down when ntpdate tried to run
-- as a result on Linux I was getting a date of 1-Jan-1904. After
manually running ntpdate on Linux I can now boot both OSes. Wierd!!!
(I can only assume that OSX checks and won't run before its release date).


James

-- 
++---+-+
| James Tappin   | School of Physics & Astronomy |  O__|
| [EMAIL PROTECTED] | University of Birmingham  | --  \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722  | |
++-+


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: problem with powerbook g3: black screen on boot

2005-04-18 Thread vinai
On Mon, 18 Apr 2005, Rainer Gutkas wrote:
Maximilian Gerlach schrieb:
Hi everyone,
I bought a Powerbook G3 on ebay. When I start it I hear the apple sound
but the display stays black - any suggestions? :/
Thanks,
Maxi
Which kind of G3 Powerbook, Wallstreet, Lombard, Pismo, or if you don't know 
that which connections has it got on the back:
Wallstreet got SCSI connections, Pismo got 2 USB and 2 Firewire, Lombard to be 
honest I don't know,
Wallstreets have SCSI + ADB ports
Lombards have SCSI + USB
Pismos have Firewire + USB
HTH
vinai
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: problem with powerbook g3: black screen on boot

2005-04-18 Thread Rainer Gutkas
Maximilian Gerlach schrieb:
Hi everyone,
I bought a Powerbook G3 on ebay. When I start it I hear the apple sound
but the display stays black - any suggestions? :/
Thanks,
Maxi
 

Which kind of G3 Powerbook, Wallstreet, Lombard, Pismo, or if you don't 
know that which connections has it got on the back:
Wallstreet got SCSI connections, Pismo got 2 USB and 2 Firewire, Lombard 
to be honest I don't know,
Which OS is installed on the system.
If it's a Wallstreet, how long did you wait until you turned off again, 
my wallstreet needs a long long time till it starts really booting after 
startup time, it needs about half a minute until any diplay response,...

Rainer
begin:vcard
fn:Rainer Gutkas
n:Gutkas;Rainer
adr;quoted-printable:;;Kleiststr. 36;St.P=C3=B6lten;;A-3100;Austria
email;internet:[EMAIL PROTECTED]
title:Bakk. techn. (B.Sc.)
version:2.1
end:vcard



Re: Can't get sendmail to issue 250-AUTH

2005-04-18 Thread Paul J. Lucas
On Mon, 18 Apr 2005, Paul J. Lucas wrote:
I've followed all the instructions for setting this up, e.g.,
those found here:
http://www.falkotimme.com/howtos/sendmail_smtp_auth_tls/
yet when I telnet to port 25, I don't get "250-AUTH".  What am I
missing?
Bah!!!  It turns out that I didn't have libsasl2-modules package
installed.  Nothing in the log files ever complained that it
couldn't find anything.  :-(  But at least it works now.  :-)
- Paul
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Reverse engeneering the SMU (iMac G5, newer single-pro G5)

2005-04-18 Thread Francois
> Note that i've started doing work on the SMU driver yesterday as the
> iMac G5 finally came back from Apple. I have the fan control pretty much
> figured out, and I'm still working on figuring out the access to the
> various sensors and i2c busses.

Great!

On my side I've now found how to demangle symbols in the libraries:
'c++filt3' (under Darwin) does it (notice the '3' at the end, c++filt
does not work for some reason).

For instance: 
  otool -Vt IOI2CControllerSMU | c++filt3 | less

gives a nicely demangled assembly code with C++ symbols.

> A call graph of Apple kext would still be useful tho, and if somebody
> manage to figure out how to also get some sense into the c++ vtable
> method calls (map them to method names), that would be awesome.

c++filt3 is able to spot vtable access:
  otool -Vt IOI2CControllerSMU | c++filt3 | \
grep "vtable\|^[^[:space:]]*:" > vtable-use.txt

I've attached vtable-use.txt to this mail. By doing 
  grep -B1 "vtable" vtable-use.txt | less | grep "^[^[:space:]]*:"

you basically get the methods is which vtables are accessed
inIOI2CControllerSMU :

IOI2CControllerSMU::IOI2CControllerSMU[not-in-charge](OSMetaClass
const*):
IOI2CControllerSMU::IOI2CControllerSMU[in-charge](OSMetaClass const*):
IOI2CControllerSMU::~IOI2CControllerSMU [not-in-charge]():
IOI2CControllerSMU::~IOI2CControllerSMU [in-charge deleting]():
IOI2CControllerSMU::MetaClass::MetaClass[not-in-charge]():
IOI2CControllerSMU::MetaClass::MetaClass[in-charge]():
IOI2CControllerSMU::IOI2CControllerSMU[not-in-charge]():
IOI2CControllerSMU::IOI2CControllerSMU[in-charge]():
IOI2CControllerSMU::start(IOService*):
IOI2CControllerSMU::free():
IOI2CControllerSMU::MetaClass::~MetaClass [in-charge deleting]():

I don't know what [in-charge] and [not-in-charge mean]. Does someone
know?

It seems that in IOI2CControllerSMU at least all vtable accesses are
done in constructors/destructors except for
IOI2CControllerSMU::start(IOService*) and IOI2CControllerSMU::free().

I have not got time to built call graphs out of this and probably won't
for the next couple of days, but I'll get back to it as soon as I can.

Cheers

Francois

On Sun, 2005-04-17 at 03:43, Benjamin Herrenschmidt wrote:
> On Fri, 2005-04-15 at 10:37 +0100, Francois wrote:
> > Hello Franck,
> > 
> > thanks a lot for your help proposal. Just to give you an idea of what I
> > know and I don't: the last assembly programming I did was on a 8 bit Z80
> > years ago (I guess I could reuse this knowledge today to program
> > dishwasher and coffee machines :-). So far, I've worked my way through
> > the ppc code I've looked at using Motorola's ppc manual [1].
> > 
> > [1] http://www.freescale.com/files/product/doc/MPCFPE32B.pdf
> > 
> > My hope was to get an idea of the structure of Apple's code (who is
> > calling what etc). Maybe there is no real need for that, as, as you've
> > said, symbol names are often clear enough to spot basic functions. What
> > do you think?
> 
> Note that i've started doing work on the SMU driver yesterday as the
> iMac G5 finally came back from Apple. I have the fan control pretty much
> figured out, and I'm still working on figuring out the access to the
> various sensors and i2c busses.
> 
> A call graph of Apple kext would still be useful tho, and if somebody
> manage to figure out how to also get some sense into the c++ vtable
> method calls (map them to method names), that would be awesome.
> 
> Ben.

IOI2CControllerSMU:
IOI2CControllerSMU::IOI2CControllerSMU[not-in-charge](OSMetaClass const*):
0018lis r2,ha16(vtable for IOI2CControllerSMU)
001caddir2,r2,lo16(vtable for IOI2CControllerSMU)
IOI2CControllerSMU::IOI2CControllerSMU[in-charge](OSMetaClass const*):
0064lis r2,ha16(vtable for IOI2CControllerSMU)
0068addir2,r2,lo16(vtable for IOI2CControllerSMU)
IOI2CControllerSMU::~IOI2CControllerSMU [not-in-charge]():
0098lis r2,ha16(vtable for IOI2CControllerSMU)
00a0addir2,r2,lo16(vtable for IOI2CControllerSMU)
IOI2CControllerSMU::~IOI2CControllerSMU [in-charge deleting]():
00d4lis r2,ha16(vtable for IOI2CControllerSMU)
00dcaddir2,r2,lo16(vtable for IOI2CControllerSMU)
IOI2CControllerSMU::getMetaClass() const:
IOI2CControllerSMU::MetaClass::MetaClass[not-in-charge]():
0170lis r2,ha16(vtable for IOI2CControllerSMU::MetaClass)
0174addir2,r2,lo16(vtable for IOI2CControllerSMU::MetaClass)
IOI2CControllerSMU::MetaClass::MetaClass[in-charge]():
01d0lis r2,ha16(vtable for IOI2CControllerSMU::MetaClass)
01d4addir2,r2,lo16(vtable for IOI2CControllerSMU::MetaClass)
IOI2CControllerSMU::MetaClass::alloc() const:
IOI2CControllerSMU::IOI2CControllerSMU[not-in-charge]():
0280lis r2,ha16(vtable for IOI2CControllerSMU)
0288addir2,r2,lo16(vtable for IOI2CControllerSMU)
IOI2CControllerSMU::IOI2CControllerSMU[in-charge]():
00

Can't get sendmail to issue 250-AUTH

2005-04-18 Thread Paul J. Lucas
I've followed all the instructions for setting this up, e.g.,
those found here:
http://www.falkotimme.com/howtos/sendmail_smtp_auth_tls/
yet when I telnet to port 25, I don't get "250-AUTH".  What am I
missing?
I'm running sendmail 8.13.3 with saslauthd.  My .mc file is
below.
- Paul
divert(-1)
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
dnl include(`/etc/mail/tls/starttls.m4')
OSTYPE(`debian')
DOMAIN(`debian-mta')dnl
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE 
undefine(`confHOST_STATUS_DIRECTORY')dnl		#DAEMON_HOSTSTATS 
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission')
dnl
dnl STARTTLS
dnl
define(`confTO_STARTTLS',`1m')
define(`CERT_DIR',`/etc/ssl/certs')
define(`confCACERT_PATH',`CERT_DIR')
define(`confCACERT',`CERT_DIR/cacert.pem')
define(`confSERVER_CERT',`CERT_DIR/sendmail.pem')
define(`confSERVER_KEY',`/etc/ssl/private/sendmail.pem')
define(`confTLS_SRV_OPTIONS', `V')
dnl
dnl SMTP AUTH
dnl
include(`/etc/mail/sasl/sasl.m4')dnl
define(`confAUTH_OPTIONS',`A p')
dnl
dnl Everything else
dnl
define(`confBAD_RCPT_THROTTLE',3)
define(`confCONNECTION_RATE_THROTTLE',5)
define(`confDONT_PROBE_INTERFACES',true)
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confTO_CONNECT', `1m')
define(`confTO_DATABLOCK', `10m')
define(`confTO_DATAFINAL', `15m')
define(`confTO_FILEOPEN', `10s')
define(`confTO_HELO', `1m')
define(`confTO_ICONNECT', `1m')
define(`confTO_INITIAL', `1m')
define(`confTO_MAIL', `2m')
define(`confTO_QUIT', `1m')
define(`confTO_RCPT', `5m')
define(`confTO_RSET', `1m')
define(`confTRY_NULL_MX_LIST',true)
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
FEATURE(`access_db')
FEATURE(`always_add_domain')
FEATURE(`blacklist_recipients')
FEATURE(`greet_pause')
FEATURE(`local_procmail')
FEATURE(`masquerade_envelope')
FEATURE(`no_default_msa')
FEATURE(`relay_entire_domain')
FEATURE(`smrsh')dnl
FEATURE(`use_ct_file')
FEATURE(`use_cw_file')
MAILER(smtp)
MAILER(procmail)

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: State of Java on PPC

2005-04-18 Thread Paul J. Lucas
On Mon, 18 Apr 2005, Charles-Edouard Ruault wrote:
As far as i know the latest version of the IBM Java Development Kit is 1.4.2, 
available here : http://www-106.ibm.com/developerworks/java/jdk/linux140/
OK, maybe I'm blind, but I went there, signed in, and saw a
bunch of radio-buttoned items for various flavors of the IBM
SDK, but nothing said anything about PPC.  So which one is it?
- Paul
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


problem with powerbook g3: black screen on boot

2005-04-18 Thread Maximilian Gerlach
Hi everyone,
I bought a Powerbook G3 on ebay. When I start it I hear the apple sound
but the display stays black - any suggestions? :/

Thanks,
Maxi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: State of Java on PPC

2005-04-18 Thread Barry Hawkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul J. Lucas wrote:
> A few years ago, the state of Java on Linux/PPC was less than
> that of Java on x86.  Has that improved?
I would answer with a resounding yes.  In fact, the Java on PowerPC
Linux in Debian specifically has improved.
On the non-free Java front, the java-package Debian package now
supports the building of IBM 1.3 and 1.4 JREs and JDKs, as well as the
Blackdown 1.3.1 JREs and JDKs for PowerPC released earlier this year.
On the free runtimes for the Java(TM) programming language front,
support has steadily improved in kaffe, sablevm, and gcj.  Other
experimental efforts are in the works for JikesRVM and the like.
For more information on what is available, please see the
README.Debian file of the java-package utility.  And yes, I am a
maintainer for that package, hence the enthusiasm. 8^)  We would welcome
your help in the effort!

Regards,
- --
Barry Hawkins
All Things Computed
site: www.alltc.com
weblog: www.yepthatsme.com

Registered Linux User #368650
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCY8ZJHuKcDICy0QoRAsekAKCftDtySwAP/2LU3H3/hUUxg6MVXwCg0TkP
+3UUPJoBrf8pGoMgggYELD8=
=9PWD
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ckermit powerpc build request

2005-04-18 Thread Ian Beckwith
On Mon, Apr 18, 2005 at 03:09:35PM +0200, Michael Schmitz wrote:
> > Could some kind DD make a powerpc porter upload of ckermit 211-5 in
> > non-free?
> 
> Done.

Thanks!

er, unfortunately since I posted this someone else did it for me.

thanks again, and sorry to waste your time.

Ian.

-- 
Ian Beckwith - [EMAIL PROTECTED] - http://nessie.mcc.ac.uk/~ianb/
GPG fingerprint: AF6C C0F1 1E74 424B BCD5  4814 40EC C154 A8BA C1EA
Listening to: Dandy Warhols - Come Down - Minnesoter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: dvd hdparm?

2005-04-18 Thread Michael Schmitz
> > I've got a problem when I try to watch dvd's under KDE. With
> > xine/Kaffeine sound works fine and I see the film too, only that it is
> > not so steady. I once experienced this phenomenon when dma-mode was off
>
> I have the same problem. I asked on xine-user.de, but nobody knows a
> solution.

Which one isn't steady - video or audio?

With alsa, I get audio sync trouble. No such problem with dmasound_pmac.

Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ckermit powerpc build request

2005-04-18 Thread Michael Schmitz
> Could some kind DD make a powerpc porter upload of ckermit 211-5 in
> non-free?

Done.

Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Dual-boot problem with OSX 10.3.9 (OT ish)

2005-04-18 Thread James Tappin
I have a G3 iBook that is supposed to dual-boot Debian/Sarge and MacOS
X.

I use the yaboot boot loader, but since the latest OSX release (10.3.9)
I can only boot Linux. Whenever I try to boot OSX it comes up with the
Apple logo then powers itself down again. I've tried rerunning ybin with
no joy.

My question therefore is: Has anyone else had a similar problem and if
so have you found a solution (e.g. a change in the yaboot config files)?

TIA
James

-- 
++---+-+
| James Tappin   | School of Physics & Astronomy |  O__|
| [EMAIL PROTECTED] | University of Birmingham  | --  \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722  | |
++-+


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: State of Java on PPC

2005-04-18 Thread Dalibor Topic
Am Montag, den 18.04.2005, 10:49 +0200 schrieb Bernhard Reiter:
> On Sat, Apr 16, 2005 at 09:18:30AM -0700, Wilhelm Fitzpatrick wrote:
> > 
> > On Apr 16, 2005, at 9:10 AM, Paul J. Lucas wrote:
> > 
> > >   A few years ago, the state of Java on Linux/PPC was less than
> > >   that of Java on x86.  Has that improved?
> > 
> > The state of Java on Linux/PPC has not really changed at all since a 
> > year ago, that I am aware of.
> 
> But I have heard that the Free Software implementations,
> like gcj and Classpath have made significant progress lately.

Yes, I think so. The last year was insanely busy[2] and great, things
went from barely running tomcat4 with tricks to making tomcat5,
Eclipse3.1M6, Resin, and all that mostly work. Most recently I made the
necessary hacks to make Kaffe work within NetBeans4[1] (though we can't
run NetBeans itself just yet ;). For the daily updates from the free
runtime pool see http://planet.classpath.org .

In brief: Kaffe got an initial ppc jit (volunteers, volunteers,
volunteers: it still needs a few good hackers to make it all work
fine ;), SableVM just got JVMDI, gcj got a binary-compatiblity ABI for
shared objects, JamVM got great, fast and convenient enough to become
the GNU Classpath hackers favourite choice, CacaoJVM joined the GNU
Classpath VM pool with jits on ppc, amd64 and all that, JikesRVM (the
excellent, fast JVM written in Java from IBM) was made to bootstrap on
free software only, JCVM started to seriously rock regarding
performance, IKVM bridged the Mono/C# gap, ...

Things are getting a lot better in Free Runtime land pretty quickly,
more stuff 'just works'. There are a lot of things that don't just work
*yet*, but it is getting increasingly simpler for dedicated hackers to
fill in the blanks, and smash Java traps. And it's fun, too ;)

cheers,
dalibor topic

[1] http://www.kaffe.org/~robilad/kaffe-in-netbeans-4.png
[2] http://www.kaffe.org/~robilad/loc.png


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: making mouse event with keys

2005-04-18 Thread Bernhard Reiter
On Sun, Apr 17, 2005 at 01:03:46PM -0600, Mauro wrote:
> On Sun, 2005-04-17 at 14:54 -0400, Tamas K Papp wrote:
> > Hi,
> > 
> > In I11, I would like certain keys (F11, F12) to behave as if I pressed
> > the mouse buttons 2 or 3.  Is it possible?

Yes,
the "showkey" or "xev" commands are your friends to find out 
what numbers those keys produce.
Next put them into the files in
/proc/sys/dev/mac_hid# ls
mouse_button2_keycode  mouse_button3_keycode  mouse_button_emulation
echo 1 >mouse_button_emulation


> > I searched the list archives but found nothing, maybe I used the wrong
> > keywords...
> > 
> > Tamas
> 
> If its an ibook, try reading towards the end of
> http://ubuntuppc.webplazahosting.com/index.php?Sarge%20to%20Hoary


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: State of Java on PPC

2005-04-18 Thread Bernhard Reiter
On Sat, Apr 16, 2005 at 09:18:30AM -0700, Wilhelm Fitzpatrick wrote:
> 
> On Apr 16, 2005, at 9:10 AM, Paul J. Lucas wrote:
> 
> > A few years ago, the state of Java on Linux/PPC was less than
> > that of Java on x86.  Has that improved?
> 
> The state of Java on Linux/PPC has not really changed at all since a 
> year ago, that I am aware of.

But I have heard that the Free Software implementations,
like gcj and Classpath have made significant progress lately.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: External Monitor from PowerBook5,6 not working

2005-04-18 Thread Bernhard Reiter
On Sat, Apr 16, 2005 at 09:59:23AM +1000, Benjamin Herrenschmidt wrote:
> On Fri, 2005-04-15 at 12:04 +0200, Bernhard Reiter wrote:
> > On Thu, Apr 14, 2005 at 06:02:05PM +0200, Bernhard Reiter wrote:
> > > On Thu, Apr 14, 2005 at 05:30:02PM +0200, Bernhard Reiter wrote:
> > > 
> > > > So now I have a fresh CVS build of xorg.
> > > > 
> > > > I still cannot get a pictures without using "UseFBDev".
> 
> Hrm... UseFBDev does not work with dual head. 
> If you are using X.org CVS
> HEAD, it should work with VGA out (but not DVI yet).

I am a bit in the dark how I should configure this.
Shall I use "UseFBDev" and then what?

As mentioned, I get unusable disorted output when the external 
monitor is plugged in via VGA (over the dvi port) and I am booting my kernel.
But this is unrelated to the xserver.

My understanding of Option "VGAAccess" from the manpage tells me 
that this is not the right option for this.


pgpAp1uNGXK1d.pgp
Description: PGP signature


Re: State of Java on PPC

2005-04-18 Thread Arnaud Vandyck
Mon, 18 Apr 2005 09:20:07 +0200, 
Charles-Edouard Ruault <[EMAIL PROTECTED]> wrote: 

> Benjamin Herrenschmidt wrote:
>
>>On Sat, 2005-04-16 at 09:10 -0700, Paul J. Lucas wrote:
>>> A few years ago, the state of Java on Linux/PPC was less than
>>> that of Java on x86.  Has that improved?
>>There may be newer versions of the IBM JDK I suppose...
> As far as i know the latest version of the IBM Java Development Kit is
> 1.4.2, available here:
> http://www-106.ibm.com/developerworks/java/jdk/linux140/ 
> I'm running it on my powerbook G4 with no problem (aside the fact that
> you have to select the correct platform version for the JIT to work
> fine).

... and all the free JVM's/ compilers work fine on powerpc. Everything
is not implemented yet but you can have a try to:

. sablevm (runtime)
. kaffe (JDK)
. gij/gcj (runtime/ compiler)
. jikes (compiler)
. jamvm (runtime)

Thanks to report bugs with test cases ;-)

Cheers,

-- 
  .''`. 
 : :' :rnaud
 `. `'  
   `-
Java Trap: http://www.gnu.org/philosophy/java-trap.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



SMU driver

2005-04-18 Thread Benjamin Herrenschmidt
Hi !

Below is a patch against current 2.6.12-rc2 rewriting most of the SMU
driver. It is now interrupt based and provides a /dev/smu userland
interface for sending commands. I appended after the patch the source
code for a small userland tool that blinks the front led using that
interface.

Now that the basic brick is there, I'll start toying with accessing the
sensors, the i2c bus, etc... to get some proper thermal control, but
I'll be fairly busy for the rest of the week with LCA, so if somebody
wants to beat me on it and figure out how these things work, go for it.
I've got the fan commands pretty much figured out already (thanks Markus
and the OF code). For any serious hacking, I really suggest you look at
the forth words of the SMU OF drivers for those who didn't yet.

Index: linux-work/drivers/macintosh/smu.c
===
--- linux-work.orig/drivers/macintosh/smu.c 2005-04-18 11:57:19.0 
+1000
+++ linux-work/drivers/macintosh/smu.c  2005-04-18 17:30:18.0 +1000
@@ -8,21 +8,10 @@
  */
 
 /*
- * For now, this driver includes:
- * - RTC get & set
- * - reboot & shutdown commands
- * all synchronous with IRQ disabled (ugh)
- *
  * TODO:
- *   rework in a way the PMU driver works, that is asynchronous
- *   with a queue of commands. I'll do that as soon as I have an
- *   SMU based machine at hand. Some more cleanup is needed too,
- *   like maybe fitting it into a platform device, etc...
- *   Also check what's up with cache coherency, and if we really
- *   can't do better than flushing the cache, maybe build a table
- *   of command len/reply len like the PMU driver to only flush
- *   what is actually necessary.
- *   --BenH.
+ *  - Maybe add timeout to commands ?
+ *  - i2c interface
+ *  - blocking version of time functions
  */
 
 #include 
@@ -36,6 +25,9 @@
 #include 
 #include 
 #include 
+#include 
+#include 
+#include 
 
 #include 
 #include 
@@ -45,6 +37,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #define DEBUG_SMU 1
 
@@ -57,20 +50,26 @@
 /*
  * This is the command buffer passed to the SMU hardware
  */
+#define SMU_MAX_DATA   254
+
 struct smu_cmd_buf {
u8 cmd;
u8 length;
-   u8 data[0x0FFE];
+   u8 data[SMU_MAX_DATA];
 };
 
 struct smu_device {
spinlock_t  lock;
struct device_node  *of_node;
-   int db_ack; /* doorbell ack GPIO */
-   int db_req; /* doorbell req GPIO */
+   int doorbell;   /* doorbell gpio */
u32 __iomem *db_buf;/* doorbell buffer */
+   int db_irq;
+   int msg;
+   int msg_irq;
struct smu_cmd_buf  *cmd_buf;   /* command buffer virtual */
u32 cmd_buf_abs;/* command buffer absolute */
+   struct list_headcmd_list;
+   struct smu_cmd  *cmd_cur;
 };
 
 /*
@@ -79,90 +78,240 @@
  */
 static struct smu_device   *smu;
 
+
 /*
- * SMU low level communication stuff
+ * SMU driver low level stuff
  */
-static inline int smu_cmd_stat(struct smu_cmd_buf *cmd_buf, u8 cmd_ack)
+
+static void smu_start_cmd(void)
 {
-   rmb();
-   return cmd_buf->cmd == cmd_ack && cmd_buf->length != 0;
+   unsigned long faddr, fend;
+   struct smu_cmd *cmd;
+
+   if (list_empty(&smu->cmd_list))
+   return;
+
+   /* Fetch first command in queue */
+   cmd = list_entry(smu->cmd_list.next, struct smu_cmd, link);
+   smu->cmd_cur = cmd;
+   list_del(&cmd->link);
+
+   DPRINTK("SMU: starting cmd %x, %d bytes data\n", cmd->cmd,
+   cmd->data_len);
+   DPRINTK("SMU: data buffer: %02x %02x %02x %02x ...\n",
+   ((u8 *)cmd->data_buf)[0], ((u8 *)cmd->data_buf)[1],
+   ((u8 *)cmd->data_buf)[2], ((u8 *)cmd->data_buf)[3]);
+
+   /* Fill the SMU command buffer */
+   smu->cmd_buf->cmd = cmd->cmd;
+   smu->cmd_buf->length = cmd->data_len;
+   memcpy(smu->cmd_buf->data, cmd->data_buf, cmd->data_len);
+
+   /* Flush command and data to RAM */
+   faddr = (unsigned long)smu->cmd_buf;
+   fend = faddr + smu->cmd_buf->length + 2;
+   flush_inval_dcache_range(faddr, fend);
+
+   /* This isn't exactly a DMA mapping here, I suspect
+* the SMU is actually communicating with us via i2c to the
+* northbridge or the CPU to access RAM.
+*/
+   writel(smu->cmd_buf_abs, smu->db_buf);
+
+   /* Ring the SMU doorbell */
+   pmac_do_feature_call(PMAC_FTR_WRITE_GPIO, NULL, smu->doorbell, 4);
 }
 
-static inline u8 smu_save_ack_cmd(struct smu_cmd_buf *cmd_buf)
+
+static irqreturn_t smu_db_intr(int irq, void *arg, struct pt_regs *regs)
 {
-   return (~cmd_buf->cmd) & 0xff;
+   unsigned long flags;
+   struct smu_cmd *cmd;
+   void (*done)(struct smu_cmd *cmd, void *m

Re: State of Java on PPC

2005-04-18 Thread Charles-Edouard Ruault
Benjamin Herrenschmidt wrote:
On Sat, 2005-04-16 at 09:10 -0700, Paul J. Lucas wrote:
 

A few years ago, the state of Java on Linux/PPC was less than
that of Java on x86.  Has that improved?
   

There may be newer versions of the IBM JDK I suppose...
 

As far as i know the latest version of the IBM Java Development Kit is 
1.4.2, available here : 
http://www-106.ibm.com/developerworks/java/jdk/linux140/
I'm running it on my powerbook G4 with no problem ( aside the fact that 
you have to select the correct platform version for the JIT to work fine ).

--
Charles-Edouard Ruault
Idtect SA
115 rue Reaumur - 75002, Paris, France
Tel: +33-1-55-34-76-65
Fax: +33-1-55-34-76-75
Web: http://www.idtect.com
GPG key Id C97EDD59
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]