Re: [PATCH] windfarm: Convert to a new-style i2c drivers

2009-05-01 Thread Paul Mackerras
Jean Delvare writes: > The legacy i2c binding model is going away soon, so convert the > macintosh windfarm drivers to the new model or they will break. All works OK on my quad G5 (PowerMac11,2). Tested-by: Paul Mackerras Paul. ___ Linuxppc-dev maili

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread Andreas Schwab
"H. Peter Anvin" writes: > Sam Ravnborg wrote: >>> >>> What's wrong with @? >> arm does not support it :-( >> I recall it denote a comment in arm assembler. >> >> I could do some magic to detect the ARM case but I'm reluctant to do so. >> I could also ignore the arm issue for now as it is not us

Re: [PATCH] therm_adt746x: Convert to a new-style i2c driver

2009-05-01 Thread Paul Mackerras
Jean Delvare writes: > The legacy i2c binding model is going away soon, so convert the ppc > therm_adt746x driver to the new model or it will break. > > Signed-off-by: Jean Delvare Seems to work OK on my powerbook (PowerBook5,4). Tested-by: Paul Mackerras Paul. __

[PATCH 6/6] powerpc/85xx: Add STMicro M25P40 serial flash support for MPC8569E-MDS

2009-05-01 Thread Anton Vorontsov
For serial flash support we need to: - Add QE Par IO Bank E device tree node, a GPIO from this bank is used for SPI chip-select line; - Add serial-flash node; - Add proper module alias into of/base.c. Signed-off-by: Anton Vorontsov --- arch/powerpc/boot/dts/mpc8569mds.dts | 26 +

[PATCH 5/6] powerpc/85xx: Enable Serial RapidIO for MPC85xx MDS boards

2009-05-01 Thread Anton Vorontsov
Select HAS_RAPIDIO symbol and add rio nodes for MPC8568E-MDS and MPC8569E-MDS boards. Signed-off-by: Anton Vorontsov --- arch/powerpc/boot/dts/mpc8568mds.dts | 17 + arch/powerpc/boot/dts/mpc8569mds.dts | 17 + arch/powerpc/platforms/85xx/Kconfig |1 + 3

[PATCH 4/6] powerpc/85xx: Add eSDHC support for MPC8569E-MDS boards

2009-05-01 Thread Anton Vorontsov
Note that eSDHC and DUART0 are mutually exclusive on MPC8569E-MDS boards. Default option is DUART0, so eSDHC is disabled by default. U-Boot will fixup device tree if eSDHC should be used instead of DUART0. Signed-off-by: Anton Vorontsov --- arch/powerpc/boot/dts/mpc8569mds.dts | 10 ++

[PATCH 3/6] powerpc/85xx: Fix reg and interrupts for mpc8569emds' localbus, add NAND

2009-05-01 Thread Anton Vorontsov
This patch fixes bogus reg = <> property in the localbus node, and fixes interrupt property (should be "interrupts"). Also add node for NAND support. Signed-off-by: Anton Vorontsov --- arch/powerpc/boot/dts/mpc8569mds.dts | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) dif

[PATCH 2/6] powerpc/85xx: Fix mpc8569emds' crypto node to include SNOW unit

2009-05-01 Thread Anton Vorontsov
fsl,exec-units-mask should be 0xbfe to include SNOW unit in MPC8569E's security engine. Signed-off-by: Anton Vorontsov --- arch/powerpc/boot/dts/mpc8569mds.dts |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/boot/dts/mpc8569mds.dts b/arch/powerpc/boot/dts/

[PATCH 1/6] powerpc/85xx: Add PCI IDs for MPC8569 family processors

2009-05-01 Thread Anton Vorontsov
This patch adds PCI IDs for MPC8569 and MPC8569E processors, plus adds appropriate quirks for these IDs, and thus makes PCI-E actually work on MPC8569E-MDS boards. Signed-off-by: Anton Vorontsov --- arch/powerpc/sysdev/fsl_pci.c |2 ++ include/linux/pci_ids.h |2 ++ 2 files changed

