Skip to content

Commit 290d9bf

Browse files
committed
Merge branch 'perf/urgent' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2 parents c7f4f99 + 64aee2a commit 290d9bf

41 files changed

Lines changed: 319 additions & 214 deletions

Some content is hidden

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

‎Makefile‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ LINUXINCLUDE := \
396396
KBUILD_CPPFLAGS := -D__KERNEL__
397397

398398
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
399-
-fno-strict-aliasing -fno-common \
399+
-fno-strict-aliasing -fno-common -fshort-wchar \
400400
-Werror-implicit-function-declaration \
401401
-Wno-format-security \
402402
-std=gnu89 $(call cc-option,-fno-PIE)
@@ -442,7 +442,7 @@ export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn \
442442
# ===========================================================================
443443
# Rules shared between *config targets and build targets
444444

445-
# Basic helpers built in scripts/
445+
# Basic helpers built in scripts/basic/
446446
PHONY += scripts_basic
447447
scripts_basic:
448448
$(Q)$(MAKE) $(build)=scripts/basic
@@ -505,7 +505,7 @@ ifeq ($(KBUILD_EXTMOD),)
505505
endif
506506
endif
507507
endif
508-
# install and module_install need also be processed one by one
508+
# install and modules_install need also be processed one by one
509509
ifneq ($(filter install,$(MAKECMDGOALS)),)
510510
ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
511511
mixed-targets := 1
@@ -964,7 +964,7 @@ export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y2) $(drivers-y) $(net-y) $(virt-
964964
export KBUILD_VMLINUX_LIBS := $(libs-y1)
965965
export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds
966966
export LDFLAGS_vmlinux
967-
# used by scripts/pacmage/Makefile
967+
# used by scripts/package/Makefile
968968
export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools)
969969

970970
vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN) $(KBUILD_VMLINUX_LIBS)
@@ -992,8 +992,8 @@ include/generated/autoksyms.h: FORCE
992992
ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink)
993993

994994
# Final link of vmlinux with optional arch pass after final link
995-
cmd_link-vmlinux = \
996-
$(CONFIG_SHELL) $< $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) ; \
995+
cmd_link-vmlinux = \
996+
$(CONFIG_SHELL) $< $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) ; \
997997
$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
998998

999999
vmlinux: scripts/link-vmlinux.sh vmlinux_prereq $(vmlinux-deps) FORCE
@@ -1184,6 +1184,7 @@ PHONY += kselftest
11841184
kselftest:
11851185
$(Q)$(MAKE) -C tools/testing/selftests run_tests
11861186

1187+
PHONY += kselftest-clean
11871188
kselftest-clean:
11881189
$(Q)$(MAKE) -C tools/testing/selftests clean
11891190

‎arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@
266266

267267
&hdmicec {
268268
status = "okay";
269+
needs-hpd;
269270
};
270271

