Skip to contentSkip to conversation

ARM perf updates for 3.3

GIT PULL Will Deacon 5 participants 12 messages Dec 2, 2011 – Dec 7, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Russell,

Please pull these updates to the ARM perf code for 3.3. The highlights are probably the CTI stuff (which is in preparation for OMAP4 support coming from Lei Ming, Benoit and Paul) and the cleanup of the event numbers for ARMv7 so that they are easier to follow. I was hoping to add Cortex-A7 support but I haven't got my paws on an FPGA yet.

I've not included my contextidr patch with this pull because it conflicts quite badly with the LPAE patches. I can rework this for 3.4 later on (I already have a fixup).

Cheers,

Will

The following changes since commit 5611cc4572e889b62a7b4c72a413536bf6a9c416:

Linux 3.2-rc4 (2011-12-01 14:56:01 -0800)

are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git for-rmk

Ming Lei (2):
arm: introduce cross trigger interface helpers
arm: pmu: allow platform specific irq enable/disable handling

Will Deacon (4):
ARM: perf: clean and update ARMv7 event numbers
ARM: perf: add support for stalled cycle ABI events
ARM: perf: remove unused armpmu_get_max_events
Merge branches 'perf/event-nos', 'perf/updates' and 'perf/omap4' into for-rmk

 arch/arm/include/asm/cti.h          |  179 ++++++++++++++++
 arch/arm/include/asm/perf_event.h   |    3 -
 arch/arm/include/asm/pmu.h          |   15 +-
 arch/arm/kernel/perf_event.c        |   19 +-
 arch/arm/kernel/perf_event_v6.c     |   32 ++--
 arch/arm/kernel/perf_event_v7.c     |  401 +++++++++++++----------------------
 arch/arm/kernel/perf_event_xscale.c |   16 +-
 7 files changed, 379 insertions(+), 286 deletions(-)
 create mode 100644 arch/arm/include/asm/cti.h
#1 lore raw
Quoted 11 lines · Will Deacon

Hi Russell,

Please pull these updates to the ARM perf code for 3.3. The highlights are probably the CTI stuff (which is in preparation for OMAP4 support coming from Lei Ming, Benoit and Paul) and the cleanup of the event numbers for ARMv7 so that they are easier to follow. I was hoping to add Cortex-A7 support but I haven't got my paws on an FPGA yet.

I've not included my contextidr patch with this pull because it conflicts quite badly with the LPAE patches. I can rework this for 3.4 later on (I already have a fixup).

While merging this, I get conflicts in gic.c and omap's common.h. I'm intending to resolve them as below - please check this _before_ I commit it (which means my tree is frozen until this is resolved.)

arch/arm/common/gic.c +0 -0
diff --cc arch/arm/common/gic.c
index a1feb6b,410a546..0000000
@@@ -696,12 -582,16 +697,14 @@@ void __init gic_init_bases(unsigned in
  	 * For primary GICs, skip over SGIs.
  	 * For secondary GICs, skip over PPIs, too.
  	 */
+ 	domain->hwirq_base = 32;
  	if (gic_nr == 0) {
- 		domain->hwirq_base = 16;
- 		if (irq_start > 0)
- 			irq_start = (irq_start & ~31) + 16;
- 	} else
- 		domain->hwirq_base = 32;
 -		gic_cpu_base_addr = cpu_base;
 -
+ 		if ((irq_start & 31) > 0) {
+ 			domain->hwirq_base = 16;
+ 			if (irq_start != -1)
+ 				irq_start = (irq_start & ~31) + 16;
+ 		}
+ 	}
  
  	/*
  	 * Find out how many interrupts are supported.
arch/arm/plat-omap/include/plat/common.h +0 -0
diff --cc arch/arm/plat-omap/include/plat/common.h
index 346098f,3ff3e36..0000000
@@@ -27,12 -27,97 +27,15 @@@
  #ifndef __ARCH_ARM_MACH_OMAP_COMMON_H
  #define __ARCH_ARM_MACH_OMAP_COMMON_H
  
 -#include <linux/delay.h>
 -
  #include <plat/i2c.h>
+ #include <plat/omap_hwmod.h>
  
 -struct sys_timer;
 -
 -extern void omap_map_common_io(void);
 -extern struct sys_timer omap1_timer;
 -extern struct sys_timer omap2_timer;
 -extern struct sys_timer omap3_timer;
 -extern struct sys_timer omap3_secure_timer;
 -extern struct sys_timer omap4_timer;
 -extern bool omap_32k_timer_init(void);
  extern int __init omap_init_clocksource_32k(void);
  extern unsigned long long notrace omap_32k_sched_clock(void);
  
  extern void omap_reserve(void);
 -
 -void omap2420_init_early(void);
 -void omap2430_init_early(void);
 -void omap3430_init_early(void);
 -void omap35xx_init_early(void);
 -void omap3630_init_early(void);
 -void omap3_init_early(void);	/* Do not use this one */
 -void am35xx_init_early(void);
 -void ti816x_init_early(void);
 -void omap4430_init_early(void);
 -
+ extern int omap_dss_reset(struct omap_hwmod *);
+ 
  void omap_sram_init(void);
  
 -/*
 - * IO bases for various OMAP processors
 - * Except the tap base, rest all the io bases
 - * listed are physical addresses.
 - */
 -struct omap_globals {
 -	u32		class;		/* OMAP class to detect */
 -	void __iomem	*tap;		/* Control module ID code */
 -	void __iomem	*sdrc;           /* SDRAM Controller */
 -	void __iomem	*sms;            /* SDRAM Memory Scheduler */
 -	void __iomem	*ctrl;           /* System Control Module */
 -	void __iomem	*ctrl_pad;	/* PAD Control Module */
 -	void __iomem	*prm;            /* Power and Reset Management */
 -	void __iomem	*cm;             /* Clock Management */
 -	void __iomem	*cm2;
 -};
 -
 -void omap2_set_globals_242x(void);
 -void omap2_set_globals_243x(void);
 -void omap2_set_globals_3xxx(void);
 -void omap2_set_globals_443x(void);
 -void omap2_set_globals_ti816x(void);
 -
 -/* These get called from omap2_set_globals_xxxx(), do not call these */
 -void omap2_set_globals_tap(struct omap_globals *);
 -void omap2_set_globals_sdrc(struct omap_globals *);
 -void omap2_set_globals_control(struct omap_globals *);
 -void omap2_set_globals_prcm(struct omap_globals *);
 -
 -void omap242x_map_io(void);
 -void omap243x_map_io(void);
 -void omap3_map_io(void);
 -void omap4_map_io(void);
 -
 -
 -/**
 - * omap_test_timeout - busy-loop, testing a condition
 - * @cond: condition to test until it evaluates to true
 - * @timeout: maximum number of microseconds in the timeout
 - * @index: loop index (integer)
 - *
 - * Loop waiting for @cond to become true or until at least @timeout
 - * microseconds have passed.  To use, define some integer @index in the
 - * calling code.  After running, if @index == @timeout, then the loop has
 - * timed out.
 - */
 -#define omap_test_timeout(cond, timeout, index)			\
 -({								\
 -	for (index = 0; index < timeout; index++) {		\
 -		if (cond)					\
 -			break;					\
 -		udelay(1);					\
 -	}							\
 -})
 -
 -extern struct device *omap2_get_mpuss_device(void);
 -extern struct device *omap2_get_iva_device(void);
 -extern struct device *omap2_get_l3_device(void);
 -extern struct device *omap4_get_dsp_device(void);
 -
  #endif /* __ARCH_ARM_MACH_OMAP_COMMON_H */
#2 lore raw
Quoted 7 lines · Russell King - ARM Linux
Quoted 6 lines · Will Deacon

Please pull these updates to the ARM perf code for 3.3. The highlights are probably the CTI stuff (which is in preparation for OMAP4 support coming from Lei Ming, Benoit and Paul) and the cleanup of the event numbers for ARMv7 so that they are easier to follow. I was hoping to add Cortex-A7 support but I haven't got my paws on an FPGA yet.

Quoted 7 lines
Quoted 3 lines

I've not included my contextidr patch with this pull because it conflicts quite badly with the LPAE patches. I can rework this for 3.4 later on (I already have a fixup).

While merging this, I get conflicts in gic.c and omap's common.h. I'm intending to resolve them as below - please check this _before_ I commit it (which means my tree is frozen until this is resolved.)

This doesn't sound quite right since I don't touch either of these files in my perf changes. I suspect that you're getting changes from your recently merged fixes branch back from my tree, which is based on -rc4.

Unfortunately, I depend on -rc4 for that exact reason (it has some perf fixes in there)!

So the easiest solution might be to wait until you're using -rc4 as a base (or I can rebase onto anything that contains your fixes branch).

Quoted 13 lines
arch/arm/common/gic.c +1 -3
diff --cc arch/arm/common/gic.c
index a1feb6b,410a546..0000000
@@@ -696,12 -582,16 +697,14 @@@ void __init gic_init_bases(unsigned in
  	 * For primary GICs, skip over SGIs.
  	 * For secondary GICs, skip over PPIs, too.
  	 */
+ 	domain->hwirq_base = 32;
  	if (gic_nr == 0) {
- 		domain->hwirq_base = 16;
- 		if (irq_start > 0)
- 			irq_start = (irq_start & ~31) + 16;

arch/arm/common/gic.c

Quoted 10 lines
arch/arm/common/gic.c +6 -2
- 	} else
- 		domain->hwirq_base = 32;
 -		gic_cpu_base_addr = cpu_base;
 -
+ 		if ((irq_start & 31) > 0) {
+ 			domain->hwirq_base = 16;
+ 			if (irq_start != -1)
+ 				irq_start = (irq_start & ~31) + 16;
+ 		}
+ 	}

As it happens, I worked on this with Marc and that resolution looks ok to me, although I don't have a board at hand to test it.

arch/arm/plat-omap/include/plat/common.h

Quoted 6 lines

/*
* Find out how many interrupts are supported.

arch/arm/plat-omap/include/plat/common.h +0 -0
diff --cc arch/arm/plat-omap/include/plat/common.h
index 346098f,3ff3e36..0000000

[...]

Afraid I don't have a clue about this one.

Would you like me to base this on something else?

Will

#3 lore raw
Quoted 8 lines · Will Deacon
Quoted 3 lines · Russell King - ARM Linux

While merging this, I get conflicts in gic.c and omap's common.h. I'm intending to resolve them as below - please check this _before_ I commit it (which means my tree is frozen until this is resolved.)

This doesn't sound quite right since I don't touch either of these files in my perf changes. I suspect that you're getting changes from your recently merged fixes branch back from my tree, which is based on -rc4.

Yes, that'll be why. I sent my previous message to Tony so he can confirm the resolution himself.

The unfortunate thing about that is I can't complete the merge at the moment, so I can't do anything with my git tree until Tony replies. (I could abort the merge, but then I'd have to recreate the resolutions which could be error prone.)

Quoted 2 lines

As it happens, I worked on this with Marc and that resolution looks ok to me, although I don't have a board at hand to test it.

Well, I guess Tony won't reply until Monday afternoon, so there's no immediate rush this weekend.

#4 lore raw
Quoted 6 lines · Russell King - ARM Linux
Quoted 2 lines · Will Deacon

As it happens, I worked on this with Marc and that resolution looks ok to me, although I don't have a board at hand to test it.

Well, I guess Tony won't reply until Monday afternoon, so there's no immediate rush this weekend.

Right. I did the merge of my for-rmk branch with your devel branch and can confirm that everything seems fine on my Versatile Express, so the GIC resolution is ok.

Will

#5 lore raw
In reply to Russell King - ARM Linux

Tony,

Can you please treat this with the utmost urgency. If I don't get a reply from you within the next two hours, then I'm committing this merge resolution whether or not it's correct for you - as I have other stuff which needs to be committed to my tree and I can't wait any longer for your reply.

Thanks.

Quoted 151 lines · Russell King - ARM Linux
Quoted 11 lines · Will Deacon

Hi Russell,

Please pull these updates to the ARM perf code for 3.3. The highlights are probably the CTI stuff (which is in preparation for OMAP4 support coming from Lei Ming, Benoit and Paul) and the cleanup of the event numbers for ARMv7 so that they are easier to follow. I was hoping to add Cortex-A7 support but I haven't got my paws on an FPGA yet.

I've not included my contextidr patch with this pull because it conflicts quite badly with the LPAE patches. I can rework this for 3.4 later on (I already have a fixup).

While merging this, I get conflicts in gic.c and omap's common.h. I'm intending to resolve them as below - please check this _before_ I commit it (which means my tree is frozen until this is resolved.)

arch/arm/common/gic.c +7 -5
diff --cc arch/arm/common/gic.c
index a1feb6b,410a546..0000000
@@@ -696,12 -582,16 +697,14 @@@ void __init gic_init_bases(unsigned in
  	 * For primary GICs, skip over SGIs.
  	 * For secondary GICs, skip over PPIs, too.
  	 */
+ 	domain->hwirq_base = 32;
  	if (gic_nr == 0) {
- 		domain->hwirq_base = 16;
- 		if (irq_start > 0)
- 			irq_start = (irq_start & ~31) + 16;
- 	} else
- 		domain->hwirq_base = 32;
 -		gic_cpu_base_addr = cpu_base;
 -
+ 		if ((irq_start & 31) > 0) {
+ 			domain->hwirq_base = 16;
+ 			if (irq_start != -1)
+ 				irq_start = (irq_start & ~31) + 16;
+ 		}
+ 	}
 
  	/*
  	 * Find out how many interrupts are supported.
arch/arm/plat-omap/include/plat/common.h +3 -0
diff --cc arch/arm/plat-omap/include/plat/common.h
index 346098f,3ff3e36..0000000
@@@ -27,12 -27,97 +27,15 @@@
  #ifndef __ARCH_ARM_MACH_OMAP_COMMON_H
  #define __ARCH_ARM_MACH_OMAP_COMMON_H
 
 -#include <linux/delay.h>
 -
  #include <plat/i2c.h>
+ #include <plat/omap_hwmod.h>
 
 -struct sys_timer;
 -
 -extern void omap_map_common_io(void);
 -extern struct sys_timer omap1_timer;
 -extern struct sys_timer omap2_timer;
 -extern struct sys_timer omap3_timer;
 -extern struct sys_timer omap3_secure_timer;
 -extern struct sys_timer omap4_timer;
 -extern bool omap_32k_timer_init(void);
  extern int __init omap_init_clocksource_32k(void);
  extern unsigned long long notrace omap_32k_sched_clock(void);
 
  extern void omap_reserve(void);
 -
 -void omap2420_init_early(void);
 -void omap2430_init_early(void);
 -void omap3430_init_early(void);
 -void omap35xx_init_early(void);
 -void omap3630_init_early(void);
 -void omap3_init_early(void);	/* Do not use this one */
 -void am35xx_init_early(void);
 -void ti816x_init_early(void);
 -void omap4430_init_early(void);
 -
+ extern int omap_dss_reset(struct omap_hwmod *);
+ 
  void omap_sram_init(void);
 
 -/*
 - * IO bases for various OMAP processors
 - * Except the tap base, rest all the io bases
 - * listed are physical addresses.
 - */
 -struct omap_globals {
 -	u32		class;		/* OMAP class to detect */
 -	void __iomem	*tap;		/* Control module ID code */
 -	void __iomem	*sdrc;           /* SDRAM Controller */
 -	void __iomem	*sms;            /* SDRAM Memory Scheduler */
 -	void __iomem	*ctrl;           /* System Control Module */
 -	void __iomem	*ctrl_pad;	/* PAD Control Module */
 -	void __iomem	*prm;            /* Power and Reset Management */
 -	void __iomem	*cm;             /* Clock Management */
 -	void __iomem	*cm2;
 -};
 -
 -void omap2_set_globals_242x(void);
 -void omap2_set_globals_243x(void);
 -void omap2_set_globals_3xxx(void);
 -void omap2_set_globals_443x(void);
 -void omap2_set_globals_ti816x(void);
 -
 -/* These get called from omap2_set_globals_xxxx(), do not call these */
 -void omap2_set_globals_tap(struct omap_globals *);
 -void omap2_set_globals_sdrc(struct omap_globals *);
 -void omap2_set_globals_control(struct omap_globals *);
 -void omap2_set_globals_prcm(struct omap_globals *);
 -
 -void omap242x_map_io(void);
 -void omap243x_map_io(void);
 -void omap3_map_io(void);
 -void omap4_map_io(void);
 -
 -
 -/**
 - * omap_test_timeout - busy-loop, testing a condition
 - * @cond: condition to test until it evaluates to true
 - * @timeout: maximum number of microseconds in the timeout
 - * @index: loop index (integer)
 - *
 - * Loop waiting for @cond to become true or until at least @timeout
 - * microseconds have passed.  To use, define some integer @index in the
 - * calling code.  After running, if @index == @timeout, then the loop has
 - * timed out.
 - */
 -#define omap_test_timeout(cond, timeout, index)			\
 -({								\
 -	for (index = 0; index < timeout; index++) {		\
 -		if (cond)					\
 -			break;					\
 -		udelay(1);					\
 -	}							\
 -})
 -
 -extern struct device *omap2_get_mpuss_device(void);
 -extern struct device *omap2_get_iva_device(void);
 -extern struct device *omap2_get_l3_device(void);
 -extern struct device *omap4_get_dsp_device(void);
 -
  #endif /* __ARCH_ARM_MACH_OMAP_COMMON_H */

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer
#6 lore raw
Quoted 7 lines · Russell King - ARM Linux

