Re: RTC on 2.6.36 for PowerMac 8600

2012-01-31 Thread kevin diggs
Hi, On 1/29/12, Andreas Schwab sch...@linux-m68k.org wrote: kevin diggs diggskevi...@gmail.com 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

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

Re: cpu idle time going backward

2011-12-08 Thread kevin diggs
On 12/8/11, Andreas Schwab sch...@linux-m68k.org 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

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 ___

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: [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 dbarysh...@gmail.com 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?

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

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 b...@kernel.crashing.org 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

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 list

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

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 b...@kernel.crashing.org 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

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 b...@kernel.crashing.org 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

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 b...@kernel.crashing.org 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 dereference. I'll try

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: halt/reset on assert?

2011-04-07 Thread kevin diggs
On Thu, Apr 7, 2011 at 2:55 AM, Benjamin Herrenschmidt b...@kernel.crashing.org 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

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: 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

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 seg...@kernel.crashing.org wrote: make drivers/scsi/mesh.s ??? I thought I have tried this in the past and it did not work? The make path/file.s thing? Thanks for the tip! kevin ___

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 seg...@kernel.crashing.org wrote: make drivers/scsi/mesh.s

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

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

Re: rtc on PowerMac7,3

2011-02-23 Thread kevin diggs
On Wed, Feb 23, 2011 at 1:42 PM, Benjamin Herrenschmidt b...@kernel.crashing.org 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

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

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

Re: BootX

2011-02-02 Thread kevin diggs
at 12:24 PM, kevin diggs diggskevi...@gmail.com 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 and thus also runs SMP

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

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 -

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 b...@kernel.crashing.org 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

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 b...@kernel.crashing.org 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

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

Re: BootX

2011-01-24 Thread kevin diggs
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 diggskevi...@gmail.com wrote: Hi, If I enable SMP then I can build a 2.6.28 kernel with gcc 4.3.5

Re: BootX

2011-01-22 Thread kevin diggs
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 diggskevi...@gmail.com wrote: Hi, Anyone

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 b...@kernel.crashing.org 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

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
-0600, kevin diggs wrote: Hi, Anyone familiar with BootX? Could my problems with the 8600 be related to some interaction with BootX? It's possible. Have you tried using OF booting instead ? The 8600 should be cable to boot off SCSI or netboot COFF images. Cheers, Ben

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 b...@kernel.crashing.org wrote: On Fri, 2011-01-21 at 19:48 -0600, kevin diggs wrote

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 diggskevi...@gmail.com 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 get

Re: elf section .text.unlikely

2011-01-21 Thread kevin diggs
is dead. Jog any thoughts? Thanks! kevin On Fri, Jan 21, 2011 at 8:31 PM, kevin diggs diggskevi...@gmail.com 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 diggskevi...@gmail.com wrote: Hi, I am

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

Re: PowerMac8600 help ...

2010-11-17 Thread kevin diggs
either. So ... I am back to why I can't get a newer kernel running on the 8600??? Thanks! kevin P.S.: newer powermacs have a line in cpuinfo, like PowerMac 7,2. Does this uniquely identify a particular model? On 11/11/10, kevin diggs diggskevi...@gmail.com wrote: Ben, Thanks for taking

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

old MESH SCSI driver

2010-11-02 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

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

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 diggskevi...@gmail.com wrote: Hi, I have a G5 (dual

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.

Re: schizophrenic G5 ...

2008-12-24 Thread Kevin Diggs
Kevin Diggs wrote: Hi, I have a water cooled dual 2.5 GHz G5 (Powermac7,3). It has YDL 6.0 on it. Using the stock YDL 2.6.23 kernel this machine appears to work fine. After finally getting it to boot under 2.6.27, it will shut itself off if put under any significant load

Re: schizophrenic G5 ...

2008-12-23 Thread Kevin Diggs
Benjamin Herrenschmidt wrote: On Sun, 2008-12-21 at 16:11 -0800, Kevin Diggs wrote: Hi, I have a water cooled dual 2.5 GHz G5 (Powermac7,3). It has YDL 6.0 on it. Using the stock YDL 2.6.23 kernel this machine appears to work fine. After finally getting it to boot under 2.6.27

Re: schizophrenic G5 ...

2008-12-23 Thread Kevin Diggs
Christian Krafft wrote: On Sun, 21 Dec 2008 16:11:43 -0800 Kevin Diggs kev...@hypersurf.com wrote: Hi, I have a water cooled dual 2.5 GHz G5 (Powermac7,3). It has YDL 6.0 on it. Using the stock YDL 2.6.23 kernel this machine appears to work fine. After finally getting

schizophrenic G5 ...

2008-12-21 Thread Kevin Diggs
Hi, I have a water cooled dual 2.5 GHz G5 (Powermac7,3). It has YDL 6.0 on it. Using the stock YDL 2.6.23 kernel this machine appears to work fine. After finally getting it to boot under 2.6.27, it will shut itself off if put under any significant load. And it is doing it very quickly.

970FX thermal diode on G5

2008-12-19 Thread Kevin Diggs
Hi, Is the thermal diode on a 970FX used on a G5? Can it be read by software? kevin ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

What means technology has been retired?

2008-12-17 Thread Kevin Diggs
Does anyone know what the statement: This technology has been retired. on this page: http://www.alphaworks.ibm.com/tech/powerscale4ppc means? Something about 970FX frequency scaling? kevin ___ Linuxppc-dev mailing list

Re: pmac_zilog debugging ...

2008-11-17 Thread Kevin Diggs
Benjamin Herrenschmidt wrote: On Thu, 2008-11-13 at 14:29 -0800, Kevin Diggs wrote: Benjamin Herrenschmidt wrote: On Thu, 2008-11-13 at 03:38 -0800, Kevin Diggs wrote: 12,206 PowerMac Zilog interrupts Interrupt load is higher without the DMA support. Is it possible that this hardware

Re: pmac_zilog debugging ...

2008-11-17 Thread Kevin Diggs
Benjamin Herrenschmidt wrote: That's definitely strange. I would expect the kernel to be able to get interrupts fast enough to service a 1200 bauds serial port. Maybe there's something else wrong, or an other driver causing undue interrupt latencies As far as I can see the system is

Re: pmac_zilog debugging ...

2008-11-13 Thread Kevin Diggs
Benjamin Herrenschmidt wrote: On Thu, 2008-11-13 at 03:38 -0800, Kevin Diggs wrote: 12,206 PowerMac Zilog interrupts Interrupt load is higher without the DMA support. Is it possible that this hardware was not meant to be used without the DMA (i.e. it does not work quite right?)? Well

pmac_zilog debugging ...

2008-11-07 Thread Kevin Diggs
Hi, If I use a command similar to: pppd ttyS0 1200 satellites: netmask 255.255.255.0 lock crtscts mru 1064 noauth debug kdebug 7 logfile /tmp/pppd.log local to connect an 8600 to a laptop via ppp the link will lock up in short order from payloaded pings. Any advice on how to figure

Re: [PATCH] genirq: Set initial default irq affinity to just CPU0

2008-10-26 Thread Kevin Diggs
Benjamin Herrenschmidt wrote: What does this all mean to my GigE (dual 1.1 GHz 7455s)? Is this thing supposed to be able to spread irq between its cpus? Depends on the interrupt controller. I don't know that machine but for example the Apple Dual G5's use an MPIC that can spread based on an

Re: [PATCH] genirq: Set initial default irq affinity to just CPU0

2008-10-25 Thread Kevin Diggs
Benjamin Herrenschmidt wrote: On Fri, 2008-10-24 at 16:18 -0700, David Miller wrote: From: Kumar Gala [EMAIL PROTECTED] Date: Fri, 24 Oct 2008 10:57:38 -0500 Commit 18404756765c713a0be4eb1082920c04822ce588 introduced a regression on a subset of SMP based PPC systems whose interrupt

Re: gigE 2.6.27 USB

2008-10-15 Thread Kevin Diggs
Benjamin Herrenschmidt wrote: On Tue, 2008-10-14 at 03:52 -0700, Kevin Diggs wrote: Kevin Diggs wrote: 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

Re: gigE 2.6.27 USB

2008-10-14 Thread Kevin Diggs
Kevin Diggs wrote: 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

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

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.

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

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

[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

[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

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

2008-08-30 Thread Kevin Diggs
is 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.0

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

2008-08-30 Thread Kevin Diggs
. This 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
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/Makefile

[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 PROTECTED

[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

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

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 longer

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 to keep

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 to keep

[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 the

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

2008-08-25 Thread Kevin Diggs
. The 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: Documentation/cpu

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

2008-08-25 Thread Kevin Diggs
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. My name is Kevin Diggs and I approve this patch. Signed-off-by: Kevin Diggs [EMAIL PROTECTED] Index: Documentation/DocBook

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

2008-08-25 Thread Kevin Diggs
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/Makefile

[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 PROTECTED

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

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

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

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):

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

12.5 MHz woo hoo!

2008-08-15 Thread Kevin Diggs
. 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 redistribute it and/or modify

__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 compiled

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 bit

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() here

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)) { /* * Someone

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\n:

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

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

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

  1   2   >