Re: [PATCH v2 3/3] KVM: VMX: make MSR bitmaps per-VCPU

2018-01-30 Thread David Woodhouse
On Tue, 2018-01-30 at 17:23 +0100, Radim Krčmář wrote: > > The physical address of the nested msr_bitmap is never loaded into vmcs. > > The resolution you provided had extra hunk in prepare_vmcs02_full(): > > +   vmcs_write64(MSR_BITMAP, __pa(vmx->nested.vmcs02.msr_bitmap)); > > I have qu

Re: [PATCH v2] drm/edid: use true and false for boolean values

2018-01-30 Thread Daniel Vetter
On Tue, Jan 30, 2018 at 11:02:44AM -0500, Sean Paul wrote: > On Tue, Jan 30, 2018 at 05:19:46PM +0200, Ville Syrjälä wrote: > > On Tue, Jan 30, 2018 at 10:09:27AM -0500, Sean Paul wrote: > > > On Tue, Jan 30, 2018 at 04:05:28AM -0600, Gustavo A. R. Silva wrote: > > > > Assign true or false to boole

Re: [9/8] KVM: x86: limit MSR_IA32_SPEC_CTRL access based on CPUID availability

2018-01-30 Thread Jim Mattson
All MSR intercepts are enabled by default, so I don't think this patch does anything at all, unless I'm missing some context. On Tue, Jan 30, 2018 at 5:21 AM, Mihai Carabas wrote: > Hello Paolo, > > I've back ported this patch on 4.1, after adding the per-vcpu MSR bitmap. > Also enabled the SPEC_

Re: [PATCH] iio: adc: STM32_DFSDM_ADC should depend on HAS_DMA

2018-01-30 Thread Mark Brown
On Tue, Jan 30, 2018 at 04:31:24PM +0100, Geert Uytterhoeven wrote: > On Tue, Jan 30, 2018 at 4:03 PM, Mark Brown wrote: > > Once again I have to ask why we're doing this per driver and not having > > the few architectures that have this issue set something up. > Because doing so would lead us t

Re: [GIT PULL] inode->i_version rework for v4.16

2018-01-30 Thread Linus Torvalds
On Tue, Jan 30, 2018 at 4:05 AM, Jeff Layton wrote: > > My intent here was to have this handle wraparound using the same sort of > method that the time_before/time_after macros do. Obviously, I didn't > document that well. Oh, the intent was clear. The implementation was wrong. Note that "time_b

Re: [PATCH V3 0/5] bugs fix for large PEBS mmap read and rdpmc read

2018-01-30 Thread Stephane Eranian
On Tue, Jan 30, 2018 at 7:25 AM, Liang, Kan wrote: > > > On 1/30/2018 10:04 AM, Jiri Olsa wrote: >> >> On Tue, Jan 30, 2018 at 09:59:15AM -0500, Liang, Kan wrote: >>> >>> >>> >>> On 1/30/2018 8:39 AM, Jiri Olsa wrote: On Tue, Jan 30, 2018 at 01:16:39AM -0800, Stephane Eranian wrote:

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 6:01 PM, Jonathan Cameron wrote: > On Mon, 29 Jan 2018 16:07:02 +0200 > Andy Shevchenko wrote: >> > But that would take much longer. Feel free to propose it and a patch >> > removing the ifdef fun if you like! >> Where can I see the patch? > Doh. I clearly forgot to pu

Re: [9/8] KVM: x86: limit MSR_IA32_SPEC_CTRL access based on CPUID availability

2018-01-30 Thread Mihai Carabas
On 30.01.2018 18:33, Jim Mattson wrote: All MSR intercepts are enabled by default, so I don't think this patch does anything at all, unless I'm missing some context. Currently on upstream some MSR are intercepted: https://github.com/torvalds/linux/blob/master/arch/x86/kvm/vmx.c#L6838 In par

Re: [PATCH] staging: android: ion: Add implementation of dma_buf_vmap and dma_buf_vunmap

2018-01-30 Thread Greg KH
On Tue, Jan 30, 2018 at 05:47:38PM +0200, Alexey Skidanov wrote: > Signed-off-by: Alexey Skidanov > --- I can't take patches without any changelog text at all, sorry :( Please fix up and describe _why_ you are making this change. thanks, greg k-h

Re: [PATCH V3 0/5] bugs fix for large PEBS mmap read and rdpmc read

2018-01-30 Thread Liang, Kan
On 1/30/2018 11:36 AM, Stephane Eranian wrote: On Tue, Jan 30, 2018 at 7:25 AM, Liang, Kan wrote: On 1/30/2018 10:04 AM, Jiri Olsa wrote: On Tue, Jan 30, 2018 at 09:59:15AM -0500, Liang, Kan wrote: On 1/30/2018 8:39 AM, Jiri Olsa wrote: On Tue, Jan 30, 2018 at 01:16:39AM -0800, Step

Re: [PATCH 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 2:07 PM, Baolin Wang wrote: > The Spreadtrum SC9860 platform GPIO controller contains 16 groups and > each group contains 16 GPIOs. Each GPIO can set input/output and has > the interrupt capability. > +config GPIO_SPRD > + bool "Spreadtrum GPIO support" Either you

Re: [PATCH v6 3/4] vfs: Add timestamp_truncate() api

2018-01-30 Thread Arnd Bergmann
On Wed, Jan 24, 2018 at 7:00 PM, Linus Torvalds wrote: > On Wed, Jan 24, 2018 at 3:56 AM, Arnd Bergmann wrote: >> On Tue, Jan 23, 2018 at 5:25 PM, Deepa Dinamani >> wrote: >>> >>> I checked POSIX again. There is no mention of tv_nsec being positive >>> always for utimes. >>> And, the long term

Re: [PATCHv1] dt-bindings: misc: add Intel Stratix10 service layer binding

2018-01-30 Thread Rob Herring
On Tue, Jan 23, 2018 at 01:25:02PM -0600, richard.g...@linux.intel.com wrote: > From: Richard Gong > > Add a device tree binding for the Intel Stratix10 service layer driver > > Signed-off-by: Richard Gong > --- > .../devicetree/bindings/misc/intel-service.txt | 56 > +

Re: [9/8] KVM: x86: limit MSR_IA32_SPEC_CTRL access based on CPUID availability

2018-01-30 Thread Jim Mattson
It's really hard to tell which patches are being proposed for which repositories, but assuming that everything else is correct, I don't think your condition is adequate. What if the physical CPU and the virtual CPU both have CPUID.(EAX=7H,ECX=0):EDX[26], but only the physical CPU has CPUID.(EAX=7H,

[PATCH] platform/x86: dell-laptop: Allocate buffer on heap rather than globally

2018-01-30 Thread Mario Limonciello
There may be race conditions with multiple different functions working on a module wide buffer causing one function to get the wrong results. Suggested-by: Pali Rohar Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-laptop.c | 188 - 1 file chan

Re: [PATCH v4 1/2] media: dt-bindings: Add OF properties to ov7670

2018-01-30 Thread Rob Herring
On Wed, Jan 24, 2018 at 10:30:49AM +0100, Jacopo Mondi wrote: > Describe newly introduced OF properties for ov7670 image sensor. > The driver supports two standard properties to configure synchronism > signals polarities and one custom property already supported as > platform data options to suppre

Re: [PATCH] irqchip/gic-v3: Fix gic_chip specific flag

2018-01-30 Thread Marc Zyngier
On 30/01/18 02:56, fangxiang wrote: > Both IRQCHIP_SKIP_SET_WAKE and .irq_set_wake() is > not set in gic_chip V3. This causes > set_irq_wake_real() return -ENXIO and a > WARN(Unbalanced IRQ ... wake disable ...) in > irq_set_irq_wake(). > > Signed-off-by: fangxiang > --- > drivers/irqchip/irq-gi

Re: [PATCH v5 08/13] iommu/rockchip: Control clocks needed to access the IOMMU

2018-01-30 Thread Rob Herring
On Wed, Jan 24, 2018 at 06:35:11PM +0800, Jeffy Chen wrote: > From: Tomasz Figa > > Current code relies on master driver enabling necessary clocks before > IOMMU is accessed, however there are cases when the IOMMU should be > accessed while the master is not running yet, for example allocating >

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 6:40 PM, Andy Shevchenko wrote: > On Tue, Jan 30, 2018 at 6:01 PM, Jonathan Cameron > wrote: >> On Mon, 29 Jan 2018 16:07:02 +0200 >> Andy Shevchenko wrote: > >>> > But that would take much longer. Feel free to propose it and a patch >>> > removing the ifdef fun if you l

Re: [PATCH v3 1/4] dt-bindings: firmware: Add bindings for ZynqMP firmware

2018-01-30 Thread Rob Herring
On Wed, Jan 24, 2018 at 03:21:11PM -0800, Jolly Shah wrote: > Add documentation to describe Xilinx ZynqMP firmware driver > bindings. Firmware driver provides an interface to firmware > APIs. Interface APIs can be used by any driver to communicate > to PMUFW (Platform Management Unit). > > Signed-

Re: [PATCH 5/6] Documentation for Pmalloc

2018-01-30 Thread Jonathan Corbet
On Tue, 30 Jan 2018 17:14:45 +0200 Igor Stoppa wrote: > Detailed documentation about the protectable memory allocator. > > Signed-off-by: Igor Stoppa > --- > Documentation/core-api/pmalloc.txt | 104 > + > 1 file changed, 104 insertions(+) > create mode 10

[PATCH] checkpatch: warn if changed lines exceeds a maximum size

2018-01-30 Thread Brown, Nicholas
Changed lines is the total of inserted and deleted lines. By default there is no limit, --max-changed-lines may be used to set a value. Some users may wish to encourage that patches are split into smaller parts using this. See Documentation/process/submitting-patches.rst#split-changes Signed-off-b

Re: [PATCH 3/3] KVM: VMX: make MSR bitmaps per-VCPU

2018-01-30 Thread Jim Mattson
On Fri, Jan 26, 2018 at 2:51 PM, Paolo Bonzini wrote: > Place the MSR bitmap in struct loaded_vmcs, and update it in place > every time the x2apic or APICv state can change. This is rare and > the loop can handle 64 MSRs per iteration, in a similar fashion as > nested_vmx_prepare_msr_bitmap. > >

Re: [9/8] KVM: x86: limit MSR_IA32_SPEC_CTRL access based on CPUID availability

2018-01-30 Thread David Woodhouse
On Tue, 2018-01-30 at 08:57 -0800, Jim Mattson wrote: > It's really hard to tell which patches are being proposed for which > repositories, but assuming that everything else is correct, I don't > think your condition is adequate. What if the physical CPU and the > virtual CPU both have CPUID.(EAX=7

Re: [PATCH] platform/x86: dell-laptop: Allocate buffer on heap rather than globally

2018-01-30 Thread Pali Rohár
On Tuesday 30 January 2018 10:59:00 Mario Limonciello wrote: > There may be race conditions with multiple different functions working > on a module wide buffer causing one function to get the wrong results. Yes, this is better. We really do not need to allocate shared buffer in dell-laptop anymore

Re: [PATCH v3 2/4] KVM: x86: Add IBPB support

2018-01-30 Thread Jim Mattson
On Mon, Jan 29, 2018 at 4:10 PM, KarimAllah Ahmed wrote: > From: Ashok Raj > > Add MSR passthrough for MSR_IA32_PRED_CMD and place branch predictor > barriers on switching between VMs to avoid inter VM Spectre-v2 attacks. > > [peterz: rebase and changelog rewrite] > [karahmed: - rebase >

Re: [PATCH] platform/x86: dell-laptop: Allocate buffer on heap rather than globally

2018-01-30 Thread Pali Rohár
On Tuesday 30 January 2018 10:59:00 Mario Limonciello wrote: > There may be race conditions with multiple different functions working > on a module wide buffer causing one function to get the wrong results. > > Suggested-by: Pali Rohar > Signed-off-by: Mario Limonciello And Fixes: 549b4930f0576

Re: [patch -mm v2 2/3] mm, memcg: replace cgroup aware oom killer mount option with tunable

2018-01-30 Thread Johannes Weiner
On Tue, Jan 30, 2018 at 01:20:11PM +0100, Michal Hocko wrote: > From 361275a05ad7026b8f721f8aa756a4975a2c42b1 Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Tue, 30 Jan 2018 09:54:15 +0100 > Subject: [PATCH] oom, memcg: clarify root memcg oom accounting > > David Rientjes has pointed out t

[PATCH v4 1/3] x86/msr: Add AMD Core Perf Extension MSRs

2018-01-30 Thread Janakarajan Natarajan
Add the EventSelect and Counter MSRs for AMD Core Perf Extension. Signed-off-by: Janakarajan Natarajan --- arch/x86/include/asm/msr-index.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index e7b983a..28853

[GIT PULL] SELinux patches for v4.16

2018-01-30 Thread Paul Moore
max_chain_len (2017-10-16 18:40:09 -0400) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git tags/selinux-pr-20180130 for you to fetch changes up to 4b14752ec4e0d87126e636384cf37c8dd9df157c: selinux: skip bounded transition

[PATCH v4 0/3] Support Perf Extensions on AMD KVM guests

2018-01-30 Thread Janakarajan Natarajan
This patchset adds support for Perf Extension on AMD KVM guests. When perf runs on a guest with family = 15h || 17h, the MSRs that are accessed, when the Perf Extension flag is made available, differ from the existing K7 MSRs. The accesses are to the AMD Core Performance Extension counters which p

[PATCH v4 3/3] x86/kvm: Expose AMD Core Perf Extension flag to guests

2018-01-30 Thread Janakarajan Natarajan
Expose the AMD Core Perf Extension flag to the guests. Signed-off-by: Janakarajan Natarajan --- arch/x86/kvm/cpuid.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index 0099e10..8c95a7c 100644 --- a/arch/x86/kvm/cpuid.c +++

[PATCH v4 2/3] x86/kvm: Add support for AMD Core Perf Extension in guest

2018-01-30 Thread Janakarajan Natarajan
Add support for AMD Core Performance counters in the guest. The base event select and counter MSRs are changed. In addition, with the core extension, there are 2 extra counters available for performance measurements for a total of 6. With the new MSRs, the logic to map them to the gp_counters[] is

[PATCH net] r8169: fix RTL8168EP take too long to complete driver initialization.

2018-01-30 Thread Chunhao Lin
Driver check the wrong register bit in rtl_ocp_tx_cond() that keep driver waiting until timeout. Fix this by waiting for the right register bit. Signed-off-by: Chunhao Lin --- drivers/net/ethernet/realtek/r8169.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ne

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 7:25 PM, Steve Presser wrote: > Andy, > > Where did the assertion the second device is a magnetometer come from? Just > the data sheet? Yep. See chapter 8.2. Isn't enough proof? Or you believe in two accelerometers with off-by-one conflicting address on a cheap laptop with

Re: [9/8] KVM: x86: limit MSR_IA32_SPEC_CTRL access based on CPUID availability

2018-01-30 Thread Jim Mattson
On Tue, Jan 30, 2018 at 9:14 AM, David Woodhouse wrote: > On Tue, 2018-01-30 at 08:57 -0800, Jim Mattson wrote: >> It's really hard to tell which patches are being proposed for which >> repositories, but assuming that everything else is correct, I don't >> think your condition is adequate. What if

Re: [PATCH v3 2/4] KVM: x86: Add IBPB support

2018-01-30 Thread David Woodhouse
On Tue, 2018-01-30 at 09:19 -0800, Jim Mattson wrote: > > Are you planning to allow L2 to write MSR_IA32_PRED_CMD without L0 > intercepting it, if the MSR write intercept is disabled in both the > vmcs01 MSR permission bitmap and the vmcs12 MSR permission bitmap? I don't see why we shouldn't. sm

Re: [9/8] KVM: x86: limit MSR_IA32_SPEC_CTRL access based on CPUID availability

2018-01-30 Thread Thomas Gleixner
On Tue, 30 Jan 2018, David Woodhouse wrote: > On Tue, 2018-01-30 at 08:57 -0800, Jim Mattson wrote: > > It's really hard to tell which patches are being proposed for which > > repositories, but assuming that everything else is correct, I don't > > think your condition is adequate. What if the phys

[PATCH v5 6/6] arm: dts: sun8i: h3-h5: ir register size should be the whole memory block

2018-01-30 Thread Philipp Rossak
The size of the register should be the size of the whole memory block, not just the registers, that are needed. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/

[PATCH v5 5/6] arm: dts: sun8i: a83t: bananapi-m3: Enable IR controller

2018-01-30 Thread Philipp Rossak
The Bananapi M3 has an onboard IR receiver. This enables the onboard IR receiver subnode. Unlike the other IR receivers this one needs a base clock frequency of 300 Hz (3 MHz), to be able to work. Signed-off-by: Philipp Rossak Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t-bananapi

[PATCH] libnvdimm, namespace: remove redundant initialization of 'nd_mapping'

2018-01-30 Thread Colin King
From: Colin Ian King Pointer nd_mapping is being initialized to a value that is never read, instead it is being updated to a new value in all the cases where it is being read afterwards, hence the initialization is redundant and can be removed. Cleans up clang warning: drivers/nvdimm/namespace_d

[PATCH v5 1/6] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2018-01-30 Thread Philipp Rossak
This patch updates the sunxi-ir driver to set the base clock frequency from devicetree. This is necessary since there are different ir receivers on the market, that operate with different frequencies. So this value could be set if the attached ir receiver needs a different base clock frequency, th

[PATCH v5 4/6] arm: dts: sun8i: a83t: Add support for the cir interface

2018-01-30 Thread Philipp Rossak
The cir interface is like on the H3 located at 0x01f02000 and is exactly the same. This patch adds support for the ir interface on the A83T. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-a83t.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/su

[PATCH v5 3/6] arm: dts: sun8i: a83t: Add the cir pin for the A83T

2018-01-30 Thread Philipp Rossak
The CIR Pin of the A83T is located at PL12. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 7f4955a5fab7..f7f78a27e21d 100644 --- a/arch/arm/b

[PATCH v5 0/6] IR support for A83T

2018-01-30 Thread Philipp Rossak
This patch series adds support for the sunxi A83T ir module and enhances the sunxi-ir driver. Right now the base clock frequency for the ir driver is a hard coded define and is set to 8 MHz. This works for the most common ir receivers. On the Sinovoip Bananapi M3 the ir receiver needs, a 3 MHz ba

[PATCH v5 2/6] media: dt: bindings: Update binding documentation for sunxi IR controller

2018-01-30 Thread Philipp Rossak
This patch updates documentation for Device-Tree bindings for sunxi IR controller and adds the new optional property for the base clock frequency. Signed-off-by: Philipp Rossak Acked-by: Maxime Ripard Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 3 +++ 1

Re: [PATCH] x86/speculation: Use Indirect Branch Prediction Barrier in context switch

2018-01-30 Thread Josh Poimboeuf
On Mon, Jan 29, 2018 at 10:04:47PM +, David Woodhouse wrote: > From: Tim Chen > > Flush indirect branches when switching into a process that marked itself > non dumpable. This protects high value processes like gpg better, > without having too high performance overhead. I wonder what the poi

Re: [PATCH v3 4/4] KVM: VMX: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-30 Thread Jim Mattson
On Mon, Jan 29, 2018 at 4:10 PM, KarimAllah Ahmed wrote: > [ Based on a patch from Ashok Raj ] > > Add direct access to MSR_IA32_SPEC_CTRL for guests. This is needed for > guests that will only mitigate Spectre V2 through IBRS+IBPB and will not > be using a retpoline+IBPB based approach. > > To a

Re: [PATCH v2] mm/swap.c: make functions and their kernel-doc agree

2018-01-30 Thread Randy Dunlap
On 01/30/2018 04:34 AM, Michal Hocko wrote: > On Mon 29-01-18 16:43:55, Randy Dunlap wrote: >> From: Randy Dunlap >> >> Fix some basic kernel-doc notation in mm/swap.c: >> - for function lru_cache_add_anon(), make its kernel-doc function name >> match its function name and change colon to hyphen

Re: i8042 AUX port [serio1] suspend takes a second on Dell XPS 13 9360 and TUXEDO Book 1406

2018-01-30 Thread Dmitry Torokhov
Hi Paul, On Tue, Jan 30, 2018 at 06:36:34PM +0100, Paul Menzel wrote: > Dear Linux folks, > > > I do not know, when it started, but with Linux 4.14-rc8 and 4.15, > benchmarking suspend and resume time with `sleepgraph.py` [1][2], there is a > regression, that i8042 AUX port [serio1] suspend take

Re: [PATCH RFC 1/4] drivers: irqchip: pdc: add support for PDC interrupt controller

2018-01-30 Thread Lina Iyer
Hi Mark, On Wed, Jan 24 2018 at 14:20 +, Marc Zyngier wrote: Hi Lina, Archana, On 23/01/18 17:56, Lina Iyer wrote: From : Archana Sathyakumar The Power Domain Controller (PDC) hardware block on Qualcomm SoCs houses an interrupt controller along with other domain control functions to hand

[PATCH v3] Staging: iio: ade7758: Expand buf_lock to cover both buffer and state protection

2018-01-30 Thread Shreeya Patel
iio_dev->mlock is to be used only by the IIO core for protecting device mode changes between INDIO_DIRECT and INDIO_BUFFER. This patch replaces the use of mlock with the already established buf_lock mutex. Introducing 'unlocked' forms of read and write registers. The read/write frequency function

Re: [PATCH 1/2] acpi: arm64: add iort support for PMCG

2018-01-30 Thread Lorenzo Pieralisi
On Tue, Jan 30, 2018 at 10:39:20AM +, Shameerali Kolothum Thodi wrote: > Hi Neil/Lorenzo, > > > -Original Message- > > From: linux-arm-kernel [mailto:linux-arm-kernel-boun...@lists.infradead.org] > > On Behalf Of Neil Leeder > > Sent: Friday, August 04, 2017 8:59 PM > > To: Will Deacon

[RFC PATCH v4 1/2] fuse: introduce new fs_type flag FS_IMA_NO_CACHE

2018-01-30 Thread Dongsu Park
From: Alban Crequy This new fs_type flag FS_IMA_NO_CACHE means files should be re-measured, re-appraised and re-audited each time. Cached integrity results should not be used. It is useful in FUSE because the userspace FUSE process can change the underlying files at any time without notifying th

[RFC PATCH v4 2/2] ima: force re-appraisal on filesystems with FS_IMA_NO_CACHE

2018-01-30 Thread Dongsu Park
From: Alban Crequy This patch forces files to be re-measured, re-appraised and re-audited on file systems with the feature flag FS_IMA_NO_CACHE. In that way, cached integrity results won't be used. How to test this: The test I did was using a patched version of the memfs FUSE driver [1][2] and

Re: [PATCH] checkpatch: warn if changed lines exceeds a maximum size

2018-01-30 Thread Brown, Nicholas
On Tue, 2018-01-30 at 08:10 -0800, Joe Perches wrote: > On Tue, 2018-01-30 at 15:57 +, Brown, Nicholas wrote: > > Changed lines is the total of inserted and deleted lines. > > By default there is no limit, --max-changed-lines may be used to > > set a > > value. Some users may wish to encourage

[RFC PATCH v4 0/2] ima,fuse: introduce new fs flag FS_IMA_NO_CACHE

2018-01-30 Thread Dongsu Park
This patchset v4 introduces a new fs flag FS_IMA_NO_CACHE and uses it in FUSE. This forces files to be re-measured, re-appraised and re-audited on file systems with the feature flag FS_IMA_NO_CACHE. In that way, cached integrity results won't be used. There was a previous attempt (unmerged) with a

Re: i8042 AUX port [serio1] suspend takes a second on Dell XPS 13 9360 and TUXEDO Book 1406

2018-01-30 Thread Dmitry Torokhov
On Tue, Jan 30, 2018 at 09:52:45AM -0800, Dmitry Torokhov wrote: > Hi Paul, > > On Tue, Jan 30, 2018 at 06:36:34PM +0100, Paul Menzel wrote: > > Dear Linux folks, > > > > > > I do not know, when it started, but with Linux 4.14-rc8 and 4.15, > > benchmarking suspend and resume time with `sleepgra

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 7:38 PM, Andy Shevchenko wrote: > On Tue, Jan 30, 2018 at 7:25 PM, Steve Presser wrote: >> Andy, >> >> Where did the assertion the second device is a magnetometer come from? Just >> the data sheet? > > Yep. See chapter 8.2. Isn't enough proof? Or you believe in two > accel

Re: Memory hotplug not increasing the total RAM

2018-01-30 Thread Pavel Tatashin
Hi Michal, Thank you for taking care of the problem. The patch may introduce a small performance regression during normal boot, as we add a branch into a hot initialization path. But, it fixes a current problem, so: Reviewed-by: Pavel Tatashin However, I think we should change the hotplug code

Re: [GIT pull] Timer core updates for 4.16

2018-01-30 Thread Linus Torvalds
On Mon, Jan 29, 2018 at 10:30 PM, Ingo Molnar wrote: > > These are in cases significant driver simplifications, but they also enable > the > real deal, the elimination of the hrtimer tasklet: > > softirq: Remove tasklet_hrtimer > >include/linux/interrupt.h | 25 --- >k

[GIT PULL] workqueue changes for v4.16-rc1

2018-01-30 Thread Tejun Heo
Hello, Linus. Workqueue changes for v4.16-rc1. Two patches for the following. * Workqueue has an early init trick where workqueues can be created and work items queued on them before the workqueue subsystem is online. This helps simplifying early init and operation of low level subsystems

Re: [PATCH RFC 1/4] drivers: irqchip: pdc: add support for PDC interrupt controller

2018-01-30 Thread Marc Zyngier
On 30/01/18 17:56, Lina Iyer wrote: > Hi Mark, > > On Wed, Jan 24 2018 at 14:20 +, Marc Zyngier wrote: >> Hi Lina, Archana, >> >> On 23/01/18 17:56, Lina Iyer wrote: >>> From : Archana Sathyakumar >>> >>> The Power Domain Controller (PDC) hardware block on Qualcomm SoCs houses >>> an interrup

Re: [RFC PATCH v3 2/2] ima: force re-appraisal on filesystems with FS_IMA_NO_CACHE

2018-01-30 Thread Dongsu Park
Hi, On Mon, Jan 29, 2018 at 6:40 PM, Dongsu Park wrote: > On Mon, Jan 29, 2018 at 5:33 PM, Mimi Zohar wrote: >> On Thu, 2018-01-25 at 06:56 -0500, Mimi Zohar wrote: ... >> Did you get a chance to make the change and test it? > > Alban has been on holidays, so he will be back on Wednesday or so.

pps-gpio falsely reporting echo capability?

2018-01-30 Thread Lukas Senger
Hi, I'm trying to use PPS_ECHOASSERT with the GPIO pins on a Raspberry Pi. /sys/class/pps/pps0/echo reports 1, however looking at pps-gpio.c, no echo-callback is registered. Am I missing something or should either sysfs report 0 or pps echo be implemented in the client? >From a quick glance at th

Re: [PATCH] platform/x86: dell-laptop: Allocate buffer on heap rather than globally

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 7:17 PM, Pali Rohár wrote: > On Tuesday 30 January 2018 10:59:00 Mario Limonciello wrote: >> There may be race conditions with multiple different functions working >> on a module wide buffer causing one function to get the wrong results. > > Yes, this is better. We really d

[RFC PATCH] mmc: sdhci-of-arasan: Add auto tuning support for ZynqMP Platform

2018-01-30 Thread Manish Narani
This patch adds support of SD auto tuning for ZynqMP platform. Auto tuning sequence sends tuning block to card when operating in UHS-1 modes. This resets the DLL and sends CMD19/CMD21 as a part of the auto tuning process. Once the auto tuning process gets completed, reset the DLL to load the newly

[GIT PULL] libata changes for v4.16-rc1

2018-01-30 Thread Tejun Heo
Hello, Linus. Nothing too interesting. Several patches to convert mdelay() to usleep_range(), removal of unused pata_at32, and other low level driver specific changes. Thanks. The following changes since commit 2dc0b46b5ea30f169b0b272253ea846a5a281731: libata: sata_down_spd_limit should retu

Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 8:07 AM, Kai-Heng Feng wrote: > The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out > of box. > > The touchpad relies on its _INI method to update its _HID value from > to SYNA2393. > Also, the _STA relies on value of I2CN to report correct statu

[PATCH] kconfig: Warn if help text is blank

2018-01-30 Thread Ulf Magnusson
Print a warning if a 'help' token is given but the help text is blank. Personal pet peeve. Example warnings: net/sched/Kconfig:860: warning: 'NET_IFE_SKBMARK' defined with blank help text net/sched/Kconfig:865: warning: 'NET_IFE_SKBPRIO' defined with blank help text net/

Re: [PATCH] x86/cpuid: Fix up "virtual" IBRS/IBPB/STIBP feature bits on Intel

2018-01-30 Thread Henrique de Moraes Holschuh
On Tue, 30 Jan 2018, Borislav Petkov wrote: > On Tue, Jan 30, 2018 at 01:57:21PM +0100, Thomas Gleixner wrote: > > So much for the theory. That's not going to work. If the boot cpu has the > > feature then the alternatives will have been applied. So even if the flag > > mismatch can be observed whe

Re: [PATCH v5 0/3] livepatch: introduce atomic replace

2018-01-30 Thread Jason Baron
On 01/30/2018 10:06 AM, Evgenii Shatokhin wrote: > On 30.01.2018 17:03, Petr Mladek wrote: >> On Fri 2018-01-26 14:29:36, Evgenii Shatokhin wrote: >>> On 26.01.2018 13:23, Petr Mladek wrote: On Fri 2018-01-19 16:10:42, Jason Baron wrote: > > > On 01/19/2018 02:20 PM, Evgenii Shat

Re: [PATCH 3/3] i2c: add ACPI support for i2c-piix4

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 3:43 AM, Andrew Cooks wrote: > On 29/01/18 23:30, Andy Shevchenko wrote: >> On Mon, Jan 29, 2018 at 5:54 AM, Andrew Cooks >> wrote: >>> This enables the i2c-piix4 SMBus controller driver to enumerate I2C >>> slave devices using ACPI. It builds on the related I2C mux devic

Re: [PATCH 3/3] i2c: add ACPI support for i2c-piix4

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 8:22 PM, Andy Shevchenko wrote: > On Tue, Jan 30, 2018 at 3:43 AM, Andrew Cooks > wrote: >> On 29/01/18 23:30, Andy Shevchenko wrote: >>> On Mon, Jan 29, 2018 at 5:54 AM, Andrew Cooks >>> wrote: + if (has_acpi_companion(&dev->dev)) { + acp

[PATCH] wireless: zd1211rw: remove redundant assignment of pointer 'q'

2018-01-30 Thread Colin King
From: Colin Ian King Pointer q is initialized and then almost immediately afterwards being re-assigned the same value. Remove the second redundant assignment. Cleans up clang warning: drivers/net/wireless/zydas/zd1211rw/zd_mac.c:503:23: warning: Value stored to 'q' during its initialization is n

Re: [GIT pull] Timer core updates for 4.16

2018-01-30 Thread Thomas Gleixner
On Tue, 30 Jan 2018, Linus Torvalds wrote: > On Mon, Jan 29, 2018 at 10:30 PM, Ingo Molnar wrote: > > > > These are in cases significant driver simplifications, but they also enable > > the > > real deal, the elimination of the hrtimer tasklet: > > > > softirq: Remove tasklet_hrtimer > > > >

[GIT PULL] percpu changes for v4.16-rc1

2018-01-30 Thread Tejun Heo
Hello, Linus. One trivial patch to convert the return type from int to bool. Thanks. The following changes since commit 032b4cc8ff84490c4bc7c4ef8c91e6d83a637538: Merge tag 'pm-4.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm (2017-12-14 18:25:03 -0800) are availab

Re: Memory hotplug not increasing the total RAM

2018-01-30 Thread Michal Hocko
On Tue 30-01-18 13:11:06, Pavel Tatashin wrote: > Hi Michal, > > Thank you for taking care of the problem. The patch may introduce a > small performance regression during normal boot, as we add a branch > into a hot initialization path. But, it fixes a current problem, so: > > Reviewed-by: Pavel

[PATCH] samples/bpf: Add program for CPU state statistics

2018-01-30 Thread Leo Yan
CPU is active when have running tasks on it and CPUFreq governor can select different operating points (OPP) according to different workload; we use 'pstate' to present CPU state which have running tasks with one specific OPP. On the other hand, CPU is idle which only idle task on it, CPUIdle gove

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-01-30 Thread Cong Wang
On Tue, Jan 30, 2018 at 4:09 AM, Dmitry Vyukov wrote: > Hello, > > The following program creates a hang in unregister_netdevice. > cleanup_net work hangs there forever periodically printing > "unregister_netdevice: waiting for lo to become free. Usage count = 3" > and creation of any new network n

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-30 Thread Jonathan Cameron
On Tue, 30 Jan 2018 20:08:19 +0200 Andy Shevchenko wrote: > On Tue, Jan 30, 2018 at 7:38 PM, Andy Shevchenko > wrote: > > On Tue, Jan 30, 2018 at 7:25 PM, Steve Presser wrote: > > > >> Andy, > >> > >> Where did the assertion the second device is a magnetometer come from? Just > >> the data s

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-30 Thread Steven Presser
Andy, I apologize for the long response, but there's several issues to address here. First, I believe the "bmc150" in the subject line is in some way a misnomer.  You'd have to ask Jeremy for more details on what he intended it to refer to.  However, I believe the device in question is actua

Re: [PATCH] kconfig: Warn if help text is blank

2018-01-30 Thread Paul Bolle
On Tue, 2018-01-30 at 19:18 +0100, Ulf Magnusson wrote: > Print a warning if a 'help' token is given but the help text is blank. > Personal pet peeve. > > Example warnings: > > net/sched/Kconfig:860: warning: 'NET_IFE_SKBMARK' defined with blank > help text > net/sched/Kconfig:865: w

[GIT PULL] cgroup changes for v4.16-rc1

2018-01-30 Thread Tejun Heo
Hello, Linus. Nothing too interesting. Documentation updates and trivial changes; however, this pull request does containt he previusly discussed dropping of __must_check from strscpy(). Thanks. The following changes since commit 4f58424da3deead2605e39a9df65f5f06107a3cb: cgroup: make cgroup.

Re: 4.15: WARNING: CPU: 3 PID: 258 at kernel/irq/chip.c:244 __irq_startup+0x80/0x100

2018-01-30 Thread Thomas Gleixner
On Mon, 29 Jan 2018, Thomas Gleixner wrote: > On Mon, 29 Jan 2018, Meelis Roos wrote: > > > Upgraded some of my older machines to v4.15 today. On a quad P3 HP > > NetServer, > > Your supply of vintage hardware is amazing. > > > I get a bootup warning at kernel/irq/chip.c:244 > > __irq_startup+

RE: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-01-30 Thread Schmauss, Erik
Hi, > -Original Message- > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > ow...@vger.kernel.org] On Behalf Of Andy Shevchenko > Sent: Tuesday, January 30, 2018 10:18 AM > To: Kai-Heng Feng > Cc: Rafael J. Wysocki ; Len Brown ; ACPI > Devel Maling List ; Linux Kernel Mailing L

Re: i8042 AUX port [serio1] suspend takes a second on Dell XPS 13 9360 and TUXEDO Book 1406

2018-01-30 Thread Paul Menzel
Dear Dmitry, On 01/30/18 19:07, Dmitry Torokhov wrote: On Tue, Jan 30, 2018 at 09:52:45AM -0800, Dmitry Torokhov wrote: On Tue, Jan 30, 2018 at 06:36:34PM +0100, Paul Menzel wrote: I do not know, when it started, but with Linux 4.14-rc8 and 4.15, benchmarking suspend and resume time with

[git pull] vfs.git: poll annotations

2018-01-30 Thread Al Viro
Introduces a __bitwise type for POLL... bitmap, propagates the annotations through the tree. Most of that stuff is as simple as "make ->poll() instances return __poll_t and do the same to local variables used to hold the future return value". Some of the obvious brainos found in p

Re: [PATCH v6 01/41] dt-bindings: clock: Add new bindings for TI Davinci PLL clocks

2018-01-30 Thread David Lechner
On 01/30/2018 08:50 AM, Rob Herring wrote: On Mon, Jan 29, 2018 at 3:14 PM, David Lechner wrote: On 01/29/2018 01:53 PM, Rob Herring wrote: On Sat, Jan 20, 2018 at 11:13:40AM -0600, David Lechner wrote: This adds a new binding for the PLL IP blocks in the mach-davinci family of processors.

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-30 Thread Jonathan Cameron
On Tue, 30 Jan 2018 18:33:43 + Jonathan Cameron wrote: > On Tue, 30 Jan 2018 20:08:19 +0200 > Andy Shevchenko wrote: > > > On Tue, Jan 30, 2018 at 7:38 PM, Andy Shevchenko > > wrote: > > > On Tue, Jan 30, 2018 at 7:25 PM, Steve Presser > > > wrote: > > >> Andy, > > >> > > >> Where

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 8:46 PM, Jonathan Cameron wrote: >> Whilst the question is still open I have dropped the patch. >> Was not yet in a non rebasing tree (just in a build test one) >> so fine to drop it. > > Should have said this isn't the final decision or anything, but > whilst there are op

[PATCH] Documentation/process: kernel maintainer PGP guide

2018-01-30 Thread Konstantin Ryabitsev
This guide is an adapted version of the more general "Protecting Code Integrity" guide written and maintained by The Linux Foundation IT for use with open-source projects. It provides the oft-lacking guidance on the following topics: - how to properly protect one's PGP keys to minimize the risks o

Re: [PATCH 3.18 00/52] 3.18.93-stable review

2018-01-30 Thread Greg Kroah-Hartman
On Tue, Jan 30, 2018 at 03:51:56PM +0100, Greg Kroah-Hartman wrote: > On Tue, Jan 30, 2018 at 06:19:15AM -0800, Guenter Roeck wrote: > > On 01/29/2018 04:56 AM, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 3.18.93 release. > > > There are 52 patches in this s

Re: [PATCH V3 0/5] bugs fix for large PEBS mmap read and rdpmc read

2018-01-30 Thread Jiri Olsa
On Tue, Jan 30, 2018 at 11:48:18AM -0500, Liang, Kan wrote: SNIP > > > > > > The events in fixed mode could enable large PEBS. Events in freq mode > > > should > > > not enable large PEBS. > > > I think that could be a problem if some events try to enable large PEBS, > > > while others not. > >

Re: [PATCH] power: supply: bq27xxx: Add bq27411 support

2018-01-30 Thread Pali Rohár
On Saturday 27 January 2018 22:25:36 Liu Xiang wrote: > According to the datasheet, bq27411 is similar to bq27421. > > Signed-off-by: Liu Xiang > --- > drivers/power/supply/bq27xxx_battery.c | 14 ++ > include/linux/power/bq27xxx_battery.h | 3 ++- > 2 files changed, 16 insertions(

Re: [PATCH] power: supply: bq27xxx: Update comments

2018-01-30 Thread Pali Rohár
On Saturday 27 January 2018 22:27:41 Liu Xiang wrote: > The URL of bq27441-g1 is missing and bq27520-g4 is duplicated. > > Signed-off-by: Liu Xiang > --- > drivers/power/supply/bq27xxx_battery.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/power/supply/bq

Re: [PATCH v2] of: use hash based search in of_find_node_by_phandle

2018-01-30 Thread Frank Rowand
On 01/30/18 00:04, Chintan Pandya wrote: >> (1) >> >> Can you point me to the driver code that is invoking >> the search? > There are many locations. Few of them being, > https://source.codeaurora.org/quic/la/kernel/msm-4.9/tree/drivers/of/irq.c?h=msm-4.9#n214 > https://source.codeaurora.org/quic/l

Re: [PATCH] general protection fault in sock_has_perm

2018-01-30 Thread Mark Salyzyn
On 01/19/2018 09:41 AM, Stephen Smalley wrote: If we can't safely dereference the sock in these hooks, then that seems to point back to the approach used in my original code, where in ancient history I had sock_has_perm() take the socket and use its inode i_security field instead of the sock. co

Re: Allow automatic kernel taint on unsigned module load to be disabled

2018-01-30 Thread Matthew Garrett
On Wed, Oct 18, 2017 at 11:27 AM, Matthew Garrett wrote: > Hi Jessica, > > It seems that there's distribution interest in this - any feedback? Hi, I think we'd still benefit from this being available, so just checking whether you had any further feelings on it.

[PATCH] checkpatch: warn if changed lines exceeds a maximum size

2018-01-30 Thread Brown, Nicholas
Changed lines is the total of inserted and deleted lines. By default there is no limit, --max-changed-lines may be used to set a value. Some users may wish to encourage that patches are split into smaller parts using this. See Documentation/process/submitting-patches.rst#split-changes Signed-off-b

<    1   2   3   4   5   6   7   8   9   10   >