RE: [PATCH 1/6] spi/mpc8xxx: refactor the common code for SPI/eSPI controller

2010-07-26 Thread Hu Mingkai-B21284
-Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:14 AM To: Hu Mingkai-B21284; @angua.secretlab.ca@angua.secretlab.ca Cc: linuxppc-...@ozlabs.org; ga...@kernel.crashing.org; Zang Roy-R61911 Subject: Re:

Re: [PATCH 1/6] spi/mpc8xxx: refactor the common code for SPI/eSPI controller

2010-07-26 Thread Grant Likely
On Mon, Jul 26, 2010 at 12:18 AM, Hu Mingkai-B21284 b21...@freescale.com wrote: -Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:14 AM To: Hu Mingkai-B21284; @angua.secretlab.ca@angua.secretlab.ca Cc:

RE: [PATCH 2/6] eSPI: add eSPI controller support

2010-07-26 Thread Hu Mingkai-B21284
-Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:25 AM To: Hu Mingkai-B21284 Cc: linuxppc-...@ozlabs.org; ga...@kernel.crashing.org; Zang Roy-R61911 Subject: Re: [PATCH 2/6] eSPI: add eSPI controller

RE: [PATCH 1/6] spi/mpc8xxx: refactor the common code for SPI/eSPI controller

2010-07-26 Thread Zang Roy-R61911
-Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:14 AM To: Hu Mingkai-B21284; @angua.secretlab.ca@angua.secretlab.ca Cc: linuxppc-...@ozlabs.org; ga...@kernel.crashing.org; Zang Roy-R61911 Subject: Re:

RE: [PATCH 4/6] mtd: m25p80: change the read function to read page by page

2010-07-26 Thread Hu Mingkai-B21284
-Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:30 AM To: Hu Mingkai-B21284 Cc: linuxppc-...@ozlabs.org; ga...@kernel.crashing.org; Zang Roy-R61911 Subject: Re: [PATCH 4/6] mtd: m25p80: change the read

RE: [PATCH 5/6] powerpc/of: add eSPI controller dts bindings

2010-07-26 Thread Hu Mingkai-B21284
-Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:34 AM To: Hu Mingkai-B21284 Cc: linuxppc-...@ozlabs.org; ga...@kernel.crashing.org; Zang Roy-R61911 Subject: Re: [PATCH 5/6] powerpc/of: add eSPI

RE: [PATCH 6/6] DTS: add SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board

2010-07-26 Thread Hu Mingkai-B21284
-Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:35 AM To: Hu Mingkai-B21284 Cc: linuxppc-...@ozlabs.org; ga...@kernel.crashing.org; Zang Roy-R61911 Subject: Re: [PATCH 6/6] DTS: add SPI

RE: [PATCH 3/6] of/spi: add support to parse the SPI flash's partitions

2010-07-26 Thread Hu Mingkai-B21284
-Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:28 AM To: Hu Mingkai-B21284 Cc: linuxppc-...@ozlabs.org; ga...@kernel.crashing.org; Zang Roy-R61911 Subject: Re: [PATCH 3/6] of/spi: add support to parse

Re: [PATCH 1/6] spi/mpc8xxx: refactor the common code for SPI/eSPI controller

2010-07-26 Thread Grant Likely
On Mon, Jul 26, 2010 at 1:07 AM, Zang Roy-R61911 r61...@freescale.com wrote: -Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:14 AM To: Hu Mingkai-B21284; @angua.secretlab.ca@angua.secretlab.ca Cc:

Re: [PATCH 3/6] of/spi: add support to parse the SPI flash's partitions

2010-07-26 Thread Grant Likely
On Mon, Jul 26, 2010 at 1:25 AM, Hu Mingkai-B21284 b21...@freescale.com wrote: -Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:28 AM To: Hu Mingkai-B21284 Cc: linuxppc-...@ozlabs.org;

Re: [PATCH 4/6] mtd: m25p80: change the read function to read page by page

2010-07-26 Thread Grant Likely
On Mon, Jul 26, 2010 at 1:33 AM, Hu Mingkai-B21284 b21...@freescale.com wrote: -Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:30 AM To: Hu Mingkai-B21284 Cc: linuxppc-...@ozlabs.org;

Re: [PATCH 6/6] DTS: add SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board

2010-07-26 Thread Grant Likely
On Mon, Jul 26, 2010 at 1:39 AM, Hu Mingkai-B21284 b21...@freescale.com wrote: -Original Message- From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 8:35 AM To: Hu Mingkai-B21284 Cc: linuxppc-...@ozlabs.org;

RE: [PATCH 3/6] of/spi: add support to parse the SPI flash's partitions

2010-07-26 Thread Hu Mingkai-B21284
-Original Message- From: glik...@secretlab.ca [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely Sent: Monday, July 26, 2010 3:53 PM To: Hu Mingkai-B21284 Cc: linuxppc-...@ozlabs.org; ga...@kernel.crashing.org; Zang Roy-R61911 Subject: Re: [PATCH 3/6] of/spi: add support

RE: Timestamp in PowerPC 440

2010-07-26 Thread Jenkins, Clive
I have ported Linux 2.6 to PowerPC 440. Could you tell me how it is possible to access the timebase register (TBU, TBL) from user space (in Linux) because I want to measure the time of an application that runs in Linux? I just grabbed this code from the kernel (you can put the macro

Re: [PATCH] PCI: MSI: Restore read_msi_msg_desc(); add get_cached_msi_msg_desc()

2010-07-26 Thread Michael Ellerman
On Fri, 2010-07-23 at 14:56 +0100, Ben Hutchings wrote: commit 2ca1af9aa3285c6a5f103ed31ad09f7399fc65d7 PCI: MSI: Remove unsafe and unnecessary hardware access changed read_msi_msg_desc() to return the last MSI message written instead of reading it from the device, since it may be called while

Re: [PATCH] powerpc: Add vmcoreinfo symbols to allow makdumpfile to filter core files properly

2010-07-26 Thread Neil Horman
On Tue, Jul 13, 2010 at 09:46:09AM -0400, Neil Horman wrote: Hey all- About 2 years ago now, I sent this patch upstream to allow makedumpfile to properly filter cores on ppc64: http://www.mail-archive.com/ke...@lists.infradead.org/msg02426.html It got acks from the kexec folks so I

Please pull 'next' branch of 4xx tree

2010-07-26 Thread Josh Boyer
Hi Ben, A few small fixes for 4xx. Please pull. josh The following changes since commit cccd23428347251713b643d4bc5edb610308fd49: powerpc: Removing dead CONFIG_SMP_750 (2010-07-09 11:28:38 +1000) are available in the git repository at:

Memory Mapping a char array in User Space

2010-07-26 Thread Ravi Gupta
Hi, I am new to linux device driver development and I'm trying to learn the memory mapping. Currently I have written a simple device driver(major number 251 and minor number 0) and in its mmap(struct file *file, struct vm_area_struct *vma) function, I am trying to memory map a global character

Re: [PATCH 4/8] v3 Allow memory_block to span multiple memory sections

2010-07-26 Thread Nathan Fontenot
On 07/20/2010 02:18 PM, Dave Hansen wrote: On Mon, 2010-07-19 at 22:55 -0500, Nathan Fontenot wrote: +static int add_memory_section(int nid, struct mem_section *section, + unsigned long state, enum mem_add_context context) +{ + struct memory_block *mem; +

Re: [PATCH] powerpc: ONLINE to OFFLINE CPU state transition during removal

2010-07-26 Thread Nathan Fontenot
On 07/22/2010 11:13 PM, Vaidyanathan Srinivasan wrote: * Robert Jennings r...@linux.vnet.ibm.com [2010-07-22 21:43:44]: If a CPU remove is attempted using the 'release' interface on hardware which supports extended cede, the CPU will be put in the INACTIVE state rather than the OFFLINE state

Re: Memory Mapping a char array in User Space

2010-07-26 Thread David Howells
Ravi Gupta dceravigu...@gmail.com wrote: My device gets memory map successfully but when I tried to read from it I get garbage value. Is there something that I am missing? For starters, you really should allocate a page for your buffer rather than using kernel static data. mmap() allows

Re: [PATCH 1/2 v1.03] Add support for DWC OTG HCD function.

2010-07-26 Thread Greg KH
On Mon, Jul 26, 2010 at 11:49:41AM -0700, Fushen Chen wrote: This adds support for the USB host controller on APM SoC using Synopsys Designware IP. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com Can I get some acks from the other developers who have

Re: [PATCH 1/2 v1.03] Add support for DWC OTG HCD function.

2010-07-26 Thread David Daney
On 07/26/2010 02:37 PM, Greg KH wrote: [...] +/* + * DesignWare HS OTG controller driver + * + * Author: Mark Miesfeldmmiesf...@apm.com + * + * Based on versions provided by APM and Synopsis which are: + * Copyright (C) 2009-2010 AppliedMicro(www.apm.com) + * Modified by Stefan

[PATCH v3] of: Create asm-generic/of.h and provide default of_node_to_nid()

2010-07-26 Thread Grant Likely
of_node_to_nid() is only relevant in a few architectures. Don't force everyone to implement it anyway. This patch also adds asm-generic/of.h which will be used to contain other overrideable symbols. Signed-off-by: Grant Likely grant.lik...@secretlab.ca --- Changes in v3: don't use asm-generic,

Re: [PATCH v3] of: Create asm-generic/of.h and provide default of_node_to_nid()

2010-07-26 Thread Grant Likely
On Mon, Jul 26, 2010 at 4:04 PM, Grant Likely grant.lik...@secretlab.ca wrote: of_node_to_nid() is only relevant in a few architectures.  Don't force everyone to implement it anyway.  This patch also adds asm-generic/of.h which will be used to contain other overrideable symbols.

Re: [PATCH 1/2 v1.03] Add support for DWC OTG HCD function.

2010-07-26 Thread Greg KH
On Mon, Jul 26, 2010 at 02:55:21PM -0700, David Daney wrote: On 07/26/2010 02:37 PM, Greg KH wrote: [...] +/* + * DesignWare HS OTG controller driver + * + * Author: Mark Miesfeldmmiesf...@apm.com + * + * Based on versions provided by APM and Synopsis which are: + * Copyright (C)

Re: [PATCH 1/2 v1.03] Add support for DWC OTG HCD function.

2010-07-26 Thread Greg KH
On Mon, Jul 26, 2010 at 03:05:13PM -0700, Greg KH wrote: Please, someone needs to go run this past the Synopsys lawyers (yeah, sorry, that's horrible to do, but it needs to be done to get it correct.) Because of this, I'd like to get a lawyer's signed-off-by on the code as well just to

Re: [PATCH v3] of: Create asm-generic/of.h and provide default of_node_to_nid()

2010-07-26 Thread Sam Ravnborg
On Mon, Jul 26, 2010 at 04:04:55PM -0600, Grant Likely wrote: of_node_to_nid() is only relevant in a few architectures. Don't force everyone to implement it anyway. This patch also adds asm-generic/of.h which will be used to contain other overrideable symbols. Signed-off-by: Grant Likely

Re: [RFC][PATCH] kconfig: implement select with values

2010-07-26 Thread Sam Ravnborg
On Tue, Jul 20, 2010 at 04:37:06AM +1000, Stephen Rothwell wrote: This is a fairly brute force approach to allowing a Kconfig select to specify an excplicit value for the selected config sybmol. The syntax of select is changed to: select symbol [expr] [if expr] The approach taken

Re: [PATCH v3] of: Create asm-generic/of.h and provide default of_node_to_nid()

2010-07-26 Thread Grant Likely
On Mon, Jul 26, 2010 at 4:26 PM, Sam Ravnborg s...@ravnborg.org wrote: On Mon, Jul 26, 2010 at 04:04:55PM -0600, Grant Likely wrote: of_node_to_nid() is only relevant in a few architectures.  Don't force everyone to implement it anyway.  This patch also adds asm-generic/of.h which will be used

Re: [RFC][PATCH] kconfig: implement select with values

2010-07-26 Thread Grant Likely
Hi Sam, On Mon, Jul 26, 2010 at 4:17 PM, Sam Ravnborg s...@ravnborg.org wrote: On Tue, Jul 20, 2010 at 04:37:06AM +1000, Stephen Rothwell wrote: This is a fairly brute force approach to allowing a Kconfig select to specify an excplicit value for the selected config sybmol. The syntax of

Re: [PATCH v3] of: Create asm-generic/of.h and provide default of_node_to_nid()

2010-07-26 Thread David Miller
From: Grant Likely grant.lik...@secretlab.ca Date: Mon, 26 Jul 2010 16:42:20 -0600 It protects against some later include file doing a #define of_node_to_nid and thus resulting in an inconsistent definition. If some code tries to do this then the preprocessor will complain. This is the

Re: [PATCH v3] of: Create asm-generic/of.h and provide default of_node_to_nid()

2010-07-26 Thread Grant Likely
On Mon, Jul 26, 2010 at 4:48 PM, David Miller da...@davemloft.net wrote: From: Grant Likely grant.lik...@secretlab.ca Date: Mon, 26 Jul 2010 16:42:20 -0600 It protects against some later include file doing a #define of_node_to_nid and thus resulting in an inconsistent definition.  If some

Re: [PATCH 1/2 v1.03] Add support for DWC OTG HCD function.

2010-07-26 Thread Feng Kan
Hi Greg: We are having our legal revisit this again. What would you advise us to do at this point? Disclose the agreement or have someone with legal authority reply this thread. Perhaps something in the header that states Applied Micro verified with Synopsys to use this code for GPL purpose.

Re: [PATCH 1/2 v1.03] Add support for DWC OTG HCD function.

2010-07-26 Thread Greg KH
On Mon, Jul 26, 2010 at 04:05:49PM -0700, Feng Kan wrote: Hi Greg: We are having our legal revisit this again. What would you advise us to do at this point? I thought I was very clear below as to what is needed. Disclose the agreement or have someone with legal authority reply this

Re: [PATCH v3] of: Create asm-generic/of.h and provide default of_node_to_nid()

2010-07-26 Thread David Miller
From: Grant Likely grant.lik...@secretlab.ca Date: Mon, 26 Jul 2010 16:51:01 -0600 Indeed. I looked at it briefly, but it wasn't immediately clear what the impact would be to switch powerpc over to -1, and it looked to me like sparc depends on -1 to signify no node association. Kernel wide,

Re: [PATCH v3] of: Create asm-generic/of.h and provide default of_node_to_nid()

2010-07-26 Thread Grant Likely
On Mon, Jul 26, 2010 at 7:38 PM, David Miller da...@davemloft.net wrote: From: Grant Likely grant.lik...@secretlab.ca Date: Mon, 26 Jul 2010 16:51:01 -0600 Indeed.  I looked at it briefly, but it wasn't immediately clear what the impact would be to switch powerpc over to -1, and it looked to

Re: [PATCH 4/8] v3 Allow memory_block to span multiple memory sections

2010-07-26 Thread Dave Hansen
On Fri, 2010-07-23 at 22:09 -0500, Nathan Fontenot wrote: If we add a lock should I submit it as part of this patchset? or submit it as a follow-on? It should probably be at the beginning of the patch set. We don't want to have a case where your set introduces races that we _need_ a later

Where are logical memory block regions setup?

2010-07-26 Thread Rick Ramstetter
Hi all, Where can I find the code that sets values in lmb.reserved.region[i]? This is in reference to 2.6.27's arch/powerpc/mm/mem.c and include/linux/lmb.h I'm looking specifically for code that sets lmb_region's region.size and region.base. Thank you, -Rick -- J. Rick Ramstetter

Re: [PATCH v3 0/7] Fixup booting with device trees and uImage/elf on ppc32

2010-07-26 Thread Simon Horman
[Cced linuxppc-dev] On Tue, Jul 20, 2010 at 11:42:57PM -0500, Matthew McClintock wrote: This patch series adds full support for booting with a flat device tree with either uImage or elf file formats. Kexec and Kdump should work, and you should also be able to use ramdisks or reuse your current

Re: [PATCH v3 0/7] Fixup booting with device trees and uImage/elf on ppc32

2010-07-26 Thread Maxim Uvarov
2010/7/27 Simon Horman ho...@verge.net.au [Cced linuxppc-dev] On Tue, Jul 20, 2010 at 11:42:57PM -0500, Matthew McClintock wrote: This patch series adds full support for booting with a flat device tree with either uImage or elf file formats. Kexec and Kdump should work, and you should

Re: [PATCH v3 0/7] Fixup booting with device trees and uImage/elf on ppc32

2010-07-26 Thread Matthew McClintock
On Jul 26, 2010, at 9:55 PM, Simon Horman wrote: [Cced linuxppc-dev] On Tue, Jul 20, 2010 at 11:42:57PM -0500, Matthew McClintock wrote: This patch series adds full support for booting with a flat device tree with either uImage or elf file formats. Kexec and Kdump should work, and you