Re: Inline Assembly queries

2009-06-30 Thread kernel mailz
Consider atomic_add and atomic_add_return in kernel code. On Tue, Jun 30, 2009 at 2:59 AM, Ian Lance Taylori...@google.com wrote: kernel mailz kernelma...@googlemail.com writes: I tried a small example int *p = 0x1000; int a = *p; asm(sync:::memory); a = *p; and volatile int *p =

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-06-30 Thread Wolfram Sang
Hi Grant, On Mon, Jun 29, 2009 at 05:42:21PM -0600, Grant Likely wrote: From: Grant Likely grant.lik...@secretlab.ca AC97 bus register read/write hooks need to provide locking, but the mpc5200-psc-ac97 driver does not. This patch adds a mutex around the register access routines.

[PATCH] Remove 'SBC8240 Wind River' Device Driver Code

2009-06-30 Thread Subrata Modak
Scott/David, Your say on this patch below ? Regards-- Subrata On Fri, 2009-06-26 at 09:25 -0500, Subrata Modak wrote: Hi David/Scott, Today's next tree(20090626) produced the following build error: CC [M] drivers/mtd/maps/sbc8240.o drivers/mtd/maps/sbc8240.c:31:1: warning: DEBUG

Re: Inline Assembly queries

2009-06-30 Thread kernel mailz
Hi Scott, I agree with you, kind of understand that it is required. But buddy unless you see some construct work or by adding the construct a visible difference is there, the concept is just piece of theory. I am trying all the kernel code inline assembly to find an example that works differently

USB Host support on MPC8536DS

2009-06-30 Thread Felix Radensky
Hi, Is USB host functionality supported by mainline kernel on MPC8536DS ? Are there any limitations (e.g not all host ports supported, etc.) ? Thanks a lot. Felix. -- View this message in context: http://www.nabble.com/USB-Host-support-on-MPC8536DS-tp24267110p24267110.html Sent from the

Re: PCI device support in Open Firmware (device tree syntax)

2009-06-30 Thread Johnny Hung
2009/6/30 Marco Stornelli marco.storne...@gmail.com: 2009/6/30 Johnny Hung johnny.hack...@gmail.com: Thanks for your reply. So there are no PCI device resource info in flat device tree. How do PCI device resources be assign in general case or is there any example? I am so confusing, would

AW: Direct MII connection between MPC8313 and VIRTEX FPGA

2009-06-30 Thread Frank Prepelica
What kernel version are you using? We are using kernel version 2.6.24. I've searched for current speed in version 2.6.28.7 and I've found that string. Yes, you need to modify the DTB. You have a back to back MII connection, not a phy, so you do *not* want to have a PHY node in the device

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-06-30 Thread Mark Brown
On Mon, Jun 29, 2009 at 08:26:12PM -0400, Jon Smirl wrote: Does your touchscreen driver use this mutex? Or was this mutex needed just for the AC97 driver? It's in the register accesses so everything accessing the chip registers will use it. ___

Re: Inline Assembly queries

2009-06-30 Thread Andrew Haley
kernel mailz wrote: Consider atomic_add and atomic_add_return in kernel code. On Tue, Jun 30, 2009 at 2:59 AM, Ian Lance Taylori...@google.com wrote: kernel mailz kernelma...@googlemail.com writes: I tried a small example int *p = 0x1000; int a = *p; asm(sync:::memory); a = *p; and

Re: Inline Assembly queries

2009-06-30 Thread Paul Mackerras
kernel mailz writes: Consider atomic_add and atomic_add_return in kernel code. I am not able to figure out why memory is added in latter The memory indicates that gcc should not reorder accesses to memory from one side of the asm to the other. The reason for putting it on the atomic ops that

Re: Can't boot 2.6.30 powerpc kernel under qemu.

2009-06-30 Thread Benjamin Herrenschmidt
On Mon, 2009-06-29 at 18:34 -0500, Rob Landley wrote: Which suggested that the problem was the new CONFIG_PPC_OF_BOOT_TRAMPOLINE symbol wasn't set, and once I switched that on it started working again. Ah, I might have forgot to set it to default y... linuxppc-dev@lists.ozlabs.org is

Re: Inline Assembly queries

2009-06-30 Thread Benjamin Herrenschmidt
On Mon, 2009-06-29 at 16:57 +0100, David Howells wrote: kernel mailz kernelma...@googlemail.com wrote: asm(sync); Isn't gcc free to discard this as it has no dependencies, no indicated side effects, and isn't required to be kept? I think this should probably be: asm

Re: Inline Assembly queries

2009-06-30 Thread Benjamin Herrenschmidt
On Tue, 2009-06-30 at 10:57 +0530, kernel mailz wrote: Hi Scott, I agree with you, kind of understand that it is required. But buddy unless you see some construct work or by adding the construct a visible difference is there, the concept is just piece of theory. In this case you'd rather get

Re: Can't boot 2.6.30 powerpc kernel under qemu.

2009-06-30 Thread Benjamin Herrenschmidt
On Tue, 2009-06-30 at 10:24 +1000, Michael Ellerman wrote: On Mon, 2009-06-29 at 18:34 -0500, Rob Landley wrote: Which suggested that the problem was the new CONFIG_PPC_OF_BOOT_TRAMPOLINE symbol wasn't set, and once I switched that on it started working again. What defconfig are you

Preemption question (4xx related)

