Skip to contentSkip to conversation

Define ARCH_DMA_MINALIGN for all architectures

PATCH Superseded Anton Staaf 2 participants 15 messages Oct 17, 2011 – Oct 24, 2011

Subsystems (9)
Arm (32-bit) x86 PowerPC MIPS +5 more subsystems
lore
Share & tools
lore
#0 lore raw

v2 cover Define ARCH_DMA_MINALIGN for all architectures

ARCH_DMA_MINALIGN is a new define borrowed from the Linux kernel. It is used to define the minimum alignement requirement for a DMA buffer. This series of patches ensures that it will always be defined in the arch specific asm/cache.h header and that asm/cache.h is included in common.h. I chose to add this new define instead of reusing CONFIG_SYS_CACHELINE_SIZE for two reasons. First, CONFIG_SYS_CACHELINE_SIZE is not defined for all architectures and thus to use it I would have to first define it correctly for all used architectures. I wasn't quite up to that task right now. Defining ARCH_DMA_MINALIGN is easier because it has slightly different semantics that allow it to be the maximum cacheline size known for an architecture. And secondly, CONFIG_SYS_CACHELINE_SIZE may not always be the correct value to use to align DMA buffers. In particular, on cache coherent architectures you can define ARCH_DMA_MINALIGN as 1 and be safe (unless there are other restrictions such as PCI alignment requirements).

This patch set will allow me to resubmit my ALLOC_CACHE_ALIGN_BUFFER patch set modified to use this new define in place of CONFIG_SYS_CACHELINE_SIZE. I will repost those patches based on this set shortly.

Since we've heard no complaints and have an ack for PowerPC at least, I think this can go in as is. It's defining a new macro that isn't used yet and I believe that each architecture has a reasonable value defined now.

Thanks,
Anton

Changes in v2:
- Remove blackfin patches in favor of Mike's import of the Linux kernel cache.h
- Remove all Gerrit Change-ID tags

Anton Staaf (11):
arm: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
m68k: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
nios2: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
powerpc: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
sh: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
sparc: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
avr32: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
microblaze: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
mips: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
x86: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
cache: include asm/cache.h for ARCH_DMA_MINALIGN definition

 arch/arm/include/asm/cache.h        |   11 +++++++++
 arch/avr32/include/asm/cache.h      |   40 +++++++++++++++++++++++++++++++++++
 arch/m68k/include/asm/cache.h       |   10 ++++++++
 arch/microblaze/include/asm/cache.h |   37 ++++++++++++++++++++++++++++++++
 arch/mips/include/asm/cache.h       |   36 +++++++++++++++++++++++++++++++
 arch/nios2/include/asm/cache.h      |   11 +++++++++
 arch/powerpc/include/asm/cache.h    |    6 +++++
 arch/sh/include/asm/cache.h         |   17 ++++++++++++++
 arch/sparc/include/asm/cache.h      |   10 ++++++++
 arch/x86/include/asm/cache.h        |   35 ++++++++++++++++++++++++++++++
 include/common.h                    |    8 +++++++
 11 files changed, 221 insertions(+), 0 deletions(-)
 create mode 100644 arch/avr32/include/asm/cache.h
 create mode 100644 arch/microblaze/include/asm/cache.h
 create mode 100644 arch/mips/include/asm/cache.h
 create mode 100644 arch/x86/include/asm/cache.h
Signature · 1 line
1.7.3.1
#1 lore raw

PATCH v2 1/11 arm: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Albert ARIBAUD <[email protected]>
---
 arch/arm/include/asm/cache.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
arch/arm/include/asm/cache.h +11 -0
index d0518be..eef6a5a 100644
@@ -42,4 +42,15 @@ static inline void invalidate_l2_cache(void)
 void l2_cache_enable(void);
 void l2_cache_disable(void);
 
+/*
+ * The current upper bound for ARM L1 data cache line sizes is 64 bytes.  We
+ * use that value for aligning DMA buffers unless the board config has specified
+ * an alternate cache line size.
+ */
+#ifdef CONFIG_SYS_CACHELINE_SIZE
+#define ARCH_DMA_MINALIGN	CONFIG_SYS_CACHELINE_SIZE
+#else
+#define ARCH_DMA_MINALIGN	64
+#endif
+
 #endif /* _ASM_CACHE_H */
Signature · 1 line
1.7.3.1
#2 lore raw

PATCH v2 2/11 m68k: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

In reply to Anton Staaf
Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Jason Jin <[email protected]>
---
 arch/m68k/include/asm/cache.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
arch/m68k/include/asm/cache.h +10 -0
index 7c84e48..5c9bb30 100644
@@ -207,4 +207,14 @@ void dcache_invalid(void);
 
 #endif
 
+/*
+ * m68k uses 16 byte L1 data cache line sizes.  Use this for DMA buffer
+ * alignment unless the board configuration has specified a new value.
+ */
+#ifdef CONFIG_SYS_CACHELINE_SIZE
+#define ARCH_DMA_MINALIGN	CONFIG_SYS_CACHELINE_SIZE
+#else
+#define ARCH_DMA_MINALIGN	16
+#endif
+
 #endif				/* __CACHE_H */
Signature · 1 line
1.7.3.1
#3 lore raw

PATCH v2 3/11 nios2: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

In reply to Anton Staaf
Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Scott McNutt <[email protected]>
---
 arch/nios2/include/asm/cache.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
arch/nios2/include/asm/cache.h +11 -0
index c78f343..2cc16e4 100644
@@ -27,4 +27,15 @@
 extern void flush_dcache (unsigned long start, unsigned long size);
 extern void flush_icache (unsigned long start, unsigned long size);
 
+/*
+ * Valid L1 data cache line sizes for the NIOS2 architecture are 4, 16, and 32
+ * bytes.  If the board configuration has not specified one we default to the
+ * largest of these values for alignment of DMA buffers.
+ */
+#ifdef CONFIG_SYS_CACHELINE_SIZE
+#define ARCH_DMA_MINALIGN	CONFIG_SYS_CACHELINE_SIZE
+#else
+#define ARCH_DMA_MINALIGN	32
+#endif
+
 #endif /* __ASM_NIOS2_CACHE_H_ */
Signature · 1 line
1.7.3.1
#4 lore raw

PATCH v2 4/11 powerpc: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

In reply to Anton Staaf
Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Wolfgang Denk <[email protected]>
Cc Stefan Roese <[email protected]>
---
 arch/powerpc/include/asm/cache.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
arch/powerpc/include/asm/cache.h +6 -0
index 53e8d05..e6b8f69 100644
@@ -21,6 +21,12 @@
 #define L1_CACHE_BYTES          (1 << L1_CACHE_SHIFT)
 
 /*
+ * Use the L1 data cache line size value for the minimum DMA buffer alignment
+ * on PowerPC.
+ */
+#define ARCH_DMA_MINALIGN	L1_CACHE_BYTES
+
+/*
  * For compatibility reasons support the CONFIG_SYS_CACHELINE_SIZE too
  */
 #ifndef CONFIG_SYS_CACHELINE_SIZE
Signature · 1 line
1.7.3.1
#5 lore raw

PATCH v2 5/11 sh: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

In reply to Anton Staaf
Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 arch/sh/include/asm/cache.h |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
arch/sh/include/asm/cache.h +17 -0
index 2cfc0a7..6ffab4d 100644
@@ -6,6 +6,7 @@
 int cache_control(unsigned int cmd);
 
 #define L1_CACHE_BYTES 32
+
 struct __large_struct { unsigned long buf[100]; };
 #define __m(x) (*(struct __large_struct *)(x))
 
@@ -30,6 +31,22 @@ void dcache_invalid_range(u32 start, u32 end)
 			      : "m" (__m(v)));
 	}
 }
+#else
+
+/*
+ * 32-bytes is the largest L1 data cache line size for SH the architecture.  So
+ * it is a safe default for DMA alignment.
+ */
+#define ARCH_DMA_MINALIGN	32
+
 #endif /* CONFIG_SH4 || CONFIG_SH4A */
 
+/*
+ * Use the L1 data cache line size value for the minimum DMA buffer alignment
+ * on SH.
+ */
+#ifndef ARCH_DMA_MINALIGN
+#define ARCH_DMA_MINALIGN	L1_CACHE_BYTES
+#endif
+
 #endif	/* __ASM_SH_CACHE_H */
Signature · 1 line
1.7.3.1
#6 lore raw

PATCH v2 6/11 sparc: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

In reply to Anton Staaf
Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Daniel Hellstrom <[email protected]>
---
 arch/sparc/include/asm/cache.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
arch/sparc/include/asm/cache.h +10 -0
index 03e8d94..44870e8 100644
@@ -28,4 +28,14 @@
 #include <linux/config.h>
 #include <asm/processor.h>
 
+/*
+ * If CONFIG_SYS_CACHELINE_SIZE is defined use it for DMA alignment.  Otherwise
+ * use 32-bytes, the cacheline size for Sparc.
+ */
+#ifdef CONFIG_SYS_CACHELINE_SIZE
+#define ARCH_DMA_MINALIGN	CONFIG_SYS_CACHELINE_SIZE
+#else
+#define ARCH_DMA_MINALIGN	32
+#endif
+
 #endif
