Skip to content

Commit 153b5c5

Browse files
committed
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
2 parents 7f879e1 + 6aa71ef commit 153b5c5

File tree

15 files changed

+20
-17
lines changed

15 files changed

+20
-17
lines changed

arch/arm64/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ generic-y += bugs.h
33
generic-y += delay.h
44
generic-y += div64.h
55
generic-y += dma.h
6-
generic-y += dma-contiguous.h
76
generic-y += dma-mapping.h
87
generic-y += early_ioremap.h
98
generic-y += emergency-restart.h

arch/csky/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ generic-y += delay.h
77
generic-y += device.h
88
generic-y += div64.h
99
generic-y += dma.h
10-
generic-y += dma-contiguous.h
1110
generic-y += dma-mapping.h
1211
generic-y += emergency-restart.h
1312
generic-y += exec.h

arch/microblaze/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ config MICROBLAZE
2727
select HAVE_ARCH_HASH
2828
select HAVE_ARCH_KGDB
2929
select HAVE_DEBUG_KMEMLEAK
30+
select HAVE_DMA_CONTIGUOUS
3031
select HAVE_DYNAMIC_FTRACE
3132
select HAVE_FTRACE_MCOUNT_RECORD
3233
select HAVE_FUNCTION_GRAPH_TRACER

arch/microblaze/configs/mmu_defconfig

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ CONFIG_MODULE_UNLOAD=y
2626
# CONFIG_BLK_DEV_BSG is not set
2727
CONFIG_PARTITION_ADVANCED=y
2828
# CONFIG_EFI_PARTITION is not set
29+
CONFIG_CMA=y
2930
CONFIG_NET=y
3031
CONFIG_PACKET=y
3132
CONFIG_UNIX=y
@@ -73,7 +74,7 @@ CONFIG_FB_XILINX=y
7374
CONFIG_UIO=y
7475
CONFIG_UIO_PDRV_GENIRQ=y
7576
CONFIG_UIO_DMEM_GENIRQ=y
76-
CONFIG_EXT2_FS=y
77+
CONFIG_EXT3_FS=y
7778
# CONFIG_DNOTIFY is not set
7879
CONFIG_TMPFS=y
7980
CONFIG_CRAMFS=y
@@ -82,10 +83,11 @@ CONFIG_NFS_FS=y
8283
CONFIG_CIFS=y
8384
CONFIG_CIFS_STATS2=y
8485
CONFIG_ENCRYPTED_KEYS=y
86+
CONFIG_DMA_CMA=y
8587
CONFIG_DEBUG_INFO=y
86-
CONFIG_DEBUG_SLAB=y
87-
CONFIG_DETECT_HUNG_TASK=y
88-
CONFIG_DEBUG_SPINLOCK=y
8988
CONFIG_KGDB=y
9089
CONFIG_KGDB_TESTS=y
9190
CONFIG_KGDB_KDB=y
91+
CONFIG_DEBUG_SLAB=y
92+
CONFIG_DETECT_HUNG_TASK=y
93+
CONFIG_DEBUG_SPINLOCK=y

arch/microblaze/configs/nommu_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ CONFIG_XILINX_WATCHDOG=y
7070
CONFIG_FB=y
7171
CONFIG_FB_XILINX=y
7272
# CONFIG_USB_SUPPORT is not set
73-
CONFIG_EXT2_FS=y
73+
CONFIG_EXT3_FS=y
7474
# CONFIG_DNOTIFY is not set
7575
CONFIG_CRAMFS=y
7676
CONFIG_ROMFS_FS=y

arch/microblaze/kernel/cpu/cache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ static inline void __disable_dcache_nomsr(void)
9292
#define CACHE_LOOP_LIMITS(start, end, cache_line_length, cache_size) \
9393
do { \
9494
int align = ~(cache_line_length - 1); \
95-
end = min(start + cache_size, end); \
95+
if (start < UINT_MAX - cache_size) \
96+
end = min(start + cache_size, end); \
9697
start &= align; \
9798
} while (0)
9899

arch/microblaze/kernel/cpu/cpuinfo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const struct cpu_ver_key cpu_ver_lookup[] = {
5151
{"9.5", 0x22},
5252
{"9.6", 0x23},
5353
{"10.0", 0x24},
54+
{"11.0", 0x25},
5455
{NULL, 0},
5556
};
5657

arch/microblaze/kernel/head.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ no_fdt_arg:
121121
tophys(r4,r4) /* convert to phys address */
122122
ori r3, r0, COMMAND_LINE_SIZE - 1 /* number of loops */
123123
_copy_command_line:
124-
/* r2=r5+r6 - r5 contain pointer to command line */
124+
/* r2=r5+r11 - r5 contain pointer to command line */
125125
lbu r2, r5, r11
126126
beqid r2, skip /* Skip if no data */
127-
sb r2, r4, r11 /* addr[r4+r6]= r2 */
127+
sb r2, r4, r11 /* addr[r4+r11]= r2 */
128128
addik r11, r11, 1 /* increment counting */
129129
bgtid r3, _copy_command_line /* loop for all entries */
130130
addik r3, r3, -1 /* decrement loop */
@@ -139,8 +139,8 @@ skip:
139139
ori r4, r0, TOPHYS(_bram_load_start) /* save bram context */
140140
ori r3, r0, (LMB_SIZE - 4)
141141
_copy_bram:
142-
lw r7, r0, r11 /* r7 = r0 + r6 */
143-
sw r7, r4, r11 /* addr[r4 + r6] = r7 */
142+
lw r7, r0, r11 /* r7 = r0 + r11 */
143+
sw r7, r4, r11 /* addr[r4 + r11] = r7 */
144144
addik r11, r11, 4 /* increment counting */
145145
bgtid r3, _copy_bram /* loop for all entries */
146146
addik r3, r3, -4 /* descrement loop */

arch/microblaze/mm/init.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* for more details.
88
*/
99

10+
#include <linux/dma-contiguous.h>
1011
#include <linux/memblock.h>
1112
#include <linux/init.h>
1213
#include <linux/kernel.h>
@@ -345,6 +346,9 @@ asmlinkage void __init mmu_init(void)
345346
/* This will also cause that unflatten device tree will be allocated
346347
* inside 768MB limit */
347348
memblock_set_current_limit(memory_start + lowmem_size - 1);
349+
350+
/* CMA initialization */
351+
dma_contiguous_reserve(memory_start + lowmem_size - 1);
348352
}
349353

350354
/* This is only called until mem_init is done. */

arch/mips/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ generated-y += syscall_table_64_n64.h
66
generated-y += syscall_table_64_o32.h
77
generic-y += current.h
88
generic-y += device.h
9-
generic-y += dma-contiguous.h
109
generic-y += emergency-restart.h
1110
generic-y += export.h
1211
generic-y += irq_work.h

0 commit comments

Comments
 (0)