Support for Qualcomm msm8660 target
Subsystems (3)
cover Support for Qualcomm msm8660 target
These patches add support to the Qualcomm msm8660 target. It currently provides uniprocessor support only, though SMP support is forthcoming. Note that this code is based on top of Gregory Bean's gpiomux code, and won't build until the mach-types are updated.
Abhijeet Dharmapurikar (3):
GIC: Dont disable INT in ack callback
msm: irqs-8x60: interrupt map
msm: 8x60: setup correct handlers for private interrupts
Daniel Walker (3):
arm: mm: add proc info for ScorpionMP
msm: add hotplug stub functions
msm: allow uart to be conditionally disabled
Gregory Bean (1):
msm: add MSM8x60 FFA support
Jeff Ohlstein (5):
msm: timer: support 8x60 timers
msm: clock: add dummy clock driver
dma: add stub functions for dma features not yet present on 8x60
msm: add build support for msm8x60 target
msm: physical offset for MSM8X60
Stepan Moskovchenko (3):
msm: Add MSM IOMMU support
msm: Platform initialization for the IOMMU driver
msm: Platform data for msm8x60 IOMMUs
Steve Muckle (9):
msm: create config option for proc-comm
arm: Kconfig option for ARCH_MSM_SCORPIONMP
msm: io: MSM8X60 io support
msm: initial irq definitions for MSM8X60
msm: MSM8X60 RUMI3 board support
msm: irq: rename existing entry-macro to entry-macro-vic
msm: 8x60: gic initialization fixup for RUMI
msm: add msm8x60_surf machine
msm: MSM8X60 simulator board support
arch/arm/Kconfig | 3 +- arch/arm/common/gic.c | 14 - arch/arm/mach-msm/Kconfig | 52 +- arch/arm/mach-msm/Makefile | 20 +- arch/arm/mach-msm/board-msm8x60.c | 102 ++ arch/arm/mach-msm/clock-dummy.c | 54 + arch/arm/mach-msm/devices-msm8x60-iommu.c | 883 ++++++++++ arch/arm/mach-msm/hotplug.c | 22 + arch/arm/mach-msm/include/mach/debug-macro.S | 2 +- arch/arm/mach-msm/include/mach/dma.h | 10 +- arch/arm/mach-msm/include/mach/entry-macro-qgic.S | 96 ++ arch/arm/mach-msm/include/mach/entry-macro-vic.S | 37 + arch/arm/mach-msm/include/mach/entry-macro.S | 43 +- arch/arm/mach-msm/include/mach/io.h | 1 + arch/arm/mach-msm/include/mach/iommu.h | 103 ++ arch/arm/mach-msm/include/mach/iommu_hw-8xxx.h | 1871 +++++++++++++++++++++ arch/arm/mach-msm/include/mach/irqs-8x60.h | 267 +++ arch/arm/mach-msm/include/mach/irqs.h | 2 + arch/arm/mach-msm/include/mach/memory.h | 2 + arch/arm/mach-msm/include/mach/msm_iomap-8x60.h | 59 + arch/arm/mach-msm/include/mach/smp.h | 39 + arch/arm/mach-msm/io.c | 15 + arch/arm/mach-msm/iommu.c | 597 +++++++ arch/arm/mach-msm/iommu_dev.c | 364 ++++ arch/arm/mach-msm/timer.c | 226 ++- arch/arm/mm/proc-v7.S | 24 + 26 files changed, 4798 insertions(+), 110 deletions(-) create mode 100644 arch/arm/mach-msm/board-msm8x60.c create mode 100644 arch/arm/mach-msm/clock-dummy.c create mode 100644 arch/arm/mach-msm/devices-msm8x60-iommu.c create mode 100644 arch/arm/mach-msm/hotplug.c create mode 100644 arch/arm/mach-msm/include/mach/entry-macro-qgic.S create mode 100644 arch/arm/mach-msm/include/mach/entry-macro-vic.S create mode 100644 arch/arm/mach-msm/include/mach/iommu.h create mode 100644 arch/arm/mach-msm/include/mach/iommu_hw-8xxx.h create mode 100644 arch/arm/mach-msm/include/mach/irqs-8x60.h create mode 100644 arch/arm/mach-msm/include/mach/smp.h create mode 100644 arch/arm/mach-msm/iommu.c create mode 100644 arch/arm/mach-msm/iommu_dev.c
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 1/24 msm: create config option for proc-comm
From: Steve Muckle <[email protected]>
Some builds may not support the proc-comm interface with the baseband processor.
--- arch/arm/mach-msm/Kconfig | 7 +++++++ arch/arm/mach-msm/Makefile | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-)
arch/arm/mach-msm/Kconfig +7 -0
@@ -10,6 +10,7 @@ config ARCH_MSM7X00A select MSM_SMD select MSM_SMD_PKG3 select CPU_V6 + select MSM_PROC_COMM config ARCH_MSM7X30 bool "MSM7x30"
@@ -18,6 +19,7 @@ config ARCH_MSM7X30 select MSM_VIC select CPU_V7 select MSM_REMOTE_SPINLOCK_DEKKERS + select MSM_PROC_COMM config ARCH_QSD8X50 bool "QSD8X50"
@@ -26,6 +28,8 @@ config ARCH_QSD8X50 select MSM_VIC select CPU_V7 select MSM_REMOTE_SPINLOCK_LDREX + select MSM_PROC_COMM + endchoice config MSM_SOC_REV_A
@@ -103,6 +107,9 @@ endchoice config MSM_SMD_PKG3 bool +config MSM_PROC_COMM + bool + config MSM_SMD bool
arch/arm/mach-msm/Makefile +2 -4
@@ -1,8 +1,5 @@ -obj-y += proc_comm.o obj-y += io.o idle.o timer.o dma.o -obj-y += vreg.o obj-y += acpuclock-arm11.o -obj-y += clock.o clock-pcom.o ifdef CONFIG_MSM_VIC obj-y += irq-vic.o
@@ -10,10 +7,11 @@ else obj-y += irq.o endif +obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o +obj-$(CONFIG_MSM_PROC_COMM) += clock.o gpio.o obj-$(CONFIG_ARCH_QSD8X50) += sirc.o obj-$(CONFIG_MSM_SMD) += smd.o smd_debug.o obj-$(CONFIG_MSM_SMD) += last_radio_log.o - obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o devices-msm7x00.o obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 2/24 arm: Kconfig option for ARCH_MSM_SCORPIONMP
In reply to Jeff OhlsteinFrom: Steve Muckle <[email protected]>
ScorpionMP is a configuration of Scorpion processors. It supports local timers.
--- arch/arm/Kconfig | 3 ++- arch/arm/mach-msm/Kconfig | 2 ++ 2 files changed, 4 insertions(+), 1 deletions(-)
arch/arm/Kconfig +2 -1
@@ -1173,7 +1173,8 @@ config HOTPLUG_CPU config LOCAL_TIMERS bool "Use local timer interrupts" depends on SMP && (REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || \ - REALVIEW_EB_A9MP || MACH_REALVIEW_PBX || ARCH_OMAP4 || ARCH_U8500) + REALVIEW_EB_A9MP || MACH_REALVIEW_PBX || ARCH_OMAP4 || ARCH_U8500 || \ + ARCH_MSM_SCORPIONMP) default y select HAVE_ARM_TWD if (ARCH_REALVIEW || ARCH_OMAP4 || ARCH_U8500) help
arch/arm/mach-msm/Kconfig +2 -0
@@ -39,6 +39,8 @@ config ARCH_MSM_ARM11 bool config ARCH_MSM_SCORPION bool +config ARCH_MSM_SCORPIONMP + bool config MSM_VIC bool
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 3/24 arm: mm: add proc info for ScorpionMP
In reply to Jeff OhlsteinFrom: Daniel Walker <[email protected]>
ScorpionMP does not have the SMP/nAMP and TLB ops broadcasting bits in ACTLR.
--- arch/arm/mm/proc-v7.S | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-)
arch/arm/mm/proc-v7.S +24 -0
@@ -196,6 +196,7 @@ __v7_setup: orreq r0, r0, #(1 << 6) | (1 << 0) @ Enable SMP/nAMP mode and mcreq p15, 0, r0, c1, c0, 1 @ TLB ops broadcasting #endif +__v7_msm_setup: adr r12, __v7_setup_stack @ the local stack stmia r12, {r0-r5, r7, r9, r11, lr} bl v7_flush_dcache_all
@@ -326,6 +327,29 @@ cpu_elf_name: .section ".proc.info.init", #alloc, #execinstr + .type __v7_msm_proc_info, #object +__v7_msm_proc_info: + .long 0x510f0000 @ Required ID value + .long 0xff0f0000 @ Mask for ID + .long PMD_TYPE_SECT | \ + PMD_SECT_AP_WRITE | \ + PMD_SECT_AP_READ | \ + PMD_FLAGS + .long PMD_TYPE_SECT | \ + PMD_SECT_XN | \ + PMD_SECT_AP_WRITE | \ + PMD_SECT_AP_READ + b __v7_msm_setup + .long cpu_arch_name + .long cpu_elf_name + .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP + .long cpu_v7_name + .long v7_processor_functions + .long v7wbi_tlb_fns + .long v6_user_fns + .long v7_cache_fns + .size __v7_msm_proc_info, . - __v7_msm_proc_info + /* * Match any ARMv7 processor core. */
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
Quoted 16 lines · Jeff Ohlstein
From: Daniel Walker <[email protected]>
ScorpionMP does not have the SMP/nAMP and TLB ops broadcasting bits in ACTLR.
Signed-off-by Daniel Walker <[email protected]>Signed-off-by Jeff Ohlstein <[email protected]>--- arch/arm/mm/proc-v7.S | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-)arch/arm/mm/proc-v7.S +0
-0
arch/arm/mm/proc-v7.S __v7_setup: · line 202
Quoted 7 lines
arch/arm/mm/proc-v7.S +1
-0@@ -196,6 +196,7 @@ __v7_setup: orreq r0, r0, #(1 << 6) | (1 << 0) @ Enable SMP/nAMP mode and mcreq p15, 0, r0, c1, c0, 1 @ TLB ops broadcasting #endif +__v7_msm_setup: adr r12, __v7_setup_stack @ the local stack stmia r12, {r0-r5, r7, r9, r11, lr} bl v7_flush_dcache_all
It may be better to move the generic __v7_setup here and have a specific entry for ARM Ltd cores (mask 0xff0f0000 and value 0x410f0000).
In general, I would have liked a different way (still ID-based) of handling such issues without duplicating the whole structure. But I see this becoming the standard as proc-v6.S follows it as well.
Signature · 1 line
Catalin
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
Quoted 12 lines · Catalin Marinas
Quoted 11 lines · Jeff Ohlstein
From: Daniel Walker <[email protected]>
ScorpionMP does not have the SMP/nAMP and TLB ops broadcasting bits in ACTLR.
Signed-off-by Daniel Walker <[email protected]>Signed-off-by Jeff Ohlstein <[email protected]>--- arch/arm/mm/proc-v7.S | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-)
Quoted 15 lines
arch/arm/mm/proc-v7.S __v7_setup: · line 202
Quoted 12 lines
arch/arm/mm/proc-v7.S +1
-0@@ -196,6 +196,7 @@ __v7_setup: orreq r0, r0, #(1 << 6) | (1 << 0) @ Enable SMP/nAMP mode and mcreq p15, 0, r0, c1, c0, 1 @ TLB ops broadcasting #endif +__v7_msm_setup: adr r12, __v7_setup_stack @ the local stack stmia r12, {r0-r5, r7, r9, r11, lr} bl v7_flush_dcache_allIt may be better to move the generic
__v7_setuphere and have a specific entry for ARM Ltd cores (mask0xff0f0000and value0x410f0000).
I'm not sure I follow you.. Are you saying there are other cpu's that don't need the SMP stuff at the top of __v7_setup ?
Quoted 3 lines
In general, I would have liked a different way (still ID-based) of handling such issues without duplicating the whole structure. But I see this becoming the standard as
proc-v6.Sfollows it as well.
This whole thing was something Russell specifically asked for (and practically wrote for me).
Daniel
Signature · 3 lines
Sent by an consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
Quoted 29 lines · Daniel Walker
Quoted 12 lines · Catalin Marinas
Quoted 11 lines · Jeff Ohlstein
From: Daniel Walker <[email protected]>
ScorpionMP does not have the SMP/nAMP and TLB ops broadcasting bits in ACTLR.
Signed-off-by Daniel Walker <[email protected]>Signed-off-by Jeff Ohlstein <[email protected]>--- arch/arm/mm/proc-v7.S | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-)Quoted 15 lines
arch/arm/mm/proc-v7.S __v7_setup: · line 202
Quoted 12 lines
arch/arm/mm/proc-v7.S +1
-0@@ -196,6 +196,7 @@ __v7_setup: orreq r0, r0, #(1 << 6) | (1 << 0) @ Enable SMP/nAMP mode and mcreq p15, 0, r0, c1, c0, 1 @ TLB ops broadcasting #endif +__v7_msm_setup: adr r12, __v7_setup_stack @ the local stack stmia r12, {r0-r5, r7, r9, r11, lr} bl v7_flush_dcache_allIt may be better to move the generic
__v7_setuphere and have a specific entry for ARM Ltd cores (mask0xff0f0000and value0x410f0000).
Quoted 2 lines
I'm not sure I follow you.. Are you saying there are other cpu's that don't need the SMP stuff at the top of
__v7_setup?
The SMP/nAMP bit is something specific to the ARM11MPCore and Cortex-A9 processors produced by ARM. If you core doesn't need this, it should use a default __v7_setup without any additional bits being set.
I'm not aware of other MP ARM processors produced by other companies that would require exactly the same bit being set.
Quoted 6 lines
Quoted 3 lines
In general, I would have liked a different way (still ID-based) of handling such issues without duplicating the whole structure. But I see this becoming the standard as
proc-v6.Sfollows it as well.This whole thing was something Russell specifically asked for (and practically wrote for me).
Yes, I know and I'm not saying that you should change it in this patch. It's just that I would have liked to only duplicate the setup function rather than the whole procinfo structure.
Signature · 1 line
Catalin
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
Quoted 33 lines · Catalin Marinas
Quoted 29 lines · Daniel Walker
Quoted 12 lines · Catalin Marinas
Quoted 11 lines · Jeff Ohlstein
From: Daniel Walker <[email protected]>
ScorpionMP does not have the SMP/nAMP and TLB ops broadcasting bits in ACTLR.
Signed-off-by Daniel Walker <[email protected]>Signed-off-by Jeff Ohlstein <[email protected]>--- arch/arm/mm/proc-v7.S | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-)Quoted 15 lines
arch/arm/mm/proc-v7.S __v7_setup: · line 202
Quoted 12 lines
arch/arm/mm/proc-v7.S +1
-0@@ -196,6 +196,7 @@ __v7_setup: orreq r0, r0, #(1 << 6) | (1 << 0) @ Enable SMP/nAMP mode and mcreq p15, 0, r0, c1, c0, 1 @ TLB ops broadcasting #endif +__v7_msm_setup: adr r12, __v7_setup_stack @ the local stack stmia r12, {r0-r5, r7, r9, r11, lr} bl v7_flush_dcache_allIt may be better to move the generic
__v7_setuphere and have a specific entry for ARM Ltd cores (mask0xff0f0000and value0x410f0000).Quoted 2 lines
I'm not sure I follow you.. Are you saying there are other cpu's that don't need the SMP stuff at the top of
__v7_setup?
Quoted 6 lines
The SMP/nAMP bit is something specific to the ARM11MPCore and Cortex-A9 processors produced by ARM. If you core doesn't need this, it should use a default
__v7_setupwithout any additional bits being set.I'm not aware of other MP ARM processors produced by other companies that would require exactly the same bit being set.
So your saying it makes more sense to change the msm entry into the default entry, and make the current default into the ARM11MPCore/Cortex-A9 entry?
There's 4 or 5 other cpu's that have SMP but none have had to jump over those bits AFAIK ..
Daniel
Signature · 3 lines
Sent by an consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
Quoted 38 lines · Daniel Walker
Quoted 37 lines · Catalin Marinas
Quoted 29 lines · Daniel Walker
Quoted 12 lines · Catalin Marinas
Quoted 11 lines · Jeff Ohlstein
From: Daniel Walker <[email protected]>
ScorpionMP does not have the SMP/nAMP and TLB ops broadcasting bits in ACTLR.
Signed-off-by Daniel Walker <[email protected]>Signed-off-by Jeff Ohlstein <[email protected]>--- arch/arm/mm/proc-v7.S | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-)Quoted 15 lines
arch/arm/mm/proc-v7.S __v7_setup: · line 202
Quoted 12 lines
arch/arm/mm/proc-v7.S +1
-0@@ -196,6 +196,7 @@ __v7_setup: orreq r0, r0, #(1 << 6) | (1 << 0) @ Enable SMP/nAMP mode and mcreq p15, 0, r0, c1, c0, 1 @ TLB ops broadcasting #endif +__v7_msm_setup: adr r12, __v7_setup_stack @ the local stack stmia r12, {r0-r5, r7, r9, r11, lr} bl v7_flush_dcache_allIt may be better to move the generic
__v7_setuphere and have a specific entry for ARM Ltd cores (mask0xff0f0000and value0x410f0000).Quoted 2 lines
I'm not sure I follow you.. Are you saying there are other cpu's that don't need the SMP stuff at the top of
__v7_setup?The SMP/nAMP bit is something specific to the ARM11MPCore and Cortex-A9 processors produced by ARM. If you core doesn't need this, it should use a default
__v7_setupwithout any additional bits being set.
Quoted 6 lines
Quoted 2 lines
I'm not aware of other MP ARM processors produced by other companies that would require exactly the same bit being set.
So your saying it makes more sense to change the msm entry into the default entry, and make the current default into the ARM11MPCore/Cortex-A9 entry?
So my opinion is to not add any specific msm code but make the __v7_setup skip the ACTLR bit setting. Then add an entry for Cortex-A9 to set those bits.
Quoted 2 lines
There's 4 or 5 other cpu's that have SMP but none have had to jump over those bits AFAIK ..
Maybe they don't do anything with those bits and writing to them is harmless. They'll complain if their code stops working but it is usually unlikely that people implementing their own v7MP would use the same bits in ACTLR as Cortex-A9.
I'm not sure whether someone licensing and manufacturing a Cortex-A9 would use the same manufacturer id (TI folks would know better). If not we could check against 0x000fc090.
Signature · 1 line
Catalin
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
Quoted 8 lines · Catalin Marinas
Quoted 3 lines
So your saying it makes more sense to change the msm entry into the default entry, and make the current default into the ARM11MPCore/Cortex-A9 entry?
So my opinion is to not add any specific msm code but make the
__v7_setupskip the ACTLR bit setting. Then add an entry for Cortex-A9 to set those bits.
how about this? Naming is of course flexible ..
ScorpionMP does not have the SMP/nAMP and TLB ops broadcasting bits in ACTLR. These bits are only used on ARM11MPCore and Cortex-A9 from arm. This patch just makes it so no other arm core ends up getting these bits set.
--- arch/arm/mm/proc-v7.S | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-)
arch/arm/mm/proc-v7.S +25 -1
@@ -189,13 +189,14 @@ cpu_v7_name: * It is assumed that: * - cache type register is implemented */ -__v7_setup: +__v7_armmp_setup: #ifdef CONFIG_SMP mrc p15, 0, r0, c1, c0, 1 tst r0, #(1 << 6) @ SMP/nAMP mode enabled? orreq r0, r0, #(1 << 6) | (1 << 0) @ Enable SMP/nAMP mode and mcreq p15, 0, r0, c1, c0, 1 @ TLB ops broadcasting #endif +__v7_setup: adr r12, __v7_setup_stack @ the local stack stmia r12, {r0-r5, r7, r9, r11, lr} bl v7_flush_dcache_all
@@ -326,6 +327,29 @@ cpu_elf_name: .section ".proc.info.init", #alloc, #execinstr + .type __v7_armmp_proc_info, #object +__v7_armmp_proc_info: + .long 0x410f0000 @ Required ID value + .long 0xff0f0000 @ Mask for ID + .long PMD_TYPE_SECT | \ + PMD_SECT_AP_WRITE | \ + PMD_SECT_AP_READ | \ + PMD_FLAGS + .long PMD_TYPE_SECT | \ + PMD_SECT_XN | \ + PMD_SECT_AP_WRITE | \ + PMD_SECT_AP_READ + b __v7_armmp_setup + .long cpu_arch_name + .long cpu_elf_name + .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP + .long cpu_v7_name + .long v7_processor_functions + .long v7wbi_tlb_fns + .long v6_user_fns + .long v7_cache_fns + .size __v7_armmp_proc_info, . - __v7_armmp_proc_info + /* * Match any ARMv7 processor core. */
Signature · 8 lines
1.7.0.4 -- Sent by an consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
Quoted 6 lines · Daniel Walker
Quoted 4 lines · Catalin Marinas
Quoted 3 lines
So your saying it makes more sense to change the msm entry into the default entry, and make the current default into the ARM11MPCore/Cortex-A9 entry?
Quoted 6 lines
Quoted 4 lines
So my opinion is to not add any specific msm code but make the
__v7_setupskip the ACTLR bit setting. Then add an entry for Cortex-A9 to set those bits.how about this? Naming is of course flexible ..
I cc'ed Santosh as well. I'm not sure whether TI are using a Cortex-A9 but with different manufacturer field (I suspect it's still 0x41).
Quoted 16 lines
ScorpionMP does not have the SMP/nAMP and TLB ops broadcasting bits in ACTLR. These bits are only used on ARM11MPCore and Cortex-A9 from arm. This patch just makes it so no other arm core ends up getting these bits set.
Signed-off-by Daniel Walker <[email protected]>--- arch/arm/mm/proc-v7.S | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-)arch/arm/mm/proc-v7.S +0
-0
arch/arm/mm/proc-v7.S cpu_v7_name: · line 192
Quoted 5 lines
arch/arm/mm/proc-v7.S +1
-1@@ -189,13 +189,14 @@ cpu_v7_name: * It is assumed that: * - cache type register is implemented */ -__v7_setup: +__v7_armmp_setup:
Maybe __v7_ca9mp_setup. Future MP processors from ARM may not need this bit set.
arch/arm/mm/proc-v7.S cpu_elf_name: · line 333
Quoted 3 lines
arch/arm/mm/proc-v7.S +3
-0+__v7_armmp_proc_info: + .long 0x410f0000 @ Required ID value + .long 0xff0f0000 @ Mask for ID
We could restrict it to:
.long 0x410fc090 .long 0xff0ffff0
Otherwise the patch looks fine. Thanks.
Signature · 1 line
Catalin
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
Quoted 28 lines · Catalin Marinas
Quoted 6 lines · Daniel Walker
Quoted 4 lines · Catalin Marinas
Quoted 3 lines
So your saying it makes more sense to change the msm entry into the default entry, and make the current default into the ARM11MPCore/Cortex-A9 entry?
Quoted 6 lines
Quoted 4 lines
So my opinion is to not add any specific msm code but make the
__v7_setupskip the ACTLR bit setting. Then add an entry for Cortex-A9 to set those bits.how about this? Naming is of course flexible ..
I cc'ed Santosh as well. I'm not sure whether TI are using a Cortex-A9 but with different manufacturer field (I suspect it's still
0x41).Quoted 11 lines
ScorpionMP does not have the SMP/nAMP and TLB ops broadcasting bits in ACTLR. These bits are only used on ARM11MPCore and Cortex-A9 from arm. This patch just makes it so no other arm core ends up getting these bits set.
Signed-off-by Daniel Walker <[email protected]>--- arch/arm/mm/proc-v7.S | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-)
Quoted 13 lines
arch/arm/mm/proc-v7.S cpu_v7_name: · line 192
Quoted 10 lines
arch/arm/mm/proc-v7.S +1
-1@@ -189,13 +189,14 @@ cpu_v7_name: * It is assumed that: * - cache type register is implemented */ -__v7_setup: +__v7_armmp_setup:Maybe
__v7_ca9mp_setup. Future MP processors from ARM may not need this bit set.
Ok ..
Quoted 10 lines
arch/arm/mm/proc-v7.S cpu_elf_name: · line 333
Quoted 3 lines
arch/arm/mm/proc-v7.S +3
-0+__v7_armmp_proc_info: + .long 0x410f0000 @ Required ID value + .long 0xff0f0000 @ Mask for IDWe could restrict it to:
.long 0x410fc090 .long 0xff0ffff0Otherwise the patch looks fine. Thanks.
Ok, I'll add this.
Daniel
Signature · 2 lines
Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
RE: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
In reply to Catalin MarinasQuoted 21 lines
-----Original Message-----
From: Catalin Marinas [mailto:catalin.marinas at arm.com]
Sent: Tuesday, August 31, 2010 5:49 PM
To: Daniel Walker
Cc: Jeff Ohlstein; Russell King; linux-arm-msm at vger.kernel.org; linux-arm- kernel at lists.infradead.org; linux-kernel at vger.kernel.org; Tony Lindgren; Kirill A. Shutemov; Shilimkar, Santosh
Subject: Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMPQuoted 11 lines · Daniel Walker
Quoted 8 lines · Catalin Marinas
Quoted 3 lines
So your saying it makes more sense to change the msm entry into the default entry, and make the current default into the ARM11MPCore/Cortex-A9 entry?
So my opinion is to not add any specific msm code but make the
__v7_setupskip the ACTLR bit setting. Then add an entry for Cortex-A9 to set those bits.
Quoted 5 lines
Quoted 1 line
how about this? Naming is of course flexible ..
I cc'ed Santosh as well. I'm not sure whether TI are using a Cortex-A9 but with different manufacturer field (I suspect it's still
0x41).
Yep. OMAP4 CA-9 field is 0x41.
Regards,
Santosh
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
In reply to Daniel WalkerQuoted 6 lines · Daniel Walker
So your saying it makes more sense to change the msm entry into the default entry, and make the current default into the ARM11MPCore/Cortex-A9 entry?
There's 4 or 5 other cpu's that have SMP but none have had to jump over those bits AFAIK ..
What CPUs (CPU not SoC) are you referring to?
CPUs is the core that runs the code. SoC is the CPU with the peripherals. OMAP is not a CPU. OMAP is a SoC.
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
Quoted 5 lines · Russell King - ARM Linux
Quoted 4 lines · Daniel Walker
So your saying it makes more sense to change the msm entry into the default entry, and make the current default into the ARM11MPCore/Cortex-A9 entry?
Quoted 7 lines
Quoted 2 lines
There's 4 or 5 other cpu's that have SMP but none have had to jump over those bits AFAIK ..
What CPUs (CPU not SoC) are you referring to?
CPUs is the core that runs the code. SoC is the CPU with the peripherals. OMAP is not a CPU. OMAP is a SoC.
I guess I'm referring to the SoC then (in this case all SMP SoC's) ..
Daniel
Re: [PATCH 03/24] arm: mm: add proc info for ScorpionMP
In reply to Catalin MarinasQuoted 11 lines · Catalin Marinas
Quoted 6 lines · Daniel Walker
Quoted 3 lines
In general, I would have liked a different way (still ID-based) of handling such issues without duplicating the whole structure. But I see this becoming the standard as
proc-v6.Sfollows it as well.This whole thing was something Russell specifically asked for (and practically wrote for me).
Yes, I know and I'm not saying that you should change it in this patch. It's just that I would have liked to only duplicate the setup function rather than the whole procinfo structure.
If you think about it, the only way to do that is to make things even more complicated than they already are by separating out the rest of the structure from the ID, mask, and setup functions. At that point, what if someone has just one change to the other values in the structure? They'll have the same complaint as you have, and they'll want it split in an entirely different way.
PATCH 4/24 GIC: Dont disable INT in ack callback
In reply to Jeff OhlsteinFrom: Abhijeet Dharmapurikar <[email protected]>
Unless gic_ack_irq is called from __do_IRQ, interrupt should not be disabled in the ack function.
--- arch/arm/common/gic.c | 14 -------------- 1 files changed, 0 insertions(+), 14 deletions(-)
arch/arm/common/gic.c +0 -14
@@ -67,25 +67,11 @@ static inline unsigned int gic_irq(unsigned int irq)/* * Routines to acknowledge, disable and enable interrupts -* -* Linux assumes that when we're done with an interrupt we need to -* unmask it, in the same way we need to unmask an interrupt when -* we first enable it. -* -* The GIC has a separate notion of "end of interrupt" to re-enable -* an interrupt after handling, in order to support hardware -* prioritisation. -* -* We can make the GIC behave in the way that Linux expects by making -* our "acknowledge" routine disable the interrupt, then mark it as -* complete. */ static void gic_ack_irq (unsigned int irq) { -u32 mask =1 << (irq %32 );spin_lock (&irq_controller_lock); -writel (mask,gic_dist_base (irq) +GIC_DIST_ENABLE_CLEAR + (gic_irq (irq) /32 ) *4 );writel (gic_irq (irq),gic_cpu_base (irq) +GIC_CPU_EOI );spin_unlock (&irq_controller_lock); }
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 5/24 msm: io: MSM8X60 io support
In reply to Jeff OhlsteinFrom: Steve Muckle <[email protected]>
MSM8X60 has different IO mappings than previous MSMs.
--- arch/arm/mach-msm/include/mach/io.h | 1 + arch/arm/mach-msm/include/mach/msm_iomap-8x60.h | 21 +++++++++++++++++++++ arch/arm/mach-msm/io.c | 15 +++++++++++++++ 3 files changed, 37 insertions(+), 0 deletions(-)
arch/arm/mach-msm/include/mach/io.h +1 -0
@@ -28,6 +28,7 @@ void __iomem *__msm_ioremap(unsigned long phys_addr, size_t size, unsigned int mvoid msm_map_qsd8x50_io (void );void msm_map_msm7x30_io (void ); +void msm_map_msm8x60_io (void );extern unsigned int msm_shared_ram_phys;
arch/arm/mach-msm/include/mach/msm_iomap-8x60.h +21 -0
@@ -35,8 +35,29 @@* */ + +#define MSM_QGIC_DIST_BASE IOMEM(0xF0000000) +#define MSM_QGIC_DIST_PHYS 0x02080000 +#define MSM_QGIC_DIST_SIZE SZ_4K + +#define MSM_QGIC_CPU_BASE IOMEM(0xF0001000) +#define MSM_QGIC_CPU_PHYS 0x02081000 +#define MSM_QGIC_CPU_SIZE SZ_4K + +#define MSM_ACC_BASE IOMEM(0xF0002000) +#define MSM_ACC_PHYS 0x02001000 +#define MSM_ACC_SIZE SZ_4K + +#define MSM_GCC_BASE IOMEM(0xF0003000) +#define MSM_GCC_PHYS 0x02082000 +#define MSM_GCC_SIZE SZ_4K +#define MSM_TLMM_BASE IOMEM(0xF0004000)#define MSM_TLMM_PHYS 0x00800000#define MSM_TLMM_SIZE SZ_16K +#define MSM_SHARED_RAM_BASE IOMEM(0xF0100000) +#define MSM_SHARED_RAM_SIZE SZ_1M + +#endif
arch/arm/mach-msm/io.c +15 -0
@@ -100,6 +100,21 @@ void __init msm_map_qsd8x50_io(void) }#endif /* CONFIG_ARCH_QSD8X50 */ +#ifdef CONFIG_ARCH_MSM8X60 +static struct map_desc msm8x60_io_desc[]__initdata = { +MSM_DEVICE (QGIC_DIST ), +MSM_DEVICE (QGIC_CPU ), +MSM_DEVICE (TMR ), +MSM_DEVICE (ACC ), +MSM_DEVICE (GCC ), +}; + +void __init msm_map_msm8x60_io (void ) +{ +iotable_init (msm8x60_io_desc,ARRAY_SIZE (msm8x60_io_desc)); +} +#endif /* CONFIG_ARCH_MSM8X60 */ +#ifdef CONFIG_ARCH_MSM7X30 static struct map_desc msm7x30_io_desc[]__initdata = { MSM_DEVICE(VIC),
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 6/24 msm: initial irq definitions for MSM8X60
In reply to Jeff OhlsteinFrom: Steve Muckle <[email protected]>
IRQ assignments are different for MSM8X60 than other existing MSMs.
--- arch/arm/mach-msm/include/mach/irqs-8x60.h | 42 ++++++++++++++++++++++++++++ arch/arm/mach-msm/include/mach/irqs.h | 2 + 2 files changed, 44 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-msm/include/mach/irqs-8x60.h
arch/arm/mach-msm/include/mach/irqs-8x60.h new file +42 -0
@@ -0,0 +1,42 @@ +/* Copyright (c) 2010 Code Aurora Forum. All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* * Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* * Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* * Neither the name of Code Aurora nor +* the names of its contributors may be used to endorse or promote +* products derived from this software without specific prior written +* permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +*/ + +#ifndef __ASM_ARCH_MSM_IRQS_8X60_H +#define __ASM_ARCH_MSM_IRQS_8X60_H + +/* MSM ACPU Interrupt Numbers */ + +/* 0-15: STI/SGI (software triggered/generated interrupts) +16-31: PPI (private peripheral interrupts) +32+: SPI (shared peripheral interrupts) */ + +#define NR_GPIO_IRQS 173 +#define NR_MSM_IRQS 256 +#define NR_BOARD_IRQS 0 + +#endif
arch/arm/mach-msm/include/mach/irqs.h +2 -0
@@ -24,6 +24,8 @@#elif defined(CONFIG_ARCH_QSD8X50 )#include "irqs-8x50.h" #include "sirc.h" +#elif defined(CONFIG_ARCH_MSM8X60 ) +#include "irqs-8x60.h" #elif defined(CONFIG_ARCH_MSM_ARM11 )#include "irqs-7x00.h" #else
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 7/24 msm: irqs-8x60: interrupt map
In reply to Jeff OhlsteinFrom: Abhijeet Dharmapurikar <[email protected]>
Define the interrupt map in irq-8x60.h
--- arch/arm/mach-msm/include/mach/irqs-8x60.h | 225 ++++++++++++++++++++++++++++ 1 files changed, 225 insertions(+), 0 deletions(-)
arch/arm/mach-msm/include/mach/irqs-8x60.h +225 -0
@@ -35,6 +35,231 @@16-31: PPI (private peripheral interrupts) 32+: SPI (shared peripheral interrupts) */ +#define GIC_PPI_START 16 +#define GIC_SPI_START 32 + +#define INT_DEBUG_TIMER_EXP (GIC_PPI_START + 0) +#define INT_GP_TIMER_EXP (GIC_PPI_START + 1) +#define INT_GP_TIMER2_EXP (GIC_PPI_START + 2) +#define WDT0_ACCSCSSNBARK_INT (GIC_PPI_START + 3) +#define WDT1_ACCSCSSNBARK_INT (GIC_PPI_START + 4) +#define AVS_SVICINT (GIC_PPI_START + 5) +#define AVS_SVICINTSWDONE (GIC_PPI_START + 6) +#define CPU_DBGCPUXCOMMRXFULL (GIC_PPI_START + 7) +#define CPU_DBGCPUXCOMMTXEMPTY (GIC_PPI_START + 8) +#define CPU_SICCPUXPERFMONIRPTREQ (GIC_PPI_START + 9) +#define SC_AVSCPUXDOWN (GIC_PPI_START + 10) +#define SC_AVSCPUXUP (GIC_PPI_START + 11) +#define SC_SICCPUXACGIRPTREQ (GIC_PPI_START + 12) +/* PPI 13 to 15 are unused */ + + +#define SC_SICMPUIRPTREQ (GIC_SPI_START + 0) +#define SC_SICL2IRPTREQ (GIC_SPI_START + 1) +#define SC_SICL2ACGIRPTREQ (GIC_SPI_START + 2) +#define NC (GIC_SPI_START + 3) +#define TLMM_SCSS_DIR_CONN_IRQ_0 (GIC_SPI_START + 4) +#define TLMM_SCSS_DIR_CONN_IRQ_1 (GIC_SPI_START + 5) +#define TLMM_SCSS_DIR_CONN_IRQ_2 (GIC_SPI_START + 6) +#define TLMM_SCSS_DIR_CONN_IRQ_3 (GIC_SPI_START + 7) +#define TLMM_SCSS_DIR_CONN_IRQ_4 (GIC_SPI_START + 8) +#define TLMM_SCSS_DIR_CONN_IRQ_5 (GIC_SPI_START + 9) +#define TLMM_SCSS_DIR_CONN_IRQ_6 (GIC_SPI_START + 10) +#define TLMM_SCSS_DIR_CONN_IRQ_7 (GIC_SPI_START + 11) +#define TLMM_SCSS_DIR_CONN_IRQ_8 (GIC_SPI_START + 12) +#define TLMM_SCSS_DIR_CONN_IRQ_9 (GIC_SPI_START + 13) +#define PM8058_SEC_IRQ_N (GIC_SPI_START + 14) +#define PM8901_SEC_IRQ_N (GIC_SPI_START + 15) +#define TLMM_SCSS_SUMMARY_IRQ (GIC_SPI_START + 16) +#define SPDM_RT_1_IRQ (GIC_SPI_START + 17) +#define SPDM_DIAG_IRQ (GIC_SPI_START + 18) +#define RPM_SCSS_CPU0_GP_HIGH_IRQ (GIC_SPI_START + 19) +#define RPM_SCSS_CPU0_GP_MEDIUM_IRQ (GIC_SPI_START + 20) +#define RPM_SCSS_CPU0_GP_LOW_IRQ (GIC_SPI_START + 21) +#define RPM_SCSS_CPU0_WAKE_UP_IRQ (GIC_SPI_START + 22) +#define RPM_SCSS_CPU1_GP_HIGH_IRQ (GIC_SPI_START + 23) +#define RPM_SCSS_CPU1_GP_MEDIUM_IRQ (GIC_SPI_START + 24) +#define RPM_SCSS_CPU1_GP_LOW_IRQ (GIC_SPI_START + 25) +#define RPM_SCSS_CPU1_WAKE_UP_IRQ (GIC_SPI_START + 26) +#define SSBI2_2_SC_CPU0_SECURE_INT (GIC_SPI_START + 27) +#define SSBI2_2_SC_CPU0_NON_SECURE_INT (GIC_SPI_START + 28) +#define SSBI2_1_SC_CPU0_SECURE_INT (GIC_SPI_START + 29) +#define SSBI2_1_SC_CPU0_NON_SECURE_INT (GIC_SPI_START + 30) +#define MSMC_SC_SEC_CE_IRQ (GIC_SPI_START + 31) +#define MSMC_SC_PRI_CE_IRQ (GIC_SPI_START + 32) +#define MARM_FIQ (GIC_SPI_START + 33) +#define MARM_IRQ (GIC_SPI_START + 34) +#define MARM_L2CC_IRQ (GIC_SPI_START + 35) +#define MARM_WDOG_EXPIRED (GIC_SPI_START + 36) +#define MARM_SCSS_GP_IRQ_0 (GIC_SPI_START + 37) +#define MARM_SCSS_GP_IRQ_1 (GIC_SPI_START + 38) +#define MARM_SCSS_GP_IRQ_2 (GIC_SPI_START + 39) +#define MARM_SCSS_GP_IRQ_3 (GIC_SPI_START + 40) +#define MARM_SCSS_GP_IRQ_4 (GIC_SPI_START + 41) +#define MARM_SCSS_GP_IRQ_5 (GIC_SPI_START + 42) +#define MARM_SCSS_GP_IRQ_6 (GIC_SPI_START + 43) +#define MARM_SCSS_GP_IRQ_7 (GIC_SPI_START + 44) +#define MARM_SCSS_GP_IRQ_8 (GIC_SPI_START + 45) +#define MARM_SCSS_GP_IRQ_9 (GIC_SPI_START + 46) +#define VPE_IRQ (GIC_SPI_START + 47) +#define VFE_IRQ (GIC_SPI_START + 48) +#define VCODEC_IRQ (GIC_SPI_START + 49) +#define TV_ENC_IRQ (GIC_SPI_START + 50) +#define SMMU_VPE_CB_SC_SECURE_IRQ (GIC_SPI_START + 51) +#define SMMU_VPE_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 52) +#define SMMU_VFE_CB_SC_SECURE_IRQ (GIC_SPI_START + 53) +#define SMMU_VFE_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 54) +#define SMMU_VCODEC_B_CB_SC_SECURE_IRQ (GIC_SPI_START + 55) +#define SMMU_VCODEC_B_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 56) +#define SMMU_VCODEC_A_CB_SC_SECURE_IRQ (GIC_SPI_START + 57) +#define SMMU_VCODEC_A_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 58) +#define SMMU_ROT_CB_SC_SECURE_IRQ (GIC_SPI_START + 59) +#define SMMU_ROT_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 60) +#define SMMU_MDP1_CB_SC_SECURE_IRQ (GIC_SPI_START + 61) +#define SMMU_MDP1_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 62) +#define SMMU_MDP0_CB_SC_SECURE_IRQ (GIC_SPI_START + 63) +#define SMMU_MDP0_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 64) +#define SMMU_JPEGD_CB_SC_SECURE_IRQ (GIC_SPI_START + 65) +#define SMMU_JPEGD_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 66) +#define SMMU_IJPEG_CB_SC_SECURE_IRQ (GIC_SPI_START + 67) +#define SMMU_IJPEG_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 68) +#define SMMU_GFX3D_CB_SC_SECURE_IRQ (GIC_SPI_START + 69) +#define SMMU_GFX3D_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 70) +#define SMMU_GFX2D0_CB_SC_SECURE_IRQ (GIC_SPI_START + 71) +#define SMMU_GFX2D0_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 72) +#define ROT_IRQ (GIC_SPI_START + 73) +#define MMSS_FABRIC_IRQ (GIC_SPI_START + 74) +#define MDP_IRQ (GIC_SPI_START + 75) +#define JPEGD_IRQ (GIC_SPI_START + 76) +#define JPEG_IRQ (GIC_SPI_START + 77) +#define MMSS_IMEM_IRQ (GIC_SPI_START + 78) +#define HDMI_IRQ (GIC_SPI_START + 79) +#define GFX3D_IRQ (GIC_SPI_START + 80) +#define GFX2D0_IRQ (GIC_SPI_START + 81) +#define DSI_IRQ (GIC_SPI_START + 82) +#define CSI_1_IRQ (GIC_SPI_START + 83) +#define CSI_0_IRQ (GIC_SPI_START + 84) +#define LPASS_SCSS_AUDIO_IF_OUT0_IRQ (GIC_SPI_START + 85) +#define LPASS_SCSS_MIDI_IRQ (GIC_SPI_START + 86) +#define LPASS_Q6SS_WDOG_EXPIRED (GIC_SPI_START + 87) +#define LPASS_SCSS_GP_LOW_IRQ (GIC_SPI_START + 88) +#define LPASS_SCSS_GP_MEDIUM_IRQ (GIC_SPI_START + 89) +#define LPASS_SCSS_GP_HIGH_IRQ (GIC_SPI_START + 90) +#define TOP_IMEM_IRQ (GIC_SPI_START + 91) +#define FABRIC_SYS_IRQ (GIC_SPI_START + 92) +#define FABRIC_APPS_IRQ (GIC_SPI_START + 93) +#define USB1_HS_BAM_IRQ (GIC_SPI_START + 94) +#define SDC4_BAM_IRQ (GIC_SPI_START + 95) +#define SDC3_BAM_IRQ (GIC_SPI_START + 96) +#define SDC2_BAM_IRQ (GIC_SPI_START + 97) +#define SDC1_BAM_IRQ (GIC_SPI_START + 98) +#define FABRIC_SPS_IRQ (GIC_SPI_START + 99) +#define USB1_HS_IRQ (GIC_SPI_START + 100) +#define SDC4_IRQ_0 (GIC_SPI_START + 101) +#define SDC3_IRQ_0 (GIC_SPI_START + 102) +#define SDC2_IRQ_0 (GIC_SPI_START + 103) +#define SDC1_IRQ_0 (GIC_SPI_START + 104) +#define SPS_BAM_DMA_IRQ (GIC_SPI_START + 105) +#define SPS_SEC_VIOL_IRQ (GIC_SPI_START + 106) +#define SPS_MTI_0 (GIC_SPI_START + 107) +#define SPS_MTI_1 (GIC_SPI_START + 108) +#define SPS_MTI_2 (GIC_SPI_START + 109) +#define SPS_MTI_3 (GIC_SPI_START + 110) +#define SPS_MTI_4 (GIC_SPI_START + 111) +#define SPS_MTI_5 (GIC_SPI_START + 112) +#define SPS_MTI_6 (GIC_SPI_START + 113) +#define SPS_MTI_7 (GIC_SPI_START + 114) +#define SPS_MTI_8 (GIC_SPI_START + 115) +#define SPS_MTI_9 (GIC_SPI_START + 116) +#define SPS_MTI_10 (GIC_SPI_START + 117) +#define SPS_MTI_11 (GIC_SPI_START + 118) +#define SPS_MTI_12 (GIC_SPI_START + 119) +#define SPS_MTI_13 (GIC_SPI_START + 120) +#define SPS_MTI_14 (GIC_SPI_START + 121) +#define SPS_MTI_15 (GIC_SPI_START + 122) +#define SPS_MTI_16 (GIC_SPI_START + 123) +#define SPS_MTI_17 (GIC_SPI_START + 124) +#define SPS_MTI_18 (GIC_SPI_START + 125) +#define SPS_MTI_19 (GIC_SPI_START + 126) +#define SPS_MTI_20 (GIC_SPI_START + 127) +#define SPS_MTI_21 (GIC_SPI_START + 128) +#define SPS_MTI_22 (GIC_SPI_START + 129) +#define SPS_MTI_23 (GIC_SPI_START + 130) +#define SPS_MTI_24 (GIC_SPI_START + 131) +#define SPS_MTI_25 (GIC_SPI_START + 132) +#define SPS_MTI_26 (GIC_SPI_START + 133) +#define SPS_MTI_27 (GIC_SPI_START + 134) +#define SPS_MTI_28 (GIC_SPI_START + 135) +#define SPS_MTI_29 (GIC_SPI_START + 136) +#define SPS_MTI_30 (GIC_SPI_START + 137) +#define SPS_MTI_31 (GIC_SPI_START + 138) +#define UXMC_EBI2_WR_ER_DONE_IRQ (GIC_SPI_START + 139) +#define UXMC_EBI2_OP_DONE_IRQ (GIC_SPI_START + 140) +#define USB2_IRQ (GIC_SPI_START + 141) +#define USB1_IRQ (GIC_SPI_START + 142) +#define TSSC_SSBI_IRQ (GIC_SPI_START + 143) +#define TSSC_SAMPLE_IRQ (GIC_SPI_START + 144) +#define TSSC_PENUP_IRQ (GIC_SPI_START + 145) +#define INT_UART1DM_IRQ (GIC_SPI_START + 146) +#define GSBI1_QUP_IRQ (GIC_SPI_START + 147) +#define INT_UART2DM_IRQ (GIC_SPI_START + 148) +#define GSBI2_QUP_IRQ (GIC_SPI_START + 149) +#define INT_UART3DM_IRQ (GIC_SPI_START + 150) +#define GSBI3_QUP_IRQ (GIC_SPI_START + 151) +#define INT_UART4DM_IRQ (GIC_SPI_START + 152) +#define GSBI4_QUP_IRQ (GIC_SPI_START + 153) +#define INT_UART5DM_IRQ (GIC_SPI_START + 154) +#define GSBI5_QUP_IRQ (GIC_SPI_START + 155) +#define INT_UART6DM_IRQ (GIC_SPI_START + 156) +#define GSBI6_QUP_IRQ (GIC_SPI_START + 157) +#define INT_UART7DM_IRQ (GIC_SPI_START + 158) +#define GSBI7_QUP_IRQ (GIC_SPI_START + 159) +#define INT_UART8DM_IRQ (GIC_SPI_START + 160) +#define GSBI8_QUP_IRQ (GIC_SPI_START + 161) +#define TSIF_TSPP_IRQ (GIC_SPI_START + 162) +#define TSIF_BAM_IRQ (GIC_SPI_START + 163) +#define TSIF2_IRQ (GIC_SPI_START + 164) +#define TSIF1_IRQ (GIC_SPI_START + 165) +#define INT_ADM1_MASTER (GIC_SPI_START + 166) +#define INT_ADM1_AARM (GIC_SPI_START + 167) +#define INT_ADM1_SD2 (GIC_SPI_START + 168) +#define INT_ADM1_SD3 (GIC_SPI_START + 169) +#define INT_ADM0_MASTER (GIC_SPI_START + 170) +#define INT_ADM0_AARM (GIC_SPI_START + 171) +#define INT_ADM0_SD2 (GIC_SPI_START + 172) +#define INT_ADM0_SD3 (GIC_SPI_START + 173) +#define CC_SCSS_WDT1CPU1BITEEXPIRED (GIC_SPI_START + 174) +#define CC_SCSS_WDT1CPU0BITEEXPIRED (GIC_SPI_START + 175) +#define CC_SCSS_WDT0CPU1BITEEXPIRED (GIC_SPI_START + 176) +#define CC_SCSS_WDT0CPU0BITEEXPIRED (GIC_SPI_START + 177) +#define TSENS_UPPER_LOWER_INT (GIC_SPI_START + 178) +#define SSBI2_2_SC_CPU1_SECURE_INT (GIC_SPI_START + 179) +#define SSBI2_2_SC_CPU1_NON_SECURE_INT (GIC_SPI_START + 180) +#define SSBI2_1_SC_CPU1_SECURE_INT (GIC_SPI_START + 181) +#define SSBI2_1_SC_CPU1_NON_SECURE_INT (GIC_SPI_START + 182) +#define XPU_SUMMARY_IRQ (GIC_SPI_START + 183) +#define BUS_EXCEPTION_SUMMARY_IRQ (GIC_SPI_START + 184) +#define HSDDRX_SMICH0_IRQ (GIC_SPI_START + 185) +#define HSDDRX_EBI1_IRQ (GIC_SPI_START + 186) +#define SDC5_BAM_IRQ (GIC_SPI_START + 187) +#define SDC5_IRQ_0 (GIC_SPI_START + 188) +#define INT_UART9DM_IRQ (GIC_SPI_START + 189) +#define GSBI9_QUP_IRQ (GIC_SPI_START + 190) +#define INT_UART10DM_IRQ (GIC_SPI_START + 191) +#define GSBI10_QUP_IRQ (GIC_SPI_START + 192) +#define INT_UART11DM_IRQ (GIC_SPI_START + 193) +#define GSBI11_QUP_IRQ (GIC_SPI_START + 194) +#define INT_UART12DM_IRQ (GIC_SPI_START + 195) +#define GSBI12_QUP_IRQ (GIC_SPI_START + 196) +/*SPI 197 to 216 arent used in 8x60*/ +#define SMPSS_SPARE_1 (GIC_SPI_START + 217) +#define SMPSS_SPARE_2 (GIC_SPI_START + 218) +#define SMPSS_SPARE_3 (GIC_SPI_START + 219) +#define SMPSS_SPARE_4 (GIC_SPI_START + 220) +#define SMPSS_SPARE_5 (GIC_SPI_START + 221) +#define SMPSS_SPARE_6 (GIC_SPI_START + 222) +#define SMPSS_SPARE_7 (GIC_SPI_START + 223) +#define NR_GPIO_IRQS 173#define NR_MSM_IRQS 256#define NR_BOARD_IRQS 0
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 8/24 msm: timer: support 8x60 timers
In reply to Jeff Ohlstein--- arch/arm/mach-msm/include/mach/msm_iomap-8x60.h | 10 +- arch/arm/mach-msm/timer.c | 226 +++++++++++++++++------ 2 files changed, 177 insertions(+), 59 deletions(-)
arch/arm/mach-msm/include/mach/msm_iomap-8x60.h +8 -2
@@ -35,7 +35,6 @@* */ -#define MSM_QGIC_DIST_BASE IOMEM(0xF0000000)#define MSM_QGIC_DIST_PHYS 0x02080000#define MSM_QGIC_DIST_SIZE SZ_4K
@@ -56,7 +55,14 @@#define MSM_TLMM_PHYS 0x00800000#define MSM_TLMM_SIZE SZ_16K -#define MSM_SHARED_RAM_BASE IOMEM(0xF0100000) +#define MSM_TMR_BASE IOMEM(0xF0100000) +#define MSM_TMR_PHYS 0x02000000 +#define MSM_TMR_SIZE (SZ_1M) + +#define MSM_GPT_BASE (MSM_TMR_BASE + 0x4) +#define MSM_DGT_BASE (MSM_TMR_BASE + 0x24) + +#define MSM_SHARED_RAM_BASE IOMEM(0xF0200000)#define MSM_SHARED_RAM_SIZE SZ_1M
arch/arm/mach-msm/timer.c +169 -57
268 lines not on this page · raw message
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 9/24 msm: MSM8X60 RUMI3 board support
In reply to Jeff OhlsteinFrom: Steve Muckle <[email protected]>
Board configuration for MSM8X60 emulation on RUMI3.
--- arch/arm/mach-msm/Kconfig | 7 ++++ arch/arm/mach-msm/Makefile | 2 +- arch/arm/mach-msm/board-msm8x60.c | 59 +++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-msm/board-msm8x60.c
arch/arm/mach-msm/Kconfig +7 -0
@@ -80,6 +80,13 @@ config MACH_QSD8X50A_ST1_5 help Support for the Qualcomm ST1.5. +config MACH_MSM8X60_RUMI3 + depends on ARCH_MSM8X60 + default n + bool "MSM8x60 RUMI3" + help + Support for the Qualcomm MSM8x60 RUMI3 emulator. + endmenu config MSM_DEBUG_UART
arch/arm/mach-msm/Makefile +1 -1
@@ -16,8 +16,8 @@ obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o d obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o - obj-y += gpiomux.o obj-$(CONFIG_ARCH_MSM7X30) += gpiomux-7x30.o gpiomux-7x00.o obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o gpiomux-7x00.o obj-$(CONFIG_ARCH_MSM8X60) += gpiomux-8x60.o +obj-$(CONFIG_MACH_MSM8X60_RUMI3) += board-msm8x60.o
arch/arm/mach-msm/board-msm8x60.c new file +59 -0
59 lines not on this page · raw message
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 09/24] msm: MSM8X60 RUMI3 board support
Quoted 24 lines · Jeff Ohlstein
arch/arm/mach-msm/board-msm8x60.c new file +18
-0@@ -0,0 +1,59 @@ +/* Copyright (c) 2010, Code Aurora Forum. All rights reserved. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 and +* only version 2 as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +* 02110-1301, USA. +* +*/ +
arch/arm/mach-msm/board-msm8x60.c line 28
Quoted 10 lines
arch/arm/mach-msm/board-msm8x60.c new file +10
-0+#include <linux/kernel.h> +#include <linux/platform_device.h> + +#include <asm/mach-types.h> +#include <asm/mach/arch.h> +#include <asm/hardware/gic.h> + +#include <mach/board.h> +#include <mach/msm_iomap.h> +#include <mach/io.h>
linux/io.h
arch/arm/mach-msm/board-msm8x60.c line 31
Quoted 3 lines
arch/arm/mach-msm/board-msm8x60.c new file +3
-0+ +extern struct sys_timer msm_timer; +void __iomem *gic_cpu_base_addr;
Please move to a header file.
Re: [PATCH 09/24] msm: MSM8X60 RUMI3 board support
Quoted 8 lines · Russell King - ARM Linux
arch/arm/mach-msm/board-msm8x60.c line 31
Quoted 4 lines · Jeff Ohlstein
arch/arm/mach-msm/board-msm8x60.c new file +3
-0+ +extern struct sys_timer msm_timer; +void __iomem *gic_cpu_base_addr;Please move to a header file.
I can move the extern to a header, not sure about the gic_cpu_base_addr. Seems like other machine types have it in C code. Even with a prototype in a header I need to define it somewhere.
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 10/24 msm: irq: rename existing entry-macro to entry-macro-vic
In reply to Jeff OhlsteinFrom: Steve Muckle <[email protected]>
The existing MSM irq entry macro is specific to a VIC implementation. Renaming this makes room for irq support based on other interrupt controllers.
--- arch/arm/mach-msm/include/mach/entry-macro-qgic.S | 96 +++++++++++++++++++++ arch/arm/mach-msm/include/mach/entry-macro-vic.S | 37 ++++++++ arch/arm/mach-msm/include/mach/entry-macro.S | 43 +++------ arch/arm/mach-msm/include/mach/smp.h | 39 +++++++++ 4 files changed, 186 insertions(+), 29 deletions(-) create mode 100644 arch/arm/mach-msm/include/mach/entry-macro-qgic.S create mode 100644 arch/arm/mach-msm/include/mach/entry-macro-vic.S create mode 100644 arch/arm/mach-msm/include/mach/smp.h
arch/arm/mach-msm/include/mach/entry-macro-qgic.S new file +96 -0
@@ -0,0 +1,96 @@ +/* + * Low-level IRQ helper macros + * + * Copyright (c) 2010, Code Aurora Forum. All rights reserved. + * + * This file is licensed under the terms of the GNU General Public + * License version 2. This program is licensed "as is" without any + * warranty of any kind, whether express or implied. + */ + +#include <mach/hardware.h> +#include <asm/hardware/gic.h> + + .macro disable_fiq + .endm + + .macro get_irqnr_preamble, base, tmp + ldr \base, =gic_cpu_base_addr + ldr \base, [\base] + .endm + + .macro arch_ret_to_user, tmp1, tmp2 + .endm + + /* + * The interrupt numbering scheme is defined in the + * interrupt controller spec. To wit: + * + * Migrated the code from ARM MP port to be more consistant + * with interrupt processing , the following still holds true + * however, all interrupts are treated the same regardless of + * if they are local IPI or PPI + * + * Interrupts 0-15 are IPI + * 16-31 are PPI + * (16-18 are the timers) + * 32-1020 are global + * 1021-1022 are reserved + * 1023 is "spurious" (no interrupt) + * + * A simple read from the controller will tell us the number of the + * highest priority enabled interrupt. We then just need to check + * whether it is in the valid range for an IRQ (0-1020 inclusive). + * + * Base ARM code assumes that the local (private) peripheral interrupts + * are not valid, we treat them differently, in that the privates are + * handled like normal shared interrupts with the exception that only + * one processor can register the interrupt and the handler must be + * the same for all processors. + */ + + .macro get_irqnr_and_base, irqnr, irqstat, base, tmp + + ldr \irqstat, [\base, #GIC_CPU_INTACK] /* bits 12-10 =srcCPU, + 9-0 =int # */ + + bic \irqnr, \irqstat, #0x1c00 @mask src +#ifdef CONFIG_REQUEST_IPI + cmp \irqnr, #0 +#else + cmp \irqnr, #15 +#endif + ldr \tmp, =1021 + cmpcc \irqnr, \irqnr + cmpne \irqnr, \tmp + cmpcs \irqnr, \irqnr + + .endm + + /* We assume that irqstat (the raw value of the IRQ acknowledge + * register) is preserved from the macro above. + * If there is an IPI, we immediately signal end of interrupt on the + * controller, since this requires the original irqstat value which + * we won't easily be able to recreate later. + */ + .macro test_for_ipi, irqnr, irqstat, base, tmp +#ifndef CONFIG_REQUEST_IPI + bic \irqnr, \irqstat, #0x1c00 + cmp \irqnr, #16 + strcc \irqstat, [\base, #GIC_CPU_EOI] + cmpcs \irqnr, \irqnr +#endif + .endm + + /* As above, this assumes that irqstat and base are preserved.. */ + + .macro test_for_ltirq, irqnr, irqstat, base, tmp +#ifndef CONFIG_REQUEST_IPI + bic \irqnr, \irqstat, #0x1c00 + mov \tmp, #0 + cmp \irqnr, #16 + moveq \tmp, #1 + streq \irqstat, [\base, #GIC_CPU_EOI] + cmp \tmp, #0 +#endif + .endm
arch/arm/mach-msm/include/mach/entry-macro-vic.S new file +37 -0
@@ -0,0 +1,37 @@ +/* + * Copyright (C) 2007 Google, Inc. + * Author: Brian Swetland <[email protected]> + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#include <mach/msm_iomap.h> + + .macro disable_fiq + .endm + + .macro get_irqnr_preamble, base, tmp + @ enable imprecise aborts + cpsie a + mov \base, #MSM_VIC_BASE + .endm + + .macro arch_ret_to_user, tmp1, tmp2 + .endm + + .macro get_irqnr_and_base, irqnr, irqstat, base, tmp + @ 0xD0 has irq# or old irq# if the irq has been handled + @ 0xD4 has irq# or -1 if none pending *but* if you just + @ read 0xD4 you never get the first irq for some reason + ldr \irqnr, [\base, #0xD0] + ldr \irqnr, [\base, #0xD4] + cmp \irqnr, #0xffffffff + .endm
arch/arm/mach-msm/include/mach/entry-macro.S +14 -29
52 lines not on this page · raw message
arch/arm/mach-msm/include/mach/smp.h new file +39 -0
@@ -0,0 +1,39 @@ +/* Copyright (c) 2010, Code Aurora Forum. All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* * Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* * Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* * Neither the name of Code Aurora nor +* the names of its contributors may be used to endorse or promote +* products derived from this software without specific prior written +* permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +*/ + +#ifndef __ASM_ARCH_MSM_SMP_H +#define __ASM_ARCH_MSM_SMP_H + +#include <asm/hardware/gic.h> + +static inline void smp_cross_call (const struct cpumask *mask) +{ +gic_raise_softirq (mask,1 ); +} + +#endif
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 10/24] msm: irq: rename existing entry-macro to entry-macro-vic
arch/arm/mach-msm/include/mach/entry-macro-qgic.S line 62
Quoted 5 lines · Jeff Ohlstein
arch/arm/mach-msm/include/mach/entry-macro-qgic.S new file +5
-0+#ifdef CONFIG_REQUEST_IPI + cmp \irqnr, #0 +#else + cmp \irqnr, #15 +#endif
What is CONFIG_REQUEST_IPI, and is it ever defined?
PATCH 11/24 msm: 8x60: gic initialization fixup for RUMI
In reply to Jeff OhlsteinFrom: Steve Muckle <[email protected]>
On RUMI platform STIs are not enabled by default, contrary to the GIC spec. The bits for STIs in the enable/enable clear registers are also RW instead of RO. STIs need to be enabled at initialization time.
--- arch/arm/mach-msm/board-msm8x60.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-)
arch/arm/mach-msm/board-msm8x60.c +21 -0
@@ -18,6 +18,8 @@#include <linux/kernel.h> #include <linux/platform_device.h> +#include <linux/irq.h> +#include <linux/io.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
@@ -42,9 +44,28 @@ static void __init msm8x60_map_io(void)static void __init msm8x60_init_irq (void ) { +unsigned int i; +gic_dist_init (0 ,MSM_QGIC_DIST_BASE ,1 ); gic_cpu_base_addr = (void *)MSM_QGIC_CPU_BASE ;gic_cpu_init (0 ,MSM_QGIC_CPU_BASE ); + +/* Edge trigger PPIs except AVS_SVICINT and AVS_SVICINTSWDONE */ +writel (0xFFFFD7FF ,MSM_QGIC_DIST_BASE +GIC_DIST_CONFIG +4 ); + +/* RUMI does not adhere to GIC spec by enabling STIs by default. +* Enable/clear is supposed to be RO for STIs, but is RW on RUMI. +*/ +writel (0x0000FFFF ,MSM_QGIC_DIST_BASE +GIC_DIST_ENABLE_SET ); + +/* FIXME: Not installing AVS_SVICINT and AVS_SVICINTSWDONE yet +* as they are configured as level, which does not play nice with +* handle_percpu_irq. +*/ +for (i =GIC_PPI_START ; i <GIC_SPI_START ; i++) { +if (i !=AVS_SVICINT && i !=AVS_SVICINTSWDONE ) +set_irq_handler (i, handle_percpu_irq); + } }static void __init msm8x60_init (void )
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 12/24 msm: clock: add dummy clock driver
In reply to Jeff OhlsteinNeed to add this until real clock support for 8x60 goes in, or else some drivers won't compile.
--- arch/arm/mach-msm/Makefile | 1 + arch/arm/mach-msm/clock-dummy.c | 54 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-msm/clock-dummy.c
arch/arm/mach-msm/Makefile +1 -0
@@ -7,6 +7,7 @@ else obj-y += irq.o endif +obj-$(CONFIG_ARCH_MSM8X60) += clock-dummy.o obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o obj-$(CONFIG_MSM_PROC_COMM) += clock.o gpio.o obj-$(CONFIG_ARCH_QSD8X50) += sirc.o
arch/arm/mach-msm/clock-dummy.c new file +54 -0
54 lines not on this page · raw message
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 13/24 dma: add stub functions for dma features not yet present on 8x60
In reply to Jeff Ohlstein--- arch/arm/mach-msm/include/mach/dma.h | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-)
arch/arm/mach-msm/include/mach/dma.h +9 -1
@@ -32,10 +32,18 @@ struct msm_dmov_cmd {void *data; }; +#ifndef CONFIG_ARCH_MSM8X60 void msm_dmov_enqueue_cmd (unsigned id,struct msm_dmov_cmd *cmd);void msm_dmov_stop_cmd (unsigned id,struct msm_dmov_cmd *cmd,int graceful);int msm_dmov_exec_cmd (unsigned id,unsigned int cmdptr); - +#else +static inline +void msm_dmov_enqueue_cmd (unsigned id,struct msm_dmov_cmd *cmd) { } +static inline +void msm_dmov_stop_cmd (unsigned id,struct msm_dmov_cmd *cmd,int graceful) { } +static inline +int msm_dmov_exec_cmd (unsigned id,unsigned int cmdptr) {return -EIO ; } +#endif #define DMOV_SD0 (off, ch) (MSM_DMOV_BASE + 0x0000 + (off) + ((ch) << 2))
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 14/24 msm: add hotplug stub functions
In reply to Jeff OhlsteinFrom: Daniel Walker <[email protected]>
We don't actually do anything for hotplug yet. This just lets everything compile, even when hotplug is enabled.
--- arch/arm/mach-msm/Makefile | 1 + arch/arm/mach-msm/hotplug.c | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-msm/hotplug.c
arch/arm/mach-msm/Makefile +1 -0
@@ -21,4 +21,5 @@ obj-y += gpiomux.o obj-$(CONFIG_ARCH_MSM7X30) += gpiomux-7x30.o gpiomux-7x00.o obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o gpiomux-7x00.o obj-$(CONFIG_ARCH_MSM8X60) += gpiomux-8x60.o +obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o obj-$(CONFIG_MACH_MSM8X60_RUMI3) += board-msm8x60.o
arch/arm/mach-msm/hotplug.c new file +22 -0
@@ -0,0 +1,22 @@ +/* +* Do nothing for now. +*/ + +int platform_cpu_kill (unsigned int cpu) +{ +return 0 ; +} + +void platform_cpu_die (unsigned int cpu) +{ +} + +int platform_cpu_disable (unsigned int cpu) +{ +return 0 ; +} + +void local_timer_stop (void ) +{ +} +
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 14/24] msm: add hotplug stub functions
Quoted 4 lines · Jeff Ohlstein
From: Daniel Walker <[email protected]>
We don't actually do anything for hotplug yet. This just lets everything compile, even when hotplug is enabled.
And the point of that is? If you're not supporting hotplug CPU yet, then don't allow it to be enabled.
Re: [PATCH 14/24] msm: add hotplug stub functions
Quoted 8 lines · Russell King - ARM Linux
Quoted 4 lines · Jeff Ohlstein
From: Daniel Walker <[email protected]>
We don't actually do anything for hotplug yet. This just lets everything compile, even when hotplug is enabled.
And the point of that is? If you're not supporting hotplug CPU yet, then don't allow it to be enabled.
How do we do that? I didn't see a easy way to prevent it.
Daniel
Signature · 2 lines
Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 14/24] msm: add hotplug stub functions
Quoted 11 lines · Daniel Walker
Quoted 8 lines · Russell King - ARM Linux
Quoted 4 lines · Jeff Ohlstein
From: Daniel Walker <[email protected]>
We don't actually do anything for hotplug yet. This just lets everything compile, even when hotplug is enabled.
And the point of that is? If you're not supporting hotplug CPU yet, then don't allow it to be enabled.
How do we do that? I didn't see a easy way to prevent it.
config HOTPLUG_CPU
bool "Support for hot-pluggable CPUs (EXPERIMENTAL)" depends on SMP && HOTPLUG && EXPERIMENTAL
+ depends on !ARCH_MSM
Re: [PATCH 14/24] msm: add hotplug stub functions
Quoted 17 lines · Russell King - ARM Linux
Quoted 11 lines · Daniel Walker
Quoted 8 lines · Russell King - ARM Linux
Quoted 4 lines · Jeff Ohlstein
From: Daniel Walker <[email protected]>
We don't actually do anything for hotplug yet. This just lets everything compile, even when hotplug is enabled.
And the point of that is? If you're not supporting hotplug CPU yet, then don't allow it to be enabled.
How do we do that? I didn't see a easy way to prevent it.
config
HOTPLUG_CPU
bool "Support for hot-pluggable CPUs (EXPERIMENTAL)" depends on SMP && HOTPLUG && EXPERIMENTAL
Review
Quoted 1 line
(quoted diff) +1
-0+ depends on !ARCH_MSM
So every other SMP does this? I didn't see any other's besides RealView implementing these. I just assumed they all had compile failures.
Daniel
Signature · 2 lines
Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 14/24] msm: add hotplug stub functions
In reply to Russell King - ARM LinuxQuoted 17 lines · Russell King - ARM Linux
Quoted 11 lines · Daniel Walker
Quoted 8 lines · Russell King - ARM Linux
Quoted 4 lines · Jeff Ohlstein
From: Daniel Walker <[email protected]>
We don't actually do anything for hotplug yet. This just lets everything compile, even when hotplug is enabled.
And the point of that is? If you're not supporting hotplug CPU yet, then don't allow it to be enabled.
How do we do that? I didn't see a easy way to prevent it.
config
HOTPLUG_CPU
bool "Support for hot-pluggable CPUs (EXPERIMENTAL)" depends on SMP && HOTPLUG && EXPERIMENTAL
Review
Quoted 2 lines
(quoted diff) +1
-1+ depends on !ARCH_MSM --
If no others use it .. We can do this to fix them all. What do you think?
arch/arm/Kconfig +4 -1
@@ -1163,9 +1163,12 @@ config NR_CPUS depends on SMP default "4" +config HAS_HOTPLUG_CPU + bool + config HOTPLUG_CPU bool "Support for hot-pluggable CPUs (EXPERIMENTAL)" - depends on SMP && HOTPLUG && EXPERIMENTAL + depends on SMP && HOTPLUG && EXPERIMENTAL && HAS_HOTPLUG_CPU help Say Y here to experiment with turning CPUs off and on. CPUs can be controlled through /sys/devices/system/cpu.
arch/arm/mach-realview/Kconfig +4 -0
@@ -11,6 +11,7 @@ config REALVIEW_EB_A9MP bool "Support Multicore Cortex-A9" depends on MACH_REALVIEW_EB select CPU_V7 + select HAS_HOTPLUG_CPU help Enable support for the Cortex-A9MPCore tile on the Realview platform.
@@ -19,6 +20,7 @@ config REALVIEW_EB_ARM11MP depends on MACH_REALVIEW_EB select CPU_V6 select ARCH_HAS_BARRIERS if SMP + select HAS_HOTPLUG_CPU help Enable support for the ARM11MPCore tile on the Realview platform.
@@ -37,6 +39,7 @@ config MACH_REALVIEW_PB11MP select ARM_GIC select HAVE_PATA_PLATFORM select ARCH_HAS_BARRIERS if SMP + select HAS_HOTPLUG_CPU help Include support for the ARM(R) RealView MPCore Platform Baseboard. PB11MPCore is a platform with an on-board ARM11MPCore and has
@@ -74,6 +77,7 @@ config MACH_REALVIEW_PBX select HAVE_PATA_PLATFORM select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !REALVIEW_HIGH_PHYS_OFFSET select ZONE_DMA if SPARSEMEM + select HAS_HOTPLUG_CPU help Include support for the ARM(R) RealView PBX platform.
Signature · 2 lines
Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 14/24] msm: add hotplug stub functions
Quoted 2 lines · Daniel Walker
If no others use it .. We can do this to fix them all. What do you think?
If no one else implements it, then you can't suspend, nor can you support kexec. (We should update Kconfig to add this as a dependency.)
So if you want these features, you'll need to implement hotplug CPU support.
Re: [PATCH 14/24] msm: add hotplug stub functions
Quoted 6 lines · Russell King - ARM Linux
Quoted 2 lines · Daniel Walker
If no others use it .. We can do this to fix them all. What do you think?
If no one else implements it, then you can't suspend, nor can you support kexec. (We should update
Kconfigto add this as a dependency.)
I must be wrong then, but I don't see those function anyplace but in RealView.. Maybe they aren't suspending in SMP yet..
Quoted 2 lines
So if you want these features, you'll need to implement hotplug CPU support.
Ok ..
Daniel
Signature · 3 lines
Sent by an consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 15/24 msm: allow uart to be conditionally disabled
In reply to Jeff OhlsteinFrom: Daniel Walker <[email protected]>
Some MSM targets don't select the debug UART in this way. For those we need to disable this selection mechanism.
--- arch/arm/mach-msm/Kconfig | 8 +++++++- arch/arm/mach-msm/include/mach/debug-macro.S | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-)
arch/arm/mach-msm/Kconfig +7 -1
@@ -11,6 +11,7 @@ config ARCH_MSM7X00A select MSM_SMD_PKG3 select CPU_V6 select MSM_PROC_COMM + select HAS_MSM_DEBUG_UART_PHYS config ARCH_MSM7X30 bool "MSM7x30"
@@ -20,6 +21,7 @@ config ARCH_MSM7X30 select CPU_V7 select MSM_REMOTE_SPINLOCK_DEKKERS select MSM_PROC_COMM + select HAS_MSM_DEBUG_UART_PHYS config ARCH_QSD8X50 bool "QSD8X50"
@@ -29,6 +31,7 @@ config ARCH_QSD8X50 select CPU_V7 select MSM_REMOTE_SPINLOCK_LDREX select MSM_PROC_COMM + select HAS_MSM_DEBUG_UART_PHYS endchoice
@@ -41,7 +44,8 @@ config ARCH_MSM_SCORPION bool config ARCH_MSM_SCORPIONMP bool - +config HAS_MSM_DEBUG_UART_PHYS + bool config MSM_VIC bool
@@ -95,6 +99,7 @@ config MSM_DEBUG_UART default 2 if MSM_DEBUG_UART2 default 3 if MSM_DEBUG_UART3 +if HAS_MSM_DEBUG_UART_PHYS choice prompt "Debug UART"
@@ -112,6 +117,7 @@ choice config MSM_DEBUG_UART3 bool "UART3" endchoice +endif config MSM_SMD_PKG3 bool
arch/arm/mach-msm/include/mach/debug-macro.S +1 -1
@@ -19,7 +19,7 @@ #include <mach/hardware.h> #include <mach/msm_iomap.h> -#ifdef CONFIG_MSM_DEBUG_UART +#ifdef CONFIG_HAS_MSM_DEBUG_UART_PHYS .macro addruart, rx, tmp @ see if the MMU is enabled and select appropriate base address mrc p15, 0, \rx, c1, c0
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 16/24 msm: add build support for msm8x60 target
In reply to Jeff Ohlstein--- arch/arm/mach-msm/Kconfig | 7 +++++++ arch/arm/mach-msm/Makefile | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletions(-)
arch/arm/mach-msm/Kconfig +7 -0
@@ -33,6 +33,13 @@ config ARCH_QSD8X50 select MSM_PROC_COMM select HAS_MSM_DEBUG_UART_PHYS +config ARCH_MSM8X60 + bool "MSM8X60" + select ARCH_MSM_SCORPIONMP + select ARM_GIC + select CPU_V7 + select MSM_V2_TLMM + endchoice config MSM_SOC_REV_A
arch/arm/mach-msm/Makefile +6 -1
@@ -1,11 +1,16 @@ -obj-y += io.o idle.o timer.o dma.o +obj-y += io.o idle.o timer.o +ifndef CONFIG_ARCH_MSM8X60 obj-y += acpuclock-arm11.o +obj-y += gpio.o dma.o +endif ifdef CONFIG_MSM_VIC obj-y += irq-vic.o else +ifndef CONFIG_ARCH_MSM8X60 obj-y += irq.o endif +endif obj-$(CONFIG_ARCH_MSM8X60) += clock-dummy.o obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 17/24 msm: 8x60: setup correct handlers for private interrupts
In reply to Jeff OhlsteinFrom: Abhijeet Dharmapurikar <[email protected]>
Private Peripheral interrupts could be edge triggered or level triggered depending on the platform. Initialize handlers for these in board file.
--- arch/arm/mach-msm/board-msm8x60.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-msm/board-msm8x60.c +1 -1
@@ -46,7 +46,7 @@ static void __init msm8x60_init_irq(void) {unsigned int i; -gic_dist_init (0 ,MSM_QGIC_DIST_BASE ,1 ); +gic_dist_init (0 ,MSM_QGIC_DIST_BASE ,GIC_PPI_START ); gic_cpu_base_addr = (void *)MSM_QGIC_CPU_BASE ;gic_cpu_init (0 ,MSM_QGIC_CPU_BASE );
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 18/24 msm: physical offset for MSM8X60
In reply to Jeff OhlsteinThe MSM8x60 has a different physical memory offset than other targets.
--- arch/arm/mach-msm/include/mach/memory.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-msm/include/mach/memory.h +2 -0
@@ -23,6 +23,8 @@#define PHYS_OFFSET UL(0x20000000)#elif defined(CONFIG_ARCH_MSM7X30 )#define PHYS_OFFSET UL(0x00200000) +#elif defined(CONFIG_ARCH_MSM8X60 ) +#define PHYS_OFFSET UL(0x40200000)#else #define PHYS_OFFSET UL(0x10000000)#endif
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 19/24 msm: add msm8x60_surf machine
In reply to Jeff OhlsteinFrom: Steve Muckle <[email protected]>
--- arch/arm/mach-msm/Kconfig | 7 +++++++ arch/arm/mach-msm/Makefile | 1 + arch/arm/mach-msm/board-msm8x60.c | 7 +++++++ 3 files changed, 15 insertions(+), 0 deletions(-)
arch/arm/mach-msm/Kconfig +7 -0
@@ -98,6 +98,13 @@ config MACH_MSM8X60_RUMI3 help Support for the Qualcomm MSM8x60 RUMI3 emulator. +config MACH_MSM8X60_SURF + depends on ARCH_MSM8X60 + default n + bool "MSM8x60 SURF" + help + Support for the Qualcomm MSM8x60 SURF eval board. + endmenu config MSM_DEBUG_UART
arch/arm/mach-msm/Makefile +1 -0
@@ -28,3 +28,4 @@ obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o gpiomux-7x00.o obj-$(CONFIG_ARCH_MSM8X60) += gpiomux-8x60.o obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o obj-$(CONFIG_MACH_MSM8X60_RUMI3) += board-msm8x60.o +obj-$(CONFIG_MACH_MSM8X60_SURF) += board-msm8x60.o
arch/arm/mach-msm/board-msm8x60.c +7 -0
@@ -78,3 +78,10 @@ MACHINE_START(MSM8X60_RUMI3, "QCT MSM8X60 RUMI3") .init_machine = msm8x60_init, .timer = &msm_timer, MACHINE_END + +MACHINE_START (MSM8X60_SURF ,"QCT MSM8X60 SURF" ) + .map_io = msm8x60_map_io, + .init_irq = msm8x60_init_irq, + .init_machine = msm8x60_init, + .timer = &msm_timer, +MACHINE_END
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 20/24 msm: MSM8X60 simulator board support
In reply to Jeff OhlsteinFrom: Steve Muckle <[email protected]>
Board configuration for MSM8X60 simulation.
--- arch/arm/mach-msm/Kconfig | 7 +++++++ arch/arm/mach-msm/Makefile | 1 + arch/arm/mach-msm/board-msm8x60.c | 10 +++++++++- 3 files changed, 17 insertions(+), 1 deletions(-)
arch/arm/mach-msm/Kconfig +7 -0
@@ -105,6 +105,13 @@ config MACH_MSM8X60_SURF help Support for the Qualcomm MSM8x60 SURF eval board. +config MACH_MSM8X60_SIM + depends on ARCH_MSM8X60 + default n + bool "MSM8x60 Simulator" + help + Support for the Qualcomm MSM8x60 simulator. + endmenu config MSM_DEBUG_UART
arch/arm/mach-msm/Makefile +1 -0
@@ -29,3 +29,4 @@ obj-$(CONFIG_ARCH_MSM8X60) += gpiomux-8x60.o obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o obj-$(CONFIG_MACH_MSM8X60_RUMI3) += board-msm8x60.o obj-$(CONFIG_MACH_MSM8X60_SURF) += board-msm8x60.o +obj-$(CONFIG_MACH_MSM8X60_SIM) += board-msm8x60.o
arch/arm/mach-msm/board-msm8x60.c +9 -1
@@ -56,7 +56,8 @@ static void __init msm8x60_init_irq(void)/* RUMI does not adhere to GIC spec by enabling STIs by default. * Enable/clear is supposed to be RO for STIs, but is RW on RUMI. */ -writel (0x0000FFFF ,MSM_QGIC_DIST_BASE +GIC_DIST_ENABLE_SET ); +if (!machine_is_msm8x60_sim ()) +writel (0x0000FFFF ,MSM_QGIC_DIST_BASE +GIC_DIST_ENABLE_SET );/* FIXME: Not installing AVS_SVICINT and AVS_SVICINTSWDONE yet * as they are configured as level, which does not play nice with
@@ -85,3 +86,10 @@ MACHINE_START(MSM8X60_SURF, "QCT MSM8X60 SURF") .init_machine = msm8x60_init, .timer = &msm_timer, MACHINE_END + +MACHINE_START (MSM8X60_SIM ,"QCT MSM8X60 SIMULATOR" ) + .map_io = msm8x60_map_io, + .init_irq = msm8x60_init_irq, + .init_machine = msm8x60_init, + .timer = &msm_timer, +MACHINE_END
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 20/24] msm: MSM8X60 simulator board support
Quoted 16 lines · Jeff Ohlstein
From: Steve Muckle <[email protected]>
Board configuration for MSM8X60 simulation.
Signed-off-by Steve Muckle <[email protected]>--- arch/arm/mach-msm/Kconfig | 7 +++++++ arch/arm/mach-msm/Makefile | 1 + arch/arm/mach-msm/board-msm8x60.c | 10 +++++++++- 3 files changed, 17 insertions(+), 1 deletions(-)arch/arm/mach-msm/Kconfig +0
-0
arch/arm/mach-msm/Kconfig config MACH_MSM8X60_SURF · line 110
Quoted 6 lines
arch/arm/mach-msm/Kconfig +3
-0@@ -105,6 +105,13 @@ config MACH_MSM8X60_SURF help Support for the Qualcomm MSM8x60 SURF eval board. +config MACH_MSM8X60_SIM + depends on ARCH_MSM8X60 + default n
All these 'default n' statements can be removed - n is the default anyway.
Re: [PATCH 20/24] msm: MSM8X60 simulator board support
Quoted 5 lines · Russell King - ARM Linux
arch/arm/mach-msm/Kconfig config MACH_MSM8X60_SURF · line 110
Quoted 3 lines
arch/arm/mach-msm/Kconfig +3
-0+config MACH_MSM8X60_SIM + depends on ARCH_MSM8X60 + default nAll these 'default n' statements can be removed - n is the default anyway.
Isn't the behavior different, though? If I do a 'make oldconfig' after a kernel upgrade, new options that don't have defaults will stop and prompt me, whereas ones with a listed default will just select the default without asking.
I though the desire was to not have it stop and ask unless it really was something that the user needed to make a decision about.
David
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Re: [PATCH 20/24] msm: MSM8X60 simulator board support
Quoted 8 lines · David Brown
Quoted 5 lines · Russell King - ARM Linux
arch/arm/mach-msm/Kconfig config MACH_MSM8X60_SURF · line 110
Quoted 3 lines
arch/arm/mach-msm/Kconfig +3
-0+config MACH_MSM8X60_SIM + depends on ARCH_MSM8X60 + default nAll these 'default n' statements can be removed - n is the default anyway.
Quoted 4 lines
Isn't the behavior different, though? If I do a 'make oldconfig' after a kernel upgrade, new options that don't have defaults will stop and prompt me, whereas ones with a listed default will just select the default without asking.
You always get asked about new options which have an option text - but 'default' sets what you get when you just hit 'enter' on them.
PATCH 21/24 msm: add MSM8x60 FFA support
In reply to Jeff OhlsteinFrom: Gregory Bean <[email protected]>
The MSM8X60 FFA contains different components than the MSM8X60 SURF, and therefore requires a different ARCH type and machine ID.
--- arch/arm/mach-msm/Kconfig | 7 +++++++ arch/arm/mach-msm/Makefile | 1 + arch/arm/mach-msm/board-msm8x60.c | 7 +++++++ 3 files changed, 15 insertions(+), 0 deletions(-)
arch/arm/mach-msm/Kconfig +7 -0
@@ -112,6 +112,13 @@ config MACH_MSM8X60_SIM help Support for the Qualcomm MSM8x60 simulator. +config MACH_MSM8X60_FFA + depends on ARCH_MSM8X60 + default n + bool "MSM8x60 FFA" + help + Support for the Qualcomm MSM8x60 FFA eval board. + endmenu config MSM_DEBUG_UART
arch/arm/mach-msm/Makefile +1 -0
@@ -30,3 +30,4 @@ obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o obj-$(CONFIG_MACH_MSM8X60_RUMI3) += board-msm8x60.o obj-$(CONFIG_MACH_MSM8X60_SURF) += board-msm8x60.o obj-$(CONFIG_MACH_MSM8X60_SIM) += board-msm8x60.o +obj-$(CONFIG_MACH_MSM8X60_FFA) += board-msm8x60.o
arch/arm/mach-msm/board-msm8x60.c +7 -0
@@ -93,3 +93,10 @@ MACHINE_START(MSM8X60_SIM, "QCT MSM8X60 SIMULATOR") .init_machine = msm8x60_init, .timer = &msm_timer, MACHINE_END + +MACHINE_START (MSM8X60_FFA ,"QCT MSM8X60 FFA" ) + .map_io = msm8x60_map_io, + .init_irq = msm8x60_init_irq, + .init_machine = msm8x60_init, + .timer = &msm_timer, +MACHINE_END
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 22/24 msm: Add MSM IOMMU support
In reply to Jeff OhlsteinFrom: Stepan Moskovchenko <[email protected]>
Add support for the IOMMUs found on the upcoming Qualcomm MSM8x60 chips. These IOMMUs allow virtualization of the address space used by most of the multimedia cores on these chips.
--- arch/arm/mach-msm/include/mach/iommu.h | 103 ++ arch/arm/mach-msm/include/mach/iommu_hw-8xxx.h | 1871 ++++++++++++++++++++++++ arch/arm/mach-msm/iommu.c | 597 ++++++++ 3 files changed, 2571 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-msm/include/mach/iommu.h create mode 100644 arch/arm/mach-msm/include/mach/iommu_hw-8xxx.h create mode 100644 arch/arm/mach-msm/iommu.c
arch/arm/mach-msm/include/mach/iommu.h new file +103 -0
@@ -0,0 +1,103 @@ +/* Copyright (c) 2010, Code Aurora Forum. All rights reserved. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 and +* only version 2 as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +* 02110-1301, USA. +*/ + +#ifndef MSM_IOMMU_H +#define MSM_IOMMU_H + +#include <linux/interrupt.h> + +/* Maximum number of Machine IDs that we are allowing to be mapped to the same +* context bank. The number of MIDs mapped to the same CB does not affect +* performance, but there is a practical limit on how many distinct MIDs may +* be present. These mappings are typically determined at design time and are +* not expected to change at run time. +*/ +#define MAX_NUM_MIDS 16 + +/** +* struct msm_iommu_dev - a single IOMMU hardware instance +* name Human-readable name given to this IOMMU HW instance +* clk_rate Rate to set for this IOMMU's clock, if applicable to this +* particular IOMMU. 0 means don't set a rate. +* -1 means it is an AXI clock with no valid rate +* +*/ +struct msm_iommu_dev { +const char *name; +int clk_rate; +}; + +/** +* struct msm_iommu_ctx_dev - an IOMMU context bank instance +* name Human-readable name given to this context bank +* num Index of this context bank within the hardware +* mids List of Machine IDs that are to be mapped into this context +* bank, terminated by -1. The MID is a set of signals on the +* AXI bus that identifies the function associated with a specific +* memory request. (See ARM spec). +*/ +struct msm_iommu_ctx_dev { +const char *name; +int num; +int mids[MAX_NUM_MIDS ]; +}; + + +/** +* struct msm_iommu_drvdata - A single IOMMU hardware instance +* @base: IOMMU config port base address (VA) +* @irq: Interrupt number +* +* A msm_iommu_drvdata holds the global driver data about a single piece +* of an IOMMU hardware instance. +*/ +struct msm_iommu_drvdata { +void __iomem *base; +int irq; +}; + +/** +* struct msm_iommu_ctx_drvdata - an IOMMU context bank instance +* @num: Hardware context number of this context +* @pdev: Platform device associated wit this HW instance +* @attached_elm: List element for domains to track which devices are +* attached to them +* +* A msm_iommu_ctx_drvdata holds the driver data for a single context bank +* within each IOMMU hardware instance +*/ +struct msm_iommu_ctx_drvdata { +int num; +struct platform_device *pdev; +struct list_head attached_elm; +}; + +/* +* Look up an IOMMU context device by its context name. NULL if none found. +* Useful for testing and drivers that do not yet fully have IOMMU stuff in +* their platform devices. +*/ +struct device *msm_iommu_get_ctx (const char *ctx_name); + +/* +* Interrupt handler for the IOMMU context fault interrupt. Hooking the +* interrupt is not supported in the API yet, but this will print an error +* message and dump useful IOMMU registers. +*/ +irqreturn_t msm_iommu_fault_handler (int irq,void *dev_id); + +#endif
arch/arm/mach-msm/include/mach/iommu_hw-8xxx.h new file +1871 -0
1,871 lines not on this page · raw message
arch/arm/mach-msm/iommu.c new file +597 -0
597 lines not on this page · raw message
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 23/24 msm: Platform initialization for the IOMMU driver
In reply to Jeff OhlsteinFrom: Stepan Moskovchenko <[email protected]>
Register a driver for the MSM IOMMU devices and a driver for the translation context devices. Set up the global IOMMU registers and initialize the context banks.
--- arch/arm/mach-msm/Makefile | 2 +- arch/arm/mach-msm/iommu_dev.c | 364 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 365 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-msm/iommu_dev.c
arch/arm/mach-msm/Makefile +1 -1
@@ -12,7 +12,7 @@ obj-y += irq.o endif endif -obj-$(CONFIG_ARCH_MSM8X60) += clock-dummy.o +obj-$(CONFIG_ARCH_MSM8X60) += clock-dummy.o iommu.o iommu_dev.o obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o obj-$(CONFIG_MSM_PROC_COMM) += clock.o gpio.o obj-$(CONFIG_ARCH_QSD8X50) += sirc.o
arch/arm/mach-msm/iommu_dev.c new file +364 -0
364 lines not on this page · raw message
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 24/24 msm: Platform data for msm8x60 IOMMUs
In reply to Jeff OhlsteinFrom: Stepan Moskovchenko <[email protected]>
Add the platform data for the IOMMUs found on the Qualcomm msm8x60 SoC.
--- arch/arm/mach-msm/Makefile | 2 +- arch/arm/mach-msm/devices-msm8x60-iommu.c | 883 +++++++++++++++++++++++ arch/arm/mach-msm/include/mach/msm_iomap-8x60.h | 32 + 3 files changed, 916 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-msm/devices-msm8x60-iommu.c
arch/arm/mach-msm/Makefile +1 -1
@@ -12,7 +12,7 @@ obj-y += irq.o endif endif -obj-$(CONFIG_ARCH_MSM8X60) += clock-dummy.o iommu.o iommu_dev.o +obj-$(CONFIG_ARCH_MSM8X60) += clock-dummy.o iommu.o iommu_dev.o devices-msm8x60-iommu.o obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o obj-$(CONFIG_MSM_PROC_COMM) += clock.o gpio.o obj-$(CONFIG_ARCH_QSD8X50) += sirc.o
arch/arm/mach-msm/devices-msm8x60-iommu.c new file +883 -0
883 lines not on this page · raw message
arch/arm/mach-msm/include/mach/msm_iomap-8x60.h +32 -0
@@ -65,5 +65,37 @@#define MSM_SHARED_RAM_BASE IOMEM(0xF0200000)#define MSM_SHARED_RAM_SIZE SZ_1M +#define MSM_IOMMU_JPEGD_PHYS 0x07300000 +#define MSM_IOMMU_JPEGD_SIZE SZ_1M + +#define MSM_IOMMU_VPE_PHYS 0x07400000 +#define MSM_IOMMU_VPE_SIZE SZ_1M + +#define MSM_IOMMU_MDP0_PHYS 0x07500000 +#define MSM_IOMMU_MDP0_SIZE SZ_1M + +#define MSM_IOMMU_MDP1_PHYS 0x07600000 +#define MSM_IOMMU_MDP1_SIZE SZ_1M + +#define MSM_IOMMU_ROT_PHYS 0x07700000 +#define MSM_IOMMU_ROT_SIZE SZ_1M + +#define MSM_IOMMU_IJPEG_PHYS 0x07800000 +#define MSM_IOMMU_IJPEG_SIZE SZ_1M + +#define MSM_IOMMU_VFE_PHYS 0x07900000 +#define MSM_IOMMU_VFE_SIZE SZ_1M + +#define MSM_IOMMU_VCODEC_A_PHYS 0x07A00000 +#define MSM_IOMMU_VCODEC_A_SIZE SZ_1M + +#define MSM_IOMMU_VCODEC_B_PHYS 0x07B00000 +#define MSM_IOMMU_VCODEC_B_SIZE SZ_1M + +#define MSM_IOMMU_GFX3D_PHYS 0x07C00000 +#define MSM_IOMMU_GFX3D_SIZE SZ_1M + +#define MSM_IOMMU_GFX2D0_PHYS 0x07D00000 +#define MSM_IOMMU_GFX2D0_SIZE SZ_1M#endif
Signature · 4 lines
1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.