Tony,

Can you please treat this with the utmost urgency. If I don't get a reply from you within the next two hours, then I'm committing this merge resolution whether or not it's correct for you - as I have other stuff which needs to be committed to my tree and I can't wait any longer for your reply.

Sorry only now saw this. Looking at it now.

Tony

maintainer
#7 lore raw
Quoted 10 lines · Tony Lindgren
Quoted 7 lines · Russell King - ARM Linux

Tony,

Can you please treat this with the utmost urgency. If I don't get a reply from you within the next two hours, then I'm committing this merge resolution whether or not it's correct for you - as I have other stuff which needs to be committed to my tree and I can't wait any longer for your reply.

Sorry only now saw this. Looking at it now.

Here's what I would do:

1. Apply Santosh' omap2plus_defconfig patches first into devel-stable at commit 53fadbdd83039bb1181e4ff76123d612cdf26c37 (Merge branch 'irqchip-consolidation' ...). The patches in question are 7188/1 and patch 7189/1.

2. Pull Will's for-rmk branch on top of that

3. Run git mergetool which produces the resolution you posted earlier

4. Before committing apply the following build fix and run git update-index arch/arm/mach-omap2/display.c. This came from the DSS fixes in -rc4.

Then it all builds and boots fine.

Regards,

Tony

arch/arm/mach-omap2/display.c +2 -1
@@ -22,12 +22,13 @@
 #include <linux/io.h>
 #include <linux/clk.h>
 #include <linux/err.h>
+#include <linux/delay.h>
 
 #include <video/omapdss.h>
 #include <plat/omap_hwmod.h>
 #include <plat/omap_device.h>
 #include <plat/omap-pm.h>
-#include <plat/common.h>
+#include "common.h"
 
 #include "control.h"
 #include "display.h"
maintainer
#8 lore raw
Quoted 19 lines · Tony Lindgren
Quoted 10 lines · Tony Lindgren
Quoted 7 lines · Russell King - ARM Linux

Tony,

Can you please treat this with the utmost urgency. If I don't get a reply from you within the next two hours, then I'm committing this merge resolution whether or not it's correct for you - as I have other stuff which needs to be committed to my tree and I can't wait any longer for your reply.

Sorry only now saw this. Looking at it now.

Here's what I would do:

1. Apply Santosh' omap2plus_defconfig patches first into devel-stable at commit 53fadbdd83039bb1181e4ff76123d612cdf26c37 (Merge branch 'irqchip-consolidation' ...). The patches in question are 7188/1 and patch 7189/1.

Quoted 8 lines

2. Pull Will's for-rmk branch on top of that

3. Run git mergetool which produces the resolution you posted earlier

4. Before committing apply the following build fix and run git update-index arch/arm/mach-omap2/display.c. This came from the DSS fixes in -rc4.

Then it all builds and boots fine.

Added the following fix into patch system as 7194/1. Russell, can you please apply that one into your devel-stable so we have a common base for folks to base other omap patches on?

Regards,

Tony

From: Tony Lindgren <[email protected]>
Date: Tue, 6 Dec 2011 08:46:25 -0800
Subject: [PATCH] ARM: OMAP: Fix build after a merge between v3.2-rc4 and ARM restart changes

ARM restart changes needed changes to common.h to make it local. This conflicted with v3.2-rc4 DSS related hwmod changes that git mergetool was not able to handle.

arch/arm/mach-omap2/display.c +2 -1
@@ -22,12 +22,13 @@
 #include <linux/io.h>
 #include <linux/clk.h>
 #include <linux/err.h>
+#include <linux/delay.h>
 
 #include <video/omapdss.h>
 #include <plat/omap_hwmod.h>
 #include <plat/omap_device.h>
 #include <plat/omap-pm.h>
-#include <plat/common.h>
+#include "common.h"
 
 #include "control.h"
 #include "display.h"
#9 lore raw

+ Marc

Hi Tony,

Quoted 24 lines · Tony Lindgren
Quoted 23 lines · Tony Lindgren
Quoted 10 lines · Tony Lindgren
Quoted 7 lines · Russell King - ARM Linux

Tony,

Can you please treat this with the utmost urgency. If I don't get a reply from you within the next two hours, then I'm committing this merge resolution whether or not it's correct for you - as I have other stuff which needs to be committed to my tree and I can't wait any longer for your reply.

Sorry only now saw this. Looking at it now.

Here's what I would do:

1. Apply Santosh' omap2plus_defconfig patches first into devel-stable at

    commit 53fadbdd83039bb1181e4ff76123d612cdf26c37 (Merge branch
    'irqchip-consolidation' ...). The patches in question are 7188/1 and
    patch 7189/1.

2. Pull Will's for-rmk branch on top of that

3. Run git mergetool which produces the resolution you posted earlier

Quoted 8 lines
Quoted 4 lines

4. Before committing apply the following build fix and run git update-index arch/arm/mach-omap2/display.c. This came from the DSS fixes in -rc4.

Then it all builds and boots fine.

Added the following fix into patch system as 7194/1. Russell, can you please apply that one into your devel-stable so we have a common base for folks to base other omap patches on?

Please note that we still have a regression for the OMAP3/4 DT boot on this branch. The board-generic.c file was not updated for all the machine descriptors inside it during irqchip-consolidation series.

The following patch fixes that.

Regards,
Benoit

---

Quoted 1 line

From 0c8b4ed454ab9d5cbb267eaf236d0b14c7c6896a Mon Sep 17 00:00:00 2001

From: Benoit Cousson <[email protected]>
Date: Wed, 7 Dec 2011 13:46:55 +0100
Subject: [PATCH] ARM: OMAP2+: board-generic: Add missing handle_irq callbacks

The following commit: 6b2f55d7851aa358d3a99cff344c560c4967f042, is adding the support for the CONFIG_MULTI_IRQ_HANDLER but did not update all the machine descriptors supported in the DT board-generic.c file.
It thus break the DT boot on OMAP3 and OMAP4 boards.

Add the proper handle_irq callbacks for OMAP3 and OMAP4 generic machine descriptors.

Cc Tony Lindgren <[email protected]>
Cc Marc Zyngier <[email protected]>
---
 arch/arm/mach-omap2/board-generic.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/board-generic.c +4 -0
index 63b5416..e493877 100644
@@ -17,6 +17,7 @@
 #include <linux/i2c/twl.h>
 
 #include <mach/hardware.h>
+#include <asm/hardware/gic.h>
 #include <asm/mach/arch.h>
 
 #include <plat/board.h>
@@ -103,6 +104,7 @@ DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)")
 	.map_io		= omap242x_map_io,
 	.init_early	= omap2420_init_early,
 	.init_irq	= omap2_init_irq,
+	.handle_irq	= omap2_intc_handle_irq,
 	.init_machine	= omap_generic_init,
 	.timer		= &omap2_timer,
 	.dt_compat	= omap242x_boards_compat,
