Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Ingo Molnar
* Thomas Renninger tr...@suse.de wrote: Changes in V2: - Introduce PWR_EVENT_EXIT instead of 0 to mark non-power state - Use u32 instead of u64 for cpuid, state which is by far enough New power trace events: power:processor_idle power:processor_frequency power:machine_suspend

[GIT PULL] omap DSS changes for 2.6.27

2010-10-26 Thread Tomi Valkeinen
Hi Linus, Please pull OMAP display subsystem changes: The following changes since commit 899611ee7d373e5eeda08e9a8632684e1ebbbf00: Linux 2.6.36-rc6 (2010-09-28 18:01:22 -0700) are available in the git repository at: git://gitorious.org/linux-omap-dss2/linux.git for-linus Archit Taneja

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Jean Pihet
On Tue, Oct 26, 2010 at 1:33 AM, Thomas Renninger tr...@suse.de wrote: Changes in V2:  - Introduce PWR_EVENT_EXIT instead of 0 to mark non-power state  - Use u32 instead of u64 for cpuid, state which is by far enough New power trace events: power:processor_idle power:processor_frequency

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Jean Pihet
Ingo, On Tue, Oct 26, 2010 at 9:10 AM, Ingo Molnar mi...@elte.hu wrote: * Thomas Renninger tr...@suse.de wrote: Changes in V2:   - Introduce PWR_EVENT_EXIT instead of 0 to mark non-power state   - Use u32 instead of u64 for cpuid, state which is by far enough ... +#define PWR_EVENT_EXIT

RE: [GIT PULL] omap DSS changes for 2.6.27

2010-10-26 Thread Shilimkar, Santosh
Tomi, Did you mean '[GIT PULL] omap DSS changes for 2.6.37' and not '[GIT PULL] omap DSS changes for 2.6.27'? -Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap- ow...@vger.kernel.org] On Behalf Of Tomi Valkeinen Sent: Tuesday, October 26, 2010 1:24 PM To:

RE: [GIT PULL] omap DSS changes for 2.6.27

2010-10-26 Thread Tomi Valkeinen
Hi, Oo-ops. Right, the pull request is for 2.6.37. Missed the key, there... Tomi On Tue, 2010-10-26 at 10:14 +0200, ext Shilimkar, Santosh wrote: Tomi, Did you mean '[GIT PULL] omap DSS changes for 2.6.37' and not '[GIT PULL] omap DSS changes for 2.6.27'? -Original Message-

Re: [PATCH 1/1] mtd: OneNAND: fix bufferram management when chip has 2-planes.

2010-10-26 Thread Artem Bityutskiy
On Sat, 2010-10-23 at 15:43 +0200, Enric Balletbo i Serra wrote: This patch adds code that I think was lost when it was applied the commit 5988af2319781bc8e0ce418affec4e09cfa77907 - mtd: Flex-OneNAND support Test case: 1. Stress a jffs2 filesystem using bonnie++ -u 0:0 -s 32 -m 16 -r

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Arjan van de Ven
On 10/26/2010 12:10 AM, Ingo Molnar wrote: + + TP_STRUCT__entry( + __field(u32,state ) + __field(u32,cpu_id ) Trace entries can carry a cpu_id of the current processor already. Can this cpu_id ever be

[PATCH 12/14] drivers/video/omap/blizzard.c: delete double assignment

2010-10-26 Thread Julia Lawall
From: Julia Lawall ju...@diku.dk Delete successive assignments to the same location. Initialize the out_y field as well as the out_x field, rather than initializing the out_x field twice. A simplified version of the semantic match that finds this problem is as follows:

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Ingo Molnar
* Arjan van de Ven ar...@linux.intel.com wrote: On 10/26/2010 12:10 AM, Ingo Molnar wrote: + + TP_STRUCT__entry( + __field(u32,state ) + __field(u32,cpu_id ) Trace entries can carry a cpu_id of the current

Re: [PATCH 1/1] mtd: OneNAND: fix bufferram management when chip has 2-planes.

2010-10-26 Thread Kyungmin Park
On Tue, Oct 26, 2010 at 6:36 PM, Artem Bityutskiy artem.bityuts...@nokia.com wrote: On Sat, 2010-10-23 at 15:43 +0200, Enric Balletbo i Serra wrote: This patch adds code that I think was lost when it was applied the commit   5988af2319781bc8e0ce418affec4e09cfa77907 - mtd: Flex-OneNAND support

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Thomas Renninger
On Tuesday 26 October 2010 09:10:20 Ingo Molnar wrote: * Thomas Renninger tr...@suse.de wrote: Changes in V2: - Introduce PWR_EVENT_EXIT instead of 0 to mark non-power state - Use u32 instead of u64 for cpuid, state which is by far enough New power trace events:

Re: [PATCH v2 08/11] OMAP4: Adding dev atrributes to OMAP4 smartreflex hwmod data

2010-10-26 Thread Cousson, Benoit
On 9/25/2010 2:51 PM, Gopinath, Thara wrote: This patch adds dev attributes for smartreflex modules in the OMAP4 hwmod database. This patch also updates the smartreflex rev in the smartreflex class data structure in the OMAP4 hwmod database. Signed-off-by: Thara Gopinathth...@ti.com ---

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Ingo Molnar
* Thomas Renninger tr...@suse.de wrote: On Tuesday 26 October 2010 09:10:20 Ingo Molnar wrote: * Thomas Renninger tr...@suse.de wrote: Changes in V2: - Introduce PWR_EVENT_EXIT instead of 0 to mark non-power state - Use u32 instead of u64 for cpuid, state which is by far

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Ingo Molnar
* Jean Pihet jean.pi...@newoldbits.com wrote: Ingo, On Tue, Oct 26, 2010 at 9:10 AM, Ingo Molnar mi...@elte.hu wrote: * Thomas Renninger tr...@suse.de wrote: Changes in V2:   - Introduce PWR_EVENT_EXIT instead of 0 to mark non-power state   - Use u32 instead of u64 for cpuid,

Re: [PATCH 1/8] staging: tidspbridge - remove req_addr from proc_map

2010-10-26 Thread Felipe Contreras
On Tue, Oct 26, 2010 at 3:51 AM, Fernando Guzman Lugo x0095...@ti.com wrote: The device address is assigned by tidspbridge no need for that parameter anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com This would break the API with user-space, right? I think this change should be

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Thomas Renninger
On Tuesday 26 October 2010 13:21:29 Ingo Molnar wrote: * Jean Pihet jean.pi...@newoldbits.com wrote: .. +#ifndef _TRACE_POWER_ENUM_ +#define _TRACE_POWER_ENUM_ +enum { + POWER_NONE = 0, + POWER_CSTATE = 1, + POWER_PSTATE = 2, +}; +#endif Since we are

Re: [PATCH 3/3] omap: add hwspinlock device

2010-10-26 Thread Ohad Ben-Cohen
On Mon, Oct 25, 2010 at 9:02 PM, Tony Lindgren t...@atomide.com wrote: if you feel that (2) is justifiable/desirable, I would be more than happy to submit that version. Yes (2) please. I would assume there will be more use of this. And then we (or probably me again!) don't have to deal with

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Ingo Molnar
* Thomas Renninger tr...@suse.de wrote: On Tuesday 26 October 2010 13:21:29 Ingo Molnar wrote: * Jean Pihet jean.pi...@newoldbits.com wrote: .. +#ifndef _TRACE_POWER_ENUM_ +#define _TRACE_POWER_ENUM_ +enum { + POWER_NONE = 0, + POWER_CSTATE = 1, +

[PATCH v2] OMAP2+: PM: omap_device: API for set/get MSTANDBY mode

2010-10-26 Thread G, Manjunath Kondaiah
Certain errata's in OMAP2+ processors will require disabling master standby mode before completing on going operation. Without this, the results will be unpredictable. Since current implementation of PM run time framework does not support changing sysconfig settings during middle of the on going

Re: [PATCH 12/14] drivers/video/omap/blizzard.c: delete double assignment

2010-10-26 Thread Nicolas Kaiser
* Julia Lawall ju...@diku.dk: Delete successive assignments to the same location. Initialize the out_y field as well as the out_x field, rather than initializing the out_x field twice. Hi there! An identical patch is already in the -mm tree: The patch titled

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Thomas Renninger
On Tuesday 26 October 2010 13:54:22 Ingo Molnar wrote: * Thomas Renninger tr...@suse.de wrote: .. As you state above: POWER_NONE does not make sense at all. The whole thing (type= attribute that vanishes now) is passed to userspace, but never gets used there because the same info is in

[PATCH v3 03/13] OMAP: DMA: Introduce DMA device attributes

2010-10-26 Thread G, Manjunath Kondaiah
This patch introduces OMAP DMA device attributes for using the same in DMA platform driver for all OMAP's and HWMOD database(OMAP2PLUS onwards) Signed-off-by: G, Manjunath Kondaiah manj...@ti.com Cc: Benoit Cousson b-cous...@ti.com Cc: Kevin Hilman khil...@deeprootsystems.com Cc: Santosh

[PATCH v3 01/13] OMAP: DMA: Replace read/write macros with functions

2010-10-26 Thread G, Manjunath Kondaiah
The low level read/write macros are replaced with static inline functions and register offsets are handled through static register offset tables mapped through enumeration constants. The objective of this patch is to prepare for omap dma driver cleanup and dma hwmod implementation. The code

[PATCH v3 02/13] OMAP: DMA: Introduce errata handling feature

2010-10-26 Thread G, Manjunath Kondaiah
Implement errata handling to use flags instead of cpu_is_* and cpu_class_* in the code. The errata flags are initialized at init time and during runtime we are using the errata variable (via the IS_DMA_ERRATA macro) to execute the required errata workaround. Reused errata handling patch from

[PATCH v3 04/13] OMAP2420: DMA: hwmod: add system DMA

2010-10-26 Thread G, Manjunath Kondaiah
Add OMAP2420 DMA hwmod structures. Signed-off-by: G, Manjunath Kondaiah manj...@ti.com Cc: Benoit Cousson b-cous...@ti.com Cc: Kevin Hilman khil...@deeprootsystems.com Cc: Santosh Shilimkar santosh.shilim...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 85

[PATCH v3 00/13] OMAP: DMA: hwmod and DMA as platform device

2010-10-26 Thread G, Manjunath Kondaiah
This patch series converts DMA library into platform device and hwmod adaptation is done for omap2+ processors. It also replaces cpu_*is* checks by moving omap1 and omap2+ processor code into repsective mach-omapx directories. The common code in plat-omap will use device attributes for

[PATCH v3 05/13] OMAP2430: DMA: hwmod: add system DMA

2010-10-26 Thread G, Manjunath Kondaiah
Add OMAP2430 DMA hwmod structures. Signed-off-by: G, Manjunath Kondaiah manj...@ti.com Cc: Benoit Cousson b-cous...@ti.com Cc: Kevin Hilman khil...@deeprootsystems.com Cc: Santosh Shilimkar santosh.shilim...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2430_data.c | 85

[PATCH v3 06/13] OMAP3: DMA: hwmod: add system DMA

2010-10-26 Thread G, Manjunath Kondaiah
Add OMAP3 DMA hwmod structures. Signed-off-by: G, Manjunath Kondaiah manj...@ti.com Cc: Benoit Cousson b-cous...@ti.com Cc: Kevin Hilman khil...@deeprootsystems.com Cc: Santosh Shilimkar santosh.shilim...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 93

[PATCH v3 07/13] OMAP4: DMA: hwmod: add system DMA

2010-10-26 Thread G, Manjunath Kondaiah
From: Benoit Cousson b-cous...@ti.com Add OMAP4 DMA hwmod structures. Signed-off-by: G, Manjunath Kondaiah manj...@ti.com Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Kevin Hilman khil...@deeprootsystems.com Cc: Santosh Shilimkar santosh.shilim...@ti.com ---

[PATCH v3 08/13] OMAP1: DMA: Introduce DMA driver as platform device

2010-10-26 Thread G, Manjunath Kondaiah
Register OMAP1 DMA driver as platform device and add support for registering through platform device layer using resource structures. Signed-off-by: G, Manjunath Kondaiah manj...@ti.com Cc: Benoit Cousson b-cous...@ti.com Cc: Kevin Hilman khil...@deeprootsystems.com Cc: Santosh Shilimkar

[PATCH v3 09/13] OMAP2+: DMA: hwmod: Device registration

2010-10-26 Thread G, Manjunath Kondaiah
Prepare omap2+ dma driver to use hwmod infrastructure so that DMA driver can register as platform device. Signed-off-by: G, Manjunath Kondaiah manj...@ti.com Cc: Benoit Cousson b-cous...@ti.com Cc: Kevin Hilman khil...@deeprootsystems.com Cc: Santosh Shilimkar santosh.shilim...@ti.com ---

[PATCH v3 10/13] OMAP: DMA: Convert DMA library into DMA platform Driver

2010-10-26 Thread G, Manjunath Kondaiah
Convert DMA library into DMA platform driver and make use of platform data provided by HWMOD data base for OMAP2PLUS onwards. For OMAP1 processors, the DMA driver in mach-omap uses resource structures for getting platform data. Signed-off-by: G, Manjunath Kondaiah manj...@ti.com Cc: Benoit

[PATCH v3 12/13] OMAP2+: DMA: descriptor autoloading feature

2010-10-26 Thread G, Manjunath Kondaiah
Add sDMA driver support for descriptor autoloading feature. Descriptor autoloading is OMAP sDMA v5 hardware capability that can be exploited for scatter gather scenarios, currently available in OMAP3630 and OMAP4430. The feature works as described below. 1. A sDMA channel is programmed to be in

[PATCH v3 13/13] OMAP: PM: DMA: Enable runtime pm

2010-10-26 Thread G, Manjunath Kondaiah
Enable runtime pm and use pm_runtime_get and pm_runtime_put for OMAP DMA driver. Signed-off-by: G, Manjunath Kondaiah manj...@ti.com Cc: Benoit Cousson b-cous...@ti.com Cc: Kevin Hilman khil...@deeprootsystems.com Cc: Santosh Shilimkar santosh.shilim...@ti.com --- arch/arm/plat-omap/dma.c | 13

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Thomas Renninger
On Tuesday 26 October 2010 15:17:43 Thomas Renninger wrote: On Tuesday 26 October 2010 13:54:22 Ingo Molnar wrote: * Thomas Renninger tr...@suse.de wrote: ... If cpuidle is not registered, the events you get are arch specific. I mean they are arch specific anyway, but with cpuidle you can

Re: [PATCH 3/3] tidspbridge: convert OMAP3430 adaptation layer to use new SCM DSP boot control fns

2010-10-26 Thread Omar Ramirez Luna
On Tue, Oct 26, 2010 at 12:43 AM, Paul Walmsley p...@pwsan.com wrote:  arch/arm/mach-omap2/dsp.c                     |    4  arch/arm/plat-omap/include/plat/dsp.h         |    4  drivers/staging/tidspbridge/core/tiomap3430.c |   13 ++--- Could you please split the

Re: [PATCH 0/8] staging: tidspbridge - misc fixes

2010-10-26 Thread Felipe Contreras
gre...@suse.de wrote: On Mon, Oct 25, 2010 at 07:51:38PM -0500, Fernando Guzman Lugo wrote: This set of patches fix some issues found in lastest tree. Fernando Guzman Lugo (8): staging: tidspbridge - remove req_addr from proc_map staging: tidspbridge - add kconfig parameter for DMM

Re: [PATCH v3 01/13] OMAP: DMA: Replace read/write macros with functions

2010-10-26 Thread Nishanth Menon
G, Manjunath Kondaiah had written, on 10/26/2010 08:25 AM, the following: [...] diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index f5c5b8d..77241e2 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c @@ -40,6 +40,147 @@ #undef DEBUG +enum { + GCR1 =

Re: [PATCH 0/8] staging: tidspbridge - misc fixes

2010-10-26 Thread Omar Ramirez Luna
On Tue, Oct 26, 2010 at 9:43 AM, Felipe Contreras felipe.contre...@nokia.com wrote: gre...@suse.de wrote: On Mon, Oct 25, 2010 at 07:51:38PM -0500, Fernando Guzman Lugo wrote: This set of patches fix some issues found in lastest tree. Fernando Guzman Lugo (8):   staging: tidspbridge -

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Pierre Tardy
On Tue, Oct 26, 2010 at 2:10 AM, Ingo Molnar mi...@elte.hu wrote: How will future PCI (or other device) power saving tracepoints be called? Might be more consistent to use:  power:cpu_idle  power:machine_idle  power:device_idle Agree with this. FYI, I have a runtime_pm tracepoint

RE: [PATCH 0/8] staging: tidspbridge - misc fixes

2010-10-26 Thread Guzman Lugo, Fernando
-Original Message- From: Felipe Contreras [mailto:felipe.contre...@nokia.com] Sent: Tuesday, October 26, 2010 9:44 AM To: gre...@suse.de; Guzman Lugo, Fernando Cc: hiroshi.d...@nokia.com; linux-ker...@vger.kernel.org; andy.shevche...@gmail.com; linux-omap@vger.kernel.org;

RE: [PATCH 8/8] staging: tidspbridge - make sync_wait_on_event interruptible

2010-10-26 Thread Guzman Lugo, Fernando
-Original Message- From: Felipe Contreras [mailto:felipe.contre...@gmail.com] Sent: Monday, October 25, 2010 7:59 PM To: Guzman Lugo, Fernando Cc: gre...@suse.de; felipe.contre...@nokia.com; hiroshi.d...@nokia.com; linux-ker...@vger.kernel.org; andy.shevche...@gmail.com;

RE: [PATCH 1/8] staging: tidspbridge - remove req_addr from proc_map

2010-10-26 Thread Guzman Lugo, Fernando
-Original Message- From: Felipe Contreras [mailto:felipe.contre...@gmail.com] Sent: Tuesday, October 26, 2010 6:46 AM To: Guzman Lugo, Fernando Cc: gre...@suse.de; felipe.contre...@nokia.com; hiroshi.d...@nokia.com; linux-ker...@vger.kernel.org; andy.shevche...@gmail.com;

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Arjan van de Ven
On 10/26/2010 8:32 AM, Pierre Tardy wrote: On Tue, Oct 26, 2010 at 2:10 AM, Ingo Molnarmi...@elte.hu wrote: How will future PCI (or other device) power saving tracepoints be called? Might be more consistent to use: power:cpu_idle power:machine_idle power:device_idle Agree with this.

[PATCH v2 4/4] staging: tidspbridge: use new SCM DSP boot control fns

2010-10-26 Thread Omar Ramirez Luna
From: Paul Walmsley p...@pwsan.com Use the new functions from SCM layer instead of handling registers directly with __raw_writel, as explained in: http://marc.info/?l=linux-omapm=128779652429922w=2 Signed-off-by: Paul Walmsley p...@pwsan.com Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com

[PATCH v2 2/4] OMAP3: PM: update DSP reset code to use new SCM DSP boot control functions

2010-10-26 Thread Omar Ramirez Luna
From: Paul Walmsley p...@pwsan.com Update the DSP reset code in pm34xx.c to use one of the new SCM DSP boot control functions, omap2430_ctrl_set_dsp_bootmode(). This reset code should be moved out to a separate function to be called by the hwmod reset process at some point. Also, 2430 should be

[PATCH v3 3/4] OMAP: dsp: convert OMAP3430 adaptation layer to use new SCM DSP boot control fns

2010-10-26 Thread Omar Ramirez Luna
From: Paul Walmsley p...@pwsan.com DSPBridge currently tries to __raw_writel() to the System Control Module to control the DSP boot process. This is a layering violation; this is SoC-specific code, and belongs in a file in arch/arm/mach-omap2/*. None of those CM and PRM register accesses

[PATCH v2 0/4] tidspbridge: SCM layer violation fixes

2010-10-26 Thread Omar Ramirez Luna
This is the patch series shared by Paul, for a short term fix to a compile break due SCM layer layer violations from tidspbridge driver, where the latter is used to write directly into registers and use SCM layer macros, among other layer bypassing. patch: staging: tidspbridge: use new SCM DSP

[PATCH v2 1/4] OMAP: control: add functions for DSP boot address/mode control

2010-10-26 Thread Omar Ramirez Luna
From: Paul Walmsley p...@pwsan.com Add two functions for OMAP2430/OMAP3 IVA2 DSP boot control. These registers wound up in the System Control Module. Other kernel code that wishes to control the DSP's boot process should now use these functions to do so; subsequent patches implement this in the

omap-pcm audio playback skips couple frames at first interrupt

2010-10-26 Thread ylin
Hi, I am using 2.6.32 with omap3evm board. The audio skips a couple of frames at the first interrupt on palyback (TWL4030) when I use small period size (10msec). But the same parameters work fine on capture. With large period/frame size, it works fine also. The skip causes extra delays

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Pierre Tardy
I would like to see a slightly more advanced tracepoint do the runtime pm framework; specifically I'd like to see the comm of the process that's taking a refcount on a device (that way, powertop can track which process keeps a device busy) Yes, the comm for this tracepoint should be the

RE: [PATCH 8/8] staging: tidspbridge - make sync_wait_on_event interruptible

2010-10-26 Thread Felipe Contreras
fernando.l...@ti.com wrote: On Tue, Oct 26, 2010 at 3:51 AM, Fernando Guzman Lugo x0095...@ti.com wrote: So that avoid non-killable process. It would be useful to interrupt these tasks from user-space. A separate ioctl to do that would be needed. I don't see use case where that

RE: [PATCH 1/8] staging: tidspbridge - remove req_addr from proc_map

2010-10-26 Thread Felipe Contreras
fernando.l...@ti.com wrote: On Tue, Oct 26, 2010 at 3:51 AM, Fernando Guzman Lugo x0095...@ti.com wrote: The device address is assigned by tidspbridge no need for that parameter anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com This would break the API with

Re: [PATCH v2 0/4] tidspbridge: SCM layer violation fixes

2010-10-26 Thread Felipe Contreras
On Tue, Oct 26, 2010 at 7:15 PM, Omar Ramirez Luna omar.rami...@ti.com wrote: This is the patch series shared by Paul, for a short term fix to a compile break due SCM layer layer violations from tidspbridge driver, where the latter is used to write directly into registers and use SCM layer

Re: [PATCH v2 0/4] tidspbridge: SCM layer violation fixes

2010-10-26 Thread Omar Ramirez Luna
On Tue, Oct 26, 2010 at 12:13 PM, Felipe Contreras felipe.contre...@gmail.com wrote:  arch/arm/plat-omap/include/plat/iva2_dsp.h    |   56 + Why not use the already existing dsp.h? Good point, I guess when the patch was made dsp.h didn't exist, but since the user of

RE: [PATCH 8/8] staging: tidspbridge - make sync_wait_on_event interruptible

2010-10-26 Thread Guzman Lugo, Fernando
-Original Message- From: Felipe Contreras [mailto:felipe.contre...@nokia.com] Sent: Tuesday, October 26, 2010 12:03 PM To: Guzman Lugo, Fernando; felipe.contre...@gmail.com Cc: gre...@suse.de; hiroshi.d...@nokia.com; linux-ker...@vger.kernel.org; andy.shevche...@gmail.com;

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Peter Zijlstra
On Tue, 2010-10-26 at 11:56 -0500, Pierre Tardy wrote: + trace_runtime_pm_usage(dev, atomic_read(dev-power.usage_count)+1); atomic_inc(dev-power.usage_count); That's terribly racy.. -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message

RE: [PATCH 1/8] staging: tidspbridge - remove req_addr from proc_map

2010-10-26 Thread Guzman Lugo, Fernando
-Original Message- From: Felipe Contreras [mailto:felipe.contre...@nokia.com] Sent: Tuesday, October 26, 2010 12:08 PM To: Guzman Lugo, Fernando; felipe.contre...@gmail.com Cc: gre...@suse.de; hiroshi.d...@nokia.com; linux-ker...@vger.kernel.org; andy.shevche...@gmail.com;

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Mathieu Desnoyers
* Peter Zijlstra (pet...@infradead.org) wrote: On Tue, 2010-10-26 at 11:56 -0500, Pierre Tardy wrote: + trace_runtime_pm_usage(dev, atomic_read(dev-power.usage_count)+1); atomic_inc(dev-power.usage_count); That's terribly racy.. Looking at the original code, it looks

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Pierre Tardy
On Tue, Oct 26, 2010 at 12:58 PM, Peter Zijlstra pet...@infradead.org wrote: On Tue, 2010-10-26 at 11:56 -0500, Pierre Tardy wrote: +       trace_runtime_pm_usage(dev, atomic_read(dev-power.usage_count)+1);         atomic_inc(dev-power.usage_count); That's terribly racy.. I know. I'm not

Re: [linux-pm] [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Alan Stern
On Tue, 26 Oct 2010, Mathieu Desnoyers wrote: * Peter Zijlstra (pet...@infradead.org) wrote: On Tue, 2010-10-26 at 11:56 -0500, Pierre Tardy wrote: + trace_runtime_pm_usage(dev, atomic_read(dev-power.usage_count)+1); atomic_inc(dev-power.usage_count); That's

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Rafael J. Wysocki
On Tuesday, October 26, 2010, Thomas Renninger wrote: Changes in V2: - Introduce PWR_EVENT_EXIT instead of 0 to mark non-power state - Use u32 instead of u64 for cpuid, state which is by far enough New power trace events: power:processor_idle power:processor_frequency

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Rafael J. Wysocki
On Tuesday, October 26, 2010, Thomas Renninger wrote: On Tuesday 26 October 2010 13:21:29 Ingo Molnar wrote: * Jean Pihet jean.pi...@newoldbits.com wrote: .. +#ifndef _TRACE_POWER_ENUM_ +#define _TRACE_POWER_ENUM_ +enum { + POWER_NONE = 0, + POWER_CSTATE = 1,

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Rafael J. Wysocki
On Tuesday, October 26, 2010, Ingo Molnar wrote: * Thomas Renninger tr...@suse.de wrote: On Tuesday 26 October 2010 09:10:20 Ingo Molnar wrote: * Thomas Renninger tr...@suse.de wrote: Changes in V2: - Introduce PWR_EVENT_EXIT instead of 0 to mark non-power state -

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Rafael J. Wysocki
On Tuesday, October 26, 2010, Mathieu Desnoyers wrote: * Peter Zijlstra (pet...@infradead.org) wrote: On Tue, 2010-10-26 at 11:56 -0500, Pierre Tardy wrote: + trace_runtime_pm_usage(dev, atomic_read(dev-power.usage_count)+1); atomic_inc(dev-power.usage_count);

Re: [PATCH 3/3] omap: add hwspinlock device

2010-10-26 Thread Tony Lindgren
* Ohad Ben-Cohen o...@wizery.com [101026 04:45]: On Mon, Oct 25, 2010 at 9:02 PM, Tony Lindgren t...@atomide.com wrote: if you feel that (2) is justifiable/desirable, I would be more than happy to submit that version. Yes (2) please. I would assume there will be more use of this. And then

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Rafael J. Wysocki
On Tuesday, October 26, 2010, Pierre Tardy wrote: On Tue, Oct 26, 2010 at 12:58 PM, Peter Zijlstra pet...@infradead.org wrote: On Tue, 2010-10-26 at 11:56 -0500, Pierre Tardy wrote: + trace_runtime_pm_usage(dev, atomic_read(dev-power.usage_count)+1);

RE: [PATCH 8/8] staging: tidspbridge - make sync_wait_on_event interruptible

2010-10-26 Thread Felipe Contreras
fernando.l...@ti.com wrote: fernando.l...@ti.com wrote: On Tue, Oct 26, 2010 at 3:51 AM, Fernando Guzman Lugo x0095...@ti.com wrote: So that avoid non-killable process. It would be useful to interrupt these tasks from user-space. A separate ioctl to do that would be

RE: [PATCH 1/8] staging: tidspbridge - remove req_addr from proc_map

2010-10-26 Thread Felipe Contreras
fernando.l...@ti.com wrote: fernando.l...@ti.com wrote: On Tue, Oct 26, 2010 at 3:51 AM, Fernando Guzman Lugo x0095...@ti.com wrote: The device address is assigned by tidspbridge no need for that parameter anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com

RE: [PATCH 8/8] staging: tidspbridge - make sync_wait_on_event interruptible

2010-10-26 Thread Guzman Lugo, Fernando
-Original Message- From: Felipe Contreras [mailto:felipe.contre...@nokia.com] Sent: Tuesday, October 26, 2010 2:27 PM To: Guzman Lugo, Fernando; felipe.contre...@gmail.com Cc: gre...@suse.de; hiroshi.d...@nokia.com; linux-ker...@vger.kernel.org; andy.shevche...@gmail.com;

RE: [PATCH 1/8] staging: tidspbridge - remove req_addr from proc_map

2010-10-26 Thread Guzman Lugo, Fernando
-Original Message- From: Felipe Contreras [mailto:felipe.contre...@nokia.com] Sent: Tuesday, October 26, 2010 2:38 PM To: Guzman Lugo, Fernando; felipe.contre...@gmail.com Cc: gre...@suse.de; hiroshi.d...@nokia.com; linux-ker...@vger.kernel.org; andy.shevche...@gmail.com;

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Rafael J. Wysocki
On Tuesday, October 26, 2010, Pierre Tardy wrote: On Tue, Oct 26, 2010 at 2:08 PM, Rafael J. Wysocki r...@sisk.pl wrote: On Tuesday, October 26, 2010, Pierre Tardy wrote: On Tue, Oct 26, 2010 at 12:58 PM, Peter Zijlstra pet...@infradead.org wrote: On Tue, 2010-10-26 at 11:56 -0500,

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Arjan van de Ven
On 10/26/2010 1:38 PM, Rafael J. Wysocki wrote: On Tuesday, October 26, 2010, Pierre Tardy wrote: On Tue, Oct 26, 2010 at 2:08 PM, Rafael J. Wysockir...@sisk.pl wrote: On Tuesday, October 26, 2010, Pierre Tardy wrote: On Tue, Oct 26, 2010 at 12:58 PM, Peter Zijlstrapet...@infradead.org

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Rafael J. Wysocki
On Tuesday, October 26, 2010, Arjan van de Ven wrote: On 10/26/2010 1:38 PM, Rafael J. Wysocki wrote: On Tuesday, October 26, 2010, Pierre Tardy wrote: On Tue, Oct 26, 2010 at 2:08 PM, Rafael J. Wysockir...@sisk.pl wrote: On Tuesday, October 26, 2010, Pierre Tardy wrote: On Tue, Oct 26,

[PATCH 1/5] omap: mailbox: initial hwmod support for omap3

2010-10-26 Thread Omar Ramirez Luna
From: Felipe Contreras felipe.contre...@gmail.com HWMOD support for omap3. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/mach-omap2/devices.c | 100 ---

[PATCH 4/5] omap: mailbox: fix detection for previously supported chips

2010-10-26 Thread Omar Ramirez Luna
Fix the mailbox detection for OMAP3630 and 2430, also minor cleanup on conditional ifdef's that could affect it. Given that 2430 has an iva too include it, as the same steps for omap3 apply. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/mach-omap2/mailbox.c | 16

[PATCH 3/5] omap: mailbox: add omap_device latency information

2010-10-26 Thread Omar Ramirez Luna
From: Felipe Contreras felipe.contre...@gmail.com So that we can enable the main clock. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/mach-omap2/devices.c | 19 +--

[PATCH 2/5] omap: mailbox: initial hwmod support for omap2

2010-10-26 Thread Omar Ramirez Luna
HWMOD support for omap2430 and 2420. Compiled tested only. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 55 arch/arm/mach-omap2/omap_hwmod_2430_data.c | 54 +++ 2 files changed, 109

[PATCH 5/5] omap: mailbox: remove unreachable return

2010-10-26 Thread Omar Ramirez Luna
Remove unreachable return statement. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/mach-omap2/mailbox.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index b8fd120..2dd0e07 100644 ---

Re: [linux-pm] [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Rafael J. Wysocki
On Tuesday, October 26, 2010, Mathieu Desnoyers wrote: * Alan Stern (st...@rowland.harvard.edu) wrote: On Tue, 26 Oct 2010, Mathieu Desnoyers wrote: * Peter Zijlstra (pet...@infradead.org) wrote: On Tue, 2010-10-26 at 11:56 -0500, Pierre Tardy wrote: +

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Rafael J. Wysocki
On Tuesday, October 26, 2010, Mathieu Desnoyers wrote: * Rafael J. Wysocki (r...@sisk.pl) wrote: On Tuesday, October 26, 2010, Mathieu Desnoyers wrote: * Peter Zijlstra (pet...@infradead.org) wrote: On Tue, 2010-10-26 at 11:56 -0500, Pierre Tardy wrote: +

Re: [linux-pm] [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Rafael J. Wysocki
On Wednesday, October 27, 2010, Rafael J. Wysocki wrote: On Tuesday, October 26, 2010, Mathieu Desnoyers wrote: * Alan Stern (st...@rowland.harvard.edu) wrote: On Tue, 26 Oct 2010, Mathieu Desnoyers wrote: * Peter Zijlstra (pet...@infradead.org) wrote: On Tue, 2010-10-26 at

[PATCH 4/4] PERF: fix power:cpu_idle double end events

2010-10-26 Thread Thomas Renninger
cpu_idle events (transition into sleep state and exiting) are both fired in pm_idle(). Entering sleep state and exiting should always get fired inside pm_idle() already. This is a revert of commit c882e0feb937af4e5b991cbd1c Signed-off-by: Thomas Renninger tr...@suse.de CC: Robert Schoene

[PATCH 1/4] PERF: Do not export power_frequency, but power_start event

2010-10-26 Thread Thomas Renninger
power_frequency moved to drivers/cpufreq/cpufreq.c which has to be compiled in, no need to export it. intel_idle can a be module though... Signed-off-by: Thomas Renninger tr...@suse.de CC: linux-omap@vger.kernel.org CC: linux...@lists.linux-foundation.org CC: linux-trace-us...@vger.kernel.org

[PATCH 3/4] PERF(userspace): Adjust perf timechart to the new power events V3

2010-10-26 Thread Thomas Renninger
Changes in V3: - PWR_EVENT_EXIT is -1 now instead of 0x - Use cpu_{idle,frequency} instead of processor_{idle,frequency} events Changes in V2: - Hanlde PWR_EVENT_EXIT instead of 0 to recon non-power state The transition was rather smooth, only part I had to fiddle some time was

[PATCH 2/4] PERF(kernel): Cleanup power events V3

2010-10-26 Thread Thomas Renninger
Changes in V3: - PWR_EVENT_EXIT is -1 now instead of 0x - Use cpu_{idle,frequency} instead of processor_{idle,frequency} events - Fixed a copy and paste bug (poll_idle should throw and event state of zero, not 1) Changes in V2: - Introduce PWR_EVENT_EXIT instead of 0 to

Re: [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Thomas Renninger
On Tuesday 26 October 2010 08:57:01 pm Rafael J. Wysocki wrote: On Tuesday, October 26, 2010, Thomas Renninger wrote: Ok, that's at least generic. Needs the review of Rafael, to determine whether this state value is all we want to know when we enter suspend. He already gave an

Re: [linux-pm] [PATCH] PERF(kernel): Cleanup power events V2

2010-10-26 Thread Mathieu Desnoyers
* Rafael J. Wysocki (r...@sisk.pl) wrote: On Tuesday, October 26, 2010, Mathieu Desnoyers wrote: * Alan Stern (st...@rowland.harvard.edu) wrote: On Tue, 26 Oct 2010, Mathieu Desnoyers wrote: * Peter Zijlstra (pet...@infradead.org) wrote: On Tue, 2010-10-26 at 11:56 -0500, Pierre

RE: [PATCH v3 01/13] OMAP: DMA: Replace read/write macros with functions

2010-10-26 Thread G, Manjunath Kondaiah
-Original Message- From: Menon, Nishanth Sent: Tuesday, October 26, 2010 8:19 PM To: G, Manjunath Kondaiah Cc: linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org; Cousson, Benoit; Kevin Hilman; Shilimkar, Santosh Subject: Re: [PATCH v3 01/13] OMAP: DMA: Replace

RE: [PATCH v3 00/13] OMAP: DMA: hwmod and DMA as platform device

2010-10-26 Thread G, Manjunath Kondaiah
Hi, -Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of G, Manjunath Kondaiah Sent: Tuesday, October 26, 2010 6:55 PM To: linux-omap@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org; Cousson, Benoit; Kevin

RE: [PATCH 4/5] omap: mailbox: fix detection for previously supported chips

2010-10-26 Thread Varadarajan, Charulatha
-Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Ramirez Luna, Omar Sent: Wednesday, October 27, 2010 3:23 AM To: Tony Lindgren; Hiroshi DOYU Cc: Felipe Contreras; Dmitry Kasatkin; Kevin Hilman; Ramirez Luna,

RE: [PATCH 2/5] omap: mailbox: initial hwmod support for omap2

2010-10-26 Thread Varadarajan, Charulatha
-Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Omar Ramirez Luna Sent: Wednesday, October 27, 2010 3:23 AM To: Tony Lindgren; Hiroshi DOYU Cc: Felipe Contreras; Dmitry Kasatkin; Kevin Hilman; Ramirez Luna,

RE: [PATCH 1/5] omap: mailbox: initial hwmod support for omap3

2010-10-26 Thread Varadarajan, Charulatha
-Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Ramirez Luna, Omar Sent: Wednesday, October 27, 2010 3:23 AM To: Tony Lindgren; Hiroshi DOYU Cc: Felipe Contreras; Dmitry Kasatkin; Kevin Hilman; Ramirez Luna,