Re: [PATCH v6 6/7] KVM: arm64: allow get exception information from userspace

2017-09-14 Thread James Morse
Hi gengdongjiu, (re-ordered hunks) On 13/09/17 08:32, gengdongjiu wrote: > On 2017/9/8 0:30, James Morse wrote: >> On 28/08/17 11:38, Dongjiu Geng wrote: >> For BUS_MCEERR_A* from memory_failure() we can't know if they are caused by >> an access or not. Actually it looks like we can: I thought '

Re: [PATCH v2] kbuild: (bin)rpm-pkg: fix version number handling

2017-09-14 Thread Riku Voipio
On 14 September 2017 at 14:26, Masahiro Yamada wrote: > The "Release:" field of the spec file is determined based on the > .version file. > > However, the .version file is not copied to the source tar file. > So, when we build the kernel from the source package, the UTS_VERSION > always indicates

Re: [PATCH -mm -v4 3/5] mm, swap: VMA based swap readahead

2017-09-14 Thread Minchan Kim
On Thu, Sep 14, 2017 at 08:01:30PM +0800, Huang, Ying wrote: > Minchan Kim writes: > > > On Wed, Sep 13, 2017 at 02:02:29PM -0700, Andrew Morton wrote: > >> On Wed, 13 Sep 2017 10:40:19 +0900 Minchan Kim wrote: > >> > >> > Every zram users like low-end android device has used 0 page-cluster > >

Re: [PATCH 2/2] usb: host: Implement workaround for Erratum A-009668

2017-09-14 Thread Mathias Nyman
On 11.09.2017 12:43, yinbo@nxp.com wrote: From: "yinbo.zhu" Description: This issue is observed in USB 2.0 mode when the USB 3.0 host controller is connected to a FS/LS device via a hub. The host controller issues start-split (SSPLIT) and complete-split (CSPLIT) tokens to accomplish a spl

Re: [PATCH] mm/page_alloc: don't reserve ZONE_HIGHMEM for ZONE_MOVABLE request

2017-09-14 Thread Michal Hocko
[Sorry for a later reply] On Wed 06-09-17 13:35:25, Joonsoo Kim wrote: > From: Joonsoo Kim > > Freepage on ZONE_HIGHMEM doesn't work for kernel memory so it's not that > important to reserve. I am still not convinced this is a good idea. I do agree that reserving memory in both HIGHMEM and MOVA

Re: [PATCH RFC 0/3] A few round_pipe_size() and pipe-max-size fixups

2017-09-14 Thread Michael Kerrisk (man-pages)
Hello Joe, On 5 September 2017 at 16:44, Joe Lawrence wrote: > While backporting Michael's "pipe: fix limit handling" [1] patchset to a > distro-kernel, Mikulas noticed that current upstream pipe limit handling > contains a few problems: > > 1 - round_pipe_size() nr_pages overflow on 32bit: th

Re: [PATCH 00/12] x86/crypto: Fix RBP usage in several crypto .S files

2017-09-14 Thread Josh Poimboeuf
On Thu, Sep 14, 2017 at 11:16:12AM +0200, Ingo Molnar wrote: > > * Josh Poimboeuf wrote: > > > I'm still looking at the other one (sha512-avx2), but so far I haven't > > found a way to speed it back up. > > Here's a couple of very quick observations with possible optimizations: > > AFAICS the

Re: [PATCH v2 2/3] livepatch: add atomic replace

2017-09-14 Thread Petr Mladek
On Tue 2017-09-12 23:47:32, Jason Baron wrote: > > > On 09/12/2017 01:35 AM, Petr Mladek wrote: > > On Mon 2017-09-11 23:46:28, Jason Baron wrote: > >> On 09/11/2017 09:53 AM, Petr Mladek wrote: > >>> On Wed 2017-08-30 17:38:44, Jason Baron wrote: > diff --git a/include/linux/livepatch.h b/i

Re: [RFC Part2 PATCH v3 21/26] KVM: SVM: Add support for SEV DEBUG_ENCRYPT command

2017-09-14 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 03:02:58PM -0500, Brijesh Singh wrote: > The command copies a plain text into guest memory and encrypts it using > the VM encryption key. The command will be used for debug purposes > (e.g setting breakpoint through gdbserver) "setting a breakpoint" or "setting breakpoints"

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-14 Thread Michal Hocko
On Wed 13-09-17 13:46:08, David Rientjes wrote: > On Wed, 13 Sep 2017, Michal Hocko wrote: > > > > > This patchset makes the OOM killer cgroup-aware. > > > > > > > > v8: > > > > - Do not kill tasks with OOM_SCORE_ADJ -1000 > > > > - Make the whole thing opt-in with cgroup mount option control

RE: keyboard backlight max_brightness bug on Dell Latitude E6410

2017-09-14 Thread Gabriel M. Elder
output from smbios-keyboard-ctl --info: Libsmbios version : 2.3.0 smbios-keyboard-ctl version : 2.3.0 Capabilities of KeyBoard Illumination on your system: --- Supported USER Selectable Modes : Always OFF Auto:

Re: [PATCH] mtd: spi-nor: stm32-quadspi: avoid unintialized return code

2017-09-14 Thread Geert Uytterhoeven
Hi Arnd, On Thu, Sep 14, 2017 at 1:06 PM, Arnd Bergmann wrote: > If we send zero-length data to stm32_qspi_tx_poll() on older > compiler versions such as gcc-4.6, we get warned that the > return code is uninitialized: > > drivers/mtd/spi-nor/stm32-quadspi.c:248:2: error: ‘ret’ may be used > unin

