* [GIT PULL] preparation patches for Cortex-M3
@ 2013-03-07 15:11 Uwe Kleine-König
2013-03-08 23:37 ` Russell King - ARM Linux
0 siblings, 1 reply; 3+ messages in thread
From: Uwe Kleine-König @ 2013-03-07 15:11 UTC (permalink / raw)
To: linux-arm-kernel
Hello Russell,
the following changes since commit 949db153b6466c6f7cad5a427ecea94985927311:
Linux 3.8-rc5 (2013-01-25 11:57:28 -0800)
are available in the git repository at:
git://git.pengutronix.de/git/ukl/linux.git for-next
for you to fetch changes up to 6ebd4d038dbb626a43d87db3007e71f92f49d7b3:
ARM: stub out read_cpuid and read_cpuid_ext for CPU_CP15=n (2013-01-31 21:44:48 +0100)
These are in next since next-20130213 without any problem reports.
I currently base my Cortex-M3 stuff on top of these. The complete series
still has some problems though that I have to debug first. I'd be glad
if you'd pull at least this series for 3.10.
Thanks
Uwe
----------------------------------------------------------------
Uwe Kleine-K?nig (5):
ARM: make cr_alignment read-only #ifndef CONFIG_CPU_CP15
ARM: let CPUs not being able to run in ARM mode enter in THUMB mode
ARM: sync comments about available data abort models with the code
ARM: use read_cpuid_id() instead of read_cpuid(CPUID_ID)
ARM: stub out read_cpuid and read_cpuid_ext for CPU_CP15=n
arch/arm/Kconfig | 3 ++-
arch/arm/include/asm/cp15.h | 16 +++++++++++++++-
arch/arm/include/asm/cputype.h | 31 +++++++++++++++++++++++++++----
arch/arm/include/asm/glue-df.h | 20 ++++++++++----------
arch/arm/kernel/head-common.S | 9 +++++++--
arch/arm/kernel/head-nommu.S | 8 +++++++-
arch/arm/kernel/setup.c | 2 +-
arch/arm/kernel/smp_scu.c | 2 +-
arch/arm/mach-omap2/id.c | 4 ++--
arch/arm/mach-omap2/omap-smp.c | 2 +-
arch/arm/mm/Kconfig | 9 ++++++++-
arch/arm/mm/alignment.c | 2 ++
arch/arm/mm/mmu.c | 17 +++++++++++++++++
13 files changed, 100 insertions(+), 25 deletions(-)
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 3+ messages in thread
* [GIT PULL] preparation patches for Cortex-M3
2013-03-07 15:11 [GIT PULL] preparation patches for Cortex-M3 Uwe Kleine-König
@ 2013-03-08 23:37 ` Russell King - ARM Linux
2013-03-09 20:31 ` Uwe Kleine-König
0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2013-03-08 23:37 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Mar 07, 2013 at 04:11:38PM +0100, Uwe Kleine-K?nig wrote:
> Hello Russell,
>
> the following changes since commit 949db153b6466c6f7cad5a427ecea94985927311:
>
> Linux 3.8-rc5 (2013-01-25 11:57:28 -0800)
>
> are available in the git repository at:
>
> git://git.pengutronix.de/git/ukl/linux.git for-next
>
> for you to fetch changes up to 6ebd4d038dbb626a43d87db3007e71f92f49d7b3:
>
> ARM: stub out read_cpuid and read_cpuid_ext for CPU_CP15=n (2013-01-31 21:44:48 +0100)
>
> These are in next since next-20130213 without any problem reports.
>
> I currently base my Cortex-M3 stuff on top of these. The complete series
> still has some problems though that I have to debug first. I'd be glad
> if you'd pull at least this series for 3.10.
Okay, and you of course did try doing a test-merge with something like
v3.9-rc1 before sending this pull request, so you know about these
conflicts - which I've fixed up like this. Does this look sensible?
Note, it won't be pushed out for a while...
diff --cc arch/arm/include/asm/cputype.h
index ad41ec2,574269e..0000000
--- a/arch/arm/include/asm/cputype.h
+++ b/arch/arm/include/asm/cputype.h
@@@ -38,6 -38,6 +38,24 @@@
#define MPIDR_AFFINITY_LEVEL(mpidr, level) \
((mpidr >> (MPIDR_LEVEL_BITS * level)) & MPIDR_LEVEL_MASK)
++#define ARM_CPU_IMP_ARM 0x41
++#define ARM_CPU_IMP_INTEL 0x69
++
++#define ARM_CPU_PART_ARM1136 0xB360
++#define ARM_CPU_PART_ARM1156 0xB560
++#define ARM_CPU_PART_ARM1176 0xB760
++#define ARM_CPU_PART_ARM11MPCORE 0xB020
++#define ARM_CPU_PART_CORTEX_A8 0xC080
++#define ARM_CPU_PART_CORTEX_A9 0xC090
++#define ARM_CPU_PART_CORTEX_A5 0xC050
++#define ARM_CPU_PART_CORTEX_A15 0xC0F0
++#define ARM_CPU_PART_CORTEX_A7 0xC070
++
++#define ARM_CPU_XSCALE_ARCH_MASK 0xe000
++#define ARM_CPU_XSCALE_ARCH_V1 0x2000
++#define ARM_CPU_XSCALE_ARCH_V2 0x4000
++#define ARM_CPU_XSCALE_ARCH_V3 0x6000
++
extern unsigned int processor_id;
#ifdef CONFIG_CPU_CP15
@@@ -92,21 -88,15 +106,30 @@@ static inline unsigned int __attribute_
return read_cpuid(CPUID_ID);
}
+ #else /* ifdef CONFIG_CPU_CP15 */
+
+ static inline unsigned int __attribute_const__ read_cpuid_id(void)
+ {
+ return processor_id;
+ }
+
+ #endif /* ifdef CONFIG_CPU_CP15 / else */
+
+static inline unsigned int __attribute_const__ read_cpuid_implementor(void)
+{
+ return (read_cpuid_id() & 0xFF000000) >> 24;
+}
+
+static inline unsigned int __attribute_const__ read_cpuid_part_number(void)
+{
+ return read_cpuid_id() & 0xFFF0;
+}
+
+static inline unsigned int __attribute_const__ xscale_cpu_arch_version(void)
+{
+ return read_cpuid_part_number() & ARM_CPU_XSCALE_ARCH_MASK;
+}
+
static inline unsigned int __attribute_const__ read_cpuid_cachetype(void)
{
return read_cpuid(CPUID_CACHETYPE);
^ permalink raw reply [flat|nested] 3+ messages in thread
* [GIT PULL] preparation patches for Cortex-M3
2013-03-08 23:37 ` Russell King - ARM Linux
@ 2013-03-09 20:31 ` Uwe Kleine-König
0 siblings, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2013-03-09 20:31 UTC (permalink / raw)
To: linux-arm-kernel
Hello Russell,
On Fri, Mar 08, 2013 at 11:37:34PM +0000, Russell King - ARM Linux wrote:
> On Thu, Mar 07, 2013 at 04:11:38PM +0100, Uwe Kleine-K?nig wrote:
> > Hello Russell,
> >
> > the following changes since commit 949db153b6466c6f7cad5a427ecea94985927311:
> >
> > Linux 3.8-rc5 (2013-01-25 11:57:28 -0800)
> >
> > are available in the git repository at:
> >
> > git://git.pengutronix.de/git/ukl/linux.git for-next
> >
> > for you to fetch changes up to 6ebd4d038dbb626a43d87db3007e71f92f49d7b3:
> >
> > ARM: stub out read_cpuid and read_cpuid_ext for CPU_CP15=n (2013-01-31 21:44:48 +0100)
> >
> > These are in next since next-20130213 without any problem reports.
> >
> > I currently base my Cortex-M3 stuff on top of these. The complete series
> > still has some problems though that I have to debug first. I'd be glad
> > if you'd pull at least this series for 3.10.
>
> Okay, and you of course did try doing a test-merge with something like
> v3.9-rc1 before sending this pull request, so you know about these
> conflicts - which I've fixed up like this. Does this look sensible?
I should have mentioned the conflict resolution in next is fine. Your's
is slightly different, but even better.
I documented to point out merge conflicts for future pull requests in my
check list, so I expect to do better next time.
Thanks for pulling and the conflict handling
Uwe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-09 20:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 15:11 [GIT PULL] preparation patches for Cortex-M3 Uwe Kleine-König
2013-03-08 23:37 ` Russell King - ARM Linux
2013-03-09 20:31 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).