Re: cpu idle time going backward

2011-12-08 Thread kevin diggs
On 12/8/11, Andreas Schwab wrote: > There seems to be something wrong with cpu idle time accounting at least > on G5. The value as reported in the cpu lines in /proc/stat seems to be > stuck in the interval [10,21] for each cpu, jumping back at > random points. Any idea what could be the

RTC on 2.6.36 for PowerMac 8600

2012-01-28 Thread kevin diggs
Hi, What will give me access to the RTC hardware on an old PowerMac 8600? I modload rtc-generic. /proc/devices has: 254 rtc and ls -l /dev/rtc*: crw-r--r-- 2 root root 254, 0 Sep 2 2010 /dev/rtc crw-r--r-- 2 root root 254, 0 Sep 2 2010 /dev/rtc0 crw-r--r-- 1 root root 10, 135 Aug 10

Re: RTC on 2.6.36 for PowerMac 8600

2012-01-31 Thread kevin diggs
Hi, On 1/29/12, Andreas Schwab wrote: > kevin diggs writes: > > > Perhaps the RTC was reset due to battery running out? That would set > the year to 1900, but the kernel RTC interface cannot represent dates > before 1970. Unfortunately hwclock insists on reading the RTC ev

PowerMac G5 config

2010-10-25 Thread kevin diggs
Hi, I have a G5 (dual 970FX, june 2004?) running YDL 6.0. After fighting to get a compiler that will build 2.6.29+ (4.2.1 -> 4.2.2) I can't get it to boot. It spits out a bunch of message about devices (I think the last ones are USB related) and then says: Restarting System and then reboots. I'v

Re: PowerMac G5 config

2010-10-28 Thread kevin diggs
Hi, Apparently, for some reason, you can't use -depth in your find command when rebuilding your initrd??? Machine is now running 2.6.36. Glad to be rid of that awful cpufreq driver ... kevin On Mon, Oct 25, 2010 at 1:45 PM, kevin diggs wrote: > Hi, > > I have a G5 (dual 97

PowerMac G4 RAM

2010-10-30 Thread kevin diggs
Hi, I have a G4 that has 1.25 G of ram. Under Linux I only get 768M? Anyone know why? It is a GiGE with a dual 7455 PowerLogix cpu upgrade. Kernel is 2.6.28. Thanks! kevin ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs

old MESH SCSI driver

2010-11-01 Thread kevin diggs
Hi, I am trying to get 2.6.36 running on an old PowerMac 8600. It can't seem to find the root device. There are some messages about the disks on the bus. But they don't look quite right. It is currently running 2.6.28. Any suggestions? Thanks! kevin _

PowerMac8600 help ...

2010-11-08 Thread kevin diggs
Hi, Sorry for the noise but I am having trouble getting the latest kernel built for a PowerMac8600 with a 750GX processor card. If this is not an appropriate topic for the list please tell me (and hopefully point me in the correct direction). I have narrowed the problem down to the compiler. YDL

Re: PowerMac8600 help ...

2010-11-17 Thread kevin diggs
50GX cauz it ain't not got no hardware fsqrt! > Off the top of your head would you know which of the ppc32 processors > has fsqrt? Is it only the 604? > > On Mon, Nov 8, 2010 at 4:31 PM, Benjamin Herrenschmidt > wrote: >> On Mon, 2010-11-08 at 10:43 -0600, kevin diggs wr

Re: [PATCH] Make auto-loading of therm_pm72 possible

2010-12-06 Thread kevin diggs
Hi, On a sort of related issue, if anyone out there has a PowerMac7,3 (dual 2.5 GHz 970Fx, PCI-X), I would appreciate it if you could do me a favor. I think this therm_pm72 thing creates the sysfs temperature and voltage attributes for the cpus. I noticed on my machine that if I use the cpufreq d

Re: [PATCH] powerpc: Fix some 6xx/7xxx CPU setup functions

2011-01-21 Thread kevin diggs
On Fri, Jan 21, 2011 at 12:35 AM, Benjamin Herrenschmidt wrote: > Some of those functions try to adjust the CPU features, for example > to remove NAP support on some revisions. However, they seem to use > r5 as an index into the CPU table entry, which might have been right > a long time ago but no

BootX

2011-01-21 Thread kevin diggs
Hi, Anyone familiar with BootX? Could my problems with the 8600 be related to some interaction with BootX? kevin ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

elf section .text.unlikely

2011-01-21 Thread kevin diggs
Hi, I am trying to get a PowerMac 8600 to boot past 2.6.28. I can boot 2.6.28 compiled with either 3.3.3 or 3.4.6. I can't get 2.6.28 to boot using 4.3.5. The 4.3.5 vmlinux has a section '.text.unlikely' that the 3.4.6 version does not. Anyone know what this might be? kevin _

Re: BootX

2011-01-21 Thread kevin diggs
Hi, This would require quik, right? I went to penguinppc.org and tried to get the latest BootX and quik but the links are dead. Do you know where the latest versions are? kevin On Fri, Jan 21, 2011 at 3:21 PM, Benjamin Herrenschmidt wrote: > On Fri, 2011-01-21 at 13:26 -0600, kevin diggs wr

Re: BootX

2011-01-21 Thread kevin diggs
Hi, The link: http://www.shiner.info/?files/Yellow%20Dog%20Linux%204/quik to download the latest source does not seem to have anything useful??? kevin On Fri, Jan 21, 2011 at 7:50 PM, Benjamin Herrenschmidt wrote: > On Fri, 2011-01-21 at 19:48 -0600, kevin diggs wrote: >> Hi, &

Re: elf section .text.unlikely

2011-01-21 Thread kevin diggs
For what it is worth, this section contains dump_stack, panic, and printk Thanks! kevin On Fri, Jan 21, 2011 at 7:40 PM, kevin diggs wrote: > Hi, > > I am trying to get a PowerMac 8600 to boot past 2.6.28. > > I can boot 2.6.28 compiled with either 3.3.3 or 3.4.6. I can't

Re: elf section .text.unlikely

2011-01-21 Thread kevin diggs
eyboard is dead. Jog any thoughts? Thanks! kevin On Fri, Jan 21, 2011 at 8:31 PM, kevin diggs wrote: > For what it is worth, this section contains dump_stack, panic, and printk > > Thanks! > > kevin > > On Fri, Jan 21, 2011 at 7:40 PM, kevin diggs wrote: >> Hi, >&g

Re: BootX

2011-01-22 Thread kevin diggs
oes. Thanks! kevin P.S.: There is one other difference for the SMP 4.3.5 compiled 2.6.28: my 750gx cpufreq driver gets disabled. It is fairly isolated code though. Should not be able to nuke the spinlock in kernel/acct.c On Fri, Jan 21, 2011 at 1:26 PM, kevin diggs wrote: > Hi, > > Anyo

Re: BootX

2011-01-24 Thread kevin diggs
essor machines. I do not understand why they are present in 3.4.6 (at least the symbol anyway)? The 'acct_lock' spin lock was also missing with gcc 4.2.4. kevin On Sat, Jan 22, 2011 at 12:24 PM, kevin diggs wrote: > Hi, > > If I enable SMP then I can build a 2.6.28 kernel with gcc 4

Re: BootX

2011-01-24 Thread kevin diggs
o not know where to go from here? kevin On Sat, Jan 22, 2011 at 12:24 PM, kevin diggs wrote: > Hi, > > If I enable SMP then I can build a 2.6.28 kernel with gcc 4.3.5 that > WILL boot on the PowerMac8600 (single 750GX). The previously mentioned > G4 that runs is a dual cpu beast an

750gx cpufreq induced kernel panic in 2.6.36

2011-01-25 Thread kevin diggs
Hi, The cpufreq driver I wrote for the 750gx causes a kernel panic in 2.6.36. This is from a screen shot: [c6035f30] [c001014c] timer_interrupt+0x13c/0x19c [c6035f40] [c0013294] ret_from_except+0x0/0x14 --- Exception: 901 at 0x1000c694 LR = 0x1000f3e4 Instruction dump: 4b48 38610008 4be7

Re: 750gx cpufreq induced kernel panic in 2.6.36

2011-01-26 Thread kevin diggs
On Tue, Jan 25, 2011 at 10:32 PM, Benjamin Herrenschmidt wrote: >> >> What are exception 700 & 901? > > 700 is a program check (illegal instruction or BUG_ON() statement) > > 900 is decrementer (aka timer) interrupt. > >> The 0x1000c694 address looks fishy? > > That's userspace. > > So you took a

dump_stack doc

2011-01-26 Thread kevin diggs
Hi, Does this content look ok: kevdig@SatelliteA75:/usr/src/linux-2.6.36/arch/powerpc/kernel$ diff -U3 process.c process-new_c --- process.c 2010-10-23 20:01:13.0 -0500 +++ process-new_c 2011-01-26 14:04:17.0 -0600 @@ -1107,6 +1107,27 @@ static int kstack_depth_to_print

Re: 750gx cpufreq induced kernel panic in 2.6.36

2011-01-26 Thread kevin diggs
On Wed, Jan 26, 2011 at 3:43 PM, Benjamin Herrenschmidt wrote: > > You don't have a serial port ? > Yeah, just did not know what to do with them? > If you do, use "sccdbg" on the kernel command line to route xmon to it, > and boot with console=ttyPZ0,38400 (I think the old things default to > 384

Re: BootX

2011-02-02 Thread kevin diggs
011 at 12:24 PM, kevin diggs wrote: >> Hi, >> >> If I enable SMP then I can build a 2.6.28 kernel with gcc 4.3.5 that >> WILL boot on the PowerMac8600 (single 750GX). The previously mentioned >> G4 that runs is a dual

Re: BootX

2011-02-02 Thread kevin diggs
Ben, I know you are VERY busy. I appreciate your taking the time to reply. Since I'm am still using this thing I'll take a stab at trying to track it down. I just posted the FYI to see if I could trigger some thoughts (like your post). With a 4.3.5 compiled mesh, it fails a lot of early stuff li

Re: BootX

2011-02-02 Thread kevin diggs
Hi, And one more thing: Why does an SMP kernel (mesh compiled in an SMP enabled kernel) work? What all does SMP do? If it matters, I'm voluntary preempt. Is the DMA hardware in this thing used in any other system (I guess I mean both other computers and other sub-systems in this computer - does

Re: BootX

2011-02-04 Thread kevin diggs
Hi, FYI: This driver has some pretty good diagnostics/debug capabilities built in. Once that is enabled it shows that the inquiry works and the sync negotiation works. The next command (I think) is test unit ready, which does not work. It is retried multiple times. The result is 2 which I thi

Re: BootX

2011-02-11 Thread kevin diggs
Hi, I have looked at the -S output for mesh.c from both 4.1.2 and 4.3.5. The generated code is quite different but I can not see any difference that is causing the problem? If I read and print the bus status register 0, it does appear to have the busy bit set? I'm in way over my head here. It ap

rtc on PowerMac7,3

2011-02-23 Thread kevin diggs
Hi, Sorry for the noise. How do I access the rtc on a PowerMac7,3 (dual 2.5 GHz 970FX) using 2.6.36? rtc-generic does not seem to work. It will work on my 8600. I do see this: [ 15.014542] rtc-generic rtc-generic: rtc core: registered rtc-generic as rtc0 Is it the hwclock binary: hwclock fro

Re: rtc on PowerMac7,3

2011-02-23 Thread kevin diggs
On Wed, Feb 23, 2011 at 1:42 PM, Benjamin Herrenschmidt wrote: >> [   15.014542] rtc-generic rtc-generic: rtc core: registered rtc-generic as >> rtc0 > > rtc-generic should work... > > Cheers, > Ben. > It probably does on everyone else's 7,3. The 8600 probably infected it. ... I hear the two of t

Re: rtc on PowerMac7,3

2011-02-24 Thread kevin diggs
Hi, Thanks for taking some of your valuable time to reply. Now I can't get it to fail. I don't know what I did wrong??? These things are tryin' to push me over the edge! Part of the problem may be the /dev/rtc (10:135 or whatever the PC numbers are) PC device that gets put into /dev/ (udev) on Y

ongoing mesh saga ...

2011-03-11 Thread kevin diggs
Hi, While trying to figure out why the MESH SCSI controller will not work with the 4.3.5 compiler but will work when compiled with 4.1.2, I noticed some ... unfortunate behavior from the 4.3.5 compiler. Before I try to see if I can fix it (i.e. the compiler), it would be nice to see if the "issue"

Re: ongoing mesh saga ...

2011-03-11 Thread kevin diggs
Hi, On Fri, Mar 11, 2011 at 2:25 PM, Segher Boessenkool wrote: > > make drivers/scsi/mesh.s > ??? I thought I have tried this in the past and it did not work? The make /.s thing? Thanks for the tip! kevin ___ Linuxppc-dev mailing list Linuxppc-dev@lis

Re: ongoing mesh saga ...

2011-03-11 Thread kevin diggs
Hi, Good to know. I just tried this on an x86 laptop. It was NOT happy! And, obviously, I am not using a mesh SCSI controller on my Toshiba A75. And thanks again for your time! kevin On Fri, Mar 11, 2011 at 7:39 PM, Segher Boessenkool wrote: >>> make drivers/scsi/mesh.s >>> >> ??? I thought I

Re: any chance to use a modern linux kernel on Pegasos1 G3 ?

2011-03-12 Thread kevin diggs
Hi, For what it is worth, I can boot 2.6.36 on a PowerMac 8600 with a 750GX processor in it. I have to compile the kernel with gcc 4.1.2. Figuring out why 4.3.5 won't work is ... a work in progress (maybe an exorcism will help?). kevin On Sat, Mar 12, 2011 at 1:05 PM, nello martuscielli wrote:

PowerMac7,3 dvd drive?

2011-03-20 Thread kevin diggs
Hi, I am seeing ... issues with the optical drive (hda) under 2.6.36. I can't mount disks: [root@PowerMacG5 ~]# mount -r /dev/hda /mnt/cdrom mount: /dev/hda already mounted or /mnt/cdrom busy The log has: [ 239.922268] hda: irq timeout: status=0xd0 { Busy } [ 239.922485] hda: possibly failed

Re: halt/reset on assert?

2011-04-07 Thread kevin diggs
On Thu, Apr 7, 2011 at 2:55 AM, Benjamin Herrenschmidt wrote: > On Wed, 2011-04-06 at 14:01 +0100, Evan Lavelle wrote: >> #define MY_ASSERT(expr) if(!(expr)) BUG() > > Make it > > #define MY_ASSERT(expr) do { if } while(0) > > To ensure it has proper single statement semantics in C. > So THAT

Re: [regression] 2.6.39-rc[1-3] fail to boot on G5 PowerMac

2011-04-12 Thread kevin diggs
Hi, Uh Oh. Are we gettin' booted (no pun intended)? kevin ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [regression] 2.6.39-rc[1-3] fail to boot on G5 PowerMac

2011-04-13 Thread kevin diggs
HI, On Wed, Apr 13, 2011 at 3:58 AM, Benjamin Herrenschmidt wrote: > > Actually I do get a crash in X later on... something in the radeon DRM > interrupt code is getting what looks like a NULL dereference. I'll try > to dig that one later on. I don't know if it's related to your problem > at all

Re: [regression] 2.6.39-rc[1-3] fail to boot on G5 PowerMac

2011-04-13 Thread kevin diggs
Hi, On Wed, Apr 13, 2011 at 6:21 PM, Benjamin Herrenschmidt wrote: > On Wed, 2011-04-13 at 12:52 -0500, kevin diggs wrote: >> > Actually I do get a crash in X later on... something in the radeon >> DRM >> > interrupt code is getting what looks like a NULL dereferen

Re: book to learn ppc assembly and architecture

2011-05-17 Thread kevin diggs
Hi, On Mon, May 16, 2011 at 6:38 PM, Benjamin Herrenschmidt wrote: > On Mon, 2011-05-16 at 16:37 +1000, Michael Neuling wrote: >> > what  is  the  best  book  to  learn  assembly  and  architecture . >> Assuming you have a powerpc compiler available you can use the -S option to produce assembly

Re: PROBLEM: 2.6.39 doesn't boot on POWER MAC

2011-05-30 Thread kevin diggs
Hi, > > This is an SMP machine ? If not, does it work with a UP kernel ? > > Cheers, > Ben. > ??? Even if it is SMP, you can run non-SMP kernel on it, right? kevin ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/list

g4 cube [off topic query]

2011-06-14 Thread kevin diggs
Hi, Sorry for the noise ... But if anyone knows what a "Cube power button gasket" is made of please share! Is it conductive? Again, sorry for the noise. But I figured there might be some cube owners out here. Thanks! kevin ___ Linuxppc-dev mailing lis

Re: [PATCH 2/2] Add cpufreq driver for Momentum Maple boards

2011-06-29 Thread kevin diggs
Hi, On Tue, Jun 28, 2011 at 10:28 PM, Benjamin Herrenschmidt > > > If we're going to have a Kconfig.powerpc, should we maybe just have a > powerpc subdirectory instead with the driver in it ? > Where would the powerpc subdirectory be? under drivers/cpufreq? Or somewhere under arch/powerpc where it

Re: [PATCH 2/2] Add cpufreq driver for Momentum Maple boards

2011-06-29 Thread kevin diggs
Hi, Try this one more time ... On Wed, Jun 29, 2011 at 3:54 AM, Benjamin Herrenschmidt wrote: > On Wed, 2011-06-29 at 12:40 +0400, Dmitry Eremin-Solenikov wrote: > > If you feel like it :-) The powermac one has quite a bit more plumbing > for voltage control etc... but it does make sense in the

Re: [PATCH 2/2] Add cpufreq driver for Momentum Maple boards

2011-06-30 Thread kevin diggs
Hi, On Wed, Jun 29, 2011 at 3:58 PM, Dmitry Eremin-Solenikov wrote: > > drivers/cpufreq/powerpc. However my current version (as suggested by Ben) > goes directly to drivers/cpufreq > Uh ... Just curious ... why is arch specific code now being put outside of the arch directories? When I wrote the

broken g5?

2011-06-30 Thread kevin diggs
Hi, I would like to figure out if my G5 is broken. And if so how to fix it? As I have previously posted it behaves strangely when using the cpufreq driver. Anyone have suggestions to figure out what is going on? Thanks! kevin ___ Linuxppc-dev mailing

Powermac11,2

2011-07-15 Thread kevin diggs
Hi, Anyone know what it means when a dual core dual cpu (total 4 cores) beeps three times on startup? The white power led also blinks 3 times every few seconds. The machine in question is a recent acquisition. I have got it to boot once. Thanks! kevin ___

Re: MESH SCSI driver not working

2011-08-05 Thread kevin diggs
Hi, I'll add some noise to this. I have a PowerMac8600 (with a 750GX in it (in case that makes a difference)) and I can't boot 2.6.36 if it is compiled with a gcc version newer than 4.1.2. Both 4.2.4 and 4.3.5 will hang. 4.1.2 seems ok. kevin ___ Linuxp

questions

2008-05-25 Thread Kevin Diggs
Hi, In idle_6xx.S one finds instructions like: lis r4,[EMAIL PROTECTED] lwz r4,[EMAIL PROTECTED](r4) Can someone explain what this is doing? Presumably the first is loading an address and the second a value. What do the '@ha' and '@l' do? Also, is there an

cntlzw

2008-06-03 Thread Kevin Diggs
Hi, x86 has bsf and bsr. PPC has cntlzw which I think is equivalent to bsr. Anyone know of a sneaky algorithm to do bsf? kevin ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

750GX cpu freq support

2008-06-03 Thread Kevin Diggs
This will show how much of a novice I am: What's a "git"? /* * cf750gx.c - cpufreq driver for the dual PLLs in the 750gx * ($Revision: 1.0 $) * * Copyright (C) 2008 kevin Diggs * * ~~ * * This pro

inline assembly