[PATCH 0/6] Some fixes and enhancements for MPC8569E-MDS boards

2009-05-01 Thread Anton Vorontsov
Hi all, Here are few fixes and improvements for MPC8569E-MDS boards. Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc

Re: [PATCH 1/3] powerpc, Makefile: Make it possible to safely select CONFIG_FRAME_POINTER

2009-05-01 Thread Anton Vorontsov
On Sun, Apr 05, 2009 at 11:07:56PM +0200, Sam Ravnborg wrote: > On Fri, Mar 20, 2009 at 07:44:29PM +0300, Anton Vorontsov wrote: > > This patch introduces ARCH_HAS_NORMAL_FRAME_POINTERS Kconfig symbol. > > When defined, the top level Makefile won't add -fno-omit-frame-pointer > > cflag (the flag is

[PATCH 3/3] tracing: Tracers that use CALLER_ADDR macros should select FRAME_POINTER

2009-05-01 Thread Anton Vorontsov
Irqsoff, switch and preempt tracers use CALLER_ADDR macros, so they should select FRAME_POINTER. Otherwise traces are meaningless. Signed-off-by: Anton Vorontsov --- kernel/trace/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/kernel/trace/Kconfig b/kernel/trac

[PATCH 2/3] powerpc: Remove -fno-omit-frame-pointer workarounds

2009-05-01 Thread Anton Vorontsov
The workarounds aren't needed any longer since the top level Makefile doesn't pass -fno-omit-frame-pointer cflag for PowerPC builds. Signed-off-by: Anton Vorontsov --- arch/powerpc/Makefile|5 - arch/powerpc/kernel/Makefile | 12 ++-- arch/powerp

[PATCH 1/3] powerpc, Makefile: Make it possible to safely select CONFIG_FRAME_POINTER

2009-05-01 Thread Anton Vorontsov
This patch introduces HAVE_NORMAL_FRAME_POINTER Kconfig symbol. When defined, the top level Makefile won't add -fno-omit-frame-pointer cflag (the flag is useless for PowerPC kernels, and also makes gcc generate wrong code). Also move ARCH_WANT_FRAME_POINTERS's help text. Signed-off-by: Anton Voro

[PATCH v5 0/3] Tracers vs. CALLER_ADDR on PowerPC

2009-05-01 Thread Anton Vorontsov
Hi all, In v5 there are few fixes suggested by Sam Ravnborg: - Use 8 spaces for indentation in Makefile; - Rename ARCH_HAS_NORMAL_FRAME_POINTERS to HAVE_NORMAL_FRAME_POINTER; Thanks, --- Preface for those who don't know or forgot what the problem is: Gcc frame pointers do nothing useful on P

Re: [PATCH 1/2] Added support for Designware SATA controller driver

2009-05-01 Thread Jeff Garzik
Wolfgang Denk wrote: Dear Feng Kan, In message <1241211767-32697-1-git-send-email-f...@amcc.com> you wrote: This adds support for the Designware SATA controller. Signed-off-by: Feng Kan Signed-off-by: Mark Miesfeld --- drivers/ata/Kconfig| 10 + drivers/ata/Makefile |1 + driver

Re: [PATCH 1/2] Added support for Designware SATA controller driver

2009-05-01 Thread Wolfgang Denk
Dear Feng Kan, In message <1241211767-32697-1-git-send-email-f...@amcc.com> you wrote: > This adds support for the Designware SATA controller. > > Signed-off-by: Feng Kan > Signed-off-by: Mark Miesfeld > --- > drivers/ata/Kconfig| 10 + > drivers/ata/Makefile |1 + > drivers/ata/sa

Re: [microblaze-uclinux] Re: [PATCH 6/6] Add support for __read_mostly to linux/cache.h

2009-05-01 Thread Edgar E. Iglesias
On Fri, May 01, 2009 at 09:52:18AM -0400, Christoph Lameter wrote: > On Fri, 1 May 2009, Sam Ravnborg wrote: > > > Are there any specific reason why we do not support read_mostly on all > > architectures? > > Not that I know of. > > > read_mostly is about grouping rarely written data together >

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread H. Peter Anvin
Sam Ravnborg wrote: >> >> What's wrong with @? > arm does not support it :-( > I recall it denote a comment in arm assembler. > > I could do some magic to detect the ARM case but I'm reluctant to do so. > I could also ignore the arm issue for now as it is not used by arm, > but that strikes me as

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread Sam Ravnborg
On Fri, May 01, 2009 at 10:18:20AM -0700, H. Peter Anvin wrote: > Sam Ravnborg wrote: > > On Fri, May 01, 2009 at 09:33:13AM -0700, H. Peter Anvin wrote: > >> Tim Abbott wrote: > >>> On Fri, 1 May 2009, Sam Ravnborg wrote: > >>> > On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: > >

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread H. Peter Anvin
Sam Ravnborg wrote: > On Fri, May 01, 2009 at 09:33:13AM -0700, H. Peter Anvin wrote: >> Tim Abbott wrote: >>> On Fri, 1 May 2009, Sam Ravnborg wrote: >>> On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: > +#define __PAGE_ALIGNED_DATA .section ".data.page_aligned", "aw", >

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread Sam Ravnborg
On Fri, May 01, 2009 at 09:33:13AM -0700, H. Peter Anvin wrote: > Tim Abbott wrote: > > On Fri, 1 May 2009, Sam Ravnborg wrote: > > > >> On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: > >>> +#define __PAGE_ALIGNED_DATA .section ".data.page_aligned", "aw", > >>> @progbits > >>> +

Re: [PATCH 6/6 v2] powerpc/85xx: Add MPC8569MDS board support

2009-05-01 Thread Kumar Gala
On May 1, 2009, at 2:40 PM, Haiying Wang wrote: Signed-off-by: Haiying Wang --- v2 change: rename "num-riscs" to "fsl,qe-num-riscs", and "num-snums" to "fsl,qe-num-snums". arch/powerpc/boot/dts/mpc8569mds.dts | 514 + arch/powerpc/platforms/85xx/mpc85xx_

Re: [PATCH 5/6 v2] net/ucc_geth: Assign six threads to Rx for UEC

2009-05-01 Thread Kumar Gala
On May 1, 2009, at 2:40 PM, Haiying Wang wrote: in the case the QE has 46 SNUMs for the threads to support four UCC Ethernet at 1000Base-T simultaneously. Signed-off-by: Haiying Wang --- v2 change: Add comments for the Rx threads change. drivers/net/ucc_geth.c | 10 +- 1 files chan

Re: [PATCH] powerpc/85xx: add new qe properties for QE based chips

2009-05-01 Thread Kumar Gala
On May 1, 2009, at 2:40 PM, Haiying Wang wrote: Add fsl,qe-num-riscs and fsl,qe-num-snums to all the devices trees which have qe node. Signed-off-by: Haiying Wang --- arch/powerpc/boot/dts/mpc832x_mds.dts |2 ++ arch/powerpc/boot/dts/mpc832x_rdb.dts |2 ++ arch/powerpc/boot/dts/mpc836

Re: [PATCH 4/6 v2] powerpc/qe: update QE Serial Number

2009-05-01 Thread Kumar Gala
On May 1, 2009, at 2:40 PM, Haiying Wang wrote: The latest QE chip may have more Serial Number(SNUM)s of thread to use. We will get the number of SNUMs from device tree by reading the new property "fsl,qe-num-snums", and set 28 as the default number of SNUMs so that it is compatible with th

Re: [PATCH 2/6 v2] powerpc/qe: update risc allocation for QE

