Skip to content

Commit 07d17f0

Browse files
committed
Merge branch '4.4-fixes' into mips-for-linux-next
2 parents dbb9831 + 2549cc9 commit 07d17f0

File tree

7 files changed

+14
-4
lines changed

7 files changed

+14
-4
lines changed

arch/mips/include/asm/io.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ static inline void __iomem * __ioremap_mode(phys_addr_t offset, unsigned long si
275275
*/
276276
#define ioremap_cachable(offset, size) \
277277
__ioremap_mode((offset), (size), _page_cachable_default)
278+
#define ioremap_cache ioremap_cachable
278279

279280
/*
280281
* These two are MIPS specific ioremap variant. ioremap_cacheable_cow

arch/mips/include/asm/mips-cm.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ BUILD_CM_Cx_R_(tcid_8_priority, 0x80)
243243
#define CM_GCR_BASE_CMDEFTGT_IOCU0 2
244244
#define CM_GCR_BASE_CMDEFTGT_IOCU1 3
245245

246+
/* GCR_RESET_EXT_BASE register fields */
247+
#define CM_GCR_RESET_EXT_BASE_EVARESET BIT(31)
248+
#define CM_GCR_RESET_EXT_BASE_UEB BIT(30)
249+
246250
/* GCR_ACCESS register fields */
247251
#define CM_GCR_ACCESS_ACCESSEN_SHF 0
248252
#define CM_GCR_ACCESS_ACCESSEN_MSK (_ULCAST_(0xff) << 0)

arch/mips/include/asm/page.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#define PAGE_SHIFT 16
3434
#endif
3535
#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
36-
#define PAGE_MASK (~(PAGE_SIZE - 1))
36+
#define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
3737

3838
/*
3939
* This is used for calculating the real page sizes

arch/mips/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ static void __init request_crashkernel(struct resource *res)
623623

624624
#define USE_PROM_CMDLINE IS_ENABLED(CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER)
625625
#define USE_DTB_CMDLINE IS_ENABLED(CONFIG_MIPS_CMDLINE_FROM_DTB)
626-
#define EXTEND_WITH_PROM IS_ENABLED(CONFIG_MIPS_CMDLINE_EXTEND)
626+
#define EXTEND_WITH_PROM IS_ENABLED(CONFIG_MIPS_CMDLINE_DTB_EXTEND)
627627

628628
static void __init arch_mem_init(char **cmdline_p)
629629
{

arch/mips/kernel/smp-cps.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ static void boot_core(unsigned core)
202202
/* Ensure its coherency is disabled */
203203
write_gcr_co_coherence(0);
204204

205+
/* Start it with the legacy memory map and exception base */
206+
write_gcr_co_reset_ext_base(CM_GCR_RESET_EXT_BASE_UEB);
207+
205208
/* Ensure the core can access the GCRs */
206209
access = read_gcr_access();
207210
access |= 1 << (CM_GCR_ACCESS_ACCESSEN_SHF + core);

arch/mips/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ aflags-vdso := $(ccflags-vdso) \
2626
# the comments on that file.
2727
#
2828
ifndef CONFIG_CPU_MIPSR6
29-
ifeq ($(call ld-ifversion, -lt, 22500000, y),y)
29+
ifeq ($(call ld-ifversion, -lt, 225000000, y),y)
3030
$(warning MIPS VDSO requires binutils >= 2.25)
3131
obj-vdso-y := $(filter-out gettimeofday.o, $(obj-vdso-y))
3232
ccflags-vdso += -DDISABLE_MIPS_VDSO

scripts/ld-version.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
# extract linker version number from stdin and turn into single number
33
{
44
gsub(".*)", "");
5+
gsub(".*version ", "");
6+
gsub("-.*", "");
57
split($1,a, ".");
6-
print a[1]*10000000 + a[2]*100000 + a[3]*10000 + a[4]*100 + a[5];
8+
print a[1]*100000000 + a[2]*1000000 + a[3]*10000 + a[4]*100 + a[5];
79
exit
810
}

0 commit comments

Comments
 (0)