Re: Using devices trees on X86

2010-06-29 Thread Stephen Rothwell
Hi Grant, On Mon, 28 Jun 2010 22:56:14 -0700 Grant Likely grant.lik...@secretlab.ca wrote: I've got an Ack from David now. I'll wait for more acks, and then pull the whole series of 5 into my devicetree-next branch. It's certainly less invasive that some of the other changes arch changes

[PATCH] powerpc: fix feature-fixup tests for gcc 4.5

2010-06-29 Thread Stephen Rothwell
The feature-fixup test declare some extern void variables and then take their addresses. Fix this by declaring them as extern u8 instead. Fixes these warnings (treated as errors): CC arch/powerpc/lib/feature-fixups.o cc1: warnings being treated as errors

Re: [PATCH 11/26] KVM: PPC: Make RMO a define

2010-06-29 Thread Segher Boessenkool
On PowerPC it's very normal to not support all of the physical RAM in real mode. Oh? Are you referring to real mode limit, or 32-bit implementations with more than 32 address lines, or something else? The former. Okay. In that case, the hypervisor can usually access all of physical

Re: [PATCH 24/26] KVM: PPC: PV mtmsrd L=0 and mtmsr

2010-06-29 Thread Segher Boessenkool
There is also a form of mtmsr where all bits need to be addressed. While the PPC64 Linux kernel behaves resonably well here, the PPC32 one never uses the L=1 form but does mtmsr even for simple things like only changing EE. You make it sound like the 32-bit kernel does something stupid,

Re: [PATCH 11/26] KVM: PPC: Make RMO a define

2010-06-29 Thread Alexander Graf
On 29.06.2010, at 09:32, Segher Boessenkool wrote: On PowerPC it's very normal to not support all of the physical RAM in real mode. Oh? Are you referring to real mode limit, or 32-bit implementations with more than 32 address lines, or something else? The former. Okay. In that

Re: [PATCH 11/26] KVM: PPC: Make RMO a define

2010-06-29 Thread Segher Boessenkool
Also, it seems you construct the physical address by masking out bits from the effective address. Most implementations will trap or machine check if you address outside of physical address space, instead. Well the only case where I remember to have hit a real RMO case is on the PS3 -

machine check in kernel for a mpc870 board

2010-06-29 Thread Shawn Jin
I'm porting a mpc870 board to the powerpc arch. The base is the adder-875 board. My first try to boot the cuImage.my870 is experiencing a machine check. And I have no clue where to look. Any help? = bootm 100 ## Booting image at 0100 ... Image Name: Linux-2.6.33.5 Image Type:

Re: [PATCH 11/26] KVM: PPC: Make RMO a define

2010-06-29 Thread Alexander Graf
On 29.06.2010, at 09:52, Segher Boessenkool wrote: Also, it seems you construct the physical address by masking out bits from the effective address. Most implementations will trap or machine check if you address outside of physical address space, instead. Well the only case where I

Re: machine check in kernel for a mpc870 board

2010-06-29 Thread Joakim Tjernlund
From: Shawn Jin shawnx...@gmail.com I'm porting a mpc870 board to the powerpc arch. The base is the adder-875 board. My first try to boot the cuImage.my870 is experiencing a machine check. And I have no clue where to look. Any help? = bootm 100 ## Booting image at 0100 ...

Re: machine check in kernel for a mpc870 board

2010-06-29 Thread Shawn Jin
= bootm 100 ## Booting image at 0100 ...    Image Name:   Linux-2.6.33.5    Image Type:   PowerPC Linux Kernel Image (gzip compressed)    Data Size:    747319 Bytes = 729.8 kB    Load Address: 0040    Entry Point:  004004d4 Load and Entry Point should probably be 0 But the

[PATCH] powerpc: disable SPARSE_IRQ by default

2010-06-29 Thread Li Yang
The SPARSE_IRQ considerably adds overhead to critical path of IRQ handling. However it doesn't benefit much in space for most systems with limited IRQ_NR. Should be disabled unless really necessary. Signed-off-by: Li Yang le...@freescale.com --- arch/powerpc/Kconfig |4 ++-- 1 files

Re: [PATCH 01/26] KVM: PPC: Introduce shared page

2010-06-29 Thread Alexander Graf
Avi Kivity wrote: On 06/26/2010 02:24 AM, Alexander Graf wrote: For transparent variable sharing between the hypervisor and guest, I introduce a shared page. This shared page will contain all the registers the guest can read and write safely without exiting guest context. This patch only

Re: [PATCH 1/5] microblaze: turn CONFIG_OF into a select

2010-06-29 Thread Michal Simek
Stephen Rothwell wrote: so that we can make CONFIG_OF global and remove it from the architecture Kconfig files later. Signed-off-by: Stephen Rothwell s...@canb.auug.org.au Acked-by: Michal Simek mon...@monstr.eu --- arch/microblaze/Kconfig |5 +++-- 1 files changed, 3 insertions(+), 2

Re: [PATCH 5/5] of: remove architecture CONFIG_OF definitions

2010-06-29 Thread Michal Simek
Stephen Rothwell wrote: now that CONFIG_OF is defined globally Signed-off-by: Stephen Rothwell s...@canb.auug.org.au Acked-by: Michal Simek mon...@monstr.eu --- arch/microblaze/Kconfig |3 --- arch/powerpc/Kconfig|3 --- arch/sparc/Kconfig |3 --- 3 files changed, 0

Re: [PATCH 01/26] KVM: PPC: Introduce shared page

2010-06-29 Thread Avi Kivity
On 06/29/2010 12:54 PM, Alexander Graf wrote: Code repeats 3x. Share please. Looking at this again, I could combine the 3 lines of init code into 3 lines of code that do a generic function call and then error checking. And I could convert the one free_page line with one function call

RE: [PATCH]460EX on-chip SATA driverkernel 2.6.33resubmission

2010-06-29 Thread Rupjyoti Sarmah
Hi, Thanks for your feedback. I submitted an updated version of this patch later. I tried to limit the lines within 80 characters. Regards, Rup -Original Message- From: Marek Vasut [mailto:marek.va...@gmail.com] Sent: Tuesday, June 29, 2010 7:04 AM To: Rupjyoti Sarmah Cc:

Re: [PATCH]460EX on-chip SATA driverkernel 2.6.33resubmission

2010-06-29 Thread Anton Vorontsov
On Tue, Jun 29, 2010 at 03:33:50AM +0200, Marek Vasut wrote: Dne Pá 4. června 2010 14:26:17 Rupjyoti Sarmah napsal(a): This patch enables the on-chip DWC SATA controller of the AppliedMicro processor 460EX. Signed-off-by: Rupjyoti Sarmah rsar...@appliedmicro.com Signed-off-by: Mark

Re: [PATCH] KVM: PPC: Add generic hpte management functions