2008-06-04 Thread Kevin Diggs
Hi, When doing inline assembly, is there a way to get the compiler to assign "extra" (one not specified for inputs and outputs) registers? In the following: __asm__ __volatile__ ( "addi 5,%1,-1\n" "andc 5,%1,5\n"

750GX

2008-06-06 Thread Kevin Diggs
Hi, In the 750GX data sheet (750GX_ds2-17-05.pdf), page 45 has Table 5-1 that describes the PLL range field. It goes something like this: PLL_RNGrange 00600 - 900 01900 - 1000 10500 - 600 Anyone have any thoughts as to what the correct va

sysfs cpu entry

2008-04-24 Thread Kevin Diggs
Hi, Can someone suggest where to add the code for a cpu (/sys/devices/system/cpu/cpu0) entry in sysfs? The 2.6.24 release has a sysfs.c file but it only seems to be used for 64-bit? Anyone know why? What kind of planetary disasters will I create if I allow it to be used in 32-bit as w

sysfs cpu entry

2008-04-25 Thread Kevin Diggs
Hi, Can someone suggest where to add the code for a cpu (/sys/devices/system/cpu/cpu0) entry in sysfs? The 2.6.24 release has a sysfs.c file but it only seems to be used for 64-bit? Anyone know why? What kind of planetary disasters will I create if I allow it to be used in 32-bit as well?

Re: sysfs cpu entry

2008-04-25 Thread Kevin Diggs
Kumar Gala wrote: What 32-bit chip are you looking to enable this for? - k I am working on some stuff for the 750GX kevin ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

get_cycles()

2008-04-26 Thread Kevin Diggs
H, Anyone know how to turn get_cycles() into an actual time in a module? ppc_tb_freq does not seem to be exported? kevin ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: get_cycles()

2008-04-26 Thread Kevin Diggs
David Miller wrote: From: Kevin Diggs <[EMAIL PROTECTED]> Date: Sat, 26 Apr 2008 00:54:11 -0700 Anyone know how to turn get_cycles() into an actual time in a module? ppc_tb_freq does not seem to be exported? You should really be using ktime_t and associated interfaces. This looks

Re: get_cycles()

2008-04-27 Thread Kevin Diggs
David Miller wrote: From: Kevin Diggs <[EMAIL PROTECTED]> Date: Sat, 26 Apr 2008 19:39:07 -0700 This looks pretty cool ... but I don't want to create a dependency on hrtimer. It doesn't create such a dependency. We use it unconditionally in the generic networking.

DPMS for Radeon 9600 in G5

2008-04-30 Thread Kevin Diggs
Anyone one have any suggestions on how to get DPMS working for a Radeon 9600? Using a DVI cable? Thanks! kevin ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

mucking with cputable ...

2008-04-30 Thread Kevin Diggs
Hi, I'm trying to monkey with cputable. It is hanging after printing: Preparing BATs on the console (PowerMac 8600 with PowerLogix 750GX card, 2.6.24 YDL 4.0). I am guessing I am doing this PTRRELOC() thing wrong? Can someone explain what is going on here: *PTRRELOC(&cur_cp

function calls from identify_cpu()

2008-05-02 Thread Kevin Diggs
I added: int __init iDoNothingUseful(struct cpu_spec *s,struct cpu_spec *t) { return s-t; } right before the definition of identify_cpu() in cputable.c and: // (void) (*PTRRELOC(&iDoNothingUseful))(s,t); (void) iDoNothingUseful(s,t); right b

Re: function calls from identify_cpu()

2008-05-02 Thread Kevin Diggs
Benjamin Herrenschmidt wrote: On Fri, 2008-05-02 at 13:42 -0700, Kevin Diggs wrote: I added: int __init iDoNothingUseful(struct cpu_spec *s,struct cpu_spec *t) { return s-t; } right before the definition of identify_cpu() in cputable.c and: // (void) (*PTRRELOC

to schedule() or not to schedule() ?

2008-08-03 Thread Kevin Diggs
Hi, I have the following near the top of my cpufreq driver target routine: while(test_and_set_bit(cf750gxmCfgChangeBit,&cf750gxvStateBits)) { /* * Someone mucking with our cfg? (I hope it is ok to call * schedule() here! - truth is I have no idea what I am doin

Re: to schedule() or not to schedule() ?

2008-08-05 Thread Kevin Diggs
Chris Friesen wrote: Kevin Diggs wrote: Hi, I have the following near the top of my cpufreq driver target routine: while(test_and_set_bit(cf750gxmCfgChangeBit,&cf750gxvStateBits)) { /* * Someone mucking with our cfg? (I hope it is ok to call * schedule()

inline assembly & r0 SOS

2008-08-05 Thread Kevin Diggs
Hi, If I have: inline unsigned int get_PLL_range(unsigned int range, unsigned int config) { unsigned int ret; /* * Turn r3 (range) into a rotate count for the selected range. * 0 -> 23, 1 -> 31 */ __asm__ __volatile__ ( "slwi %0,%0,3\n"

Re: to schedule() or not to schedule() ?

2008-08-05 Thread Kevin Diggs
Michael Ellerman wrote: On Tue, 2008-08-05 at 12:26 -0700, Kevin Diggs wrote: Chris Friesen wrote: Kevin Diggs wrote: I have the following near the top of my cpufreq driver target routine: while(test_and_set_bit(cf750gxmCfgChangeBit,&cf750gxvStateBits)) { /* * Som

Re: inline assembly & r0 SOS

2008-08-05 Thread Kevin Diggs
Jeremy Kerr wrote: Hi Kevin, /* * Turn r3 (range) into a rotate count for the selected range. * 0 -> 23, 1 -> 31 */ __asm__ __volatile__ ( "slwi %0,%0,3\n" "addi %0,%0,23\n" "rlwnm %0,%1,%0,30,31

details, details ...

2008-08-13 Thread Kevin Diggs
Hi, In cpu exit function of a cpufreq driver: while (test_bit(cf750gxmChangingPllBit, &cf750gxvStateBits)) msleep(1); This bit will get cleared by a notifier callback. In module_exit function of a related module: while (test_bit(PLL_LOCK_BIT, (unsigned long *)&

Re: details, details ...

2008-08-13 Thread Kevin Diggs
Arnd Bergmann wrote: On Wednesday 13 August 2008, Kevin Diggs wrote: Arnd Bergmann wrote: On Wednesday 13 August 2008, Kevin Diggs wrote: In cpu exit function of a cpufreq driver: while (test_bit(cf750gxmChangingPllBit, &cf750gxvStateBits)) msleep(1); This

__attribute_used__ in 2.6.24

2008-08-14 Thread Kevin Diggs
Hi, Something in a function signature called "__attribute_used__" would compile in 2.6.24. This does not compile in 2.6.26. Using the "store_##NAME" template from arch/powerpc/kernel/sysfs.c as a guide, this appears to have changed to "__used". Anything work in both? "__used" seems to have c

12.5 MHz woo hoo!

2008-08-15 Thread Kevin Diggs
7; using this ancient mailer. kevin /* * cf750gx.c - cpufreq driver for the dual PLLs in the 750gx * ($Revision: 1.0 $) * * Copyright (C) 2008 kevin Diggs * * ~~ * * This program is free software; you can r

Corrections please ...

2008-08-18 Thread Kevin Diggs
Could I get any needed corrections on this. Especially on the "???" [EMAIL PROTECTED] linux-2.6.26]$ diff -U3 include/linux/completion.{h.orig,h}|more --- include/linux/completion.h.orig 2008-08-13 00:56:52.0 -0700 +++ include/linux/completion.h 2008-08-18 13:00:23.0 -0700

disable modules and get "multiple definition" errors?

2008-08-21 Thread Kevin Diggs
Hi, I am trying to do some compile testing of my cpufreq driver. If I disable modules I am getting multiple definition errors of inline functions: inline volatile unsigned int get_PLL(void) { unsigned int ret; __asm__ __volatile__ ("mfspr %0,%1": "=r"(ret):

checkpatch nits ...

2008-08-22 Thread Kevin Diggs
Hi, Can I ignore these checkpatch errors: ERROR: do not initialise statics to 0 or NULL #829: FILE: powerpc/kernel/cpu/pll_if.c:61: +static unsigned int override_bus_clock = 0; ERROR: do not initialise externals to 0 or NULL #1281: FILE: powerpc/kernel/cpu/pll_if.c:513: +int rval = 0; Someone

compile testing: cpufreq stats driver?

2008-08-23 Thread Kevin Diggs
Hi, When I tried building my cpufreq driver into the kernel, the cpufreq stats driver quit working? Anyone know if I screwed something up? Or is this normal (2.6.26)? Also, I thought, apparently incorrectly, That module parameters became boot parameters when the module was built

[PATCH 0/4] A a cpufreq driver for the IBM PowerPC 750GX

2008-08-25 Thread Kevin Diggs
This patch set adds a cpufreq driver for the IBM PowerPC 750GX processor. It "should" also work for the 750FX. The patches are: 1) Add low level PLL config register interface module 2) Add cpufreq driver for the 750GX 3) Other PowerPC kernel changes necessary to support th

[PATCH 1/4] Add low level PLL config register interface module

2008-08-25 Thread Kevin Diggs
determination of the bus frequency is what worked on a PowerMac 8600. Any suggestions on a more general solution are welcome. WARNING - I used some #ifdefs - Let the fur fly! My name is Kevin Diggs and I approve this patch. Signed-off-by: Kevin Diggs <[EMAIL PROTECTED]> Index: Documentati

[PATCH 2/4] Add cpufreq driver for the IBM PowerPC 750GX

2008-08-25 Thread Kevin Diggs
very low latency frequency switches. There is also a sysfs attribute to have it switch off the unused PLL for additional power savings. This does NOT support SMP. My name is Kevin Diggs and I approve this patch. Signed-off-by: Kevin Diggs <[EMAIL PROTECTED]> Index: Documentation/D

[PATCH 3/4] Various arch/powerpc changes to support the 750GX cpufreq driver

2008-08-25 Thread Kevin Diggs
tch in idle_6xx.S during sleep (or nap) was also removed (I tried to add ability to disable this but the result would not boot?). My name is Kevin Diggs and I approve this patch. Signed-off-by: Kevin Diggs <[EMAIL PROTECTED]> Index: arch/powerpc/kernel

[PATCH 4/4] Add kernel doc for the completion, fix kernel-doc-nano-HOWTO.txt

2008-08-25 Thread Kevin Diggs
This patch adds kernel doc for the completion feature. It is in kernel/sched.c and include/linux/completion.h. An error in the split-man.pl PERL snippet in kernel-doc-nano-HOWTO.txt is also fixed. My name is Kevin Diggs and I approve this patch. Signed-off-by: Kevin Diggs <[EMAIL PROTEC

Re: [PATCH 1/4] Add low level PLL config register interface module

2008-08-25 Thread Kevin Diggs
Kumar Gala wrote: On Aug 25, 2008, at 5:41 AM, Kevin Diggs wrote: This adds a small module to handle the low level details of dealing with the PLL config register (HID1) found in the IBM 750GX. It provides 2 possible interfaces, both selectable via kernel config options. One is a sysfs

Re: [PATCH 2/4] Add cpufreq driver for the IBM PowerPC 750GX

2008-08-25 Thread Kevin Diggs
Arnd Bergmann wrote: On Monday 25 August 2008, Kevin Diggs wrote: + * cf750gx.c - cpufreq driver for the dual PLLs in the 750gx Thanks for posting this driver and for your attention for detail and for documentation in particular. Few people bother to write documentation at this level. I

Re: [PATCH 2/4] Add cpufreq driver for the IBM PowerPC 750GX

2008-08-27 Thread Kevin Diggs
Arnd Bergmann wrote: On Tuesday 26 August 2008, Kevin Diggs wrote: Arnd Bergmann wrote: On Monday 25 August 2008, Kevin Diggs wrote: Most people list their email address here as well For reasons I'd rather not go into, my email address is not likely to remain valid for much l

Re: [PATCH 2/4] Add cpufreq driver for the IBM PowerPC 750GX

2008-08-27 Thread Kevin Diggs
Arnd Bergmann wrote: On Wednesday 27 August 2008, Kevin Diggs wrote: Arnd Bergmann wrote: Ok, thanks for the explanation. I now saw that you also use '_v' for variables (I guess). These should probably go the same way. Actually the _v means global variable. I would prefer

Re: [PATCH 2/4] Add cpufreq driver for the IBM PowerPC 750GX

2008-08-27 Thread Kevin Diggs
Arnd Bergmann wrote: On Wednesday 27 August 2008, Kevin Diggs wrote: Arnd Bergmann wrote: Ok, thanks for the explanation. I now saw that you also use '_v' for variables (I guess). These should probably go the same way. Actually the _v means global variable. I would prefer

Re: [PATCH 2/4] Add cpufreq driver for the IBM PowerPC 750GX

2008-08-28 Thread Kevin Diggs
Arnd Bergmann wrote: On Wednesday 27 August 2008, Kevin Diggs wrote: Arnd Bergmann wrote: I think the module_exit() function should leave the frequency in a well-defined state, so the easiest way to get there is probably to delete the timer, and then manually set the frequency. I really

[PATCH v2 0/5] Add a cpufreq driver for the IBM PowerPC 750GX

2008-08-30 Thread Kevin Diggs
Hi, This patch set adds a cpufreq driver for the IBM PowerPC 750GX processor. It "should" also work for the 750FX. The patches are: 1) Add low level PLL config register interface module 2) Add cpufreq driver for the 750GX 3) Other PowerPC kernel changes necessary to suppo

[PATCH v2 0/5] Add a cpufreq driver for the IBM PowerPC 750GX

2008-08-30 Thread Kevin Diggs
Hi, This patch set adds a cpufreq driver for the IBM PowerPC 750GX processor. It "should" also work for the 750FX. The patches are: 1) Add low level PLL config register interface module 2) Add cpufreq driver for the 750GX 3) Other PowerPC kernel changes necessary to suppo

[PATCH v2 1/5] Add low level PLL config register interface module

2008-08-30 Thread Kevin Diggs
unloaded before _modify_PLL() is ever called. My name is Kevin Diggs and I approve this patch. Signed-off-by: Kevin Diggs <[EMAIL PROTECTED]> Index: arch/powerpc/kernel/cpu/pll_if.c === --- /dev/null 2004-08-10 18:55:00.000

[PATCH v2 2/5] Add cpufreq driver for the IBM PowerPC 750GX

2008-08-30 Thread Kevin Diggs
provides the ability for very low latency frequency switches. There is also a sysfs attribute to have it switch off the unused PLL for additional power savings. This does NOT support SMP. I fixed a deadlock if the module is unloaded before _target() is ever called. My name is Kevin Diggs and I

[PATCH v2 3/5] Various arch/powerpc changes to support the 750GX cpufreq driver

2008-08-30 Thread Kevin Diggs
tch in idle_6xx.S during sleep (or nap) was also removed (I tried to add ability to disable this but the result would not boot?). My name is Kevin Diggs and I approve this patch. Signed-off-by: Kevin Diggs <[EMAIL PROTECTED]> Index: arch/powerpc/kernel

[PATCH v2 4/5] Add kernel doc for the completion, fix kernel-doc-nano-HOWTO.txt

2008-08-30 Thread Kevin Diggs
This patch adds kernel doc for the completion feature. It is in kernel/sched.c and include/linux/completion.h. An error in the split-man.pl PERL snippet in kernel-doc-nano-HOWTO.txt is also fixed. My name is Kevin Diggs and I approve this patch. Signed-off-by: Kevin Diggs <[EMAIL PROTEC

[PATCH v2 5/5] Add PERL script to conrol the PLL via the sysfs attribute

2008-08-30 Thread Kevin Diggs
This patch adds a PERL script that can be used to manipulate the sysfs attribute provided by pll_if. It can query the current state, change the state of the inactive PLL, and switch PLLs (assumming that the inactive PLL is locked to a valid frequency). My name is Kevin Diggs and I approve this

8600 serial support

2008-10-08 Thread Kevin Diggs
Hi, I thought I might take a whack at fixing the 2.6 serial driver for my 8600. At the top of pmac_zilog.c (2.6.26) there is a todo for DMA. A quick glance at macserial.c (2.4.31) suggests it has dbdma support for receive. Anyone know of any pitfalls for adding dbdma support for pmac_zilo

Re: 8600 serial support

2008-10-08 Thread Kevin Diggs
Benjamin Herrenschmidt wrote: On Wed, 2008-10-08 at 12:51 -0700, Kevin Diggs wrote: Hi, I thought I might take a whack at fixing the 2.6 serial driver for my 8600. At the top of pmac_zilog.c (2.6.26) there is a todo for DMA. A quick glance at macserial.c (2.4.31) suggests it has dbdma

2.6.27 g5 config?

2008-10-11 Thread Kevin Diggs
Hi, I always have trouble getting an initial build to boot. Usually it is with keyboards and video console. Currently, I can't seem to find the root disk. With the attached config I get the early messages, a pair of "penguin" images. And then I think it says system restarting. Ha

gigE 2.6.27 USB

2008-10-13 Thread Kevin Diggs
Hi, I managed to wrestle my gigE to the ground and get it to boot 2.6.27. I have, however, noticed that some messages are showing up in dmesg. There are alot of them. They are continuous. They appear to come from drivers/usb/core/hub.c:2916. It looks like they come in pairs (this beast ha

  1   2   >