This is the 4.9.165 stable release
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEZH8oZUiU471FcZm+ONu9yGCSaT4FAlyWJGwACgkQONu9yGCS aT6ESRAA12tEs9A/BRn3YolJ4ePUIvf5lG4EzFQLwCaPyx1OGaJInLZBWIo6PLCz DEfWsiE5iO1JtGNbvMah/5SXy7AxocmfFPkGRiMJZASyFflua69HaSCqoIhmqF+G qWfEC6YvhGFWBfmasNDbn1JhQxsXBJw6Hy5xRsW+Jdp5c2WH5Jao5d1XckZVbASo QJg+nqAOWJtbjdCe71uQSiLM5YEk5AjakC+A3tDGPCZlTy+X2EpBogjW0aZ8bq1n bVjcwhbTLO0o+yle2Y0CBUdcFw1pmx8MSmTp/gu8q7Q0fb4OrwisRCkomZQC3zdC Vrea9quNQnB2bdx2foDFE7yOBVU5ehLmoYUjXFxLxhqSP1pTMXHo77rMusOZbtuF uWjSrRHaD4U/CPn4CJWcEO+L5WHIwBKbaOcpRgzlLU9yaoWbRjL2XvezSo2m+8V5 snger3zYy7Z5yQZQYscGvMHc7bQWAgbCtmGubshm+yrS5sVDmzHiyQ1iBGQ86qsP v1CYZQGYyZbRhocTH6YpRPuoJUecieaO1U8XsXPcKHHR0pXNr/yUJ1gQmrxuRDjw SBLMmKnrtQTOOfra1Qi77W2VxBL9rT/3BdauPRkKbIuuen4IHoE9UxN8Oxcp37yF mmHO5QrQllVPdkS7oFwBmfrA7nANfgXeRXjfV6hpNyunHhwNGvE= =oels -----END PGP SIGNATURE----- Merge 4.9.165 into android-4.9 Changes in 4.9.165 media: videobuf2-v4l2: drop WARN_ON in vb2_warn_zero_bytesused() 9p: use inode->i_lock to protect i_size_write() under 32-bit 9p/net: fix memory leak in p9_client_create ASoC: fsl_esai: fix register setting issue in RIGHT_J mode iio: adc: exynos-adc: Fix NULL pointer exception on unbind stm class: Fix an endless loop in channel allocation crypto: caam - fixed handling of sg list crypto: ahash - fix another early termination in hash walk gpu: ipu-v3: Fix i.MX51 CSI control registers offset gpu: ipu-v3: Fix CSI offsets for imx53 s390/dasd: fix using offset into zero size array error ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized Input: cap11xx - switch to using set_brightness_blocking() Input: matrix_keypad - use flush_delayed_work() floppy: check_events callback should not return a negative number mm/gup: fix gup_pmd_range() for dax mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs net: hns: Fix object reference leaks in hns_dsaf_roce_reset() i2c: cadence: Fix the hold bit setting Input: st-keyscan - fix potential zalloc NULL dereference clk: sunxi: A31: Fix wrong AHB gate number ARM: 8824/1: fix a migrating irq bug when hotplug cpu assoc_array: Fix shortcut creation scsi: libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task net: systemport: Fix reception of BPDUs pinctrl: meson: meson8b: fix the sdxc_a data 1..3 pins qmi_wwan: apply SET_DTR quirk to Sierra WP7607 net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe() ASoC: topology: free created components in tplg load error arm64: Relax GIC version check during early boot net: marvell: mvneta: fix DMA debug warning tmpfs: fix link accounting when a tmpfile is linked in ARCv2: lib: memcpy: fix doing prefetchw outside of buffer ARC: uacces: remove lp_start, lp_end from clobber list phonet: fix building with clang mac80211_hwsim: propagate genlmsg_reply return code net: thunderx: make CFG_DONE message to run through generic send-ack sequence nfp: bpf: fix code-gen bug on BPF_ALU | BPF_XOR | BPF_K nfp: bpf: fix ALU32 high bits clearance bug net: set static variable an initial value in atl2_probe() tmpfs: fix uninitialized return value in shmem_link stm class: Prevent division by zero libnvdimm/label: Clear 'updating' flag after label-set update libnvdimm/pmem: Honor force_raw for legacy pmem regions libnvdimm: Fix altmap reservation size calculation crypto: hash - set CRYPTO_TFM_NEED_KEY if ->setkey() fails crypto: arm64/aes-ccm - fix logical bug in AAD MAC handling CIFS: Do not reset lease state to NONE on lease break CIFS: Fix read after write for files with read caching tracing: Use strncpy instead of memcpy for string keys in hist triggers tracing: Do not free iter->trace in fail path of tracing_open_pipe() ACPI / device_sysfs: Avoid OF modalias creation for removed device spi: ti-qspi: Fix mmap read when more than one CS in use spi: pxa2xx: Setup maximum supported DMA transfer length regulator: s2mps11: Fix steps for buck7, buck8 and LDO35 regulator: s2mpa01: Fix step values for some LDOs clocksource/drivers/exynos_mct: Move one-shot check from tick clear to ISR clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown s390/virtio: handle find on invalid queue gracefully scsi: virtio_scsi: don't send sc payload with tmfs scsi: sd: Optimal I/O size should be a multiple of physical block size scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock fs/devpts: always delete dcache dentry-s in dput() splice: don't merge into linked buffers m68k: Add -ffreestanding to CFLAGS btrfs: ensure that a DUP or RAID1 block group has exactly two stripes Btrfs: fix corruption reading shared and compressed extents after hole punching crypto: pcbc - remove bogus memcpy()s with src == dest libertas_tf: don't set URB_ZERO_PACKET on IN USB transfer cpufreq: tegra124: add missing of_node_put() cpufreq: pxa2xx: remove incorrect __init annotation ext4: fix crash during online resizing ext2: Fix underflow in ext2_max_size() clk: clk-twl6040: Fix imprecise external abort for pdmclk clk: ingenic: Fix round_rate misbehaving with non-integer dividers clk: ingenic: Fix doc of ingenic_cgu_div_info nfit: acpi_nfit_ctl(): Check out_obj->type in the right place mm: hwpoison: fix thp split handing in soft_offline_in_use_page() mm/vmalloc: fix size check for remap_vmalloc_range_partial() kernel/sysctl.c: add missing range check in do_proc_dointvec_minmax_conv device property: Fix the length used in PROPERTY_ENTRY_STRING() intel_th: Don't reference unassigned outputs parport_pc: fix find_superio io compare code, should use equal test. i2c: tegra: fix maximum transfer size drm/i915: Relax mmap VMA check serial: uartps: Fix stuck ISR if RX disabled with non-empty FIFO serial: 8250_of: assume reg-shift of 2 for mrvl,mmp-uart 8250: FIX Fourth port offset of Pericom PI7C9X7954 boards serial: 8250_pci: Fix number of ports for ACCES serial cards serial: 8250_pci: Have ACCES cards that use the four port Pericom PI7C9X7954 chip use the pci_pericom_setup() jbd2: clear dirty flag when revoking a buffer from an older transaction jbd2: fix compile warning when using JBUFFER_TRACE powerpc/32: Clear on-stack exception marker upon exception return powerpc/wii: properly disable use of BATs when requested. powerpc/powernv: Make opal log only readable by root powerpc/83xx: Also save/restore SPRG4-7 during suspend powerpc: Fix 32-bit KVM-PR lockup and host crash with MacOS guest powerpc/ptrace: Simplify vr_get/set() to avoid GCC warning ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify dm: fix to_sector() for 32bit NFS: Fix I/O request leakages NFS: Fix an I/O request leakage in nfs_do_recoalesce NFS: Don't recoalesce on error in nfs_pageio_complete_mirror() nfsd: fix memory corruption caused by readdir nfsd: fix wrong check in write_v4_end_grace() PM / wakeup: Rework wakeup source timer cancellation bcache: never writeback a discard operation perf intel-pt: Fix CYC timestamp calculation after OVF perf auxtrace: Define auxtrace record alignment perf intel-pt: Fix overlap calculation for padding perf intel-pt: Fix divide by zero when TSC is not available md: Fix failed allocation of md_register_thread rcu: Do RCU GP kthread self-wakeup from softirq and interrupt media: uvcvideo: Avoid NULL pointer dereference at the end of streaming drm/radeon/evergreen_cs: fix missing break in switch statement KVM: nVMX: Sign extend displacements of VMX instr's mem operands KVM: nVMX: Ignore limit checks on VMX instructions using flat segments KVM: X86: Fix residual mmio emulation request to userspace Linux 4.9.165 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
commit
72b54df9a5
122 changed files with 918 additions and 432 deletions
2
Makefile
2
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
VERSION = 4
|
VERSION = 4
|
||||||
PATCHLEVEL = 9
|
PATCHLEVEL = 9
|
||||||
SUBLEVEL = 164
|
SUBLEVEL = 165
|
||||||
EXTRAVERSION =
|
EXTRAVERSION =
|
||||||
NAME = Roaring Lionus
|
NAME = Roaring Lionus
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,7 @@ __arc_copy_from_user(void *to, const void __user *from, unsigned long n)
|
||||||
*/
|
*/
|
||||||
"=&r" (tmp), "+r" (to), "+r" (from)
|
"=&r" (tmp), "+r" (to), "+r" (from)
|
||||||
:
|
:
|
||||||
: "lp_count", "lp_start", "lp_end", "memory");
|
: "lp_count", "memory");
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
@ -438,7 +438,7 @@ __arc_copy_to_user(void __user *to, const void *from, unsigned long n)
|
||||||
*/
|
*/
|
||||||
"=&r" (tmp), "+r" (to), "+r" (from)
|
"=&r" (tmp), "+r" (to), "+r" (from)
|
||||||
:
|
:
|
||||||
: "lp_count", "lp_start", "lp_end", "memory");
|
: "lp_count", "memory");
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
@ -658,7 +658,7 @@ static inline unsigned long __arc_clear_user(void __user *to, unsigned long n)
|
||||||
" .previous \n"
|
" .previous \n"
|
||||||
: "+r"(d_char), "+r"(res)
|
: "+r"(d_char), "+r"(res)
|
||||||
: "i"(0)
|
: "i"(0)
|
||||||
: "lp_count", "lp_start", "lp_end", "memory");
|
: "lp_count", "memory");
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
@ -691,7 +691,7 @@ __arc_strncpy_from_user(char *dst, const char __user *src, long count)
|
||||||
" .previous \n"
|
" .previous \n"
|
||||||
: "+r"(res), "+r"(dst), "+r"(src), "=r"(val)
|
: "+r"(res), "+r"(dst), "+r"(src), "=r"(val)
|
||||||
: "g"(-EFAULT), "r"(count)
|
: "g"(-EFAULT), "r"(count)
|
||||||
: "lp_count", "lp_start", "lp_end", "memory");
|
: "lp_count", "memory");
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,15 +25,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARC_HAS_LL64
|
#ifdef CONFIG_ARC_HAS_LL64
|
||||||
# define PREFETCH_READ(RX) prefetch [RX, 56]
|
|
||||||
# define PREFETCH_WRITE(RX) prefetchw [RX, 64]
|
|
||||||
# define LOADX(DST,RX) ldd.ab DST, [RX, 8]
|
# define LOADX(DST,RX) ldd.ab DST, [RX, 8]
|
||||||
# define STOREX(SRC,RX) std.ab SRC, [RX, 8]
|
# define STOREX(SRC,RX) std.ab SRC, [RX, 8]
|
||||||
# define ZOLSHFT 5
|
# define ZOLSHFT 5
|
||||||
# define ZOLAND 0x1F
|
# define ZOLAND 0x1F
|
||||||
#else
|
#else
|
||||||
# define PREFETCH_READ(RX) prefetch [RX, 28]
|
|
||||||
# define PREFETCH_WRITE(RX) prefetchw [RX, 32]
|
|
||||||
# define LOADX(DST,RX) ld.ab DST, [RX, 4]
|
# define LOADX(DST,RX) ld.ab DST, [RX, 4]
|
||||||
# define STOREX(SRC,RX) st.ab SRC, [RX, 4]
|
# define STOREX(SRC,RX) st.ab SRC, [RX, 4]
|
||||||
# define ZOLSHFT 4
|
# define ZOLSHFT 4
|
||||||
|
|
@ -41,8 +37,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ENTRY_CFI(memcpy)
|
ENTRY_CFI(memcpy)
|
||||||
prefetch [r1] ; Prefetch the read location
|
|
||||||
prefetchw [r0] ; Prefetch the write location
|
|
||||||
mov.f 0, r2
|
mov.f 0, r2
|
||||||
;;; if size is zero
|
;;; if size is zero
|
||||||
jz.d [blink]
|
jz.d [blink]
|
||||||
|
|
@ -72,8 +66,6 @@ ENTRY_CFI(memcpy)
|
||||||
lpnz @.Lcopy32_64bytes
|
lpnz @.Lcopy32_64bytes
|
||||||
;; LOOP START
|
;; LOOP START
|
||||||
LOADX (r6, r1)
|
LOADX (r6, r1)
|
||||||
PREFETCH_READ (r1)
|
|
||||||
PREFETCH_WRITE (r3)
|
|
||||||
LOADX (r8, r1)
|
LOADX (r8, r1)
|
||||||
LOADX (r10, r1)
|
LOADX (r10, r1)
|
||||||
LOADX (r4, r1)
|
LOADX (r4, r1)
|
||||||
|
|
@ -117,9 +109,7 @@ ENTRY_CFI(memcpy)
|
||||||
lpnz @.Lcopy8bytes_1
|
lpnz @.Lcopy8bytes_1
|
||||||
;; LOOP START
|
;; LOOP START
|
||||||
ld.ab r6, [r1, 4]
|
ld.ab r6, [r1, 4]
|
||||||
prefetch [r1, 28] ;Prefetch the next read location
|
|
||||||
ld.ab r8, [r1,4]
|
ld.ab r8, [r1,4]
|
||||||
prefetchw [r3, 32] ;Prefetch the next write location
|
|
||||||
|
|
||||||
SHIFT_1 (r7, r6, 24)
|
SHIFT_1 (r7, r6, 24)
|
||||||
or r7, r7, r5
|
or r7, r7, r5
|
||||||
|
|
@ -162,9 +152,7 @@ ENTRY_CFI(memcpy)
|
||||||
lpnz @.Lcopy8bytes_2
|
lpnz @.Lcopy8bytes_2
|
||||||
;; LOOP START
|
;; LOOP START
|
||||||
ld.ab r6, [r1, 4]
|
ld.ab r6, [r1, 4]
|
||||||
prefetch [r1, 28] ;Prefetch the next read location
|
|
||||||
ld.ab r8, [r1,4]
|
ld.ab r8, [r1,4]
|
||||||
prefetchw [r3, 32] ;Prefetch the next write location
|
|
||||||
|
|
||||||
SHIFT_1 (r7, r6, 16)
|
SHIFT_1 (r7, r6, 16)
|
||||||
or r7, r7, r5
|
or r7, r7, r5
|
||||||
|
|
@ -204,9 +192,7 @@ ENTRY_CFI(memcpy)
|
||||||
lpnz @.Lcopy8bytes_3
|
lpnz @.Lcopy8bytes_3
|
||||||
;; LOOP START
|
;; LOOP START
|
||||||
ld.ab r6, [r1, 4]
|
ld.ab r6, [r1, 4]
|
||||||
prefetch [r1, 28] ;Prefetch the next read location
|
|
||||||
ld.ab r8, [r1,4]
|
ld.ab r8, [r1,4]
|
||||||
prefetchw [r3, 32] ;Prefetch the next write location
|
|
||||||
|
|
||||||
SHIFT_1 (r7, r6, 8)
|
SHIFT_1 (r7, r6, 8)
|
||||||
or r7, r7, r5
|
or r7, r7, r5
|
||||||
|
|
|
||||||
|
|
@ -1457,6 +1457,7 @@ config NR_CPUS
|
||||||
config HOTPLUG_CPU
|
config HOTPLUG_CPU
|
||||||
bool "Support for hot-pluggable CPUs"
|
bool "Support for hot-pluggable CPUs"
|
||||||
depends on SMP
|
depends on SMP
|
||||||
|
select GENERIC_IRQ_MIGRATION
|
||||||
help
|
help
|
||||||
Say Y here to experiment with turning CPUs off and on. CPUs
|
Say Y here to experiment with turning CPUs off and on. CPUs
|
||||||
can be controlled through /sys/devices/system/cpu.
|
can be controlled through /sys/devices/system/cpu.
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
struct irqaction;
|
struct irqaction;
|
||||||
struct pt_regs;
|
struct pt_regs;
|
||||||
extern void migrate_irqs(void);
|
|
||||||
|
|
||||||
extern void asm_do_IRQ(unsigned int, struct pt_regs *);
|
extern void asm_do_IRQ(unsigned int, struct pt_regs *);
|
||||||
void handle_IRQ(unsigned int, struct pt_regs *);
|
void handle_IRQ(unsigned int, struct pt_regs *);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@
|
||||||
#include <linux/smp.h>
|
#include <linux/smp.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/seq_file.h>
|
#include <linux/seq_file.h>
|
||||||
#include <linux/ratelimit.h>
|
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <linux/list.h>
|
#include <linux/list.h>
|
||||||
#include <linux/kallsyms.h>
|
#include <linux/kallsyms.h>
|
||||||
|
|
@ -119,64 +118,3 @@ int __init arch_probe_nr_irqs(void)
|
||||||
return nr_irqs;
|
return nr_irqs;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_HOTPLUG_CPU
|
|
||||||
static bool migrate_one_irq(struct irq_desc *desc)
|
|
||||||
{
|
|
||||||
struct irq_data *d = irq_desc_get_irq_data(desc);
|
|
||||||
const struct cpumask *affinity = irq_data_get_affinity_mask(d);
|
|
||||||
struct irq_chip *c;
|
|
||||||
bool ret = false;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* If this is a per-CPU interrupt, or the affinity does not
|
|
||||||
* include this CPU, then we have nothing to do.
|
|
||||||
*/
|
|
||||||
if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) {
|
|
||||||
affinity = cpu_online_mask;
|
|
||||||
ret = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
c = irq_data_get_irq_chip(d);
|
|
||||||
if (!c->irq_set_affinity)
|
|
||||||
pr_debug("IRQ%u: unable to set affinity\n", d->irq);
|
|
||||||
else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret)
|
|
||||||
cpumask_copy(irq_data_get_affinity_mask(d), affinity);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The current CPU has been marked offline. Migrate IRQs off this CPU.
|
|
||||||
* If the affinity settings do not allow other CPUs, force them onto any
|
|
||||||
* available CPU.
|
|
||||||
*
|
|
||||||
* Note: we must iterate over all IRQs, whether they have an attached
|
|
||||||
* action structure or not, as we need to get chained interrupts too.
|
|
||||||
*/
|
|
||||||
void migrate_irqs(void)
|
|
||||||
{
|
|
||||||
unsigned int i;
|
|
||||||
struct irq_desc *desc;
|
|
||||||
unsigned long flags;
|
|
||||||
|
|
||||||
local_irq_save(flags);
|
|
||||||
|
|
||||||
for_each_irq_desc(i, desc) {
|
|
||||||
bool affinity_broken;
|
|
||||||
|
|
||||||
raw_spin_lock(&desc->lock);
|
|
||||||
affinity_broken = migrate_one_irq(desc);
|
|
||||||
raw_spin_unlock(&desc->lock);
|
|
||||||
|
|
||||||
if (affinity_broken)
|
|
||||||
pr_warn_ratelimited("IRQ%u no longer affine to CPU%u\n",
|
|
||||||
i, smp_processor_id());
|
|
||||||
}
|
|
||||||
|
|
||||||
local_irq_restore(flags);
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_HOTPLUG_CPU */
|
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,7 @@ int __cpu_disable(void)
|
||||||
/*
|
/*
|
||||||
* OK - migrate IRQs away from this CPU
|
* OK - migrate IRQs away from this CPU
|
||||||
*/
|
*/
|
||||||
migrate_irqs();
|
irq_migrate_all_off_this_cpu();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Flush user cache and TLB mappings, and then remove this CPU
|
* Flush user cache and TLB mappings, and then remove this CPU
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@ static int omap4_dsi_mux_pads(int dsi_id, unsigned lanes)
|
||||||
u32 enable_mask, enable_shift;
|
u32 enable_mask, enable_shift;
|
||||||
u32 pipd_mask, pipd_shift;
|
u32 pipd_mask, pipd_shift;
|
||||||
u32 reg;
|
u32 reg;
|
||||||
|
int ret;
|
||||||
|
|
||||||
if (dsi_id == 0) {
|
if (dsi_id == 0) {
|
||||||
enable_mask = OMAP4_DSI1_LANEENABLE_MASK;
|
enable_mask = OMAP4_DSI1_LANEENABLE_MASK;
|
||||||
|
|
@ -130,7 +131,11 @@ static int omap4_dsi_mux_pads(int dsi_id, unsigned lanes)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
regmap_read(omap4_dsi_mux_syscon, OMAP4_DSIPHY_SYSCON_OFFSET, ®);
|
ret = regmap_read(omap4_dsi_mux_syscon,
|
||||||
|
OMAP4_DSIPHY_SYSCON_OFFSET,
|
||||||
|
®);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
reg &= ~enable_mask;
|
reg &= ~enable_mask;
|
||||||
reg &= ~pipd_mask;
|
reg &= ~pipd_mask;
|
||||||
|
|
|
||||||
|
|
@ -70,16 +70,16 @@ static int osiris_dvs_notify(struct notifier_block *nb,
|
||||||
|
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case CPUFREQ_PRECHANGE:
|
case CPUFREQ_PRECHANGE:
|
||||||
if (old_dvs & !new_dvs ||
|
if ((old_dvs && !new_dvs) ||
|
||||||
cur_dvs & !new_dvs) {
|
(cur_dvs && !new_dvs)) {
|
||||||
pr_debug("%s: exiting dvs\n", __func__);
|
pr_debug("%s: exiting dvs\n", __func__);
|
||||||
cur_dvs = false;
|
cur_dvs = false;
|
||||||
gpio_set_value(OSIRIS_GPIO_DVS, 1);
|
gpio_set_value(OSIRIS_GPIO_DVS, 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CPUFREQ_POSTCHANGE:
|
case CPUFREQ_POSTCHANGE:
|
||||||
if (!old_dvs & new_dvs ||
|
if ((!old_dvs && new_dvs) ||
|
||||||
!cur_dvs & new_dvs) {
|
(!cur_dvs && new_dvs)) {
|
||||||
pr_debug("entering dvs\n");
|
pr_debug("entering dvs\n");
|
||||||
cur_dvs = true;
|
cur_dvs = true;
|
||||||
gpio_set_value(OSIRIS_GPIO_DVS, 0);
|
gpio_set_value(OSIRIS_GPIO_DVS, 0);
|
||||||
|
|
|
||||||
|
|
@ -74,12 +74,13 @@ ENTRY(ce_aes_ccm_auth_data)
|
||||||
beq 10f
|
beq 10f
|
||||||
ext v0.16b, v0.16b, v0.16b, #1 /* rotate out the mac bytes */
|
ext v0.16b, v0.16b, v0.16b, #1 /* rotate out the mac bytes */
|
||||||
b 7b
|
b 7b
|
||||||
8: mov w7, w8
|
8: cbz w8, 91f
|
||||||
|
mov w7, w8
|
||||||
add w8, w8, #16
|
add w8, w8, #16
|
||||||
9: ext v1.16b, v1.16b, v1.16b, #1
|
9: ext v1.16b, v1.16b, v1.16b, #1
|
||||||
adds w7, w7, #1
|
adds w7, w7, #1
|
||||||
bne 9b
|
bne 9b
|
||||||
eor v0.16b, v0.16b, v1.16b
|
91: eor v0.16b, v0.16b, v1.16b
|
||||||
st1 {v0.16b}, [x0]
|
st1 {v0.16b}, [x0]
|
||||||
10: str w8, [x3]
|
10: str w8, [x3]
|
||||||
ret
|
ret
|
||||||
|
|
|
||||||
|
|
@ -535,8 +535,7 @@ set_hcr:
|
||||||
/* GICv3 system register access */
|
/* GICv3 system register access */
|
||||||
mrs x0, id_aa64pfr0_el1
|
mrs x0, id_aa64pfr0_el1
|
||||||
ubfx x0, x0, #24, #4
|
ubfx x0, x0, #24, #4
|
||||||
cmp x0, #1
|
cbz x0, 3f
|
||||||
b.ne 3f
|
|
||||||
|
|
||||||
mrs_s x0, ICC_SRE_EL2
|
mrs_s x0, ICC_SRE_EL2
|
||||||
orr x0, x0, #ICC_SRE_EL2_SRE // Set ICC_SRE_EL2.SRE==1
|
orr x0, x0, #ICC_SRE_EL2_SRE // Set ICC_SRE_EL2.SRE==1
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,10 @@ cpuflags-$(CONFIG_M5206e) := $(call cc-option,-mcpu=5206e,-m5200)
|
||||||
cpuflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200)
|
cpuflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200)
|
||||||
|
|
||||||
KBUILD_AFLAGS += $(cpuflags-y)
|
KBUILD_AFLAGS += $(cpuflags-y)
|
||||||
KBUILD_CFLAGS += $(cpuflags-y) -pipe
|
KBUILD_CFLAGS += $(cpuflags-y)
|
||||||
|
|
||||||
|
KBUILD_CFLAGS += -pipe -ffreestanding
|
||||||
|
|
||||||
ifdef CONFIG_MMU
|
ifdef CONFIG_MMU
|
||||||
# without -fno-strength-reduce the 53c7xx.c driver fails ;-(
|
# without -fno-strength-reduce the 53c7xx.c driver fails ;-(
|
||||||
KBUILD_CFLAGS += -fno-strength-reduce -ffixed-a2
|
KBUILD_CFLAGS += -fno-strength-reduce -ffixed-a2
|
||||||
|
|
|
||||||
|
|
@ -698,6 +698,9 @@ fast_exception_return:
|
||||||
mtcr r10
|
mtcr r10
|
||||||
lwz r10,_LINK(r11)
|
lwz r10,_LINK(r11)
|
||||||
mtlr r10
|
mtlr r10
|
||||||
|
/* Clear the exception_marker on the stack to avoid confusing stacktrace */
|
||||||
|
li r10, 0
|
||||||
|
stw r10, 8(r11)
|
||||||
REST_GPR(10, r11)
|
REST_GPR(10, r11)
|
||||||
mtspr SPRN_SRR1,r9
|
mtspr SPRN_SRR1,r9
|
||||||
mtspr SPRN_SRR0,r12
|
mtspr SPRN_SRR0,r12
|
||||||
|
|
@ -932,6 +935,9 @@ END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX)
|
||||||
mtcrf 0xFF,r10
|
mtcrf 0xFF,r10
|
||||||
mtlr r11
|
mtlr r11
|
||||||
|
|
||||||
|
/* Clear the exception_marker on the stack to avoid confusing stacktrace */
|
||||||
|
li r10, 0
|
||||||
|
stw r10, 8(r1)
|
||||||
/*
|
/*
|
||||||
* Once we put values in SRR0 and SRR1, we are in a state
|
* Once we put values in SRR0 and SRR1, we are in a state
|
||||||
* where exceptions are not recoverable, since taking an
|
* where exceptions are not recoverable, since taking an
|
||||||
|
|
@ -969,6 +975,9 @@ exc_exit_restart_end:
|
||||||
mtlr r11
|
mtlr r11
|
||||||
lwz r10,_CCR(r1)
|
lwz r10,_CCR(r1)
|
||||||
mtcrf 0xff,r10
|
mtcrf 0xff,r10
|
||||||
|
/* Clear the exception_marker on the stack to avoid confusing stacktrace */
|
||||||
|
li r10, 0
|
||||||
|
stw r10, 8(r1)
|
||||||
REST_2GPRS(9, r1)
|
REST_2GPRS(9, r1)
|
||||||
.globl exc_exit_restart
|
.globl exc_exit_restart
|
||||||
exc_exit_restart:
|
exc_exit_restart:
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@ void __giveup_fpu(struct task_struct *tsk)
|
||||||
|
|
||||||
save_fpu(tsk);
|
save_fpu(tsk);
|
||||||
msr = tsk->thread.regs->msr;
|
msr = tsk->thread.regs->msr;
|
||||||
msr &= ~MSR_FP;
|
msr &= ~(MSR_FP|MSR_FE0|MSR_FE1);
|
||||||
#ifdef CONFIG_VSX
|
#ifdef CONFIG_VSX
|
||||||
if (cpu_has_feature(CPU_FTR_VSX))
|
if (cpu_has_feature(CPU_FTR_VSX))
|
||||||
msr &= ~MSR_VSX;
|
msr &= ~MSR_VSX;
|
||||||
|
|
|
||||||
|
|
@ -547,6 +547,7 @@ static int vr_get(struct task_struct *target, const struct user_regset *regset,
|
||||||
/*
|
/*
|
||||||
* Copy out only the low-order word of vrsave.
|
* Copy out only the low-order word of vrsave.
|
||||||
*/
|
*/
|
||||||
|
int start, end;
|
||||||
union {
|
union {
|
||||||
elf_vrreg_t reg;
|
elf_vrreg_t reg;
|
||||||
u32 word;
|
u32 word;
|
||||||
|
|
@ -555,8 +556,10 @@ static int vr_get(struct task_struct *target, const struct user_regset *regset,
|
||||||
|
|
||||||
vrsave.word = target->thread.vrsave;
|
vrsave.word = target->thread.vrsave;
|
||||||
|
|
||||||
|
start = 33 * sizeof(vector128);
|
||||||
|
end = start + sizeof(vrsave);
|
||||||
ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &vrsave,
|
ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &vrsave,
|
||||||
33 * sizeof(vector128), -1);
|
start, end);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
@ -594,6 +597,7 @@ static int vr_set(struct task_struct *target, const struct user_regset *regset,
|
||||||
/*
|
/*
|
||||||
* We use only the first word of vrsave.
|
* We use only the first word of vrsave.
|
||||||
*/
|
*/
|
||||||
|
int start, end;
|
||||||
union {
|
union {
|
||||||
elf_vrreg_t reg;
|
elf_vrreg_t reg;
|
||||||
u32 word;
|
u32 word;
|
||||||
|
|
@ -602,8 +606,10 @@ static int vr_set(struct task_struct *target, const struct user_regset *regset,
|
||||||
|
|
||||||
vrsave.word = target->thread.vrsave;
|
vrsave.word = target->thread.vrsave;
|
||||||
|
|
||||||
|
start = 33 * sizeof(vector128);
|
||||||
|
end = start + sizeof(vrsave);
|
||||||
ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &vrsave,
|
ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &vrsave,
|
||||||
33 * sizeof(vector128), -1);
|
start, end);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
target->thread.vrsave = vrsave.word;
|
target->thread.vrsave = vrsave.word;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,13 +26,13 @@
|
||||||
#define SS_MSR 0x74
|
#define SS_MSR 0x74
|
||||||
#define SS_SDR1 0x78
|
#define SS_SDR1 0x78
|
||||||
#define SS_LR 0x7c
|
#define SS_LR 0x7c
|
||||||
#define SS_SPRG 0x80 /* 4 SPRGs */
|
#define SS_SPRG 0x80 /* 8 SPRGs */
|
||||||
#define SS_DBAT 0x90 /* 8 DBATs */
|
#define SS_DBAT 0xa0 /* 8 DBATs */
|
||||||
#define SS_IBAT 0xd0 /* 8 IBATs */
|
#define SS_IBAT 0xe0 /* 8 IBATs */
|
||||||
#define SS_TB 0x110
|
#define SS_TB 0x120
|
||||||
#define SS_CR 0x118
|
#define SS_CR 0x128
|
||||||
#define SS_GPREG 0x11c /* r12-r31 */
|
#define SS_GPREG 0x12c /* r12-r31 */
|
||||||
#define STATE_SAVE_SIZE 0x16c
|
#define STATE_SAVE_SIZE 0x17c
|
||||||
|
|
||||||
.section .data
|
.section .data
|
||||||
.align 5
|
.align 5
|
||||||
|
|
@ -103,6 +103,16 @@ _GLOBAL(mpc83xx_enter_deep_sleep)
|
||||||
stw r7, SS_SPRG+12(r3)
|
stw r7, SS_SPRG+12(r3)
|
||||||
stw r8, SS_SDR1(r3)
|
stw r8, SS_SDR1(r3)
|
||||||
|
|
||||||
|
mfspr r4, SPRN_SPRG4
|
||||||
|
mfspr r5, SPRN_SPRG5
|
||||||
|
mfspr r6, SPRN_SPRG6
|
||||||
|
mfspr r7, SPRN_SPRG7
|
||||||
|
|
||||||
|
stw r4, SS_SPRG+16(r3)
|
||||||
|
stw r5, SS_SPRG+20(r3)
|
||||||
|
stw r6, SS_SPRG+24(r3)
|
||||||
|
stw r7, SS_SPRG+28(r3)
|
||||||
|
|
||||||
mfspr r4, SPRN_DBAT0U
|
mfspr r4, SPRN_DBAT0U
|
||||||
mfspr r5, SPRN_DBAT0L
|
mfspr r5, SPRN_DBAT0L
|
||||||
mfspr r6, SPRN_DBAT1U
|
mfspr r6, SPRN_DBAT1U
|
||||||
|
|
@ -493,6 +503,16 @@ mpc83xx_deep_resume:
|
||||||
mtspr SPRN_IBAT7U, r6
|
mtspr SPRN_IBAT7U, r6
|
||||||
mtspr SPRN_IBAT7L, r7
|
mtspr SPRN_IBAT7L, r7
|
||||||
|
|
||||||
|
lwz r4, SS_SPRG+16(r3)
|
||||||
|
lwz r5, SS_SPRG+20(r3)
|
||||||
|
lwz r6, SS_SPRG+24(r3)
|
||||||
|
lwz r7, SS_SPRG+28(r3)
|
||||||
|
|
||||||
|
mtspr SPRN_SPRG4, r4
|
||||||
|
mtspr SPRN_SPRG5, r5
|
||||||
|
mtspr SPRN_SPRG6, r6
|
||||||
|
mtspr SPRN_SPRG7, r7
|
||||||
|
|
||||||
lwz r4, SS_SPRG+0(r3)
|
lwz r4, SS_SPRG+0(r3)
|
||||||
lwz r5, SS_SPRG+4(r3)
|
lwz r5, SS_SPRG+4(r3)
|
||||||
lwz r6, SS_SPRG+8(r3)
|
lwz r6, SS_SPRG+8(r3)
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,10 @@ unsigned long __init wii_mmu_mapin_mem2(unsigned long top)
|
||||||
/* MEM2 64MB@0x10000000 */
|
/* MEM2 64MB@0x10000000 */
|
||||||
delta = wii_hole_start + wii_hole_size;
|
delta = wii_hole_start + wii_hole_size;
|
||||||
size = top - delta;
|
size = top - delta;
|
||||||
|
|
||||||
|
if (__map_without_bats)
|
||||||
|
return delta;
|
||||||
|
|
||||||
for (bl = 128<<10; bl < max_size; bl <<= 1) {
|
for (bl = 128<<10; bl < max_size; bl <<= 1) {
|
||||||
if (bl * 2 > size)
|
if (bl * 2 > size)
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ static ssize_t opal_msglog_read(struct file *file, struct kobject *kobj,
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct bin_attribute opal_msglog_attr = {
|
static struct bin_attribute opal_msglog_attr = {
|
||||||
.attr = {.name = "msglog", .mode = 0444},
|
.attr = {.name = "msglog", .mode = 0400},
|
||||||
.read = opal_msglog_read
|
.read = opal_msglog_read
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5965,6 +5965,7 @@ static int handle_external_interrupt(struct kvm_vcpu *vcpu)
|
||||||
static int handle_triple_fault(struct kvm_vcpu *vcpu)
|
static int handle_triple_fault(struct kvm_vcpu *vcpu)
|
||||||
{
|
{
|
||||||
vcpu->run->exit_reason = KVM_EXIT_SHUTDOWN;
|
vcpu->run->exit_reason = KVM_EXIT_SHUTDOWN;
|
||||||
|
vcpu->mmio_needed = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -7046,6 +7047,10 @@ static int get_vmx_mem_address(struct kvm_vcpu *vcpu,
|
||||||
/* Addr = segment_base + offset */
|
/* Addr = segment_base + offset */
|
||||||
/* offset = base + [index * scale] + displacement */
|
/* offset = base + [index * scale] + displacement */
|
||||||
off = exit_qualification; /* holds the displacement */
|
off = exit_qualification; /* holds the displacement */
|
||||||
|
if (addr_size == 1)
|
||||||
|
off = (gva_t)sign_extend64(off, 31);
|
||||||
|
else if (addr_size == 0)
|
||||||
|
off = (gva_t)sign_extend64(off, 15);
|
||||||
if (base_is_valid)
|
if (base_is_valid)
|
||||||
off += kvm_register_read(vcpu, base_reg);
|
off += kvm_register_read(vcpu, base_reg);
|
||||||
if (index_is_valid)
|
if (index_is_valid)
|
||||||
|
|
@ -7088,10 +7093,16 @@ static int get_vmx_mem_address(struct kvm_vcpu *vcpu,
|
||||||
/* Protected mode: #GP(0)/#SS(0) if the segment is unusable.
|
/* Protected mode: #GP(0)/#SS(0) if the segment is unusable.
|
||||||
*/
|
*/
|
||||||
exn = (s.unusable != 0);
|
exn = (s.unusable != 0);
|
||||||
/* Protected mode: #GP(0)/#SS(0) if the memory
|
|
||||||
* operand is outside the segment limit.
|
/*
|
||||||
|
* Protected mode: #GP(0)/#SS(0) if the memory operand is
|
||||||
|
* outside the segment limit. All CPUs that support VMX ignore
|
||||||
|
* limit checks for flat segments, i.e. segments with base==0,
|
||||||
|
* limit==0xffffffff and of type expand-up data or code.
|
||||||
*/
|
*/
|
||||||
exn = exn || (off + sizeof(u64) > s.limit);
|
if (!(s.base == 0 && s.limit == 0xffffffff &&
|
||||||
|
((s.type & 8) || !(s.type & 4))))
|
||||||
|
exn = exn || (off + sizeof(u64) > s.limit);
|
||||||
}
|
}
|
||||||
if (exn) {
|
if (exn) {
|
||||||
kvm_queue_exception_e(vcpu,
|
kvm_queue_exception_e(vcpu,
|
||||||
|
|
|
||||||
|
|
@ -6769,6 +6769,7 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
|
||||||
}
|
}
|
||||||
if (kvm_check_request(KVM_REQ_TRIPLE_FAULT, vcpu)) {
|
if (kvm_check_request(KVM_REQ_TRIPLE_FAULT, vcpu)) {
|
||||||
vcpu->run->exit_reason = KVM_EXIT_SHUTDOWN;
|
vcpu->run->exit_reason = KVM_EXIT_SHUTDOWN;
|
||||||
|
vcpu->mmio_needed = 0;
|
||||||
r = 0;
|
r = 0;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue