Skip to content

Commit bdf4e94

Browse files
author
Russell King
committed
Merge branch 'misc' into for-linus
Conflicts: arch/arm/mach-integrator/integrator_ap.c
2 parents 06afb1a + eb04745 commit bdf4e94

146 files changed

Lines changed: 787 additions & 539 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/arm/Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ config ARM_PATCH_PHYS_VIRT
212212
you need to shrink the kernel to the minimal size.
213213

214214

215+
config GENERIC_BUG
216+
def_bool y
217+
depends on BUG
218+
215219
source "init/Kconfig"
216220

217221
source "kernel/Kconfig.freezer"

‎arch/arm/boot/Makefile‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,16 @@ endif
7878

7979
$(obj)/uImage: STARTADDR=$(LOADADDR)
8080

81+
check_for_multiple_loadaddr = \
82+
if [ $(words $(LOADADDR)) -gt 1 ]; then \
83+
echo 'multiple load addresses: $(LOADADDR)'; \
84+
echo 'This is incompatible with uImages'; \
85+
echo 'Specify LOADADDR on the commandline to build an uImage'; \
86+
false; \
87+
fi
88+
8189
$(obj)/uImage: $(obj)/zImage FORCE
90+
@$(check_for_multiple_loadaddr)
8291
$(call if_changed,uimage)
8392
@echo ' Image $@ is ready'
8493

‎arch/arm/boot/compressed/Makefile‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,16 @@ bad_syms=$$($(CROSS_COMPILE)nm $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \
139139
( echo "following symbols must have non local/private scope:" >&2; \
140140
echo "$$bad_syms" >&2; rm -f $@; false )
141141

142+
check_for_multiple_zreladdr = \
143+
if [ $(words $(ZRELADDR)) -gt 1 -a "$(CONFIG_AUTO_ZRELADDR)" = "" ]; then \
144+
echo 'multiple zreladdrs: $(ZRELADDR)'; \
145+
echo 'This needs CONFIG_AUTO_ZRELADDR to be set'; \
146+
false; \
147+
fi
148+
142149
$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.$(suffix_y).o \
143150
$(addprefix $(obj)/, $(OBJS)) $(lib1funcs) FORCE
151+
@$(check_for_multiple_zreladdr)
144152
$(call if_changed,ld)
145153
@$(check_for_bad_syms)
146154

‎arch/arm/common/pl330.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ int pl330_chan_ctrl(void *ch_id, enum pl330_chan_op op)
15461546

15471547
/* Start the next */
15481548
case PL330_OP_START:
1549-
if (!_start(thrd))
1549+
if (!_thrd_active(thrd) && !_start(thrd))
15501550
ret = -EIO;
15511551
break;
15521552

‎arch/arm/configs/integrator_defconfig‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CONFIG_EXPERIMENTAL=y
22
CONFIG_SYSVIPC=y
3+
CONFIG_TINY_RCU=y
34
CONFIG_IKCONFIG=y
45
CONFIG_IKCONFIG_PROC=y
56
CONFIG_LOG_BUF_SHIFT=14
@@ -8,20 +9,29 @@ CONFIG_MODULES=y
89
CONFIG_MODULE_UNLOAD=y
910
CONFIG_ARCH_INTEGRATOR=y
1011
CONFIG_ARCH_INTEGRATOR_AP=y
12+
CONFIG_ARCH_INTEGRATOR_CP=y
1113
CONFIG_CPU_ARM720T=y
1214
CONFIG_CPU_ARM920T=y
15+
CONFIG_CPU_ARM922T=y
16+
CONFIG_CPU_ARM926T=y
17+
CONFIG_CPU_ARM1020=y
18+
CONFIG_CPU_ARM1022=y
19+
CONFIG_CPU_ARM1026=y
1320
CONFIG_PCI=y
21+
CONFIG_NO_HZ=y
22+
CONFIG_HIGH_RES_TIMERS=y
23+
CONFIG_PREEMPT=y
24+
CONFIG_AEABI=y
1425
CONFIG_LEDS=y
1526
CONFIG_LEDS_CPU=y
1627
CONFIG_ZBOOT_ROM_TEXT=0x0
1728
CONFIG_ZBOOT_ROM_BSS=0x0
18-
CONFIG_CMDLINE="console=ttyAM0,38400n8 root=/dev/nfs ip=bootp mem=32M"
29+
CONFIG_CMDLINE="console=ttyAM0,38400n8 root=/dev/nfs ip=bootp"
1930
CONFIG_CPU_FREQ=y
2031
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
2132
CONFIG_CPU_FREQ_GOV_USERSPACE=y
2233
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
2334
CONFIG_FPE_NWFPE=y
24-
CONFIG_PM=y
2535
CONFIG_NET=y
2636
CONFIG_PACKET=y
2737
CONFIG_UNIX=y
@@ -32,14 +42,14 @@ CONFIG_IP_PNP_DHCP=y
3242
CONFIG_IP_PNP_BOOTP=y
3343
# CONFIG_IPV6 is not set
3444
CONFIG_MTD=y
35-
CONFIG_MTD_PARTITIONS=y
3645
CONFIG_MTD_CMDLINE_PARTS=y
3746
CONFIG_MTD_AFS_PARTS=y
3847
CONFIG_MTD_CHAR=y
3948
CONFIG_MTD_BLOCK=y
4049
CONFIG_MTD_CFI=y
4150
CONFIG_MTD_CFI_ADV_OPTIONS=y
4251
CONFIG_MTD_CFI_INTELEXT=y
52+
CONFIG_MTD_PHYSMAP=y
4353
CONFIG_BLK_DEV_LOOP=y
4454
CONFIG_BLK_DEV_RAM=y
4555
CONFIG_BLK_DEV_RAM_SIZE=8192
@@ -56,6 +66,8 @@ CONFIG_FB_MODE_HELPERS=y
5666
CONFIG_FB_MATROX=y
5767
CONFIG_FB_MATROX_MILLENIUM=y
5868
CONFIG_FB_MATROX_MYSTIQUE=y
69+
CONFIG_RTC_CLASS=y
70+
CONFIG_RTC_DRV_PL030=y
5971
CONFIG_EXT2_FS=y
6072
CONFIG_TMPFS=y
6173
CONFIG_JFFS2_FS=y
@@ -68,4 +80,3 @@ CONFIG_NFSD_V3=y
6880
CONFIG_PARTITION_ADVANCED=y
6981
CONFIG_MAGIC_SYSRQ=y
7082
CONFIG_DEBUG_KERNEL=y
71-
CONFIG_DEBUG_ERRORS=y

‎arch/arm/include/asm/Kbuild‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
include include/asm-generic/Kbuild.asm
22

33
header-y += hwcap.h
4+
5+
generic-y += auxvec.h
6+
generic-y += bitsperlong.h
7+
generic-y += cputime.h
8+
generic-y += emergency-restart.h
9+
generic-y += errno.h
10+
generic-y += ioctl.h
11+
generic-y += irq_regs.h
12+
generic-y += kdebug.h
13+
generic-y += local.h
14+
generic-y += local64.h
15+
generic-y += percpu.h
16+
generic-y += poll.h
17+
generic-y += resource.h
18+
generic-y += sections.h
19+
generic-y += siginfo.h
20+
generic-y += sizes.h

‎arch/arm/include/asm/auxvec.h‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎arch/arm/include/asm/bitsperlong.h‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎arch/arm/include/asm/bug.h‎

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,58 @@
33

44

55
#ifdef CONFIG_BUG
6-
#ifdef CONFIG_DEBUG_BUGVERBOSE
7-
extern void __bug(const char *file, int line) __attribute__((noreturn));
8-
9-
/* give file/line information */
10-
#define BUG() __bug(__FILE__, __LINE__)
116

7+
/*
8+
* Use a suitable undefined instruction to use for ARM/Thumb2 bug handling.
9+
* We need to be careful not to conflict with those used by other modules and
10+
* the register_undef_hook() system.
11+
*/
12+
#ifdef CONFIG_THUMB2_KERNEL
13+
#define BUG_INSTR_VALUE 0xde02
14+
#define BUG_INSTR_TYPE ".hword "
1215
#else
16+
#define BUG_INSTR_VALUE 0xe7f001f2
17+
#define BUG_INSTR_TYPE ".word "
18+
#endif
1319

14-
/* this just causes an oops */
15-
#define BUG() do { *(int *)0 = 0; } while (1)
1620

17-
#endif
21+
#define BUG() _BUG(__FILE__, __LINE__, BUG_INSTR_VALUE)
22+
#define _BUG(file, line, value) __BUG(file, line, value)
23+
24+
#ifdef CONFIG_DEBUG_BUGVERBOSE
25+
26+
/*
27+
* The extra indirection is to ensure that the __FILE__ string comes through
28+
* OK. Many version of gcc do not support the asm %c parameter which would be
29+
* preferable to this unpleasantness. We use mergeable string sections to
30+
* avoid multiple copies of the string appearing in the kernel image.
31+
*/
32+
33+
#define __BUG(__file, __line, __value) \
34+
do { \
35+
BUILD_BUG_ON(sizeof(struct bug_entry) != 12); \
36+
asm volatile("1:\t" BUG_INSTR_TYPE #__value "\n" \
37+
".pushsection .rodata.str, \"aMS\", %progbits, 1\n" \
38+
"2:\t.asciz " #__file "\n" \
39+
".popsection\n" \
40+
".pushsection __bug_table,\"a\"\n" \
41+
"3:\t.word 1b, 2b\n" \
42+
"\t.hword " #__line ", 0\n" \
43+
".popsection"); \
44+
unreachable(); \
45+
} while (0)
46+
47+
#else /* not CONFIG_DEBUG_BUGVERBOSE */
48+
49+
#define __BUG(__file, __line, __value) \
50+
do { \
51+
asm volatile(BUG_INSTR_TYPE #__value); \
52+
unreachable(); \
53+
} while (0)
54+
#endif /* CONFIG_DEBUG_BUGVERBOSE */
1855

1956
#define HAVE_ARCH_BUG
20-
#endif
57+
#endif /* CONFIG_BUG */
2158

2259
#include <asm-generic/bug.h>
2360

‎arch/arm/include/asm/cachetype.h‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#define CACHEID_VIPT (CACHEID_VIPT_ALIASING|CACHEID_VIPT_NONALIASING)
88
#define CACHEID_ASID_TAGGED (1 << 3)
99
#define CACHEID_VIPT_I_ALIASING (1 << 4)
10+
#define CACHEID_PIPT (1 << 5)
1011

1112
extern unsigned int cacheid;
1213

@@ -16,6 +17,7 @@ extern unsigned int cacheid;
1617
#define cache_is_vipt_aliasing() cacheid_is(CACHEID_VIPT_ALIASING)
1718
#define icache_is_vivt_asid_tagged() cacheid_is(CACHEID_ASID_TAGGED)
1819
#define icache_is_vipt_aliasing() cacheid_is(CACHEID_VIPT_I_ALIASING)
20+
#define icache_is_pipt() cacheid_is(CACHEID_PIPT)
1921

2022
/*
2123
* __LINUX_ARM_ARCH__ is the minimum supported CPU architecture
@@ -26,7 +28,8 @@ extern unsigned int cacheid;
2628
#if __LINUX_ARM_ARCH__ >= 7
2729
#define __CACHEID_ARCH_MIN (CACHEID_VIPT_NONALIASING |\
2830
CACHEID_ASID_TAGGED |\
29-
CACHEID_VIPT_I_ALIASING)
31+
CACHEID_VIPT_I_ALIASING |\
32+
CACHEID_PIPT)
3033
#elif __LINUX_ARM_ARCH__ >= 6
3134
#define __CACHEID_ARCH_MIN (~CACHEID_VIVT)
3235
#else

0 commit comments

Comments
 (0)