[PATCH] powerpc: Initialise paca->kstack before early_setup_secondary

2010-08-12 Thread Matt Evans
As early setup calls down to slb_initialize(), we must have kstack initialised before checking "should we add a bolted SLB entry for our kstack?" Failing to do so means stack access requires an SLB miss exception to refill an entry dynamically, if the stack isn't accessible via SLB(0) (kernel text

Re: 2.6.35-stable/ppc64/p7: suspicious rcu_dereference_check() usage detected during 2.6.35-stable boot

2010-08-12 Thread Subrata Modak
Hi Paul, Is there any specific person(s) whom we whom we should direct this mail to ? We have not received any response from CGROUP developers on this. Kindly let me know whom to contact for this. I am adding few more people i know :-) Regards-- Subrata On Mon, 2010-08-09 at 09:12 -0700, Paul E.

[PATCH 1/2] powerpc: Abstract indexing of lppaca structs

2010-08-12 Thread Paul Mackerras
Currently we have the lppaca structs as a simple array of NR_CPUS entries, taking up space in the data section of the kernel image. In future we would like to allocate them dynamically, so this abstracts out the accesses to the array, making it easier to change how we locate the lppaca for a given

[PATCH 2/2] powerpc: Dynamically allocate most lppaca structs

2010-08-12 Thread Paul Mackerras
This arranges for the lppaca structs for most cpus to be dynamically allocated in the same manner as the paca structs. If we don't include support for legacy iSeries, only the first lppaca is statically allocated; the rest are dynamically allocated. If we include legacy iSeries support, then we s

Re: [PATCH] powerpc: Add support for popcnt instructions

2010-08-12 Thread Anton Blanchard
Hi, > Especially from modules it will suck big time. If kept out of line they > should probably be linked-in with each module, but I'd rather have them > inlined. Inlining would be good, but this is as far as I can take this for now. If someone else is interested go for it :) Anton ___

Re: [PATCH] powerpc: Add support for popcnt instructions

2010-08-12 Thread Benjamin Herrenschmidt
On Fri, 2010-08-13 at 12:28 +1000, Anton Blanchard wrote: > POWER5 added popcntb, and POWER7 added popcntw and popcntd. As a first step > this patch does all the work out of line, but it would be nice to implement > them as inlines with an out of line fallback. > > The performance issue with hweig

[PATCH] powerpc: Add support for popcnt instructions

2010-08-12 Thread Anton Blanchard
POWER5 added popcntb, and POWER7 added popcntw and popcntd. As a first step this patch does all the work out of line, but it would be nice to implement them as inlines with an out of line fallback. The performance issue with hweight was noticed when disabling SMT on a large (192 thread) POWER7 bo

Re: Query regarding 2.6.335 RT[Ingo's] and Non-RT performance

2010-08-12 Thread Xianghua Xiao
On Thu, Aug 12, 2010 at 12:53 PM, Jeff Angielski wrote: > On 08/11/2010 06:18 PM, Manikandan Ramachandran wrote: >> >> Hello All, >>     I created a very simple program which has higher priority than >> normal tasks and runs a tight loop. Under same test environment I ran >> this program on both n

Question about dma_direct_ops in PowerPC.

2010-08-12 Thread Fushen Chen
We have a board with PCI device driver that calls for pci_dma_sync_single_for_device. This driver used to work for Linux kernel 2.6.25. We ported to the driver to Linux kernel 2.6.32. The PCI device driver doesn't work anymore. The following call trace shows why the PCI driver won't work in kernel

Re: [PATCH 0/8] v5 De-couple sysfs memory directories from memory sections

2010-08-12 Thread Dave Hansen
On Thu, 2010-08-12 at 12:08 -0700, Andrew Morton wrote: > > This set of patches allows for each directory created in sysfs > > to cover more than one memory section. The default behavior for > > sysfs directory creation is the same, in that each directory > > represents a single memory section. A

Re: [PATCH 0/8] v5 De-couple sysfs memory directories from memory sections

2010-08-12 Thread Andrew Morton
On Mon, 09 Aug 2010 12:53:00 -0500 Nathan Fontenot wrote: > This set of patches de-couples the idea that there is a single > directory in sysfs for each memory section. The intent of the > patches is to reduce the number of sysfs directories created to > resolve a boot-time performance issue. O

Re: Query regarding 2.6.335 RT[Ingo's] and Non-RT performance

2010-08-12 Thread Jeff Angielski
On 08/11/2010 06:18 PM, Manikandan Ramachandran wrote: Hello All, I created a very simple program which has higher priority than normal tasks and runs a tight loop. Under same test environment I ran this program on both non-rt and rt 2.6.33.5 kernel. To my suprise I see that performance of

Re: How to use mpc8xxx_gpio.c device driver

2010-08-12 Thread Ira W. Snyder
On Thu, Aug 12, 2010 at 03:55:49PM +0530, Ravi Gupta wrote: > On Wed, Aug 11, 2010 at 9:45 PM, MJ embd wrote: > > > u can directly access GPIO registers in kernel, by ioremap of GPIO > > memory mapped registers. > > you might need to check > > - muxing of gpio > > > > -mj > > > > Hi MJ, > > Tha

Flash Programmer Problem in Code Warrior

2010-08-12 Thread Naresh Reddy Sankapelly
Hi, I am trying to program NOR flash (M29DW323DT) on MPC8321 board. I have imported the details of the flash into FPDeviceConfig.xml. When I try to run Program/verify flash, it is taking large amount of time(in hours). I could not figure out the reason for that. Kindly let me know the troubleshooti

Running out of SDHCI quirk space (Re: [PATCH 1/3 v2] sdhci: Add auto CMD12 support for eSDHC driver)

2010-08-12 Thread Matt Fleming
On Tue, Aug 03, 2010 at 04:43:46PM -0700, Andrew Morton wrote: > On Tue, 3 Aug 2010 11:11:10 +0800 > Roy Zang wrote: > > > --- a/drivers/mmc/host/sdhci.h > > +++ b/drivers/mmc/host/sdhci.h > > @@ -240,6 +240,8 @@ struct sdhci_host { > > #define SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN (1<<25)

Re: How to use mpc8xxx_gpio.c device driver

2010-08-12 Thread Ravi Gupta
On Wed, Aug 11, 2010 at 9:45 PM, MJ embd wrote: > u can directly access GPIO registers in kernel, by ioremap of GPIO > memory mapped registers. > you might need to check > - muxing of gpio > > -mj > Hi MJ, Thanks for the reply. I tried memory mapping but it fails, here is my code : #include #

[PATCH] fs-enet/mac-fec: Restore multicast and promiscous settings during restart

2010-08-12 Thread Wolfgang Ocker
Signed-off-by: Wolfgang Ocker --- drivers/net/fs_enet/mac-fec.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/fs_enet/mac-fec.c b/drivers/net/fs_enet/mac-fec.c index 7ca1642..05f4bb1 100644 --- a/drivers/net/fs_enet/mac-fec.c +++ b/drivers/net/fs_enet/mac-

Looking for a tutorial on the use of the new of_??? init functions

2010-08-12 Thread LEROY Christophe
Hello, Is there a tutorial or an HOWTO out somewhere explaining the use of those new of_platform_xxx() and other of_xxx() functions in the init of drivers ? It looks like a very nice way to write drivers in Linux 2-6 but a little help would be welcomed. Regards Christophe ___