Re: FW: intel_scu_ipc

From: Zhou Peng
Date: Tue Aug 17 2010 - 02:26:24 EST


Thanks :)

2010/8/17 Hong Liu <hong.liu@xxxxxxxxx>:
> On Tue, 2010-08-17 at 13:59 +0800, Zhou Peng wrote:
>> After compile disabling intel_scu_ipc, the kernel is  vmlinuz-2.6.35+
>> In linux kernel 2.6.35 mrst.h is the same with kvm
>> (http://lxr.free-electrons.com/source/arch/x86/include/asm/mrst.h)
>
> I've checked the latest Linus linux-2.6 tree, it should be fixed.
>
>> 2010/8/17 Zhou Peng <ailvpeng25@xxxxxxxxx>:
>> > This problem seem exist in other distribution eg.
>> > http://stackoverflow.com/questions/3434676/error-while-compiling-the-linux-kernel-2-6-35
>> > http://www.spinics.net/lists/linux-wireless/msg54197.html
>> > How can the kvm to compile it if  without disabling intel_scu_ipc?.
>> >
>> > CC to KVM-ML
>> >
>> > 2010/8/17 Hong Liu <hong.liu@xxxxxxxxx>:
>> >> On Tue, 2010-08-17 at 13:12 +0800, Zhou Peng wrote:
>> >>> I don't know  :)
>> >>> I get the kernel(http://www.linux-kvm.org/page/Code) by
>> >>>
>> >>> git clone git://git.kernel.org/pub/scm/virt/kvm/kvm.git
>> >>
>> >> Looks like it merged the intel_scu_ipc code while forgetting the mrst.h
>> >> change.
>> >>
>> >>>
>> >>> 2010/8/17 Hong Liu <hong.liu@xxxxxxxxx>:
>> >>> > On Tue, 2010-08-17 at 12:54 +0800, Zhou Peng wrote:
>> >>> >> Hi,
>> >>> >>
>> >>> >> But MRST_CPU_CHIP_PENWELL is missing in my source. The complete file is below.
>> >>> >
>> >>> > So... which kernel are you using for compile?
>> >>> >
>> >>> > Thanks,
>> >>> > Hong
>> >>> >
>> >>> >>
>> >>> >> -------
>> >>> >> kvm$ find -name mrst.h
>> >>> >> ./include/config/x86/mrst.h
>> >>> >> ./arch/x86/include/asm/mrst.h
>> >>> >> kvm$ vim arch/x86/include/asm/mrst.h
>> >>> >> kvm$ vim include/config/x86/mrst.h
>> >>> >> kvm$ cat include/config/x86/mrst.h
>> >>> >> kvm$ cat arch/x86/include/asm/mrst.h
>> >>> >> /*
>> >>> >>  * mrst.h: Intel Moorestown platform specific setup code
>> >>> >>  *
>> >>> >>  * (C) Copyright 2009 Intel Corporation
>> >>> >>  *
>> >>> >>  * This program is free software; you can redistribute it and/or
>> >>> >>  * modify it under the terms of the GNU General Public License
>> >>> >>  * as published by the Free Software Foundation; version 2
>> >>> >>  * of the License.
>> >>> >>  */
>> >>> >> #ifndef _ASM_X86_MRST_H
>> >>> >> #define _ASM_X86_MRST_H
>> >>> >> extern int pci_mrst_init(void);
>> >>> >> int __init sfi_parse_mrtc(struct sfi_table_header *table);
>> >>> >>
>> >>> >> #define SFI_MTMR_MAX_NUM 8
>> >>> >> #define SFI_MRTC_MAX  8
>> >>> >>
>> >>> >> #endif /* _ASM_X86_MRST_H */
>> >>> >>
>> >>> >>
>> >>> >> Thanks,
>> >>> >>
>> >>> >> 2010/8/17 Hong Liu <hong.liu@xxxxxxxxx>:
>> >>> >> > On Tue, 2010-08-17 at 11:38 +0800, Ds, Sreedhara wrote:
>> >>> >> >>
>> >>> >> >> -----Original Message-----
>> >>> >> >> From: Zhou Peng [mailto:ailvpeng25@xxxxxxxxx]
>> >>> >> >> Sent: Tuesday, August 17, 2010 8:26 AM
>> >>> >> >> To: Ds, Sreedhara
>> >>> >> >> Subject: intel_scu_ipc
>> >>> >> >>
>> >>> >> >> Hi Sreedhara DS,
>> >>> >> >>
>> >>> >> >> Where does "MRST_CPU_CHIP_PENWELL " be defined please?
>> >>> >> >
>> >>> >> > It is defined in asm/mrst.h, please check the
>> >>> >> > arch/x86/include/asm/mrst.h file, seems there is problem with the
>> >>> >> > sfi_table_header structure which defined in include/linux/sfi.h.
>> >>> >> >
>> >>> >> > Thanks,
>> >>> >> > Hong
>> >>> >> >
>> >>> >> >>
>> >>> >> >> While compiling the kvm linux kernel on my ubuntu 10.04(Linux
>> >>> >> >> xxxx-laptop 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 06:07:29 UTC
>> >>> >> >> 2010 i686 GNU/Linux), the  err below appear, How to figure out please?
>> >>> >> >>
>> >>> >> >> =err msg=
>> >>> >> >> drivers/platform/x86/intel_scu_ipc.c: In function 'pwr_reg_rdwr':
>> >>> >> >> drivers/platform/x86/intel_scu_ipc.c:175: error:
>> >>> >> >> 'MRST_CPU_CHIP_PENWELL' undeclared (first use in this function)
>> >>> >> >> drivers/platform/x86/intel_scu_ipc.c:175: error: (Each undeclared
>> >>> >> >> identifier is rep
>> >>> >> >> orted only once
>> >>> >> >> drivers/platform/x86/intel_scu_ipc.c:175: error: for each function it
>> >>> >> >> appears in.)
>> >>> >> >> drivers/platform/x86/intel_scu_ipc.c: In function
>> >>> >> >> 'intel_scu_ipc_init':
>> >>> >> >> drivers/platform/x86/intel_scu_ipc.c:741: error: implicit declaration
>> >>> >> >> of function '
>> >>> >> >> mrst_identify_cpu'
>> >>> >> >> make[3]: *** [drivers/platform/x86/intel_scu_ipc.o] Error 1
>> >>> >> >> make[2]: *** [drivers/platform/x86] Error 2
>> >>> >> >> make[1]: *** [drivers/platform] Error 2
>> >>> >> >> make: *** [drivers] Error 2
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> =search the kvm kernel tree=
>> >>> >> >> kvm$ grep MRST_CPU_CHIP_PENWELL . -R
>> >>> >> >> ./drivers/platform/x86/intel_scu_ipc.c:    if (platform
>> >>> >> >> !=MRST_CPU_CHIP_PENWELL) {
>> >>> >> >> ./drivers/platform/x86/intel_scu_ipc.c:        if (platform
>> >>> >> >> !=MRST_CPU_CHIP_PENWELL) {
>> >>> >> >>
>> >>> >> >> Thanks,
>> >>> >> >>
>> >>> >> >> Best,
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >
>> >>> >
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Zhou Peng
>> >
>>
>>
>>
>
>
>



--
Zhou Peng
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/