Skip to content

Commit 233e886

Browse files
committed
Merge branch 'kernel.lnx.4.4.r34-rel' of https://github.com/android-linux-stable/msm-4.4 into whyred-pie
Signed-off-by: Atman Shah <masteratman@gmail.com>
2 parents 76f9793 + 91c5340 commit 233e886

File tree

59 files changed

+411
-163
lines changed

Some content is hidden

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

59 files changed

+411
-163
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION = 4
22
PATCHLEVEL = 4
3-
SUBLEVEL = 172
3+
SUBLEVEL = 173
44
EXTRAVERSION =
55
NAME = Blurry Fish Butt
66

arch/arc/include/asm/perf_event.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ static const char * const arc_pmu_ev_hw_map[] = {
103103

104104
/* counts condition */
105105
[PERF_COUNT_HW_INSTRUCTIONS] = "iall",
106-
[PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = "ijmp", /* Excludes ZOL jumps */
106+
/* All jump instructions that are taken */
107+
[PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = "ijmptak",
107108
[PERF_COUNT_ARC_BPOK] = "bpok", /* NP-NT, PT-T, PNT-NT */
108109
#ifdef CONFIG_ISA_ARCV2
109110
[PERF_COUNT_HW_BRANCH_MISSES] = "bpmp",

arch/arm/mach-cns3xxx/pcie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static void __iomem *cns3xxx_pci_map_bus(struct pci_bus *bus,
8383
} else /* remote PCI bus */
8484
base = cnspci->cfg1_regs + ((busno & 0xf) << 20);
8585

86-
return base + (where & 0xffc) + (devfn << 12);
86+
return base + where + (devfn << 12);
8787
}
8888

8989
static int cns3xxx_pci_read_config(struct pci_bus *bus, unsigned int devfn,

arch/arm64/kernel/hyp-stub.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include <asm/virt.h>
2929

3030
.text
31+
.pushsection .hyp.text, "ax"
32+
3133
.align 11
3234

3335
ENTRY(__hyp_stub_vectors)

arch/arm64/mm/flush.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ void __sync_icache_dcache(pte_t pte, unsigned long addr)
7575
{
7676
struct page *page = pte_page(pte);
7777

78-
/* no flushing needed for anonymous pages */
79-
if (!page_mapping(page))
80-
return;
81-
8278
if (!test_and_set_bit(PG_dcache_clean, &page->flags))
8379
sync_icache_aliases(page_address(page),
8480
PAGE_SIZE << compound_order(page));

arch/s390/kernel/early.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ static noinline __init void detect_machine_type(void)
224224
if (stsi(vmms, 3, 2, 2) || !vmms->count)
225225
return;
226226

227-
/* Running under KVM? If not we assume z/VM */
227+
/* Detect known hypervisors */
228228
if (!memcmp(vmms->vm[0].cpi, "\xd2\xe5\xd4", 3))
229229
S390_lowcore.machine_flags |= MACHINE_FLAG_KVM;
230-
else
230+
else if (!memcmp(vmms->vm[0].cpi, "\xa9\x61\xe5\xd4", 4))
231231
S390_lowcore.machine_flags |= MACHINE_FLAG_VM;
232232
}
233233

arch/s390/kernel/setup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,8 @@ void __init setup_arch(char **cmdline_p)
833833
pr_info("Linux is running under KVM in 64-bit mode\n");
834834
else if (MACHINE_IS_LPAR)
835835
pr_info("Linux is running natively in 64-bit mode\n");
836+
else
837+
pr_info("Linux is running as a guest in 64-bit mode\n");
836838

837839
/* Have one command line that is parsed and saved in /proc/cmdline */
838840
/* boot_command_line has been already set up in early.c */

arch/s390/kernel/smp.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,13 @@ void smp_call_online_cpu(void (*func)(void *), void *data)
360360
*/
361361
void smp_call_ipl_cpu(void (*func)(void *), void *data)
362362
{
363+
struct _lowcore *lc = pcpu_devices->lowcore;
364+
365+
if (pcpu_devices[0].address == stap())
366+
lc = &S390_lowcore;
367+
363368
pcpu_delegate(&pcpu_devices[0], func, data,
364-
pcpu_devices->lowcore->panic_stack -
365-
PANIC_FRAME_OFFSET + PAGE_SIZE);
369+
lc->panic_stack - PANIC_FRAME_OFFSET + PAGE_SIZE);
366370
}
367371

368372
int smp_find_processor_id(u16 address)
@@ -1152,7 +1156,11 @@ static ssize_t __ref rescan_store(struct device *dev,
11521156
{
11531157
int rc;
11541158

1159+
rc = lock_device_hotplug_sysfs();
1160+
if (rc)
1161+
return rc;
11551162
rc = smp_rescan_cpus();
1163+
unlock_device_hotplug();
11561164
return rc ? rc : count;
11571165
}
11581166
static DEVICE_ATTR(rescan, 0200, NULL, rescan_store);

arch/x86/boot/compressed/aslr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ static inline u16 i8254(void)
2525
u16 status, timer;
2626

2727
do {
28-
outb(I8254_PORT_CONTROL,
29-
I8254_CMD_READBACK | I8254_SELECT_COUNTER0);
28+
outb(I8254_CMD_READBACK | I8254_SELECT_COUNTER0,
29+
I8254_PORT_CONTROL);
3030
status = inb(I8254_PORT_COUNTER0);
3131
timer = inb(I8254_PORT_COUNTER0);
3232
timer |= inb(I8254_PORT_COUNTER0) << 8;

arch/x86/kvm/x86.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5524,8 +5524,7 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu,
55245524
toggle_interruptibility(vcpu, ctxt->interruptibility);
55255525
vcpu->arch.emulate_regs_need_sync_to_vcpu = false;
55265526
kvm_rip_write(vcpu, ctxt->eip);
5527-
if (r == EMULATE_DONE &&
5528-
(ctxt->tf || (vcpu->guest_debug & KVM_GUESTDBG_SINGLESTEP)))
5527+
if (r == EMULATE_DONE && ctxt->tf)
55295528
kvm_vcpu_do_singlestep(vcpu, &r);
55305529
if (!ctxt->have_exception ||
55315530
exception_type(ctxt->exception.vector) == EXCPT_TRAP)

0 commit comments

Comments
 (0)