Signature · 1 line
1.7.3.1
#7 lore raw

PATCH v2 7/11 avr32: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

In reply to Anton Staaf
Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Reinhard Meyer <[email protected]>
---
 arch/avr32/include/asm/cache.h |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)
 create mode 100644 arch/avr32/include/asm/cache.h
arch/avr32/include/asm/cache.h new file +40 -0
new file mode 100644
index 0000000..3b2b032
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) 2011 The Chromium OS Authors.
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * 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., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __AVR32_CACHE_H__
+#define __AVR32_CACHE_H__
+
+/*
+ * Since the AVR32 architecture has a queryable cacheline size with a maximum
+ * value of 256 we set the DMA buffer alignemnt requirement to this maximum
+ * value.  The board config can override this if it knows that the cacheline
+ * size is a smaller value.  AVR32 boards use the CONFIG_SYS_DCACHE_LINESZ
+ * macro to specify cache line size, so if it is set we use it instead.
+ */
+#ifdef CONFIG_SYS_CACHELINE_SIZE
+#define ARCH_DMA_MINALIGN	CONFIG_SYS_CACHELINE_SIZE
+#elif defined(CONFIG_SYS_DCACHE_LINESZ)
+#define ARCH_DMA_MINALIGN	CONFIG_SYS_DCACHE_LINESZ
+#else
+#define ARCH_DMA_MINALIGN	256
+#endif
+
+#endif /* __AVR32_CACHE_H__ */
Signature · 1 line
1.7.3.1
#8 lore raw

PATCH v2 8/11 microblaze: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

In reply to Anton Staaf
Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Michal Simek <[email protected]>
---
 arch/microblaze/include/asm/cache.h |   37 +++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)
 create mode 100644 arch/microblaze/include/asm/cache.h
arch/microblaze/include/asm/cache.h new file +37 -0
new file mode 100644
index 0000000..0373e88
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2011 The Chromium OS Authors.
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * 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., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __MICROBLAZE_CACHE_H__
+#define __MICROBLAZE_CACHE_H__
+
+/*
+ * The microblaze can have either a 4 or 16 byte cacheline depending on whether
+ * you are using OPB(4) or CacheLink(16).  If the board config has not specified
+ * a cacheline size we assume the larger value of 16 bytes for DMA buffer
+ * alignment.
+ */
+#ifdef CONFIG_SYS_CACHELINE_SIZE
+#define ARCH_DMA_MINALIGN	CONFIG_SYS_CACHELINE_SIZE
+#else
+#define ARCH_DMA_MINALIGN	16
+#endif
+
+#endif /* __MICROBLAZE_CACHE_H__ */
Signature · 1 line
1.7.3.1
#9 lore raw

PATCH v2 9/11 mips: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

In reply to Anton Staaf
Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Shinya Kuribayashi <[email protected]>
---
 arch/mips/include/asm/cache.h |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 arch/mips/include/asm/cache.h
arch/mips/include/asm/cache.h new file +36 -0
new file mode 100644
index 0000000..5406d5d
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2011 The Chromium OS Authors.
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * 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., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __MIPS_CACHE_H__
+#define __MIPS_CACHE_H__
+
+/*
+ * The maximum L1 data cache line size on MIPS seems to be 128 bytes.  We use
+ * that as a default for aligning DMA buffers unless the board config has
+ * specified another cache line size.
+ */
+#ifdef CONFIG_SYS_CACHELINE_SIZE
+#define ARCH_DMA_MINALIGN	CONFIG_SYS_CACHELINE_SIZE
+#else
+#define ARCH_DMA_MINALIGN	128
+#endif
+
+#endif /* __MIPS_CACHE_H__ */
Signature · 1 line
1.7.3.1
#10 lore raw

PATCH v2 10/11 x86: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

In reply to Anton Staaf
Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Graeme Russ <[email protected]>
---
 arch/x86/include/asm/cache.h |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)
 create mode 100644 arch/x86/include/asm/cache.h
arch/x86/include/asm/cache.h new file +35 -0
new file mode 100644
index 0000000..87c9e0b
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2011 The Chromium OS Authors.
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * 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., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __X86_CACHE_H__
+#define __X86_CACHE_H__
+
+/*
+ * If CONFIG_SYS_CACHELINE_SIZE is defined use it for DMA alignment.  Otherwise
+ * use 64-bytes, a safe default for x86.
+ */
+#ifdef CONFIG_SYS_CACHELINE_SIZE
+#define ARCH_DMA_MINALIGN	CONFIG_SYS_CACHELINE_SIZE
+#else
+#define ARCH_DMA_MINALIGN	64
+#endif
+
+#endif /* __X86_CACHE_H__ */
Signature · 1 line
1.7.3.1
#11 lore raw

