[RFC PATCH v2 4/4] powerpc: use irq_alloc_desc() to manage irq allocations

2011-04-20 Thread Grant Likely
This patch drops the architecture specific code for managing irq assignments and uses core code instead. Signed-off-by: Grant Likely --- arch/powerpc/kernel/irq.c | 49 - 1 files changed, 13 insertions(+), 36 deletions(-) diff --git a/arch/powerpc/k

[RFC PATCH v2 3/4] powerpc: move irq_alloc_descs_at() call into irq_alloc_virt()

2011-04-20 Thread Grant Likely
This is a stepping stone to using core code for allocating virqs instead of the powerpc architecture specific code. The next patch will drop the algorithm that searches for a free irq and replaces it with irq_alloc_desc() Signed-off-by: Grant Likely --- arch/powerpc/kernel/irq.c | 49

[RFC PATCH v2 2/4] powerpc: make irq_{alloc, free}_virt private and remove count argument

2011-04-20 Thread Grant Likely
irq_alloc_virt() and irq_free_virt() aren't called anywhere but from arch/powerpc/kernel/irq.c, and they are only ever called with count=1. This patch removes the prototypes from the header file, removes the count arguments, and cuts out the dead code. Also removes obsolete references to irq_early

[RFC PATCH v2 1/4] powerpc: stop exporting irq_map

2011-04-20 Thread Grant Likely
First step in eliminating irq_map[] table entirely Signed-off-by: Grant Likely --- arch/powerpc/include/asm/irq.h | 15 +--- arch/powerpc/kernel/irq.c| 26 +++ arch/powerpc/platforms/512x/mpc5121_ads_cpld.c |4 + arch/powerpc/platforms/52xx

[RFC PATCH v2 0/4] Switch to core code for irq allocation

2011-04-20 Thread Grant Likely
Hey Ben, Can you take a look at this series and let me know what you think. The only functional change is in the last patch which uses the core irq_alloc_desc*() infrastructure to allocating irqs. I know I've left race conditions in the code; specifically the unlikely case of two threads trying t

Re: [PATCH] powerpc: stop exporting irq_map

