Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.
Hello Kumar, Kumar Gala schrieb: On Jun 18, 2008, at 3:38 AM, Heiko Schocher wrote: changes since the last patch: update the Portpin initialization. [powerpc] Added support for the MPC8247 based board MGCOGE from Keymile. Signed-off-by: Heiko Schocher [EMAIL PROTECTED] --- arch/powerpc/boot/dts/mgcoge.dts | 174 +++ arch/powerpc/configs/mgcoge_defconfig | 900 + arch/powerpc/platforms/82xx/Kconfig |8 + arch/powerpc/platforms/82xx/Makefile |1 + arch/powerpc/platforms/82xx/mgcoge.c | 129 + 5 files changed, 1212 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/boot/dts/mgcoge.dts create mode 100644 arch/powerpc/configs/mgcoge_defconfig create mode 100644 arch/powerpc/platforms/82xx/mgcoge.c This fails to compile for with 2.6.27-rc3: drivers/net/fs_enet/mac-scc.c: In function 'restart': drivers/net/fs_enet/mac-scc.c:256: error: implicit declaration of function '__fs_out8' drivers/net/fs_enet/mac-scc.c:265: error: 'SCC_EB' undeclared (first use in this function) drivers/net/fs_enet/mac-scc.c:265: error: (Each undeclared identifier is reported only once drivers/net/fs_enet/mac-scc.c:265: error: for each function it appears in.) make[3]: *** [drivers/net/fs_enet/mac-scc.o] Error 1 make[2]: *** [drivers/net/fs_enet] Error 2 make[1]: *** [drivers/net] Error 2 make: *** [drivers] Error 2 make: *** Waiting for unfinished jobs :-( So in 2.6.27-rc3 lacks another patch from me :-( , see: http://ozlabs.org/pipermail/linuxppc-dev/2008-June/057824.html and I posted this patch First time in January 2008! bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
Re: [PATCH v3] libfdt: Add support for using aliases in fdt_path_offset()
Hmm.. my reading of 1275 says that an alias pointing to another alias is not permitted, but I'm not terribly confident I'm not misreading it. Segher, do you know whether this is allowed? My reading is the same: if after expanding an alias the path does not start with /, the search starts at the current package, otherwise it starts at the root node; and no further alias expansion is done. It's a corner case for sure, but at least the standard doesn't require us to implement recursive alias expansion; let's see if common practice does ;-) Segher ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
[PATCH] kexec: fix up KEXEC_CONTROL_CODE_SIZE missed during conversion
Commit 163f6876f5c3ff8215e900b93779e960a56b3694 missed one, resulting in the following compile error: AS arch/powerpc/kernel/misc_32.o arch/powerpc/kernel/misc_32.S: Assembler messages: arch/powerpc/kernel/misc_32.S:902: Error: unsupported relocation against KEXEC_CONTROL_CODE_SIZE make[2]: *** [arch/powerpc/kernel/misc_32.o] Error 1 make[1]: *** [arch/powerpc/kernel] Error 2 make: *** [vmlinux] Error 2 I grepped arch/ and found no further instances. Signed-off-by: Paul Collins [EMAIL PROTECTED] --- arch/powerpc/kernel/misc_32.S |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S index 6321ae3..7a6dfbc 100644 --- a/arch/powerpc/kernel/misc_32.S +++ b/arch/powerpc/kernel/misc_32.S @@ -899,7 +899,7 @@ relocate_new_kernel: /* set a new stack at the bottom of our page... */ /* (not really needed now) */ - addir1, r4, KEXEC_CONTROL_CODE_SIZE - 8 /* for LR Save+Back Chain */ + addir1, r4, KEXEC_CONTROL_PAGE_SIZE - 8 /* for LR Save+Back Chain */ stw r0, 0(r1) /* Do the copies */ -- Paul Collins Wellington, New Zealand Dag vijandelijk luchtschip de huismeester is dood ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
Re: use plb_tft_cntlr_ref_d meet the problem
It is work now , enable the plb_ddr 's burst mode ,thanks wangyanlong wrote: Has anybody add the plb_tft_cntlr_ref to the desgin ? I add the pcores whcih copy from slideshow which is a reference desgin. Something is wrong. I show the image in my design , the plb_tft_cntlr_ref ip core is works ,but it not work very well . The image shows in the lcd is fuzzy. The problem is not the software , beacause it use some software as reference desgin. The image in the reference desgin is clear,but it fuzzy in my design .Why ??? Many Thanks ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev -- View this message in context: http://www.nabble.com/use-plb_tft_cntlr_ref_d-meet-the-problem-tp18967613p19012925.html Sent from the linuxppc-dev mailing list archive at Nabble.com. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
[PATHC] powerpc: use generic compat_sys_old_readdir
Use the generic compat_sys_old_readdir instead of the powerpc one which is almost the same except for the almost complete lack of error handling. Note that we can't just use SYSCALL() in systbl.h because the native syscalls is named old_readdir, not sys_old_readdir or just sys_readdir beeing the only one. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/arch/powerpc/include/asm/systbl.h === --- linux-2.6.orig/arch/powerpc/include/asm/systbl.h2008-08-16 13:08:35.0 -0300 +++ linux-2.6/arch/powerpc/include/asm/systbl.h 2008-08-16 13:14:37.0 -0300 @@ -92,7 +92,7 @@ COMPAT_SYS_SPU(readlink) SYSCALL(uselib) SYSCALL(swapon) SYSCALL(reboot) -SYSX(sys_ni_syscall,old32_readdir,old_readdir) +SYSX(sys_ni_syscall,compat_sys_old_readdir,old_readdir) SYSCALL_SPU(mmap) SYSCALL_SPU(munmap) SYSCALL_SPU(truncate) Index: linux-2.6/arch/powerpc/kernel/sys_ppc32.c === --- linux-2.6.orig/arch/powerpc/kernel/sys_ppc32.c 2008-08-16 13:07:16.0 -0300 +++ linux-2.6/arch/powerpc/kernel/sys_ppc32.c 2008-08-16 13:09:22.0 -0300 @@ -52,63 +52,6 @@ #include asm/ppc-pci.h #include asm/syscalls.h -struct old_linux_dirent32 { - u32 d_ino; - u32 d_offset; - unsigned short d_namlen; - chard_name[1]; -}; - -struct readdir_callback32 { - struct old_linux_dirent32 __user * dirent; - int count; -}; - -static int fillonedir(void * __buf, const char * name, int namlen, - off_t offset, u64 ino, unsigned int d_type) -{ - struct readdir_callback32 * buf = (struct readdir_callback32 *) __buf; - struct old_linux_dirent32 __user * dirent; - ino_t d_ino; - - if (buf-count) - return -EINVAL; - d_ino = ino; - if (sizeof(d_ino) sizeof(ino) d_ino != ino) - return -EOVERFLOW; - buf-count++; - dirent = buf-dirent; - put_user(d_ino, dirent-d_ino); - put_user(offset, dirent-d_offset); - put_user(namlen, dirent-d_namlen); - copy_to_user(dirent-d_name, name, namlen); - put_user(0, dirent-d_name + namlen); - return 0; -} - -asmlinkage int old32_readdir(unsigned int fd, struct old_linux_dirent32 __user *dirent, unsigned int count) -{ - int error = -EBADF; - struct file * file; - struct readdir_callback32 buf; - - file = fget(fd); - if (!file) - goto out; - - buf.count = 0; - buf.dirent = dirent; - - error = vfs_readdir(file, (filldir_t)fillonedir, buf); - if (error 0) - goto out_putf; - error = buf.count; - -out_putf: - fput(file); -out: - return error; -} asmlinkage long ppc32_select(u32 n, compat_ulong_t __user *inp, compat_ulong_t __user *outp, compat_ulong_t __user *exp, ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev