Skip to contentSkip to conversation

Status of linuxppc_2.5

PATCH Pantelis Antoniou 6 participants 12 messages Jan 8, 2003 – Jan 12, 2003

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

Hi

I'm trying to compile linuxppc_2.5 and the following patch is needed to make it compile.

The configuration is from
make pmac_config.

I didn't test it though, I don't have a test pmac system, my intention is to test it on a 8xx system.

BTW, are there any gotchas, or anything I should pay attention moving from 2.4 -> 2.5?

Regards

Pantelis

===== arch/ppc/kernel/traps.c 1.21 vs edited =====

arch/ppc/kernel/traps.c Wed Jan 8 09:23:43 2003 renamed from arch/ppc/kernel/traps.c Mon Jan 6 09:02:42 2003 +1 -1
@@ -174,7 +174,7 @@
                               (*nip & 0x100)? "OUT to": "IN from",
                               regs->gpr[rb] - _IO_BASE, nip);
                        regs->msr |= MSR_RI;
-                       regs->nip = fixup;
+                       regs->nip = entry->fixup;
                        return;
                }
        }

===== drivers/block/swim3.c 1.22 vs edited =====

drivers/block/swim3.c Wed Jan 8 10:40:20 2003 renamed from drivers/block/swim3.c Fri Dec 6 03:10:45 2002 +1 -0
@@ -26,6 +26,7 @@
 #include <linux/ioctl.h>
 #include <linux/blk.h>
 #include <linux/devfs_fs_kernel.h>
+#include <linux/interrupt.h>
 #include <asm/io.h>
 #include <asm/dbdma.h>
 #include <asm/prom.h>

===== drivers/macintosh/mediabay.c 1.10 vs edited =====

drivers/macintosh/mediabay.c Wed Jan 8 10:53:47 2003 renamed from drivers/macintosh/mediabay.c Tue Nov 12 01:47:53 2002 +2 -1
@@ -36,6 +36,7 @@
 #include <asm/keylargo.h>
 #include <linux/adb.h>
 #include <linux/pmu.h>
+#include <linux/ide.h>
 
 #ifdef CONFIG_PMAC_PBOOK
 static int mb_notify_sleep(struct pmu_sleep_notifier *self, int when);
@@ -599,7 +600,7 @@
                if (bay->cd_index >= 0) {
                        printk(KERN_DEBUG "Unregistering mb %d ide, index:%d\n", i,
                               bay->cd_index);
-                       ide_unregister(&ide_hwifs[bay->cd_index]);
+                       ide_unregister(bay->cd_index);
                        bay->cd_index = -1;
                }
                if (bay->cd_retry) {

===== drivers/usb/host/ohci-pci.c 1.6 vs edited =====

drivers/usb/host/ohci-pci.c Wed Jan 8 10:49:46 2003 renamed from drivers/usb/host/ohci-pci.c Sun Dec 1 04:21:11 2002 +1 -0
@@ -18,6 +18,7 @@
 #include <asm/machdep.h>
 #include <asm/pmac_feature.h>
 #include <asm/pci-bridge.h>
+#include <asm/prom.h>
 #ifndef CONFIG_PM
 #      define CONFIG_PM
 #endif

===== fs/nfs/write.c 1.36 vs edited =====

fs/nfs/write.c Wed Jan 8 10:38:32 2003 renamed from fs/nfs/write.c Sat Dec 21 08:29:02 2002 +2 -0
@@ -828,7 +828,9 @@
        struct nfs_write_data   *data = (struct nfs_write_data *) task->tk_calldata;
        struct nfs_writeargs    *argp = &data->args;
        struct nfs_writeres     *resp = &data->res;
+#if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4)
        struct inode            *inode = data->inode;
+#endif
        struct nfs_page         *req;
        struct page             *page;
 

===== include/linux/ide.h 1.32 vs edited =====

include/linux/ide.h Wed Jan 8 10:47:16 2003 renamed from include/linux/ide.h Sat Dec 28 21:09:38 2002 +3 -0
@@ -334,6 +334,9 @@
  */
 int ide_register_hw(hw_regs_t *hw, struct hwif_s **hwifp);
 
+/* XXX panto */
+void ide_unregister (unsigned int index);
+
 /*
  * Set up hw_regs_t structure before calling ide_register_hw (optional)
  */
#1 lore raw
Quoted 3 lines · Pantelis Antoniou

BTW, are there any gotchas, or anything
I should pay attention moving
from 2.4 -> 2.5?

AFAIK, you need the new module-init-tools for loading/unloading modules.

I see there is a little patch for swim3 driver. Do you have any problems with swim3 driver in 2.4 kernel when writing to floppy? What is the status in v2.5?

--
With best regards,
Boris B.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 11 lines · Boris Bezlaj
Quoted 3 lines · Pantelis Antoniou

BTW, are there any gotchas, or anything
I should pay attention moving
from 2.4 -> 2.5?

AFAIK, you need the new module-init-tools for loading/unloading modules.

I see there is a little patch for swim3 driver. Do you have any problems with swim3 driver in 2.4 kernel when writing to floppy? What is the status in v2.5?

What patch ? I'm interested ;)

So far, swim3 in 2.5 is not up-to-date to new BIO semantics in 2.5. I've wanted to do that for some time now but didn't find time yet.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 2 lines · Benjamin Herrenschmidt

What patch ? I'm interested ;)

It just adds +#include <linux/interrupt.h> to swim3.c

Quoted 2 lines

So far, swim3 in 2.5 is not up-to-date to new BIO semantics in 2.5. I've wanted to do that for some time now but didn't find time yet.

But does the writing work in 2.4.x ? For me it works flawlessly in 2.2.x, but in 2.4 there are some problems with settling (only when writing; read is fine), which im trying to figure out and fix.

--

With best regards,

Boris B.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
Quoted 4 lines · Boris Bezlaj
Quoted 2 lines · Benjamin Herrenschmidt

What patch ? I'm interested ;)

Quoted 8 lines

It just adds +#include <linux/interrupt.h> to swim3.c

Quoted 2 lines

So far, swim3 in 2.5 is not up-to-date to new BIO semantics in 2.5. I've wanted to do that for some time now but didn't find time yet.

But does the writing work in 2.4.x ? For me it works flawlessly in 2.2.x, but in 2.4 there are some problems with settling (only when writing; read is fine), which im trying to figure out and fix.

Did didn't try that driver very hard lately. Please cc me any fix you may have.

Note also that there is a darwin driver for swim3 floating around that gets a lot of code from MacOS 9 and that appear to document a bunch of black magic stuffs, so that may be a good source of information. I think it's on mklinux.org

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#5 lore raw
Quoted 7 lines · Benjamin Herrenschmidt
Quoted 4 lines

But does the writing work in 2.4.x ? For me it works flawlessly in 2.2.x, but in 2.4 there are some problems with settling (only when writing; read is fine), which im trying to figure out and fix.

Did didn't try that driver very hard lately. Please cc me any fix you may have.

None for now..didn't found the problem yet..i will let you know when (if) i produce a fix.

Quoted 5 lines

Note also that there is a darwin driver for swim3 floating around that gets a lot of code from MacOS 9 and that appear to document a bunch of black magic stuffs, so that may be a good source of information. I think it's on mklinux.org

It is..looks tasty too. I will look into it.

--

With best regards,

Boris B.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#9 lore raw
In reply to Michel Lanners
Quoted 11 lines · Michel Lanners

On 8 Jan, this message from Pantelis Antoniou echoed through cyberspace:

Quoted 3 lines

I'm trying to compile linuxppc_2.5
and the following patch is needed to
make it compile.

Tried to compile my standard kernel compile a while back, and found the following things broken (didn't have time to try fixing yet...):

- 53c94 Mac SCSI
- Matroxfb

Quoted 7 lines

I also didn't try very hard to compile in face of these problems; there may be others still.

Sorry I can't provide more info, but maybe this discussion makes ore people interested in 2.5 status, where I think a number of PPC-related things need to be seriously looked at, hopefully before it is declared 2.6...

Yup, mostly drivers though. Part of this is me lacking time or beeing too lazy (pick your preferred one) as I want to rework most of the pmac drivers to better fit in the new model. Some of it is in progress locally though, hopefully I'll push something a couple of weeks from now.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#8 lore raw
In reply to Pantelis Antoniou

On 8 Jan, this message from Pantelis Antoniou echoed through cyberspace:

Quoted 3 lines

I'm trying to compile linuxppc_2.5
and the following patch is needed to
make it compile.

Tried to compile my standard kernel compile a while back, and found the following things broken (didn't have time to try fixing yet...):

- 53c94 Mac SCSI
- Matroxfb

I also didn't try very hard to compile in face of these problems; there may be others still.

Sorry I can't provide more info, but maybe this discussion makes ore people interested in 2.5 status, where I think a number of PPC-related things need to be seriously looked at, hopefully before it is declared 2.6...

Cheers

Michel

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

Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   [email protected]            |
http://www.cpu.lu/~mlan        |                     Learn Always. "

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#10 lore raw
Quoted 4 lines · Michel Lanners

Tried to compile my standard kernel compile a while back, and found the following things broken (didn't have time to try fixing yet...):

- 53c94 Mac SCSI

I just pushed a fix (untested) for mac53c94 scsi to linuxppc-2.5. If you try it out, let me know how it goes.

Paul.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#6 lore raw
In reply to Benjamin Herrenschmidt
Quoted 19 lines · Benjamin Herrenschmidt
Quoted 9 lines · Boris Bezlaj
Quoted 5 lines · Pantelis Antoniou

BTW, are there any gotchas, or anything
I should pay attention moving
from 2.4 -> 2.5?

Quoted 6 lines

AFAIK, you need the new module-init-tools for loading/unloading modules.

I see there is a little patch for swim3 driver. Do you have any problems with swim3 driver in 2.4 kernel when writing to floppy? What is the status in v2.5?

Quoted 11 lines

What patch ? I'm interested ;)

So far, swim3 in 2.5 is not up-to-date to new BIO semantics in 2.5. I've wanted to do that for some time now but didn't find time yet.

Ben.

I'm sorry, the patch is just trivial stuff needed to get it to compile. I don't even have hardware that applies to swim3 driver. I just added the include for the header and modified the call to ide_unregister to use the new calling convention.

BTW ide_unregister was not exported in linux/ide.h and so I added the prototype there. Maybe someone should notify the maintainer of the IDE layer that since this function is needed by the swim3 driver it should be visible in the header?
Or we should use a new infrastructure?

As I mentioned since I don't have a power mac testing system, I'm not willing to sacrifice my workstation to the gods of 2.5 just yet.

What I want to do is to use 2.5 for my board which uses a 8xx, and there I'm up against greater problems... My major obstacle is the 8xx uart driver.

I'm not up to speed on 2.5 yet, but what happened to DECLARE_TASK_QUEUE? Apparently alot of things changed significantly.

Is there any document or whatever to help me clean up the confusion?

Finally, if I am permitted to say, it appears that we are a little behind in the 2.5 train. The release date is getting closer, and I'm not sure that there are any people using 2.5 in PPC systems.
IMHO we should pick up the pace a little bit.

Regards

Pantelis

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#7 lore raw
Quoted 6 lines · Pantelis Antoniou

I'm sorry, the patch is just trivial stuff needed to get it to compile. I don't even have hardware that applies to swim3 driver. I just added the include for the header and modified the call to ide_unregister to use the new calling convention.

Quoted 6 lines

BTW ide_unregister was not exported in linux/ide.h and so I added the prototype there. Maybe someone should notify the maintainer of the IDE layer that since this function is needed by the swim3 driver it should be visible in the header?
Or we should use a new infrastructure?

Is there a reason that the swim3 driver needs something from the IDE layer? I haven't tried 2.5 on my 7600 yet, but when I'm compiling a kernel for it, I never include IDE, since the motherboard doesn't have IDE hardware. Any machine old enough to use the swim3 driver is slow enough without any help...

Brad Boyer
[email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#11 lore raw
In reply to Paul Mackerras

On 9 Jan, this message from Paul Mackerras echoed through cyberspace:

Quoted 7 lines
Quoted 4 lines

Tried to compile my standard kernel compile a while back, and found the following things broken (didn't have time to try fixing yet...):

- 53c94 Mac SCSI

I just pushed a fix (untested) for mac53c94 scsi to linuxppc-2.5. If you try it out, let me know how it goes.

Thanks, at least it compiles :-) I'll have to see how I can test 2.5 kernels since most of my partitions are on LVM1 and that one has just been removed in 2.5...

Cheers

Michel

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

Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   [email protected]            |
http://www.cpu.lu/~mlan        |                     Learn Always. "

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/