2009-05-01 Thread Kumar Gala
On May 1, 2009, at 3:15 PM, Timur Tabi wrote: On Fri, May 1, 2009 at 2:40 PM, Haiying Wang > wrote: Change the RISC allocation to macros instead of enum, add function to read the number of risc engines from the new property "fsl,qe-num-riscs" under qe node in dts. Add new property "fsl,qe-n

Re: [PATCH 5/6 v2] net/ucc_geth: Assign six threads to Rx for UEC

2009-05-01 Thread David Miller
From: Kumar Gala Date: Fri, 1 May 2009 16:56:19 -0500 > > On May 1, 2009, at 2:40 PM, Haiying Wang wrote: > >> in the case the QE has 46 SNUMs for the threads to support four UCC >> Ethernet at >> 1000Base-T simultaneously. >> >> Signed-off-by: Haiying Wang >> --- >> v2 change: Add comments fo

[PATCH 2/2] Added AMCC 460EX Canyonlands SATA support.

2009-05-01 Thread Feng Kan
This adds the OF platform support for the AMCC 460EX Canyonlands SATA port. Signed-off-by: Feng Kan --- arch/powerpc/boot/dts/canyonlands.dts |8 ++ arch/powerpc/platforms/44x/Makefile|4 + arch/powerpc/platforms/44x/amcc-sata.c | 125 3 files chang

Re: [PATCH 5/6 v2] net/ucc_geth: Assign six threads to Rx for UEC

2009-05-01 Thread Kumar Gala
On May 1, 2009, at 2:40 PM, Haiying Wang wrote: in the case the QE has 46 SNUMs for the threads to support four UCC Ethernet at 1000Base-T simultaneously. Signed-off-by: Haiying Wang --- v2 change: Add comments for the Rx threads change. drivers/net/ucc_geth.c | 10 +- 1 files chan

Re: [PATCH v6] introduce macro spin_event_timeout()

2009-05-01 Thread Timur Tabi
Sean MacLennan wrote: > Would cpu_relax be a good thing to put here? > > Something like: > > while (!(rc = (condition)) && (tb_ticks_since(__start) <= __loops)) \ > if (delay) \ > udelay(delay); \ > else \ > cpu_relax(); \ > I had that at one point, but

[PATCH 0/2] Added support for Designware SATA controller driver

2009-05-01 Thread Feng Kan
Fixed comment issue. Change goto statements to lower case. Also fixed the Kconfig problem. I don't know if I need to add Stefan Roese for the signoff, since he did the of platform part. Stefan, if you see this please let me know. Feng Kan ___ Linuxppc-d

Re: [spi-devel-general] [PATCH 9/9] spi_mpc8xxx: s/83xx/8xxx/g

2009-05-01 Thread Grant Likely
On Thu, Apr 30, 2009 at 5:48 PM, Anton Vorontsov wrote: > Since we renamed the file, we might want to rename the file > internals too. > > Though we don't bother with changing platform driver name and > platform module alias. The stuff is legacy and hopefully we'll > remove it soon. > I'd say no

Re: [PATCH 1/2] Added support for Designware SATA controller driver

2009-05-01 Thread Scott Wood
Feng Kan wrote: This adds support for the Designware SATA controller. Signed-off-by: Feng Kan Signed-off-by: Mark Miesfeld --- drivers/ata/Kconfig| 10 + drivers/ata/Makefile |1 + drivers/ata/sata_dwc.c | 2053 3 files changed, 206

Re: [PATCH 2/2] Added AMCC 460EX Canyonlands SATA support.

2009-05-01 Thread Grant Likely
On Fri, May 1, 2009 at 3:02 PM, Feng Kan wrote: > This adds the OF platform support for the AMCC 460EX Canyonlands SATA port. > > Signed-off-by: Feng Kan > --- >  arch/powerpc/boot/dts/canyonlands.dts  |    8 ++ >  arch/powerpc/platforms/44x/Makefile    |    4 + >  arch/powerpc/platforms/44x/amcc

