[prev in list] [next in list] [prev in thread] [next in thread]
List: osdl-fastboot
Subject: Re: [Fastboot] Some problems when build kexec-tools on ppc64 machine
From: Mohan Kumar M <mohan () in ! ibm ! com>
Date: 2005-12-28 9:59:00
Message-ID: 1135763220.6042.6.camel () explorer ! in ! ibm ! com
[Download RAW message or body]
On Wed, 2005-12-28 at 13:32, Jin Qi Huang wrote:
> Any opinion? If no, I will submit a patch to the kernel maillist to
> solve the problem.
>
> Best Regards,
>
> Huang Jin Qi(黄谨奇)
> LTC and Power Linux Test, China Development Lab, Beijing
> Tel: 86-10-82782244 Ext. 3250 Email: huangjq@cn.ibm.com
>
Hi Huang,
The pSeries_discover_pic patch is already submitted to Paulus by Haren,
but it is not yet integrated with the mainline kernel.
Regards,
Mohan.
>
> Jin Qi Huang/China/Contr/IBM
>
> 2005-12-28 13:43
> To
> fastboot@lists.osdl.org
> cc
> mohan@in.ibm.com,
> rende@cn.ibm.com
> Subject
> Re: [Fastboot]
> Some problems
> when build
> kexec-tools on
> ppc64
> machineLink
>
>
>
> On the ppc64 machine, there are total three interrupt controllers got
> from Open Firmware device tree:
> IBM,ppc-xicp
> ibm,ppc-xics
> ibm,ppc-xics
> this is the sequence provided by Open Firmware device tree after the
> normal boot, but after execute "kexec -l /boot/vmlinux-2.6.15-rc7
> --append="root=/dev/sda2 selinux=0 elevator=cfq console=tty0
> console=hvsi0,9600" -f" to boot another kernel, the sequence is
> changed to:
> ibm,ppc-xics
> ibm,ppc-xics
> IBM,ppc-xicp
>
> the pSeries_discover_pic function only check the first interrupt
> controller will get error, I do not know why the sequence is changed,
> but we can modify the pSeries_discover_pic function to solve the
> problem:
> static void __init pSeries_discover_pic(void)
> {
> struct device_node *np;
> char *typep;
>
> /*
> * Setup interrupt mapping options that are needed for
> finish_device_tree
> * to properly parse the OF interrupt tree & do the virtual
> irq mapping
> */
> __irq_offset_value = NUM_ISA_INTERRUPTS;
> ppc64_interrupt_controller = IC_INVALID;
> for (np = NULL; (np = of_find_node_by_name(np,
> "interrupt-controller"));) {
> typep = (char *)get_property(np, "compatible", NULL);
> if (strstr(typep, "open-pic"))
> {
> ppc64_interrupt_controller = IC_OPEN_PIC;
> break;
> }
> else if (strstr(typep, "ppc-xicp"))
> {
> ppc64_interrupt_controller = IC_PPC_XIC;
> break;
> }
> }
>
> if(ppc64_interrupt_controller == IC_INVALID)
> printk("pSeries_discover_pic: failed to recognize"
> " interrupt-controller\n");
> }
>
> Best Regards,
>
> Huang Jin Qi(黄谨奇)
> LTC and Power Linux Test, China Development Lab, Beijing
> Tel: 86-10-82782244 Ext. 3250 Email: huangjq@cn.ibm.com
_______________________________________________
fastboot mailing list
fastboot@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/fastboot
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic