Re: [openib-general] Re: Userspace testing results (many kernels, many svn trees)

2006-01-23 Thread Roland Dreier
Shirley> I read the documentation again, I think I was wrong. It
Shirley> returns 64 bit always.

I don't think that's correct.  How could mftb return a 64-bit value on
a CPU with 32-bit registers?

The best thing to look at is the definition of get_tb() in
 in the kernel tree.  I think that should give
something that always works.

 - R.
___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general


Re: [openib-general] Re: Userspace testing results (many kernels, many svn trees)

2006-01-23 Thread Michael S. Tsirkin
Quoting r. Shirley Ma <[EMAIL PROTECTED]>:
> Subject: Re: [openib-general] Re: Userspace testing results (many 
> kernels,?many svn trees)
> 
> 
> I read the documentation again, I think I was wrong. It returns 64 bit 
> always. 
> 
> Thanks
> Shirley Ma
> IBM Linux Technology Center
> 15300 SW Koll Parkway
> Beaverton, OR 97006-6063
> Phone(Fax): (503) 578-7638
> 

I reverted it, if this change is needed you know what to do.

-- 
MST
___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general


Re: [openib-general] Re: Userspace testing results (many kernels, many svn trees)

2006-01-23 Thread Shirley Ma

I read the documentation again, I think I was wrong.
It returns 64 bit always.

Thanks
Shirley Ma
IBM Linux Technology Center
15300 SW Koll Parkway
Beaverton, OR 97006-6063
Phone(Fax): (503) 578-7638___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Re: [openib-general] Re: Userspace testing results (many kernels, many svn trees)

2006-01-23 Thread Shirley Ma

>If true, it seems that this line
>typedef unsigned long long cycles_t;
>should be replaced by
>typedef unsigned long cycles_t;

Yes.

Thanks
Shirley Ma
IBM Linux Technology Center
15300 SW Koll Parkway
Beaverton, OR 97006-6063
Phone(Fax): (503) 578-7638

___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Re: [openib-general] Re: Userspace testing results (many kernels, many svn trees)

2006-01-23 Thread Michael S. Tsirkin
Quoting r. Shirley Ma <[EMAIL PROTECTED]>:
> Subject: Re: [openib-general] Re: Userspace testing results (many 
> kernels,?many svn trees)
> 
> 
> PPC Architecture defines a 64-bit Time Base register (2-32bit regs in 32 
> bit mode). Below link is the documentation. 
> 
> http://www-128.ibm.com/developerworks/eserver/articles/archguide.html 
> Book II: PowerPC Virtual Environment Architecture Page 30 
> 
> 
> Thanks
> Shirley Ma
> IBM Linux Technology Center

So am I right when I say that mftb returns a 32 bit register on
ppc32 and a 64 bit register on ppc64?

If true, it seems that this line
 typedef unsigned long long cycles_t;
should be replaced by
 typedef unsigned long cycles_t;

-- 
MST
___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general


Re: [openib-general] Re: Userspace testing results (many kernels, many svn trees)

2006-01-23 Thread Shirley Ma

PPC Architecture defines a 64-bit Time
Base register (2-32bit regs in 32 
bit mode). Below link is the documentation.

http://www-128.ibm.com/developerworks/eserver/articles/archguide.html
Book II: PowerPC Virtual Environment
Architecture Page 30


Thanks
Shirley Ma
IBM Linux Technology Center
15300 SW Koll Parkway
Beaverton, OR 97006-6063
Phone(Fax): (503) 578-7638___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Re: [openib-general] Re: Userspace testing results (many kernels, many svn trees)

2006-01-23 Thread Roland Dreier
Michael> BTW, does this configuration (ppc32 on ppc64) support the
Michael> mftb instruction?

I have some ppc64 machines around -- let me do some perftest checking.

 - R.
___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general


Re: [openib-general] Re: Userspace testing results (many kernels, many svn trees)

2006-01-23 Thread Nishanth Aravamudan
On 23.01.2006 [18:46:42 +0200], Michael S. Tsirkin wrote:
> Quoting r. Nishanth Aravamudan <[EMAIL PROTECTED]>:
> > Bah, I just noticed that perftests doesn't even build right now (svn
> > 5130).
> 
> Fixed, thanks.

Great! What svn revision is it fixed in? 5159 is running the tests now,
but I can cancel and resubmit if it was fixed after that.

Thanks,
Nish
___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general


Re: [openib-general] Re: Userspace testing results (many kernels, many svn trees)

2006-01-23 Thread Michael S. Tsirkin
Quoting r. Nishanth Aravamudan <[EMAIL PROTECTED]>:
> Bah, I just noticed that perftests doesn't even build right now (svn
> 5130).

Fixed, thanks.

-- 
MST
___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general