Re: [RFC] GPIO-Watchdog in devicetree

2008-09-25 Thread David Gibson
On Thu, Sep 25, 2008 at 01:21:23PM -0500, Scott Wood wrote: > Grant Likely wrote: >> On Thu, Sep 25, 2008 at 11:59 AM, Scott Wood <[EMAIL PROTECTED]> wrote: >>> On Tue, Sep 23, 2008 at 09:02:56AM -0600, Grant Likely wrote: For example: / { model = "pengutronix,super-sexy-board"

Re: [RFC] GPIO-Watchdog in devicetree

2008-09-25 Thread David Gibson
On Mon, Sep 22, 2008 at 09:43:57PM +0200, Wolfram Sang wrote: > Hello all, > > I understood that the device-tree is for describing hardware and should > not contain driver specific information. I have problems drawing this > line right now. I made a driver for watchdogs which are pinged by > toggl

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-25 Thread Milton Miller
(I trimmed the cc list for the implementation discussion). > On Wed, 24 Sep 2008 11:42:15 -0500 Milton Miller > <[EMAIL PROTECTED]> wrote: > > > On Sep 24, 2008, at 7:30 AM, Sebastien Dugue wrote: > > > Hi Milton, > > > On Wed, 24 Sep 2008 04:58:22 -0500 (CDT) Milton Miller > > > <[EMAIL PROTE

Re: [RFC] powerpc/boot: compare _start against ei.loadsize instead ei.memsize

2008-09-25 Thread Sebastian Siewior
* Milton Miller | 2008-09-23 20:46:18 [-0500]: >On Wed Sep 24 at about 06:38:57 EST in 2008, Sebastian Siewior wrote: >> My mylinux binary incl. bss is ~5 MiB without bss less than 4 MiB. >> Therefore I though that I could replace ei.memsize with ei.loadsize. It >> didn't work. I'm not sure why it

Re: [RFC/PATCH] powerpc: Cleanup 32/64 bit syscall int sign ext.

2008-09-25 Thread Benjamin Herrenschmidt
On Thu, 2008-09-25 at 13:52 -0500, Scott Wood wrote: > On Thu, Sep 25, 2008 at 05:01:36PM +1000, Benjamin Herrenschmidt wrote: > > +#define XGLUE(a,b) a##b > > +#define GLUE(a,b) XGLUE(a,b) > > GLUE() doesn't appear to be used. Yup, obsolete remains from an earlier variant. Ben. __

Re: MPC5200 PCI interrupt routing

2008-09-25 Thread Benjamin Herrenschmidt
> I hadn't really wanted to go down this route because the calculation of > the clock, or the decision to use an external clock or calculate an > internal clock is very board specific. I'll need to take another look > to decide if it is reasonable to encode it into the device tree. Could be done

Re: take in count O_NONBLOCK flag for rtas log

2008-09-25 Thread David Howells
Vitaly Mayatskikh <[EMAIL PROTECTED]> wrote: > + if (!logging_enabled) { > + spin_unlock_irqrestore(&rtasd_log_lock, s); > + error = -ENODATA; > + goto out; > + } else > + nvram_clear_error_log(

RE: [PATCH] remove bogus ppc_select syscall

2008-09-25 Thread Sadashiiv, Halesh
>One more thing noticed while building the kernel, it gave warning > >kernel/power/Kconfig:97:warning: 'select' used by config symbol >'PM_SLEEP_SMP' refers to undefined symbol 'HOTPLUG_CPU' Apologies, this is not related to the Fix. Please ignore my previous post. > >Thanks >Halesh > > > > >>-

RE: [PATCH] remove bogus ppc_select syscall

2008-09-25 Thread Sadashiiv, Halesh
One more thing noticed while building the kernel, it gave warning kernel/power/Kconfig:97:warning: 'select' used by config symbol 'PM_SLEEP_SMP' refers to undefined symbol 'HOTPLUG_CPU' Thanks Halesh >-Original Message- >From: Sadashiiv, Halesh >Sent: Wednesday, September 24, 2008 2:

RE: [PATCH] remove bogus ppc_select syscall

2008-09-25 Thread Sadashiiv, Halesh
I have tested the provided patch on PPC32 with little modifications. Test passed on the PPC32. Modification to Arnd's Patch: In systbl.h you have changed -SYSX(sys_ni_syscall,sys_ni_syscall,ppc_select) +SYSCALL(sys_ni_syscall) That has to be

Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module

2008-09-25 Thread Scott Wood
Timur Tabi wrote: Scott Wood wrote: I chose subsys_initcall() to increase the probability that fsldma is already present when DMA clients are loaded/initialized and register. If there's no dependency, why does it matter whether fsldma is already present? Re-read my explanation, please. I r

Re: [RFC] powerpc/boot: compare _start against ei.loadsize instead ei.memsize

2008-09-25 Thread Milton Miller
- Original Message Follows - From: Sebastian Siewior <[EMAIL PROTECTED]> To: Milton Miller <[EMAIL PROTECTED]> Cc: linuxppc-dev@ozlabs.org, David Gibson <[EMAIL PROTECTED]>, Grant Likely <[EMAIL PROTECTED]> Subject: Re: [RFC] powerpc/boot: compare _start against ei.loadsize instead ei.memsi

Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module

2008-09-25 Thread Timur Tabi
Scott Wood wrote: >> I chose subsys_initcall() to increase the probability that fsldma is >> already present when DMA clients are loaded/initialized and register. > > If there's no dependency, why does it matter whether fsldma is already > present? Re-read my explanation, please. Technically,

Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module

2008-09-25 Thread Scott Wood
Timur Tabi wrote: There are no dependencies. fsldma registers with the DMA engine, which is always built in-kernel. The DMA engine is what handles linking DMA clients to DMA drivers. The DMA clients get a callback whenever a DMA driver registers with the DMA engine. If the DMA driver is alread

Re: [RFC/PATCH] powerpc: Cleanup 32/64 bit syscall int sign ext.

2008-09-25 Thread Scott Wood
On Thu, Sep 25, 2008 at 05:01:36PM +1000, Benjamin Herrenschmidt wrote: > +#define XGLUE(a,b) a##b > +#define GLUE(a,b) XGLUE(a,b) GLUE() doesn't appear to be used. -Scott ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/

Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module

2008-09-25 Thread Timur Tabi
On Thu, Sep 25, 2008 at 1:40 PM, Scott Wood <[EMAIL PROTECTED]> wrote: > If there's a dependency there, how will it work when this is built as a > module? There are no dependencies. fsldma registers with the DMA engine, which is always built in-kernel. The DMA engine is what handles linking DMA

Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module

2008-09-25 Thread Scott Wood
On Thu, Sep 25, 2008 at 08:54:30AM -0500, Timur Tabi wrote: > Li Yang wrote: > > >> -subsys_initcall(of_fsl_dma_chan_init); > >> subsys_initcall(of_fsl_dma_init); > > > > Not a critical problem. But module_init() are preferred for modules. > > This was intentional. When compiled as a module,

take in count O_NONBLOCK flag for rtas log

2008-09-25 Thread Vitaly Mayatskikh
rtas_log_read() doesn't check file flags for O_NONBLOCK and blocks non-blocking reader of /proc/ppc64/rtas/error_log if there's no data available. This patch fixes the problem. Signed-off-by: Vitaly Mayatskikh <[EMAIL PROTECTED]> diff --git a/arch/powerpc/platforms/pseries/rtasd.c b/arch/powerpc

[PATCH 2/2] powerpc/QE: implement QE Pin Multiplexing API

2008-09-25 Thread Anton Vorontsov
Today the API is still based on a fact that QE gpio controllers are registered. If they aren't, the API won't work (gracefully though). There is one caveat though: if anybody occupied the node->data before us, or overwrote it, then bad things will happen. Luckily this is all in the platform code t

[PATCH 1/2] OF: new helper: of_parse_phandles_with_args()

2008-09-25 Thread Anton Vorontsov
Factored out of of_get_gpio(). Will be used by the QE pin multiplexing functions (they need to parse the gpios = <> too). Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- drivers/of/base.c | 111 drivers/of/gpio.c | 77 +++---

[RFC PATCH 0/2] QE Pin Multiplexing API

2008-09-25 Thread Anton Vorontsov
Here is the sketch, only for RFC. It is tested to work, but there could be silly thinkos anyway. I'll review the changes once again later... Anyhow... David, is this approach looks ok? Or I'm hopeless..? ;-) -- Anton Vorontsov email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 _

Re: [RFC] GPIO-Watchdog in devicetree

2008-09-25 Thread Scott Wood
Grant Likely wrote: On Thu, Sep 25, 2008 at 11:59 AM, Scott Wood <[EMAIL PROTECTED]> wrote: On Tue, Sep 23, 2008 at 09:02:56AM -0600, Grant Likely wrote: For example: / { model = "pengutronix,super-sexy-board"; #address-cells = <1>; #size-cells = <1>; super-sexy-board,wa

Re: [RFC] powerpc/boot: compare _start against ei.loadsize instead ei.memsize

2008-09-25 Thread Scott Wood
On Tue, Sep 23, 2008 at 10:38:57PM +0200, Sebastian Siewior wrote: > My current (working) solution is to move cuImage from 4 MiB to 8 MiB. > Something similar has been done for pSeries in 9b09c6d "powerpc: Change > the default link address for pSeries zImage kernels". Would it be > appropriate to m

Re: MPC5200 PCI interrupt routing

2008-09-25 Thread Grant Likely
On Thu, Sep 25, 2008 at 12:02 PM, Jon Smirl <[EMAIL PROTECTED]> wrote: > The new mpc5200 datasheet has removed the option of using a 16x > multiplier on a 33Mhz crystal and running the core at 528Mhz. The new > datasheet only allows up to 400Mhz for the core. Anyone know what is > going on? You me

Re: [RFC] GPIO-Watchdog in devicetree

2008-09-25 Thread Grant Likely
On Thu, Sep 25, 2008 at 11:59 AM, Scott Wood <[EMAIL PROTECTED]> wrote: > > On Tue, Sep 23, 2008 at 09:02:56AM -0600, Grant Likely wrote: > > For example: > > / { > > model = "pengutronix,super-sexy-board"; > > #address-cells = <1>; > > #size-cells = <1>; > > super-sexy-boar

Re: MPC5200 PCI interrupt routing

2008-09-25 Thread Jon Smirl
On Thu, Sep 25, 2008 at 12:57 PM, Grant Likely <[EMAIL PROTECTED]> wrote: > On Thu, Sep 25, 2008 at 09:51:14AM +0200, Juergen Beisert wrote: >> Benjamin, >> >> On Mittwoch, 24. September 2008, Benjamin Herrenschmidt wrote: >> > On Wed, 2008-09-24 at 12:15 -0600, Grant Likely wrote: >> > > On Wed, S

Re: [RFC] GPIO-Watchdog in devicetree

2008-09-25 Thread Scott Wood
On Tue, Sep 23, 2008 at 09:02:56AM -0600, Grant Likely wrote: > For example: > / { > model = "pengutronix,super-sexy-board"; > #address-cells = <1>; > #size-cells = <1>; > super-sexy-board,watchdog-gpio = <&gpio_simple 19 0>; > ... > } Why as a property of the root no

Re: MPC5200 PCI interrupt routing

2008-09-25 Thread Grant Likely
On Thu, Sep 25, 2008 at 09:51:14AM +0200, Juergen Beisert wrote: > Benjamin, > > On Mittwoch, 24. September 2008, Benjamin Herrenschmidt wrote: > > On Wed, 2008-09-24 at 12:15 -0600, Grant Likely wrote: > > > On Wed, Sep 24, 2008 at 05:16:34PM +0200, Juergen Beisert wrote: > > > > On Dienstag, 23.

Re: MPC5200 PCI interrupt routing

2008-09-25 Thread Grant Likely
On Thu, Sep 25, 2008 at 07:22:25AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2008-09-24 at 12:15 -0600, Grant Likely wrote: > > On Wed, Sep 24, 2008 at 05:16:34PM +0200, Juergen Beisert wrote: > > > On Dienstag, 23. September 2008, Juergen Beisert wrote: > > > > What Kernel do you run on your

Re: [PATCH v2] powerpc: implement support for MPC8349-compatible SOC GPIOs

2008-09-25 Thread Scott Wood
On Fri, Sep 19, 2008 at 05:11:15PM +0200, Peter Korsgaard wrote: > Anton> This is purposely. We also need support for 8610, and maybe > Anton> later we'll find another chip with the same unit. So, to not touch > Anton> the Kconfig for every new chip I just made it PPC32-wide. Other > Anton> opt

Re: [PATCH v2] powerpc: implement support for MPC8349-compatible SOC GPIOs

2008-09-25 Thread Scott Wood
On Fri, Sep 19, 2008 at 01:46:49PM -0500, Kumar Gala wrote: > You are correct we try to avoid this, but than I suggest we do it by > family. I think its confusing to show 8610 and 8349 in the same dev > tree. I don't think it's confusing (at least, not moreso than picking an arbitrary chip wi

Re: [PATCH] pata_platform struct resource signness fix

2008-09-25 Thread Anton Vorontsov
On Thu, Sep 25, 2008 at 11:33:35PM +0800, Wang Jian wrote: > Li Yang wrote: >> On Thu, Sep 25, 2008 at 4:54 PM, Wang Jian <[EMAIL PROTECTED]> wrote: >>> The alternative fix can be. >> >> This one is better as 0 is defined as 'invalid irq' for all >> architectures. Added linux-ide and Anton to cc.

Re: libfdt: Fix bugs in fdt_get_path()

2008-09-25 Thread Jon Loeliger
> The current implementation of fdt_get_path() has a couple of bugs, > fixed by this patch. > > First, contrary to its documentation, on success it returns the length > of the node's path, rather than 0. The testcase is correspondingly > wrong, and the patch fixes this as well. > > Second, in so

Re: [PATCH] pata_platform struct resource signness fix

2008-09-25 Thread Wang Jian
Li Yang wrote: On Thu, Sep 25, 2008 at 4:54 PM, Wang Jian <[EMAIL PROTECTED]> wrote: The alternative fix can be. This one is better as 0 is defined as 'invalid irq' for all architectures. Added linux-ide and Anton to cc. However, this is not very true. Just git grep "#define NO_IRQ" and see

docs for various "linux," properties in the device tree?

2008-09-25 Thread Kumar Gala
In search our code base we have the following set of properties: "linux,boot-cpu" "linux,boot-display" "linux,bootx-addr" "linux,bootx-depth" "linux,bootx-height" "linux,bootx-linebytes" "linux,bootx-width" "linux,crashkernel-base" "linux,crashkernel-size" "linux,drconf-usable-memory" "linux,htab

purpose of definition of "linux,memory-limit" property

2008-09-25 Thread Kumar Gala
Can anyone tell me if "linux,memory-limit" is specified anywhere. and if so where and if not what its intent is? - k ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module

2008-09-25 Thread Timur Tabi
Li Yang wrote: >> -subsys_initcall(of_fsl_dma_chan_init); >> subsys_initcall(of_fsl_dma_init); > > Not a critical problem. But module_init() are preferred for modules. This was intentional. When compiled as a module, subsys_initcall becomes module_init(). When compiled in-kernel, this code i

Re: Fix PCI in Holly device tree

2008-09-25 Thread Josh Boyer
On Thu, Sep 25, 2008 at 08:11:29AM -0400, Josh Boyer wrote: >On Thu, 25 Sep 2008 12:39:04 +1000 >David Gibson <[EMAIL PROTECTED]> wrote: > >> The PCI bridge on the Holly board is current incorrectly represented >> in the device tree. The current device tree node for the PCI bridge >> sits under th

Re: Fix PCI in Holly device tree

2008-09-25 Thread Josh Boyer
On Thu, 25 Sep 2008 12:39:04 +1000 David Gibson <[EMAIL PROTECTED]> wrote: > The PCI bridge on the Holly board is current incorrectly represented > in the device tree. The current device tree node for the PCI bridge > sits under the tsi-bridge node. That's not obviously wrong, but the > PCI brid

Re: [PATCH] pata_platform struct resource signness fix

2008-09-25 Thread Anton Vorontsov
On Thu, Sep 25, 2008 at 06:40:59PM +0800, Li Yang wrote: > On Thu, Sep 25, 2008 at 4:54 PM, Wang Jian <[EMAIL PROTECTED]> wrote: > > The alternative fix can be. > > This one is better as 0 is defined as 'invalid irq' for all > architectures. Added linux-ide and Anton to cc. Thanks for the correc

Re: [PATCH] pata_platform struct resource signness fix

2008-09-25 Thread Li Yang
On Thu, Sep 25, 2008 at 4:54 PM, Wang Jian <[EMAIL PROTECTED]> wrote: > The alternative fix can be. This one is better as 0 is defined as 'invalid irq' for all architectures. Added linux-ide and Anton to cc. - Leo > > diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c

Re: [RFC] powerpc/boot: compare _start against ei.loadsize instead ei.memsize

2008-09-25 Thread Sebastian Siewior
Milton Miller wrote: My current (working) solution is to move cuImage from 4 MiB to 8 MiB. Something similar has been done for pSeries in 9b09c6d "powerpc: Change the default link address for pSeries zImage kernels". Would it be appropriate to move initial address to 64 MiB as the default loading

Re: [RFC] powerpc/boot: add kernel,end node to the cuboot target

2008-09-25 Thread Sebastian Siewior
Milton Miller wrote: On Wed Sep 24 at about 05:54:04 EST 2008, Sebastian Siewior wrote: this could be used by the kexec userland code. NACK. [...] Thanks for explanation. I just went through the kexec user land code and saw that the 64bit code uses the device tree to obtain some address and 3

Re: [RFC] powerpc/boot: add kernel,end node to the cuboot target

2008-09-25 Thread Sebastian Siewior
Kumar Gala wrote: I missing why you are doing this? Do you plan on using it w/32-bit kexec? Yes. I plan to kexec my mpc8544 board. - k Sebastian ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-de

Re: [PATCH] pata_platform struct resource signness fix

2008-09-25 Thread Wang Jian
As I said, I didn't spend much time on the issue, so I don't know which patch is better. (But I do think the patch to pata_of_platform.c is better ATM). AFAIK, powerpc is the only consumer of pata_of_platform.c, so I think this list is better for discussion. I should cc: Anton Vorontsov <[EMAIL

Re: [PATCH] pata_platform struct resource signness fix

2008-09-25 Thread Leo Li
On Thu, Sep 25, 2008 at 4:36 PM, Wang Jian <[EMAIL PROTECTED]> wrote: > Hi, > > This patch is to pata_platform.c but at this time, it's powerpc specific > because it can only be triggerred using openfirmware, so I post the patch > here. The patch is against 2.6.26-rc8. Powerpc isn't the only arch

Re: [Bugme-new] [Bug 11629] New: quad G5 fails to shut down

2008-09-25 Thread Johannes Berg
I wrote: > And here's the fix. Well, that should of course remove that comment there too. New version below. From: Johannes Berg <[EMAIL PROTECTED]> Subject: powerpc: fix shutdown I tracked down the shutdown regression to CPUs not dying when being shut down during power-off. This turns out to b

Re: [PATCH] pata_platform struct resource signness fix

2008-09-25 Thread Wang Jian
The alternative fix can be. diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index 408da30..1f18ad9 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c @@ -52,7 +52,7 @@ static int __devinit pata_of_platform_probe(struct of_device *ofdev,

Re: Please pull from 'for-2.6.27'

2008-09-25 Thread Jochen Friedrich
Hi Scott, >> This isn't a regression since the stuff is new in 2.6.27. IMHO this can >> wait until 2.6.28. > > It would be a bug in 2.6.27 that did not exist in 2.6.26... is there > anything that used to use another mechanism that now uses this? No, GPIO support on CPM1/CPM2 is new in 2.6.27. B

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-25 Thread Sebastien Dugue
On Wed, 24 Sep 2008 11:42:15 -0500 Milton Miller <[EMAIL PROTECTED]> wrote: > On Sep 24, 2008, at 7:30 AM, Sebastien Dugue wrote: > > Hi Milton, > > On Wed, 24 Sep 2008 04:58:22 -0500 (CDT) Milton Miller > > <[EMAIL PROTECTED]> wrote: > >> On Mon Sep 15 at 18:04:06 EST in 2008, Sebastien Dugue

[PATCH] pata_platform struct resource signness fix

2008-09-25 Thread Wang Jian
Hi, This patch is to pata_platform.c but at this time, it's powerpc specific because it can only be triggerred using openfirmware, so I post the patch here. The patch is against 2.6.26-rc8. The problem is triggerred when ata device is populated using pata_of_platform.c, and no irq is assigned (p

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-25 Thread Sebastien Dugue
On Thu, 25 Sep 2008 18:36:19 +1000 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > Do you mean creating a custom fasteoi handler into xics.c? Also, it's > > not clear to me from looking at the code how you go about changing the > > cpu priority. > > Yup. I think the priority is the CP

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-25 Thread Benjamin Herrenschmidt
> Do you mean creating a custom fasteoi handler into xics.c? Also, it's > not clear to me from looking at the code how you go about changing the > cpu priority. Yup. I think the priority is the CPPR.. Milton can give you more details, if not, I'll pick it up tomorrow when at the office. Ben.

Re: MPC5200 PCI interrupt routing

2008-09-25 Thread Benjamin Herrenschmidt
> But how to deal with platform specific things like (in this case) unknown > external clock or usage of the internal clock generator (= how to setup the > frequency divider)? You can always use the platform feature hacks like I do on powermac but we should definitely find something better. May

Re: MPC5200 PCI interrupt routing

2008-09-25 Thread Juergen Beisert
Benjamin, On Mittwoch, 24. September 2008, Benjamin Herrenschmidt wrote: > On Wed, 2008-09-24 at 12:15 -0600, Grant Likely wrote: > > On Wed, Sep 24, 2008 at 05:16:34PM +0200, Juergen Beisert wrote: > > > On Dienstag, 23. September 2008, Juergen Beisert wrote: > > > > What Kernel do you run on you

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-25 Thread Sebastien Dugue
On Thu, 25 Sep 2008 17:22:41 +1000 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > On Thu, 2008-09-25 at 09:18 +0200, Sebastien Dugue wrote: > > > > > Ok, that's the right approach then. It should work. I don't know > > what > > > the specific problems with HEA are at this stage. > > > >

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-25 Thread Sebastien Dugue
On Thu, 25 Sep 2008 07:14:07 +1000 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > There may be some implicit assumption in that we expect the cpu > > priority to be returned to normal by the EOI, but there is nothing in > > the hardware that requires the EOI to come from the same cpu

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-25 Thread Benjamin Herrenschmidt
On Thu, 2008-09-25 at 09:18 +0200, Sebastien Dugue wrote: > > > Ok, that's the right approach then. It should work. I don't know > what > > the specific problems with HEA are at this stage. > > Yep, except as it behaves in way that the current -rt fasteoi flow > cannot handle. We probably need

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-25 Thread Sebastien Dugue
On Thu, 25 Sep 2008 07:15:17 +1000 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > On Wed, 2008-09-24 at 14:35 +0200, Sebastien Dugue wrote: > > Hi Ben, > > > > On Wed, 24 Sep 2008 20:17:47 +1000 Benjamin Herrenschmidt <[EMAIL > > PROTECTED]> wrote: > > > > > On Wed, 2008-09-24 at 04:58 -0

[RFC/PATCH] powerpc: Cleanup 32/64 bit syscall int sign ext.

2008-09-25 Thread Benjamin Herrenschmidt
I noticed that our ABI says callers are responsible for sign extending. That means that all int, long or similarly signed arguments to syscalls must be explicitly sign-extended. We already have wrappers to do that for -some- syscalls in arch code. Those are in C and pretty ugly, copy/pasting a bun