Linux 4.8.11
Greg KH
maintainerI'm announcing the release of the 4.8.11 kernel.
All users of the 4.8 kernel series must upgrade.
The updated 4.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.8.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 8 - arch/arm/boot/dts/imx53-qsb.dts | 14 +- arch/arm64/include/asm/perf_event.h | 10 + arch/arm64/kernel/perf_event.c | 10 - arch/arm64/kvm/sys_regs.c | 10 + arch/powerpc/kernel/setup_64.c | 20 ++- arch/x86/kernel/cpu/amd.c | 6 - arch/x86/kvm/x86.c | 16 ++ arch/x86/purgatory/Makefile | 1 drivers/base/power/main.c | 8 - drivers/clk/imx/clk-pllv3.c | 8 + drivers/clk/mmp/clk-of-mmp2.c | 2 drivers/clk/mmp/clk-of-pxa168.c | 2 drivers/clk/mmp/clk-of-pxa910.c | 4 drivers/crypto/caam/caamalg.c | 9 + drivers/gpio/gpio-pca953x.c | 3 drivers/gpio/gpiolib.c | 7 - drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | 20 +++ drivers/gpu/drm/i915/intel_bios.c | 30 +++-- drivers/gpu/drm/i915/intel_dp.c | 10 - drivers/gpu/drm/i915/intel_vbt_defs.h | 3 drivers/i2c/Kconfig | 1 drivers/i2c/muxes/Kconfig | 1 drivers/i2c/muxes/i2c-mux-pca954x.c | 4 drivers/infiniband/core/cm.c | 126 +++++++++++++++++++--- drivers/infiniband/core/umem.c | 2 drivers/infiniband/core/uverbs_main.c | 7 - drivers/infiniband/hw/hfi1/rc.c | 2 drivers/infiniband/hw/hfi1/user_sdma.c | 2 drivers/infiniband/hw/mlx4/ah.c | 5 drivers/infiniband/hw/mlx4/cq.c | 5 drivers/infiniband/hw/mlx5/cq.c | 3 drivers/infiniband/hw/mlx5/main.c | 11 + drivers/infiniband/hw/mlx5/qp.c | 12 +- drivers/infiniband/sw/rdmavt/dma.c | 3 drivers/infiniband/sw/rxe/rxe_net.c | 8 - drivers/infiniband/sw/rxe/rxe_qp.c | 2 drivers/infiniband/sw/rxe/rxe_queue.c | 9 + drivers/infiniband/sw/rxe/rxe_queue.h | 2 drivers/infiniband/sw/rxe/rxe_req.c | 21 ++- drivers/mfd/intel-lpss.c | 3 drivers/mfd/mfd-core.c | 2 drivers/mfd/stmpe.c | 2 drivers/net/virtio_net.c | 30 +++-- drivers/net/wireless/intel/iwlwifi/mvm/d3.c | 44 +++++-- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 3 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 1 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 1 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 3 drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 33 ++++- drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 79 ++++++++----- drivers/net/wireless/intel/iwlwifi/pcie/tx.c | 8 + drivers/rtc/rtc-omap.c | 6 - drivers/uwb/lc-rc.c | 16 ++ drivers/uwb/pal.c | 2 fs/ext4/ext4.h | 1 fs/ext4/super.c | 17 ++ fs/fuse/file.c | 6 + include/linux/sunrpc/svc_xprt.h | 1 kernel/irq/manage.c | 4 kernel/power/suspend_test.c | 4 kernel/trace/Makefile | 4 kernel/trace/ftrace.c | 24 ++++ mm/Makefile | 3 net/can/bcm.c | 32 ++++- net/netfilter/nft_dynset.c | 6 - net/sunrpc/svc_xprt.c | 11 - net/sunrpc/svcsock.c | 21 +++ net/sunrpc/xprtrdma/svc_rdma_transport.c | 6 + scripts/gcc-x86_64-has-stack-protector.sh | 2 sound/pci/hda/patch_realtek.c | 2 sound/pci/hda/thinkpad_helper.c | 3 sound/usb/card.c | 3 tools/perf/util/hist.c | 12 +- virt/kvm/arm/pmu.c | 8 - 77 files changed, 595 insertions(+), 238 deletions(-)
Alex Hemme (1):
i2c: i2c-mux-pca954x: fix deselect enabling for device-tree
Alexei Starovoitov (1):
ftrace: Ignore FTRACE_FL_DISABLED while walking dyn_ftrace records
Anders K. Pedersen (1):
netfilter: nft_dynset: fix element timeout for HZ != 1000
Azhar Shaikh (1):
mfd: intel-lpss: Do not put device in reset state on suspend
Benjamin Herrenschmidt (1):
powerpc/64: Fix setting of AIL in hypervisor mode
Borislav Petkov (1):
kbuild: Steal gcc's pie from the very beginning
Brian Norris (1):
PM / sleep: don't suspend parent when async child suspend_{noirq, late} fails
Daniel Jurgens (2):
IB/mlx4: Check gid_index return value IB/mlx5: Use cache line size to select CQE stride
Dennis Dalessandro (2):
IB/rdmavt: rdmavt can handle non aligned page maps IB/hfi1: Remove incorrect IS_ERR check
Eli Cohen (2):
IB/mlx5: Fix fatal error dispatching IB/mlx5: Fix NULL pointer dereference on debug print
Emil Lundmark (1):
clk: imx: fix integer overflow in AV PLL round rate
Fabio Estevam (1):
ARM: dts: imx53-qsb: Fix regulator constraints
Greg Kroah-Hartman (1):
Linux 4.8.11
Hui Wang (1):
ALSA: hda - add a new condition to check if it is thinkpad
Ignacio Alvarado (1):
KVM: Disable irq while unregistering user notifier
Ira Weiny (1):
IB/hfi1: Fix rnr_timer addition
Johan Hovold (3):
mfd: core: Fix device reference leak in mfd_clone_cell
uwb: fix device reference leaks
PM / sleep: fix device reference leak in test_suspend
Johannes Berg (1):
iwlwifi: pcie: mark command queue lock with separate lockdep class
Linus Torvalds (1):
Disable the __builtin_return_address() warning globally after all
Linus Walleij (3):
mfd: stmpe: Fix RESET regression on STMPE2401
gpio: do not double-check direction on sleeping chips
i2c: mux: fix up dependencies
Lokesh Vutla (1):
rtc: omap: Fix selecting external osc
Luca Coelho (3):
iwlwifi: pcie: fix SPLC structure parsing
iwlwifi: mvm: fix netdetect starting/stopping for unified images
iwlwifi: mvm: fix d3_test with unified D0/D3 images
Majd Dibbiny (1):
IB/mlx5: Fix memory leak in query device
Maor Gottlieb (1):
IB/mlx5: Validate requested RQT size
Mario Kleiner (1):
drm/amdgpu: Attach exclusive fence to prime exported bo's. (v5)
Mark Bloch (2):
IB/core: Avoid unsigned int overflow in sg_alloc_table IB/cm: Mark stale CM id's whenever the mad agent was unregistered
Matan Barak (1):
IB/mlx4: Fix create CQ error flow
Michael S. Tsirkin (1):
virtio-net: drop legacy features in virtio 1 mode
Miklos Szeredi (1):
fuse: fix fuse_write_end() if zero bytes were copied
Namhyung Kim (1):
perf hists: Fix column length on --hierarchy
Oliver Hartkopp (1):
can: bcm: fix warning in bcm_connect/proc_register
Paolo Bonzini (1):
KVM: x86: fix missed SRCU usage in kvm_lapic_set_vapic_addr
Phil Reid (2):
gpio: pca953x: Move memcpy into mutex lock for set multiple
gpio: pca953x: Fix corruption of other gpios in set_multiple.
Sara Sharon (1):
iwlwifi: mvm: wake the wait queue when the RX sync counter is zero
Scott Mayhew (1):
sunrpc: svc_age_temp_xprts_now should not call setsockopt non-tcp transports
Sebastian Andrzej Siewior (3):
kbuild: add -fno-PIE
scripts/has-stack-protector: add -fno-PIE
x86/kexec: add -fno-PIE
Steven Rostedt (Red Hat) (1):
ftrace: Add more checks for FTRACE_FL_DISABLED in processing ip records
Sven Ebenfeld (1):
crypto: caam - do not register AES-XTS mode on LP units
Takashi Iwai (2):
ALSA: usb-audio: Fix use-after-free of usb_device at disconnect
ALSA: hda - Fix mic regression by ASRock mobo fixup
Tariq Toukan (1):
IB/uverbs: Fix leak of XRC target QPs
Theodore Ts'o (1):
ext4: sanity check the block and cluster size at mount time
Thomas Gleixner (1):
genirq: Use irq type from irqdata instead of irqdesc
Ville Syrjälä (2):
drm/i915: Refresh that status of MST capable connectors in ->detect() drm/i915: Assume non-DP++ port if dvo_port is HDMI and there's no AUX ch specified in the VBT
Wei Huang (2):
arm64: KVM: pmu: Fix AArch32 cycle counter access
KVM: arm64: Fix the issues when guest PMCCFILTR is configured
Wei Yongjun (3):
clk: mmp: pxa910: fix return value check in pxa910_clk_init()
clk: mmp: pxa168: fix return value check in pxa168_clk_init()
clk: mmp: mmp2: fix return value check in mmp2_clk_init()
Yazen Ghannam (1):
x86/cpu/AMD: Fix cpu_llc_id for AMD Fam17h systems
Yonatan Cohen (4):
IB/rxe: Update qp state for user query
IB/rxe: Fix kernel panic in UDP tunnel with GRO and RX checksum IB/rxe: Fix handling of erroneous WR
IB/rxe: Clear queue buffer when modifying QP to reset
Greg KH
maintainerMakefile +5 -3
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 8 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = NAME = Psychotic Stoned Sheep
@@ -399,11 +399,12 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common \ -Werror-implicit-function-declaration \ -Wno-format-security \ - -std=gnu89 + -std=gnu89 $(call cc-option,-fno-PIE) + KBUILD_AFLAGS_KERNEL := KBUILD_CFLAGS_KERNEL := -KBUILD_AFLAGS := -D__ASSEMBLY__ +KBUILD_AFLAGS := -D__ASSEMBLY__ $(call cc-option,-fno-PIE) KBUILD_AFLAGS_MODULE := -DMODULE KBUILD_CFLAGS_MODULE := -DMODULE KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
@@ -621,6 +622,7 @@ include arch/$(SRCARCH)/Makefile KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,) +KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += -Os
arch/arm/boot/dts/imx53-qsb.dts +7 -7
@@ -64,8 +64,8 @@ }; ldo3_reg: ldo3 { - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; + regulator-min-microvolt = <1725000>; + regulator-max-microvolt = <3300000>; regulator-always-on; };
@@ -76,8 +76,8 @@ }; ldo5_reg: ldo5 { - regulator-min-microvolt = <1725000>; - regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3600000>; regulator-always-on; };
@@ -100,14 +100,14 @@ }; ldo9_reg: ldo9 { - regulator-min-microvolt = <1200000>; + regulator-min-microvolt = <1250000>; regulator-max-microvolt = <3600000>; regulator-always-on; }; ldo10_reg: ldo10 { - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <3650000>; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3600000>; regulator-always-on; }; };
arch/arm64/include/asm/perf_event.h +9 -1
@@ -46,7 +46,15 @@#define ARMV8_PMU_EVTYPE_MASK 0xc800ffff/* Mask for writable bits */ #define ARMV8_PMU_EVTYPE_EVENT 0xffff/* Mask for EVENT bits */ -#define ARMV8_PMU_EVTYPE_EVENT_SW_INCR 0/* Software increment event */ +/* +* PMUv3 event types: required events +*/ +#define ARMV8_PMUV3_PERFCTR_SW_INCR 0x00 +#define ARMV8_PMUV3_PERFCTR_L1D_CACHE_REFILL 0x03 +#define ARMV8_PMUV3_PERFCTR_L1D_CACHE 0x04 +#define ARMV8_PMUV3_PERFCTR_BR_MIS_PRED 0x10 +#define ARMV8_PMUV3_PERFCTR_CPU_CYCLES 0x11 +#define ARMV8_PMUV3_PERFCTR_BR_PRED 0x12/* * Event filters for PMUv3
arch/arm64/kernel/perf_event.c +1 -9
@@ -30,17 +30,9 @@/* * ARMv8 PMUv3 Performance Events handling code. -* Common event types. +* Common event types (some are defined in asm/perf_event.h). */ -/* Required events. */ -#define ARMV8_PMUV3_PERFCTR_SW_INCR 0x00 -#define ARMV8_PMUV3_PERFCTR_L1D_CACHE_REFILL 0x03 -#define ARMV8_PMUV3_PERFCTR_L1D_CACHE 0x04 -#define ARMV8_PMUV3_PERFCTR_BR_MIS_PRED 0x10 -#define ARMV8_PMUV3_PERFCTR_CPU_CYCLES 0x11 -#define ARMV8_PMUV3_PERFCTR_BR_PRED 0x12 -/* At least one of the following is required. */ #define ARMV8_PMUV3_PERFCTR_INST_RETIRED 0x08#define ARMV8_PMUV3_PERFCTR_INST_SPEC 0x1B
arch/arm64/kvm/sys_regs.c +8 -2
@@ -602,8 +602,14 @@ static bool access_pmu_evcntr(struct kvm_vcpu *vcpu, idx =ARMV8_PMU_CYCLE_IDX ; }else { -BUG (); +return false; } + }else if (r->CRn ==0 && r->CRm ==9 ) { +/* PMCCNTR */ +if (pmu_access_event_counter_el0_disabled (vcpu)) +return false; + + idx =ARMV8_PMU_CYCLE_IDX ; }else if (r->CRn ==14 && (r->CRm &12 ) ==8 ) {/* PMEVCNTRn_EL0 */ if (pmu_access_event_counter_el0_disabled (vcpu))
@@ -611,7 +617,7 @@ static bool access_pmu_evcntr(struct kvm_vcpu *vcpu, idx = ((r->CRm &3 ) <<3 ) | (r->Op2 &7 ); }else { -BUG (); +return false; }if (!pmu_counter_idx_valid (vcpu, idx))
arch/powerpc/kernel/setup_64.c +14 -6
@@ -226,17 +226,25 @@ static void __init configure_exceptions(void)if (firmware_has_feature (FW_FEATURE_OPAL ))opal_configure_cores (); -/* Enable AIL if supported, and we are in hypervisor mode */ -if (early_cpu_has_feature (CPU_FTR_HVMODE ) && -early_cpu_has_feature (CPU_FTR_ARCH_207S )) { -unsigned long lpcr =mfspr (SPRN_LPCR ); -mtspr (SPRN_LPCR , lpcr |LPCR_AIL_3 ); - } +/* AIL on native is done in cpu_ready_for_interrupts() */ } }static void cpu_ready_for_interrupts (void ) { +/* +* Enable AIL if supported, and we are in hypervisor mode. This +* is called once for every processor. +* +* If we are not in hypervisor mode the job is done once for +* the whole partition in configure_exceptions(). +*/ +if (early_cpu_has_feature (CPU_FTR_HVMODE ) && +early_cpu_has_feature (CPU_FTR_ARCH_207S )) { +unsigned long lpcr =mfspr (SPRN_LPCR ); +mtspr (SPRN_LPCR , lpcr |LPCR_AIL_3 ); + } +/* Set IR and DR in PACA MSR */ get_paca ()->kernel_msr =MSR_KERNEL ; }
arch/x86/kernel/cpu/amd.c +1 -5
@@ -347,7 +347,6 @@ static void amd_detect_cmp(struct cpuinfo_x86 *c)#ifdef CONFIG_SMP unsigned bits;int cpu =smp_processor_id (); -unsigned int socket_id, core_complex_id; bits = c->x86_coreid_bits;/* Low order bits define the core id (index of core in socket) */
@@ -365,10 +364,7 @@ static void amd_detect_cmp(struct cpuinfo_x86 *c)if (c->x86 !=0x17 || !cpuid_edx (0x80000006 ))return ; - socket_id = (c->apicid >> bits) -1 ; - core_complex_id = (c->apicid & ((1 << bits) -1 )) >>3 ; - -per_cpu (cpu_llc_id, cpu) = (socket_id <<3 ) | core_complex_id; +per_cpu (cpu_llc_id, cpu) = c->apicid >>3 ;#endif }
arch/x86/kvm/x86.c +14 -2
@@ -210,7 +210,18 @@ static void kvm_on_user_return(struct user_return_notifier *urn)struct kvm_shared_msrs *locals = container_of(urn, struct kvm_shared_msrs, urn);struct kvm_shared_msr_values *values; +unsigned long flags; +/* +* Disabling irqs at this point since the following code could be +* interrupted and executed through kvm_arch_hardware_disable() +*/ +local_irq_save (flags); +if (locals->registered) { + locals->registered = false; +user_return_notifier_unregister (urn); + } +local_irq_restore (flags);for (slot =0 ; slot < shared_msrs_global.nr; ++slot) { values = &locals->values[slot];if (values->host != values->curr) {
@@ -218,8 +229,6 @@ static void kvm_on_user_return(struct user_return_notifier *urn) values->curr = values->host; } } - locals->registered = false; -user_return_notifier_unregister (urn); }static void shared_msr_update (unsigned slot,u32 msr)
@@ -3372,6 +3381,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp, };case KVM_SET_VAPIC_ADDR : {struct kvm_vapic_addr va; +int idx; r = -EINVAL ;if (!lapic_in_kernel (vcpu))
@@ -3379,7 +3389,9 @@ long kvm_arch_vcpu_ioctl(struct file *filp, r = -EFAULT ;if (copy_from_user (&va, argp,sizeof va)) goto out; + idx =srcu_read_lock (&vcpu->kvm->srcu); r =kvm_lapic_set_vapic_addr (vcpu, va.vapic_addr); +srcu_read_unlock (&vcpu->kvm->srcu, idx);break ; }case KVM_X86_SETUP_MCE : {
arch/x86/purgatory/Makefile +1 -0
@@ -16,6 +16,7 @@ KCOV_INSTRUMENT := n KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -fno-builtin -ffreestanding -c -MD -Os -mcmodel=large KBUILD_CFLAGS += -m$(BITS) +KBUILD_CFLAGS += $(call cc-option,-fno-PIE) $(obj)/purgatory.ro: $(PURGATORY_OBJS) FORCE $(call if_changed,ld)
drivers/base/power/main.c +4 -4
@@ -1027,6 +1027,8 @@ static int __device_suspend_noirq(struct device *dev, pm_message_t state, bool aTRACE_DEVICE (dev);TRACE_SUSPEND (0 ); +dpm_wait_for_children (dev, async); +if (async_error) goto Complete;
@@ -1038,8 +1040,6 @@ static int __device_suspend_noirq(struct device *dev, pm_message_t state, bool aif (dev->power.syscore || dev->power.direct_complete) goto Complete; -dpm_wait_for_children (dev, async); -if (dev->pm_domain) { info ="noirq power domain " ; callback =pm_noirq_op (&dev->pm_domain->ops, state);
@@ -1174,6 +1174,8 @@ static int __device_suspend_late(struct device *dev, pm_message_t state, bool as__pm_runtime_disable (dev, false); +dpm_wait_for_children (dev, async); +if (async_error) goto Complete;
@@ -1185,8 +1187,6 @@ static int __device_suspend_late(struct device *dev, pm_message_t state, bool asif (dev->power.syscore || dev->power.direct_complete) goto Complete; -dpm_wait_for_children (dev, async); -if (dev->pm_domain) { info ="late power domain " ; callback =pm_late_early_op (&dev->pm_domain->ops, state);
drivers/clk/imx/clk-pllv3.c +6 -2
@@ -223,7 +223,7 @@ static unsigned long clk_pllv3_av_recalc_rate(struct clk_hw *hw, temp64 *= mfn;do_div (temp64, mfd); -return (parent_rate * div) + (u32 )temp64; +return parent_rate * div + (unsigned long )temp64; } static long clk_pllv3_av_round_rate(struct clk_hw *hw, unsigned long rate,
@@ -247,7 +247,11 @@ static long clk_pllv3_av_round_rate(struct clk_hw *hw, unsigned long rate,do_div (temp64, parent_rate); mfn = temp64; -return parent_rate * div + parent_rate * mfn / mfd; + temp64 = (u64 )parent_rate; + temp64 *= mfn; +do_div (temp64, mfd); + +return parent_rate * div + (unsigned long )temp64; } static int clk_pllv3_av_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/clk/mmp/clk-of-mmp2.c +1 -1
@@ -313,7 +313,7 @@ static void __init mmp2_clk_init(struct device_node *np) } pxa_unit->apmu_base =of_iomap (np,1 ); -if (!pxa_unit->mpmu_base) { +if (!pxa_unit->apmu_base) {pr_err ("failed to map apmu registers\n" );return ; }
drivers/clk/mmp/clk-of-pxa168.c +1 -1
@@ -262,7 +262,7 @@ static void __init pxa168_clk_init(struct device_node *np) } pxa_unit->apmu_base =of_iomap (np,1 ); -if (!pxa_unit->mpmu_base) { +if (!pxa_unit->apmu_base) {pr_err ("failed to map apmu registers\n" );return ; }
drivers/clk/mmp/clk-of-pxa910.c +2 -2
@@ -282,7 +282,7 @@ static void __init pxa910_clk_init(struct device_node *np) } pxa_unit->apmu_base =of_iomap (np,1 ); -if (!pxa_unit->mpmu_base) { +if (!pxa_unit->apmu_base) {pr_err ("failed to map apmu registers\n" );return ; }
@@ -294,7 +294,7 @@ static void __init pxa910_clk_init(struct device_node *np) } pxa_unit->apbcp_base =of_iomap (np,3 ); -if (!pxa_unit->mpmu_base) { +if (!pxa_unit->apbcp_base) {pr_err ("failed to map apbcp registers\n" );return ; }
drivers/crypto/caam/caamalg.c +9 -0
@@ -4542,6 +4542,15 @@ static int __init caam_algapi_init(void)if (!aes_inst && (alg_sel ==OP_ALG_ALGSEL_AES ))continue ; +/* +* Check support for AES modes not available +* on LP devices. +*/ +if ((cha_vid &CHA_ID_LS_AES_MASK ) ==CHA_ID_LS_AES_LP ) +if ((alg->class1_alg_type &OP_ALG_AAI_MASK ) == +OP_ALG_AAI_XTS ) +continue ; + t_alg =caam_alg_alloc (alg);if (IS_ERR (t_alg)) { err =PTR_ERR (t_alg);
drivers/gpio/gpio-pca953x.c +2 -1
@@ -372,14 +372,15 @@ static void pca953x_gpio_set_multiple(struct gpio_chip *gc,break ; } -memcpy (reg_val, chip->reg_output,NBANK (chip));mutex_lock (&chip->i2c_lock); +memcpy (reg_val, chip->reg_output,NBANK (chip));for (bank=0 ; bank<NBANK (chip); bank++) {unsigned bankmask = mask[bank /sizeof (*mask)] >> ((bank %sizeof (*mask)) *8 );if (bankmask) {unsigned bankval = bits[bank /sizeof (*bits)] >> ((bank %sizeof (*bits)) *8 ); + bankval &= bankmask; reg_val[bank] = (reg_val[bank] & ~bankmask) | bankval; } }
drivers/gpio/gpiolib.c +5 -2
@@ -2667,8 +2667,11 @@ int gpiochip_lock_as_irq(struct gpio_chip *chip, unsigned int offset)if (IS_ERR (desc))return PTR_ERR (desc); -/* Flush direction if something changed behind our back */ -if (chip->get_direction) { +/* +* If it's fast: flush the direction setting if something changed +* behind our back +*/ +if (!chip->can_sleep && chip->get_direction) {int dir = chip->get_direction (chip, offset);if (dir)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
@@ -492,6 +492,7 @@ struct amdgpu_bo {u64 metadata_flags;void *metadata;u32 metadata_size; +unsigned prime_shared_count;/* list of all virtual address to which this bo * is associated to */
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +1 -1
@@ -132,7 +132,7 @@ static int amdgpu_bo_list_set(struct amdgpu_device *adev, entry->priority =min (info[i].bo_priority,AMDGPU_BO_LIST_MAX_PRIORITY ); entry->tv.bo = &entry->robj->tbo; - entry->tv.shared = true; + entry->tv.shared = !entry->robj->prime_shared_count;if (entry->robj->prefered_domains ==AMDGPU_GEM_DOMAIN_GDS ) gds_obj = entry->robj;
drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c +19 -1
@@ -74,20 +74,36 @@ amdgpu_gem_prime_import_sg_table(struct drm_device *dev,if (ret)return ERR_PTR (ret); + bo->prime_shared_count =1 ;return &bo->gem_base; }int amdgpu_gem_prime_pin (struct drm_gem_object *obj) {struct amdgpu_bo *bo =gem_to_amdgpu_bo (obj); -int ret =0 ; +long ret =0 ; ret =amdgpu_bo_reserve (bo, false);if (unlikely (ret !=0 ))return ret; +/* +* Wait for all shared fences to complete before we switch to future +* use of exclusive fence on this prime shared bo. +*/ + ret =reservation_object_wait_timeout_rcu (bo->tbo.resv, true, false, +MAX_SCHEDULE_TIMEOUT ); +if (unlikely (ret <0 )) { +DRM_DEBUG_PRIME ("Fence wait failed: %li\n" , ret); +amdgpu_bo_unreserve (bo); +return ret; + } +/* pin buffer into GTT */ ret =amdgpu_bo_pin (bo,AMDGPU_GEM_DOMAIN_GTT ,NULL ); +if (likely (ret ==0 )) + bo->prime_shared_count++; +amdgpu_bo_unreserve (bo);return ret; }
@@ -102,6 +118,8 @@ void amdgpu_gem_prime_unpin(struct drm_gem_object *obj)return ;amdgpu_bo_unpin (bo); +if (bo->prime_shared_count) + bo->prime_shared_count--;amdgpu_bo_unreserve (bo); }
drivers/gpu/drm/i915/intel_bios.c +22 -8
@@ -1143,7 +1143,7 @@ static void parse_ddi_port(struct drm_i915_private *dev_priv, enum port port,if (!child)return ; - aux_channel = child->raw[25 ]; + aux_channel = child->common.aux_channel; ddc_pin = child->common.ddc_pin; is_dvi = child->common.device_type &DEVICE_TYPE_TMDS_DVI_SIGNALING ;
@@ -1673,7 +1673,8 @@ bool intel_bios_is_port_edp(struct drm_i915_private *dev_priv, enum port port)return false; } -bool intel_bios_is_port_dp_dual_mode (struct drm_i915_private *dev_priv,enum port port) +static bool child_dev_is_dp_dual_mode (const union child_device_config *p_child, +enum port port) { static const struct { u16 dp, hdmi;
@@ -1687,22 +1688,35 @@ bool intel_bios_is_port_dp_dual_mode(struct drm_i915_private *dev_priv, enum por [PORT_D] = { DVO_PORT_DPD, DVO_PORT_HDMID, }, [PORT_E] = { DVO_PORT_DPE, DVO_PORT_HDMIE, }, }; -int i;if (port ==PORT_A || port >=ARRAY_SIZE (port_mapping))return false; -if (!dev_priv->vbt.child_dev_num) +if ((p_child->common.device_type &DEVICE_TYPE_DP_DUAL_MODE_BITS ) != + (DEVICE_TYPE_DP_DUAL_MODE &DEVICE_TYPE_DP_DUAL_MODE_BITS ))return false; +if (p_child->common.dvo_port == port_mapping[port].dp) +return true; + +/* Only accept a HDMI dvo_port as DP++ if it has an AUX channel */ +if (p_child->common.dvo_port == port_mapping[port].hdmi && + p_child->common.aux_channel !=0 ) +return true; + +return false; +} + +bool intel_bios_is_port_dp_dual_mode (struct drm_i915_private *dev_priv, +enum port port) +{ +int i; +for (i =0 ; i < dev_priv->vbt.child_dev_num; i++) {const union child_device_config *p_child = &dev_priv->vbt.child_dev[i]; -if ((p_child->common.dvo_port == port_mapping[port].dp || - p_child->common.dvo_port == port_mapping[port].hdmi) && - (p_child->common.device_type &DEVICE_TYPE_DP_DUAL_MODE_BITS ) == - (DEVICE_TYPE_DP_DUAL_MODE &DEVICE_TYPE_DP_DUAL_MODE_BITS )) +if (child_dev_is_dp_dual_mode (p_child, port))return true; }
drivers/gpu/drm/i915/intel_dp.c +0 -10
@@ -4323,21 +4323,11 @@ static enum drm_connector_status intel_dp_detect(struct drm_connector *connector, bool force) {struct intel_dp *intel_dp =intel_attached_dp (connector); -struct intel_digital_port *intel_dig_port =dp_to_dig_port (intel_dp); -struct intel_encoder *intel_encoder = &intel_dig_port->base;enum drm_connector_status status = connector->status;DRM_DEBUG_KMS ("[CONNECTOR:%d:%s]\n" , connector->base.id, connector->name); -if (intel_dp->is_mst) { -/* MST devices are disconnected from a monitor POV */ -intel_dp_unset_edid (intel_dp); -if (intel_encoder->type !=INTEL_OUTPUT_EDP ) - intel_encoder->type =INTEL_OUTPUT_DP ; -return connector_status_disconnected; - } -/* If full detect is not performed yet, do a full detect */ if (!intel_dp->detect_done) status =intel_dp_long_pulse (intel_dp->attached_connector);
drivers/gpu/drm/i915/intel_vbt_defs.h +2 -1
@@ -280,7 +280,8 @@ struct common_child_dev_config { u8 dp_support:1; u8 tmds_support:1; u8 support_reserved:5; -u8 not_common3[12 ]; +u8 aux_channel; +u8 not_common3[11 ];u8 iboost_level; } __packed;
drivers/i2c/Kconfig +0 -1
@@ -59,7 +59,6 @@ config I2C_CHARDEV config I2C_MUX tristate "I2C bus multiplexing support" - depends on HAS_IOMEM help Say Y here if you want the I2C core to support the ability to handle multiplexed I2C bus topologies, by presenting each
drivers/i2c/muxes/Kconfig +1 -0
@@ -63,6 +63,7 @@ config I2C_MUX_PINCTRL config I2C_MUX_REG tristate "Register-based I2C multiplexer" + depends on HAS_IOMEM help If you say yes to this option, support will be included for a register based I2C multiplexer. This driver provides access to
drivers/i2c/muxes/i2c-mux-pca954x.c +2 -2
@@ -247,9 +247,9 @@ static int pca954x_probe(struct i2c_client *client,/* discard unconfigured channels */ break ; idle_disconnect_pd = pdata->modes[num].deselect_on_exit; - data->deselect |= (idle_disconnect_pd - || idle_disconnect_dt) << num; } + data->deselect |= (idle_disconnect_pd || + idle_disconnect_dt) << num; ret =i2c_mux_add_adapter (muxc, force, num, class);
drivers/infiniband/core/cm.c +110 -16
275 lines not on this page · raw message
drivers/infiniband/core/umem.c +1 -1
@@ -174,7 +174,7 @@ struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, cur_base = addr &PAGE_MASK ; -if (npages ==0 ) { +if (npages ==0 || npages >UINT_MAX ) { ret = -EINVAL ; goto out; }
drivers/infiniband/core/uverbs_main.c +2 -5
@@ -262,12 +262,9 @@ static int ib_uverbs_cleanup_ucontext(struct ib_uverbs_file *file, container_of(uobj, struct ib_uqp_object, uevent.uobject);idr_remove_uobj (&ib_uverbs_qp_idr, uobj); -if (qp != qp->real_qp) { -ib_close_qp (qp); - }else { +if (qp == qp->real_qp)ib_uverbs_detach_umcast (qp, uqp); -ib_destroy_qp (qp); - } +ib_destroy_qp (qp);ib_uverbs_release_uevent (file, &uqp->uevent);kfree (uqp); }
drivers/infiniband/hw/hfi1/rc.c +1 -1
@@ -87,7 +87,7 @@ void hfi1_add_rnr_timer(struct rvt_qp *qp, u32 to)struct hfi1_qp_priv *priv = qp->priv; qp->s_flags |=RVT_S_WAIT_RNR ; - qp->s_timer.expires = jiffies +usecs_to_jiffies (to); + priv->s_rnr_timer.expires = jiffies +usecs_to_jiffies (to);add_timer (&priv->s_rnr_timer); }
drivers/infiniband/hw/hfi1/user_sdma.c +1 -1
@@ -1152,7 +1152,7 @@ static int pin_vector_pages(struct user_sdma_request *req, rb_node =hfi1_mmu_rb_extract (pq->handler, (unsigned long )iovec->iov.iov_base, iovec->iov.iov_len); -if (rb_node && !IS_ERR (rb_node)) +if (rb_node) node = container_of(rb_node, struct sdma_mmu_node, rb);else rb_node =NULL ;
drivers/infiniband/hw/mlx4/ah.c +4 -1
@@ -102,7 +102,10 @@ static struct ib_ah *create_iboe_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attrif (vlan_tag <0x1000 ) vlan_tag |= (ah_attr->sl &7 ) <<13 ; ah->av.eth.port_pd =cpu_to_be32 (to_mpd (pd)->pdn | (ah_attr->port_num <<24 )); - ah->av.eth.gid_index =mlx4_ib_gid_index_to_real_index (ibdev, ah_attr->port_num, ah_attr->grh.sgid_index); + ret =mlx4_ib_gid_index_to_real_index (ibdev, ah_attr->port_num, ah_attr->grh.sgid_index); +if (ret <0 ) +return ERR_PTR (ret); + ah->av.eth.gid_index = ret; ah->av.eth.vlan =cpu_to_be16 (vlan_tag); ah->av.eth.hop_limit = ah_attr->grh.hop_limit;if (ah_attr->static_rate) {
drivers/infiniband/hw/mlx4/cq.c +4 -1
@@ -253,11 +253,14 @@ struct ib_cq *mlx4_ib_create_cq(struct ib_device *ibdev,if (context)if (ib_copy_to_udata (udata, &cq->mcq.cqn,sizeof (__u32))) { err = -EFAULT ; - goto err_dbmap; + goto err_cq_free; }return &cq->ibcq; +err_cq_free: +mlx4_cq_free (dev->dev, &cq->mcq); + err_dbmap:if (context)mlx4_ib_db_unmap_user (to_mucontext (context), &cq->db);
drivers/infiniband/hw/mlx5/cq.c +1 -2
@@ -917,8 +917,7 @@ struct ib_cq *mlx5_ib_create_cq(struct ib_device *ibdev,if (err) goto err_create; }else { -/* for now choose 64 bytes till we have a proper interface */ - cqe_size =64 ; + cqe_size =cache_line_size () ==128 ?128 :64 ; err =create_cq_kernel (dev, cq, entries, cqe_size, &cqb, &index, &inlen);if (err)
drivers/infiniband/hw/mlx5/main.c +7 -4
@@ -2100,14 +2100,14 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context, {struct mlx5_ib_dev *ibdev = (struct mlx5_ib_dev *)context;struct ib_event ibev; - +bool fatal = false;u8 port =0 ;switch (event) {case MLX5_DEV_EVENT_SYS_ERROR : - ibdev->ib_active = false; ibev.event =IB_EVENT_DEVICE_FATAL ;mlx5_ib_handle_internal_error (ibdev); + fatal = true;break ;case MLX5_DEV_EVENT_PORT_UP :
@@ -2154,6 +2154,9 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context,if (ibdev->ib_active)ib_dispatch_event (&ibev); + +if (fatal) + ibdev->ib_active = false; }static void get_ext_port_caps (struct mlx5_ib_dev *dev)
@@ -2835,7 +2838,7 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev) } err =init_node_data (dev);if (err) - goto err_dealloc; + goto err_free_port;mutex_init (&dev->flow_db.lock);mutex_init (&dev->cap_mask_mutex);
@@ -2845,7 +2848,7 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev)if (ll ==IB_LINK_LAYER_ETHERNET ) { err =mlx5_enable_roce (dev);if (err) - goto err_dealloc; + goto err_free_port; } err =create_dev_resources (&dev->devr);
drivers/infiniband/hw/mlx5/qp.c +10 -2
@@ -2037,8 +2037,8 @@ struct ib_qp *mlx5_ib_create_qp(struct ib_pd *pd,mlx5_ib_dbg (dev,"ib qpnum 0x%x, mlx qpn 0x%x, rcqn 0x%x, scqn 0x%x\n" , qp->ibqp.qp_num, qp->trans_qp.base.mqp.qpn, -to_mcq (init_attr->recv_cq)->mcq.cqn, -to_mcq (init_attr->send_cq)->mcq.cqn); + init_attr->recv_cq ?to_mcq (init_attr->recv_cq)->mcq.cqn :-1 , + init_attr->send_cq ?to_mcq (init_attr->send_cq)->mcq.cqn :-1 ); qp->trans_qp.xrcdn = xrcdn;
@@ -4702,6 +4702,14 @@ struct ib_rwq_ind_table *mlx5_ib_create_rwq_ind_table(struct ib_device *device, udata->inlen))return ERR_PTR (-EOPNOTSUPP ); +if (init_attr->log_ind_tbl_size > +MLX5_CAP_GEN (dev->mdev, log_max_rqt_size)) { +mlx5_ib_dbg (dev,"log_ind_tbl_size = %d is bigger than supported = %d\n" , + init_attr->log_ind_tbl_size, +MLX5_CAP_GEN (dev->mdev, log_max_rqt_size)); +return ERR_PTR (-EINVAL ); + } + min_resp_len = offsetof(typeof (resp ), reserved) +sizeof (resp.reserved);if (udata->outlen && udata->outlen < min_resp_len)return ERR_PTR (-EINVAL );
drivers/infiniband/sw/rdmavt/dma.c +0 -3
@@ -90,9 +90,6 @@ static u64 rvt_dma_map_page(struct ib_device *dev, struct page *page,if (WARN_ON (!valid_dma_direction (direction)))return BAD_DMA_ADDRESS ; -if (offset + size >PAGE_SIZE ) -return BAD_DMA_ADDRESS ; - addr = (u64 )page_address (page);if (addr) addr += offset;
drivers/infiniband/sw/rxe/rxe_net.c +2 -6
@@ -243,10 +243,8 @@ static struct socket *rxe_setup_udp_tunnel(struct net *net, __be16 port, {int err;struct socket *sock; -struct udp_port_cfg udp_cfg; -struct udp_tunnel_sock_cfg tnl_cfg; - -memset (&udp_cfg,0 ,sizeof (udp_cfg)); +struct udp_port_cfg udp_cfg = {0 }; +struct udp_tunnel_sock_cfg tnl_cfg = {0 };if (ipv6) { udp_cfg.family =AF_INET6 ;
@@ -264,10 +262,8 @@ static struct socket *rxe_setup_udp_tunnel(struct net *net, __be16 port,return ERR_PTR (err); } - tnl_cfg.sk_user_data =NULL ; tnl_cfg.encap_type =1 ; tnl_cfg.encap_rcv = rxe_udp_encap_recv; - tnl_cfg.encap_destroy =NULL ;/* Setup UDP tunnel */ setup_udp_tunnel_sock (net, sock, &tnl_cfg);
drivers/infiniband/sw/rxe/rxe_qp.c +2 -0
@@ -522,6 +522,7 @@ static void rxe_qp_reset(struct rxe_qp *qp)if (qp->sq.queue) {__rxe_do_task (&qp->comp.task);__rxe_do_task (&qp->req.task); +rxe_queue_reset (qp->sq.queue); }/* cleanup attributes */
@@ -573,6 +574,7 @@ void rxe_qp_error(struct rxe_qp *qp) { qp->req.state =QP_STATE_ERROR ; qp->resp.state =QP_STATE_ERROR ; + qp->attr.qp_state =IB_QPS_ERR ;/* drain work and packet queues */ rxe_run_task (&qp->resp.task,1 );
drivers/infiniband/sw/rxe/rxe_queue.c +9 -0
@@ -84,6 +84,15 @@ err1:return -EINVAL ; } +inline void rxe_queue_reset (struct rxe_queue *q) +{ +/* queue is comprised from header and the memory +* of the actual queue. See "struct rxe_queue_buf" in rxe_queue.h +* reset only the queue itself and not the management header +*/ +memset (q->buf->data,0 , q->buf_size -sizeof (struct rxe_queue_buf )); +} +struct rxe_queue *rxe_queue_init (struct rxe_dev *rxe,int *num_elem,unsigned int elem_size)
drivers/infiniband/sw/rxe/rxe_queue.h +2 -0
@@ -84,6 +84,8 @@ int do_mmap_info(struct rxe_dev *rxe,size_t buf_size, struct rxe_mmap_info **ip_p); +void rxe_queue_reset (struct rxe_queue *q); +struct rxe_queue *rxe_queue_init (struct rxe_dev *rxe,int *num_elem,unsigned int elem_size);
drivers/infiniband/sw/rxe/rxe_req.c +13 -8
@@ -695,7 +695,8 @@ next_wqe: qp->req.wqe_index); wqe->state = wqe_state_done; wqe->status =IB_WC_SUCCESS ; - goto complete; +__rxe_do_task (&qp->comp.task); +return 0 ; } payload = mtu; }
@@ -744,13 +745,17 @@ err: wqe->status =IB_WC_LOC_PROT_ERR ; wqe->state = wqe_state_error; -complete: -if (qp_type (qp) !=IB_QPT_RC ) { -while (rxe_completer (qp) ==0 ) - ; - } - -return 0 ; +/* +* IBA Spec. Section 10.7.3.1 SIGNALED COMPLETIONS +* ---------8<---------8<------------- +* ...Note that if a completion error occurs, a Work Completion +* will always be generated, even if the signaling +* indicator requests an Unsignaled Completion. +* ---------8<---------8<------------- +*/ + wqe->wr.send_flags |=IB_SEND_SIGNALED ; +__rxe_do_task (&qp->comp.task); +return -EAGAIN ; exit:return -EAGAIN ;
drivers/mfd/intel-lpss.c +0 -3
@@ -502,9 +502,6 @@ int intel_lpss_suspend(struct device *dev)for (i =0 ; i <LPSS_PRIV_REG_COUNT ; i++) lpss->priv_ctx[i] =readl (lpss->priv + i *4 ); -/* Put the device into reset state */ -writel (0 , lpss->priv +LPSS_PRIV_RESETS ); -return 0 ; }EXPORT_SYMBOL_GPL (intel_lpss_suspend);
drivers/mfd/mfd-core.c +2 -0
@@ -399,6 +399,8 @@ int mfd_clone_cell(const char *cell, const char **clones, size_t n_clones) clones[i]); } +put_device (dev); +return 0 ; }EXPORT_SYMBOL (mfd_clone_cell);
drivers/mfd/stmpe.c +2 -0
@@ -761,6 +761,8 @@ static int stmpe1801_reset(struct stmpe *stmpe)if (ret <0 )return ret; +msleep (10 ); + timeout = jiffies +msecs_to_jiffies (100 );while (time_before (jiffies, timeout)) { ret =__stmpe_reg_read (stmpe,STMPE1801_REG_SYS_CTRL );
drivers/net/virtio_net.c +20 -10
@@ -2010,23 +2010,33 @@ static struct virtio_device_id id_table[] = { { 0 }, }; +#define VIRTNET_FEATURES \ + VIRTIO_NET_F_CSUM, VIRTIO_NET_F_GUEST_CSUM, \ + VIRTIO_NET_F_MAC, \ + VIRTIO_NET_F_HOST_TSO4, VIRTIO_NET_F_HOST_UFO, VIRTIO_NET_F_HOST_TSO6, \ + VIRTIO_NET_F_HOST_ECN, VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6, \ + VIRTIO_NET_F_GUEST_ECN, VIRTIO_NET_F_GUEST_UFO, \ + VIRTIO_NET_F_MRG_RXBUF, VIRTIO_NET_F_STATUS, VIRTIO_NET_F_CTRL_VQ, \ + VIRTIO_NET_F_CTRL_RX, VIRTIO_NET_F_CTRL_VLAN, \ + VIRTIO_NET_F_GUEST_ANNOUNCE, VIRTIO_NET_F_MQ, \ + VIRTIO_NET_F_CTRL_MAC_ADDR, \ + VIRTIO_NET_F_MTU +static unsigned int features[] = { -VIRTIO_NET_F_CSUM ,VIRTIO_NET_F_GUEST_CSUM , -VIRTIO_NET_F_GSO ,VIRTIO_NET_F_MAC , -VIRTIO_NET_F_HOST_TSO4 ,VIRTIO_NET_F_HOST_UFO ,VIRTIO_NET_F_HOST_TSO6 , -VIRTIO_NET_F_HOST_ECN ,VIRTIO_NET_F_GUEST_TSO4 ,VIRTIO_NET_F_GUEST_TSO6 , -VIRTIO_NET_F_GUEST_ECN ,VIRTIO_NET_F_GUEST_UFO , -VIRTIO_NET_F_MRG_RXBUF ,VIRTIO_NET_F_STATUS ,VIRTIO_NET_F_CTRL_VQ , -VIRTIO_NET_F_CTRL_RX ,VIRTIO_NET_F_CTRL_VLAN , -VIRTIO_NET_F_GUEST_ANNOUNCE ,VIRTIO_NET_F_MQ , -VIRTIO_NET_F_CTRL_MAC_ADDR , +VIRTNET_FEATURES , +}; + +static unsigned int features_legacy[] = { +VIRTNET_FEATURES , +VIRTIO_NET_F_GSO ,VIRTIO_F_ANY_LAYOUT , -VIRTIO_NET_F_MTU , };static struct virtio_driver virtio_net_driver = { .feature_table = features, .feature_table_size =ARRAY_SIZE (features), + .feature_table_legacy = features_legacy, + .feature_table_size_legacy =ARRAY_SIZE (features_legacy), .driver.name =KBUILD_MODNAME , .driver.owner =THIS_MODULE , .id_table = id_table,
drivers/net/wireless/intel/iwlwifi/mvm/d3.c +34 -10
70 lines not on this page · raw message
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +1 -2
@@ -4097,7 +4097,6 @@ void iwl_mvm_sync_rx_queues_internal(struct iwl_mvm *mvm, struct iwl_mvm_internal_rxq_notif *notif, u32 size) { -DECLARE_WAIT_QUEUE_HEAD_ONSTACK (notif_waitq );u32 qmask =BIT (mvm->trans->num_rx_queues) -1 ;int ret;
@@ -4119,7 +4118,7 @@ void iwl_mvm_sync_rx_queues_internal(struct iwl_mvm *mvm, }if (notif->sync) - ret =wait_event_timeout (notif_waitq, + ret =wait_event_timeout (mvm->rx_sync_waitq,atomic_read (&mvm->queue_sync_counter) ==0 ,HZ );WARN_ON_ONCE (!ret);
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h +1 -0
@@ -932,6 +932,7 @@ struct iwl_mvm {/* sync d0i3_tx queue and IWL_MVM_STATUS_IN_D0I3 status flag */ spinlock_t d0i3_tx_lock;wait_queue_head_t d0i3_exit_waitq; +wait_queue_head_t rx_sync_waitq;/* BT-Coex */ struct iwl_bt_coex_profile_notif last_bt_notif;
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +1 -0
@@ -618,6 +618,7 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,spin_lock_init (&mvm->refs_lock);skb_queue_head_init (&mvm->d0i3_tx);init_waitqueue_head (&mvm->d0i3_exit_waitq); +init_waitqueue_head (&mvm->rx_sync_waitq);atomic_set (&mvm->queue_sync_counter,0 );
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +2 -1
@@ -545,7 +545,8 @@ void iwl_mvm_rx_queue_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, "Received expired RX queue sync message\n");return ; } -atomic_dec (&mvm->queue_sync_counter); +if (!atomic_dec_return (&mvm->queue_sync_counter)) +wake_up (&mvm->rx_sync_waitq); }switch (internal_notif->type) {
drivers/net/wireless/intel/iwlwifi/mvm/scan.c +27 -6
@@ -1185,6 +1185,9 @@ static int iwl_mvm_num_scans(struct iwl_mvm *mvm)static int iwl_mvm_check_running_scans (struct iwl_mvm *mvm,int type) { +bool unified_image =fw_has_capa (&mvm->fw->ucode_capa, +IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG ); +/* This looks a bit arbitrary, but the idea is that if we run * out of possible simultaneous scans and the userspace is * trying to run a scan type that is already running, we
@@ -1211,12 +1214,30 @@ static int iwl_mvm_check_running_scans(struct iwl_mvm *mvm, int type)return -EBUSY ;return iwl_mvm_scan_stop (mvm,IWL_MVM_SCAN_REGULAR , true);case IWL_MVM_SCAN_NETDETECT : -/* No need to stop anything for net-detect since the -* firmware is restarted anyway. This way, any sched -* scans that were running will be restarted when we -* resume. -*/ -return 0 ; +/* For non-unified images, there's no need to stop +* anything for net-detect since the firmware is +* restarted anyway. This way, any sched scans that +* were running will be restarted when we resume. +*/ +if (!unified_image) +return 0 ; + +/* If this is a unified image and we ran out of scans, +* we need to stop something. Prefer stopping regular +* scans, because the results are useless at this +* point, and we should be able to keep running +* another scheduled scan while suspended. +*/ +if (mvm->scan_status &IWL_MVM_SCAN_REGULAR_MASK ) +return iwl_mvm_scan_stop (mvm,IWL_MVM_SCAN_REGULAR , + true); +if (mvm->scan_status &IWL_MVM_SCAN_SCHED_MASK ) +return iwl_mvm_scan_stop (mvm,IWL_MVM_SCAN_SCHED , + true); + +/* fall through, something is wrong if no scan was +* running but we ran out of scans. +*/ default :WARN_ON (1 );break ;
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +48 -31
119 lines not on this page · raw message
drivers/net/wireless/intel/iwlwifi/pcie/tx.c +8 -0
@@ -522,6 +522,7 @@ error:static int iwl_pcie_txq_init (struct iwl_trans *trans,struct iwl_txq *txq,int slots_num,u32 txq_id) { +struct iwl_trans_pcie *trans_pcie =IWL_TRANS_GET_PCIE_TRANS (trans);int ret; txq->need_update = false;
@@ -536,6 +537,13 @@ static int iwl_pcie_txq_init(struct iwl_trans *trans, struct iwl_txq *txq,return ret;spin_lock_init (&txq->lock); + +if (txq_id == trans_pcie->cmd_queue) { +static struct lock_class_key iwl_pcie_cmd_queue_lock_class; + +lockdep_set_class (&txq->lock, &iwl_pcie_cmd_queue_lock_class); + } +__skb_queue_head_init (&txq->overflow_q);/*
drivers/rtc/rtc-omap.c +4 -2
@@ -109,6 +109,7 @@/* OMAP_RTC_OSC_REG bit fields: */ #define OMAP_RTC_OSC_32KCLK_EN BIT(6)#define OMAP_RTC_OSC_SEL_32KCLK_SRC BIT(3) +#define OMAP_RTC_OSC_OSC32K_GZ_DISABLE BIT(4)/* OMAP_RTC_IRQWAKEEN bit fields: */ #define OMAP_RTC_IRQWAKEEN_ALARM_WAKEEN BIT(1)
@@ -646,8 +647,9 @@ static int omap_rtc_probe(struct platform_device *pdev)*/ if (rtc->has_ext_clk) { reg =rtc_read (rtc,OMAP_RTC_OSC_REG ); -rtc_write (rtc,OMAP_RTC_OSC_REG , - reg |OMAP_RTC_OSC_SEL_32KCLK_SRC ); + reg &= ~OMAP_RTC_OSC_OSC32K_GZ_DISABLE ; + reg |=OMAP_RTC_OSC_32KCLK_EN |OMAP_RTC_OSC_SEL_32KCLK_SRC ; +rtc_writel (rtc,OMAP_RTC_OSC_REG , reg); } rtc->type->lock (rtc);
drivers/uwb/lc-rc.c +13 -3
@@ -56,8 +56,11 @@ static struct uwb_rc *uwb_rc_find_by_index(int index)struct uwb_rc *rc =NULL ; dev =class_find_device (&uwb_rc_class,NULL , &index, uwb_rc_index_match); -if (dev) +if (dev) { rc =dev_get_drvdata (dev); +put_device (dev); + } +return rc; }
@@ -467,7 +470,9 @@ struct uwb_rc *__uwb_rc_try_get(struct uwb_rc *target_rc)if (dev) { rc =dev_get_drvdata (dev);__uwb_rc_get (rc); +put_device (dev); } +return rc; }EXPORT_SYMBOL_GPL (__uwb_rc_try_get);
@@ -520,8 +525,11 @@ struct uwb_rc *uwb_rc_get_by_grandpa(const struct device *grandpa_dev) dev =class_find_device (&uwb_rc_class,NULL , grandpa_dev, find_rc_grandpa); -if (dev) +if (dev) { rc =dev_get_drvdata (dev); +put_device (dev); + } +return rc; }EXPORT_SYMBOL_GPL (uwb_rc_get_by_grandpa);
@@ -553,8 +561,10 @@ struct uwb_rc *uwb_rc_get_by_dev(const struct uwb_dev_addr *addr)struct uwb_rc *rc =NULL ; dev =class_find_device (&uwb_rc_class,NULL , addr, find_rc_dev); -if (dev) +if (dev) { rc =dev_get_drvdata (dev); +put_device (dev); + }return rc; }
drivers/uwb/pal.c +2 -0
@@ -97,6 +97,8 @@ static bool uwb_rc_class_device_exists(struct uwb_rc *target_rc) dev =class_find_device (&uwb_rc_class,NULL , target_rc, find_rc); +put_device (dev); +return (dev !=NULL ); }
fs/ext4/ext4.h +1 -0
@@ -235,6 +235,7 @@ struct ext4_io_submit {#define EXT4_MAX_BLOCK_SIZE 65536#define EXT4_MIN_BLOCK_LOG_SIZE 10#define EXT4_MAX_BLOCK_LOG_SIZE 16 +#define EXT4_MAX_CLUSTER_LOG_SIZE 30#ifdef __KERNEL__# define EXT4_BLOCK_SIZE (s) ((s)->s_blocksize)#else
fs/ext4/super.c +16 -1
@@ -3518,7 +3518,15 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)if (blocksize <EXT4_MIN_BLOCK_SIZE || blocksize >EXT4_MAX_BLOCK_SIZE ) {ext4_msg (sb,KERN_ERR , -"Unsupported filesystem blocksize %d" , blocksize); +"Unsupported filesystem blocksize %d (%d log_block_size)" , + blocksize,le32_to_cpu (es->s_log_block_size)); + goto failed_mount; + } +if (le32_to_cpu (es->s_log_block_size) > + (EXT4_MAX_BLOCK_LOG_SIZE -EXT4_MIN_BLOCK_LOG_SIZE )) { +ext4_msg (sb,KERN_ERR , +"Invalid log block size: %u" , +le32_to_cpu (es->s_log_block_size)); goto failed_mount; }
@@ -3650,6 +3658,13 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) "block size (%d)", clustersize, blocksize); goto failed_mount; } +if (le32_to_cpu (es->s_log_cluster_size) > + (EXT4_MAX_CLUSTER_LOG_SIZE -EXT4_MIN_BLOCK_LOG_SIZE )) { +ext4_msg (sb,KERN_ERR , +"Invalid log cluster size: %u" , +le32_to_cpu (es->s_log_cluster_size)); + goto failed_mount; + } sbi->s_cluster_bits =le32_to_cpu (es->s_log_cluster_size) -le32_to_cpu (es->s_log_block_size); sbi->s_clusters_per_group =
fs/fuse/file.c +6 -0
@@ -1985,6 +1985,10 @@ static int fuse_write_end(struct file *file, struct address_space *mapping, {struct inode *inode = page->mapping->host; +/* Haven't copied anything? Skip zeroing, size extending, dirtying. */ +if (!copied) + goto unlock; +if (!PageUptodate (page)) {/* Zero any unwritten bytes at the end of the page */ size_t endoff = (pos + copied) & ~PAGE_MASK ;
@@ -1995,6 +1999,8 @@ static int fuse_write_end(struct file *file, struct address_space *mapping,fuse_write_update_size (inode, pos + copied);set_page_dirty (page); + +unlock:unlock_page (page);put_page (page);
include/linux/sunrpc/svc_xprt.h +1 -0
@@ -25,6 +25,7 @@ struct svc_xprt_ops {void (*xpo_detach)(struct svc_xprt *);void (*xpo_free)(struct svc_xprt *);int (*xpo_secure_port)(struct svc_rqst *); +void (*xpo_kill_temp_xprt)(struct svc_xprt *); };struct svc_xprt_class {
kernel/irq/manage.c +2 -2
@@ -1341,12 +1341,12 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) }else if (new->flags &IRQF_TRIGGER_MASK ) {unsigned int nmsk = new->flags &IRQF_TRIGGER_MASK ; -unsigned int omsk =irq_settings_get_trigger_mask (desc); +unsigned int omsk =irqd_get_trigger_type (&desc->irq_data);if (nmsk != omsk)/* hope the handler works with current trigger mode */ pr_warn ("irq %d uses trigger mode %u; requested %u\n" , - irq, nmsk, omsk); + irq, omsk, nmsk); } *old_ptr = new;
kernel/power/suspend_test.c +3 -1
@@ -203,8 +203,10 @@ static int __init test_suspend(void)/* RTCs have initialized by now too ... can we use one? */ dev =class_find_device (rtc_class,NULL ,NULL , has_wakealarm); -if (dev) +if (dev) { rtc =rtc_class_open (dev_name (dev)); +put_device (dev); + }if (!rtc) {printk (warn_no_rtc);return 0 ;
kernel/trace/Makefile +0 -4
@@ -1,8 +1,4 @@ -# We are fully aware of the dangers of __builtin_return_address() -FRAME_CFLAGS := $(call cc-disable-warning,frame-address) -KBUILD_CFLAGS += $(FRAME_CFLAGS) - # Do not instrument the tracer itself: ifdef CONFIG_FUNCTION_TRACER
kernel/trace/ftrace.c +23 -1
@@ -1856,6 +1856,10 @@ static int __ftrace_hash_update_ipmodify(struct ftrace_ops *ops,/* Update rec->flags */ do_for_each_ftrace_rec (pg, rec) { + +if (rec->flags &FTRACE_FL_DISABLED ) +continue ; +/* We need to update only differences of filter_hash */ in_old = !!ftrace_lookup_ip (old_hash, rec->ip); in_new = !!ftrace_lookup_ip (new_hash, rec->ip);
@@ -1878,6 +1882,10 @@ rollback:/* Roll back what we did above */ do_for_each_ftrace_rec (pg, rec) { + +if (rec->flags &FTRACE_FL_DISABLED ) +continue ; +if (rec == end) goto err_out;
@@ -2391,6 +2399,10 @@ void __weak ftrace_replace_code(int enable)return ;do_for_each_ftrace_rec (pg, rec) { + +if (rec->flags &FTRACE_FL_DISABLED ) +continue ; + failed =__ftrace_replace_code (rec, enable);if (failed) {ftrace_bug (failed, rec);
@@ -2757,7 +2769,7 @@ static int ftrace_shutdown(struct ftrace_ops *ops, int command)struct dyn_ftrace *rec;do_for_each_ftrace_rec (pg, rec) { -if (FTRACE_WARN_ON_ONCE (rec->flags)) +if (FTRACE_WARN_ON_ONCE (rec->flags & ~FTRACE_FL_DISABLED ))pr_warn (" %pS flags:%lx\n" , (void *)rec->ip, rec->flags); }while_for_each_ftrace_rec ();
@@ -3592,6 +3604,10 @@ match_records(struct ftrace_hash *hash, char *func, int len, char *mod) goto out_unlock;do_for_each_ftrace_rec (pg, rec) { + +if (rec->flags &FTRACE_FL_DISABLED ) +continue ; +if (ftrace_match_record (rec, &func_g, mod_match, exclude_mod)) { ret =enter_record (hash, rec, clear_filter);if (ret <0 ) {
@@ -3787,6 +3803,9 @@ register_ftrace_function_probe(char *glob, struct ftrace_probe_ops *ops,do_for_each_ftrace_rec (pg, rec) { +if (rec->flags &FTRACE_FL_DISABLED ) +continue ; +if (!ftrace_match_record (rec, &func_g,NULL ,0 ))continue ;
@@ -4679,6 +4698,9 @@ ftrace_set_func(unsigned long *array, int *idx, int size, char *buffer)do_for_each_ftrace_rec (pg, rec) { +if (rec->flags &FTRACE_FL_DISABLED ) +continue ; +if (ftrace_match_record (rec, &func_g,NULL ,0 )) {/* if it is in the array */ exists = false;
mm/Makefile +0 -3
@@ -21,9 +21,6 @@ KCOV_INSTRUMENT_memcontrol.o := n KCOV_INSTRUMENT_mmzone.o := n KCOV_INSTRUMENT_vmstat.o := n -# Since __builtin_frame_address does work as used, disable the warning. -CFLAGS_usercopy.o += $(call cc-disable-warning, frame-address) - mmu-y := nommu.o mmu-$(CONFIG_MMU) := gup.o highmem.o memory.o mincore.o \ mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \
net/can/bcm.c +23 -9
@@ -1549,24 +1549,31 @@ static int bcm_connect(struct socket *sock, struct sockaddr *uaddr, int len,struct sockaddr_can *addr = (struct sockaddr_can *)uaddr;struct sock *sk = sock->sk;struct bcm_sock *bo =bcm_sk (sk); +int ret =0 ;if (len <sizeof (*addr))return -EINVAL ; -if (bo->bound) -return -EISCONN ; +lock_sock (sk); + +if (bo->bound) { + ret = -EISCONN ; + goto fail; + }/* bind a device to this socket */ if (addr->can_ifindex) {struct net_device *dev; dev =dev_get_by_index (&init_net, addr->can_ifindex); -if (!dev) -return -ENODEV ; - +if (!dev) { + ret = -ENODEV ; + goto fail; + }if (dev->type !=ARPHRD_CAN ) {dev_put (dev); -return -ENODEV ; + ret = -ENODEV ; + goto fail; } bo->ifindex = dev->ifindex;
@@ -1577,17 +1584,24 @@ static int bcm_connect(struct socket *sock, struct sockaddr *uaddr, int len, bo->ifindex =0 ; } - bo->bound =1 ; -if (proc_dir) {/* unique socket address as filename */ sprintf (bo->procname,"%lu" ,sock_i_ino (sk)); bo->bcm_proc_read =proc_create_data (bo->procname,0644 , proc_dir, &bcm_proc_fops, sk); +if (!bo->bcm_proc_read) { + ret = -ENOMEM ; + goto fail; + } } -return 0 ; + bo->bound =1 ; + +fail: +release_sock (sk); + +return ret; } static int bcm_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/netfilter/nft_dynset.c +4 -2
@@ -143,7 +143,8 @@ static int nft_dynset_init(const struct nft_ctx *ctx,if (tb[NFTA_DYNSET_TIMEOUT ] !=NULL ) {if (!(set->flags &NFT_SET_TIMEOUT ))return -EINVAL ; - timeout =be64_to_cpu (nla_get_be64 (tb[NFTA_DYNSET_TIMEOUT ])); + timeout =msecs_to_jiffies (be64_to_cpu (nla_get_be64 ( + tb[NFTA_DYNSET_TIMEOUT ]))); } priv->sreg_key =nft_parse_register (tb[NFTA_DYNSET_SREG_KEY ]);
@@ -230,7 +231,8 @@ static int nft_dynset_dump(struct sk_buff *skb, const struct nft_expr *expr) goto nla_put_failure;if (nla_put_string (skb,NFTA_DYNSET_SET_NAME , priv->set->name)) goto nla_put_failure; -if (nla_put_be64 (skb,NFTA_DYNSET_TIMEOUT ,cpu_to_be64 (priv->timeout), +if (nla_put_be64 (skb,NFTA_DYNSET_TIMEOUT , +cpu_to_be64 (jiffies_to_msecs (priv->timeout)),NFTA_DYNSET_PAD )) goto nla_put_failure;if (priv->expr &&nft_expr_dump (skb,NFTA_DYNSET_EXPR , priv->expr))
net/sunrpc/svc_xprt.c +1 -10
@@ -1002,14 +1002,8 @@ static void svc_age_temp_xprts(unsigned long closure)void svc_age_temp_xprts_now (struct svc_serv *serv,struct sockaddr *server_addr) {struct svc_xprt *xprt; -struct svc_sock *svsk; -struct socket *sock;struct list_head *le, *next;LIST_HEAD (to_be_closed); -struct linger no_linger = { - .l_onoff =1 , - .l_linger =0 , - };spin_lock_bh (&serv->sv_lock);list_for_each_safe (le, next, &serv->sv_tempsocks) {
@@ -1027,10 +1021,7 @@ void svc_age_temp_xprts_now(struct svc_serv *serv, struct sockaddr *server_addr)list_del_init (le); xprt = list_entry(le, struct svc_xprt, xpt_list);dprintk ("svc_age_temp_xprts_now: closing %p\n" , xprt); - svsk = container_of(xprt, struct svc_sock, sk_xprt); - sock = svsk->sk_sock; -kernel_setsockopt (sock,SOL_SOCKET ,SO_LINGER , - (char *)&no_linger,sizeof (no_linger)); + xprt->xpt_ops->xpo_kill_temp_xprt (xprt);svc_close_xprt (xprt); } }
net/sunrpc/svcsock.c +21 -0
@@ -438,6 +438,21 @@ static int svc_tcp_has_wspace(struct svc_xprt *xprt)return !test_bit (SOCK_NOSPACE , &svsk->sk_sock->flags); } +static void svc_tcp_kill_temp_xprt (struct svc_xprt *xprt) +{ +struct svc_sock *svsk; +struct socket *sock; +struct linger no_linger = { + .l_onoff =1 , + .l_linger =0 , + }; + + svsk = container_of(xprt, struct svc_sock, sk_xprt); + sock = svsk->sk_sock; +kernel_setsockopt (sock,SOL_SOCKET ,SO_LINGER , + (char *)&no_linger,sizeof (no_linger)); +} +/* * See net/ipv6/ip_sockglue.c : ip_cmsg_recv_pktinfo */
@@ -648,6 +663,10 @@ static struct svc_xprt *svc_udp_accept(struct svc_xprt *xprt)return NULL ; } +static void svc_udp_kill_temp_xprt (struct svc_xprt *xprt) +{ +} + static struct svc_xprt *svc_udp_create(struct svc_serv *serv, struct net *net, struct sockaddr *sa, int salen,
@@ -667,6 +686,7 @@ static struct svc_xprt_ops svc_udp_ops = { .xpo_has_wspace = svc_udp_has_wspace, .xpo_accept = svc_udp_accept, .xpo_secure_port = svc_sock_secure_port, + .xpo_kill_temp_xprt = svc_udp_kill_temp_xprt, };static struct svc_xprt_class svc_udp_class = {
@@ -1242,6 +1262,7 @@ static struct svc_xprt_ops svc_tcp_ops = { .xpo_has_wspace = svc_tcp_has_wspace, .xpo_accept = svc_tcp_accept, .xpo_secure_port = svc_sock_secure_port, + .xpo_kill_temp_xprt = svc_tcp_kill_temp_xprt, };static struct svc_xprt_class svc_tcp_class = {
net/sunrpc/xprtrdma/svc_rdma_transport.c +6 -0
@@ -67,6 +67,7 @@ static void svc_rdma_detach(struct svc_xprt *xprt);static void svc_rdma_free (struct svc_xprt *xprt);static int svc_rdma_has_wspace (struct svc_xprt *xprt);static int svc_rdma_secure_port (struct svc_rqst *); +static void svc_rdma_kill_temp_xprt (struct svc_xprt *);static struct svc_xprt_ops svc_rdma_ops = { .xpo_create = svc_rdma_create,
@@ -79,6 +80,7 @@ static struct svc_xprt_ops svc_rdma_ops = { .xpo_has_wspace = svc_rdma_has_wspace, .xpo_accept = svc_rdma_accept, .xpo_secure_port = svc_rdma_secure_port, + .xpo_kill_temp_xprt = svc_rdma_kill_temp_xprt, };struct svc_xprt_class svc_rdma_class = {
@@ -1285,6 +1287,10 @@ static int svc_rdma_secure_port(struct svc_rqst *rqstp)return 1 ; } +static void svc_rdma_kill_temp_xprt (struct svc_xprt *xprt) +{ +} +int svc_rdma_send (struct svcxprt_rdma *xprt,struct ib_send_wr *wr) {struct ib_send_wr *bad_wr, *n_wr;
scripts/gcc-x86_64-has-stack-protector.sh +1 -1
@@ -1,6 +1,6 @@ #!/bin/sh -echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -mcmodel=kernel -fstack-protector - -o - 2> /dev/null | grep -q "%gs" +echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -mcmodel=kernel -fno-PIE -fstack-protector - -o - 2> /dev/null | grep -q "%gs" if [ "$?" -eq "0" ] ; then echo y else
sound/pci/hda/patch_realtek.c +0 -2
@@ -6905,8 +6905,6 @@ static const struct hda_fixup alc662_fixups[] = { .v.pins = (const struct hda_pintbl[]) { {0x15 ,0x40f000f0 },/* disabled */ {0x16 ,0x40f000f0 },/* disabled */ - {0x18 ,0x01014011 },/* LO */ - {0x1a ,0x01014012 },/* LO */ { } } },
sound/pci/hda/thinkpad_helper.c +2 -1
@@ -13,7 +13,8 @@ static void (*old_vmaster_hook)(void *, int);static bool is_thinkpad (struct hda_codec *codec) {return (codec->core.subsystem_id >>16 ==0x17aa ) && - (acpi_dev_found ("LEN0068" ) ||acpi_dev_found ("IBM0068" )); + (acpi_dev_found ("LEN0068" ) ||acpi_dev_found ("LEN0268" ) || +acpi_dev_found ("IBM0068" )); }static void update_tpacpi_mute_led (void *private_data,int enabled)
sound/usb/card.c +2 -1
@@ -315,7 +315,8 @@ static int snd_usb_audio_free(struct snd_usb_audio *chip)snd_usb_endpoint_free (ep);mutex_destroy (&chip->mutex); -dev_set_drvdata (&chip->dev->dev,NULL ); +if (!atomic_read (&chip->shutdown)) +dev_set_drvdata (&chip->dev->dev,NULL );kfree (chip);return 0 ; }
tools/perf/util/hist.c +6 -6
@@ -1596,18 +1596,18 @@ static void hists__hierarchy_output_resort(struct hists *hists,if (prog)ui_progress__update (prog,1 ); + hists->nr_entries++; +if (!he->filtered) { + hists->nr_non_filtered_entries++; +hists__calc_col_len (hists, he); + } +if (!he->leaf) {hists__hierarchy_output_resort (hists, prog, &he->hroot_in, &he->hroot_out, min_callchain_hits, use_callchain); - hists->nr_entries++; -if (!he->filtered) { - hists->nr_non_filtered_entries++; -hists__calc_col_len (hists, he); - } -continue ; }
virt/kvm/arm/pmu.c +5 -3
@@ -305,7 +305,7 @@ void kvm_pmu_software_increment(struct kvm_vcpu *vcpu, u64 val)continue ; type =vcpu_sys_reg (vcpu,PMEVTYPER0_EL0 + i) &ARMV8_PMU_EVTYPE_EVENT ; -if ((type ==ARMV8_PMU_EVTYPE_EVENT_SW_INCR ) +if ((type ==ARMV8_PMUV3_PERFCTR_SW_INCR ) && (enable &BIT (i))) { reg =vcpu_sys_reg (vcpu,PMEVCNTR0_EL0 + i) +1 ; reg =lower_32_bits (reg);
@@ -379,7 +379,8 @@ void kvm_pmu_set_counter_event_type(struct kvm_vcpu *vcpu, u64 data, eventsel = data &ARMV8_PMU_EVTYPE_EVENT ;/* Software increment event does't need to be backed by a perf event */ -if (eventsel ==ARMV8_PMU_EVTYPE_EVENT_SW_INCR ) +if (eventsel ==ARMV8_PMUV3_PERFCTR_SW_INCR && + select_idx !=ARMV8_PMU_CYCLE_IDX )return ;memset (&attr,0 ,sizeof (struct perf_event_attr ));
@@ -391,7 +392,8 @@ void kvm_pmu_set_counter_event_type(struct kvm_vcpu *vcpu, u64 data, attr.exclude_kernel = data &ARMV8_PMU_EXCLUDE_EL1 ?1 :0 ; attr.exclude_hv =1 ;/* Don't count EL2 events */ attr.exclude_host =1 ;/* Don't count host events */ - attr.config = eventsel; + attr.config = (select_idx ==ARMV8_PMU_CYCLE_IDX ) ? +ARMV8_PMUV3_PERFCTR_CPU_CYCLES : eventsel; counter =kvm_pmu_get_counter_value (vcpu, select_idx);/* The initial sample period (overflow count) of an event. */
Quoted 1 line · Greg KH
I'm announcing the release of the 4.8.11 kernel.
... which splats during early boot where 4.8.10 worked fine.
[ 0.000000] Linux version 4.8.11+ (kilobyte@umbar) (gcc version 6.2.1 20161124 (Debian 6.2.1-5) ) #1 SMP Sat Nov 26 22:32:52 CET 2016 [ 0.000000] Command line: BOOT_IMAGE=/sys/boot/vmlinuz-4.8.11+ root=UUID=b7c38da9-ae84-4083-a1f8-6d7b4fc33961 ro rootflags=subvol=sys syscall.x32=y syscall.x32=y console=tty1 console=ttyS0,115200,n81 [ 0.000000] x86/fpu: Legacy x87 FPU detected. [ 0.000000] x86/fpu: Using 'eager' FPU context switches. [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ebff] usable [ 0.000000] BIOS-e820: [mem 0x000000000009ec00-0x000000000009ffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000000e4000-0x00000000000fffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000c7e7ffff] usable [ 0.000000] BIOS-e820: [mem 0x00000000c7e80000-0x00000000c7e97fff] ACPI data [ 0.000000] BIOS-e820: [mem 0x00000000c7e98000-0x00000000c7ecffff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x00000000c7ed0000-0x00000000c7efffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000ff700000-0x00000000ffffffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x0000000237ffffff] usable [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] SMBIOS 2.5 present. [ 0.000000] AGP: No AGP bridge found [ 0.000000] e820: last_pfn = 0x238000 max_arch_pfn = 0x400000000 [ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WC UC- WT [ 0.000000] e820: last_pfn = 0xc7e80 max_arch_pfn = 0x400000000 [ 0.000000] Using GB pages for direct mapping [ 0.000000] RAMDISK: [mem 0x3668d000-0x3733dfff] [ 0.000000] ACPI: Early table checksum verification disabled [ 0.000000] ACPI: RSDP 0x00000000000FB510 000024 (v02 ACPIAM) [ 0.000000] ACPI: XSDT 0x00000000C7E80100 00005C (v01 051811 XSDT1038 20110518 MSFT 00000097) [ 0.000000] ACPI: FACP 0x00000000C7E80290 0000F4 (v03 051811 FACP1038 20110518 MSFT 00000097) [ 0.000000] ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20160422/tbfadt-658) [ 0.000000] ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 64/32 (20160422/tbfadt-624) [ 0.000000] ACPI: DSDT 0x00000000C7E80450 00DB3A (v01 A1540 A1540001 00000001 INTL 20060113) [ 0.000000] ACPI: FACS 0x00000000C7E98000 000040 [ 0.000000] ACPI: FACS 0x00000000C7E98000 000040 [ 0.000000] ACPI: APIC 0x00000000C7E80390 00007C (v01 051811 APIC1038 20110518 MSFT 00000097) [ 0.000000] ACPI: MCFG 0x00000000C7E80410 00003C (v01 051811 OEMMCFG 20110518 MSFT 00000097) [ 0.000000] ACPI: OEMB 0x00000000C7E98040 000072 (v01 051811 OEMB1038 20110518 MSFT 00000097) [ 0.000000] ACPI: SRAT 0x00000000C7E8F650 000108 (v01 AMD FAM_F_10 00000002 AMD 00000001) [ 0.000000] ACPI: HPET 0x00000000C7E8F760 000038 (v01 051811 OEMHPET 20110518 MSFT 00000097) [ 0.000000] ACPI: SSDT 0x00000000C7E8F7A0 000DA4 (v01 A M I POWERNOW 00000001 AMD 00000001) [ 0.000000] SRAT: PXM 0 -> APIC 0x00 -> Node 0 [ 0.000000] SRAT: PXM 0 -> APIC 0x01 -> Node 0 [ 0.000000] SRAT: PXM 0 -> APIC 0x02 -> Node 0 [ 0.000000] SRAT: PXM 0 -> APIC 0x03 -> Node 0 [ 0.000000] SRAT: PXM 0 -> APIC 0x04 -> Node 0 [ 0.000000] SRAT: PXM 0 -> APIC 0x05 -> Node 0 [ 0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0x0009ffff] [ 0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x00100000-0xc7ffffff] [ 0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0x237ffffff] [ 0.000000] NUMA: Node 0 [mem 0x00000000-0x0009ffff] + [mem 0x00100000-0xc7ffffff] -> [mem 0x00000000-0xc7ffffff] [ 0.000000] NUMA: Node 0 [mem 0x00000000-0xc7ffffff] + [mem 0x100000000-0x237ffffff] -> [mem 0x00000000-0x237ffffff] [ 0.000000] NODE_DATA(0) allocated [mem 0x237ffa000-0x237ffdfff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.000000] DMA32 [mem 0x0000000001000000-0x00000000ffffffff] [ 0.000000] Normal [mem 0x0000000100000000-0x0000000237ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009dfff] [ 0.000000] node 0: [mem 0x0000000000100000-0x00000000c7e7ffff] [ 0.000000] node 0: [mem 0x0000000100000000-0x0000000237ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x0000000237ffffff] [ 0.000000] ACPI: PM-Timer IO Port: 0x808 [ 0.000000] IOAPIC[0]: apic_id 6, version 33, address 0xfec00000, GSI 0-23 [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level) [ 0.000000] Using ACPI (MADT) for SMP configuration information [ 0.000000] ACPI: HPET id: 0x8300 base: 0xfed00000 [ 0.000000] smpboot: Allowing 6 CPUs, 0 hotplug CPUs [ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009efff] [ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff] [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000e3fff] [ 0.000000] PM: Registered nosave memory: [mem 0x000e4000-0x000fffff] [ 0.000000] PM: Registered nosave memory: [mem 0xc7e80000-0xc7e97fff] [ 0.000000] PM: Registered nosave memory: [mem 0xc7e98000-0xc7ecffff] [ 0.000000] PM: Registered nosave memory: [mem 0xc7ed0000-0xc7efffff] [ 0.000000] PM: Registered nosave memory: [mem 0xc7f00000-0xff6fffff] [ 0.000000] PM: Registered nosave memory: [mem 0xff700000-0xffffffff] [ 0.000000] e820: [mem 0xc7f00000-0xff6fffff] available for PCI devices [ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns [ 0.000000] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:6 nr_node_ids:1 [ 0.000000] percpu: Embedded 33 pages/cpu @ffff880237c00000 s96536 r8192 d30440 u262144 [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 2063886 [ 0.000000] Policy zone: Normal [ 0.000000] Kernel command line: BOOT_IMAGE=/sys/boot/vmlinuz-4.8.11+ root=UUID=b7c38da9-ae84-4083-a1f8-6d7b4fc33961 ro rootflags=subvol=sys syscall.x32=y syscall.x32=y console=tty1 console=ttyS0,115200,n81 [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] AGP: Checking aperture... [ 0.000000] AGP: No AGP bridge found [ 0.000000] AGP: Node 0: aperture [bus addr 0xbc000000-0xbdffffff] (32MB) [ 0.000000] Aperture pointing to e820 RAM. Ignoring. [ 0.000000] AGP: Your BIOS doesn't leave an aperture memory hole [ 0.000000] AGP: Please enable the IOMMU option in the BIOS setup [ 0.000000] AGP: This costs you 64MB of RAM [ 0.000000] AGP: Mapping aperture over RAM [mem 0xbc000000-0xbfffffff] (65536KB) [ 0.000000] PM: Registered nosave memory: [mem 0xbc000000-0xbfffffff] [ 0.000000] Memory: 8095200K/8386676K available (7596K kernel code, 710K rwdata, 2460K rodata, 948K init, 656K bss, 291476K reserved, 0K cma-reserved) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 64. [ 0.000000] RCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=6. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=6 [ 0.000000] NR_IRQS:33024 nr_irqs:472 16 [ 0.000000] Console: colour VGA+ 80x25 [ 0.000000] console [tty1] enabled [ 0.000000] console [ttyS0] enabled [ 0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns [ 0.000000] tsc: Fast TSC calibration using PIT [ 0.000000] tsc: Detected 2812.394 MHz processor [ 0.000017] Calibrating delay loop (skipped), value calculated using timer frequency.. 5624.78 BogoMIPS (lpj=11249576) [ 0.010832] pid_max: default: 32768 minimum: 301 [ 0.015508] ACPI: Core revision 20160422 [ 0.027576] ACPI: 2 ACPI AML tables successfully acquired and loaded [ 0.034035] [ 0.035627] Security Framework initialized [ 0.040033] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes) [ 0.050078] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes) [ 0.058539] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes) [ 0.065471] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes) [ 0.073136] CPU: Physical Processor ID: 0 [ 0.077197] CPU: Processor Core ID: 0 [ 0.080915] mce: CPU supports 6 MCE banks [ 0.084974] LVT offset 0 assigned for vector 0xf9 [ 0.089732] process: using AMD E400 aware idle routine [ 0.094923] Last level iTLB entries: 4KB 512, 2MB 16, 4MB 8 [ 0.100547] Last level dTLB entries: 4KB 512, 2MB 128, 4MB 64, 1GB 0 [ 0.107177] Freeing SMP alternatives memory: 32K (ffffffff81da0000 - ffffffff81da8000) [ 0.123319] smpboot: APIC(0) Converting physical 0 to logical package 0 [ 0.129983] smpboot: Max logical packages: 1 [ 0.134660] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 [ 0.285931] smpboot: CPU0: AMD Phenom(tm) II X6 1055T Processor (family: 0x10, model: 0xa, stepping: 0x0) [ 0.295721] Performance Events: AMD PMU driver. [ 0.300359] ... version: 0 [ 0.304416] ... bit width: 48 [ 0.308561] ... generic registers: 4 [ 0.312615] ... value mask: 0000ffffffffffff [ 0.317974] ... max period: 00007fffffffffff [ 0.323330] ... fixed-purpose events: 0 [ 0.327384] ... event mask: 000000000000000f [ 0.332919] BUG: unable to handle kernel NULL pointer dereference at (null) [ 0.340902] IP: [< (null)>] (null) [ 0.346063] PGD 0 [ 0.348181] Oops: 0010 [#1] SMP [ 0.351364] Modules linked in: [ 0.354526] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.11+ #1 [ 0.360582] Hardware name: System manufacturer System Product Name/M4A77T, BIOS 2401 05/18/2011 [ 0.369589] task: ffff88022e120bc0 task.stack: ffff88022e124000 [ 0.375549] RIP: 0010:[<0000000000000000>] [< (null)>] (null) [ 0.383139] RSP: 0018:ffff88022e127eb8 EFLAGS: 00010297 [ 0.388497] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000 [ 0.395675] RDX: ffff88022f002880 RSI: 0000000000000010 RDI: ffff88022f0028a0 [ 0.402853] RBP: ffffffff81d00e13 R08: fffffffffffffffe R09: ffff88022f002880 [ 0.410027] R10: 00000000700117a0 R11: 00000000dc161723 R12: ffff880237c16780 [ 0.417204] R13: ffffffff81c0b9c0 R14: ffffffff81817cc0 R15: ffff88022e120040 [ 0.424382] FS: 0000000000000000(0000) GS:ffff880237c00000(0000) knlGS:0000000000000000 [ 0.432521] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 0.438308] CR2: 0000000000000000 CR3: 0000000001c06000 CR4: 00000000000006f0 [ 0.445484] Stack: [ 0.447544] ffffffff81000410 ffffffff81c3c300 0000000000000000 0000000000000000 [ 0.455210] 0000000000000008 ffffffff81968f9c ffffffff810690c8 0000000000000000 [ 0.462865] 000000000000a080 ffffffff81d94310 0000000000000001 ffff880237c16780 [ 0.470544] Call Trace: [ 0.475836] [<ffffffff81000410>] ? do_one_initcall+0x40/0x150 [ 0.481713] [<ffffffff810690c8>] ? print_cpu_info+0x78/0xe0 [ 0.487418] [<ffffffff81ccbecf>] ? kernel_init_freeable+0x9c/0x1d4 [ 0.493726] [<ffffffff8175bc45>] ? kernel_init+0x5/0x100 [ 0.499169] [<ffffffff81766eff>] ? ret_from_fork+0x1f/0x40 [ 0.504783] [<ffffffff8175bc40>] ? rest_init+0x70/0x70 [ 0.510054] Code: Bad RIP value. [ 0.513522] RIP [< (null)>] (null) [ 0.518760] RSP <ffff88022e127eb8> [ 0.522297] CR2: 0000000000000000 [ 0.525664] ---[ end trace fdc268a9855baf7e ]--- [ 0.530334] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 [ 0.530334] [ 0.539528] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
Can't bisect/debug tonight, will do as soon as I can.
Meow!
Signature · 3 lines
The bill declaring Jesus as the King of Poland fails to specify whether the addition is at the top or end of the list of kings. What should the historians do?
Quoted 16 lines · Adam Borowski
[ 0.332919] BUG: unable to handle kernel NULL pointer dereference at (null) [ 0.340902] IP: [< (null)>] (null) [ 0.346063] PGD 0 [ 0.348181] Oops: 0010 [#1] SMP [ 0.351364] Modules linked in: [ 0.354526] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.11+ #1 [ 0.360582] Hardware name: System manufacturer System Product Name/M4A77T, BIOS 2401 05/18/2011 [ 0.369589] task: ffff88022e120bc0 task.stack: ffff88022e124000 [ 0.375549] RIP: 0010:[<0000000000000000>] [< (null)>] (null) [ 0.383139] RSP: 0018:ffff88022e127eb8 EFLAGS: 00010297 [ 0.388497] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000 [ 0.395675] RDX: ffff88022f002880 RSI: 0000000000000010 RDI: ffff88022f0028a0 [ 0.402853] RBP: ffffffff81d00e13 R08: fffffffffffffffe R09: ffff88022f002880 [ 0.410027] R10: 00000000700117a0 R11: 00000000dc161723 R12: ffff880237c16780 [ 0.417204] R13: ffffffff81c0b9c0 R14: ffffffff81817cc0 R15: ffff88022e120040 [ 0.424382] FS: 0000000000000000(0000) GS:ffff880237c00000(0000) knlGS:0000000000000000
Quoted 8 lines
[ 0.432521] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 0.438308] CR2: 0000000000000000 CR3: 0000000001c06000 CR4: 00000000000006f0 [ 0.445484] Stack: [ 0.447544] ffffffff81000410 ffffffff81c3c300 0000000000000000 0000000000000000 [ 0.455210] 0000000000000008 ffffffff81968f9c ffffffff810690c8 0000000000000000 [ 0.462865] 000000000000a080 ffffffff81d94310 0000000000000001 ffff880237c16780 [ 0.470544] Call Trace: [ 0.475836] [<ffffffff81000410>] ? do_one_initcall+0x40/0x150
Booting with initcall_debug might give us some info.
Signature · 4 lines
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.Quoted 189 lines · Adam Borowski
Quoted 1 line · Greg KH
I'm announcing the release of the 4.8.11 kernel.
... which splats during early boot where 4.8.10 worked fine.
[ 0.000000] Linux version 4.8.11+ (kilobyte@umbar) (gcc version 6.2.1 20161124 (Debian 6.2.1-5) ) #1 SMP Sat Nov 26 22:32:52 CET 2016 [ 0.000000] Command line: BOOT_IMAGE=/sys/boot/vmlinuz-4.8.11+ root=UUID=b7c38da9-ae84-4083-a1f8-6d7b4fc33961 ro rootflags=subvol=sys syscall.x32=y syscall.x32=y console=tty1 console=ttyS0,115200,n81 [ 0.000000] x86/fpu: Legacy x87 FPU detected. [ 0.000000] x86/fpu: Using 'eager' FPU context switches. [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ebff] usable [ 0.000000] BIOS-e820: [mem 0x000000000009ec00-0x000000000009ffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000000e4000-0x00000000000fffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000c7e7ffff] usable [ 0.000000] BIOS-e820: [mem 0x00000000c7e80000-0x00000000c7e97fff] ACPI data [ 0.000000] BIOS-e820: [mem 0x00000000c7e98000-0x00000000c7ecffff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x00000000c7ed0000-0x00000000c7efffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000ff700000-0x00000000ffffffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x0000000237ffffff] usable [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] SMBIOS 2.5 present. [ 0.000000] AGP: No AGP bridge found [ 0.000000] e820: last_pfn = 0x238000 max_arch_pfn = 0x400000000 [ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WC UC- WT [ 0.000000] e820: last_pfn = 0xc7e80 max_arch_pfn = 0x400000000 [ 0.000000] Using GB pages for direct mapping [ 0.000000] RAMDISK: [mem 0x3668d000-0x3733dfff] [ 0.000000] ACPI: Early table checksum verification disabled [ 0.000000] ACPI: RSDP 0x00000000000FB510 000024 (v02 ACPIAM) [ 0.000000] ACPI: XSDT 0x00000000C7E80100 00005C (v01 051811 XSDT1038 20110518 MSFT 00000097) [ 0.000000] ACPI: FACP 0x00000000C7E80290 0000F4 (v03 051811 FACP1038 20110518 MSFT 00000097) [ 0.000000] ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20160422/tbfadt-658) [ 0.000000] ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 64/32 (20160422/tbfadt-624) [ 0.000000] ACPI: DSDT 0x00000000C7E80450 00DB3A (v01 A1540 A1540001 00000001 INTL 20060113) [ 0.000000] ACPI: FACS 0x00000000C7E98000 000040 [ 0.000000] ACPI: FACS 0x00000000C7E98000 000040 [ 0.000000] ACPI: APIC 0x00000000C7E80390 00007C (v01 051811 APIC1038 20110518 MSFT 00000097) [ 0.000000] ACPI: MCFG 0x00000000C7E80410 00003C (v01 051811 OEMMCFG 20110518 MSFT 00000097) [ 0.000000] ACPI: OEMB 0x00000000C7E98040 000072 (v01 051811 OEMB1038 20110518 MSFT 00000097) [ 0.000000] ACPI: SRAT 0x00000000C7E8F650 000108 (v01 AMD FAM_F_10 00000002 AMD 00000001) [ 0.000000] ACPI: HPET 0x00000000C7E8F760 000038 (v01 051811 OEMHPET 20110518 MSFT 00000097) [ 0.000000] ACPI: SSDT 0x00000000C7E8F7A0 000DA4 (v01 A M I POWERNOW 00000001 AMD 00000001) [ 0.000000] SRAT: PXM 0 -> APIC 0x00 -> Node 0 [ 0.000000] SRAT: PXM 0 -> APIC 0x01 -> Node 0 [ 0.000000] SRAT: PXM 0 -> APIC 0x02 -> Node 0 [ 0.000000] SRAT: PXM 0 -> APIC 0x03 -> Node 0 [ 0.000000] SRAT: PXM 0 -> APIC 0x04 -> Node 0 [ 0.000000] SRAT: PXM 0 -> APIC 0x05 -> Node 0 [ 0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0x0009ffff] [ 0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x00100000-0xc7ffffff] [ 0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0x237ffffff] [ 0.000000] NUMA: Node 0 [mem 0x00000000-0x0009ffff] + [mem 0x00100000-0xc7ffffff] -> [mem 0x00000000-0xc7ffffff] [ 0.000000] NUMA: Node 0 [mem 0x00000000-0xc7ffffff] + [mem 0x100000000-0x237ffffff] -> [mem 0x00000000-0x237ffffff] [ 0.000000] NODE_DATA(0) allocated [mem 0x237ffa000-0x237ffdfff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.000000] DMA32 [mem 0x0000000001000000-0x00000000ffffffff] [ 0.000000] Normal [mem 0x0000000100000000-0x0000000237ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009dfff] [ 0.000000] node 0: [mem 0x0000000000100000-0x00000000c7e7ffff] [ 0.000000] node 0: [mem 0x0000000100000000-0x0000000237ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x0000000237ffffff] [ 0.000000] ACPI: PM-Timer IO Port: 0x808 [ 0.000000] IOAPIC[0]: apic_id 6, version 33, address 0xfec00000, GSI 0-23 [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level) [ 0.000000] Using ACPI (MADT) for SMP configuration information [ 0.000000] ACPI: HPET id: 0x8300 base: 0xfed00000 [ 0.000000] smpboot: Allowing 6 CPUs, 0 hotplug CPUs [ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009efff] [ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff] [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000e3fff] [ 0.000000] PM: Registered nosave memory: [mem 0x000e4000-0x000fffff] [ 0.000000] PM: Registered nosave memory: [mem 0xc7e80000-0xc7e97fff] [ 0.000000] PM: Registered nosave memory: [mem 0xc7e98000-0xc7ecffff] [ 0.000000] PM: Registered nosave memory: [mem 0xc7ed0000-0xc7efffff] [ 0.000000] PM: Registered nosave memory: [mem 0xc7f00000-0xff6fffff] [ 0.000000] PM: Registered nosave memory: [mem 0xff700000-0xffffffff] [ 0.000000] e820: [mem 0xc7f00000-0xff6fffff] available for PCI devices [ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns [ 0.000000] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:6 nr_node_ids:1 [ 0.000000] percpu: Embedded 33 pages/cpu @ffff880237c00000 s96536 r8192 d30440 u262144 [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 2063886 [ 0.000000] Policy zone: Normal [ 0.000000] Kernel command line: BOOT_IMAGE=/sys/boot/vmlinuz-4.8.11+ root=UUID=b7c38da9-ae84-4083-a1f8-6d7b4fc33961 ro rootflags=subvol=sys syscall.x32=y syscall.x32=y console=tty1 console=ttyS0,115200,n81 [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] AGP: Checking aperture... [ 0.000000] AGP: No AGP bridge found [ 0.000000] AGP: Node 0: aperture [bus addr 0xbc000000-0xbdffffff] (32MB) [ 0.000000] Aperture pointing to e820 RAM. Ignoring. [ 0.000000] AGP: Your BIOS doesn't leave an aperture memory hole [ 0.000000] AGP: Please enable the IOMMU option in the BIOS setup [ 0.000000] AGP: This costs you 64MB of RAM [ 0.000000] AGP: Mapping aperture over RAM [mem 0xbc000000-0xbfffffff] (65536KB) [ 0.000000] PM: Registered nosave memory: [mem 0xbc000000-0xbfffffff] [ 0.000000] Memory: 8095200K/8386676K available (7596K kernel code, 710K rwdata, 2460K rodata, 948K init, 656K bss, 291476K reserved, 0K cma-reserved) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 64. [ 0.000000] RCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=6. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=6 [ 0.000000] NR_IRQS:33024 nr_irqs:472 16 [ 0.000000] Console: colour VGA+ 80x25 [ 0.000000] console [tty1] enabled [ 0.000000] console [ttyS0] enabled [ 0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns [ 0.000000] tsc: Fast TSC calibration using PIT [ 0.000000] tsc: Detected 2812.394 MHz processor [ 0.000017] Calibrating delay loop (skipped), value calculated using timer frequency.. 5624.78 BogoMIPS (lpj=11249576) [ 0.010832] pid_max: default: 32768 minimum: 301 [ 0.015508] ACPI: Core revision 20160422 [ 0.027576] ACPI: 2 ACPI AML tables successfully acquired and loaded [ 0.034035] [ 0.035627] Security Framework initialized [ 0.040033] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes) [ 0.050078] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes) [ 0.058539] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes) [ 0.065471] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes) [ 0.073136] CPU: Physical Processor ID: 0 [ 0.077197] CPU: Processor Core ID: 0 [ 0.080915] mce: CPU supports 6 MCE banks [ 0.084974] LVT offset 0 assigned for vector 0xf9 [ 0.089732] process: using AMD E400 aware idle routine [ 0.094923] Last level iTLB entries: 4KB 512, 2MB 16, 4MB 8 [ 0.100547] Last level dTLB entries: 4KB 512, 2MB 128, 4MB 64, 1GB 0 [ 0.107177] Freeing SMP alternatives memory: 32K (ffffffff81da0000 - ffffffff81da8000) [ 0.123319] smpboot: APIC(0) Converting physical 0 to logical package 0 [ 0.129983] smpboot: Max logical packages: 1 [ 0.134660] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 [ 0.285931] smpboot: CPU0: AMD Phenom(tm) II X6 1055T Processor (family: 0x10, model: 0xa, stepping: 0x0) [ 0.295721] Performance Events: AMD PMU driver. [ 0.300359] ... version: 0 [ 0.304416] ... bit width: 48 [ 0.308561] ... generic registers: 4 [ 0.312615] ... value mask: 0000ffffffffffff [ 0.317974] ... max period: 00007fffffffffff [ 0.323330] ... fixed-purpose events: 0 [ 0.327384] ... event mask: 000000000000000f [ 0.332919] BUG: unable to handle kernel NULL pointer dereference at (null) [ 0.340902] IP: [< (null)>] (null) [ 0.346063] PGD 0 [ 0.348181] Oops: 0010 [#1] SMP [ 0.351364] Modules linked in: [ 0.354526] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.11+ #1 [ 0.360582] Hardware name: System manufacturer System Product Name/M4A77T, BIOS 2401 05/18/2011 [ 0.369589] task: ffff88022e120bc0 task.stack: ffff88022e124000 [ 0.375549] RIP: 0010:[<0000000000000000>] [< (null)>] (null) [ 0.383139] RSP: 0018:ffff88022e127eb8 EFLAGS: 00010297 [ 0.388497] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000 [ 0.395675] RDX: ffff88022f002880 RSI: 0000000000000010 RDI: ffff88022f0028a0 [ 0.402853] RBP: ffffffff81d00e13 R08: fffffffffffffffe R09: ffff88022f002880 [ 0.410027] R10: 00000000700117a0 R11: 00000000dc161723 R12: ffff880237c16780 [ 0.417204] R13: ffffffff81c0b9c0 R14: ffffffff81817cc0 R15: ffff88022e120040 [ 0.424382] FS: 0000000000000000(0000) GS:ffff880237c00000(0000) knlGS:0000000000000000 [ 0.432521] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 0.438308] CR2: 0000000000000000 CR3: 0000000001c06000 CR4: 00000000000006f0 [ 0.445484] Stack: [ 0.447544] ffffffff81000410 ffffffff81c3c300 0000000000000000 0000000000000000 [ 0.455210] 0000000000000008 ffffffff81968f9c ffffffff810690c8 0000000000000000 [ 0.462865] 000000000000a080 ffffffff81d94310 0000000000000001 ffff880237c16780 [ 0.470544] Call Trace: [ 0.475836] [<ffffffff81000410>] ? do_one_initcall+0x40/0x150 [ 0.481713] [<ffffffff810690c8>] ? print_cpu_info+0x78/0xe0 [ 0.487418] [<ffffffff81ccbecf>] ? kernel_init_freeable+0x9c/0x1d4 [ 0.493726] [<ffffffff8175bc45>] ? kernel_init+0x5/0x100 [ 0.499169] [<ffffffff81766eff>] ? ret_from_fork+0x1f/0x40 [ 0.504783] [<ffffffff8175bc40>] ? rest_init+0x70/0x70 [ 0.510054] Code: Bad RIP value. [ 0.513522] RIP [< (null)>] (null) [ 0.518760] RSP <ffff88022e127eb8> [ 0.522297] CR2: 0000000000000000 [ 0.525664] ---[ end trace fdc268a9855baf7e ]--- [ 0.530334] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 [ 0.530334] [ 0.539528] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
Quoted 1 line
Can't bisect/debug tonight, will do as soon as I can.
Maybe this is https://bugs.debian.org/845690, although the people observing that problem did not even get to see any messages on the console.
Cheers,
Sven