build error in powerpc tree

2008-07-14 Thread Stephen Rothwell
Hi Ben, Commit ef3d3246a0d06be622867d21af25f997aeeb105f (powerpc/mm: Add Strong Access Ordering support) in the powerpc/{next,master} tree caused the following in a powerpc allmodconfig build: usr/include/asm/mman.h requires linux/mm.h, which does not exist in exported headers Also, that

Re: [RFC] (almost) booting allyesconfig -- please don't poke super-io without request_region

2008-07-14 Thread Jean Delvare
On Sun, 13 Jul 2008 15:26:56 -0600, David Hubbard wrote: Hi Hans, I propose writing a subsystem driver. (Is that properly called The SuperIO Bus Driver?) If no one thinks it's a really bad idea I will put together some code and submit it for review, and maintain it. Some hwmon chips

powerpc/master: build failure

2008-07-14 Thread Stephen Rothwell
Hi Kumar, A build of today's powerpc/master tree for mpc85xx_defconfig fails like this: DTC: dts-dtb on file arch/powerpc/boot/dts/ksi8560.dts ERROR (phandle_references): Reference to non-existent node or label mpic ERROR (phandle_references): Reference to non-existent node or label mpic ERROR

Re: [RFC] [PATCH] task_pt_regs for powerpc systems

2008-07-14 Thread Srinivasa D S
On Monday 14 July 2008 04:02:41 am Paul Mackerras wrote: Below attached patch defines this macro for powerpc arch. Please let me know your comments on this. +#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)-thread.regs) The cast is unnecessary since tsk-thread.regs is already a

Re: Updates to powerpc.git

2008-07-14 Thread Benjamin Herrenschmidt
On Mon, 2008-07-14 at 15:49 +1000, Stephen Rothwell wrote: Hi Ben, On Mon, 14 Jul 2008 15:32:36 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: -next and -merge are now both to the same level, which is the same I think you meant -master (not -merge). Yup, typo, sorry. -merge

Re: build error in powerpc tree

2008-07-14 Thread Benjamin Herrenschmidt
On Mon, 2008-07-14 at 17:03 +1000, Stephen Rothwell wrote: Hi Ben, Commit ef3d3246a0d06be622867d21af25f997aeeb105f (powerpc/mm: Add Strong Access Ordering support) in the powerpc/{next,master} tree caused the following in a powerpc allmodconfig build: usr/include/asm/mman.h requires

[PATCH] powerpc: mman.h export fixups

2008-07-14 Thread Stephen Rothwell
Commit ef3d3246a0d06be622867d21af25f997aeeb105f (powerpc/mm: Add Strong Access Ordering support) in the powerpc/{next,master} tree caused the following in a powerpc allmodconfig build: usr/include/asm/mman.h requires linux/mm.h, which does not exist in exported headers We should not use

linux-next: powerpc/generic-ipi tree build failure

2008-07-14 Thread Stephen Rothwell
Hi all, Today's linux-next build (powerpc allmodconfig) failed like this: ERROR: .save_stack_trace [tests/backtracetest.ko] undefined! But save_stack_trace is exported in arch/powerpc/kernel/stacktrace.c I couldn't figure it out until I noticed these earlier warnings:

Re: [RFC] [PATCH] task_pt_regs for powerpc systems

2008-07-14 Thread Benjamin Herrenschmidt
On Mon, 2008-07-14 at 14:01 +0530, Srinivasa D S wrote: On Monday 14 July 2008 04:02:41 am Paul Mackerras wrote: Below attached patch defines this macro for powerpc arch. Please let me know your comments on this. +#define task_pt_regs(tsk)((struct pt_regs

Re: [alsa-devel] [PATCH v2 3/3] ALSA SoC: Add Texas Instruments TLV320AIC26 codec driver

2008-07-14 Thread Mark Brown
On Sat, Jul 12, 2008 at 02:39:39AM -0600, Grant Likely wrote: ASoC Codec driver for the TLV320AIC26 device. This driver uses the ASoC v1 API, so I don't expect it to get merged as-is, but I want to get it out there for review. This looks basically good - most of the issues below are

[PATCH 2/3] powerpc: rework FSL Book-E PTE access and TLB miss

