[RFC] [PATCH] powerpc: Add MSR_DE to MSR_KERNEL

2012-05-30 Thread Joakim Tjernlund
Emulators such as BDI2000 and CodeWarrior needs to have MSR_DE set in order to support break points. This adds MSR_DE for kernel space only. --- I have tested this briefly with BDI2000 on P2010(e500) and it works for me. I don't know if there are any bad side effects, therfore this RFC. arch/pow

Re: [RFC] [PATCH] powerpc: Add MSR_DE to MSR_KERNEL

2012-05-30 Thread Dan Malek
Hi Joakim. On May 30, 2012, at 12:43 AM, Joakim Tjernlund wrote: I have tested this briefly with BDI2000 on P2010(e500) and it works for me. I don't know if there are any bad side effects, therfore this RFC. We used to have MSR_DE surrounded by CONFIG_something to ensure it wasn't set und

[RFC PATCH powerpc] make CONFIG_NUMA depends on CONFIG_SMP

2012-05-30 Thread Li Zhong
I'm not sure whether it makes sense to add this dependency to avoid CONFI_NUMA && !CONFIG_SMP. I want to do this because I saw some build errors on next-tree when compiling with CONFIG_SMP disabled, and it seems they are caused by some codes under the CONFIG_NUMA #ifdefs. Signed-off-by: Li Zho

RE: pread() and pwrite() system calls

2012-05-30 Thread David Laight
> > We have a system with linux 2.6.32 and the somewhat archaic > > uClibc 0.9.27 (but I'm not sure the current version is > > any better, and I think there are binary compatibility > > if we update). > > > > I've just discovered that pread() is 'implemented' > > by using 3 lseek() system calls an

Re: ppc/sata-fsl: orphan config value: CONFIG_MPC8315_DS

2012-05-30 Thread Li Yang
On Wed, May 30, 2012 at 6:57 AM, Scott Wood wrote: > On 05/29/2012 05:07 PM, Anthony Foiani wrote: >> Scott Wood writes: >> >>> CONFIG_MPC831x_RDB doesn't mean that you're running on such a board, >>> only that the kernel supports those boards.  It should be a runtime >>> test. >> >> Point taken.

Re[2]: [RFC] [PATCH] powerpc: Add MSR_DE to MSR_KERNEL

2012-05-30 Thread Abatron Support
>> I have tested this briefly with BDI2000 on P2010(e500) and >> it works for me. I don't know if there are any bad side effects, >> therfore >> this RFC. > We used to have MSR_DE surrounded by CONFIG_something > to ensure it wasn't set under normal operation. IIRC, if MSR_DE > is set, you will

Re: [RFC] [PATCH] powerpc: Add MSR_DE to MSR_KERNEL

2012-05-30 Thread Bob Cochran
On 05/30/2012 03:43 AM, Joakim Tjernlund wrote: Emulators such as BDI2000 and CodeWarrior needs to have MSR_DE set in order to support break points. This adds MSR_DE for kernel space only. --- I have tested this briefly with BDI2000 on P2010(e500) and it works for me. I don't know if there are a

Gianfar TX problems

2012-05-30 Thread Rodolfo Giometti
Hello, I'm working on a P1021MDS based board and I have a strange behaviour regarding the TX packets from the gianfar driver (linux 3.0.4-rc5). Rx is working correctly but Tx is not... in particular I noticed that the buffer descriptors are correctly filled but the packets simply do NOT exit form

kernel panic during kernel module load (powerpc specific part)

2012-05-30 Thread Steffen Rumler
Hi, We have seen the following kernel panic, happened during loading a kernel module: [ 536.107430] Unable to handle kernel paging request for data at address 0xd76a907c [ 536.114922] Faulting instruction address: 0xc770 [ 536.119891] Oops: Kernel access of bad area, sig: 11

MPC8315 PCI express lockup

2012-05-30 Thread David Laight
(I apologise for this not having much to do with linux...) We have a system with an MPC8315 ppc running linux 2.6.32 that uses the PCI express interface in RC mode to interface to an Altera FPGA. This uses both PIO and the PEX DMA interfaces (locally written dma driver). Under normal circumstances

Re: ppc/sata-fsl: orphan config value: CONFIG_MPC8315_DS

2012-05-30 Thread Anthony Foiani
Li Yang writes: > The original code was there before I touched the driver. So > unfortunately I also don't know the history of the problem. Alas. > Judging from the comment in code and current test result I guess it > is a board related issue. I wonder if anyone on the 8315_DS project knows w

Re: ppc/sata-fsl: orphan config value: CONFIG_MPC8315_DS

2012-05-30 Thread Anthony Foiani
Scott Wood writes: > Board information is available from the device tree, and from > platform code that was selected based on the device tree. You're right, of course; I was focusing on discovery/probing, and completely forgot about "provided information". However, as I just mentioned in my rep

Re: ppc/sata-fsl: orphan config value: CONFIG_MPC8315_DS

2012-05-30 Thread Scott Wood
On 05/30/2012 03:14 PM, Anthony Foiani wrote: > Scott Wood writes: > >> Board information is available from the device tree, and from >> platform code that was selected based on the device tree. > > You're right, of course; I was focusing on discovery/probing, and > completely forgot about "prov

Re: ppc/sata-fsl: orphan config value: CONFIG_MPC8315_DS

2012-05-30 Thread Anthony Foiani
Scott Wood writes: > We currently support building one kernel that supports a bunch of > different boards. The hardcoding of this workaround was harmless so > far because it was conditional on a symbol that was never defined, > but now you'll be enabling this workaround on any kernel that simply

Re: kernel panic during kernel module load (powerpc specific part)

2012-05-30 Thread Michael Ellerman
On Wed, 2012-05-30 at 16:33 +0200, Steffen Rumler wrote: > Hi, > > The system crashes inside the return of the init entry point of the kernel > module. > > I've found the following root cause: > > (6) Unfortunately, the trampoline code (do_plt_call()) is using register > r11 to setup the

[PATCH] powerpc/mm: dereference OF node "/chosen"

2012-05-30 Thread Gavin Shan
The form affinity for NUMA is set to 1 if the firmware supports OPAL. Otherwise, we have to retrieve that from OF node "/chosen". For the latter case, OF node "/chosen" was referred without dereferencing. The patch dereference OF node "/chosen" if necessary. Signed-off-by: Gavin Shan --- arch/p

[PATCH] powerpc/pci: cleanup on duplicate assignment

2012-05-30 Thread Gavin Shan
While creating the PCI root bus through function pci_create_root_bus() of PCI core, it should have assigned the secondary bus number for the newly created PCI root bus. Thus we needn't do the explicit assignment for the secondary bus number again in pcibios_scan_phb(). Signed-off-by: Gavin Shan -

[PATCH] powerpc: Use enhanced touch instructions in POWER7 copy_to_user/copy_from_user

2012-05-30 Thread Anton Blanchard
Version 2.06 of the POWER ISA introduced enhanced touch instructions, allowing us to specify a number of attributes including the length of a stream. This patch adds a software stream for both loads and stores in the POWER7 copy_tofrom_user loop. Since the setup is quite complicated and we have t

[PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-05-30 Thread Anton Blanchard
Implement a POWER7 optimised memcpy using VMX and enhanced prefetch instructions. This is a copy of the POWER7 optimised copy_to_user/copy_from_user loop. Detailed implementation and performance details can be found in commit a66086b8197d (powerpc: POWER7 optimised copy_to_user/copy_from_user usi