linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* TransMeta longrun control utility maintainer?
@ 2003-03-06 14:11 Ian Soboroff
  2003-03-06 18:18 ` Greg KH
  2003-03-06 20:11 ` H. Peter Anvin
  0 siblings, 2 replies; 4+ messages in thread
From: Ian Soboroff @ 2003-03-06 14:11 UTC (permalink / raw)
  To: linux-kernel


I know this isn't the best place to ask, but maybe someone here knows.

Who is maintaining the longrun(1) (should probably be longrun(8))
utility?  The author is listed as Daniel Quinlan
<quinlan@transmeta.com>, but mail to that address bounces.

The longrun utility frobs the MSR on TransMeta processors to switch
between performance and economy modes.

On my laptop, currently running 2.4.21-pre5-ac1, I get the following
error:

# longrun -p
longrun: error reading /dev/cpu/0/cpuid: Invalid argument

# ls -l /dev/cpu/0
total 0
cr--r--r--    1 root     root     203,   0 Aug 30  2002 cpuid
crw-------    1 root     root      10, 184 Aug 30  2002 microcode
crw-------    1 root     root     202,   0 Aug 30  2002 msr

I've seen this the last couple 2.4.2x-pre versions, but I don't know
exactly when it stopped working.  I assume somewhere along the line
the CPUID interface got reformatted.  I'm pretty sure this kernel is
configured correctly:


# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_X86_LONGRUN=y
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y

Help?
Ian


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TransMeta longrun control utility maintainer?
  2003-03-06 14:11 TransMeta longrun control utility maintainer? Ian Soboroff
@ 2003-03-06 18:18 ` Greg KH
  2003-03-10 15:07   ` Ian Soboroff
  2003-03-06 20:11 ` H. Peter Anvin
  1 sibling, 1 reply; 4+ messages in thread
From: Greg KH @ 2003-03-06 18:18 UTC (permalink / raw)
  To: Ian Soboroff; +Cc: linux-kernel

On Thu, Mar 06, 2003 at 09:11:18AM -0500, Ian Soboroff wrote:
> 
> I know this isn't the best place to ask, but maybe someone here knows.
> 
> Who is maintaining the longrun(1) (should probably be longrun(8))
> utility?  The author is listed as Daniel Quinlan
> <quinlan@transmeta.com>, but mail to that address bounces.
> 
> The longrun utility frobs the MSR on TransMeta processors to switch
> between performance and economy modes.
> 
> On my laptop, currently running 2.4.21-pre5-ac1, I get the following
> error:

It works for me just fine on 2.4.21-pre5, have you tried that kernel
version?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TransMeta longrun control utility maintainer?
  2003-03-06 14:11 TransMeta longrun control utility maintainer? Ian Soboroff
  2003-03-06 18:18 ` Greg KH
@ 2003-03-06 20:11 ` H. Peter Anvin
  1 sibling, 0 replies; 4+ messages in thread
From: H. Peter Anvin @ 2003-03-06 20:11 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <9cfy93s4mbd.fsf@rogue.ncsl.nist.gov>
By author:    Ian Soboroff <ian.soboroff@nist.gov>
In newsgroup: linux.dev.kernel
> 
> I know this isn't the best place to ask, but maybe someone here knows.
> 
> Who is maintaining the longrun(1) (should probably be longrun(8))
> utility?  The author is listed as Daniel Quinlan
> <quinlan@transmeta.com>, but mail to that address bounces.
> 
> The longrun utility frobs the MSR on TransMeta processors to switch
> between performance and economy modes.
> 
> On my laptop, currently running 2.4.21-pre5-ac1, I get the following
> error:
> 
> # longrun -p
> longrun: error reading /dev/cpu/0/cpuid: Invalid argument
> 
> # ls -l /dev/cpu/0
> total 0
> cr--r--r--    1 root     root     203,   0 Aug 30  2002 cpuid
> crw-------    1 root     root      10, 184 Aug 30  2002 microcode
> crw-------    1 root     root     202,   0 Aug 30  2002 msr
> 

Compile with -D_FILE_OFFSET_BITS=64 and it should work.  The problem
is that some of the MSRs and CPUID levels it touches have addresses
above 0x80000000, and newer glibc's running on newer kernels interpret
those as 64-bit negative, i.e. 0xffffffff80000000.

The longrun utility is currently unmaintained (and Longrun control is
being integrated into the cpufreq framework), but I can at least take
minor bug reports.

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
Architectures needed: ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TransMeta longrun control utility maintainer?
  2003-03-06 18:18 ` Greg KH
@ 2003-03-10 15:07   ` Ian Soboroff
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Soboroff @ 2003-03-10 15:07 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

Greg KH <greg@kroah.com> writes:

> On Thu, Mar 06, 2003 at 09:11:18AM -0500, Ian Soboroff wrote:
>> 
>> I know this isn't the best place to ask, but maybe someone here knows.
>> 
>> Who is maintaining the longrun(1) (should probably be longrun(8))
>> utility?  The author is listed as Daniel Quinlan
>> <quinlan@transmeta.com>, but mail to that address bounces.
>> 
>> The longrun utility frobs the MSR on TransMeta processors to switch
>> between performance and economy modes.
>> 
>> On my laptop, currently running 2.4.21-pre5-ac1, I get the following
>> error:
>
> It works for me just fine on 2.4.21-pre5, have you tried that kernel
> version?

I'm getting the same problem under -pre5, too.

# uname -a
Linux euphrates 2.4.21-pre5 #1 Thu Mar 6 15:10:53 EST 2003 i686 i686 i386 GNU/Linux
# longrun -p
longrun: error reading /dev/cpu/0/cpuid: Invalid argument
# ls -l /dev/cpu/0
total 0
crw-r--r--    1 root     root     203,   0 Aug 30  2002 cpuid
crw-------    1 root     root      10, 184 Aug 30  2002 microcode
crw-------    1 root     root     202,   0 Aug 30  2002 msr
# strace longrun -p
execve("/usr/local/bin/longrun", ["longrun", "-p"], [/* 33 vars */]) = 0
uname({sys="Linux", node="euphrates", ...}) = 0
brk(0)                                  = 0x804ab04
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=84791, ...}) = 0
old_mmap(NULL, 84791, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40013000
close(3)                                = 0
open("/lib/i686/libc.so.6", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220Y\1"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1395734, ...}) = 0
old_mmap(0x42000000, 1239844, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x42000000
mprotect(0x42126000, 35620, PROT_NONE)  = 0
old_mmap(0x42126000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x126000) = 0x42126000
old_mmap(0x4212b000, 15140, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4212b000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40028000
munmap(0x40013000, 84791)               = 0
geteuid32()                             = 0
open("/dev/cpu/0/cpuid", O_RDWR)        = 3
open("/dev/cpu/0/msr", O_RDWR)          = 4
pread(3, 0xbffff890, 16, 18446744071570849792) = -1 EINVAL (Invalid argument)
write(2, "longrun: ", 9longrun: )                = 9
write(2, "error reading /dev/cpu/0/cpuid", 30error reading /dev/cpu/0/cpuid) = 30
write(2, ": Invalid argument\n", 19: Invalid argument
)    = 19
_exit(1)                                = ?

That offset to pread() looks bogus...

Ian


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-03-10 14:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-06 14:11 TransMeta longrun control utility maintainer? Ian Soboroff
2003-03-06 18:18 ` Greg KH
2003-03-10 15:07   ` Ian Soboroff
2003-03-06 20:11 ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).