2009-06-30 Thread Felix Radensky
Hi, Preemption is disabled on the vast majority of powerpc targets. Are there any known problems in this area ? I'd like to enable CONFIG_PREEMPT_VOLUNTARY on AMCC 405EX target, to increase application responsiveness. Is it a bad idea ? -- View this message in context:

[PATCH] powerpc/86xx: Correct reading of information presented in cpuinfo

2009-06-30 Thread Martyn Welch
/proc/cpuinfo should be showing the boards revision and the revision of the FPGA fitted. The functions currently used to access this information as incorrect. Additionally the VME geographical address of the PPC9A and it's status as system contoller are available in the board registers. Show

Re: [PATCH] powerpc: Fix spin_event_timeout() to be robust over context switches

2009-06-30 Thread Timur Tabi
On Mon, Jun 29, 2009 at 6:40 PM, Grant Likelygrant.lik...@secretlab.ca wrote: From: Grant Likely grant.lik...@secretlab.ca Current implementation of spin_event_timeout can be interrupted by an IRQ or context switch after testing the condition, but before checking the timeout.  This can cause

Re: Direct MII connection between MPC8313 and VIRTEX FPGA

2009-06-30 Thread Grant Likely
On Tue, Jun 30, 2009 at 2:35 AM, Frank Prepelicafrank.prepel...@ubidyne.com wrote: What kernel version are you using? We are using kernel version 2.6.24. I've searched for current speed in version 2.6.28.7 and I've found that string. Yes, you need to modify the DTB.  You have a back to back

Re: USB Host support on MPC8536DS

2009-06-30 Thread Kumar Gala
On Jun 30, 2009, at 2:03 AM, Felix Radensky wrote: Hi, Is USB host functionality supported by mainline kernel on MPC8536DS ? Are there any limitations (e.g not all host ports supported, etc.) ? It should be. If you have any issues let us know and we can see if we can help out. - k

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-06-30 Thread Grant Likely
On Tue, Jun 30, 2009 at 12:33 PM, Jon Smirljonsm...@gmail.com wrote: On Tue, Jun 30, 2009 at 12:50 PM, Grant Likelygrant.lik...@secretlab.ca wrote: On Tue, Jun 30, 2009 at 12:18 AM, Wolfram Sangw.s...@pengutronix.de wrote: + +     /* Force clear the data valid bit */ +    

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-06-30 Thread Jon Smirl
On Tue, Jun 30, 2009 at 12:50 PM, Grant Likelygrant.lik...@secretlab.ca wrote: On Tue, Jun 30, 2009 at 12:18 AM, Wolfram Sangw.s...@pengutronix.de wrote: + +     /* Force clear the data valid bit */ +     in_be32(psc_dma-psc_regs-ac97_data); + No mutex involved here. I think this is either

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-06-30 Thread Mark Brown
On Tue, Jun 30, 2009 at 09:42:06AM -0400, Jon Smirl wrote: Wolfram, do you have any way to test the on the Phytec hardware? The WM9712 on the baseboard supports a touchscreen, is it brought out to a header? You can probably test adequately by writing a dummy AC97 driver that sits in a thread

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-06-30 Thread Jon Smirl
On Tue, Jun 30, 2009 at 2:18 AM, Wolfram Sangw.s...@pengutronix.de wrote: Wolfram, do you have any way to test the on the Phytec hardware? The WM9712 on the baseboard supports a touchscreen, is it brought out to a header? Hi Grant, On Mon, Jun 29, 2009 at 05:42:21PM -0600, Grant Likely

[PATCH] powerpc/86xx: Enable XMC site on GE Fanuc SBC310

2009-06-30 Thread Martyn Welch
This patch enables the XMC (PCIe daughter card) site on the SBC310. STG enter the description for the patch above. Signed-off-by: Martyn Welch martyn.we...@gefanuc.com --- arch/powerpc/boot/dts/gef_sbc310.dts | 37 ++ 1 files changed, 37 insertions(+), 0

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-06-30 Thread Grant Likely
On Tue, Jun 30, 2009 at 2:59 AM, Mark Brownbroo...@opensource.wolfsonmicro.com wrote: On Mon, Jun 29, 2009 at 08:26:12PM -0400, Jon Smirl wrote: Does your touchscreen driver use this mutex? Or was this mutex needed just for the AC97 driver? It's in the register accesses so everything

Re: Trouble Transferring control to Linux (at address 00000000)

2009-06-30 Thread Mikhail Zaturenskiy
I'll still try to figure out how to get u-boot to fill all this in. Got it... thanks to http://www.mail-archive.com/u-boot-us...@lists.sourceforge.net/msg05111.html; I made sure that CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP were both present in u-boot-2009.03/include/configs/EP88x.h. Then

ppc405ex + gigabit ethernet

2009-06-30 Thread Lada Podivin
Hi, I benchmarked performance of my network, which contains ppc405EX (Kilauea board, kernel 2.6.30 from Denx) connected with a linux desktop via gigabit ethernet. I used the netperf tool: netperf -t UDP_STREAM -H 192.168.1.1 -- -m 32768 So I was sending UDP packets to the desktop. The resulting

Re: Trouble Transferring control to Linux (at address 00000000)

2009-06-30 Thread Mikhail Zaturenskiy
Check the clock-frequency of the CPM BRG node.  If u-boot isn't setting the memory, it's probably not setting this either. I set the CPM BRG clock-frequency = 153609 (value obtained from u-boot's 'brginfo' command), set my CPU clock-frequency = 1 (down from 13000) to match what