PATCH v2 11/11 cache: include asm/cache.h for ARCH_DMA_MINALIGN definition

In reply to Anton Staaf

ARCH_DMA_MINALIGN will be used to allocate DMA buffers that are aligned correctly. In all current cases this means that the DMA buffer will be aligned to at least the L1 data cache line size of the configured architecture. If the board configuration file does not specify the architecture L1 data cache line size then the maximum line size of the architecture is used to align DMA buffers.

Cc Mike Frysinger <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Wolfgang Denk <[email protected]>
Cc Stefano Babic <[email protected]>
Cc Ilya Yanok <[email protected]>
Cc Laurence Withers <[email protected]>
---
 include/common.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
include/common.h +8 -0
index a55600b..3a6ef0e 100644
@@ -813,6 +813,14 @@ int cpu_release(int nr, int argc, char * const argv[]);
 #define ALIGN(x,a)		__ALIGN_MASK((x),(typeof(x))(a)-1)
 #define __ALIGN_MASK(x,mask)	(((x)+(mask))&~(mask))
 
+/*
+ * ARCH_DMA_MINALIGN is defined in asm/cache.h for each architecture.  It
+ * is used to align DMA buffers.
+ */
+#ifndef __ASSEMBLY__
+#include <asm/cache.h>
+#endif
+
 /* Pull in stuff for the build system */
 #ifdef DO_DEPS_ONLY
 # include <environment.h>
Signature · 1 line
1.7.3.1
#12 lore raw

v2 cover Define ARCH_DMA_MINALIGN for all architectures

In reply to Anton Staaf
Quoted 23 lines · Anton Staaf

ARCH_DMA_MINALIGN is a new define borrowed from the Linux kernel. ?It is used to define the minimum alignement requirement for a DMA buffer. ?This series of patches ensures that it will always be defined in the arch specific asm/cache.h header and that asm/cache.h is included in common.h. ?I chose to add this new define instead of reusing CONFIG_SYS_CACHELINE_SIZE for two reasons. ?First, CONFIG_SYS_CACHELINE_SIZE is not defined for all architectures and thus to use it I would have to first define it correctly for all used architectures. ?I wasn't quite up to that task right now. ?Defining ARCH_DMA_MINALIGN is easier because it has slightly different semantics that allow it to be the maximum cacheline size known for an architecture. ?And secondly, CONFIG_SYS_CACHELINE_SIZE may not always be the correct value to use to align DMA buffers. ?In particular, on cache coherent architectures you can define ARCH_DMA_MINALIGN as 1 and be safe (unless there are other restrictions such as PCI alignment requirements).

This patch set will allow me to resubmit my ALLOC_CACHE_ALIGN_BUFFER patch set modified to use this new define in place of CONFIG_SYS_CACHELINE_SIZE. ?I will repost those patches based on this set shortly.

Since we've heard no complaints and have an ack for PowerPC at least, I think this can go in as is. ?It's defining a new macro that isn't used yet and I believe that each architecture has a reasonable value defined now.

Quoted 6 lines

Thanks,
? ?Anton

Changes in v2:
- Remove blackfin patches in favor of Mike's import of the Linux kernel cache.h
- Remove all Gerrit Change-ID tags

I have now run MAKEALL for both ARMv7a and PowerPC successfully. There were a number of
build failures for "powerpc", but no new ones given my patch. I'd like to land this soon
so I can get to landing the fixes for the unaligned buffers in U-Boot.

Thanks,
Anton

Quoted 34 lines

Anton Staaf (11):
?arm: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ?m68k: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ?nios2: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ?powerpc: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ?sh: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ?sparc: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ?avr32: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ?microblaze: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ?mips: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ?x86: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ?cache: include asm/cache.h for ARCH_DMA_MINALIGN definition

