Re: [PATCH] powerpc: Rework I$/D$ coherency (v2)

2009-02-07 Thread David Miller
From: Benjamin Herrenschmidt b...@kernel.crashing.org Date: Mon, 02 Feb 2009 11:10:24 +1100 +/* has to be a macro because of include dependencies */ +static inline int is_exec_fault(void) +{ + return current-thread.regs TRAP(current-thread.regs) == 0x400; +} Nice macro :-)

Re: [PATCH] powerpc: Rework I$/D$ coherency (v2)

2009-02-07 Thread Benjamin Herrenschmidt
On Sat, 2009-02-07 at 00:22 -0800, David Miller wrote: From: Benjamin Herrenschmidt b...@kernel.crashing.org Date: Mon, 02 Feb 2009 11:10:24 +1100 +/* has to be a macro because of include dependencies */ +static inline int is_exec_fault(void) +{ + return current-thread.regs

Re: [patch] powerpc/ps3: Use hard coded values for LV1 device type

2009-02-07 Thread Sachin P. Sant
Geoff Levand wrote: Change the PS3 platform code to use hard coded numbers for its LV1 device types. The PS3 platform code was incorrectly using some scsi block constants for the device type returned from the LV1 hypervisor. Fixes build errors like these when CONFIG_BLOCK=n: In file

Re: [PATCH] bootgraph: fix for use with dot symbols

2009-02-07 Thread Michael Neuling
question for the ppc folks why does the print symbol magic format str ing thing print a dot symbol and not the real function name? Should that be fixed instead? We have two symbols for each function, foo points to the function descriptor, and .foo points to the instruction text. If

Re: hash-table creation...

2009-02-07 Thread Benjamin Herrenschmidt
On Sat, 2009-02-07 at 11:43 +0530, sumedh tirodkar wrote: Hello, I wanted algorithm for creating hash tables used in paging mechanism.. In the manual that i read i got algorithm to convert Effective Address to Real Address using these hash tables that are created..but i could not find how

Re: Badness at kernel/time/timekeeping.c:98 in pmud (timekeeping_suspended)

2009-02-07 Thread Paul Collins
Paul Collins p...@burly.ondioline.org writes: Rafael J. Wysocki r...@sisk.pl writes: On Wednesday 21 January 2009, Paul Collins wrote: Got a couple of these on a PowerBook running 2.6.29-rc2 either during suspend or resume -- it's hard to tell. (The suspend message is timestamped in syslog

[PATCH] ftrace, powerpc64: fix math to calculate offset in TOC

2009-02-07 Thread Steven Rostedt
Paul, I found the bug that was causing large modules to fail in setting up dynamic ftrace. It wound up being a simple math error. To calculate the offset in the TOC, I had used an OR, but the bottom half was a signed extended short, and it should have been an addition. The fix is in my tree