All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* arch/ppc/kernel restructure + MVME/MTX OpenPIC support
@ 1999-01-10 22:24 Troy Benjegerdes
  1999-01-11 19:01 ` Corey Minyard
  0 siblings, 1 reply; 4+ messages in thread
From: Troy Benjegerdes @ 1999-01-10 22:24 UTC (permalink / raw
  To: Corey Minyard, Gabriel Paubert, Matt Porter; +Cc: linuxppc-dev


I have just finished some early testing of this.

The patch is available on
ftp://ftp.microux.com/pub/linux/linuxppc-rework-troy.patch.gz

Here's what I put in the REAME:

This is my set of integrated patches to the Linux kernel, which are based on
Corey Minyard's linuxppc-rework3.diff patches, along with Gabriel Paubert's
Preploader (which I have integrated into arch/ppc/preploader) and Raven MPIC
support for Motorola MTX/MVME boards.

This works on my MTX board, but only with CONFIG_PREPLOADER (the preploader
has a config option ;) ) because the raven needs to have it's PCI memory
space remapped or it isn't accessible.

Pmac should work, along with APUS. I think I may have broken MBX support..
Can someone check this out and fix this?

These patches were made from my local CVS archive agains 2.2.0-pre6.
Please let me know if you have any additions, etc. 

--------------------------------------------------------------------------
| Troy Benjegerdes    |       troy@microux.com     |    hozer@drgw.net   |
|    Unix is user friendly... You just have to be friendly to it first.  |
| This message composed with 100% free software.    http://www.gnu.org   |
--------------------------------------------------------------------------




[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arch/ppc/kernel restructure + MVME/MTX OpenPIC support
  1999-01-10 22:24 arch/ppc/kernel restructure + MVME/MTX OpenPIC support Troy Benjegerdes
@ 1999-01-11 19:01 ` Corey Minyard
  1999-01-12  5:44   ` Troy Benjegerdes
  1999-01-12  7:42   ` Dan Malek
  0 siblings, 2 replies; 4+ messages in thread
From: Corey Minyard @ 1999-01-11 19:01 UTC (permalink / raw
  To: Troy Benjegerdes; +Cc: Gabriel Paubert, Matt Porter, linuxppc-dev


Troy Benjegerdes <hozer@drgw.net> writes:

> I have just finished some early testing of this.
> 
> The patch is available on
> ftp://ftp.microux.com/pub/linux/linuxppc-rework-troy.patch.gz
> 
> Here's what I put in the REAME:
> 
> This is my set of integrated patches to the Linux kernel, which are based on
> Corey Minyard's linuxppc-rework3.diff patches, along with Gabriel Paubert's
> Preploader (which I have integrated into arch/ppc/preploader) and Raven MPIC
> support for Motorola MTX/MVME boards.
> 
> This works on my MTX board, but only with CONFIG_PREPLOADER (the preploader
> has a config option ;) ) because the raven needs to have it's PCI memory
> space remapped or it isn't accessible.
> 
> Pmac should work, along with APUS. I think I may have broken MBX support..
> Can someone check this out and fix this?
> 
> These patches were made from my local CVS archive agains 2.2.0-pre6.
> Please let me know if you have any additions, etc. 
> 

Is there anybody that could do the MBX work and test things out?  That
is the biggest hole missing.  I'd like to see all the 8xx and MBX stuff
be put into the new framework, but I don't have the experience to do
it.  I'm also a little short of time right now since I'm remodelling
my house.

Also, a couple of small things that probably need to be fixed:

 * The __initfunc()  needs to be removed from all the xxx_setup_residual
   function calls, since that is called all the time.

 * The patch to idle.c needs to look something like:

--- linux-2.2p4.orig/arch/ppc/kernel/idle.c     Mon Jan  4 16:59:13 1999
+++ linux-2.2p4/arch/ppc/kernel/idle.c  Mon Jan  4 16:49:13 1999
@@ -301,7 +301,14 @@
                        hid0 &= ~(HID0_NAP | HID0_SLEEP | HID0_DOZE);
                        hid0 |= (powersave_nap? HID0_NAP: HID0_DOZE) | HID0_DPM;
                        asm("mtspr 1008,%0" : : "r" (hid0));
-                       msr |= MSR_POW;
+
+                       /* set the POW bit in the MSR, and enable interrupts
+                          so we'll wake up sometime! */
+                       _nmask_and_or_msr(0, MSR_POW | MSR_EE);
+
+                       /* Disable interrupts again so restore_flags will
+                          work. */
+                       _nmask_and_or_msr(MSR_EE, 0);
                }
                restore_flags(msr);
        default:


-- 
Corey Minyard               Internet:  minyard@acm.org
  Work: minyard@nortel.ca       UUCP:  minyard@wf-rch.cirr.com

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arch/ppc/kernel restructure + MVME/MTX OpenPIC support
  1999-01-11 19:01 ` Corey Minyard
@ 1999-01-12  5:44   ` Troy Benjegerdes
  1999-01-12  7:42   ` Dan Malek
  1 sibling, 0 replies; 4+ messages in thread
From: Troy Benjegerdes @ 1999-01-12  5:44 UTC (permalink / raw
  To: Corey Minyard; +Cc: linuxppc-dev



I have just made the changes you suggested, along with updating a couple
of files (irq.c, setup.c) to match the versions in 2.2.0-pre6. (thanks to 
keys@brio.yikes.com for pointing this out)

There is also an additional patch to linux/mm/vmscan.c provided by Ryan
Nielsen which has been included which allowed me to boot an SMP kernel
again.

The patch is at
ftp://ftp.microux.com/pub/linux/linuxppc-rework-troy-2.patch.gz
 
> Also, a couple of small things that probably need to be fixed:
> 
>  * The __initfunc()  needs to be removed from all the xxx_setup_residual
>    function calls, since that is called all the time.
> 
Heh, this was causing 'cat /proc/cpuinfo' to crash the kernel

>  * The patch to idle.c needs to look something like:
> 
> --- linux-2.2p4.orig/arch/ppc/kernel/idle.c     Mon Jan  4 16:59:13 1999
> +++ linux-2.2p4/arch/ppc/kernel/idle.c  Mon Jan  4 16:49:13 1999
> @@ -301,7 +301,14 @@
>                         hid0 &= ~(HID0_NAP | HID0_SLEEP | HID0_DOZE);
>                         hid0 |= (powersave_nap? HID0_NAP: HID0_DOZE) | HID0_DPM;
>                         asm("mtspr 1008,%0" : : "r" (hid0));
> -                       msr |= MSR_POW;
> +
> +                       /* set the POW bit in the MSR, and enable interrupts
> +                          so we'll wake up sometime! */
> +                       _nmask_and_or_msr(0, MSR_POW | MSR_EE);
> +
> +                       /* Disable interrupts again so restore_flags will
> +                          work. */
> +                       _nmask_and_or_msr(MSR_EE, 0);
>                 }
>                 restore_flags(msr);
>         default:
> 
> 
> -- 
> Corey Minyard               Internet:  minyard@acm.org
>   Work: minyard@nortel.ca       UUCP:  minyard@wf-rch.cirr.com
> 
> 

--------------------------------------------------------------------------
| Troy Benjegerdes    |       troy@microux.com     |    hozer@drgw.net   |
|    Unix is user friendly... You just have to be friendly to it first.  |
| This message composed with 100% free software.    http://www.gnu.org   |
--------------------------------------------------------------------------



[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arch/ppc/kernel restructure + MVME/MTX OpenPIC support
  1999-01-11 19:01 ` Corey Minyard
  1999-01-12  5:44   ` Troy Benjegerdes
@ 1999-01-12  7:42   ` Dan Malek
  1 sibling, 0 replies; 4+ messages in thread
From: Dan Malek @ 1999-01-12  7:42 UTC (permalink / raw
  To: minyard; +Cc: Troy Benjegerdes, Gabriel Paubert, Matt Porter, linuxppc-dev


Corey Minyard wrote:

> Is there anybody that could do the MBX work and test things out?  That
> is the biggest hole missing.  I'd like to see all the 8xx and MBX stuff
> be put into the new framework, but I don't have the experience to do
> it.  I'm also a little short of time right now since I'm remodelling
> my house.

I'll have a look.  Hey, I've remodelled a house....I'd rather spend
the time doing _anything_ else :-).  Have fun.


    -- Dan



[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-01-12  7:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-10 22:24 arch/ppc/kernel restructure + MVME/MTX OpenPIC support Troy Benjegerdes
1999-01-11 19:01 ` Corey Minyard
1999-01-12  5:44   ` Troy Benjegerdes
1999-01-12  7:42   ` Dan Malek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.