271272
&hsi2c_4 {

‎arch/arm/mach-at91/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
menuconfig ARCH_AT91
22
bool "Atmel SoCs"
33
depends on ARCH_MULTI_V4T || ARCH_MULTI_V5 || ARCH_MULTI_V7 || ARM_SINGLE_ARMV7M
4-
select ARM_CPU_SUSPEND if PM
4+
select ARM_CPU_SUSPEND if PM && ARCH_MULTI_V7
55
select COMMON_CLK_AT91
66
select GPIOLIB
77
select PINCTRL

‎arch/arm/mach-at91/pm.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,9 @@ static void __init at91_pm_init(void (*pm_idle)(void))
608608

609609
void __init at91rm9200_pm_init(void)
610610
{
611+
if (!IS_ENABLED(CONFIG_SOC_AT91RM9200))
612+
return;
613+
611614
at91_dt_ramc();
612615

613616
/*
@@ -620,18 +623,27 @@ void __init at91rm9200_pm_init(void)
620623

621624
void __init at91sam9_pm_init(void)
622625
{
626+
if (!IS_ENABLED(CONFIG_SOC_AT91SAM9))
627+
return;
628+
623629
at91_dt_ramc();
624630
at91_pm_init(at91sam9_idle);
625631
}
626632

627633
void __init sama5_pm_init(void)
628634
{
635+
if (!IS_ENABLED(CONFIG_SOC_SAMA5))
636+
return;
637+
629638
at91_dt_ramc();
630639
at91_pm_init(NULL);
631640
}
632641

633642
void __init sama5d2_pm_init(void)
634643
{
644+
if (!IS_ENABLED(CONFIG_SOC_SAMA5D2))
645+
return;
646+
635647
at91_pm_backup_init();
636648
sama5_pm_init();
637649
}

‎drivers/acpi/acpica/nsxfeval.c‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,13 @@ acpi_evaluate_object_typed(acpi_handle handle,
100100
free_buffer_on_error = TRUE;
101101
}
102102

103-
status = acpi_get_handle(handle, pathname, &target_handle);
104-
if (ACPI_FAILURE(status)) {
105-
return_ACPI_STATUS(status);
103+
if (pathname) {
104+
status = acpi_get_handle(handle, pathname, &target_handle);
105+
if (ACPI_FAILURE(status)) {
106+
return_ACPI_STATUS(status);
107+
}
108+
} else {
109+
target_handle = handle;
106110
}
107111

108112
full_pathname = acpi_ns_get_external_pathname(target_handle);

‎drivers/acpi/ec.c‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ int __init acpi_ec_dsdt_probe(void)
17411741
* functioning ECDT EC first in order to handle the events.
17421742
* https://bugzilla.kernel.org/show_bug.cgi?id=115021
17431743
*/
1744-
int __init acpi_ec_ecdt_start(void)
1744+
static int __init acpi_ec_ecdt_start(void)
17451745
{
17461746
acpi_handle handle;
17471747

@@ -2003,20 +2003,17 @@ static inline void acpi_ec_query_exit(void)
20032003
int __init acpi_ec_init(void)
20042004
{
20052005
int result;
2006+
int ecdt_fail, dsdt_fail;
20062007

20072008
/* register workqueue for _Qxx evaluations */
20082009
result = acpi_ec_query_init();
20092010
if (result)
2010-
goto err_exit;
2011-
/* Now register the driver for the EC */
2012-
result = acpi_bus_register_driver(&acpi_ec_driver);
2013-
if (result)
2014-
goto err_exit;
2011+
return result;
20152012

2016-
err_exit:
2017-
if (result)
2018-
acpi_ec_query_exit();
2019-
return result;
2013+
/* Drivers must be started after acpi_ec_query_init() */
2014+
ecdt_fail = acpi_ec_ecdt_start();
2015+
dsdt_fail = acpi_bus_register_driver(&acpi_ec_driver);
2016+
return ecdt_fail && dsdt_fail ? -ENODEV : 0;
20202017
}
20212018

20222019
/* EC driver currently not unloadable */

‎drivers/acpi/internal.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ typedef int (*acpi_ec_query_func) (void *data);
185185
int acpi_ec_init(void);
186186
int acpi_ec_ecdt_probe(void);
187187
int acpi_ec_dsdt_probe(void);
188-
int acpi_ec_ecdt_start(void);
189188
void acpi_ec_block_transactions(void);
190189
void acpi_ec_unblock_transactions(void);
191190
int acpi_ec_add_query_handler(struct acpi_ec *ec, u8 query_bit,

‎drivers/acpi/property.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ static struct fwnode_handle *acpi_graph_get_child_prop_value(
10471047
fwnode_for_each_child_node(fwnode, child) {
10481048
u32 nr;
10491049

1050-
if (!fwnode_property_read_u32(fwnode, prop_name, &nr))
1050+
if (fwnode_property_read_u32(child, prop_name, &nr))
10511051
continue;
10521052

10531053
if (val == nr)

‎drivers/acpi/scan.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,6 @@ int __init acpi_scan_init(void)
20842084

20852085
acpi_gpe_apply_masked_gpes();
20862086
acpi_update_all_gpes();
2087-
acpi_ec_ecdt_start();
20882087

20892088
acpi_scan_initialized = true;
20902089

‎drivers/infiniband/core/uverbs_cmd.c‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ static struct ib_ucq_object *create_cq(struct ib_uverbs_file *file,
10151015
cq->uobject = &obj->uobject;
10161016
cq->comp_handler = ib_uverbs_comp_handler;
10171017
cq->event_handler = ib_uverbs_cq_event_handler;
1018-
cq->cq_context = &ev_file->ev_queue;
1018+
cq->cq_context = ev_file ? &ev_file->ev_queue : NULL;
10191019
atomic_set(&cq->usecnt, 0);
10201020

10211021
obj->uobject.object = cq;
@@ -1522,6 +1522,7 @@ static int create_qp(struct ib_uverbs_file *file,
15221522
qp->qp_type = attr.qp_type;
15231523
atomic_set(&qp->usecnt, 0);
15241524
atomic_inc(&pd->usecnt);
1525+
qp->port = 0;
15251526
if (attr.send_cq)
15261527
atomic_inc(&attr.send_cq->usecnt);
15271528
if (attr.recv_cq)
@@ -1962,8 +1963,9 @@ static int modify_qp(struct ib_uverbs_file *file,
19621963
attr->alt_timeout = cmd->base.alt_timeout;
19631964
attr->rate_limit = cmd->rate_limit;
19641965

1965-
attr->ah_attr.type = rdma_ah_find_type(qp->device,
1966-
cmd->base.dest.port_num);
1966+
if (cmd->base.attr_mask & IB_QP_AV)
1967+
attr->ah_attr.type = rdma_ah_find_type(qp->device,
1968+
cmd->base.dest.port_num);
19671969
if (cmd->base.dest.is_global) {
19681970
rdma_ah_set_grh(&attr->ah_attr, NULL,
19691971
cmd->base.dest.flow_label,
@@ -1981,8 +1983,9 @@ static int modify_qp(struct ib_uverbs_file *file,
19811983
rdma_ah_set_port_num(&attr->ah_attr,
19821984
cmd->base.dest.port_num);
19831985

1984-
attr->alt_ah_attr.type = rdma_ah_find_type(qp->device,
1985-
cmd->base.dest.port_num);
1986+
if (cmd->base.attr_mask & IB_QP_ALT_PATH)
1987+
attr->alt_ah_attr.type =
1988+
rdma_ah_find_type(qp->device, cmd->base.dest.port_num);
19861989
if (cmd->base.alt_dest.is_global) {
19871990
rdma_ah_set_grh(&attr->alt_ah_attr, NULL,
19881991
cmd->base.alt_dest.flow_label,

0 commit comments

Comments
 (0)