2010-06-29 Thread Alexander Graf
Avi Kivity wrote: On 06/28/2010 11:55 AM, Alexander Graf wrote: + +static inline u64 kvmppc_mmu_hash_pte(u64 eaddr) { +return hash_64(eaddr PTE_SIZE, HPTEG_HASH_BITS_PTE); +} + +static inline u64 kvmppc_mmu_hash_vpte(u64 vpage) { +return hash_64(vpage 0xfULL,

Re: [PATCH] KVM: PPC: Add generic hpte management functions

2010-06-29 Thread Avi Kivity
On 06/29/2010 03:56 PM, Alexander Graf wrote: Avi Kivity wrote: On 06/28/2010 11:55 AM, Alexander Graf wrote: + +static inline u64 kvmppc_mmu_hash_pte(u64 eaddr) { +return hash_64(eaddrPTE_SIZE, HPTEG_HASH_BITS_PTE); +} + +static inline u64 kvmppc_mmu_hash_vpte(u64

Re: [PATCH] KVM: PPC: Add generic hpte management functions

2010-06-29 Thread Alexander Graf
Avi Kivity wrote: On 06/29/2010 03:56 PM, Alexander Graf wrote: Avi Kivity wrote: On 06/28/2010 11:55 AM, Alexander Graf wrote: + +static inline u64 kvmppc_mmu_hash_pte(u64 eaddr) { +return hash_64(eaddrPTE_SIZE, HPTEG_HASH_BITS_PTE); +} + +static inline u64

Re: [PATCH] KVM: PPC: Add generic hpte management functions

2010-06-29 Thread Avi Kivity
On 06/29/2010 04:06 PM, Alexander Graf wrote: Are we looking at the same link? Looks good to me there. We're probably looking at the same link but looking at different things. I'm whining about static u64 f() { ... } as opposed to the more sober static u64 f()

Re: [PATCH] sched: fix spelling of sibling

2010-06-29 Thread David Howells
Michael Neuling mi...@neuling.org wrote: No logic changes, only spelling. Signed-off-by: Michael Neuling mi...@neuling.org Acked-by: David Howells dhowe...@redhat.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

ftp login problem using wu-ftpd

2010-06-29 Thread Stevan Ignjatovic
Hi all, I ported Linux-2.6.30-rc8 on my custom mpc885 board. The filesystem I am using is jffs2 which I created from eldk-4.2/ppc_8xx/images/ramdisk_image.gz. Linux boots fine and I can telnet to the board but I cannot ftp: # ftp 10.8.1.5 Connected to 10.8.1.5. 220 10.8.1.5 FTP server (Version

kernel init exception

2010-06-29 Thread wilbur.chan
We are porting linux 2.6.21.7 to a powerpc e500mc board , p4080. But something is wrong when loading init file: log: free init memory... init has generated signal 4 but has no handler for it I found it print in _exception --- if (is_init(current)) {

RE: Using devices trees on X86

2010-06-29 Thread Stephen Neuendorffer
-Original Message- From: Stephen Rothwell [mailto:s...@canb.auug.org.au] Sent: Monday, June 28, 2010 7:39 PM To: Stephen Neuendorffer Cc: grant.lik...@secretlab.ca; devicetree-disc...@lists.ozlabs.org; David Miller; sparcli...@vger.kernel.org; Michal Simek;

[PATCH] arch/powerpc/lib/copy_32.S: Use alternate memcpy for MPC512x and MPC52xx

2010-06-29 Thread Steve Deiters
These processors will corrupt data if accessing the local bus with unaligned addresses. This version fixes the typical case of copying from Flash on the local bus by keeping the source address always aligned. Signed-off-by: Steve Deiters stevedeit...@basler.com --- arch/powerpc/lib/copy_32.S |

[RFC Patch 0/1] hw-breakpoint interfaces for BookE - ver II

2010-06-29 Thread K.Prasad
Hi All, Please find a new version of the patch that implements generic hw-breakpoint interfaces for PowerPC BookIII E. While there are several improvements over the previous version in terms of code placement, support for ptrace and fixes for incorrect issues, the patch remains

Re: kernel init exception

2010-06-29 Thread Segher Boessenkool
why there generated a signal 4 in init process? That's SIGILL; sounds like you compiled init with the wrong (sub-)arch or cpu flags. Segher ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

[RFC Patch 1/1] Implement hardware breakpoint interfaces for PowerPC BookE processors

2010-06-29 Thread K.Prasad
Introduce support for generic hw-breakpoint interfaces for PowerPC BookIII E processors. Signed-off-by: K.Prasad pra...@linux.vnet.ibm.com --- arch/powerpc/Kconfig |2 arch/powerpc/include/asm/cputable.h|4

Re: [PATCH] arch/powerpc/lib/copy_32.S: Use alternate memcpy for MPC512x and MPC52xx

2010-06-29 Thread Segher Boessenkool
These processors will corrupt data if accessing the local bus with unaligned addresses. This version fixes the typical case of copying from Flash on the local bus by keeping the source address always aligned. On many platforms accessing ROM as RAM simply doesn't work(*). You shouldn't map

Re: machine check in kernel for a mpc870 board

2010-06-29 Thread Scott Wood
On Tue, Jun 29, 2010 at 12:59:56AM -0700, Shawn Jin wrote: I'm porting a mpc870 board to the powerpc arch. The base is the adder-875 board. My first try to boot the cuImage.my870 is experiencing a machine check. And I have no clue where to look. Any help? = bootm 100 ## Booting image

[PATCH] powerpc/fsl-booke: Fix address issue when using relocatable kernels

2010-06-29 Thread Matthew McClintock
When booting a relocatable kernel it needs to jump to the correct start address, which for BookE parts is usually unchanged regardless of the physical memory offset. Recent changes cause problems with how we calculate the start address, it was always adding the RMO into the start address which is

[PATCH 1/2] powerpc/mpic: Add ability to reset a core via MPIC

2010-06-29 Thread Matthew McClintock
We need the ability to reset cores for use with kexec/kdump for SMP systems. Calling this function with the specific core you want to reset will cause the CPU to spin in reset. Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/sysdev/mpic.c | 18 ++

[PATCH 2/2] powerpc/85xx platorms: kexec for SMP 85xx BookE systems

2010-06-29 Thread Matthew McClintock
Adds support for kexec on 85xx machines for the BookE platform. Including support for SMP machines Based off work from Maxim Uvarov muva...@mvista.com Signed-off-by: Matthew McClintock m...@freescale.com --- To test/use you will need to fetch kexec from GIT and apply the following patch for

CONFIG_NO_HZ causing poor console responsiveness

2010-06-29 Thread Timur Tabi
I'm adding support for a new e500-based board (the P1022DS), and in the process I've discovered that enabling CONFIG_NO_HZ (Tickless System / Dynamic Ticks) causes significant responsiveness problems on the serial console. When I type on the console, I see delays of up to a half-second for almost

[PATCH 1/3] gianfar: Implement workaround for eTSEC74 erratum

2010-06-29 Thread Anton Vorontsov
MPC8313ECE says: If MACCFG2[Huge Frame]=0 and the Ethernet controller receives frames which are larger than MAXFRM, the controller truncates the frames to length MAXFRM and marks RxBD[TR]=1 to indicate the error. The controller also erroneously marks RxBD[TR]=1 if the received frame length is

[PATCH 2/3] gianfar: Implement workaround for eTSEC76 erratum

2010-06-29 Thread Anton Vorontsov
MPC8313ECE says: For TOE=1 huge or jumbo frames, the data required to generate the checksum may exceed the 2500-byte threshold beyond which the controller constrains itself to one memory fetch every 256 eTSEC system clocks. This throttling threshold is supposed to trigger only when the

[PATCH 3/3] gianfar: Implement workaround for eTSEC-A002 erratum

2010-06-29 Thread Anton Vorontsov
MPC8313ECE says: If the controller receives a 1- or 2-byte frame (such as an illegal runt packet or a packet with RX_ER asserted) before GRS is asserted and does not receive any other frames, the controller may fail to set GRSC even when the receive logic is completely idle. Any subsequent

Re: CONFIG_ISA_DMA_API without CONFIG_GENERIC_ISA_DMA

2010-06-29 Thread Timur Tabi
On Thu, Feb 25, 2010 at 3:40 PM, Scott Wood scottw...@freescale.com wrote: Commit fb4f0e8832e0075849b41b65f6bb9fdfa7593b99 (Enable GENERIC_ISA_DMA if FSL_ULI1575 to fix compile issue) tries to deal with this, but it ties it to CONFIG_FSL_ULI1575, which is not selected in a p4080ds-only config.

Re: [linuxppc-release] [PATCH] powerpc: introduce basic support for the Freescale P1022DS reference board

2010-06-29 Thread Kumar Gala
On Jun 29, 2010, at 4:34 PM, Timur Tabi wrote: Introduce basic support for the Freescale P1022DS reference board, based on the Freescale BSP for this board. Details: No DIU video or SSI audio support, no MMC/SD card support, 36-bit and SWIOTLB support enabled, 36-bit DTS only, and

Re: ftp login problem using wu-ftpd

2010-06-29 Thread Wolfgang Denk
Dear Stevan Ignjatovic, In message 1277820991.4257.18.ca...@stevan you wrote: I ported Linux-2.6.30-rc8 on my custom mpc885 board. The filesystem I am using is jffs2 which I created from eldk-4.2/ppc_8xx/images/ramdisk_image.gz. Linux boots fine and I can telnet to the board but I cannot

Re: [PATCH] powerpc: introduce basic support for the Freescale P1022DS reference board

2010-06-29 Thread Kim Phillips
On Tue, 29 Jun 2010 16:34:34 -0500 Timur Tabi ti...@freescale.com wrote: Introduce basic support for the Freescale P1022DS reference board, based on the Freescale BSP for this board. Details: No DIU video or SSI audio support, no MMC/SD card support, 36-bit and SWIOTLB support enabled,

[PATCH 6/9] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-06-29 Thread Fushen Chen
Implements functions to manage Queue Heads and Queue Transfer Descriptors of DWC USB OTG Controller. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/otg/dwc_otg_hcd_queue.c | 584 +++ 1 files changed, 584

[PATCH 3/9] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-06-29 Thread Fushen Chen
Core Interface Layer Common Interrupt handlers provides common interrupt handler for both host controller and peripheral controller. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/otg/dwc_otg_cil_intr.c | 625

[PATCH 5/9] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-06-29 Thread Fushen Chen
Implements DWC OTG USB Host Controller Driver (HCD) interrupt service routine. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/otg/dwc_otg_hcd_intr.c | 1446 1 files changed, 1446 insertions(+), 0

[PATCH 1/9] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-06-29 Thread Fushen Chen
The DWC OTG driver module provides the initialization and cleanup entry points for the DWC OTG USB driver. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- arch/powerpc/boot/dts/kilauea.dts | 15 + drivers/usb/gadget/Kconfig|8 +-

[PATCH 7/9] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-06-29 Thread Fushen Chen
The Peripheral Controller Driver (PCD) is responsible for translating requests from the Function Driver into the appropriate actions on the DWC OTG controller. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/otg/dwc_otg_pcd.c | 1749

Re: [PATCH 1/9] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-06-29 Thread David Brownell
Good -- MUSB won't be the only one. ;) Could you mention a few Linux-enabled chips which include this controller? arch/powerpc/boot/dts/kilauea.dts |   15 + Also, please provide a clean patch that only includes the driver, and split PPC hooks into a separate patch.

Re: [PATCH 4/9] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-06-29 Thread Wolfgang Denk
Dear Fushen Chen, In message 1277846824673-git-send-email-fc...@apm.com you wrote: Implements DWC OTG USB Host Controller Driver (HCD) and interface to USB Host controller Driver framework. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com ---

Re: [PATCH 4/9] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-06-29 Thread David Daney
On 06/29/2010 04:13 PM, Wolfgang Denk wrote: Dear Fushen Chen, In message1277846824673-git-send-email-fc...@apm.com you wrote: Implements DWC OTG USB Host Controller Driver (HCD) and interface to USB Host controller Driver framework. Signed-off-by: Fushen Chenfc...@apm.com Signed-off-by:

Re: [PATCH 1/9] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-06-29 Thread David Daney
On 06/29/2010 03:41 PM, David Brownell wrote: Good -- MUSB won't be the only one. ;) Could you mention a few Linux-enabled chips which include this controller? I can. Some members of the Octeon family: arch/mips/cavium-octeon Although there would probably be some SOC specific glue needed

Re: [PATCH] powerpc: introduce basic support for the Freescale P1022DS reference board

2010-06-29 Thread Kim Phillips
On Tue, 29 Jun 2010 17:39:17 -0600 Tabi Timur-B04825 b04...@freescale.com wrote: Kim Phillips wrote: On Tue, 29 Jun 2010 16:34:34 -0500 Timur Tabiti...@freescale.com wrote: Introduce basic support for the Freescale P1022DS reference board, based on the Freescale BSP for this board.

Re: [linuxppc-release] [PATCH] powerpc: introduce basic support for the Freescale P1022DS reference board

2010-06-29 Thread Tabi Timur-B04825
Kumar Gala wrote: Drop the defconfig and update mpc85xx_{smp_}defconfig to build p1022. What about video and audio support? I'm going to add that later? We don't want to compile the DIU and SSI drivers on all 85xx systems, do we? -- Timur Tabi Linux kernel developer

Re: [PATCH] powerpc: introduce basic support for the Freescale P1022DS reference board

2010-06-29 Thread Tabi Timur-B04825
Kim Phillips wrote: On Tue, 29 Jun 2010 16:34:34 -0500 Timur Tabiti...@freescale.com wrote: Introduce basic support for the Freescale P1022DS reference board, based on the Freescale BSP for this board. Details: No DIU video or SSI audio support, no MMC/SD card support, 36-bit and

Re: kernel init exception

2010-06-29 Thread David Gibson
On Tue, Jun 29, 2010 at 06:51:16PM +0200, Segher Boessenkool wrote: why there generated a signal 4 in init process? That's SIGILL; sounds like you compiled init with the wrong (sub-)arch or cpu flags. Or it's been corrupted during load. -- David Gibson| I'll have my

Re: [linuxppc-release] [PATCH] powerpc: introduce basic support for the Freescale P1022DS reference board

2010-06-29 Thread Olof Johansson
On Tue, Jun 29, 2010 at 04:37:59PM -0700, Tabi Timur-B04825 wrote: Kumar Gala wrote: Drop the defconfig and update mpc85xx_{smp_}defconfig to build p1022. What about video and audio support? I'm going to add that later? We don't want to compile the DIU and SSI drivers on all 85xx

Re: [linuxppc-release] [PATCH] powerpc: introduce basic support for the Freescale P1022DS reference board

2010-06-29 Thread Olof Johansson
On Tue, Jun 29, 2010 at 06:16:08PM -0700, Tabi Timur-B04825 wrote: Olof Johansson wrote: Sure, the family-defconfigs are supposed to be supersets that can boot everywhere. If you're concerned about static kernel size you can always enable it as modules instead. It just seems wrong to add

Re: [linuxppc-release] [PATCH] powerpc: introduce basic support for the Freescale P1022DS reference board

2010-06-29 Thread Tabi Timur-B04825
Olof Johansson wrote: Sure, the family-defconfigs are supposed to be supersets that can boot everywhere. If you're concerned about static kernel size you can always enable it as modules instead. It just seems wrong to add full support for audio and video in the kernel, when it can be used

Re: [PATCH 4/9] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-06-29 Thread Wolfgang Denk
Dear David Daney, In message 4c2a8038.50...@caviumnetworks.com you wrote: Why are you posting this old driver version without trying to sync against our tree which includes a number of fixes - you should know about these. This could be a question with an obvious answer, but which tree

Re: CONFIG_NO_HZ causing poor console responsiveness

2010-06-29 Thread Richard Cochran
On Tue, Jun 29, 2010 at 02:54:17PM -0500, Timur Tabi wrote: I'm adding support for a new e500-based board (the P1022DS), and in the process I've discovered that enabling CONFIG_NO_HZ (Tickless System / Dynamic Ticks) causes significant responsiveness problems on the serial console. When I