Re: [PATCH v6] introduce macro spin_event_timeout()

2009-05-01 Thread Sean MacLennan
On Mon, 27 Apr 2009 14:05:44 -0500 "Timur Tabi" wrote: > +#define spin_event_timeout(condition, timeout, delay, > rc) \ > +{ \ > + unsigned long __loops = tb_ticks_per_usec * > timeout;

Re: [PATCH v6] introduce macro spin_event_timeout()

2009-05-01 Thread Timur Tabi
Kumar Gala wrote: > I wouldn't call it spin_event_timeout as its a bit too generic of a > name for something that is arch specific. Well, I'm hoping it won't be arch-specific forever. I'd like to see other architectures implement something like tb_ticks_per_usec. I'm only tackling PowerPC for

Re: [PATCH v6] introduce macro spin_event_timeout()

2009-05-01 Thread Scott Wood
Kumar Gala wrote: I wouldn't call it spin_event_timeout as its a bit too generic of a name for something that is arch specific. The concept is not arch-specific -- ideally, other architectures could add their own implementations (or it could be made non-architecture-specific in the future).

Re: [PATCH v6] introduce macro spin_event_timeout()

2009-05-01 Thread Kumar Gala
On Apr 27, 2009, at 2:05 PM, Timur Tabi wrote: The macro spin_event_timeout() takes a condition and timeout value (in microseconds) as parameters. It spins until either the condition is true or the timeout expires. It returns the result of the condition when the loop was terminated. Thi

Re: [PATCH 5/6 v2] net/ucc_geth: Assign six threads to Rx for UEC

2009-05-01 Thread Timur Tabi
On Fri, May 1, 2009 at 2:40 PM, Haiying Wang wrote: > in the case the QE has 46 SNUMs for the threads to support four UCC Ethernet > at > 1000Base-T simultaneously. > > Signed-off-by: Haiying Wang Acked-by: Timur Tabi FYI, this should have been cross-posted to the netdev mailing list. -- Ti

Re: [PATCH 2/6 v2] powerpc/qe: update risc allocation for QE

2009-05-01 Thread Timur Tabi
On Fri, May 1, 2009 at 2:40 PM, Haiying Wang wrote: > Change the RISC allocation to macros instead of enum, add function to read the > number of risc engines from the new property "fsl,qe-num-riscs" under qe node > in dts. Add new property "fsl,qe-num-riscs" description in qe.txt > > Signed-off-by

Re: [PATCH 4/6 v2] powerpc/qe: update QE Serial Number

2009-05-01 Thread Timur Tabi
On Fri, May 1, 2009 at 2:40 PM, Haiying Wang wrote: > The latest QE chip may have more Serial Number(SNUM)s of thread to use. We > will > get the number of SNUMs from device tree by reading the new property > "fsl,qe-num-snums", and set 28 as the default number of SNUMs so that it is > compatible

Re: Should ppc32 use CONFIG_HIGHPTE or not?

2009-05-01 Thread Benjamin Herrenschmidt
On Fri, 2009-05-01 at 11:37 -0700, Dave Hansen wrote: .../... > So, it looks like ppc32 never actually allocates highmem pte pages, but > it *does* go to the trouble of at least trying to kmap_atomic() them. > Should we just give ppc32 unconditional direct-mapped ptes? Or, should > we remove th

Re: [PATCH] powerpc/85xx: add new qe properties for QE based chips

2009-05-01 Thread Timur Tabi
On Fri, May 1, 2009 at 2:40 PM, Haiying Wang wrote: > Add fsl,qe-num-riscs and fsl,qe-num-snums to all the devices trees which have > qe > node. > > Signed-off-by: Haiying Wang Acked-by: Timur Tabi -- Timur Tabi Linux kernel developer at Freescale