Re: [PATCH manpages] stat.2: correct AT_NO_AUTOMOUNT text and general revisions.

2017-09-14 Thread Michael Kerrisk (man-pages)
Hi Neil, On 25 August 2017 at 07:32, NeilBrown wrote: > > Expand on the relationship between fstatat() and the other > three functions, and improve the description of AT_NO_AUTOMOUNT. > Specifically, both stat() and lstat() act the same way > with respect to automounts, and that behavior matches

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-14 Thread Michal Hocko
On Wed 13-09-17 14:56:07, Roman Gushchin wrote: > On Wed, Sep 13, 2017 at 02:29:14PM +0200, Michal Hocko wrote: [...] > > I strongly believe that comparing only leaf memcgs > > is more straightforward and it doesn't lead to unexpected results as > > mentioned before (kill a small memcg which is a p

Re: [v8 1/4] mm, oom: refactor the oom_kill_process() function

2017-09-14 Thread Michal Hocko
On Mon 11-09-17 14:17:39, Roman Gushchin wrote: > The oom_kill_process() function consists of two logical parts: > the first one is responsible for considering task's children as > a potential victim and printing the debug information. > The second half is responsible for sending SIGKILL to all > t

Re: [patch V2 04/29] parisc: Use lockup_detector_stop()

2017-09-14 Thread Don Zickus
On Thu, Sep 14, 2017 at 10:59:17AM +0200, Helge Deller wrote: > * Thomas Gleixner : > > The broken lockup_detector_suspend/resume() interface is going away. Use > > the new lockup_detector_soft_poweroff() interface to stop the watchdog from > > the busy looping power off routine. > > > > Signed-of

Re: [v4 01/11] soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations

2017-09-14 Thread Catalin Marinas
On Thu, Aug 24, 2017 at 04:37:45PM -0400, Roy Pledge wrote: > --- a/drivers/soc/fsl/qbman/bman_ccsr.c > +++ b/drivers/soc/fsl/qbman/bman_ccsr.c [...] > @@ -201,6 +202,38 @@ static int fsl_bman_probe(struct platform_device *pdev) > return -ENODEV; > } > > + /* > + * If

Re: [v4 03/11] dt-bindings: soc/fsl: Update reserved memory binding for QBMan

2017-09-14 Thread Catalin Marinas
On Thu, Aug 24, 2017 at 04:37:47PM -0400, Roy Pledge wrote: > Updates the QMan and BMan device tree bindings for reserved memory > nodes. This makes the reserved memory allocation compatible with > the shared-dma-pool usage. > > Signed-off-by: Roy Pledge > --- > Documentation/devicetree/bindings

Re: [v4 05/11] soc/fsl/qbman: Drop L1_CACHE_BYTES compile time check

2017-09-14 Thread Catalin Marinas
On Thu, Aug 24, 2017 at 04:37:49PM -0400, Roy Pledge wrote: > From: Claudiu Manoil > > Not relevant and arch dependent. Overkill for PPC. > > Signed-off-by: Claudiu Manoil > Signed-off-by: Roy Pledge > --- > drivers/soc/fsl/qbman/dpaa_sys.h | 4 > 1 file changed, 4 deletions(-) > > diff

[PATCH] staging: iio: ad7192: Use the dedicated reset function

2017-09-14 Thread Stefan Popa
SPI host drivers can use DMA to transfer data, so the buffer should be properly allocated. Keeping it on the stack could cause an undefined behavior. The dedicated reset function solves this issue. Signed-off-by: Stefan Popa --- drivers/staging/iio/adc/ad7192.c | 4 +--- 1 file changed, 1 inse

Re: keyboard backlight max_brightness bug on Dell Latitude E6410

2017-09-14 Thread Pali Rohár
Adding Gabriele to thread, IIRC you have machine which uses "supported keyboard light brightness levels" Can you look at this bug, if your machine is affected by it too? Important parts in ouptput: > ... --info > Supported Keyboard light brightness levels : 10 > ... --get-status > Current key

Re: [PATCH 00/16] gpio: Tight IRQ chip integration and banked infrastructure

2017-09-14 Thread Linus Walleij
On Fri, Sep 1, 2017 at 8:57 PM, Thierry Reding wrote: > here's the latest series of patches that implement the tighter IRQ chip > integration as well as the banked GPIO infrastructure that we had > discussed a couple of weeks/months back. Yes it has become really tasty now, don't you think :) I

Re: [PATCH] staging: iio: ad7192: Use the dedicated reset function

2017-09-14 Thread Lars-Peter Clausen
On 09/14/2017 03:50 PM, Stefan Popa wrote: > SPI host drivers can use DMA to transfer data, so the buffer should be > properly allocated. > Keeping it on the stack could cause an undefined behavior. > > The dedicated reset function solves this issue. > > Signed-off-by: Stefan Popa Acked-by: La

[PATCH] z3fold: fix stale list handling

2017-09-14 Thread Vitaly Wool
Fix the situation when clear_bit() is called for page->private before the page pointer is actually assigned. While at it, remove work_busy() check because it is costly and does not give 100% guarantee anyway. Signed-of-by: Vitaly Wool --- mm/z3fold.c | 6 ++ 1 file changed, 2 insertions(+),

Re: [PATCH 14/16] gpio: Add support for banked GPIO controllers

2017-09-14 Thread Linus Walleij
On Fri, Sep 1, 2017 at 8:57 PM, Thierry Reding wrote: > From: Thierry Reding > > Some GPIO controllers are subdivided into multiple logical blocks called > banks (or ports). This is often caused by the design assigning separate > resources, such as register regions or interrupts, to each bank, o

Re: [v4 07/11] soc/fsl/qbman: Rework portal mapping calls for ARM/PPC

2017-09-14 Thread Catalin Marinas
On Thu, Aug 24, 2017 at 04:37:51PM -0400, Roy Pledge wrote: > diff --git a/drivers/soc/fsl/qbman/bman.c b/drivers/soc/fsl/qbman/bman.c > index ff8998f..e31c843 100644 > --- a/drivers/soc/fsl/qbman/bman.c > +++ b/drivers/soc/fsl/qbman/bman.c > @@ -154,7 +154,7 @@ struct bm_mc { > }; > > struct b

Re: [RFC Part2 PATCH v3 22/26] KVM: SVM: Pin guest memory when SEV is active

2017-09-14 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 03:02:59PM -0500, Brijesh Singh wrote: > The SEV memory encryption engine uses a tweak such that two identical > plaintexts at different location will have a different ciphertexts. plaintexts or plaintext pages? also, s/a // > So swapping or moving ciphertexts of

Re: [PATCH] xen: don't compile pv-specific parts if XEN_PV isn't configured

2017-09-14 Thread Boris Ostrovsky
On 09/14/2017 08:38 AM, Juergen Gross wrote: > xenbus_client.c contains some functions specific for pv guests. > Enclose them with #ifdef CONFIG_XEN_PV to avoid compiling them when > they are not needed (e.g. on ARM). > > Signed-off-by: Juergen Gross > --- > drivers/xen/xenbus/xenbus_client.c | 1

[PATCH] lib: add module support to string tests

2017-09-14 Thread Geert Uytterhoeven
Extract the string test code into its own source file, to allow to compile it either to a loadable module, or builtin into the kernel. Fixes: 03270c13c5ffaa6a ("lib/string.c: add testcases for memset16/32/64") Signed-off-by: Geert Uytterhoeven --- lib/Kconfig | 2 +- lib/Makefile |

Re: [PATCH] xen: don't compile pv-specific parts if XEN_PV isn't configured

2017-09-14 Thread Juergen Gross
On 14/09/17 16:00, Boris Ostrovsky wrote: > On 09/14/2017 08:38 AM, Juergen Gross wrote: >> xenbus_client.c contains some functions specific for pv guests. >> Enclose them with #ifdef CONFIG_XEN_PV to avoid compiling them when >> they are not needed (e.g. on ARM). >> >> Signed-off-by: Juergen Gross

[PATCH] ALSA: oxygen: Xonar DG(X): make model_xonar_dg const

2017-09-14 Thread Bhumika Goyal
Make this const as it not modified anywhere. It is only used during a copy operation. Also, add const to the declaration in header. Signed-off-by: Bhumika Goyal --- sound/pci/oxygen/xonar_dg.h | 2 +- sound/pci/oxygen/xonar_dg_mixer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-

Re: [PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-09-14 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 14, 2017 at 09:03:55AM +0800, Jin, Yao escreveu: > On 9/11/2017 9:33 AM, Jin, Yao wrote: > > On 9/8/2017 9:43 PM, Arnaldo Carvalho de Melo wrote: > >> Em Wed, Aug 16, 2017 at 06:18:33PM +0800, Jin Yao escreveu: > >>> An issue is found during using perf annotate. > >>> > >>> perf record

Re: [PATCH V6 3/5] PCI: thunder-pem: Allow to probe PEM-specific register range for ACPI case

2017-09-14 Thread Ard Biesheuvel
(remove most cc's) Hi all, Apologies for digging up this old thread. I am currently looking into whether it is feasible to refactor some of the ACPI PCI quirk code we have so it can apply to more instances of the Synopsys Designware PCIe (i.e., for Marvell and Socionext SOCs), which all suffer f

Re: [PATCH] xen: don't compile pv-specific parts if XEN_PV isn't configured

2017-09-14 Thread Boris Ostrovsky
>> Did you make any changes in xenbus_map_ring_valloc_pv()? I don't see any >> but the diff looks pretty big --- I'd expect only the preprocessor >> directives to show up. > I moved the functions to require only one #ifdef (plus 1 for setting > the pv variants). Oh, OK, I didn't notice that. Rev

Re: [RFC Part2 PATCH v3 23/26] KVM: X86: Add memory encryption enabled ops

2017-09-14 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 03:03:00PM -0500, Brijesh Singh wrote: > Extend kvm_x86_ops to add memory_encyption_enabled() ops. > It returns a > boolean indicating whether memory encryption is enabled on the VCPU. You don't need that sentence. > > Signed-off-by: Brijesh Singh > --- > arch/x86/incl

WINNING NOTIFICATION

2017-09-14 Thread
Congratulation you have won 85,000,000.00GBP For Claim email:i...@winningsclaimsoffice.com

[tip:core/urgent] tools/objtool: Fix memory leak in elf_create_rela_section()

2017-09-14 Thread tip-bot for Martin Kepplinger
Commit-ID: 5d0be52d44e32ae98b1345e9ecfa6a97783ca2c9 Gitweb: http://git.kernel.org/tip/5d0be52d44e32ae98b1345e9ecfa6a97783ca2c9 Author: Martin Kepplinger AuthorDate: Thu, 14 Sep 2017 08:01:38 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 16:02:30 +0200 tools/objtool: Fix mem

Helloo

2017-09-14 Thread Ann Ben

[PATCH] mtd: cfi_cmdset_0002: fix Cypress S29GL flash erase suspend

2017-09-14 Thread Chen Bin
On UBIFS, Cypress S29GL01GT flash is failed to access occasionally , and throw below error information and call trace: MTD get_chip(): chip not ready after erase suspend UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 932:36992, written 0 bytes Call Trace: [jiffies: 0x1ad9b] []

[PATCH] net/packet: fix race condition between fanout_add and __unregister_prot_hook

2017-09-14 Thread nixiaoming
From: l00219569 If fanout_add is preempted after running po-> fanout = match and before running __fanout_link, it will cause BUG_ON when __unregister_prot_hook call __fanout_unlink so, we need add mutex_lock(&fanout_mutex) to __unregister_prot_hook or add spin_lock(&po->bind_lock) before po-> fa

[PATCH v2] ARC: reset: introduce AXS10x reset driver

2017-09-14 Thread Eugeniy Paltsev
ARC AXS10x boards support custom IP-block which allows to control reset signals of selected peripherals. For example DW GMAC, etc... This block is controlled via memory-mapped register (AKA CREG) which represents up-to 32 reset lines. This regiter is self-clearing so we don't need to deassert line

Re: [PATCH] staging: iio: ad7192: Use the dedicated reset function

2017-09-14 Thread Michael Hennerich
On 14.09.2017 15:50, Stefan Popa wrote: SPI host drivers can use DMA to transfer data, so the buffer should be properly allocated. Keeping it on the stack could cause an undefined behavior. The dedicated reset function solves this issue. Signed-off-by: Stefan Popa Acked-by: Michael Henneric

[PATCH v4 5/5] ARM: dts: stm32: Add I2C1 support for STM32F746 eval board

2017-09-14 Thread Pierre-Yves MORDRET
This patch adds I2C1 support for STM32F746 eval board Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v4: v3: * None v2: * Add SCL Rising/Falling time for eval board --- --- arch/arm/boot/dts/stm32746g-eval.dts | 8 ++

[PATCH v4 3/5] i2c: i2c-stm32f7: add driver

2017-09-14 Thread Pierre-Yves MORDRET
This patch adds initial support for the STM32F7 I2C controller. Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v4: * Fix max I2C Bus clock to 100% * Solve typo issue * Add retries value v3: * Move stm32f7_i

[PATCH 3/3] ARM: dts: at91: sama5d27_som1_ek: fix USB host vbus

2017-09-14 Thread Claudiu Beznea
From: Nicolas Ferre The USB host has 3 ports so we must specify the entries for each in the atmel,vbus-gpio property. The specified pin (PA27) is the vbus for USBB and not USBA. Signed-off-by: Nicolas Ferre [claudiu.bez...@microchip.com: change subject to match the desired prefix] Signed-off-by

[PATCH 0/3] SoM1 EK board fixes

2017-09-14 Thread Claudiu Beznea
Hi, This series contains fixes for SAMA5D27 SoM1 EK board. It would be good if we will have this in 4.14 version. Thank you, Claudiu Ludovic Desroches (2): ARM: dts: at91: sama5d27_som1_ek: update pinmux/pinconf for LEDs and USB ARM: dts: at91: sama5d27_som1_ek: fix typos Nicolas Ferre

[PATCH 1/3] ARM: dts: at91: sama5d27_som1_ek: update pinmux/pinconf for LEDs and USB

2017-09-14 Thread Claudiu Beznea
From: Ludovic Desroches There are some changes from the prototype board concerning LEDs and USB pins: - USBB power enable and red LED pins are inverted. - The polarity of LEDs is inverted too. Signed-off-by: Ludovic Desroches Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/at91-sama5d27_s

[PATCH 2/3] ARM: dts: at91: sama5d27_som1_ek: fix typos

2017-09-14 Thread Claudiu Beznea
From: Ludovic Desroches Fix typos that prevent proper using of uart2 and uart4 devices. Signed-off-by: Ludovic Desroches Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91

[PATCH v4 2/5] i2c: i2c-stm32f4: use generic definition of speed enum

2017-09-14 Thread Pierre-Yves MORDRET
This patch uses a more generic definition of speed enum for i2c-stm32f4 driver. Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET Reviewed-by: Ludovic BARRE --- Version history: v4: v3: v2: * None --- --- drivers/i2c/busses/i2c-stm32.h | 20 +

[PATCH v4 4/5] ARM: dts: stm32: Add I2C1 support for STM32F746 SoC

2017-09-14 Thread Pierre-Yves MORDRET
This patch adds I2C1 support for STM32F746 SoC. Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v4: v3: * None v2: * Update I2C SoC device tree with latest Linux version --- --- arch/arm/boot/dts/stm32f746.dtsi | 22 ++

[PATCH v4 0/5] Add support for the STM32F7 I2C

2017-09-14 Thread Pierre-Yves MORDRET
This patchset adds support for the I2C controller embedded in STM32F7xx SoC. It enables I2C transfer in interrupt mode with Standard-mode, Fast-mode and Fast-mode+ bus speed. --- Version history: v4: * Fix max I2C Bus clock to 100% * Solve typo issue * Add retries valu

Re: [PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-09-14 Thread Jin, Yao
On 9/14/2017 10:05 PM, Arnaldo Carvalho de Melo wrote: > Em Thu, Sep 14, 2017 at 09:03:55AM +0800, Jin, Yao escreveu: >> On 9/11/2017 9:33 AM, Jin, Yao wrote: >>> On 9/8/2017 9:43 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Aug 16, 2017 at 06:18:33PM +0800, Jin Yao escreveu: > An issue i

[PATCH v4 1/5] dt-bindings: i2c-stm32: Document the STM32F7 I2C bindings

2017-09-14 Thread Pierre-Yves MORDRET
This patch adds the documentation of device tree bindings for STM32F7 I2C Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET Acked-by: Rob Herring --- Version history: v4: v3: * None v2: * Remove i2c-timing binding in order to use generic bin

RE: keyboard backlight max_brightness bug on Dell Latitude E6410

2017-09-14 Thread Gabriel M. Elder
I've also been updating https://bugzilla.kernel.org/show_bug.cgi?id=196913 btw. What source file is responsible for setting this; led-class.c? I would like to know, so I can tell it to use the correct value: max_brightness = supported_brightness_levels-1; // !actual_max_brightness+1 :) # smbi

Re: [PATCH v2] kbuild: (bin)rpm-pkg: fix version number handling

2017-09-14 Thread Masahiro Yamada
Hi Riku. 2017-09-14 22:10 GMT+09:00 Riku Voipio : > On 14 September 2017 at 14:26, Masahiro Yamada > wrote: >> The "Release:" field of the spec file is determined based on the >> .version file. >> >> However, the .version file is not copied to the source tar file. >> So, when we build the kernel

Re: keyboard backlight max_brightness bug on Dell Latitude E6410

2017-09-14 Thread Gabriele Mazzotta
2017-09-14 15:54 GMT+02:00 Pali Rohár : > Adding Gabriele to thread, IIRC you have machine which uses > "supported keyboard light brightness levels" > Can you look at this bug, if your machine is affected by it too? My keyboard has two brightness levels + off. The value of max_brightness is 2, as

Re: [RFC Part2 PATCH v3 24/26] KVM: SVM: Clear C-bit from the page fault address

2017-09-14 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 03:03:01PM -0500, Brijesh Singh wrote: > When SEV is active, on #NPF the page fault address will contain C-bit. "... contain the C-bit." > We must clear the C-bit before handling the fault. > > Signed-off-by: Brijesh Singh > --- > arch/x86/kvm/svm.c | 2 +- > 1 file cha

Re: [PATCH] net/packet: fix race condition between fanout_add and __unregister_prot_hook

2017-09-14 Thread Willem de Bruijn
On Thu, Sep 14, 2017 at 10:07 AM, nixiaoming wrote: > From: l00219569 > > If fanout_add is preempted after running po-> fanout = match > and before running __fanout_link, > it will cause BUG_ON when __unregister_prot_hook call __fanout_unlink > > so, we need add mutex_lock(&fanout_mutex) to __unr

Re: [PATCH] selftests: intel_pstate: compile programs if executable not found

2017-09-14 Thread Shuah Khan
Hi Naresh, On 09/14/2017 04:51 AM, naresh.kamb...@linaro.org wrote: > From: Naresh Kamboju > > Test exit due to aperf.c: No such file or directory > ./run.sh > gcc: error: aperf.c: No such file or directory > Problem compiling aperf.c. > Please give me more details on where do you see this pro

Re: [PATCH v1 1/2] watchdog: dw_wdt: add stop watchdog operation

2017-09-14 Thread Guenter Roeck
On Thu, Sep 14, 2017 at 10:14:01AM +0200, Oleksij Rempel wrote: > From: Steffen Trumtrar > > The only way of stopping the watchdog is by resetting it. > Add the watchdog op for stopping the device and reset if > a reset line is provided. > > Signed-off-by: Steffen Trumtrar > Signed-off-by: Olek

Re: [PATCH] selftests: intel_pstate: compile programs if executable not found

2017-09-14 Thread Shuah Khan
On 09/14/2017 08:42 AM, Shuah Khan wrote: > Hi Naresh, > > On 09/14/2017 04:51 AM, naresh.kamb...@linaro.org wrote: >> From: Naresh Kamboju >> >> Test exit due to aperf.c: No such file or directory >> ./run.sh >> gcc: error: aperf.c: No such file or directory >> Problem compiling aperf.c. >> > >

Re: [Intel-wired-lan] [PATCH] igb: check memory allocation failure

2017-09-14 Thread Waskiewicz Jr, Peter
On 9/13/17 7:24 PM, Brown, Aaron F wrote: >> From: Intel-wired-lan [mailto:intel-wired-lan-boun...@osuosl.org] On Behalf >> Of Christophe JAILLET >> Sent: Monday, August 28, 2017 10:13 AM >> To: Waskiewicz Jr, Peter ; Kirsher, Jeffrey T >> >> Cc: net...@vger.kernel.org; kernel-janit...@vger.kernel

Re: [PATCH] scsi: lpfc: remove redundant null check on eqe

2017-09-14 Thread James Smart
On 9/8/2017 1:02 AM, Colin King wrote: From: Colin Ian King The pointer eqe is always non-null inside the while loop, so the check to see if eqe is NULL is redudant and hence can be removed. Detected by CoverityScan CID#1248693 ("Logically Dead Code") Signed-off-by: Colin Ian King Yep. th

Re: [RFC PATCH 3/4] x86/asm: Make alternative macro interfaces more clear and consistent

2017-09-14 Thread Josh Poimboeuf
On Sat, Sep 02, 2017 at 12:32:21PM +0200, Ingo Molnar wrote: > > * Josh Poimboeuf wrote: > > > On Thu, Aug 31, 2017 at 12:25:42PM -0500, Josh Poimboeuf wrote: > > > 2) Put "sp" in the clobbers list instead of as an i/o constraint. This > > >mostly works for GCC, and doesn't break clang. Ho

[PATCH] ACPI / PCI: Bail early in acpi_pci_add_bus() if there is no ACPI handle

2017-09-14 Thread Vitaly Kuznetsov
Hyper-V instances support PCI pass-through which is implemented through PV pci-hyperv driver. When a device is passed through a new root PCI bus is created in the guest. The bus sits on top of VMBus and has no associated information in ACPI. acpi_pci_add_bus() in this case proceeds all the way to a

Re: [PATCH] fs/proc: report eip/esp in /prod/PID/stat for coredumping

2017-09-14 Thread Andy Lutomirski
On Thu, Sep 14, 2017 at 2:42 AM, John Ogness wrote: > Commit 0a1eb2d474ed ("fs/proc: Stop reporting eip and esp in > /proc/PID/stat") stopped reporting eip/esp because it is > racey and dangerous for executing tasks. The comment adds: > > As far as I know, there are no use programs that make a

Re: [PATCH v2 1/2] watchdog: dw_wdt: add stop watchdog operation

2017-09-14 Thread Guenter Roeck
On Thu, Sep 14, 2017 at 01:30:12PM +0200, Oleksij Rempel wrote: > From: Steffen Trumtrar > > The only way of stopping the watchdog is by resetting it. > Add the watchdog op for stopping the device and reset if > a reset line is provided. > > Signed-off-by: Steffen Trumtrar > Signed-off-by: Olek

[PATCH v4 0/6] IIO-based thermal sensor driver for Allwinner H3 SoC

2017-09-14 Thread Icenowy Zheng
Allwiner H3 SoC has a thermal sensor, which is a large refactored version of the old Allwinner "GPADC" (although it have already only thermal part left in A33). This patch tried to add support for the sensor in H3 based on the A33 thermal sensor driver by Quentin Schulz, which is already merged.

[PATCH v4 2/6] iio: adc: sun4i-gpadc-iio: rename A33-specified registers to contain A33

2017-09-14 Thread Icenowy Zheng
As the H3 SoC, which is also in sun8i line, has totally different register map for the thermal sensor (a cut down version of GPADC), we should rename A23/A33-specified registers to contain A33, in order to prevent obfuscation with H3 registers. Currently these registers are only prefixed "SUN8I", n

[PATCH v4 1/6] dt-bindings: update the Allwinner GPADC device tree binding for H3

2017-09-14 Thread Icenowy Zheng
Allwinner H3 features a thermal sensor like the one in A33, but has its register re-arranged, the clock divider moved to CCU (originally the clock divider is in ADC) and added a pair of bus clock and reset. Update the binding document to cover H3. Signed-off-by: Icenowy Zheng Reviewed-by: Chen-Y

[PATCH v4 5/6] ARM: sun8i: h3: add support for the thermal sensor in H3

2017-09-14 Thread Icenowy Zheng
As we have gained the support for the thermal sensor in H3, we can now add its device nodes to the device tree. Add them to the H3 device tree. The calibration data of the thermal sensor is still not added, as it's currently not used, and the SID node is not added yet. The H5 thermal sensor has

[PATCH v4 6/6] ARM: sun8i: h3: add partial CPU thermal zone

2017-09-14 Thread Icenowy Zheng
Because of the restriction of the OF thermal framework, the thermal sensor will fail to probe if the thermal zone doesn't exist. Add a partial thermal zone which claims the H3 THS as the thermal sensor. The cooling device (CPU DVFS) is still not added as it's not ready, and the trip points are al

[PATCH] uwb: ensure that endpoint is interrupt

2017-09-14 Thread Andrey Konovalov
hwarc_neep_init() assumes that endpoint 0 is interrupt, but there's no check for that, which results in a WARNING in USB core code, when a bad USB descriptor is provided from a device: usb 1-1: BOGUS urb xfer, pipe 1 != type 3 [ cut here ] WARNING: CPU: 0 PID: 3 at drivers/

[PATCH v4 4/6] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor

2017-09-14 Thread Icenowy Zheng
This adds support for the Allwinner H3 thermal sensor. Allwinner H3 has a thermal sensor like the one in A33, but have its registers nearly all re-arranged, sample clock moved to CCU and a pair of bus clock and reset added. It's also the base of newer SoCs' thermal sensors. The thermal sensors on

[PATCH v4 3/6] iio: adc: sun4i-gpadc-iio: rework code for supporting newer THS variants

2017-09-14 Thread Icenowy Zheng
The SoCs after H3 has newer thermal sensor ADCs, which have two clock inputs (bus clock and sampling clock) and a reset. The registers are also re-arranged. This commit reworks the code, adds the process of the clocks and resets, and allows the sampling start/end code and the position of value rea

[PATCH] ocfs2: remove some redundant assignments

2017-09-14 Thread Colin King
From: Colin Ian King The initialization of free_space is redundant as free_space is updated later on and the initialized value is hence never used. The pointer new_list is set but never used so it can be completely removed. Cleans up clang scan-build warnings. "Value stored to 'free_space' duri

RE: [PATCH v3] Add driver to force WMI Thunderbolt controller power status

2017-09-14 Thread Mario.Limonciello
> -Original Message- > From: Lukas Wunner [mailto:lu...@wunner.de] > Sent: Thursday, September 14, 2017 4:14 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; linux-kernel@vger.kernel.org; platform-driver- > x...@vger.kernel.org; hughsi...@gmail.com; yehezkel...@gmail.com; > mika.wes

Re: [RFC Part2 PATCH v3 25/26] KVM: SVM: Do not install #UD intercept when SEV is enabled

2017-09-14 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 03:03:02PM -0500, Brijesh Singh wrote: > On #UD, x86_emulate_instruction() fetches the data from guest memory and > decodes the instruction bytes to assist further. When SEV is enabled, the > instruction bytes will be encrypted using the guest-specific key, hypervisor

Re: usb/uwb: WARNING in hwarc_neep_init/usb_submit_urb

2017-09-14 Thread Andrey Konovalov
On Wed, Sep 13, 2017 at 4:59 PM, Alan Stern wrote: > On Wed, 13 Sep 2017, Dmitry Vyukov wrote: > >> On Tue, Sep 12, 2017 at 9:57 PM, Greg Kroah-Hartman >> wrote: >> > On Tue, Sep 12, 2017 at 08:53:11PM +0200, Andrey Konovalov wrote: >> >> Hi! >> >> >> >> I've got the following crash while fuzzing

[GIT PULL] Kbuild updates for v4.14

2017-09-14 Thread Masahiro Yamada
Hi Linus, Here are Kbuild updates for v4.14. Please pull! The following changes since commit aae4e7a8bc44722fe70d58920a36916b1043195e: Linux 4.13-rc4 (2017-08-06 18:44:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.gi

Re: [PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for support

2017-09-14 Thread Shuah Khan
On 09/08/2017 06:01 AM, Thomas Meyer wrote: > The multiple_kprobes test case fails to check for KPROBE_EVENT support. > Add the check to prevent a false test result. > > Signed-off-by: Thomas Meyer > --- > tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc | 2 ++ > 1 file changed,

Re: [PATCH 2/3] selftests/intel_pstate: No need to compile test progs in the run script

2017-09-14 Thread Shuah Khan
On 09/08/2017 06:01 AM, Thomas Meyer wrote: > Both test programs are being compiled by make, so no need to compile both > programs in the runner script. > This resolves an error when installing all selftests via make install > and run them in a different environemnt. > > Running tests in intel_pst

Re: [PATCH] net: phy: Fix mask value write on gmii2rgmii converter speed register.

2017-09-14 Thread Andrew Lunn
On Thu, Sep 14, 2017 at 12:46:31PM +0530, Fahad Kunnathadi wrote: > To clear Speed Selection in MDIO control register(0x10), > ie, clear bits 6 and 13 to zero while keeping other bits same. > Before AND operation,The Mask value has to be perform with bitwise NOT > operation (ie, ~ operator) > > Th

Re: [PATCH] selftests/bpf: Make bpf_util work on uniprocessor systems

2017-09-14 Thread Shuah Khan
On 09/08/2017 05:05 PM, Daniel Borkmann wrote: > On 09/09/2017 01:01 AM, Alexei Starovoitov wrote: >> On Fri, Sep 08, 2017 at 01:19:23PM +0200, Thomas Meyer wrote: >>> The current implementation fails to work on uniprocessor systems. >>> Fix the parser to also handle the uniprocessor case. >>> >>>

Re: [PATCH v3] Add driver to force WMI Thunderbolt controller power status

2017-09-14 Thread Mika Westerberg
On Thu, Sep 14, 2017 at 02:52:27PM +, mario.limoncie...@dell.com wrote: > > Looking at drivers/platform/x86/wmi.c:wmi_dev_uevent() it seems that > > a modalias consisting of "wmi:" followed by the GUID is sent to udevd. > > For udevd to then load the module, I suspect you need to add a > > MODU

Re: kernel BUG at fs/ext4/fsync.c:LINE!

2017-09-14 Thread ChunYu Wang
Hi GeneBlue, Thanks for this reporting, do you have any logs related to the bug and could find the syscalls enabled for fuzzing during triggering this bug? I do not think it is not reproducible, but first, it needs some inspections manually. - ChunYu On Thu, Sep 14, 2017 at 7:54 PM, GeneBlue w

Re: [PATCH] mtd: spi-nor: stm32-quadspi: avoid unintialized return code

2017-09-14 Thread Ludovic BARRE
hi Arnd, Geert On 09/14/2017 03:38 PM, Geert Uytterhoeven wrote: Hi Arnd, On Thu, Sep 14, 2017 at 1:06 PM, Arnd Bergmann wrote: If we send zero-length data to stm32_qspi_tx_poll() on older compiler versions such as gcc-4.6, we get warned that the return code is uninitialized: drivers/mtd/s

Re: [PATCH v3] Add driver to force WMI Thunderbolt controller power status

2017-09-14 Thread Mika Westerberg
On Thu, Sep 14, 2017 at 05:59:19PM +0300, Mika Westerberg wrote: > On Thu, Sep 14, 2017 at 02:52:27PM +, mario.limoncie...@dell.com wrote: > > > Looking at drivers/platform/x86/wmi.c:wmi_dev_uevent() it seems that > > > a modalias consisting of "wmi:" followed by the GUID is sent to udevd. > >

Re: [PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for support

2017-09-14 Thread Masami Hiramatsu
On Thu, 14 Sep 2017 08:58:20 -0600 Shuah Khan wrote: > On 09/08/2017 06:01 AM, Thomas Meyer wrote: > > The multiple_kprobes test case fails to check for KPROBE_EVENT support. > > Add the check to prevent a false test result. > > > > Signed-off-by: Thomas Meyer > > --- > > tools/testing/selftes

Re: [PATCH v2 3/3] KVM: SVM: Add irqchip_split() checks before enabling AVIC

2017-09-14 Thread Radim Krčmář
2017-09-12 10:42-0500, Suravee Suthikulpanit: > SVM AVIC hardware accelerates guest write to APIC_EOI register > (for edge-trigger interrupt), which means it does not trap to KVM. > > So, only enable SVM AVIC only in split irqchip mode. > (e.g. launching qemu w/ option '-machine kernel_irqchip=spl

Re: BUG: Sporadic crashes with current Linus tree

2017-09-14 Thread Andy Lutomirski
On Thu, Sep 14, 2017 at 12:38 AM, Thomas Gleixner wrote: > Hi! > > I've seen the following crash sporadically with commit 46c1e79fee: > > Have not seen that with 3882a734c19b, though I saw the PCID warnings on > that machine. > > I have no idea how to reproduce so bisecting is pretty much pointles

Re: [PATCH v2 3/3] KVM: SVM: Add irqchip_split() checks before enabling AVIC

2017-09-14 Thread Suravee Suthikulpanit
Radim, On 9/14/17 08:20, Radim Krčmář wrote: @@ -1594,6 +1593,12 @@ static int avic_init_vcpu(struct vcpu_svm *svm) if (!avic) return 0; + if (!kvm_vcpu_apicv_active(&svm->vcpu)) { + pr_debug("%s: Disable AVIC due to non-split irqchip.\n", +

Re: [PATCH] mtd: spi-nor: stm32-quadspi: avoid unintialized return code

2017-09-14 Thread Geert Uytterhoeven
Hi Ludovic, On Thu, Sep 14, 2017 at 5:13 PM, Ludovic BARRE wrote: > On 09/14/2017 03:38 PM, Geert Uytterhoeven wrote: >> On Thu, Sep 14, 2017 at 1:06 PM, Arnd Bergmann wrote: >>> If we send zero-length data to stm32_qspi_tx_poll() on older >>> compiler versions such as gcc-4.6, we get warned tha

Re: keyboard backlight max_brightness bug on Dell Latitude E6410

2017-09-14 Thread Pali Rohár
On Thursday 14 September 2017 16:33:57 Gabriele Mazzotta wrote: > 2017-09-14 15:54 GMT+02:00 Pali Rohár : > > Adding Gabriele to thread, IIRC you have machine which uses > > "supported keyboard light brightness levels" > > Can you look at this bug, if your machine is affected by it too? > > My key

Re: [PATCH v2 2/3] livepatch: add atomic replace

2017-09-14 Thread Jason Baron
On 09/14/2017 06:32 AM, Petr Mladek wrote: > On Tue 2017-09-12 23:47:32, Jason Baron wrote: >> >> >> On 09/12/2017 01:35 AM, Petr Mladek wrote: >>> On Mon 2017-09-11 23:46:28, Jason Baron wrote: On 09/11/2017 09:53 AM, Petr Mladek wrote: > On Wed 2017-08-30 17:38:44, Jason Baron wrote: >

selftests/bpf doesn't compile

2017-09-14 Thread Shuah Khan
Hi Alexei and Daniel, bpf test depends on clang and fails to compile when -- make -C tools/testing/selftests/bpf run_tests make: clang: Command not found Makefile:39: recipe for target '.linux-kselftest/tools/testing/selftests/bpf/test_pkt_ac

Re: [PATCH v4 2/5] i2c: i2c-stm32f4: use generic definition of speed enum

2017-09-14 Thread Wolfram Sang
On Thu, Sep 14, 2017 at 04:28:36PM +0200, Pierre-Yves MORDRET wrote: > This patch uses a more generic definition of speed enum for i2c-stm32f4 > driver. > > Signed-off-by: M'boumba Cedric Madianga > Signed-off-by: Pierre-Yves MORDRET > Reviewed-by: Ludovic BARRE Applied to for-next, thanks!

Re: [PATCH] fs/proc: report eip/esp in /prod/PID/stat for coredumping

2017-09-14 Thread Thomas Gleixner
On Thu, 14 Sep 2017, John Ogness wrote: > Commit 0a1eb2d474ed ("fs/proc: Stop reporting eip and esp in > /proc/PID/stat") stopped reporting eip/esp because it is > racey and dangerous for executing tasks. The comment adds: > > As far as I know, there are no use programs that make any > ma

Re: [PATCH v4 1/5] dt-bindings: i2c-stm32: Document the STM32F7 I2C bindings

2017-09-14 Thread Wolfram Sang
On Thu, Sep 14, 2017 at 04:28:35PM +0200, Pierre-Yves MORDRET wrote: > This patch adds the documentation of device tree bindings for STM32F7 I2C > > Signed-off-by: M'boumba Cedric Madianga > Signed-off-by: Pierre-Yves MORDRET > Acked-by: Rob Herring Applied to for-next, thanks! signature.as

Re: [PATCH v4 3/5] i2c: i2c-stm32f7: add driver

2017-09-14 Thread Wolfram Sang
On Thu, Sep 14, 2017 at 04:28:37PM +0200, Pierre-Yves MORDRET wrote: > This patch adds initial support for the STM32F7 I2C controller. > > Signed-off-by: M'boumba Cedric Madianga > Signed-off-by: Pierre-Yves MORDRET Thanks for the quick update. I'd think the 'rate_max' variable can now be dropp

<    1   2   3   4   5   6   7   >