?arch/arm/include/asm/cache.h ? ? ? ?| ? 11 +++++++++
?arch/avr32/include/asm/cache.h ? ? ?| ? 40 +++++++++++++++++++++++++++++++++++
?arch/m68k/include/asm/cache.h ? ? ? | ? 10 ++++++++
?arch/microblaze/include/asm/cache.h | ? 37 ++++++++++++++++++++++++++++++++
?arch/mips/include/asm/cache.h ? ? ? | ? 36 +++++++++++++++++++++++++++++++
?arch/nios2/include/asm/cache.h ? ? ?| ? 11 +++++++++
?arch/powerpc/include/asm/cache.h ? ?| ? ?6 +++++
?arch/sh/include/asm/cache.h ? ? ? ? | ? 17 ++++++++++++++
?arch/sparc/include/asm/cache.h ? ? ?| ? 10 ++++++++
?arch/x86/include/asm/cache.h ? ? ? ?| ? 35 ++++++++++++++++++++++++++++++
?include/common.h ? ? ? ? ? ? ? ? ? ?| ? ?8 +++++++

?11 files changed, 221 insertions(+), 0 deletions(-) ?create mode 100644 arch/avr32/include/asm/cache.h ?create mode 100644 arch/microblaze/include/asm/cache.h ?create mode 100644 arch/mips/include/asm/cache.h ?create mode 100644 arch/x86/include/asm/cache.h

--
1.7.3.1

#13 lore raw

v2 cover Define ARCH_DMA_MINALIGN for all architectures

Dear Anton Staaf,

Quoted 6 lines · In message <CAF6FioXuWF5ar4G9x6JsHw0n6VyWE=6o5zj0m8DePOsOt7hsKQ@mail.gmail.com>…

I have now run MAKEALL for both ARMv7a and PowerPC successfully. There were a number of
build failures for "powerpc", but no new ones given my patch. I'd like to land this soon
so I can get to landing the fixes for the unaligned buffers in U-Boot.

Um...

1e41f5a   2011-10-23 20:50:43 +0200   cache: include asm/cache.h for ARCH_DMA_MINALIGN definition
3620f86   2011-10-23 20:50:43 +0200   x86: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
72d4dd4   2011-10-23 20:50:43 +0200   mips: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
ee729af   2011-10-23 20:50:43 +0200   microblaze: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
75ff24b   2011-10-23 20:50:42 +0200   avr32: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
3c3f8a7   2011-10-23 20:50:42 +0200   sparc: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
2482e3c   2011-10-23 20:50:42 +0200   sh: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
0991701   2011-10-23 20:50:42 +0200   powerpc: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
6fa6035   2011-10-23 20:50:42 +0200   nios2: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
a8fc12e   2011-10-23 20:50:42 +0200   m68k: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
44d6cbb   2011-10-23 20:50:42 +0200   arm: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

Isn't this what you are asking for?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
        Ordnung ist die Lust der Vernunft,
        aber Unordnung die Wonne der Phantasie         - Paul Claudel
#14 lore raw

v2 cover Define ARCH_DMA_MINALIGN for all architectures

Quoted 24 lines · Wolfgang Denk

Dear Anton Staaf,

Quoted 6 lines · In message <CAF6FioXuWF5ar4G9x6JsHw0n6VyWE=6o5zj0m8DePOsOt7hsKQ@mail.gmail.com>…

I have now run MAKEALL for both ARMv7a and PowerPC successfully. There were a number of
build failures for "powerpc", but no new ones given my patch. ?I'd like to land this soon
so I can get to landing the fixes for the unaligned buffers in U-Boot.

Um...

1e41f5a ? 2011-10-23 20:50:43 +0200 ? cache: include asm/cache.h for ARCH_DMA_MINALIGN definition 3620f86 ? 2011-10-23 20:50:43 +0200 ? x86: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 72d4dd4 ? 2011-10-23 20:50:43 +0200 ? mips: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment ee729af ? 2011-10-23 20:50:43 +0200 ? microblaze: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 75ff24b ? 2011-10-23 20:50:42 +0200 ? avr32: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 3c3f8a7 ? 2011-10-23 20:50:42 +0200 ? sparc: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 2482e3c ? 2011-10-23 20:50:42 +0200 ? sh: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 0991701 ? 2011-10-23 20:50:42 +0200 ? powerpc: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 6fa6035 ? 2011-10-23 20:50:42 +0200 ? nios2: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment a8fc12e ? 2011-10-23 20:50:42 +0200 ? m68k: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 44d6cbb ? 2011-10-23 20:50:42 +0200 ? arm: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment

Quoted 1 line

Isn't this what you are asking for?

Hah. :) Yes, I don't know why I missed those going in.

I'll start reworking the other patches and send them shortly.

Thanks again,
Anton

Quoted 11 lines

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, ? ? MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de ? ? ? ?Ordnung ist die Lust der Vernunft,
? ? ? ?aber Unordnung die Wonne der Phantasie ? ? ? ? - Paul Claudel