Bug #33

MIPS processor support in computer_info.linux.h

Added by Andreas Schröder over 10 years ago. Updated over 10 years ago.

Status:FixedStart date:
Priority:NormalDue date:
Assignee:Andreas Schröder% Done:

0%

Category:all
Target version:0.64.4

Description

I would like to have my MIPS processors recognized under Linux. The header file assumes that MIPS is only running under Irix, which is not true.

The OS type should be checked first. After that the processor type should be checked. PPC, x86, x86_64, SPARC, HPPA, MIPS ... should be supported.

I have already created a (rather ugly) patch: http://bugs.gentoo.org/attachment.cgi?id=126853

History

#1 Updated by Redmine Admin over 10 years ago

You are absolutely right.

In fact, due to a thread in the forums the code was changed to also detect Sparc architecture.

My guess is that if you use latest code from branch 0.64.x your patch will look much better. In any case, if you provide me with your /proc/cpuinfo on the MIPS computer I guess I will be able to add the code directly there.

But you could also commit the changes to your own 0.64.x branch that AFAIK is up-to-date. I would then merge the changes back to main 0.64.x branch.

#2 Updated by Redmine Admin over 10 years ago

  • Status changed from New to In progress

#3 Updated by Redmine Admin over 10 years ago

  • Status changed from In progress to New

#4 Updated by Andreas Schröder over 10 years ago

here are 3 different contents of /proc/couinfo :


cat /proc/cpuinfo 
system type             : SGI O2
processor               : 0
cpu model               : R5000 V2.1  FPU V1.0
[[BogoMIPS]]                : 198.65
byteorder               : big endian
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 48
extra interrupt vector  : no
hardware watchpoint     : no
ASEs implemented        :
VCED exceptions         : not available
VCEI exceptions         : not available

---------------------------------------

cat /proc/cpuinfo 
system type             : SGI Octane
processor               : 0
cpu model               : R10000 V3.4  FPU V0.0
[[BogoMIPS]]                : 222.72
byteorder               : big endian
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : no
hardware watchpoint     : yes
ASEs implemented        :
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 1
cpu model               : R10000 V3.4  FPU V0.0
[[BogoMIPS]]                : 224.76
byteorder               : big endian
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : no
hardware watchpoint     : yes
ASEs implemented        :
VCED exceptions         : not available
VCEI exceptions         : not available

---------------------------------------

cat /proc/cpuinfo 
system type             : SGI Origin
processor               : 0
cpu model               : R10000 V2.6  FPU V0.0
[[BogoMIPS]]                : 178.17
byteorder               : big endian
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : no
hardware watchpoint     : yes
ASEs implemented        :
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 1
cpu model               : R10000 V2.6  FPU V0.0
[[BogoMIPS]]                : 176.64
byteorder               : big endian
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : no
hardware watchpoint     : yes
ASEs implemented        :
VCED exceptions         : not available
VCEI exceptions         : not available

#5 Updated by Andreas Schröder over 10 years ago

  • Status changed from New to In progress

#6 Updated by Andreas Schröder over 10 years ago

I added MIPS support in computer_info.linux.h, but could not test it yet because my renderfarm currently runs on 0.64.3. It should work ;)

https://ssl.drqueue.org/project/changeset/2426/branches/developers/kaazoo/0.64.x/libdrqueue/computer_info.linux.h

#7 Updated by Andreas Schröder over 10 years ago

  • Status changed from In progress to Fixed
  • Resolution set to fixed

Also available in: Atom PDF