Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/marvell/kirkwood-ts419.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,11 @@
phy-handle = <&ethphy1>;
};
};

&pmx_sata0 {
marvell,pins = "mpp15";
};

&pmx_sata1 {
marvell,pins = "mpp16";
};
1 change: 1 addition & 0 deletions arch/arm/mm/flush.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ void __sync_icache_dcache(pte_t pteval)
if (pte_exec(pteval))
__flush_icache_all();
}
EXPORT_SYMBOL_GPL(__sync_icache_dcache);
#endif

/*
Expand Down
31 changes: 31 additions & 0 deletions arch/arm64/kernel/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#include <asm/daifflags.h>
#include <asm/smp_plat.h>

#include <acpi/apei.h>

int acpi_noirq = 1; /* skip ACPI IRQ initialization */
int acpi_disabled = 1;
EXPORT_SYMBOL(acpi_disabled);
Expand Down Expand Up @@ -172,6 +174,33 @@ static int __init acpi_fadt_sanity_check(void)
return ret;
}

/*
* acpi_fixup_m400_quirks - Work-around for HPE ProLiant m400 APEI firmware
* problems.
*/
static void __init acpi_fixup_m400_quirks(void)
{
acpi_status status;
struct acpi_table_header *header;
#if !defined(CONFIG_ACPI_APEI)
int hest_disable = HEST_DISABLED;
#endif

if (!IS_ENABLED(CONFIG_ACPI_APEI) || hest_disable != HEST_ENABLED)
return;

status = acpi_get_table(ACPI_SIG_HEST, 0, &header);

if (ACPI_SUCCESS(status) && !strncmp(header->oem_id, "HPE ", 6) &&
!strncmp(header->oem_table_id, "ProLiant", 8) &&
MIDR_IMPLEMENTOR(read_cpuid_id()) == ARM_CPU_IMP_APM) {
hest_disable = HEST_DISABLED;
pr_info("Disabled APEI for m400.\n");
}

acpi_put_table(header);
}

/*
* acpi_boot_table_init() called from setup_arch(), always.
* 1. find RSDP and get its address, and then find XSDT
Expand Down Expand Up @@ -230,6 +259,8 @@ void __init acpi_boot_table_init(void)
acpi_parse_spcr(earlycon_acpi_spcr_enable, true);
if (IS_ENABLED(CONFIG_ACPI_BGRT))
acpi_table_parse(ACPI_SIG_BGRT, acpi_parse_bgrt);

acpi_fixup_m400_quirks();
}
}

Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ BOOTCFLAGS += -fno-stack-protector
endif

BOOTCFLAGS += -include $(srctree)/include/linux/compiler_attributes.h
BOOTCFLAGS += -I$(objtree)/$(obj) -I$(srctree)/$(obj)
BOOTCFLAGS += -I$(objtree)/$(obj) -I$(srctree)/$(obj) -I$(srctree)/include

DTC_FLAGS ?= -p 1024

Expand Down
10 changes: 5 additions & 5 deletions arch/sh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ UTS_MACHINE := sh
LDFLAGS_vmlinux += -e _stext

ifdef CONFIG_CPU_LITTLE_ENDIAN
ld-bfd := elf32-sh-linux
LDFLAGS_vmlinux += --defsym jiffies=jiffies_64 --oformat $(ld-bfd)
ld_bfd := elf32-sh-linux
LDFLAGS_vmlinux += --defsym jiffies=jiffies_64 --oformat $(ld_bfd)
KBUILD_LDFLAGS += -EL
else
ld-bfd := elf32-shbig-linux
LDFLAGS_vmlinux += --defsym jiffies=jiffies_64+4 --oformat $(ld-bfd)
ld_bfd := elf32-shbig-linux
LDFLAGS_vmlinux += --defsym jiffies=jiffies_64+4 --oformat $(ld_bfd)
KBUILD_LDFLAGS += -EB
endif

export ld-bfd
export ld_bfd

# Mach groups
machdir-$(CONFIG_SOLUTION_ENGINE) += mach-se
Expand Down
4 changes: 2 additions & 2 deletions arch/sh/boot/compressed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ endif

ccflags-remove-$(CONFIG_MCOUNT) += -pg

LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(IMAGE_OFFSET) -e startup \
LDFLAGS_vmlinux := --oformat $(ld_bfd) -Ttext $(IMAGE_OFFSET) -e startup \
-T $(obj)/../../kernel/vmlinux.lds

KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
Expand All @@ -53,7 +53,7 @@ $(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE

OBJCOPYFLAGS += -R .empty_zero_page

LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
LDFLAGS_piggy.o := -r --format binary --oformat $(ld_bfd) -T

$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix_y) FORCE
$(call if_changed,ld)
4 changes: 2 additions & 2 deletions arch/sh/boot/romimage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mmcif-obj-$(CONFIG_CPU_SUBTYPE_SH7724) := $(obj)/mmcif-sh7724.o
load-$(CONFIG_ROMIMAGE_MMCIF) := $(mmcif-load-y)
obj-$(CONFIG_ROMIMAGE_MMCIF) := $(mmcif-obj-y)

LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(load-y) -e romstart \
LDFLAGS_vmlinux := --oformat $(ld_bfd) -Ttext $(load-y) -e romstart \
-T $(obj)/../../kernel/vmlinux.lds

$(obj)/vmlinux: $(obj)/head.o $(obj-y) $(obj)/piggy.o FORCE
Expand All @@ -24,7 +24,7 @@ OBJCOPYFLAGS += -j .empty_zero_page
$(obj)/zeropage.bin: vmlinux FORCE
$(call if_changed,objcopy)

LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
LDFLAGS_piggy.o := -r --format binary --oformat $(ld_bfd) -T

$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE
$(call if_changed,ld)
4 changes: 2 additions & 2 deletions tools/perf/arch/x86/util/unwind-libunwind.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ int LIBUNWIND__ARCH_REG_ID(int regnum)
break;
default:
pr_err("unwind: invalid reg id %d\n", regnum);
return -EINVAL;
return -1;
}

return id;
Expand Down Expand Up @@ -107,7 +107,7 @@ int LIBUNWIND__ARCH_REG_ID(int regnum)
break;
default:
pr_err("unwind: invalid reg id %d\n", regnum);
return -EINVAL;
return -1;
}

return id;
Expand Down
Loading