2008-07-14 Thread Kumar Gala
This converts the FSL Book-E PTE access and TLB miss handling to match with the recent changes to 44x that introduce support for non-atomic PTE operations in pgtable-ppc32.h and removes write back to the PTE from the TLB miss handlers. In addition, the DSI interrupt code no longer tries to fixup

[PATCH 3/3] powerpc/fsl: Minor TLBSYNC cleanup for FSL Book-E

2008-07-14 Thread Kumar Gala
Use the TLBSYNC macro defined in ppc_asm.h rather than our own ifdefs. Signed-off-by: Kumar Gala [EMAIL PROTECTED] --- this will go via my powerpc-next tree. - k arch/powerpc/kernel/head_fsl_booke.S | 19 --- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git

Re: powerpc/master: build failure

2008-07-14 Thread Kumar Gala
On Jul 14, 2008, at 3:21 AM, Stephen Rothwell wrote: Hi Kumar, A build of today's powerpc/master tree for mpc85xx_defconfig fails like this: DTC: dts-dtb on file arch/powerpc/boot/dts/ksi8560.dts ERROR (phandle_references): Reference to non-existent node or label mpic ERROR

Re: [PATCH v3 5/5] powerpc/mpc5200: Add mpc5200-spi (non-PSC) device driver

2008-07-14 Thread Jon Smirl
On 7/12/08, Grant Likely [EMAIL PROTECTED] wrote: From: Grant Likely [EMAIL PROTECTED] Adds support for the dedicated SPI device on the Freescale MPC5200(b) SoC. Can you adjust the existing PSC based SPI driver to use this device tree code? It will be confusing if there are two different

Re: [PATCH 1/2] Fix copper/fiber auto-selection for 88e1111

2008-07-14 Thread Kumar Gala
On Jul 9, 2008, at 9:14 PM, Wang Jian wrote: The 27.15 bit (MII_M_HWCFG_FIBER_COPPER_AUTO) is disable bit. When set to 1, copper/fiber auto selection is disabled. The current code to enable but actually disable auto selection. Signed-off-by: Wang Jian [EMAIL PROTECTED] ---

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Mark Brown
On Sat, Jul 12, 2008 at 02:39:29AM -0600, Grant Likely wrote: Simple utility layer for creating ASoC machine instances based on data in the OpenFirmware device tree. OF aware platform drivers and codec drivers register themselves with this framework and the framework automatically

Re: [PATCH] powerpc: mman.h export fixups

2008-07-14 Thread Arnd Bergmann
On Monday 14 July 2008, Stephen Rothwell wrote: index 34a0a8d..329ecfd 100644 --- a/include/asm-powerpc/Kbuild +++ b/include/asm-powerpc/Kbuild @@ -2,7 +2,6 @@ include include/asm-generic/Kbuild.asm    header-y += auxvec.h  header-y += ioctls.h -header-y += mman.h  header-y += sembuf.h  

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Jon Smirl
On 7/14/08, Mark Brown [EMAIL PROTECTED] wrote: On Sat, Jul 12, 2008 at 02:39:29AM -0600, Grant Likely wrote: Simple utility layer for creating ASoC machine instances based on data in the OpenFirmware device tree. OF aware platform drivers and codec drivers register themselves with

