Skip to contentSkip to conversation

TransMeta longrun control utility maintainer?

DISCUSSION Ian Soboroff 3 participants 4 messages Mar 6, 2003 – Mar 10, 2003

lore
Share & tools
lore
#0 lore raw

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 <[email protected]>, 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

#1 lore raw
Quoted 7 lines · Ian Soboroff

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 <[email protected]>, but mail to that address bounces.

Quoted 5 lines

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

#2 lore raw
Quoted 8 lines · Greg KH
Quoted 7 lines · Ian Soboroff

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 <[email protected]>, but mail to that address bounces.

Quoted 8 lines
Quoted 5 lines

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

#3 lore raw
In reply to Ian Soboroff
Followup to:  <[email protected]>
By author:    Ian Soboroff <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 13 lines

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 <[email protected]>, 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:

Quoted 9 lines
# 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

Signature · 3 lines
<[email protected]> at work, <[email protected]> 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