[PATCH] powerpc/85xx: add new qe properties for QE based chips

2009-05-01 Thread Haiying Wang
Add fsl,qe-num-riscs and fsl,qe-num-snums to all the devices trees which have qe node. Signed-off-by: Haiying Wang --- arch/powerpc/boot/dts/mpc832x_mds.dts |2 ++ arch/powerpc/boot/dts/mpc832x_rdb.dts |2 ++ arch/powerpc/boot/dts/mpc836x_mds.dts |2 ++ arch/powerpc/boot/dts/mpc836x_

[PATCH 6/6 v2] powerpc/85xx: Add MPC8569MDS board support

2009-05-01 Thread Haiying Wang
Signed-off-by: Haiying Wang --- v2 change: rename "num-riscs" to "fsl,qe-num-riscs", and "num-snums" to "fsl,qe-num-snums". arch/powerpc/boot/dts/mpc8569mds.dts | 514 + arch/powerpc/platforms/85xx/mpc85xx_mds.c | 23 ++ 2 files changed, 537 insertions(+), 0

[PATCH 4/6 v2] powerpc/qe: update QE Serial Number

2009-05-01 Thread Haiying Wang
The latest QE chip may have more Serial Number(SNUM)s of thread to use. We will get the number of SNUMs from device tree by reading the new property "fsl,qe-num-snums", and set 28 as the default number of SNUMs so that it is compatible with the old QE chips' device trees which don't have this new p

[PATCH 5/6 v2] net/ucc_geth: Assign six threads to Rx for UEC

2009-05-01 Thread Haiying Wang
in the case the QE has 46 SNUMs for the threads to support four UCC Ethernet at 1000Base-T simultaneously. Signed-off-by: Haiying Wang --- v2 change: Add comments for the Rx threads change. drivers/net/ucc_geth.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/d

[PATCH 2/6 v2] powerpc/qe: update risc allocation for QE

2009-05-01 Thread Haiying Wang
Change the RISC allocation to macros instead of enum, add function to read the number of risc engines from the new property "fsl,qe-num-riscs" under qe node in dts. Add new property "fsl,qe-num-riscs" description in qe.txt Signed-off-by: Haiying Wang --- v2 change: rename the new property to "fsl

Should ppc32 use CONFIG_HIGHPTE or not?