@@ -140,6 +142,7 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)")
 	.map_io		= omap3_map_io,
 	.init_early	= omap3430_init_early,
 	.init_irq	= omap3_init_irq,
+	.handle_irq	= omap3_intc_handle_irq,
 	.init_machine	= omap3_init,
 	.timer		= &omap3_timer,
 	.dt_compat	= omap3_boards_compat,
@@ -158,6 +161,7 @@ DT_MACHINE_START(OMAP4_DT, "Generic OMAP4 (Flattened Device Tree)")
 	.map_io		= omap4_map_io,
 	.init_early	= omap4430_init_early,
 	.init_irq	= gic_init_irq,
+	.handle_irq	= gic_handle_irq,
 	.init_machine	= omap4_init,
 	.timer		= &omap4_timer,
 	.dt_compat	= omap4_boards_compat,
Signature · 1 line
1.7.0.4
Acked-by
#10 lore raw
Quoted 62 lines · Benoit

+ Marc

Hi Tony,

Quoted 24 lines · Tony Lindgren
Quoted 23 lines · Tony Lindgren
Quoted 10 lines · Tony Lindgren
Quoted 7 lines · Russell King - ARM Linux

Tony,

Can you please treat this with the utmost urgency. If I don't get a reply from you within the next two hours, then I'm committing this merge resolution whether or not it's correct for you - as I have other stuff which needs to be committed to my tree and I can't wait any longer for your reply.

Sorry only now saw this. Looking at it now.

Here's what I would do:

1. Apply Santosh' omap2plus_defconfig patches first into devel-stable at

    commit 53fadbdd83039bb1181e4ff76123d612cdf26c37 (Merge branch
    'irqchip-consolidation' ...). The patches in question are 7188/1 and
    patch 7189/1.

2. Pull Will's for-rmk branch on top of that

3. Run git mergetool which produces the resolution you posted earlier

Quoted 8 lines
Quoted 4 lines

4. Before committing apply the following build fix and run git update-index arch/arm/mach-omap2/display.c. This came from the DSS fixes in -rc4.

Then it all builds and boots fine.

Added the following fix into patch system as 7194/1. Russell, can you please apply that one into your devel-stable so we have a common base for folks to base other omap patches on?

Please note that we still have a regression for the OMAP3/4 DT boot on this branch. The board-generic.c file was not updated for all the machine descriptors inside it during irqchip-consolidation series.

The following patch fixes that.

Regards,
Benoit

---
From 0c8b4ed454ab9d5cbb267eaf236d0b14c7c6896a Mon Sep 17 00:00:00 2001
From: Benoit Cousson <[email protected]>
Date: Wed, 7 Dec 2011 13:46:55 +0100
Subject: [PATCH] ARM: OMAP2+: board-generic: Add missing handle_irq callbacks

The following commit: 6b2f55d7851aa358d3a99cff344c560c4967f042, is adding the support for the CONFIG_MULTI_IRQ_HANDLER but did not update all the machine descriptors supported in the DT board-generic.c file.
It thus break the DT boot on OMAP3 and OMAP4 boards.

Add the proper handle_irq callbacks for OMAP3 and OMAP4 generic machine descriptors.

Quoted 6 lines
Cc Tony Lindgren <[email protected]>
Cc Marc Zyngier <[email protected]>
---
 arch/arm/mach-omap2/board-generic.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
	M.
Signature · 1 line
Jazz is not dead. It just smells funny...
maintainer
#11 lore raw
Quoted 11 lines · Marc Zyngier
Quoted 10 lines · Benoit

The following commit: 6b2f55d7851aa358d3a99cff344c560c4967f042, is adding the support for the CONFIG_MULTI_IRQ_HANDLER but did not update all the machine descriptors supported in the DT board-generic.c file.
It thus break the DT boot on OMAP3 and OMAP4 boards.

Add the proper handle_irq callbacks for OMAP3 and OMAP4 generic machine descriptors.

Quoted 8 lines
Quoted 6 lines
Cc Tony Lindgren <[email protected]>
Cc Marc Zyngier <[email protected]>
---
 arch/arm/mach-omap2/board-generic.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Thanks I'll apply this into omap dt branch.

Regards,

Tony