2011-04-20 Thread Grant Likely
On Wed, Apr 20, 2011 at 1:31 PM, Sam Ravnborg wrote: >> + >>  irq_hw_number_t virq_to_hw(unsigned int virq) >>  { >>       return irq_map[virq].hwirq; >>  } >>  EXPORT_SYMBOL_GPL(virq_to_hw); > > General comment... > kernel/irq/* denote the virtual irq numbers "irq". > powerpc uses "virq" for the

Re: [PATCH 2/4] powerpc/pci: Move IO workarounds to the common kernel dir

2011-04-20 Thread Benjamin Herrenschmidt
On Tue, 2011-04-12 at 17:25 +1000, Michael Ellerman wrote: > Signed-off-by: Benjamin Herrenschmidt > Signed-off-by: Michael Ellerman > --- This misses a couple of #include "io-workarounds.h" -> conversions. I'll fix it up before merging. Cheers, Ben. > arch/powerpc/include/asm/io-workarounds

Re: tmpfs size restriction

2011-04-20 Thread Schwarz,Andre
  "Ira W. Snyder" hat am 20. April 2011 um 22:44 geschrieben: > On Wed, Apr 20, 2011 at 09:21:00PM +0200, Schwarz,Andre wrote: > > Hi, > > > > I'm facing an issue with tmpfs mounts on PowerPC (mpc83xx specifically). > > > > After "mount -t tmpfs tmpfs /tmp -o size=16m" I can fill the machine's m

Re: [BUG] rebuild_sched_domains considered dangerous

2011-04-20 Thread Benjamin Herrenschmidt
On Wed, 2011-04-20 at 12:07 +0200, Peter Zijlstra wrote: > On Thu, 2011-03-10 at 15:10 +0100, Peter Zijlstra wrote: > > > > Also, still waiting to hear from the Power7 folks on how often they > > think to rebuild the topology and how they think that makes sense, > > afaict Power7 does have actual

Re: tmpfs size restriction

2011-04-20 Thread Ira W. Snyder
On Wed, Apr 20, 2011 at 09:21:00PM +0200, Schwarz,Andre wrote: > Hi, > > I'm facing an issue with tmpfs mounts on PowerPC (mpc83xx specifically). > > After "mount -t tmpfs tmpfs /tmp -o size=16m" I can fill the machine's mem > (512MiB) until oom becomes active. > > I can't see this on any other

Re: [PATCH] powerpc: stop exporting irq_map

2011-04-20 Thread Sam Ravnborg
> + > irq_hw_number_t virq_to_hw(unsigned int virq) > { > return irq_map[virq].hwirq; > } > EXPORT_SYMBOL_GPL(virq_to_hw); General comment... kernel/irq/* denote the virtual irq numbers "irq". powerpc uses "virq" for the same. Sometimes it is confusing that two different names is used f

tmpfs size restriction

2011-04-20 Thread Schwarz,Andre
Hi, I'm facing an issue with tmpfs mounts on PowerPC (mpc83xx specifically). After "mount -t tmpfs tmpfs /tmp -o size=16m" I can fill the machine's mem (512MiB) until oom becomes active. I can't see this on any other machine (x86/ARM) I have access to. There's always a "no space left on device"

Re: hvc_console: Don't access hvc_task if not initialised

2011-04-20 Thread Amit Shah
On (Wed) 20 Apr 2011 [07:34:35], Greg KH wrote: > On Wed, Apr 20, 2011 at 06:03:30PM +0530, Amit Shah wrote: > > On (Mon) 28 Mar 2011 [11:52:05], Milton Miller wrote: > > > On Fri, 25 Mar 2011 about 14:17:14 +0530, Amit Shah wrote: > > > > On (Thu) 24 Mar 2011 [08:58:04], Milton Miller wrote: > > >

Re: [PATCH 1/1] powerpc: Fix multicast problem in fs_enet driver

2011-04-20 Thread Scott Wood
On Wed, 20 Apr 2011 10:55:19 +0200 Andrea Galbusera wrote: > mac-fec.c was setting individual UDP address registers instead of multicast > group address registers when joining a multicast group. > This prevented from correctly receiving UDP multicast packets. > According to datasheet, replaced ha

Re: hvc_console: Don't access hvc_task if not initialised

2011-04-20 Thread Greg KH
On Wed, Apr 20, 2011 at 06:03:30PM +0530, Amit Shah wrote: > On (Mon) 28 Mar 2011 [11:52:05], Milton Miller wrote: > > On Fri, 25 Mar 2011 about 14:17:14 +0530, Amit Shah wrote: > > > On (Thu) 24 Mar 2011 [08:58:04], Milton Miller wrote: > > > > On Thu, 24 Mar 2011 07:29:58 -, Amit Shah wrote:

Re: hvc_console: Don't access hvc_task if not initialised

2011-04-20 Thread Amit Shah
On (Mon) 28 Mar 2011 [11:52:05], Milton Miller wrote: > On Fri, 25 Mar 2011 about 14:17:14 +0530, Amit Shah wrote: > > On (Thu) 24 Mar 2011 [08:58:04], Milton Miller wrote: > > > On Thu, 24 Mar 2011 07:29:58 -, Amit Shah wrote: > > > > hvc_open() can be called without having any backing device.

Re: [BUG] rebuild_sched_domains considered dangerous

2011-04-20 Thread Peter Zijlstra
On Thu, 2011-03-10 at 15:10 +0100, Peter Zijlstra wrote: > > Also, still waiting to hear from the Power7 folks on how often they > think to rebuild the topology and how they think that makes sense, > afaict Power7 does have actual NUMA nodes unlike s390, so I'm still not > seeing how that's going

[PATCH 1/1] powerpc: Fix multicast problem in fs_enet driver

2011-04-20 Thread Andrea Galbusera
mac-fec.c was setting individual UDP address registers instead of multicast group address registers when joining a multicast group. This prevented from correctly receiving UDP multicast packets. According to datasheet, replaced hash_table_high and hash_table_low with grp_hash_table_high and grp_has

[PATCH] powerpc: stop exporting irq_map

2011-04-20 Thread Grant Likely
First step in eliminating irq_map[] table entirely. This patch makes the irq_map[] table only accessible by arch/powerpc/kernel/irq.c Signed-off-by: Grant Likely --- arch/powerpc/include/asm/irq.h | 15 +--- arch/powerpc/kernel/irq.c| 26 +++ ar

Re: [PATCH] driver/FSL SATA: Update RX_WATER_MARK for TRANSCFG

2011-04-20 Thread Takada, Kazunori
Dear linux-ppc-dev Team I am Kazunori Takada, and the occupation of FAE of AVNET Japan. This time, the question on this patch has been received from the customer who is using MPC8377E. Therefore, it E-mailed ..this... The question from the customer is described to the following. The bit of r