2009-05-01 Thread Dave Hansen
arch/powerpc/mm/pgtable_32.c has the following function: pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) { struct page *ptepage; #ifdef CONFIG_HIGHPTE gfp_t flags = GFP_KERNEL | __GFP_HIGHMEM | __GFP_REPEAT | __GFP_ZERO; #else gfp_t flags = GFP_KERNEL

[PATCH] Fix oprofile sampling of marked events on POWER7

2009-05-01 Thread Maynard Johnson
Description --- Change ppc64 oprofile kernel driver to use the SLOT bits (MMCRA[37:39]only on older processors where those bits are defined. Background -- The performance monitor unit of the 64-bit POWER processor family has the ability to collect accurate instruction-level sam

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread H. Peter Anvin
Tim Abbott wrote: > On Fri, 1 May 2009, Sam Ravnborg wrote: > >> On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: >>> +#define __PAGE_ALIGNED_DATA.section ".data.page_aligned", "aw", >>> @progbits >>> +#define __PAGE_ALIGNED_BSS .section ".bss.page_aligned", "aw", @nobits >> It

Re: Using archaic I2C with OF

2009-05-01 Thread Gary Thomas
Wolfram Sang wrote: >> Post this on the i2c list. Jean has made an effort to convert all >> drivers. He must have missed that one. > > What Jean did was converting all drivers who used the legacy i2c-binding to > use > the new binding which is a lot better suited to the driver model. The above >

Re: Using archaic I2C with OF

2009-05-01 Thread Wolfram Sang
> Post this on the i2c list. Jean has made an effort to convert all > drivers. He must have missed that one. What Jean did was converting all drivers who used the legacy i2c-binding to use the new binding which is a lot better suited to the driver model. The above mentioned driver already uses the

[PATCH] powerpc/boot: add simpleImage.* to clean-files list

2009-05-01 Thread Grant Likely
From: Grant Likely Signed-off-by: Grant Likely --- arch/powerpc/boot/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 4458abb..bff7f12 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boo

Re: [PATCH 6/6] Add support for __read_mostly to linux/cache.h

2009-05-01 Thread Christoph Lameter
On Fri, 1 May 2009, Sam Ravnborg wrote: > Are there any specific reason why we do not support read_mostly on all > architectures? Not that I know of. > read_mostly is about grouping rarely written data together > so what is needed is to introduce this section in the remaining > archtectures. > >

Re: [PATCH v2 0/6] macros for section name cleanup

2009-05-01 Thread Sam Ravnborg
On Thu, Apr 30, 2009 at 03:54:07PM -0400, Tim Abbott wrote: > (this patch series differs from v1 only in the CC list; some of the > architecture lists I sent the previous one to are moderated against > non-members; all replies should go to this version). > > Here are the architecture-independent m

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread Tim Abbott
On Fri, 1 May 2009, Sam Ravnborg wrote: > On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: > > +#define __PAGE_ALIGNED_DATA.section ".data.page_aligned", "aw", > > @progbits > > +#define __PAGE_ALIGNED_BSS .section ".bss.page_aligned", "aw", @nobits > > It is my understanding

Re: Using archaic I2C with OF

2009-05-01 Thread Jon Smirl
On Fri, May 1, 2009 at 10:50 AM, Gary Thomas wrote: > Jon Smirl wrote: >> On Fri, May 1, 2009 at 10:39 AM, Jon Smirl wrote: >>> On Fri, May 1, 2009 at 9:04 AM, Gary Thomas wrote: I'd like to use an existing I2C driver (a touchscreen device) with my 834x based platform.  How do I arrang

mmap dma address

2009-05-01 Thread Gabriel Johnson
Could someone tell me how to mmap a dma buffer allocated with dma_alloc_coherent? I have found some patches that Takashi Iwai submitted to create a dma_mmap_coherent function but it doesn't look like its been accepted upstream, is there a reason why? Is there a better way for mmaping a dma addres

Re: Using archaic I2C with OF

2009-05-01 Thread Gary Thomas
Jon Smirl wrote: > On Fri, May 1, 2009 at 10:39 AM, Jon Smirl wrote: >> On Fri, May 1, 2009 at 9:04 AM, Gary Thomas wrote: >>> I'd like to use an existing I2C driver (a touchscreen device) >>> with my 834x based platform. How do I arrange to provide >>> platform data (i2c_client->dev.platform_da

Re: Using archaic I2C with OF

2009-05-01 Thread Jon Smirl
On Fri, May 1, 2009 at 10:39 AM, Jon Smirl wrote: > On Fri, May 1, 2009 at 9:04 AM, Gary Thomas wrote: >> I'd like to use an existing I2C driver (a touchscreen device) >> with my 834x based platform.  How do I arrange to provide >> platform data (i2c_client->dev.platform_data) from my OF world? >

Re: Using archaic I2C with OF

2009-05-01 Thread Jon Smirl
On Fri, May 1, 2009 at 9:04 AM, Gary Thomas wrote: > I'd like to use an existing I2C driver (a touchscreen device) > with my 834x based platform.  How do I arrange to provide > platform data (i2c_client->dev.platform_data) from my OF world? It is easier to convert the i2c driver to work in the cu

Re: [PATCH 1/2] Add support for Designware SATA controller driver

2009-05-01 Thread Jeff Garzik
Benjamin Herrenschmidt wrote: Patch 2/2 is just adding the device-tree bits to the platform for this driver to match against, so it's no big deal. However, Feng, we already mentioned that you do a lot of unrelated changes to the Kconfig file that shouldn't be part of this patch, just add the entr

Using archaic I2C with OF

2009-05-01 Thread Gary Thomas
I'd like to use an existing I2C driver (a touchscreen device) with my 834x based platform. How do I arrange to provide platform data (i2c_client->dev.platform_data) from my OF world? -- Gary Thomas | Consulting for the

Re: [PATCH] powerpc: fix mktree build error on Mac OS X host

2009-05-01 Thread Josh Boyer
On Thu, Apr 30, 2009 at 11:16:44PM -0500, Timur Tabi wrote: >The mktree utility defines some variables as "uint", although this is not a >standard C type, and so cross-compiling on Mac OS X fails. Change this to >"unsigned int". > >Signed-off-by: Timur Tabi I believe this is only used by the 4xx

Re: [PATCH 6/6] Add support for __read_mostly to linux/cache.h

2009-05-01 Thread Sam Ravnborg
On Thu, Apr 30, 2009 at 03:32:36PM -0400, Tim Abbott wrote: > Signed-off-by: Tim Abbott > --- > include/linux/cache.h |6 ++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/include/linux/cache.h b/include/linux/cache.h > index 97e2488..99d8a6f 100644 > --- a/include/l

Re: [PATCH v2 2/6] Add new NOSAVE_DATA linker script macro.

2009-05-01 Thread Sam Ravnborg
On Thu, Apr 30, 2009 at 03:54:09PM -0400, Tim Abbott wrote: > This patch is preparation for replacing most ".data.nosave" in the > kernel with macros, so that the section name can later be changed > without having to touch a lot of the kernel. > > The long-term goal here is to be able to change th

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread Sam Ravnborg
On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: > This patch is preparation for replacing most uses of > ".bss.page_aligned" and ".data.page_aligned" in the kernel with > macros, so that the section name can later be changed without having > to touch a lot of the kernel. > > The long-t

Re: [PATCH v2 0/6] macros for section name cleanup

2009-05-01 Thread Sam Ravnborg
On Thu, Apr 30, 2009 at 03:54:07PM -0400, Tim Abbott wrote: > (this patch series differs from v1 only in the CC list; some of the > architecture lists I sent the previous one to are moderated against > non-members; all replies should go to this version). > > Here are the architecture-independent m

Re: [PATCH 1/2] Add support for Designware SATA controller driver

2009-05-01 Thread Benjamin Herrenschmidt
On Fri, 2009-05-01 at 03:26 -0400, Jeff Garzik wrote: > Feng Kan wrote: > > Signed-off-by: Feng Kan > > --- > > drivers/ata/Kconfig| 76 +- > > drivers/ata/Makefile |1 + > > drivers/ata/sata_dwc.c | 2047 > > > > 3 files changed, 2091

[PATCH] powerpc: fix mktree build error on Mac OS X host

2009-05-01 Thread Timur Tabi
The mktree utility defines some variables as "uint", although this is not a standard C type, and so cross-compiling on Mac OS X fails. Change this to "unsigned int". Signed-off-by: Timur Tabi --- arch/powerpc/boot/mktree.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) dif

Multiple NAND chips with 4xx NAND driver

2009-05-01 Thread Felix Radensky
Hi, I will soon have 460EX board with twin die NAND device having 2 chip selects. A comment in ndfc driver says that several NAND chips are not supported. What should be modified in the driver to support such configuration ? I'd like to have a separate mtd device per chip select, and then concate

Re: [PATCH 1/2] Add support for Designware SATA controller driver

2009-05-01 Thread Jeff Garzik
Feng Kan wrote: Signed-off-by: Feng Kan --- drivers/ata/Kconfig| 76 +- drivers/ata/Makefile |1 + drivers/ata/sata_dwc.c | 2047 3 files changed, 2091 insertions(+), 33 deletions(-) create mode 100644 drivers/ata/sata_dwc.c I don'