Xchat 2.6.2 and 2.4.5 both report the wrong CPU speed for my Alpha. cat /proc/cpuinfo says: cpu : Alpha cpu model : EV56 cpu variation : 7 cpu revision : 0 cpu serial number : system type : Miata system variation : 0 system revision : 0 system serial number : cycle frequency [Hz] : 633149635 est. timer frequency [Hz] : 1024.00 page size [bytes] : 8192 phys. address bits : 40 max. addr. space # : 127 BogoMIPS : 1254.88 kernel unaligned acc : 0 (pc=0,va=0) user unaligned acc : 1 (pc=2000005e928,va=11fa750dc) platform string : Digital Personal WorkStation 633au cpus detected : 1 L1 Icache : 8K, 1-way, 32b line L1 Dcache : 8K, 1-way, 32b line L2 cache : 96K, 3-way, 64b line L3 cache : 2048K, 1-way, 64b line Help -> About XChat reports 603.33 mhz This is because of the following in common/util.c: if (!strncmp (buf, "cycle frequency [Hz]\t:", 22)) /* alpha */ { *mhz = atoi (buf + 23) / 1048576; } It should be changed to the following since a MHz is defined as 1,000,000 HZ and not 1024 * 1024: if (!strncmp (buf, "cycle frequency [Hz]\t:", 22)) /* alpha */ { *mhz = atoi (buf + 23) / 1000000; }
Created attachment 90583 [details, diff] xchat-2.4.5-alpha-cpu.patch
Created attachment 90584 [details, diff] xchat-2.6.2-alpha-cpu.patch
net-irc, this is a common problem for alpha. It is described in more detail here: http://alpha.gentoo.org/doc/alpha-porting-guide.xml#doc_chap7 The solution Mike proposed is correct. Please apply the patches. It should be noted that xchat's cpuinfo reader doesn't work on all architectures. It only supports CPU frequency for alpha/i386/amd64/ia64/powerpc/powerpc64/arm. It only gets a proper CPU count for i386/amd64/ia64/hppa/mips/powerpc/powerpc64/sh/cris/m32r. I am currently developing a library for reading cpuinfo files from various architectures. (URL: https://savannah.nongnu.org/projects/proccpuinfo/ ) It already supports frequency and cpu count on more architectures than are supported by Gentoo. I'll be contacting upstream about using the library.
Created attachment 91125 [details, diff] xchat-2.6.4-alpha-cpu.patch
Created attachment 97046 [details, diff] xchat-2.6.6-alpha-cpu.patch Here's a patch for 2.6.6. I thought I sent this upstream, but I'll do it again to be sure.
Fixed in 2.6.8 upstream now which is in portage as well now.