Re: [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Anton Vorontsov
On Sat, Jul 12, 2008 at 02:39:29AM -0600, Grant Likely wrote: From: Grant Likely [EMAIL PROTECTED] Simple utility layer for creating ASoC machine instances based on data in the OpenFirmware device tree. OF aware platform drivers and codec drivers register themselves with this framework and

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Mark Brown
On Mon, Jul 14, 2008 at 10:13:14AM -0400, Jon Smirl wrote: On 7/14/08, Mark Brown [EMAIL PROTECTED] wrote: Ideally someone from the PowerPC community would sign off on this - given the nature and volume of discussion people obviously have very Grant is one of the core PowerPC developers.

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Timur Tabi
Jon Smirl wrote: Which are we going to call it, fabric or machine? Fabric. -- Timur Tabi Linux kernel developer at Freescale ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Timur Tabi
Mark Brown wrote: The PowerPC side isn't without fault too. PowerPC still doesn't have a good way to load the fabric/machine driver. I'm finding it difficult to square these two statements - from an ASoC point of view the main thing this patch is doing is adding a machine driver and that's

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Grant Likely
On Mon, Jul 14, 2008 at 10:14 AM, Timur Tabi [EMAIL PROTECTED] wrote: Mark Brown wrote: The PowerPC side isn't without fault too. PowerPC still doesn't have a good way to load the fabric/machine driver. I'm finding it difficult to square these two statements - from an ASoC point of view the

Re: linux-next: kbuild tree build failure

2008-07-14 Thread Milton Miller
Hi Roman. I saw your reply on the list archives but can not find it in my inbox. On Sun Jul 13 at 09:21:08 EST 2008, Roman Zippel wrote: On Sat, 12 Jul 2008, Milton Miller wrote: (1) #define PAGE_OFFSET(ASM_CONST(CONFIG_PAGE_OFFSET) 32) It creates unreadable code, where two defines

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Mark Brown
On Mon, Jul 14, 2008 at 11:14:41AM -0500, Timur Tabi wrote: Mark Brown wrote: I'm finding it difficult to square these two statements - from an ASoC point of view the main thing this patch is doing is adding a machine driver and that's not something that's going to go away. Jon's

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Grant Likely
On Mon, Jul 14, 2008 at 7:49 AM, Mark Brown [EMAIL PROTECTED] wrote: On Sat, Jul 12, 2008 at 02:39:29AM -0600, Grant Likely wrote: +static void of_snd_soc_register_device(struct of_snd_soc_device *of_soc) +{ + struct platform_device *pdev; + int rc; + + /* Only register the

Re: [RFC] (almost) booting allyesconfig -- please don't poke super-io without request_region

2008-07-14 Thread Milton Miller
On Jul 14, 2008, at 2:59 AM, Jean Delvare wrote: On Sun, 13 Jul 2008 15:26:56 -0600, David Hubbard wrote: Hi Hans, I propose writing a subsystem driver. (Is that properly called The SuperIO Bus Driver?) If no one thinks it's a really bad idea I will put together some code and submit it for

Re: [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Grant Likely
On Mon, Jul 14, 2008 at 8:16 AM, Anton Vorontsov [EMAIL PROTECTED] wrote: On Sat, Jul 12, 2008 at 02:39:29AM -0600, Grant Likely wrote: --- /dev/null +++ b/sound/soc/soc-of.c It's quite inconvenient to spread the firmware-specific bits over the whole kernel source tree. So, can we place this

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Mark Brown
On Mon, Jul 14, 2008 at 11:06:34AM -0600, Grant Likely wrote: I'm okay with that. How about fsl/mpc5200-of-machine.c for now? (only the mpc5200 i2s driver uses it at the moment). It can always be renamed if other folks want to use it for other chips. That seems reasonable so long as you're

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Grant Likely
On Mon, Jul 14, 2008 at 10:53 AM, Mark Brown [EMAIL PROTECTED] wrote: On Mon, Jul 14, 2008 at 11:14:41AM -0500, Timur Tabi wrote: Mark Brown wrote: I'm finding it difficult to square these two statements - from an ASoC point of view the main thing this patch is doing is adding a machine

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Grant Likely
On Mon, Jul 14, 2008 at 11:16 AM, Mark Brown [EMAIL PROTECTED] wrote: On Mon, Jul 14, 2008 at 11:06:34AM -0600, Grant Likely wrote: I'm okay with that. How about fsl/mpc5200-of-machine.c for now? (only the mpc5200 i2s driver uses it at the moment). It can always be renamed if other folks

Re: [RFC] [PATCH] task_pt_regs for powerpc systems

2008-07-14 Thread Timur Tabi
Srinivasa D S wrote: +#define task_pt_regs(tsk)(tsk)-thread.regs Shouldn't this be: #define task_pt_regs(tsk) ((tsk)-thread.regs) just to be safe? -- Timur Tabi Linux kernel developer at Freescale ___ Linuxppc-dev mailing list

Re: [lm-sensors] [RFC] (almost) booting allyesconfig -- please don't poke super-io without request_region

2008-07-14 Thread Hans de Goede
Milton Miller wrote: On Jul 14, 2008, at 2:59 AM, Jean Delvare wrote: On Sun, 13 Jul 2008 15:26:56 -0600, David Hubbard wrote: Hi Hans, I propose writing a subsystem driver. (Is that properly called The SuperIO Bus Driver?) If no one thinks it's a really bad idea I will put together some

Re: [RFC] [PATCH] task_pt_regs for powerpc systems

2008-07-14 Thread Andreas Schwab
Timur Tabi [EMAIL PROTECTED] writes: Srinivasa D S wrote: +#define task_pt_regs(tsk) (tsk)-thread.regs Shouldn't this be: #define task_pt_regs(tsk) ((tsk)-thread.regs) just to be safe? Both - and . have already highest precedence as postfix operators. Andreas. --

[PATCH] of: i2c: improve last resort compatible entry selection

2008-07-14 Thread Anton Vorontsov
Currently of_i2c will select first compatible property as a last resort option. This isn't best choice though, because generic compatible entries are listed last, not first. For example, two compatible entries given for the MCU node: fsl,mc9s08qg8-mpc837xrdb, fsl,mcu-mpc8349emitx; Since no sane

Re: [lm-sensors] [RFC] (almost) booting allyesconfig -- please don't poke super-io without request_region

2008-07-14 Thread David Hubbard
Hi Hans, On Mon, Jul 14, 2008 at 11:30 AM, Hans de Goede [EMAIL PROTECTED] wrote: Milton Miller wrote: I haven't done the research, but it might be keep superio as a platform driver, and keep the clients as platform drivers. Only have the superio driver probe and discover the subcomponent

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Mark Brown
On Mon, Jul 14, 2008 at 11:21:12AM -0600, Grant Likely wrote: On Mon, Jul 14, 2008 at 10:53 AM, Mark Brown Incidentally, nobody ever really commented on my suggestion to do something DMI-like I'm feeling stupid; what does DMI stand for? Desktop Management Interface, a standard BIOS

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Timur Tabi
Mark Brown wrote: Desktop Management Interface, a standard BIOS interface for getting system data on x86 class hardware. Of particular interest here is the fact that it contains various ID strings for things like motherboard and chassis - on Linux drivers can be automatically loaded based on

Re: dtc: Testcase for /include/ directive

2008-07-14 Thread Jon Loeliger
This patch adds a testcase for the /include/ directive. It assembles a sample dts file with many /include/ directives at a variety of different lexical / grammatical contexts. Signed-off-by: David Gibson [EMAIL PROTECTED] Applied. jdl ___

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Mark Brown
On Mon, Jul 14, 2008 at 01:40:24PM -0500, Timur Tabi wrote: Mark Brown wrote: Desktop Management Interface, a standard BIOS interface for getting system data on x86 class hardware. Of particular interest here is the fact that it contains various ID strings for things like motherboard and

Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-14 Thread Timur Tabi
Mark Brown wrote: The only problem with this is that the OF probing code in the kernel binds drivers to device tree nodes. So when a driver claims a node, no other driver will be probed with it. So we can't have generic nodes that classify the motherboard and just let everyone get

Re: dtc: Address an assortment of portability problems

2008-07-14 Thread Jon Loeliger
I've recently worked with a FreeBSD developer, getting dtc and libfdt working on FreeBSD. This showed up a number of portability problems in the dtc package which this patch addresses. Changes are as follows: - the parent_offset and supernode_atdepth_offset testcases used the glibc

Re: dtc: Clean up lexing of include files

2008-07-14 Thread Jon Loeliger
Currently we scan the /include/ directive as two tokens, the /include/ keyword itself, then the string giving the file name to include. We use a special scanner state to keep the two linked together, and use the scanner state stack to keep track of the original state while we're parsing the

Re: [PATCH] libfdt: Improve documentation in libfdt.h

2008-07-14 Thread Jon Loeliger
Fix a few typos and mistakes. Signed-off-by: Wolfram Sang [EMAIL PROTECTED] Applied. jdl ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: libfdt: Increase namespace-pollution paranoia

2008-07-14 Thread Jon Loeliger
My (DTC) plan is to apply the single patch with some include file fixes, and release that. I'll line the slew of patches up for the following release. jdl And that's not at all what happened. One of David's patches (BSD portability) was a superset of the include-file fixes supplied as

Re: 82xx performance

2008-07-14 Thread Arnd Bergmann
On Monday 14 July 2008, Rune Torgersen wrote: Context switching - times in microseconds - smaller is better Host OS 2p/0K 2p/16K 2p/64K 8p/16K 8p/64K 16p/16K 16p/64K ctxsw ctxsw

Re: [PATCH 08/16 v3] powerpc: Do not probe PCI buses or eBus devices if CMO is enabled

2008-07-14 Thread Brian King
Ben, Please drop this patch from the series. After further discussion, this patch is not required and has actually been causing problems. Thanks, Brian Robert Jennings wrote: From: Brian King [EMAIL PROTECTED] The Cooperative Memory Overcommit (CMO) on System p does not currently support

Re: Mikrotik RouterBoard 333

2008-07-14 Thread Segher Boessenkool
Its firmware apparently provides a flattened device tree to the OS. And while this step towards world domination is flattering, it's an example of what I feared when people first got enthusiastic about the idea of including flattened device trees in firmwares. The tree has not, AFAIK, been past

Re: dtc: Address an assortment of portability problems

2008-07-14 Thread David Gibson
On Mon, Jul 14, 2008 at 01:54:41PM -0500, Jon Loeliger wrote: I've recently worked with a FreeBSD developer, getting dtc and libfdt working on FreeBSD. This showed up a number of portability problems in the dtc package which this patch addresses. Changes are as follows: - the

Re: [PATCH][RT][PPC64] Fix preempt unsafe paths accessing per_cpu variables

2008-07-14 Thread Benjamin Herrenschmidt
On Wed, 2008-07-09 at 21:35 +0530, Chirag Jog wrote: Hi, This patch fixes various paths in the -rt kernel on powerpc64 where per_cpu variables are accessed in a preempt unsafe way. When a power box with -rt kernel is booted, multiple BUG messages are generated BUG: init:1 task might have lost

Re: linux-next: manual merge of the powerpc tree

2008-07-14 Thread Steven Rostedt
On Mon, 14 Jul 2008, Stephen Rothwell wrote: Hi Paul, Ben, Today's linux-next merge of the powerpc tree got a conflict in arch/powerpc/Kconfig between commit 4e491d14f2506b218d678935c25a7027b79178b1 (ftrace: support for PowerPC) from the ftrace tree and commit

Re: Mikrotik RouterBoard 333

2008-07-14 Thread David Gibson
On Tue, Jul 15, 2008 at 02:17:36AM +0200, Segher Boessenkool wrote: Its firmware apparently provides a flattened device tree to the OS. And while this step towards world domination is flattering, it's an example of what I feared when people first got enthusiastic about the idea of including

Re: [PATCH] kill useless SMT code in prom_hold_cpus

2008-07-14 Thread Benjamin Herrenschmidt
On Tue, 2008-07-08 at 17:36 -0500, Nathan Lynch wrote: I think this code that counts SMT threads and compares against NR_CPUS is an artifact of pre-powerpc-merge ppc64. We care about starting only primary threads in the OF client code. Signed-off-by: Nathan Lynch [EMAIL PROTECTED] That

Re: [PATCH] kill useless SMT code in prom_hold_cpus

2008-07-14 Thread Tony Breeds
On Tue, Jul 08, 2008 at 05:36:31PM -0500, Nathan Lynch wrote: I think this code that counts SMT threads and compares against NR_CPUS is an artifact of pre-powerpc-merge ppc64. We care about starting only primary threads in the OF client code. snip - prom_printf(%x :

Re: [PATCH] kill useless SMT code in prom_hold_cpus

2008-07-14 Thread Benjamin Herrenschmidt
On Mon, 2008-07-14 at 21:24 -0500, Nathan Lynch wrote: Benjamin Herrenschmidt wrote: On Tue, 2008-07-08 at 17:36 -0500, Nathan Lynch wrote: I think this code that counts SMT threads and compares against NR_CPUS is an artifact of pre-powerpc-merge ppc64. We care about starting only

Re: [PATCH 1/3] powerpc: Fix pte_update for CONFIG_PTE_64BIT and !PTE_ATOMIC_UPDATES

2008-07-14 Thread Benjamin Herrenschmidt
On Mon, 2008-07-14 at 08:08 -0500, Kumar Gala wrote: Because the pte is now 64-bits the compiler was optimizing the update to always clear the upper 32-bits of the pte. We need to ensure the clr mask is treated as an unsigned long long to get the proper behavior. Signed-off-by: Kumar Gala