Commit 153b5c56 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'microblaze-v5.6-rc1' of git://git.monstr.eu/linux-2.6-microblaze

Pull Microblaze update from Michal Simek:

 - enable CMA

 - add support for MB v11

 - defconfig updates

 - minor fixes

* tag 'microblaze-v5.6-rc1' of git://git.monstr.eu/linux-2.6-microblaze:
  microblaze: Add ID for Microblaze v11
  microblaze: Prevent the overflow of the start
  microblaze: Wire CMA allocator
  asm-generic: Make dma-contiguous.h a mandatory include/asm header
  microblaze: Sync defconfig with latest Kconfig layout
  microblaze: defconfig: Disable EXT2 driver and Enable EXT3 & EXT4 drivers
  microblaze: Align comments with register usage
parents 7f879e1a 6aa71ef9
...@@ -3,7 +3,6 @@ generic-y += bugs.h ...@@ -3,7 +3,6 @@ generic-y += bugs.h
generic-y += delay.h generic-y += delay.h
generic-y += div64.h generic-y += div64.h
generic-y += dma.h generic-y += dma.h
generic-y += dma-contiguous.h
generic-y += dma-mapping.h generic-y += dma-mapping.h
generic-y += early_ioremap.h generic-y += early_ioremap.h
generic-y += emergency-restart.h generic-y += emergency-restart.h
......
...@@ -7,7 +7,6 @@ generic-y += delay.h ...@@ -7,7 +7,6 @@ generic-y += delay.h
generic-y += device.h generic-y += device.h
generic-y += div64.h generic-y += div64.h
generic-y += dma.h generic-y += dma.h
generic-y += dma-contiguous.h
generic-y += dma-mapping.h generic-y += dma-mapping.h
generic-y += emergency-restart.h generic-y += emergency-restart.h
generic-y += exec.h generic-y += exec.h
......
...@@ -27,6 +27,7 @@ config MICROBLAZE ...@@ -27,6 +27,7 @@ config MICROBLAZE
select HAVE_ARCH_HASH select HAVE_ARCH_HASH
select HAVE_ARCH_KGDB select HAVE_ARCH_KGDB
select HAVE_DEBUG_KMEMLEAK select HAVE_DEBUG_KMEMLEAK
select HAVE_DMA_CONTIGUOUS
select HAVE_DYNAMIC_FTRACE select HAVE_DYNAMIC_FTRACE
select HAVE_FTRACE_MCOUNT_RECORD select HAVE_FTRACE_MCOUNT_RECORD
select HAVE_FUNCTION_GRAPH_TRACER select HAVE_FUNCTION_GRAPH_TRACER
......
...@@ -26,6 +26,7 @@ CONFIG_MODULE_UNLOAD=y ...@@ -26,6 +26,7 @@ CONFIG_MODULE_UNLOAD=y
# CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSG is not set
CONFIG_PARTITION_ADVANCED=y CONFIG_PARTITION_ADVANCED=y
# CONFIG_EFI_PARTITION is not set # CONFIG_EFI_PARTITION is not set
CONFIG_CMA=y
CONFIG_NET=y CONFIG_NET=y
CONFIG_PACKET=y CONFIG_PACKET=y
CONFIG_UNIX=y CONFIG_UNIX=y
...@@ -73,7 +74,7 @@ CONFIG_FB_XILINX=y ...@@ -73,7 +74,7 @@ CONFIG_FB_XILINX=y
CONFIG_UIO=y CONFIG_UIO=y
CONFIG_UIO_PDRV_GENIRQ=y CONFIG_UIO_PDRV_GENIRQ=y
CONFIG_UIO_DMEM_GENIRQ=y CONFIG_UIO_DMEM_GENIRQ=y
CONFIG_EXT2_FS=y CONFIG_EXT3_FS=y
# CONFIG_DNOTIFY is not set # CONFIG_DNOTIFY is not set
CONFIG_TMPFS=y CONFIG_TMPFS=y
CONFIG_CRAMFS=y CONFIG_CRAMFS=y
...@@ -82,10 +83,11 @@ CONFIG_NFS_FS=y ...@@ -82,10 +83,11 @@ CONFIG_NFS_FS=y
CONFIG_CIFS=y CONFIG_CIFS=y
CONFIG_CIFS_STATS2=y CONFIG_CIFS_STATS2=y
CONFIG_ENCRYPTED_KEYS=y CONFIG_ENCRYPTED_KEYS=y
CONFIG_DMA_CMA=y
CONFIG_DEBUG_INFO=y CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_SLAB=y
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEBUG_SPINLOCK=y
CONFIG_KGDB=y CONFIG_KGDB=y
CONFIG_KGDB_TESTS=y CONFIG_KGDB_TESTS=y
CONFIG_KGDB_KDB=y CONFIG_KGDB_KDB=y
CONFIG_DEBUG_SLAB=y
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEBUG_SPINLOCK=y
...@@ -70,7 +70,7 @@ CONFIG_XILINX_WATCHDOG=y ...@@ -70,7 +70,7 @@ CONFIG_XILINX_WATCHDOG=y
CONFIG_FB=y CONFIG_FB=y
CONFIG_FB_XILINX=y CONFIG_FB_XILINX=y
# CONFIG_USB_SUPPORT is not set # CONFIG_USB_SUPPORT is not set
CONFIG_EXT2_FS=y CONFIG_EXT3_FS=y
# CONFIG_DNOTIFY is not set # CONFIG_DNOTIFY is not set
CONFIG_CRAMFS=y CONFIG_CRAMFS=y
CONFIG_ROMFS_FS=y CONFIG_ROMFS_FS=y
......
...@@ -92,7 +92,8 @@ static inline void __disable_dcache_nomsr(void) ...@@ -92,7 +92,8 @@ static inline void __disable_dcache_nomsr(void)
#define CACHE_LOOP_LIMITS(start, end, cache_line_length, cache_size) \ #define CACHE_LOOP_LIMITS(start, end, cache_line_length, cache_size) \
do { \ do { \
int align = ~(cache_line_length - 1); \ int align = ~(cache_line_length - 1); \
end = min(start + cache_size, end); \ if (start < UINT_MAX - cache_size) \
end = min(start + cache_size, end); \
start &= align; \ start &= align; \
} while (0) } while (0)
......
...@@ -51,6 +51,7 @@ const struct cpu_ver_key cpu_ver_lookup[] = { ...@@ -51,6 +51,7 @@ const struct cpu_ver_key cpu_ver_lookup[] = {
{"9.5", 0x22}, {"9.5", 0x22},
{"9.6", 0x23}, {"9.6", 0x23},
{"10.0", 0x24}, {"10.0", 0x24},
{"11.0", 0x25},
{NULL, 0}, {NULL, 0},
}; };
......
...@@ -121,10 +121,10 @@ no_fdt_arg: ...@@ -121,10 +121,10 @@ no_fdt_arg:
tophys(r4,r4) /* convert to phys address */ tophys(r4,r4) /* convert to phys address */
ori r3, r0, COMMAND_LINE_SIZE - 1 /* number of loops */ ori r3, r0, COMMAND_LINE_SIZE - 1 /* number of loops */
_copy_command_line: _copy_command_line:
/* r2=r5+r6 - r5 contain pointer to command line */ /* r2=r5+r11 - r5 contain pointer to command line */
lbu r2, r5, r11 lbu r2, r5, r11
beqid r2, skip /* Skip if no data */ beqid r2, skip /* Skip if no data */
sb r2, r4, r11 /* addr[r4+r6]= r2 */ sb r2, r4, r11 /* addr[r4+r11]= r2 */
addik r11, r11, 1 /* increment counting */ addik r11, r11, 1 /* increment counting */
bgtid r3, _copy_command_line /* loop for all entries */ bgtid r3, _copy_command_line /* loop for all entries */
addik r3, r3, -1 /* decrement loop */ addik r3, r3, -1 /* decrement loop */
...@@ -139,8 +139,8 @@ skip: ...@@ -139,8 +139,8 @@ skip:
ori r4, r0, TOPHYS(_bram_load_start) /* save bram context */ ori r4, r0, TOPHYS(_bram_load_start) /* save bram context */
ori r3, r0, (LMB_SIZE - 4) ori r3, r0, (LMB_SIZE - 4)
_copy_bram: _copy_bram:
lw r7, r0, r11 /* r7 = r0 + r6 */ lw r7, r0, r11 /* r7 = r0 + r11 */
sw r7, r4, r11 /* addr[r4 + r6] = r7 */ sw r7, r4, r11 /* addr[r4 + r11] = r7 */
addik r11, r11, 4 /* increment counting */ addik r11, r11, 4 /* increment counting */
bgtid r3, _copy_bram /* loop for all entries */ bgtid r3, _copy_bram /* loop for all entries */
addik r3, r3, -4 /* descrement loop */ addik r3, r3, -4 /* descrement loop */
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
* for more details. * for more details.
*/ */
#include <linux/dma-contiguous.h>
#include <linux/memblock.h> #include <linux/memblock.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
...@@ -345,6 +346,9 @@ asmlinkage void __init mmu_init(void) ...@@ -345,6 +346,9 @@ asmlinkage void __init mmu_init(void)
/* This will also cause that unflatten device tree will be allocated /* This will also cause that unflatten device tree will be allocated
* inside 768MB limit */ * inside 768MB limit */
memblock_set_current_limit(memory_start + lowmem_size - 1); memblock_set_current_limit(memory_start + lowmem_size - 1);
/* CMA initialization */
dma_contiguous_reserve(memory_start + lowmem_size - 1);
} }
/* This is only called until mem_init is done. */ /* This is only called until mem_init is done. */
......
...@@ -6,7 +6,6 @@ generated-y += syscall_table_64_n64.h ...@@ -6,7 +6,6 @@ generated-y += syscall_table_64_n64.h
generated-y += syscall_table_64_o32.h generated-y += syscall_table_64_o32.h
generic-y += current.h generic-y += current.h
generic-y += device.h generic-y += device.h
generic-y += dma-contiguous.h
generic-y += emergency-restart.h generic-y += emergency-restart.h
generic-y += export.h generic-y += export.h
generic-y += irq_work.h generic-y += irq_work.h
......
...@@ -7,7 +7,6 @@ generic-y += div64.h ...@@ -7,7 +7,6 @@ generic-y += div64.h
generic-y += extable.h generic-y += extable.h
generic-y += flat.h generic-y += flat.h
generic-y += dma.h generic-y += dma.h
generic-y += dma-contiguous.h
generic-y += dma-mapping.h generic-y += dma-mapping.h
generic-y += emergency-restart.h generic-y += emergency-restart.h
generic-y += exec.h generic-y += exec.h
......
...@@ -7,7 +7,6 @@ generated-y += unistd_nr.h ...@@ -7,7 +7,6 @@ generated-y += unistd_nr.h
generic-y += asm-offsets.h generic-y += asm-offsets.h
generic-y += cacheflush.h generic-y += cacheflush.h
generic-y += device.h generic-y += device.h
generic-y += dma-contiguous.h
generic-y += dma-mapping.h generic-y += dma-mapping.h
generic-y += div64.h generic-y += div64.h
generic-y += emergency-restart.h generic-y += emergency-restart.h
......
...@@ -7,7 +7,6 @@ generated-y += unistd_32_ia32.h ...@@ -7,7 +7,6 @@ generated-y += unistd_32_ia32.h
generated-y += unistd_64_x32.h generated-y += unistd_64_x32.h
generated-y += xen-hypercalls.h generated-y += xen-hypercalls.h
generic-y += dma-contiguous.h
generic-y += early_ioremap.h generic-y += early_ioremap.h
generic-y += export.h generic-y += export.h
generic-y += mcs_spinlock.h generic-y += mcs_spinlock.h
......
...@@ -4,7 +4,6 @@ generic-y += bug.h ...@@ -4,7 +4,6 @@ generic-y += bug.h
generic-y += compat.h generic-y += compat.h
generic-y += device.h generic-y += device.h
generic-y += div64.h generic-y += div64.h
generic-y += dma-contiguous.h
generic-y += dma-mapping.h generic-y += dma-mapping.h
generic-y += emergency-restart.h generic-y += emergency-restart.h
generic-y += exec.h generic-y += exec.h
......
...@@ -4,5 +4,6 @@ ...@@ -4,5 +4,6 @@
# (This file is not included when SRCARCH=um since UML borrows several # (This file is not included when SRCARCH=um since UML borrows several
# asm headers from the host architecutre.) # asm headers from the host architecutre.)
mandatory-y += dma-contiguous.h
mandatory-y += msi.h mandatory-y += msi.h
mandatory-y += simd.h mandatory-y += simd.h
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment